<commit_before>begin
  # Psych could be a gem, so set up the load path
  gem 'psych' if defined?(gem)

  # Psych could just be in the stdlib
  # but it's too late if Syck is already loaded
  require 'psych' unless defined?(Syck)
rescue LoadError
  # apparently Psych wasn't available. Oh well.
ensure
  # at least load the YAML stdlib, whatever that may be
  require 'yaml'
end

module Bundler
  # On encountering invalid YAML,
  # Psych raises Psych::SyntaxError
  # Syck raises ArgumentError
  YamlSyntaxError = defined?(Psych) ? Psych::SyntaxError : ArgumentError
end<commit_msg>you can have Psych without Psych::SyntaxError :\<commit_after>begin
  # Psych could be a gem, so set up the load path
  gem 'psych' if defined?(gem)

  # Psych could just be in the stdlib
  # but it's too late if Syck is already loaded
  require 'psych' unless defined?(Syck)
rescue LoadError
  # apparently Psych wasn't available. Oh well.
ensure
  # at least load the YAML stdlib, whatever that may be
  require 'yaml'
end

module Bundler
  # On encountering invalid YAML,
  # Psych raises Psych::SyntaxError
  # Syck raises ArgumentError
  if defined?(::Psych::SyntaxError)
    YamlSyntaxError = ::Psych::SyntaxError
  else
    YamlSyntaxError = ::ArgumentError
  end
end
{'fraction_non_alphanumeric': 0.07245222929936306, 'fraction_numerical': 0.0, 'mean_word_length': 4.048192771084337, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3367079', 'n_tokens_mistral': 387, 'n_tokens_neox': 371, 'n_words': 159}