<commit_before>from checkio_referee import RefereeCodeGolf

import settings
import settings_env
from tests import TESTS

cover = """def cover(func, data):
    return f(tuple(str(x) for x in data))
"""


class Referee(RefereeCodeGolf):
    TESTS = TESTS
    EXECUTABLE_PATH = settings.EXECUTABLE_PATH
    CURRENT_ENV = settings_env.CURRENT_ENV
    FUNCTION_NAME = "golf"
    DEFAULT_LENGTH = 200
    BASE_POINTS = 15
    ENV_COVERCODE = {
        "python_2": cover,
        "python_3": cover,
        "javascript": None
    }<commit_msg>fix golf<commit_after>from checkio_referee import RefereeCodeGolf, representations

import settings
import settings_env
from tests import TESTS

cover = """def cover(func, data):
    return f(tuple(str(x) for x in data))
"""


class Referee(RefereeCodeGolf):
    TESTS = TESTS
    EXECUTABLE_PATH = settings.EXECUTABLE_PATH
    CURRENT_ENV = settings_env.CURRENT_ENV
    FUNCTION_NAME = "golf"
    DEFAULT_MAX_CODE_LENGTH = 200
    BASE_POINTS = 15
    ENV_COVERCODE = {
        "python_2": cover,
        "python_3": cover,
        "javascript": None
    }
    CALLED_REPRESENTATIONS = {
        "python_2": representations.py_tuple_representation,
        "python_3": representations.py_tuple_representation,
        "javascript": None
    }
{'fraction_non_alphanumeric': 0.08678655199374512, 'fraction_numerical': 0.012509773260359656, 'mean_word_length': 3.491228070175439, 'pattern_counts': {'":': 9, '<': 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': '4910228', 'n_tokens_mistral': 429, 'n_tokens_neox': 412, 'n_words': 95}