File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060 - name : Create
6161 run : |
6262 docker run --rm -v "$(pwd)/output:/collection" \
63+ -e QUERY="stars:>10 size:>=20 mirror:false template:false NOT android" \
6364 -e START="${{ inputs.start }}" -e END="${{ inputs.end }}" \
6465 -e COLLECT_TOKEN="${{ secrets.COLLECT_TOKEN_1 }}" \
6566 -e GH_TOKEN="${{ secrets.GITHUB_TOKEN }}" \
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ RUN curl https://sh.rustup.rs -sSf | bash -s -- -y \
5555
5656# Run variables.
5757ENV RUN="/root/.cargo/bin" \
58+ QUERY="stars:>10 language:java size:>=20 mirror:false template:false NOT android" \
5859 PATS="pats.txt" \
5960 OUT="data"
6061
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ echo "$COLLECT_TOKEN" >> "$PATS"
2424{
2525 " $RUN " /just install
2626 poetry install
27- " $RUN " /just collect " collection/$OUT " " $START " " $END " " repos"
27+ " $RUN " /just collect " collection/$OUT " " $QUERY " " $ START" " $END " " repos"
2828 " $RUN " /just pulls " ../repos.csv" " $GH_TOKEN " " ../repos-with-pulls.csv"
2929 " $RUN " /just filter " ../repos-with-pulls.csv" " ../after-filter.csv"
3030 " $RUN " /just extract " ../after-filter.csv" " ../after-extract.csv"
Original file line number Diff line number Diff line change @@ -62,10 +62,10 @@ clean:
6262 rm sr-data/ experiment/ * && rmdir sr-data/ experiment
6363
6464# Collect repositories.
65- collect dir start end out :
65+ collect dir query start end out :
6666 mkdir -p {{ dir}}
67- ghminer --query " stars:>10 language:java size:>=20 mirror:false template:false NOT android " \
68- - -start " {{ start }} " --end " {{ end }} " --tokens " $PATS" --filename " {{ out}} "
67+ ghminer --query " {{ query }} " --start " {{ start }} " --end " {{ end }} " \
68+ - -tokens " $PATS" --filename " {{ out}} "
6969
7070# Fetch pulls count for collected repos.
7171pulls repos token out = " experiment/with-pulls.csv":
You can’t perform that action at this time.
0 commit comments