<commit_before>#!/bin/bash
if [ ! $# -eq 2 ]; then
  echo Usage: ./ltdiff.bash old_branch new_branch
  echo e.g. ./ltdiff.bash V_1_6 V_1_7
  echo "     ./ltdiff.bash V_1_7 trunk"
  exit -1
fi

path_old="http://languagetool.svn.sourceforge.net/viewvc/languagetool/branches/$1/src/rules"
if [ $2 == "trunk" ]; then
  path_new="http://languagetool.svn.sourceforge.net/viewvc/languagetool/trunk/JLanguageTool/src/rules"
else
  path_new="http://languagetool.svn.sourceforge.net/viewvc/languagetool/branches/$2/src/rules"
fi

javac ltdiff.java -Xlint:deprecation

if [ ! $? -eq 0 ]; then
  echo javac failed<commit_msg>adapt to renamed file<commit_after>#!/bin/bash
if [ ! $# -eq 2 ]; then
  echo Usage: ./ltdiff.bash old_branch new_branch
  echo e.g. ./ltdiff.bash V_1_6 V_1_7
  echo "     ./ltdiff.bash V_1_7 trunk"
  exit -1
fi

path_old="http://languagetool.svn.sourceforge.net/viewvc/languagetool/branches/$1/src/rules"
if [ $2 == "trunk" ]; then
  path_new="http://languagetool.svn.sourceforge.net/viewvc/languagetool/trunk/JLanguageTool/src/rules"
else
  path_new="http://languagetool.svn.sourceforge.net/viewvc/languagetool/branches/$2/src/rules"
fi

javac VersionDiffGenerator.java -Xlint:deprecation

if [ ! $? -eq 0 ]; then
  echo javac failed
{'fraction_non_alphanumeric': 0.15064102564102563, 'fraction_numerical': 0.019230769230769232, 'mean_word_length': 3.9563492063492065, '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': '1353045', 'n_tokens_mistral': 545, 'n_tokens_neox': 525, 'n_words': 84}