<commit_before>require File.join(File.dirname(__FILE__),'..','jake.rb')

namespace "config" do
  task :android => :common do

    $deploydir = File.join($basedir,'deploy','android')
    $excludelib = ['**/singleton.rb','**/rational.rb','**/rhoframework.rb','**/date.rb']

    if RUBY_PLATFORM =~ /(win|w)32$/
      $dx = "dx.bat"
      $aapt = "aapt.exe"
      $apkbuilder = "apkbuilder.bat"
      $rhoruby = "RhoRuby.exe"
      $emulator = "cmd /c emulator.exe"
      $adb = "adb.exe"
    else
      $dx = "dx"
      $aapt = "aapt"
      $apkbuilder = "apkbuilder"
      $rhoruby = "RubyMac"
      $emulator = "emulator"
      $adb = "adb"
    end

  end
end

task :loadframework do
  require 'rhodes-framework'
  puts $rhodeslib
end

namespace "bundle" do
  task :android =>  ["config:android", "loadframework", "makedirs"] do
    android = $config["env"]["paths"]["android"]

    rm_rf $srcdir
    mkdir_p $srcdir
    mkdir_p File.join($srcdir,'apps')<commit_msg>fixed issue #608<commit_after>require File.join(File.dirname(__FILE__),'..','jake.rb')

namespace "config" do
  task :android => :common do

    $deploydir = File.join($basedir,'deploy','android')
    $excludelib = ['**/singleton.rb','**/rational.rb','**/rhoframework.rb','**/date.rb']

    if RUBY_PLATFORM =~ /(win|w)32$/
      $dx = File.join( $config["env"]["paths"]["android"], "platforms", "android-1.1", "tools", "dx.bat" )
      $aapt = File.join( $config["env"]["paths"]["android"], "platforms", "android-1.1", "tools", "aapt.exe" )
      $apkbuilder = File.join( $config["env"]["paths"]["android"], "tools", "apkbuilder.bat" )
      $rhoruby = "RhoRuby.exe"
      $emulator = "cmd /c " + File.join( $config["env"]["paths"]["android"], "tools", "emulator.exe" )
      $adb = File.join( $config["env"]["paths"]["android"], "tools", "adb.exe" )

    else
      $dx = "dx"
      $aapt = "aapt"
      $apkbuilder = "apkbuilder"
      $rhoruby = "RubyMac"
      $emulator = "emulator"
      $adb = "adb"
    end

  end
end

task :loadframework do
  require 'rhodes-framework'
  puts $rhodeslib
end

namespace "bundle" do
  task :android =>  ["config:android", "loadframework", "makedirs"] do
    android = $config["env"]["paths"]["android"]

    rm_rf $srcdir
    mkdir_p $srcdir
    mkdir_p File.join($srcdir,'apps')
{'fraction_non_alphanumeric': 0.20463489287275907, 'fraction_numerical': 0.004809794490599038, 'mean_word_length': 3.425531914893617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2390117', 'n_tokens_mistral': 877, 'n_tokens_neox': 867, 'n_words': 162}