<commit_before># -*- coding: utf-8 -*-

TASKTYPE_BANK = 'bank'
TASKTYPE_TCC = 'tkk'


def get_score_columns(task_type):
    if (task_type == TASKTYPE_BANK):
        return ['sberbank', 'vtb', 'gazprom', 'alfabank', 'bankmoskvy',
                'raiffeisen', 'uralsib', 'rshb']
    if (task_type == TASKTYPE_TCC):
        return ['beeline', 'mts', 'megafon', 'tele2', 'rostelecom', 'komstar',
                'skylink']


# Заменить на check_row
# def next_row(cursor, expected_score, vector_type):
#     # filtering rows
#     if vector_type == 'train':
#         notFound = True
#         while notFound:
#             notFound = False
#             next_row = cursor.fetchone()
#             if next_row is not None:
#                 # skip text and id
#                 for i in range(2, len(next_row)):
#                     if (next_row[i] is not None and is_int(next_row[i]) and
#                        expected_score != int(next_row[i])):
#                         notFound = True
#                         break
#             else:
#                 break
#     elif vector_type == 'test':
#         next_row = cursor.fetchone()
#     return next_row


def is_int(s):
    try:
        int(s)
        return True
    except ValueError:<commit_msg>Исправлена сборка для ttc задачи, удалены комментарии<commit_after># -*- coding: utf-8 -*-

TASKTYPE_BANK = 'bank'
TASKTYPE_TCC = 'ttk'


def get_score_columns(task_type):
    if (task_type == TASKTYPE_BANK):
        return ['sberbank', 'vtb', 'gazprom', 'alfabank', 'bankmoskvy',
                'raiffeisen', 'uralsib', 'rshb']
    if (task_type == TASKTYPE_TCC):
        return ['beeline', 'mts', 'megafon', 'tele2', 'rostelecom', 'komstar',
                'skylink']


def is_int(s):
    try:
        int(s)
        return True
    except ValueError:
{'fraction_non_alphanumeric': 0.13410596026490065, 'fraction_numerical': 0.0027593818984547464, 'mean_word_length': 2.0521885521885523, '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': '6295918', 'n_tokens_mistral': 622, 'n_tokens_neox': 620, 'n_words': 141}