omarzanji / ditto_activation

"Hey Ditto" activation model using CNN-LSTM neural network.
MIT License
1 stars 0 forks source link

potential license violation in the sample-recoder.py #5

Closed Thompson-cyber closed 3 months ago

Thompson-cyber commented 3 months ago

Hi ,I found a potential issue regarding license violation in the ditto_activation . The sample-recorder.py generated by ChatGPT may have been derived from another repository, leading to a violation of its license terms. Below are the details:

Details

The code sample-recorder.py appears to have been generated by ChatGPT with Generated by GPT with prompt: ... comments.

However, the code from lines 15 to 50 seems to be a code clone with PaddlePaddle/PaddleSpeech repository and record.py file. The main difference between the two code snippets is the variable name and values. Additionally, the ChatGPT generated code was updated on Mar/31/2023 and the cloned code was updated on Nov/3/2021.

https://github.com/omarzanji/ditto_activation/blob/29dd6d17572072c793448b0c557728d749094e87/sample-recorder.py#L13-L50

There is no license for the ChatGPT-generated code in sample-recorder.py and the repository. However, the cloned code is under Apache-2.0 license. According to the conditions of this Apache-2.0 license :

You must give any other recipients of the Work or Derivative Works a copy of this License;

Due to the ChatGPT-generated code having no license and the cloned code being under the [Apache-2.0](https://github.com/PaddlePaddle/PaddleSpeech?tab=Apache-2.0-1-ov-file#readme) license, there may be a potential license violation.

  1. How do you view potential license conflicts between ChatGPT-generated code and existing open-source code?
  2. Is there a potential license conflict between the sample-recorder.py and the record.py ?
  3. If the license violation exists, would you add some explanation about the open-source licenses at the file level or repository level?
Thompson-cyber commented 3 months ago

Hi, I would be very grateful for any updates or feedback you can give when you get a moment. 😊

omarzanji commented 3 months ago

Upon further inspection, sample_recorder.py is not used for any main logic. It was generated as a test script to collect activation samples. I have deleted the code in that file. Hope this resolved your issue!

Thompson-cyber commented 3 months ago

Thank for your reply! 😊