<commit_before>import subprocess
def remove(files):
    """
    this function can remove files provided
    """
    if isinstance(files,str):
        subprocess.call('rm {file}'.format(file=files),shell=True)
    if isinstance(files,list):
        cmd = ''
        for f in files:
            cmd = cmd + 'rm {file} & '.format(file=f)
        subprocess.call(cmd[:-2],shell=True)
    
        <commit_msg>add get parameters function<commit_after>import subprocess
def remove(files):
    """
    this function can remove files provided
    """
    if isinstance(files,str):
        subprocess.call('rm {file}'.format(file=files),shell=True)
    if isinstance(files,list):
        cmd = ''
        for f in files:
            cmd = cmd + 'rm {file} & '.format(file=f)
        subprocess.call(cmd[:-3],shell=True)
    

def get_parameters(parFile):
    """
    This function list all parameters for all pipelines.
    And return a dictionary
    """
    res = open(parFile)
    dic = {}
    for line in res:
        if line[0].isalpha():
            item = line.split('\t')
            value = item[1] # combine all values into a single string
            if ',' in value:
                rg = value.split(',')
                rg[-1] = rg[-1][:-1]
                dic[item[0]] = rg
            else:
                dic[item[0]] = item[1][:-1]
        else:
            continue
    if isinstance(dic['readGroup'],str):
                dic['readGroup'] = [dic['readGroup'][:-1]]
    return dic

{'fraction_non_alphanumeric': 0.14151576123407109, 'fraction_numerical': 0.008048289738430584, 'mean_word_length': 1.9899799599198398, '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': '2320703', 'n_tokens_mistral': 452, 'n_tokens_neox': 446, 'n_words': 111}