<commit_before>#!/usr/bin/python

import os, sys, re

# Path to eng checkout root directory. To use this as a git pre-commit
# hook, copy this script to .git/hooks/pre-commit, set basepath as the
# absolute path to your volt checkout and set ascommithook to true.
basepath = "../"
ascommithook = False

prunelist = ('hsqldb19b3',
             'hsqldb',
             'jetty716',
             'proj_gen',
             'jni_md.h',
             'jni.h',
             'org_voltdb_jni_ExecutionEngine.h',
             'org_voltdb_utils_DBBPool.h',
             'org_voltdb_utils_DBBPool_DBBContainer.h',
             'xml2',
             'simplejson',
             'projectfile',
             'deploymentfile',
             'xml',
             'helloworld',
             'jaxb')
<commit_msg>Improve license check script so you can just use it as git commit hook by just linking to it.<commit_after>#!/usr/bin/python

import os, sys, re

# Path to eng checkout root directory. To use this as a git pre-commit hook,
# create a symlink to this file in .git/hooks with the name pre-commit
basepath = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) + os.sep
ascommithook = False

prunelist = ('hsqldb19b3',
             'hsqldb',
             'jetty716',
             'proj_gen',
             'jni_md.h',
             'jni.h',
             'org_voltdb_jni_ExecutionEngine.h',
             'org_voltdb_utils_DBBPool.h',
             'org_voltdb_utils_DBBPool_DBBContainer.h',
             'xml2',
             'simplejson',
             'projectfile',
             'deploymentfile',
             'xml',
             'helloworld',
             'jaxb')

{'fraction_non_alphanumeric': 0.1053268765133172, 'fraction_numerical': 0.00847457627118644, 'mean_word_length': 1.854922279792746, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '7021750', 'n_tokens_mistral': 540, 'n_tokens_neox': 525, 'n_words': 130}