<commit_before>import os
import glob
PREFIX = '../share/novela_trajlib/Seg_file/'
SUFFIX = '_Seg.traj'
listing = os.listdir(PREFIX)



class Trajectory:

    def __init__(self, traj):
        self.name = traj
        self.path = os.path.abspath(os.path.join(PREFIX, self.name + SUFFIX))
        if not os.path.isfile(self.path):
            raise NameError("Trajectory " + traj + " do not exist")		

    def abspath(self):
        return self.path	<commit_msg>Minor fix in trajectory.py helper<commit_after>import os
import glob
PREFIX = '../share/novela_trajlib/Seg_file/'
SUFFIX = '_Seg.traj'

class Trajectory:

    def __init__(self, traj):
        self.name = traj
        self.path = os.path.abspath(os.path.join(PREFIX, self.name + SUFFIX))
        if not os.path.isfile(self.path):
            raise NameError("Trajectory " + traj + " do not exist")		

    def abspath(self):
        return self.path	
{'fraction_non_alphanumeric': 0.12431243124312431, 'fraction_numerical': 0.0, 'mean_word_length': 2.7295081967213113, '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': '1978561', 'n_tokens_mistral': 324, 'n_tokens_neox': 315, 'n_words': 70}