<commit_before>#!/bin/bash
#====================================================================================================
#
# Runs grunt for all simulations.
# Command-line args are passed through to grunt.
# With no args, this runs the default grunt task (build).
#
# Author: <NAME>
# Author: <NAME>
#
#====================================================================================================

CHIPPER_BIN=`dirname "${BASH_SOURCE[0]}"`
WORKING_DIR=${CHIPPER_BIN}/../..
INPUT_FILE=${WORKING_DIR}/chipper/data/active-runnables
USAGE="usage: `basename $0` [-f fileOfRepoNames] gruntTask"

# Exit immediately on Ctrl-C
trap "exit 1" SIGINT

# Read command line args
while getopts "f:" opt; do
  case $opt in
    f) INPUT_FILE=${OPTARG};;
    ?) echo ${USAGE}
       exit 1;;
  esac<commit_msg>#295 indicate that gruntTask is optional<commit_after>#!/bin/bash
#====================================================================================================
#
# Runs grunt for all simulations.
# Command-line args are passed through to grunt.
# With no args, this runs the default grunt task (build).
#
# Author: <NAME>
# Author: <NAME>
#
#====================================================================================================

CHIPPER_BIN=`dirname "${BASH_SOURCE[0]}"`
WORKING_DIR=${CHIPPER_BIN}/../..
INPUT_FILE=${WORKING_DIR}/chipper/data/active-runnables
USAGE="usage: `basename $0` [-f fileOfRepoNames] [gruntTask]"

# Exit immediately on Ctrl-C
trap "exit 1" SIGINT

# Read command line args
while getopts "f:" opt; do
  case $opt in
    f) INPUT_FILE=${OPTARG};;
    ?) echo ${USAGE}
       exit 1;;
  esac
{'fraction_non_alphanumeric': 0.356838905775076, 'fraction_numerical': 0.006686930091185411, 'mean_word_length': 5.915966386554622, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3463679', 'n_tokens_mistral': 503, 'n_tokens_neox': 469, 'n_words': 132}