<commit_before>#!/usr/bin/env python
# PyChef.py
# 
#   Copyright (C) 2009 Diamond Light Source, <NAME>
#
#   This code is distributed under the BSD license, a copy of which is 
#   included in the root directory of this package.
#
# Main program for PyChef, using the PyChef class. Here is some example input:
# 
# labin BASE=DOSE
# range width 5 max 605
# anomalous on
# resolution 1.9
#
# This is the same program interface as used to come from the program CHEF.
#

import os
import sys
import time

from PyChef import PyChef

def banner():
    version = '1.0'
    user = os.environ.get('USER', '')
    now = time.asctime()
    
    print '#' * 60
    print '#' * 60
    print '#' * 60
    print '### PyCHEF                                           %s ###' % \
          version<commit_msg>Use subprocess on mac, didn't import - D'oh! Thanks to <NAME> for spotting this<commit_after>#!/usr/bin/env python
# PyChef.py
# 
#   Copyright (C) 2009 Diamond Light Source, <NAME>
#
#   This code is distributed under the BSD license, a copy of which is 
#   included in the root directory of this package.
#
# Main program for PyChef, using the PyChef class. Here is some example input:
# 
# labin BASE=DOSE
# range width 5 max 605
# anomalous on
# resolution 1.9
#
# This is the same program interface as used to come from the program CHEF.
#

import os
import sys
import time
import subprocess

from PyChef import PyChef

def banner():
    version = '1.0'
    user = os.environ.get('USER', '')
    now = time.asctime()
    
    print '#' * 60
    print '#' * 60
    print '#' * 60
    print '### PyCHEF                                           %s ###' % \
          version
{'fraction_non_alphanumeric': 0.10227272727272728, 'fraction_numerical': 0.0215311004784689, 'mean_word_length': 2.4212678936605316, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6246357', 'n_tokens_mistral': 558, 'n_tokens_neox': 520, 'n_words': 207}