<commit_before>class Nozomi::CLI < Clamp::Command
  self.description = <<-DESC
A wrapper for the `rails new` command, with an extended template interface. The
standard set of templates applied are:
  - initialised git repository
  - haml
  - sass
  - formtastic
  - decent_exposure
  - rspec
  - rspec-rails
  - capybara
  - jquery
  - README.markdown
  - config/database.example.yml
  DESC
  
  option ['-i', '--interactive'], :flag, 'Pick and choose the templates'
  option ['--debug'], :flag, 'Print out debugging statements'
  option ['-d', '--database'], 'DATABASE', 'Preconfigure for selected database',
    :default => 'sqlite3'
  option ['-j', '--javascript'], 'JAVASCRIPT', 'Preconfigure for selected JavaScript library',
    :default => 'jquery'
  
  parameter 'APP_NAME', 'The name of the Rails application you want to generate'
  
  def execute
    puts '', `cat #{template.path}`, '', command if debug?
    
    system command
  end
  
  private
  <commit_msg>Move debug flag to the end<commit_after>class Nozomi::CLI < Clamp::Command
  self.description = <<-DESC
A wrapper for the `rails new` command, with an extended template interface. The
standard set of templates applied are:
  - initialised git repository
  - haml
  - sass
  - formtastic
  - decent_exposure
  - rspec
  - rspec-rails
  - capybara
  - jquery
  - README.markdown
  - config/database.example.yml
  DESC
  
  option ['-i', '--interactive'], :flag, 'Pick and choose the templates'
  option ['-d', '--database'], 'DATABASE', 'Preconfigure for selected database',
    :default => 'sqlite3'
  option ['-j', '--javascript'], 'JAVASCRIPT', 'Preconfigure for selected JavaScript library',
    :default => 'jquery'
  option ['--debug'], :flag, 'Print out debugging statements'
  
  parameter 'APP_NAME', 'The name of the Rails application you want to generate'
  
  def execute
    puts '', `cat #{template.path}`, '', command if debug?
    
    system command
  end
  
  private
  
{'fraction_non_alphanumeric': 0.12557427258805512, 'fraction_numerical': 0.0010209290454313426, 'mean_word_length': 3.317180616740088, 'pattern_counts': {'":': 0, '<': 9, '<?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': '6391238', 'n_tokens_mistral': 618, 'n_tokens_neox': 593, 'n_words': 203}