<commit_before>require 'formula'

class ScalaDocs < Formula
  homepage 'http://www.scala-lang.org/'
  url 'http://www.scala-lang.org/downloads/distrib/files/scala-docs-2.9.2.zip'
  sha1 'b49ef500314d968ddbd683b64628925a747f35e5'

  devel do
    url 'http://www.scala-lang.org/downloads/distrib/files/scala-docs-2.10.0-RC2.zip'
    sha1 'b4ba311347fd115c75932ef51fd96801c064b387'
  end

end

class ScalaCompletion < Formula
  homepage 'http://www.scala-lang.org/'
  url 'https://raw.github.com/scala/scala-dist/27bc0c25145a83691e3678c7dda602e765e13413/completion.d/2.9.1/scala'
  version '2.9.1'
  sha1 'e2fd99fe31a9fb687a2deaf049265c605692c997'
end

class Scala < Formula
  homepage 'http://www.scala-lang.org/'
  url 'http://www.scala-lang.org/downloads/distrib/files/scala-2.9.2.tgz'
  sha1 '806fc1d91bda82d6a584172d7742531386ae68fb'

  devel do
    url 'http://www.scala-lang.org/downloads/distrib/files/scala-2.10.0-RC2.tgz'
    sha1 '87b2a9540470a68b518e743cbafb325c97e31a2f'
    version '2.10.0-RC2'
  end

  option 'with-docs', 'Also install library documentation'

  def install
    rm_f Dir["bin/*.bat"]
    doc.install Dir['doc/*']
    man1.install Dir['man/man1/*']
    libexec.install Dir['*']
    bin.install_symlink Dir["#{libexec}/bin/*"]
    ScalaCompletion.new.brew { (prefix/'etc/bash_completion.d').install 'scala' }
    ScalaDocs.new.brew { doc.install Dir['*'] } if build.include? 'with-docs'
  end
end
<commit_msg>scala devel 2.10.0-RC3<commit_after>require 'formula'

class ScalaDocs < Formula
  homepage 'http://www.scala-lang.org/'
  url 'http://www.scala-lang.org/downloads/distrib/files/scala-docs-2.9.2.zip'
  sha1 'b49ef500314d968ddbd683b64628925a747f35e5'

  devel do
    url 'http://www.scala-lang.org/downloads/distrib/files/scala-docs-2.10.0-RC3.zip'
    sha1 'b3f5a95e2256a059087c95d49573550feff78ff6'
  end

end

class ScalaCompletion < Formula
  homepage 'http://www.scala-lang.org/'
  url 'https://raw.github.com/scala/scala-dist/27bc0c25145a83691e3678c7dda602e765e13413/completion.d/2.9.1/scala'
  version '2.9.1'
  sha1 'e2fd99fe31a9fb687a2deaf049265c605692c997'
end

class Scala < Formula
  homepage 'http://www.scala-lang.org/'
  url 'http://www.scala-lang.org/downloads/distrib/files/scala-2.9.2.tgz'
  sha1 '806fc1d91bda82d6a584172d7742531386ae68fb'

  devel do
    url 'http://www.scala-lang.org/downloads/distrib/files/scala-2.10.0-RC3.tgz'
    sha1 '0974a762aff8206ff6fd9e59094f86a1c19b76ae'
    version '2.10.0-RC3'
  end

  option 'with-docs', 'Also install library documentation'

  def install
    rm_f Dir["bin/*.bat"]
    doc.install Dir['doc/*']
    man1.install Dir['man/man1/*']
    libexec.install Dir['*']
    bin.install_symlink Dir["#{libexec}/bin/*"]
    ScalaCompletion.new.brew { (prefix/'etc/bash_completion.d').install 'scala' }
    ScalaDocs.new.brew { doc.install Dir['*'] } if build.include? 'with-docs'
  end
end

{'fraction_non_alphanumeric': 0.14890662964248524, 'fraction_numerical': 0.13779937521693855, 'mean_word_length': 3.901360544217687, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 14, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3692261', 'n_tokens_mistral': 1442, 'n_tokens_neox': 1210, 'n_words': 158}