Skip to content

Commit

Permalink
Merge branch '3b1b:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Dat-Pudding authored Feb 7, 2024
2 parents bf271ff + d14cc25 commit 8ad6a96
Show file tree
Hide file tree
Showing 673 changed files with 152,136 additions and 80,623 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/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/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"
}
30 changes: 15 additions & 15 deletions 2015/eulers-characteristic-formula/marathi/auto_generated.srt
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
एक चांगला पुरावा सामायिक करू इच्छितो.

4
00:00:12,580 --> 00:00:15,394
हे प्रेरक पुराव्यापेक्षा खूप वेगळे आहे, सामान्यत: दिलेले आहे,
00:00:12,580 --> 00:00:15,531
हे प्रेरक पुराव्यापेक्षा खूप वेगळे आहे, जे सामान्यत: दिलेले जातात,

5
00:00:15,394 --> 00:00:19,162
00:00:15,531 --> 00:00:19,187
परंतु मी असा तर्क करण्याचा प्रयत्न करत नाही की हे इतर पुराव्यांपेक्षा चांगले किंवा

6
00:00:19,162 --> 00:00:19,980
00:00:19,187 --> 00:00:19,980
समजण्यास सोपे आहे.

7
Expand All @@ -35,23 +35,23 @@
प्रथम, प्रमेय काय सांगतो ते पाहू.

10
00:00:31,760 --> 00:00:36,313
00:00:31,760 --> 00:00:36,286
जर तुम्ही काही ठिपके आणि त्यांच्यामध्ये काही रेषा काढल्या, म्हणजे आलेख,

11
00:00:36,313 --> 00:00:41,562
00:00:36,286 --> 00:00:41,505
आणि जर यापैकी कोणतीही रेषा एकमेकांना छेदत नसेल, म्हणजे तुमच्याकडे प्लॅनर आलेख आहे,

12
00:00:41,562 --> 00:00:46,938
00:00:41,505 --> 00:00:46,849
आणि तुमचे रेखाचित्र जोडलेले असेल, तर यूलरचे सूत्र आम्हाला सांगते की संख्या ठिपके वजा

13
00:00:46,938 --> 00:00:52,377
रेषांची संख्या अधिक क्षेत्रांची संख्या या रेषा त्या बाह्य प्रदेशासह विमानात कट करतात,
00:00:46,849 --> 00:00:52,382
रेषांची संख्या अधिक क्षेत्रांची संख्या या रेषा त्या बाह्य प्रदेशासह प्लॅनाला कट करतात,

14
00:00:52,377 --> 00:00:53,200
00:00:52,382 --> 00:00:53,200
नेहमी 2 असेल.

15
Expand Down Expand Up @@ -219,15 +219,15 @@
सिनॅप्सद्वारे जोडलेले न्यूरॉन्स असतात.

56
00:03:24,780 --> 00:03:28,957
किंवा, कदाचित, विमानावरील आलेखाच्या वास्तविक रेखांकनाबद्दल आपल्यापैकी जे
00:03:24,780 --> 00:03:28,919
किंवा, कदाचित, प्लॅनवरील आलेखाच्या वास्तविक रेखांकनाबद्दल आपल्यापैकी जे

57
00:03:28,957 --> 00:03:33,193
तर्क करतात त्यांच्यासाठी, हा आलेख विमानाला कट करतो अशा चेहऱ्यांचा संच आपण
00:03:28,919 --> 00:03:33,173
तर्क करतात त्यांच्यासाठी, हा आलेख प्लॅनाला कट करतो अशा चेहऱ्यांचा संच आपण

58
00:03:33,193 --> 00:03:37,600
00:03:33,173 --> 00:03:37,600
घेऊ शकतो आणि जर धार सामायिक केली असेल तर त्यापैकी दोन जोडलेले विचार करू शकतो.

59
Expand Down
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
4 changes: 2 additions & 2 deletions 2015/eulers-formula-old/arabic/title.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"translatedText": "قصيدة صيغة أويلر",
"input": "Euler's Formula Poem"
"translatedText": "e to the pi i، لقطة غير تقليدية (الإصدار القديم)",
"input": "e to the pi i, a nontraditional take (old version)"
}
4 changes: 2 additions & 2 deletions 2015/eulers-formula-old/chinese/title.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"translatedText": "欧拉公式诗",
"input": "Euler's Formula Poem"
"translatedText": "e 到 pi i,非传统方式(旧版本)",
"input": "e to the pi i, a nontraditional take (old version)"
}
Loading

0 comments on commit 8ad6a96

Please sign in to comment.