<commit_before>package scala.tools.scala4ant;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.taskdefs.Javac;
import org.apache.tools.ant.util._;
import java.io.File;
/*import java.util._; */

/** Scala AntTask. adapted from (see below for additions to Scala license)
 *  jaco.framework.ant.AntCompilerTask  (c) <NAME>, and
 *  org.apache.tools.ant.taskdefs.Javac (c) the Apache Software Foundation
 *
 * @author  <NAME>
 * @version 1.6
 * $Id$
 */

class AntTask extends Javac {

  private val fileUtils:FileUtils  = FileUtils.newFileUtils();

  var force : boolean = false;
  var xmarkup : boolean = false;

  override def execute():unit = {

    try {

      Class.forName("ch.epfl.lamp.fjbg.JFieldOrMethod"); /* sanity check */

    } catch {
      case e:ClassNotFoundException =>
        throw new BuildException("Cannot run scala4ant.\nIt seems fjbg.jar is not in your CLASSPATH.");
    };
<commit_msg>more verbose error message<commit_after>package scala.tools.scala4ant;

import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.taskdefs.Javac;
import org.apache.tools.ant.util._;
import java.io.File;
/*import java.util._; */

/** Scala AntTask. adapted from (see below for additions to Scala license)
 *  jaco.framework.ant.AntCompilerTask  (c) <NAME>, and
 *  org.apache.tools.ant.taskdefs.Javac (c) the Apache Software Foundation
 *
 * @author  <NAME>
 * @version 1.6
 * $Id$
 */

class AntTask extends Javac {

  private val fileUtils:FileUtils  = FileUtils.newFileUtils();

  var force : boolean = false;
  var xmarkup : boolean = false;

  override def execute():unit = {

    try {

      Class.forName("ch.epfl.lamp.fjbg.JFieldOrMethod"); /* sanity check */

    } catch {
      case e:ClassNotFoundException =>
        Console.println("Cannot run scala4ant.\nIt seems fjbg.jar is not in your CLASSPATH.");
        throw new BuildException("Cannot run scala4ant.\nIt seems fjbg.jar is not in your CLASSPATH.");
    };

{'fraction_non_alphanumeric': 0.1248780487804878, 'fraction_numerical': 0.004390243902439025, 'mean_word_length': 3.5275938189845473, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5440551', 'n_tokens_mistral': 692, 'n_tokens_neox': 673, 'n_words': 169}