<commit_before>#!/bin/bash

if [ $# != 0 ]; then
    echo "usage: `basename $0`"
    exit 1
fi

cat `ls *.py | grep -v _unit_tests\.py | grep -v testcase\.py` | grep -v "^\\s*$" | grep -v "^#" | wc -l

exit 0<commit_msg>Updating the bash script which computes # of LOC was updated to not count assert statements. Dave.<commit_after>#!/bin/bash
# This super simple bash script computes the number of lines of
# code (LOC) for each python source file in the current directory.
# LOC is determined by taking all of the source code (not test code),
# eliminating blank lines, comments and asserts. The LOC is then
# computed by taking counting number of lines of code of this
# modified source.

if [ $# != 0 ]; then
    echo "usage: `basename $0`"
    exit 1
fi

cat `ls *.py | \
	grep -v _unit_tests\.py | \
	grep -v testcase\.py` | \
	grep -v "^\\s*$" | \
	grep -v "^#" | \
	grep -v "^\s*assert.*" | \
	wc -l

exit 0
{'fraction_non_alphanumeric': 0.1431693989071038, 'fraction_numerical': 0.008743169398907104, 'mean_word_length': 2.8649789029535864, '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': '3244278', 'n_tokens_mistral': 351, 'n_tokens_neox': 319, 'n_words': 133}