<commit_before>require 'formula'

class Go < Formula
  homepage 'http://golang.org'
  url 'http://go.googlecode.com/files/go.go1.src.tar.gz'
  version '1'
  sha1 '6023623d083db1980965335b8ac4fa8b428fa484'

  if ARGV.include? "--use-git"
    head 'https://github.com/tav/go.git'
  else
    head 'http://go.googlecode.com/hg/'
  end

  skip_clean 'bin'

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

  def install
    prefix.install Dir['*']

    cd prefix do<commit_msg>Go: remove unofficial Git mirror<commit_after>require 'formula'

class Go < Formula
  homepage 'http://golang.org'
  url 'http://go.googlecode.com/files/go.go1.src.tar.gz'
  version '1'
  sha1 '6023623d083db1980965335b8ac4fa8b428fa484'

  head 'http://go.googlecode.com/hg/'

  skip_clean 'bin'

  def install
    prefix.install Dir['*']

    cd prefix do
{'fraction_non_alphanumeric': 0.13892078071182548, 'fraction_numerical': 0.07347876004592423, 'mean_word_length': 3.36, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1943656', 'n_tokens_mistral': 378, 'n_tokens_neox': 325, 'n_words': 70}