Datasets:
Update README.md
#1
by lvwerra HF Staff - opened
59 unmodified lines606162636465666768698 unmodified lines787980818283841 unmodified line8687888990919259 unmodified lines|Release|Description||-|-||v1.1| This is the first release of the metadata. It is for The Stack v1.1|### Dataset SummaryThis is a set of additional information for repositotoreis used for The Stack. It contains file paths, detected licenes as well as some other information for the repostiories.### Supported Tasks and Leaderboards8 unmodified linesAs na example of aggregation operation on The Stack, the image above shows conceptually a selection of stars ( and issues and PR count) for a file. Each unique file can be part of multiple repositories. So, The Stack releases unique files and aggregates meta information (e.g stars) from all repositories it belongs to. For example, for max_stars_count we take the maximum number of stars from all repositories the file is part of.The meta data will allow you to reconstruct repository directory structures. For this, for each repository form `ri` tabele it is needed to take all its files from `fi` table, find them in The Stack by file's `hexsha` and save those files' content under its path for a repository from `fi` table. For speed it is preferable to index The Stack by hexsha first.1 unmodified line### Usage ExampleRestore folder structure for python files in numpy repository```import datasetsfrom pathlib import Pathfrom tqdm.auto import tqdm59 unmodified lines6061626364656667686970718 unmodified lines808182838485861 unmodified line8889909192939459 unmodified lines|Release|Description||-|-||v1.1| This is the first release of the metadata. It is for The Stack v1.1||v1.2| Metadata dataset matching The Stack v1.2|### Dataset SummaryThis is a set of additional information for repositories used for The Stack. It contains file paths, detected licenes as well as some other information for the repositories.### Supported Tasks and Leaderboards8 unmodified linesAs an example of an aggregation operation on The Stack, the image above shows conceptually a selection of stars ( and issues and PR count) for a file. Each unique file can be part of multiple repositories. So, The Stack releases unique files and aggregates meta information (e.g stars) from all repositories it belongs to. For example, for max_stars_count we take the maximum number of stars from all repositories the file is part of.The meta data will allow you to reconstruct repository directory structures. For this, for each repository form `ri` tabele it is needed to take all its files from `fi` table, find them in The Stack by file's `hexsha` and save those files' content under its path for a repository from `fi` table. For speed it is preferable to index The Stack by hexsha first.1 unmodified line### Usage ExampleRestore folder structure for python files in numpy repository```pythonimport datasetsfrom pathlib import Pathfrom tqdm.auto import tqdm
README.md+5-3