<commit_before>require 'mkmf'

$LIBS << " -lpcre"

abort "-----\n#{lib} is missing.\n-----" unless find_header('pcre.h')

create_makefile 'ruby_speech/ruby_speech'<commit_msg>[BUGFIX] Cleaner failure message if PCRE headers can't be found<commit_after>require 'mkmf'

$LIBS << " -lpcre"

unless find_header('pcre.h')
  abort "-----\nPCRE is missing. You must install it as per the README @ https://github.com/benlangfeld/ruby_speech\n-----"
end

create_makefile 'ruby_speech/ruby_speech'
{'fraction_non_alphanumeric': 0.16632443531827515, 'fraction_numerical': 0.0, 'mean_word_length': 4.304347826086956, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4008200', 'n_tokens_mistral': 187, 'n_tokens_neox': 177, 'n_words': 42}