<commit_before>#! /bin/sh
NAME=`dirname $0`
NAME=`dirname $NAME`/..
PYTHONPATH=$NAME:$PYTHONPATH export PYTHONPATH
CHECKER='python2.2 $NAME/pychecker2/main.py'

if [ "$1" = "generate" ]
then
    OUTPUT=' &> '
else
    OUTPUT=' 2>&1 | diff - '
fi

2>&1

eval $CHECKER tests/*.py $OUTPUT tests/expected/normal  
eval $CHECKER -?         $OUTPUT tests/expected/options 

for opt in verbose shadowBuiltins reportUnusedSelf \
    no-operator no-operatorPlus no-redefinedScope no-shadowIdentifier \
    no-syntaxErrors no-unknown no-unused 
do
   echo $opt
   eval $CHECKER --${opt} tests/*.py tests/not_there.py $OUTPUT tests/expected/$opt
done


<commit_msg>at no-selfName check test<commit_after>#! /bin/sh
NAME=`dirname $0`
NAME=`dirname $NAME`/..
PYTHONPATH=$NAME:$PYTHONPATH export PYTHONPATH
CHECKER='python2.2 $NAME/pychecker2/main.py'

if [ "$1" = "generate" ]
then
    OUTPUT=' &> '
else
    OUTPUT=' 2>&1 | diff - '
fi

2>&1

eval $CHECKER tests/*.py $OUTPUT tests/expected/normal  
eval $CHECKER -?         $OUTPUT tests/expected/options 

for opt in verbose shadowBuiltins reportUnusedSelf \
    no-operator no-operatorPlus no-redefinedScope no-shadowIdentifier \
    no-syntaxErrors no-unknown no-unused no-selfName
do
   echo $opt
   eval $CHECKER --${opt} tests/*.py tests/not_there.py $OUTPUT tests/expected/$opt
done



{'fraction_non_alphanumeric': 0.13673929376408714, 'fraction_numerical': 0.013523666416228399, 'mean_word_length': 3.6573426573426575, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4315561', 'n_tokens_mistral': 484, 'n_tokens_neox': 464, 'n_words': 114}