I saw an interesting video on computer-generated code snippets. The model has been trained on thousands of open source GitHub repositories.
In the video, an AI model produced some small code snippets. Given an input, for example, a function name with a comment, the model wrote correct implementation code of the function. I assume the AI model was trained on repositories with different open sources licences. I also assume this model will be useful if added to developer productivity tools.
What might be the licences for the code that was generated by such a tool?