commit ktory powinien powstac tydzien temu

This commit is contained in:
s464933 2024-01-29 21:35:28 +01:00
parent 9033821f8e
commit d84cd90855
36 changed files with 313687 additions and 147941 deletions

View File

@ -2,7 +2,7 @@
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 3.8" jdkType="Python SDK" />
<orderEntry type="jdk" jdkName="Python 3.10" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -1,7 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Black">
<option name="sdkName" value="Python 3.8" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" />
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10" project-jdk-type="Python SDK" />
</project>

View File

@ -0,0 +1,9 @@
NO
YES
NO
NO
NO
NO
NO
NO
NO

View File

@ -0,0 +1,14 @@
YES
NO
YES
NO
YES
NO
NO
YES
NO
NO
NO
NO
NO
NO

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,6 @@
NO
YES
NO
NO
YES
YES

View File

@ -0,0 +1,7 @@
YES
YES
YES
NO
NO
NO
NO

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,4 @@
biały
dom
piła
stali

View File

@ -0,0 +1,3 @@
biały
piła
stali

View File

@ -0,0 +1,2 @@
Here comes Hamlet
Hamlet Hamlet again

View File

@ -0,0 +1,3 @@
Pies ma Alę
Kot i pies to zwierzęta
pies

View File

@ -0,0 +1,3 @@
Kiedyś był 1934 r.
Kiedyś był 1934 r.fsdfsdfsdf
1934 r. to jakaś data

View File

@ -0,0 +1,4 @@
34234 34 5
34535
34
1992 1999

View File

@ -0,0 +1,5 @@
yes
yes
yes
no
no

View File

@ -0,0 +1,6 @@
yes
yes
no
yes
yes
no

View File

@ -0,0 +1,7 @@
no
yes
no
yes
yes
no
no

View File

@ -0,0 +1,12 @@
no
no
yes
yes
yes
yes
no
no
no
yes
yes
yes

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,3 @@
ala mA KOTa
lallaa
Żuk
żUK

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,3 @@
7 2 0 2
6 0 0 0
5 1 1 4
7 2 0 3
6 0 0 1
6 1 1 3

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,3 @@
Mam 2 jabłka i banananów.
Mam 2 jabłka i banananów oraz 20 gruszek.
Widziałem 2 bociany.

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,2 @@
"Mam 2 xxxxka i 35 banananĂłw.
WidziaĹem x bociany.
"Mam 2 xxxxxx i 35 banananów.
Widziałem 2 xxxxxxx.

View File

@ -1,4 +1,4 @@
Use regular expressions to extract lines containing polish surnames.
Use regular expressions to extract lines containing polish surnames.
Download list of polish male and female surnames from here:

50000
TaskG00/polish_wiki_excerpt.in Normal file

File diff suppressed because one or more lines are too long

50000
TaskG01/polish_wiki_excerpt.in Normal file

File diff suppressed because one or more lines are too long

View File

@ -2,9 +2,7 @@ import re
import sys
def binary_to_utf8(binary_string):
# padding = 8 - len(binary_string) % 8
# binary_string += '0' * padding
# binary_string = binary_string.rstrip('0')
bytes_list = [binary_string[i:i+8] for i in range(0, len(binary_string), 8)]
@ -18,8 +16,6 @@ def binary_to_utf8(binary_string):
return utf8_text
return utf8_text
for line in sys.stdin:
result = binary_to_utf8(line.strip())
print(result.encode('utf-8'))
print(result)

View File

@ -14,4 +14,4 @@ def hex_to_utf8(hex_string):
for line in sys.stdin:
result_text = hex_to_utf8(line.strip())
print(result_text.encode('utf-8'))
print(result_text)

View File

@ -0,0 +1 @@
15

View File

@ -0,0 +1 @@
4

View File

@ -0,0 +1,4 @@
10 Szeregowy
5 Rico
9 Kowalski
8 Skipper

View File

@ -71,7 +71,7 @@ def does_task_match_index(dir, index):
def get_tasks(index):
all_tasks = Path('.').glob('Task*')
all_tasks = Path('.').glob('TaskG05')
return [task for task in all_tasks if does_task_match_index(task, index)]