Spaces:
Runtime error
Runtime error
Update app.py
#1
by Muennighoff - opened
16 unmodified lines171819202122232425266 unmodified lines3334353637383917 unmodified lines5758596061626364656667686916 unmodified lines# Am I in The CommitPack?As part of the BigCode project, we released and maintain [CommitPack](https://huggingface.co/datasets/bigcode/commitpack), a 4 TB dataset of permissively licensed source code over 350 programming languages. One of our goals in this project is to give people agency over their source code by letting them decide whether or not it should be used to develop and evaluate machine learning models, as we acknowledge that not all developers may wish to have their data used for that purpose.""" + """\This tool lets you check if a repository under a given username is part of CommitPack dataset. Would you like to have your data removed from future versions of CommitPack? You can opt-out following the instructions [here](https://www.bigcode-project.org/docs/about/the-stack/#how-can-i-request-that-my-data-be-removed-from-the-stack)."""opt_out_text_template = """\6 unmodified linesopt_out_issue_title = """Opt-out request for {username}"""opt_out_issue_body = """\I request that the following data is removed from The Stack:- Commits- GitHub issue17 unmodified linesif username in usernames and len(username_to_repo[username]) > 0:repos = username_to_repo[username]repo_word = "repository" if len(repos) == 1 else "repositories"output_md += f"**Yes**, there is code from **{len(repos)} {repo_word}** in The Stack:\n\n"for repo in repos:output_md += f"_{repo}_\n\n"return output_md.strip(), issue_url(username, repos)else:output_md += "**No**, your code is not in The Stack."return output_md.strip(), ""16 unmodified lines171819202122232425266 unmodified lines3334353637383917 unmodified lines5758596061626364656667686916 unmodified lines# Am I in The CommitPack?As part of the BigCode project, we released and maintain [CommitPack](https://huggingface.co/datasets/bigcode/commitpack), a 4 TB dataset of permissively licensed Git commits covering 350 programming languages. One of our goals in this project is to give people agency over their source code by letting them decide whether or not it should be used to develop and evaluate machine learning models, as we acknowledge that not all developers may wish to have their data used for that purpose.""" + """\This tool lets you check if a repository under a given username is part of the CommitPack dataset. Would you like to have your data removed from future versions of CommitPack? The CommitPack uses the same opt-out as The Stack, so you can opt-out by following the instructions [here](https://www.bigcode-project.org/docs/about/the-stack/#how-can-i-request-that-my-data-be-removed-from-the-stack)."""opt_out_text_template = """\6 unmodified linesopt_out_issue_title = """Opt-out request for {username}"""opt_out_issue_body = """\I request that the following data is removed from the CommitPack:- Commits- GitHub issue17 unmodified linesif username in usernames and len(username_to_repo[username]) > 0:repos = username_to_repo[username]repo_word = "repository" if len(repos) == 1 else "repositories"output_md += f"**Yes**, there is code from **{len(repos)} {repo_word}** in the CommitPack:\n\n"for repo in repos:output_md += f"_{repo}_\n\n"return output_md.strip(), issue_url(username, repos)else:output_md += "**No**, your code is not in the CommitPack."return output_md.strip(), ""
app.py+5-5