<commit_before>require 'formula'

class Go < Formula
  if ARGV.include? "--use-git"
    url 'https://github.com/tav/go.git', :tag => 'release.r59'
    head 'https://github.com/tav/go.git'
  else
    url 'http://go.googlecode.com/hg/', :revision => 'release.r59'
    head 'http://go.googlecode.com/hg/'
  end
  version 'r59'
  homepage 'http://golang.org'

  skip_clean 'bin'

  def options
    [["--use-git", "Use git mirror instead of official hg repository"]]
  end

  def install
    prefix.install %w[src include test doc misc lib favicon.ico AUTHORS]
    Dir.chdir prefix
    mkdir %w[pkg bin]

    Dir.chdir 'src' do
      # Tests take a very long time to run. Build only
      system "./make.bash"
    end
<commit_msg>go: fix tag for --use-git<commit_after>require 'formula'

class Go < Formula
  if ARGV.include? "--use-git"
    url 'https://github.com/tav/go.git', :tag => 'release-branch.r59'
    head 'https://github.com/tav/go.git'
  else
    url 'http://go.googlecode.com/hg/', :revision => 'release.r59'
    head 'http://go.googlecode.com/hg/'
  end
  version 'r59'
  homepage 'http://golang.org'

  skip_clean 'bin'

  def options
    [["--use-git", "Use git mirror instead of official hg repository"]]
  end

  def install
    prefix.install %w[src include test doc misc lib favicon.ico AUTHORS]
    Dir.chdir prefix
    mkdir %w[pkg bin]

    Dir.chdir 'src' do
      # Tests take a very long time to run. Build only
      system "./make.bash"
    end

{'fraction_non_alphanumeric': 0.14499659632402995, 'fraction_numerical': 0.008168822328114363, 'mean_word_length': 2.6842105263157894, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '6919969', 'n_tokens_mistral': 547, 'n_tokens_neox': 514, 'n_words': 148}