<commit_before>#!/usr/bin/env python

import os, re, sys

class CovertCSHSetupFiles(object):
    def __init__( self, argv ):
        osshell = os.getenv('SHELL')
        # env
        if osshell.find("fish") >= 0:
            self.shell = "fish"
        elif osshell.find("tcsh") >= 0:
            self.shell = "tcsh"
        elif osshell.find("bash") >= 0:
            self.shell = "bash"
        elif osshell.find("zsh") >= 0:
            self.shell = "zsh"
        else:
            return None


        if self.shell == "zsh":
            self.env = lambda k, v: "export %s=\"%s\"" % (k, v)
            self.path = lambda v: "export PATH=\"\"%s\":$PATH\"" % v
        elif self.shell == "fish":
            self.env = lambda k, v: "set -x %s '%s'" % (k, v)
            self.path = lambda v: "set -xg PATH $PATH %s" % v
        else:
            self.env = lambda k, v: None
            self.path = lambda v: None
<commit_msg>Added bash-shell output<commit_after>#!/usr/bin/env python

import os, re, sys

class CovertCSHSetupFiles(object):
    def __init__( self, argv ):
        osshell = os.getenv('SHELL')
        # env
        if osshell.find("fish") >= 0:
            self.shell = "fish"
        elif osshell.find("tcsh") >= 0:
            self.shell = "tcsh"
        elif osshell.find("bash") >= 0:
            self.shell = "bash"
        elif osshell.find("zsh") >= 0:
            self.shell = "zsh"
        else:
            return None


        if self.shell == "zsh" or self.shell == "bash":
            self.env = lambda k, v: "export %s=\"%s\"" % (k, v)
            self.path = lambda v: "export PATH=\"\"%s\":$PATH\"" % v
        elif self.shell == "fish":
            self.env = lambda k, v: "set -x %s '%s'" % (k, v)
            self.path = lambda v: "set -xg PATH $PATH %s" % v
        else:
            self.env = lambda k, v: None
            self.path = lambda v: None

{'fraction_non_alphanumeric': 0.16367476240760295, 'fraction_numerical': 0.004223864836325237, 'mean_word_length': 1.6137931034482758, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 11, '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': '3282979', 'n_tokens_mistral': 665, 'n_tokens_neox': 630, 'n_words': 179}