<commit_before>from subprocess import call, check_output

class TestGit:
    """ Test that the user has a modern version of git installed """<commit_msg>Add tests for git installation<commit_after>from subprocess import call, check_output

class TestGit:
    """ Test that the user has a modern version of git installed """
    
    def git_version(self):
        """ returns a tuple with execution of git --version """
        exit_code = call(["git", "--version"])
        output = check_output(["git", "--version"]).decode("utf-8").lstrip().rstrip()
        return (output, exit_code)
    
    def test_git_version(self):
        """ tests the output from git_version() """
        assert self.git_version()[1] == 0
        assert self.git_version()[0].index('git version') >= 0
{'fraction_non_alphanumeric': 0.13060179257362356, 'fraction_numerical': 0.006402048655569782, 'mean_word_length': 3.320441988950276, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '7034540', 'n_tokens_mistral': 216, 'n_tokens_neox': 211, 'n_words': 73}