Spaces:
Running
Running
Update app.py
Browse files32 unmodified lines33343536373829 unmodified lines68697071727374757632 unmodified lines""" + """\This tool lets you check if a repository under a given username is part of The Stack dataset. Would you like to have your data removed from future versions of The Stack? 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). Note that previous opt-outs might still be displayed in the release candidate (denoted with "-rc"), which will be removed for the release."""opt_out_text_template = """\29 unmodified linesif username in usernames[version] and len(usernames[version][username])>0:repos = usernames[version][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:32 unmodified lines333435363738394029 unmodified lines70717273747576777879808182838432 unmodified lines""" + """\This tool lets you check if a repository under a given username is part of The Stack dataset. Would you like to have your data removed from future versions of The Stack? 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). Note that previous opt-outs might still be displayed in the release candidate (denoted with "-rc"), which will be removed for the release.**Note**: The Stack v2.0 is built from the data provided by the [Software Heriage Archive](https://archive.softwareheritage.org/), so it may include repositories that are no longer present on GitHub."""opt_out_text_template = """\29 unmodified linesif username in usernames[version] and len(usernames[version][username])>0:repos = usernames[version][username]repo_word = "repository" if len(repos)==1 else "repositories"if version[:2] == "v2":output_md += f"**Yes**, there is code from **{len(repos)} {repo_word}** in The Stack. Check the links to see when it was archived by Software Heritage:\n\n"else:output_md += f"**Yes**, there is code from **{len(repos)} {repo_word}** in The Stack:\n\n"for repo in repos:if version[:2] == "v2":output_md += f"[{repo}](https://archive.softwareheritage.org/browse/origin/visits/?origin_url=https://github.com/{repo})\n\n"else:output_md += f"_{repo}_\n\n"return output_md.strip(), issue_url(username, repos)else:
app.py+10-2