<commit_before>class Pdftoipe < Formula
  desc "Reads arbitrary PDF files and generates an XML file readable by Ipe"
  homepage "https://github.com/otfried/ipe-tools"
  url "https://github.com/otfried/ipe-tools/archive/v7.2.7.tar.gz"
  sha256 "889cb31bd8769ba111f541ba795cf53fad474aeeafbc87b7cd37c8a24b2dc6f6"
  revision 3

  bottle do
    cellar :any
    sha256 "c04cd058c0be0948bdf52fe14529128193ef3fc2902102f1ff6c92db9b4909c6" => :sierra
    sha256 "243cead9169d5d916c2c14644e0841eb8750b858bbc2f17f58cbb3c6666c75be" => :el_capitan
    sha256 "9185561cf9f59e21a81d34d88063b66cd44ad1b9121b6cb1d96d37293821c5f9" => :yosemite
  end

  depends_on "pkg-config" => :build

  # Upstream issue "poppler 0.59.0 incompatibility"
  # Reported 4 Sep 2017 https://github.com/otfried/ipe-tools/issues/27
  depends_on "poppler@0.57"

  def install
    cd "pdftoipe" do
      system "make"
      bin.install "pdftoipe"
      man1.install "pdftoipe.1"
    end
  end

  test do
    cp test_fixtures("test.pdf"), testpath
    system bin/"pdftoipe", "test.pdf"
    assert_match "Homebrew test.</text>", File.read("test.ipe")
  end
end
<commit_msg>pdftoipe: set ENV.cxx11 and depend on poppler<commit_after>class Pdftoipe < Formula
  desc "Reads arbitrary PDF files and generates an XML file readable by Ipe"
  homepage "https://github.com/otfried/ipe-tools"
  url "https://github.com/otfried/ipe-tools/archive/v7.2.7.tar.gz"
  sha256 "889cb31bd8769ba111f541ba795cf53fad474aeeafbc87b7cd37c8a24b2dc6f6"
  revision 4

  bottle do
    cellar :any
    sha256 "c04cd058c0be0948bdf52fe14529128193ef3fc2902102f1ff6c92db9b4909c6" => :sierra
    sha256 "243cead9169d5d916c2c14644e0841eb8750b858bbc2f17f58cbb3c6666c75be" => :el_capitan
    sha256 "9185561cf9f59e21a81d34d88063b66cd44ad1b9121b6cb1d96d37293821c5f9" => :yosemite
  end

  depends_on "pkg-config" => :build
  depends_on "poppler"

  needs :cxx11

  def install
    ENV.cxx11

    cd "pdftoipe" do
      system "make"
      bin.install "pdftoipe"
      man1.install "pdftoipe.1"
    end
  end

  test do
    cp test_fixtures("test.pdf"), testpath
    system bin/"pdftoipe", "test.pdf"
    assert_match "Homebrew test.</text>", File.read("test.ipe")
  end
end

{'fraction_non_alphanumeric': 0.09443430656934307, 'fraction_numerical': 0.17062043795620438, 'mean_word_length': 4.172169811320755, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 5, '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': '6843799', 'n_tokens_mistral': 1108, 'n_tokens_neox': 934, 'n_words': 159}