<commit_before>class Tcpkali < Formula
  desc "High performance TCP and WebSocket load generator and sink"
  homepage "https://github.com/machinezone/tcpkali"
  url "https://github.com/machinezone/tcpkali/releases/download/v1.1/tcpkali-1.1.tar.gz"
  sha256 "e477b03f3e0aa45ddd5c058ea5e6107486983c2aa658a076b061af84c1ed61e7"

  bottle do
    cellar :any_skip_relocation
    sha256 "7cc36bcbb2120334c5d0f0623ae1f81deaf5b43338ce60cde82f271d0adb8732" => :sierra
    sha256 "eb8df1e10fdb4f4f608eb53626ed3cac4fe6960888bf89cccffc85449988a7ab" => :el_capitan
    sha256 "358ce45dd065b2f92e4de1430343d9339d09e21a052d7593d9c308963f36d7d1" => :yosemite
  end

  # Upstream issue "1.1 release tarball is missing pcg_basic.h"
  # Reported 20 Jan 2016 https://github.com/machinezone/tcpkali/issues/39
  resource "pcg_basic_header" do
    url "https://raw.githubusercontent.com/machinezone/tcpkali/1be382b/deps/pcg-c-basic/pcg_basic.h"
    sha256 "cd823ddc225da9be520a54f13ef2c491506c353800cae04e8b673b2de58f2cc4"
  end

  def install
    raise "remove the resource" if File.exist? "deps/pcg-c-basic/pcg_basic.h"
    resource("pcg_basic_header").stage buildpath/"deps/pcg-c-basic"
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make", "install"
  end

  test do
    system "#{bin}/tcpkali", "-l1237", "-T0.5", "127.1:1237"
  end
end<commit_msg>tcpkali 1.1.1<commit_after>class Tcpkali < Formula
  desc "High performance TCP and WebSocket load generator and sink"
  homepage "https://github.com/machinezone/tcpkali"
  url "https://github.com/machinezone/tcpkali/releases/download/v1.1.1/tcpkali-1.1.1.tar.gz"
  sha256 "a9a15a1703fc4960360a414ee282d821a7b42d4bbba89f9e72a796164ff69598"

  bottle do
    cellar :any_skip_relocation
    sha256 "7cc36bcbb2120334c5d0f0623ae1f81deaf5b43338ce60cde82f271d0adb8732" => :sierra
    sha256 "eb8df1e10fdb4f4f608eb53626ed3cac4fe6960888bf89cccffc85449988a7ab" => :el_capitan
    sha256 "358ce45dd065b2f92e4de1430343d9339d09e21a052d7593d9c308963f36d7d1" => :yosemite
  end

  def install
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make", "install"
  end

  test do
    system "#{bin}/tcpkali", "-l1237", "-T0.5", "127.1:1237"
  end
end
{'fraction_non_alphanumeric': 0.10777922642329422, 'fraction_numerical': 0.18904823989569752, 'mean_word_length': 4.429245283018868, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, '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': '1410986', 'n_tokens_mistral': 1186, 'n_tokens_neox': 966, 'n_words': 134}