<commit_before># Workaround to make Rubygems believe it builds a native gem
require 'mkmf'
create_makefile('none')

raise "Only Darwin (Mac OS X) systems are supported" unless `uname -s`.chomp == 'Darwin'

gem_root      = File.expand_path(File.join('..'))
darwin_verion = `uname -r`.to_i
sdk_verion    = { 9 => '10.5', 10 => '10.6', 11 => '10.7' }[darwin_verion]

raise "Only Darwin systems greather than 8 (Mac OS X 10.5+) are supported" unless sdk_verion

# Compile the actual fsevent_watch binary
system "mkdir -p #{File.join(gem_root, 'bin')}"
system "CFLAGS='-isysroot /Developer/SDKs/MacOSX#{sdk_verion}.sdk -mmacosx-version-min=#{sdk_verion}' /usr/bin/gcc -framework CoreServices -o '#{gem_root}/bin/fsevent_watch' fsevent/fsevent_watch.c"

unless File.executable?("#{gem_root}/bin/fsevent_watch")
  raise "Compilation of fsevent_watch failed (see README)"
end<commit_msg>Just warned non-darwin system rather than raise<commit_after># Workaround to make Rubygems believe it builds a native gem
require 'mkmf'
create_makefile('none')

if `uname -s`.chomp != 'Darwin'
  puts "Only Darwin (Mac OS X) systems are supported, nothing will be compiled"
else
  gem_root      = File.expand_path(File.join('..'))
  darwin_verion = `uname -r`.to_i
  sdk_verion    = { 9 => '10.5', 10 => '10.6', 11 => '10.7' }[darwin_verion]
  
  raise "Only Darwin systems greather than 8 (Mac OS X 10.5+) are supported" unless sdk_verion
  
  # Compile the actual fsevent_watch binary
  system "mkdir -p #{File.join(gem_root, 'bin')}"
  system "CFLAGS='-isysroot /Developer/SDKs/MacOSX#{sdk_verion}.sdk -mmacosx-version-min=#{sdk_verion}' /usr/bin/gcc -framework CoreServices -o '#{gem_root}/bin/fsevent_watch' fsevent/fsevent_watch.c"
  
  unless File.executable?("#{gem_root}/bin/fsevent_watch")
    raise "Compilation of fsevent_watch failed (see README)"
  end
end
{'fraction_non_alphanumeric': 0.13953488372093023, 'fraction_numerical': 0.019469983775013522, 'mean_word_length': 4.6923076923076925, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '7007142', 'n_tokens_mistral': 710, 'n_tokens_neox': 676, 'n_words': 181}