Datasets:

Modalities:
Text
Formats:
json
Languages:
English
Libraries:
Datasets
pandas
License:
File size: 425 Bytes
adad30d
 
9f91866
 
 
 
 
 
 
adad30d
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

pv commits.json |
    jq -r '("https://raw.githubusercontent.com/" + .repository) as $url | .path as $path | .commits[] | $url + "/" + .sha + "/" + $path' |
    while read url; do
        # Strip the url prefix to get the path
        path=$(echo "$url" | cut -d/ -f4-)
        if ! [ -f "data/$path" ]; then
            curl "$url" --silent --create-dirs -o "data/$path"
            sleep 1
        fi
    done