<commit_before># Action.py

# No enums in Python 2  :-(
class Action:
    SCAN = 0
    TARGET = 1
    TARGET_LEFT = 2
    TARGET_RIGHT = 3
    TARGET_UP = 4
    TARGET_DOWN = 5

    names = ['SCAN', 'TARGET', 'TARGET_LEFT', 'TARGET_RIGHT', 'TARGET_UP', 'TARGET_DOWN']

    def name(i):
        return Action.names[i]

    def value(n):
        return Action.names.index(n)<commit_msg>Debugging<commit_after># Action.py

# No enums in Python 2  :-(
class Action:
    SCAN = 0
    TARGET = 1
    TARGET_LEFT = 2
    TARGET_RIGHT = 3
    TARGET_UP = 4
    TARGET_DOWN = 5

    names = ['SCAN', 'TARGET', 'TARGET_LEFT', 'TARGET_RIGHT', 'TARGET_UP', 'TARGET_DOWN']

    @staticmethod
    def name(i):
        return Action.names[i]

    @staticmethod
    def value(n):
        return Action.names.index(n)
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.0175, 'mean_word_length': 2.591928251121076, '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': '6389906', 'n_tokens_mistral': 304, 'n_tokens_neox': 274, 'n_words': 73}