<commit_before>#! /bin/sh

# try to find reasonable settings, if not provided in the environment
PYTHON=${PYTHON:-`which python`}
PYLINT=${PYLINT:-`which pylint`}
BUILD_TOOLS_DIR=`dirname $0`
WORKSPACE=${WORKSPACE:-`readlink -f $BUILD_TOOLS_DIR/..`}
# WORKSPACE top level of source


cd $WORKSPACE/sasview-install
export SASVIEWMODULE=`echo sasview-*`
ln -s $SASVIEWMODULE forpylint.egg

export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview-install:$WORKSPACE/utils

cd $WORKSPACE
rm -f test/*.txt

$PYLINT --rcfile $WORKSPACE/build_tools/pylint.rc -f parseable sasview-install/forpylint.egg/sans sansview > test/sansview.txt || true

exit 0<commit_msg>Revert "attempt to have a non-version numbered egg so trends in pylint output"<commit_after>#! /bin/sh

# try to find reasonable settings, if not provided in the environment
PYTHON=${PYTHON:-`which python`}
PYLINT=${PYLINT:-`which pylint`}
BUILD_TOOLS_DIR=`dirname $0`
WORKSPACE=${WORKSPACE:-`readlink -f $BUILD_TOOLS_DIR/..`}
# WORKSPACE top level of source


cd $WORKSPACE/sasview-install
export SASVIEWMODULE=`echo sasview-*`

export PYTHONPATH=$PYTHONPATH:$WORKSPACE/sasview-install:$WORKSPACE/utils

cd $WORKSPACE
rm -f test/*.txt

$PYLINT --rcfile $WORKSPACE/build_tools/pylint.rc -f parseable sasview-install/$SASVIEWMODULE/sans sansview > test/sansview.txt || exit 0
{'fraction_non_alphanumeric': 0.12849584278155707, 'fraction_numerical': 0.0030234315948601664, 'mean_word_length': 5.720812182741117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5983004', 'n_tokens_mistral': 501, 'n_tokens_neox': 499, 'n_words': 114}