<commit_before>import numpy as np
import time
from flare import struc, env
from flare import otf_parser
from flare.mff.mff_mc import MappedForceField
from flare import mc_simple
from flare.lammps import lammps_calculator
import pickle
import os


# ASSUMPTION: You have a Lammps executable with the mff pair style with $lmp
# as the corresponding environment variable.
def test_parse_header():
    # -------------------------------------------------------------------------
    #                  reconstruct gp model from otf snippet
    # -------------------------------------------------------------------------

    file_name = 'test_files/AgI_snippet.out'
    hyp_no = 2
<commit_msg>Now skips if $lmp is not found<commit_after>import numpy as np
import time
from flare import struc, env
from flare import otf_parser
from flare.mff.mff_mc import MappedForceField
from flare import mc_simple
from flare.lammps import lammps_calculator
import pickle
import os


# ASSUMPTION: You have a Lammps executable with the mff pair style with $lmp
# as the corresponding environment variable.
@pytest.mark.skipif(not os.environ.get('lmp',
                          False), reason='lmp not found '
                                  'in environment: Please install LAMMPS '
                                  'and set the $lmp env. '
                                  'variable to point to the executatble.')
def test_parse_header():
    # -------------------------------------------------------------------------
    #                  reconstruct gp model from otf snippet
    # -------------------------------------------------------------------------

    file_name = 'test_files/AgI_snippet.out'
    hyp_no = 2

{'fraction_non_alphanumeric': 0.21512309495896834, 'fraction_numerical': 0.0011723329425556857, 'mean_word_length': 1.4739130434782608, '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': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3902309', 'n_tokens_mistral': 440, 'n_tokens_neox': 412, 'n_words': 150}