<commit_before># Copyright (c) 2013 AppNeta, Inc.
# All rights reserved.

begin
  require "oboe/version"
  require "oboe/thread_local"
  require "oboe/logger"
  require "oboe/util"
  require "oboe/xtrace"

  # If Oboe_metal is already defined then we are in a PaaS environment
  # with an alternate metal (such as Heroku: see the oboe-heroku gem)
  unless defined?(Oboe_metal)
    require "oboe/base"

    begin
      if RUBY_PLATFORM == 'java'
        require "/usr/local/tracelytics/tracelyticsagent.jar"
        require "joboe_metal"
      else
        require "oboe_metal.so"
        require "oboe_metal"
      end
    rescue LoadError
      Oboe.loaded = false

      unless ENV['RAILS_GROUP'] == 'assets'
        $stderr.puts "=============================================================="
        $stderr.puts "Missing TraceView libraries.  Tracing disabled."
        $stderr.puts "See: https://support.tv.appneta.com/solution/articles/137973"
        $stderr.puts "=============================================================="
      end
    end
  end

  require "oboe/config"

  if Oboe.loaded
    require "oboe/loading"
    require "method_profiling"
    require "oboe/instrumentation"<commit_msg>Test for OboeHeroku instead of Oboe_metal<commit_after># Copyright (c) 2013 AppNeta, Inc.
# All rights reserved.

begin
  require "oboe/version"
  require "oboe/thread_local"
  require "oboe/logger"
  require "oboe/util"
  require "oboe/xtrace"

  # If OboeHeroku is already defined then we are in a PaaS environment
  # with an alternate metal (see the oboe-heroku gem)
  unless defined?(OboeHeroku)
    require "oboe/base"

    begin
      if RUBY_PLATFORM == 'java'
        require "/usr/local/tracelytics/tracelyticsagent.jar"
        require "joboe_metal"
      else
        require "oboe_metal.so"
        require "oboe_metal"
      end
    rescue LoadError
      Oboe.loaded = false

      unless ENV['RAILS_GROUP'] == 'assets'
        $stderr.puts "=============================================================="
        $stderr.puts "Missing TraceView libraries.  Tracing disabled."
        $stderr.puts "See: https://support.tv.appneta.com/solution/articles/137973"
        $stderr.puts "=============================================================="
      end
    end
  end

  require "oboe/config"

  if Oboe.loaded
    require "oboe/loading"
    require "method_profiling"
    require "oboe/instrumentation"
{'fraction_non_alphanumeric': 0.18806584362139916, 'fraction_numerical': 0.00823045267489712, 'mean_word_length': 3.169811320754717, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6455492', 'n_tokens_mistral': 798, 'n_tokens_neox': 746, 'n_words': 185}