<commit_before>#!/bin/bash
if [ "$#" -ne 2 ]; then
  echo "Failed to run sanity check: expected number of positive and negative test cases as arguments."
fi

NUM_POSITIVE=$1
NUM_NEGATIVE=$2

rm sanity.results -f
touch sanity.results

# Positive tests
for i in $(seq 1 $NUM_POSITIVE); do
  if ./test.sh php/php p$i &> /dev/null; then
    echo "p$i - PASS (GOOD)";
  else
    echo "p$i - FAIL (BAD)";
  fi
done 2>&1 | tee -a sanity.results

# Negative tests
for i in $(seq 1 $NUM_NEGATIVE); do
  if ./test.sh php/php n$i &> /dev/null; then
    echo "n$i - PASS (BAD)";
  else
    echo "n$i - FAIL (GOOD)";<commit_msg>Modified PHP sanity script<commit_after>#!/bin/bash
if [ "$#" -ne 2 ]; then
  echo "Failed to run sanity check: expected number of positive and negative test cases as arguments."
  exit 1
fi

NUM_POSITIVE=$1
NUM_NEGATIVE=$2

rm sanity.results -f
touch sanity.results

# Positive tests
for i in $(seq 1 $NUM_POSITIVE); do
  if ./test.sh php/php p$i &> /dev/null; then
    echo "p$i - PASS (GOOD)";
  else
    echo "p$i - FAIL (BAD)";
  fi
done 2>&1 | tee -a sanity.results

# Negative tests
for i in $(seq 1 $NUM_NEGATIVE); do
  if ./test.sh php/php n$i &> /dev/null; then
    echo "n$i - PASS (BAD)";
  else
    echo "n$i - FAIL (GOOD)";
{'fraction_non_alphanumeric': 0.14536741214057508, 'fraction_numerical': 0.011980830670926517, 'mean_word_length': 3.041935483870968, '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': '4350374', 'n_tokens_mistral': 520, 'n_tokens_neox': 479, 'n_words': 170}