Skip to content

Commit

Permalink
Merge branch 'main' into feature/#-2024-shorts-mandelbrot
Browse files Browse the repository at this point in the history
  • Loading branch information
dlatikaynen authored Feb 5, 2024
2 parents 42cce6d + dc658de commit f681b80
Show file tree
Hide file tree
Showing 1,590 changed files with 51,844 additions and 28,423 deletions.
41 changes: 41 additions & 0 deletions .github/labeler.sh
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
186 changes: 186 additions & 0 deletions .github/labeler.yml
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/*'

12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
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
2 changes: 1 addition & 1 deletion 2015/binary-counting/french/title.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"translatedText": "Comment compter jusqu&#39;à 1000 à deux mains",
"translatedText": "Comment compter jusqu'à 1000 à deux mains",
"input": "How to count to 1000 on two hands"
}
2 changes: 1 addition & 1 deletion 2015/binary-counting/hebrew/title.json
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"
}
4 changes: 2 additions & 2 deletions 2015/binary-counting/portuguese/title.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"translatedText": "Como contar até 1000 nas duas mãos",
"translatedText": "Como contar até 1000 com as duas mãos",
"input": "How to count to 1000 on two hands"
}
}
4 changes: 2 additions & 2 deletions 2015/binary-counting/russian/title.json
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"
}
}
2 changes: 1 addition & 1 deletion 2015/binary-counting/turkish/title.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"translatedText": "İki elle 1000&#39;e kadar nasıl sayılır",
"translatedText": "İki elle 1000'e kadar nasıl sayılır",
"input": "How to count to 1000 on two hands"
}
2 changes: 1 addition & 1 deletion 2015/eulers-characteristic-formula/french/title.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"translatedText": "Formule d&#39;Euler et dualité graphique",
"translatedText": "Formule d'Euler et dualité graphique",
"input": "Euler's Formula and Graph Duality"
}
2 changes: 1 addition & 1 deletion 2015/eulers-characteristic-formula/hebrew/title.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"translatedText": "הנוסחה והדואליות של אוילר",
"translatedText": "הנוסחה של אוילר ודואליות של גרפים",
"input": "Euler's Formula and Graph Duality"
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{
"input": "It's very different from the inductive proof, typically given, but I'm not trying to argue that this is somehow better or easier to understand than other proofs.",
"model": "nmt",
"translatedText": "हे प्रेरक पुराव्यापेक्षा खूप वेगळे आहे, सामान्यत: दिलेले आहे, परंतु मी असा तर्क करण्याचा प्रयत्न करत नाही की हे इतर पुराव्यांपेक्षा चांगले किंवा समजण्यास सोपे आहे.",
"translatedText": "हे प्रेरक पुराव्यापेक्षा खूप वेगळे आहे, जे सामान्यत: दिलेले जातात, परंतु मी असा तर्क करण्याचा प्रयत्न करत नाही की हे इतर पुराव्यांपेक्षा चांगले किंवा समजण्यास सोपे आहे.",
"time_range": [
12.58,
19.98
Expand All @@ -38,7 +38,7 @@
{
"input": "If you draw some dots and some lines between them, that is, a graph, and if none of these lines intersect, which is to say you have a planar graph, and if your drawing is connected, then Euler's formula tells us that the number of dots minus the number of lines plus the number of regions these lines cut the plane into, including that outer region, will always be 2.",
"model": "nmt",
"translatedText": "जर तुम्ही काही ठिपके आणि त्यांच्यामध्ये काही रेषा काढल्या, म्हणजे आलेख, आणि जर यापैकी कोणतीही रेषा एकमेकांना छेदत नसेल, म्हणजे तुमच्याकडे प्लॅनर आलेख आहे, आणि तुमचे रेखाचित्र जोडलेले असेल, तर यूलरचे सूत्र आम्हाला सांगते की संख्या ठिपके वजा रेषांची संख्या अधिक क्षेत्रांची संख्या या रेषा त्या बाह्य प्रदेशासह विमानात कट करतात, नेहमी 2 असेल.",
"translatedText": "जर तुम्ही काही ठिपके आणि त्यांच्यामध्ये काही रेषा काढल्या, म्हणजे आलेख, आणि जर यापैकी कोणतीही रेषा एकमेकांना छेदत नसेल, म्हणजे तुमच्याकडे प्लॅनर आलेख आहे, आणि तुमचे रेखाचित्र जोडलेले असेल, तर यूलरचे सूत्र आम्हाला सांगते की संख्या ठिपके वजा रेषांची संख्या अधिक क्षेत्रांची संख्या या रेषा त्या बाह्य प्रदेशासह प्लॅनाला कट करतात, नेहमी 2 असेल.",
"time_range": [
31.76,
53.2
Expand Down Expand Up @@ -218,7 +218,7 @@
{
"input": "Or, maybe, for those of us reasoning about the actual drawing of a graph on the plane, we can take the set of faces this graph cuts the plane into and consider two of them connected if they share an edge.",
"model": "nmt",
"translatedText": "किंवा, कदाचित, विमानावरील आलेखाच्या वास्तविक रेखांकनाबद्दल आपल्यापैकी जे तर्क करतात त्यांच्यासाठी, हा आलेख विमानाला कट करतो अशा चेहऱ्यांचा संच आपण घेऊ शकतो आणि जर धार सामायिक केली असेल तर त्यापैकी दोन जोडलेले विचार करू शकतो.",
"translatedText": "किंवा, कदाचित, प्लॅनवरील आलेखाच्या वास्तविक रेखांकनाबद्दल आपल्यापैकी जे तर्क करतात त्यांच्यासाठी, हा आलेख प्लॅनाला कट करतो अशा चेहऱ्यांचा संच आपण घेऊ शकतो आणि जर धार सामायिक केली असेल तर त्यापैकी दोन जोडलेले विचार करू शकतो.",
"time_range": [
204.78,
217.6
Expand Down
Loading

0 comments on commit f681b80

Please sign in to comment.