<commit_before>import os
import sys
import json
sys.path.insert(0, '..')
from athlib.codes import FIELD_EVENTS
from athlib import hungarian_score, check_event_code, parse_hms

FILES = [
    'data/iaaf_scoring_tables_2017_outdoors.json',
    'data/iaaf_scoring_tables_2017_indoor.json'
    ]

_scores = None
def load_scores():
    global _scores
    if not _scores:
        points = 0
        _scores = {}

        for filename in FILES:
            if 'outdoors' in filename:
                where = 'OUT'
            else:
                where = 'IN'
            f = open(filename, 'r')
            stuff = json.load(f)

            for gender in stuff.keys():
                level2 = stuff[gender]
                for event_code in level2.keys():

                    series = level2[event_code]
                    points += len(series)
<commit_msg>Mismatch over symbol used for Indoor; now IND throughout<commit_after>import os
import sys
import json
sys.path.insert(0, '..')
from athlib.codes import FIELD_EVENTS
from athlib import hungarian_score, check_event_code, parse_hms

FILES = [
    'data/iaaf_scoring_tables_2017_outdoors.json',
    'data/iaaf_scoring_tables_2017_indoor.json'
    ]

_scores = None
def load_scores():
    global _scores
    if not _scores:
        points = 0
        _scores = {}

        for filename in FILES:
            if 'outdoors' in filename:
                where = 'OUT'
            else:
                where = 'IND'
            f = open(filename, 'r')
            stuff = json.load(f)

            for gender in stuff.keys():
                level2 = stuff[gender]
                for event_code in level2.keys():

                    series = level2[event_code]
                    points += len(series)

{'fraction_non_alphanumeric': 0.08618721461187215, 'fraction_numerical': 0.014840182648401826, 'mean_word_length': 1.8411669367909238, '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': '6921079', 'n_tokens_mistral': 558, 'n_tokens_neox': 512, 'n_words': 136}