-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
528 changed files
with
126,221 additions
and
77,679 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
# This script generates the automatic labeler for the 3b1b/captions repository. | ||
|
||
year="20[0-9]{2}" | ||
video_id="[^/]+" | ||
language="[^/]+" | ||
|
||
normal_videos="$year/$video_id/$language" | ||
shorts="$year/shorts/$video_id/$language" | ||
blog="$year/blog/$video_id/$language" | ||
|
||
# Use find and grep to search for matching folders | ||
# and keep only the las part of the path | ||
# | ||
# Note that we must exclude the shorts and blog folders since they would labeled as normal_videos_languages language | ||
# in order to avoid this we could check for the presence of specific files in the folder , but the | ||
# structure of the project does not guarantee that the files will be present in the folder | ||
normal_videos_languages=$(find . -type d | grep -E "$normal_videos" | grep -v "/shorts/" | grep -v "/blog/" | awk -F/ '{print $NF}') | ||
shorts_languages=$(find . -type d | grep -E "$shorts" | grep -v "/blog/" | awk -F/ '{print $NF}') | ||
blog_languages=$(find . -type d | grep -E "$blog" | grep -v "/shorts/" | awk -F/ '{print $NF}') | ||
|
||
# Join the two lists and remove duplicates | ||
languages=$(cat <(echo "$normal_videos_languages") <(echo "$shorts_languages") <(echo "$blog_languages") | sort | uniq) | ||
labeler_file=".github/labeler.yml" | ||
|
||
echo "# This file was automatically generated by the labeler.sh script. Do not edit manually." > $labeler_file | ||
echo "" >> $labeler_file | ||
|
||
for language in $languages; | ||
do | ||
# Set the label name, with the first letter capitalized | ||
label_name=$(echo "$language" | awk '{print toupper(substr($0, 1, 1)) substr($0, 2)}') | ||
|
||
# Add the label to the labeler config file | ||
{ | ||
echo "$label_name:" | ||
echo "- changed-files:" | ||
echo " - any-glob-to-any-file: '**/$language/*'" | ||
echo "" | ||
} >> $labeler_file | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
# This file was automatically generated by the labeler.sh script. Do not edit manually. | ||
|
||
Albanian: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/albanian/*' | ||
|
||
Arabic: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/arabic/*' | ||
|
||
Bangla: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/bangla/*' | ||
|
||
Bengali: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/bengali/*' | ||
|
||
Bulgarian: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/bulgarian/*' | ||
|
||
Catalan: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/catalan/*' | ||
|
||
Chinese: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/chinese/*' | ||
|
||
Croatian: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/croatian/*' | ||
|
||
Czech: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/czech/*' | ||
|
||
Danish: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/danish/*' | ||
|
||
Dutch: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/dutch/*' | ||
|
||
English: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/english/*' | ||
|
||
Estonian: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/estonian/*' | ||
|
||
Finnish: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/finnish/*' | ||
|
||
French: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/french/*' | ||
|
||
Georgian: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/georgian/*' | ||
|
||
German: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/german/*' | ||
|
||
Greek: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/greek/*' | ||
|
||
Hebrew: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/hebrew/*' | ||
|
||
Hindi: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/hindi/*' | ||
|
||
Hungarian: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/hungarian/*' | ||
|
||
Indonesian: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/indonesian/*' | ||
|
||
Italian: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/italian/*' | ||
|
||
Japanese: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/japanese/*' | ||
|
||
Korean: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/korean/*' | ||
|
||
Lithuanian: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/lithuanian/*' | ||
|
||
Malay: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/malay/*' | ||
|
||
Marathi: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/marathi/*' | ||
|
||
Norwegian: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/norwegian/*' | ||
|
||
Persian: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/persian/*' | ||
|
||
Polish: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/polish/*' | ||
|
||
Portuguese: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/portuguese/*' | ||
|
||
Romanian: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/romanian/*' | ||
|
||
Russian: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/russian/*' | ||
|
||
Serbian: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/serbian/*' | ||
|
||
Slovak: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/slovak/*' | ||
|
||
Slovenian: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/slovenian/*' | ||
|
||
Spanish: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/spanish/*' | ||
|
||
Swedish: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/swedish/*' | ||
|
||
Tamil: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/tamil/*' | ||
|
||
Telugu: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/telugu/*' | ||
|
||
Thai: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/thai/*' | ||
|
||
Turkish: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/turkish/*' | ||
|
||
Ukrainian: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/ukrainian/*' | ||
|
||
Urdu: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/urdu/*' | ||
|
||
Vietnamese: | ||
- changed-files: | ||
- any-glob-to-any-file: '**/vietnamese/*' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: "Pull Request Labeler" | ||
on: | ||
- pull_request_target | ||
|
||
jobs: | ||
labeler: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@v5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"translatedText": "איך לספור עד 1000 בשתי ידיים", | ||
"translatedText": "איך לספור עד 1000 עם שתי ידיים", | ||
"input": "How to count to 1000 on two hands" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"translatedText": "Как посчитать до 1000 на двух руках", | ||
"translatedText": "Как посчитать до 1000 на пальцах", | ||
"input": "How to count to 1000 on two hands" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"translatedText": "הנוסחה והדואליות של אוילר", | ||
"translatedText": "הנוסחה של אוילר ודואליות של גרפים", | ||
"input": "Euler's Formula and Graph Duality" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.