<commit_before># -*- coding: utf-8 -*-
"""
This script detects the modified files thanks to 'git status' command

"""
from __future__ import unicode_literals
from __future__ import print_function

import imp
import os.path
import re
import subprocess
import sys


class CommandWrapper(object):
    """Base class to run command"""

    def _run_command(self, command_line):
        """run a command"""
        try:
            return subprocess.check_output(command_line.split(' ')), 0
        except subprocess.CalledProcessError, ex:
            return ex.output, ex.returncode<commit_msg>Py3 exception style<commit_after># -*- coding: utf-8 -*-
"""
This script detects the modified files thanks to 'git status' command

"""
from __future__ import unicode_literals
from __future__ import print_function

import imp
import os.path
import re
import subprocess
import sys


class CommandWrapper(object):
    """Base class to run command"""

    def _run_command(self, command_line):
        """run a command"""
        try:
            return subprocess.check_output(command_line.split(' ')), 0
        except subprocess.CalledProcessError as ex:
            return ex.output, ex.returncode
{'fraction_non_alphanumeric': 0.09343434343434344, 'fraction_numerical': 0.004208754208754209, 'mean_word_length': 3.469924812030075, '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': '1298968', 'n_tokens_mistral': 328, 'n_tokens_neox': 319, 'n_words': 112}