<commit_before>require 'formula'

class Scala < Formula
  homepage 'http://www.scala-lang.org/'
  url 'http://www.scala-lang.org/files/archive/scala-2.10.4.tgz'
  sha1 '970f779f155719838e81a267a7418a958fd4c13f'

  devel do
    url 'http://downloads.typesafe.com/scala/2.11.0-RC4/scala-2.11.0-RC4.tgz'
    sha1 '09c0f022a4f03a0565a3454eabc0b3308fe4de2a'
    version '2.11.0-RC4'

    resource 'docs' do
      url 'http://downloads.typesafe.com/scala/2.11.0-RC4/scala-docs-2.11.0-RC4.zip'
      sha1 'a2138121ff3b4e2c31195a798f14bddf775250a5'
      version '2.11.0-RC4'
    end
  end

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

  resource 'docs' do
    url 'http://www.scala-lang.org/files/archive/scala-docs-2.10.4.zip'
    sha1 '7ad47f9634fd2f452cadf35f7241102207c1a1cc'
  end

  resource 'completion' do
    url 'https://raw.github.com/scala/scala-dist/27bc0c25145a83691e3678c7dda602e765e13413/completion.d/2.9.1/scala'
    sha1 'e2fd99fe31a9fb687a2deaf049265c605692c997'
  end

  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/*"]

    bash_completion.install resource('completion')

    if build.with? 'docs'
      branch = build.stable? ? 'scala-2.10' : 'scala-2.11'<commit_msg>scala 2.11.0<commit_after>require 'formula'

class Scala < Formula
  homepage 'http://www.scala-lang.org/'
  url 'http://www.scala-lang.org/files/archive/scala-2.11.0.tgz'
  sha1 '65d1ef6231b4f08444dd10a015d2d82ea5444486'

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

  resource 'docs' do
    url 'http://www.scala-lang.org/files/archive/scala-docs-2.11.0.zip'
    sha1 '4194808c15c928e902e9e36dbaaab05ca660213f'
  end

  resource 'completion' do
    url 'https://raw.github.com/scala/scala-dist/27bc0c25145a83691e3678c7dda602e765e13413/completion.d/2.9.1/scala'
    sha1 'e2fd99fe31a9fb687a2deaf049265c605692c997'
  end

  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/*"]

    bash_completion.install resource('completion')

    if build.with? 'docs'
      branch = build.stable? ? 'scala-2.10' : 'scala-2.11'
{'fraction_non_alphanumeric': 0.14680105170902716, 'fraction_numerical': 0.15249780893952672, 'mean_word_length': 3.6028225806451615, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5168474', 'n_tokens_mistral': 1156, 'n_tokens_neox': 943, 'n_words': 127}