<commit_before>/* NEST (New Scala Test)
 * Copyright 2007-2008 LAMP/EPFL
 * @author <NAME>
 */

// $Id$

package scala.tools.partest.nest

import java.io.{File, FilenameFilter, IOException, StringWriter}
import java.net.URI

object FileManager {

  val PATH_SEP  = File.pathSeparatorChar
  val CLASSPATH = System.getProperty("java.class.path", ".")
  val PREFIX    = System.getProperty("user.dir", ".")+"/.."
  val SCALAHOME = System.getProperty("scala.home", ".")
  val JAVACMD   = System.getProperty("scalatest.javacmd", "java")

/*
if [ -d "$PREFIX/test" ]; then
    TESTROOT="$PREFIX/test";
elif [ -d "$PREFIX/misc/scala-test" ]; then
    TESTROOT="$PREFIX/misc/scala-test";
else
    abort "Test directory not found";
*/
  val TESTROOT = {
    val test = new File(PREFIX, "test")
    val scala_test = new File(PREFIX, "misc/scala-test")
    val testroot =
      if (test.exists && test.isDirectory)
        test
      else if (scala_test.exists && scala_test.isDirectory)
        scala_test
      else
        error("Test directory not found")<commit_msg>Adjusted some directories<commit_after>/* NEST (New Scala Test)
 * Copyright 2007-2008 LAMP/EPFL
 * @author <NAME>
 */

// $Id$

package scala.tools.partest.nest

import java.io.{File, FilenameFilter, IOException, StringWriter}
import java.net.URI

object FileManager {

  val PATH_SEP  = File.pathSeparatorChar
  val CLASSPATH = System.getProperty("java.class.path", ".")
  val SCALAHOME = System.getProperty("scala.home", ".")
  NestUI.verbose("SCALAHOME: "+SCALAHOME)
  val JAVACMD   = System.getProperty("scalatest.javacmd", "java")
  val PREFIX    = (new File(SCALAHOME)).getAbsolutePath

/*
if [ -d "$PREFIX/test" ]; then
    TESTROOT="$PREFIX/test";
elif [ -d "$PREFIX/misc/scala-test" ]; then
    TESTROOT="$PREFIX/misc/scala-test";
else
    abort "Test directory not found";
*/
  val TESTROOT = {
    val test = new File(SCALAHOME, "test")
    val scala_test = new File(SCALAHOME, "misc/scala-test")
    val testroot =
      if (test.isDirectory)
        test
      else if (scala_test.isDirectory)
        scala_test
      else
        error("Test directory not found")
{'fraction_non_alphanumeric': 0.1421889616463985, 'fraction_numerical': 0.007483629560336763, 'mean_word_length': 3.3564154786150713, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3015079', 'n_tokens_mistral': 752, 'n_tokens_neox': 733, 'n_words': 166}