Update README.md
Browse files
README.md
CHANGED
|
@@ -467,7 +467,7 @@ An opt-out mechanism will be provided for the final release of the dataset.
|
|
| 467 |
|
| 468 |
# Collection
|
| 469 |
|
| 470 |
-
We collect up to **50,000** public repositories using the [GitHub API](https://docs.github.com/en/rest/search/search?apiVersion=2022-11-28), focusing on *license type*, *star count*, and *creation date*. Repositories with non-permissive licenses are prioritized to reduce contamination, as public code datasets we deduplicate against primarily focus on permissive or no-license repositories. We select repositories created before **
|
| 471 |
|
| 472 |
### Copyleft licenses included in the The Heap
|
| 473 |
| **License** | **Family** |
|
|
@@ -519,7 +519,7 @@ The features we extract for each repository are illustrated in the example below
|
|
| 519 |
- **retrieval_date**: date when the repo was scraped from GitHub
|
| 520 |
|
| 521 |
We start by retrieving repositories with more than **900** stars using **two-month tumbling windows**. If we hit the **1000** repository limit per window (for a personal GitHub account), we shorten the
|
| 522 |
-
search space to a **one-month window** and restart the iteration. Otherwise, the window advances by two months. Once the entire timeframe (until **
|
| 523 |
The creation date window can be reduced even further (week or day level), in order to extract more data. We remove any potential duplicated repositories obtained due to the pagination process. Lastly, we extract all the files corresponding to each language. We extend the programming languages extension list used for [The Stack](https://gist.github.com/ppisarczyk/43962d06686722d26d176fad46879d41) with 4 languages: EJS, Raku, Starlark, and WebAssembly.
|
| 524 |
|
| 525 |
|
|
|
|
| 467 |
|
| 468 |
# Collection
|
| 469 |
|
| 470 |
+
We collect up to **50,000** public repositories using the [GitHub API](https://docs.github.com/en/rest/search/search?apiVersion=2022-11-28), focusing on *license type*, *star count*, and *creation date*. Repositories with non-permissive licenses are prioritized to reduce contamination, as public code datasets we deduplicate against primarily focus on permissive or no-license repositories. We select repositories created before **August 2024** in decreasing order of their star counts. To handle GitHub rate limits, we use timeouts and pagination during the scraping process.
|
| 471 |
|
| 472 |
### Copyleft licenses included in the The Heap
|
| 473 |
| **License** | **Family** |
|
|
|
|
| 519 |
- **retrieval_date**: date when the repo was scraped from GitHub
|
| 520 |
|
| 521 |
We start by retrieving repositories with more than **900** stars using **two-month tumbling windows**. If we hit the **1000** repository limit per window (for a personal GitHub account), we shorten the
|
| 522 |
+
search space to a **one-month window** and restart the iteration. Otherwise, the window advances by two months. Once the entire timeframe (until **August 2024**) is covered, we reduce the star search space: between **900** and **100** stars, we decrease the interval by **50** (e.g. search between [900, 850]), between **100** and **10** stars, we decrease the interval by **10**, and for the last **10** stars, we decrease by **1**. Since most repositories fall within the **0-100 star range** (e.g. Figure 1 showcases the distribution of repositories with up to **500** stars for Java), using the **creation date** and **star count** filters helps us avoid API limits and scrape more data by narrowing the search space.
|
| 523 |
The creation date window can be reduced even further (week or day level), in order to extract more data. We remove any potential duplicated repositories obtained due to the pagination process. Lastly, we extract all the files corresponding to each language. We extend the programming languages extension list used for [The Stack](https://gist.github.com/ppisarczyk/43962d06686722d26d176fad46879d41) with 4 languages: EJS, Raku, Starlark, and WebAssembly.
|
| 524 |
|
| 525 |
|