<commit_before>package ammonite.repl.eval
import acyclic.file

/**
 * Loads the jars that make up the classpath of the scala-js-fiddle
 * compiler and re-shapes it into the correct structure to satisfy
 * scala-compile and scalajs-tools
 */
object Classpath {
  /**
   * In memory cache of all the jars used in the compiler. This takes up some
   * memory but is better than reaching all over the filesystem every time we
   * want to do something.
   */

  var current = getClass.getClassLoader
  val urls = collection.mutable.Buffer.empty[java.io.File]
  urls.appendAll(
    System.getProperty("sun.boot.class.path")
          .split(":")
          .map(new java.io.File(_))
  )
  while(current != null){
    current match{
      case t: java.net.URLClassLoader =>
        urls.appendAll(t.getURLs.map(u => new java.io.File(u.toURI)))
      case _ =>
    }
    current = current.getParent
  }
  println("Loaded\n" + urls)

  val (jarDeps, dirDeps) = urls.filter(_.exists).partition(_.toString.endsWith(".jar"))
}<commit_msg>Remove dumb print<commit_after>package ammonite.repl.eval
import acyclic.file

/**
 * Loads the jars that make up the classpath of the scala-js-fiddle
 * compiler and re-shapes it into the correct structure to satisfy
 * scala-compile and scalajs-tools
 */
object Classpath {
  /**
   * In memory cache of all the jars used in the compiler. This takes up some
   * memory but is better than reaching all over the filesystem every time we
   * want to do something.
   */

  var current = getClass.getClassLoader
  val urls = collection.mutable.Buffer.empty[java.io.File]
  urls.appendAll(
    System.getProperty("sun.boot.class.path")
          .split(":")
          .map(new java.io.File(_))
  )
  while(current != null){
    current match{
      case t: java.net.URLClassLoader =>
        urls.appendAll(t.getURLs.map(u => new java.io.File(u.toURI)))
      case _ =>
    }
    current = current.getParent
  }

  val (jarDeps, dirDeps) = urls.filter(_.exists).partition(_.toString.endsWith(".jar"))
}
{'fraction_non_alphanumeric': 0.11544153922052294, 'fraction_numerical': 0.0, 'mean_word_length': 3.015841584158416, 'pattern_counts': {'":': 2, '<': 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': '2009771', 'n_tokens_mistral': 654, 'n_tokens_neox': 643, 'n_words': 184}