<commit_before>class Dfix < Formula
  desc "Auto-upgrade tool for D source code"
  homepage "https://github.com/dlang-community/dfix"
  url "https://github.com/dlang-community/dfix.git",
      :tag => "v0.3.1",
      :revision => "d796fb0d04882dc31862a808e2cff03ff829b56a"
  head "https://github.com/dlang-community/dfix.git", :shallow => false

  bottle do
    sha256 "58c2e5ee2f3fe572a0b07797af26de4d44e9194bf65a2eef89cf46d8d2dc7da4" => :sierra
    sha256 "6b19da6a3db617b0dcce69a9c19b6b212e6f64adaacfe0e7296328c74aa8f398" => :el_capitan
    sha256 "28db097fe0facaa42f4b1a441f89237e1ad2480ecb7d81f56dd6937d586e1974" => :yosemite
    sha256 "186aaedeb0b223858a5cb16e133ef03886fe81ece596e376c111342251842c5e" => :mavericks
  end

  depends_on "dmd" => :build

  def install
    rm_rf "libdparse/experimental_allocator" if build.stable?
    system "make"
    system "make", "test"
    bin.install "bin/dfix"
    pkgshare.install "test/testfile_expected.d", "test/testfile_master.d"
  end
<commit_msg>dfix: add upstream issue link (#15249)<commit_after>class Dfix < Formula
  desc "Auto-upgrade tool for D source code"
  homepage "https://github.com/dlang-community/dfix"
  url "https://github.com/dlang-community/dfix.git",
      :tag => "v0.3.1",
      :revision => "d796fb0d04882dc31862a808e2cff03ff829b56a"
  head "https://github.com/dlang-community/dfix.git", :shallow => false

  bottle do
    sha256 "58c2e5ee2f3fe572a0b07797af26de4d44e9194bf65a2eef89cf46d8d2dc7da4" => :sierra
    sha256 "6b19da6a3db617b0dcce69a9c19b6b212e6f64adaacfe0e7296328c74aa8f398" => :el_capitan
    sha256 "28db097fe0facaa42f4b1a441f89237e1ad2480ecb7d81f56dd6937d586e1974" => :yosemite
    sha256 "186aaedeb0b223858a5cb16e133ef03886fe81ece596e376c111342251842c5e" => :mavericks
  end

  depends_on "dmd" => :build

  def install
    # Remove for > 0.3.1
    # Fix build failure from std.experimental.allocator.common.Ternary conflict
    # experimental_allocator module was removed in dlang-community/libdparse@1e811d2
    # See upstream issue from 3 Jul 2017 https://github.com/dlang-community/dfix/issues/45
    rm_rf "libdparse/experimental_allocator" if build.stable?

    system "make"
    system "make", "test"
    bin.install "bin/dfix"
    pkgshare.install "test/testfile_expected.d", "test/testfile_master.d"
  end

{'fraction_non_alphanumeric': 0.10281995661605206, 'fraction_numerical': 0.17440347071583515, 'mean_word_length': 4.750623441396509, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, 'https://': 7, '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': '4774255', 'n_tokens_mistral': 1175, 'n_tokens_neox': 959, 'n_words': 142}