<commit_before>import numpy as np
import nibabel as nib
import matplotlib.pyplot as plt
import os




def cond_file(subject, run, cond):
        """ Opens a condition txt for a subject and one of their runs. """
        sub_path = os.path.realpath('../../data/ds105/'+subject)
        sub_path_cond= os.path.join(sub_path,'model/model001/onsets','task001_run00'+str(run),'cond00'+str(cond))
        return sub_path_cond

def list_cond_file(subject, run):
        sub_path = os.path.realpath('../../data/ds105/'+str(subject))
        sub_path_cond= sub_path + '/model/model001/onsets'
        cond_path = [ i for i in os.listdir(sub_path_cond) ]
        list_cond_path= [sub_path_cond + '/' + i for i in cond_path]
        cond_txt = [i for i in os.listdir(list_cond_path[run-1])]
        cond_paths = [list_cond_path[run-1] + '/' + i for i in cond_txt]
        return cond_paths
<commit_msg>Fixed issue that would pick up hidden file<commit_after>import numpy as np
import nibabel as nib
import matplotlib.pyplot as plt
import os




def cond_file(subject, run, cond):
        """ Opens a condition txt for a subject and one of their runs. """
        sub_path = os.path.realpath('../../data/ds105/'+subject)
        sub_path_cond= os.path.join(sub_path,'model/model001/onsets','task001_run00'+str(run),'cond00'+str(cond))
        return sub_path_cond

def list_cond_file(subject, run):
        sub_path = os.path.realpath('../../data/ds105/'+str(subject))
        sub_path_cond= sub_path + '/model/model001/onsets'
        cond_path = [ i for i in os.listdir(sub_path_cond) ]
        list_cond_path= [sub_path_cond + '/' + i for i in cond_path if not (i.startswith('.'))]
        cond_txt = [i for i in os.listdir(list_cond_path[run-1])]
        cond_paths = [list_cond_path[run-1] + '/' + i for i in cond_txt if not (i.startswith('.'))]
        return cond_paths

{'fraction_non_alphanumeric': 0.13404825737265416, 'fraction_numerical': 0.022520107238605896, 'mean_word_length': 3.1466666666666665, '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': '4480945', 'n_tokens_mistral': 676, 'n_tokens_neox': 643, 'n_words': 157}