<commit_before>#!/bin/bash

function usage() {
  echo
  echo "NAME"
  echo "$0 convert all JUnit assertions to AssertJ assertions"
  echo
  echo "SYNOPSIS"
  echo "$0 [Pattern]\n"
  echo
  echo "OPTIONS"
  echo " -h --help    this help"
  echo " [Pattern]    a find pattern like *Test.java (by default)"
  exit 0
}

if [ "$1" == "-h" -o "$1" == "--help" ] ;
then
 usage
fi

SED_OPTIONS=-i
FILES_PATTERN=${1:-*Test.java}
# export FILES_PATTERN=Test.java<commit_msg>Fix : provided file pattern was not correctly read<commit_after>#!/bin/bash

function usage() {
  echo
  echo "NAME"
  echo "convert-junit-assertions-to-assertj.sh - Convert most of JUnit assertions to AssertJ assertions"
  echo
  echo "It is difficult to convert ALL JUnit assertions (e.g. the ones that are multiline) but it should be good for most of them."
  echo
  echo "SYNOPSIS"
  echo "convert-junit-assertions-to-assertj.sh [Pattern]"
  echo
  echo "OPTIONS"
  echo " -h --help    this help"
  echo " [Pattern]    a find pattern, default to *Test.java if you don't provide a pattern"
  exit 0
}

if [ "$1" == "-h" -o "$1" == "--help" ] ;
then
 usage
fi

SED_OPTIONS=-i
FILES_PATTERN=*Test.java
if [ -z "$1" ]
  then
    FILES_PATTERN=$1
fi
echo "FILES_PATTERN=$FILES_PATTERN"
{'fraction_non_alphanumeric': 0.1330128205128205, 'fraction_numerical': 0.008814102564102564, 'mean_word_length': 3.3368055555555554, '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': '6436326', 'n_tokens_mistral': 470, 'n_tokens_neox': 446, 'n_words': 149}