<commit_before>from cc_server.scheduling_strategies.container_allocation import binpack, spread
from cc_server.scheduling_strategies.task_selection import FIFO
from cc_server.scheduling_strategies.caching import OneCachePerTaskNoDuplicates
from cc_server.helper import generate_secret


def application_container_prototype(container_ram):
    return {
        'state': -1,
        'created_at': None,
        'transitions': [],
        'username': None,
        'task_id': None,
        'data_container_ids': [],
        'callbacks': [],
        'callback_key': generate_secret(),
        'telemetry': None,
        'cluster_node': None,
        'container_ram': container_ram
    }


class Scheduler:
    def __init__(self, config, tee, mongo, state_handler, cluster):
        self._config = config
        self._tee = tee
        self._mongo = mongo
        self._state_handler = state_handler
        self._cluster = cluster

        # scheduling strategies
        if config.defaults['scheduling_strategies']['container_allocation'] == 'spread':
            container_allocation = spread<commit_msg>remove field telemetry from application_container_prototype<commit_after>from cc_server.scheduling_strategies.container_allocation import binpack, spread
from cc_server.scheduling_strategies.task_selection import FIFO
from cc_server.scheduling_strategies.caching import OneCachePerTaskNoDuplicates
from cc_server.helper import generate_secret


def application_container_prototype(container_ram):
    return {
        'state': -1,
        'created_at': None,
        'transitions': [],
        'username': None,
        'task_id': None,
        'data_container_ids': [],
        'callbacks': [],
        'callback_key': generate_secret(),
        'cluster_node': None,
        'container_ram': container_ram
    }


class Scheduler:
    def __init__(self, config, tee, mongo, state_handler, cluster):
        self._config = config
        self._tee = tee
        self._mongo = mongo
        self._state_handler = state_handler
        self._cluster = cluster

        # scheduling strategies
        if config.defaults['scheduling_strategies']['container_allocation'] == 'spread':
            container_allocation = spread
{'fraction_non_alphanumeric': 0.09078651685393259, 'fraction_numerical': 0.0008988764044943821, 'mean_word_length': 3.2562141491395793, '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': '4476107', 'n_tokens_mistral': 630, 'n_tokens_neox': 607, 'n_words': 131}