<commit_before>require 'java'

module BiteScript
  module ASM
    begin
      # try mangled names for the version included with JRuby
      java.lang.Class.for_name 'jruby.objectweb.asm.Opcodes'
      
      # no error, proceed with mangled name
      asm_package = Java::jruby.objectweb.asm
      java_import asm_package.Opcodes
    rescue Exception
      # fall back on standard names
      asm_package = org.objectweb.asm
      java_import asm_package.Opcodes
    end
    java_import asm_package.Label
    java_import asm_package.Type
    java_import asm_package.AnnotationVisitor
    java_import asm_package.ClassVisitor<commit_msg>Update ASM mangled package to reflect JRuby 1.6.0.RC3 and higher.<commit_after>require 'java'

module BiteScript
  module ASM
    begin
      # try mangled names for the version included with JRuby <=1.6.0.RC2
      java.lang.Class.for_name 'jruby.objectweb.asm.Opcodes'
      
      # no error, proceed with mangled name
      asm_package = Java::jruby.objectweb.asm
      java_import asm_package.Opcodes
    rescue Exception
      begin
        # try mangled names for the version included with JRuby >=1.6.0.RC3
        java.lang.Class.for_name 'org.jruby.org.objectweb.asm.Opcodes'
        
        # no error, proceed with mangled name
        asm_package = Java::org.jruby.org.objectweb.asm
        java_import asm_package.Opcodes
      rescue
        # fall back on standard names
        asm_package = org.objectweb.asm
        java_import asm_package.Opcodes
      end
    end
    java_import asm_package.Label
    java_import asm_package.Type
    java_import asm_package.AnnotationVisitor
    java_import asm_package.ClassVisitor
{'fraction_non_alphanumeric': 0.05791044776119403, 'fraction_numerical': 0.007164179104477612, 'mean_word_length': 2.783295711060948, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1419607', 'n_tokens_mistral': 536, 'n_tokens_neox': 518, 'n_words': 130}