<commit_before>import sys

def read_input_file(inputFilename):
    from printer import divider
    keywords = {}
    reactants = []
    oxidizer = {}
    fuel = {}
    completeProducts = []
    additionalSpecies = {}
    with open(inputFilename) as inputFile:
        print(divider)
        print('Keyword Input:\n')
        for line in inputFile:
            print(' '*10,line,end='')
            if line.startswith('!') or line.startswith('.') or line.startswith('/'):
                pass
            elif line.upper().startswith('CONV'):
                keywords['problemType'] = 1
            elif line.upper().startswith('CONP'):
                keywords['problemType'] = 2
            elif line.upper().startswith('TEMP'):
                keywords['temperature'] = float(line.split()[1])
            elif line.upper().startswith('REAC'):
                species = line.split()[1]
                molefrac = line.split()[2]
                reactants.append(':'.join([species,molefrac]))
            elif line.upper().startswith('PRES'):<commit_msg>Add error checking for extra problem types. Fixes #4<commit_after>import sys

def read_input_file(inputFilename):
    from printer import divider
    keywords = {}
    reactants = []
    oxidizer = {}
    fuel = {}
    completeProducts = []
    additionalSpecies = {}
    with open(inputFilename) as inputFile:
        print(divider)
        print('Keyword Input:\n')
        for line in inputFile:
            print(' '*10,line,end='')
            if line.startswith('!') or line.startswith('.') or line.startswith('/'):
                pass
            elif line.upper().startswith('CONV'):
                if 'problemType' in keywords:
                     print('Error: More than one problem type keyword was specified.')
                     sys.exit(1)
                else:
                    keywords['problemType'] = 1
            elif line.upper().startswith('CONP'):
                if 'problemType' in keywords:
                    print('Error: More than one problem type keyword was specified.')
                    sys.exit(1)
                else:
                    keywords['problemType'] = 2
            elif line.upper().startswith('TEMP'):
                keywords['temperature'] = float(line.split()[1])
            elif line.upper().startswith('REAC'):
                species = line.split()[1]
                molefrac = line.split()[2]
                reactants.append(':'.join([species,molefrac]))
            elif line.upper().startswith('PRES'):
{'fraction_non_alphanumeric': 0.13444049031237643, 'fraction_numerical': 0.006722024515618822, 'mean_word_length': 1.8490990990990992, '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': '1126850', 'n_tokens_mistral': 696, 'n_tokens_neox': 657, 'n_words': 147}