<commit_before># coding=utf-8
__author__ = 'etcher3rd'

from os import chdir, walk
from os.path import exists, join, abspath
from main import __version__
from zipfile import ZipFile, ZIP_LZMA
from subprocess import call
from time import  sleep

chdir('./build')

z_local = './KaTZeLinkV2_{}.zip'.format(__version__)
z = abspath(z_local)

chdir('./exe.win32-3.4')

with ZipFile(z, mode="w", compression=ZIP_LZMA) as zip_file:
    for root, dirs, files in walk('.'):
        for file in files:
            zip_file.write(join(root, file))

chdir('..')

print('N\'OUBLIE PAS DE PUSHER ESPECE DE SINGE !!!')
name = input('name: ')
desc = input('description: ')

if not call('github-release release --user etcher3rd --repo Link --tag {} --name "{}" --description "{}"'.format(
        __version__, name, desc)) == 0:
    call('github-release edit -u 3rd-KaTZe -r Link -t {} -n "{}" -d "{}"'.format(__version__, name, desc))

sleep(3)
print('uploading {}'.format(z_local))
call('github-release upload -u etcher3rd -r Link --tag {} -n "KaTZeLink_{}.7z" -f "{}"'
     .format(__version__, __version__, z_local))<commit_msg>Intégration V2 dans le repo de Katze<commit_after># coding=utf-8
__author__ = 'etcher3rd'

from os import chdir, walk
from os.path import exists, join, abspath
from main import __version__
from zipfile import ZipFile, ZIP_LZMA
from subprocess import call
from time import  sleep

chdir('./build')

z_local = './KaTZeLinkV2_{}.zip'.format(__version__)
z = abspath(z_local)

chdir('./exe.win32-3.4')

with ZipFile(z, mode="w", compression=ZIP_LZMA) as zip_file:
    for root, dirs, files in walk('.'):
        for file in files:
            zip_file.write(join(root, file))

chdir('..')

print('N\'OUBLIE PAS DE PUSHER ESPECE DE SINGE !!!')
name = input('name: ')
desc = input('description: ')

if not call('github-release release --user 3rd-KaTZe --repo Link --tag {} --name "{}" --description "{}"'.format(
        __version__, name, desc)) == 0:
    call('github-release edit -u 3rd-KaTZe -r Link -t {} -n "{}" -d "{}"'.format(__version__, name, desc))

sleep(3)
print('uploading {}'.format(z_local))
call('github-release upload -u 3rd-KaTZe -r Link --tag {} -n "KaTZeLink_{}.7z" -f "{}"'
     .format(__version__, __version__, z_local))
{'fraction_non_alphanumeric': 0.170439414114514, 'fraction_numerical': 0.011984021304926764, 'mean_word_length': 3.9106753812636166, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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}}
{'dir': 'git-commits-cleaned', 'id': '7269054', 'n_tokens_mistral': 848, 'n_tokens_neox': 803, 'n_words': 229}