<commit_before>#!/usr/bin/env ruby

require "fileutils"
include FileUtils

def main
  show_usage if ARGV.length != 0
  version = "0.0.0"
  open("win32/readme.txt") do |fp|
    version = fp.gets[/\d+\.\d+\.\d+/]
  end
  main_dir     = "starruby-#{version}-win32"
  examples_dir = "#{main_dir}/examples"
  mkdir_p(main_dir)
  mkdir_p(examples_dir)
  cp(Dir["win32/**/*\0starruby.so"], main_dir)
  cp(Dir["examples/**/*"],           examples_dir)
end

def show_usage
  $stderr.puts("Usage: #{$0}")
  exit(1)<commit_msg>Modified create-win32-package.rb<commit_after>#!/usr/bin/env ruby

require "fileutils"
include FileUtils

def main
  show_usage if ARGV.length != 0
  version = "0.0.0"
  open("win32/readme.txt") do |fp|
    version = fp.gets[/\d+\.\d+\.\d+/]
  end
  main_dir = "starruby-#{version}-win32"
  mkdir_p(main_dir, :verbose => true)
  Dir["win32/*"].each do |path|
    cp(path, main_dir, :verbose => true)
  end
  Dir["examples/**/*\0starruby.so"].each do |path|
    next unless FileTest.file?(path)
    dir = File.join(main_dir, File.dirname(path))
    unless FileTest.directory?(dir)
      mkdir_p(dir, :verbose => true)
    end
    cp(path, dir, :verbose => true)
  end
end

def show_usage
  $stderr.puts("Usage: #{$0}")
  exit(1)
{'fraction_non_alphanumeric': 0.18584070796460178, 'fraction_numerical': 0.02252614641995173, 'mean_word_length': 3.4748201438848922, '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': '7450974', 'n_tokens_mistral': 519, 'n_tokens_neox': 498, 'n_words': 95}