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

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

    $excludelib = ['**/builtinME.rb','**/ServeME.rb','**/TestServe.rb']

  end
end

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

namespace "bundle" do
  task :wm =>  ["config:wm", "loadframework", "makedirs"] do

    rm_rf $srcdir
    mkdir_p $srcdir
    mkdir_p File.join($srcdir,'apps')

    rubypath =  File.join($res,'RhoRuby.exe')
    compileERB = File.join($compileERBbase,'default.rb')
    compileRB = File.join($compileRBbase,'compileRB.rb')

    dest = $srcdir
    src = $rhodeslib
    cp_r src,dest

    src = File.join($rhodeslib,"..","res","sqlite3")
    cp_r src,File.join(dest,"lib")
    
    chdir dest
    Dir.glob("**/rhodes-framework.rb").each {|f| rm f}
    Dir.glob("**/erb.rb").each {|f| rm f}<commit_msg>delete bin folder first<commit_after>require File.join(File.dirname(__FILE__),'..','jake.rb')

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

    $excludelib = ['**/builtinME.rb','**/ServeME.rb','**/TestServe.rb']

  end
end

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

namespace "bundle" do
  task :wm =>  ["config:wm", "loadframework", "makedirs"] do

    rm_rf $srcdir
    rm_rf $bindir
    mkdir_p $srcdir
    mkdir_p $bindir
    mkdir_p File.join($srcdir,'apps')

    rubypath =  File.join($res,'RhoRuby.exe')
    compileERB = File.join($compileERBbase,'default.rb')
    compileRB = File.join($compileRBbase,'compileRB.rb')

    dest = $srcdir
    src = $rhodeslib
    cp_r src,dest

    src = File.join($rhodeslib,"..","res","sqlite3")
    cp_r src,File.join(dest,"lib")
    
    chdir dest
    Dir.glob("**/rhodes-framework.rb").each {|f| rm f}
    Dir.glob("**/erb.rb").each {|f| rm f}
{'fraction_non_alphanumeric': 0.18091009988901222, 'fraction_numerical': 0.0011098779134295228, 'mean_word_length': 3.5994897959183674, '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': '4807655', 'n_tokens_mistral': 695, 'n_tokens_neox': 690, 'n_words': 130}