<commit_before>require 'formula'

class Collectd < Formula
  url 'http://collectd.org/files/collectd-5.0.2.tar.bz2'
  homepage 'http://collectd.org/'
  md5 '47f70ae20801f10be355dc8109d696aa'

  depends_on 'pkg-config' => :build

  skip_clean :all

  def install
    # Use system Python; doesn't compile against 2.7<commit_msg>collectd: fails with clang<commit_after>require 'formula'

class Collectd < Formula
  url 'http://collectd.org/files/collectd-5.0.2.tar.bz2'
  homepage 'http://collectd.org/'
  md5 '47f70ae20801f10be355dc8109d696aa'

  depends_on 'pkg-config' => :build

  skip_clean :all

  fails_with :clang do
    build 318
    cause <<-EOS.undent
      Clang interacts poorly with the collectd-bundled libltdl,
      causing configure to fail.
      EOS
  end

  def install
    # Use system Python; doesn't compile against 2.7
{'fraction_non_alphanumeric': 0.10357142857142858, 'fraction_numerical': 0.07023809523809524, 'mean_word_length': 3.545945945945946, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '7347964', 'n_tokens_mistral': 340, 'n_tokens_neox': 301, 'n_words': 72}