<jupyter_start><jupyter_text>rerun for valgamaa,vorumaa<jupyter_code># 0 nimetus, 1 kood
piirkond = [['Hiiumaa',       46, 15]]

#klass = [8, 9, 10, 11, 12]
klass = [8]

keel = ['EST']

for i in range(len(piirkond)):
    koht = piirkond[i][0]
    tel  = piirkond[i][1]
    rang = piirkond[i][2]
    for j in klass:
        for k in keel:
            path = '{0}/{1}/{2}/'.format(koht,j,k)
            !mkdir -p ./files/$path
            for l in range(rang):
                kl   = str(j).zfill(2)
                num  = str(l+1).zfill(3)
                code = '{0}-{1}-{2}-{3}'.format(k,tel,kl,num)
                temp = 'PV{0}_vv_{1}.pdf'.format(j,k)
                if k == 'EST':
                     strg = "Õpilase kood"
                else:
                     strg = "Код ученика"
                print(code)
                
                # stamp code into the "vastustevihik"
                addcode(code,temp,strg)
                code = code+'.pdf'
                %mv $code ./files/$path<jupyter_output>EST-46-08-001
EST-46-08-002
EST-46-08-003
EST-46-08-004
EST-46-08-005
EST-46-08-006
EST-46-08-007
EST-46-08-008
EST-46-08-009
EST-46-08-010
EST-46-08-011
EST-46-08-012
EST-46-08-013
EST-46-08-014
EST-46-08-015
{'fraction_non_alphanumeric': 0.16734362307067424, 'fraction_numerical': 0.10966693744922827, 'mean_word_length': 1.5560165975103735, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '577952', 'license': 'MIT', 'n_tokens_mistral': 582, 'n_tokens_neox': 498, 'n_words': 92, 'path': 'LisaKoodid.ipynb', 'repo_name': 'vladislavivanistsev/keemiaolympiaad', 'size': '1231'}