<commit_before>#! /usr/bin/ruby 
#**********************************************************************
#*                                                                    *
#*  RmThemeGen - a ruby script to create random, usable themes for    *
#*  text editors. Currently supports RubyMine 3.X.X                   *
#*                                                                    *
#*  By <NAME>, 2011                                           *
#*                                                                    *
#**********************************************************************

#this is a version of the software that should work with ruby 1.8.7
#originally it was written and tested for ruby 1.9.2


require File.dirname(__FILE__)+'./lib/rmthemegen/rmthemegen_187'

puts    
puts "  rmthemegen - creates theme files for use with rubymine (3.0.0 and up) "
puts "  Note: colors apply only to editor, not the IDE "
puts
puts "  by <NAME> 2011 "
puts "  <EMAIL> -- Questions / Comments welcome. "
puts  
puts "  usage: lib/generate_themes.rb <number of themes you want> "
puts "  example: lib/generate_themes.rb 5 "
puts
puts "  Instructions: Complete path of generated theme will be printed below "
puts "  Copy the rmt_*_*.xml files to: "
puts "  Linux: Copy xml files to  ~/.RubyMine3x/config/color. New themes should be present when you go to Settings/editor/Colors&Fonts "
puts "  Mac:  Copy xml files to ~/Library/Preferences/RubyMine/color. You must restart RubyMine on the Mac, then look for new color schemes. "
puts
 
l = RMThemeGen::ThemeGenerator.new

puts "testing to_css"
puts l.to_css

@iterations = ARGV[0] || 1
@iterations = @iterations.to_i 

@iterations.times do 
  puts l.make_theme_file <commit_msg>okay fixed it so generate themes finds interpreter easier and doesn't test to_css<commit_after>#! /usr/bin/env ruby 
#**********************************************************************
#*                                                                    *
#*  RmThemeGen - a ruby script to create random, usable themes for    *
#*  text editors. Currently supports RubyMine 3.X.X                   *
#*                                                                    *
#*  By <NAME>, 2011                                           *
#*                                                                    *
#**********************************************************************

#this is a version of the software that should work with ruby 1.8.7
#originally it was written and tested for ruby 1.9.2


require File.dirname(__FILE__)+'./lib/rmthemegen/rmthemegen_187'

puts    
puts "  rmthemegen - creates theme files for use with rubymine (3.0.0 and up) "
puts "  Note: colors apply only to editor, not the IDE "
puts
puts "  by <NAME> 2011 "
puts "  <EMAIL> -- Questions / Comments welcome. "
puts  
puts "  usage: lib/generate_themes.rb <number of themes you want> "
puts "  example: lib/generate_themes.rb 5 "
puts
puts "  Instructions: Complete path of generated theme will be printed below "
puts "  Copy the rmt_*_*.xml files to: "
puts "  Linux: Copy xml files to  ~/.RubyMine3x/config/color. New themes should be present when you go to Settings/editor/Colors&Fonts "
puts "  Mac:  Copy xml files to ~/Library/Preferences/RubyMine/color. You must restart RubyMine on the Mac, then look for new color schemes. "
puts
 
l = RMThemeGen::ThemeGenerator.new


@iterations = ARGV[0] || 1
@iterations = @iterations.to_i 

@iterations.times do 
  puts l.make_theme_file 
{'fraction_non_alphanumeric': 0.1580443433769187, 'fraction_numerical': 0.014212620807276862, 'mean_word_length': 2.1759927797833933, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5410871', 'n_tokens_mistral': 1026, 'n_tokens_neox': 938, 'n_words': 334}