<commit_before>jar_file = File.join(*%w(lib arjdbc jdbc adapter_java.jar))
begin
  require 'ant'
  directory classes = "pkg/classes"
  CLEAN << classes

  driver_jars = []
  # PostgreSQL driver :
  driver_jars << Dir.glob("jdbc-postgres/lib/*.jar").sort.last
  
  file jar_file => FileList['src/java/**/*.java', 'pkg/classes'] do
    rm_rf FileList["#{classes}/**/*"]
    ant.javac :srcdir => "src/java", :destdir => "pkg/classes",
      :source => "1.6", :target => "1.6", :debug => true, :deprecation => true,
      :classpath => "${java.class.path}:${sun.boot.class.path}:#{driver_jars.join(':')}",
      :includeantRuntime => false

    ant.tstamp do |ts|
      ts.format(:property => 'TODAY', :pattern => 'yyyy-MM-dd HH:mm:ss')
    end
    
    require 'arjdbc/version'
    gem_version = Gem::Version.create(ArJdbc::VERSION)
    if gem_version.segments.last == 'DEV'
      version = gem_version.segments[0...-1] # 1.3.0.DEV -> 1.3.0
    else
      version = gem_version.segments.dup
    end
    version = version.join('.')
    
    ant.manifest :file => 'MANIFEST.MF' do |mf|
      mf.attribute :name => 'Built-By', :value => '${user.name}'
      mf.attribute :name => 'Built-Time', :value => '${TODAY}'
      mf.attribute :name => 'Built-Jdk', :value => '${java.version}'
      mf.attribute :name => 'Built-JRuby', :value => JRUBY_VERSION
      
      mf.attribute :name => 'Specification-Title', :value => 'ActiveRecord-JDBC'
      mf.attribute :name => 'Specification-Version', :value => '1.3'
      mf.attribute :name => 'Specification-Vendor', :value => 'JRuby'
      mf.attribute :name => 'Implementation-Version', :value => version
      mf.attribute :name => 'Implementation-Vendor', :value => 'The JRuby Team'
    end
    <commit_msg>Updated compile source/target to be Java 7<commit_after>jar_file = File.join(*%w(lib arjdbc jdbc adapter_java.jar))
begin
  require 'ant'
  directory classes = "pkg/classes"
  CLEAN << classes

  driver_jars = []
  # PostgreSQL driver :
  driver_jars << Dir.glob("jdbc-postgres/lib/*.jar").sort.last
  
  file jar_file => FileList['src/java/**/*.java', 'pkg/classes'] do
    rm_rf FileList["#{classes}/**/*"]
    ant.javac :srcdir => "src/java", :destdir => "pkg/classes",
      :source => "7", :target => "7", :debug => true, :deprecation => true,
      :classpath => "${java.class.path}:${sun.boot.class.path}:#{driver_jars.join(':')}",
      :includeantRuntime => false

    ant.tstamp do |ts|
      ts.format(:property => 'TODAY', :pattern => 'yyyy-MM-dd HH:mm:ss')
    end
    
    require 'arjdbc/version'
    gem_version = Gem::Version.create(ArJdbc::VERSION)
    if gem_version.segments.last == 'DEV'
      version = gem_version.segments[0...-1] # 1.3.0.DEV -> 1.3.0
    else
      version = gem_version.segments.dup
    end
    version = version.join('.')
    
    ant.manifest :file => 'MANIFEST.MF' do |mf|
      mf.attribute :name => 'Built-By', :value => '${user.name}'
      mf.attribute :name => 'Built-Time', :value => '${TODAY}'
      mf.attribute :name => 'Built-Jdk', :value => '${java.version}'
      mf.attribute :name => 'Built-JRuby', :value => JRUBY_VERSION
      
      mf.attribute :name => 'Specification-Title', :value => 'ActiveRecord-JDBC'
      mf.attribute :name => 'Specification-Version', :value => '1.3'
      mf.attribute :name => 'Specification-Vendor', :value => 'JRuby'
      mf.attribute :name => 'Implementation-Version', :value => version
      mf.attribute :name => 'Implementation-Vendor', :value => 'The JRuby Team'
    end
    
{'fraction_non_alphanumeric': 0.1900028401022437, 'fraction_numerical': 0.007668276057938086, 'mean_word_length': 3.1729857819905214, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 65, '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': '5860261', 'n_tokens_mistral': 1258, 'n_tokens_neox': 1206, 'n_words': 248}