<commit_before>class Recipes::FrontEnd < Rails::AppBuilder
  def ask
    frameworks = {
      vue: "Vue",
      angular: "Angular",
      none: "None"
    }

    framework = answer(:front_end) do
      frameworks.keys[Ask.list("Which front-end framework are you going to use?", frameworks.values)]
    end

    set :front_end, framework.to_sym
  end

  def create
    gather_gem 'webpacker', github: 'rails/webpacker'

    after(:gem_install) do
      value = get(:front_end)
      run "rails webpacker:install"
      run "rails webpacker:install:#{value}" if value

      if value == :vue
        copy_file "app/javascript/packs/hello_vue.js", "app/javascript/packs/application.js", force: true
        remove_file "app/javascript/packs/application.js"
        remove_file "app/javascript/packs/hello_vue.js"
<commit_msg>feat(): please the monkey<commit_after>class Recipes::FrontEnd < Rails::AppBuilder
  def ask
    frameworks = {
      vue: "Vue",
      angular: "Angular",
      none: "None"
    }

    framework = answer(:front_end) do
      frameworks.keys[
        Ask.list("Which front-end framework are you going to use?", frameworks.values)
      ]
    end

    set :front_end, framework.to_sym
  end

  def create
    gather_gem 'webpacker', github: 'rails/webpacker'

    after(:gem_install) do
      value = get(:front_end)
      run "rails webpacker:install"
      run "rails webpacker:install:#{value}" if value

      if value == :vue
        remove_file "app/javascript/packs/application.js"
        copy_file "app/javascript/packs/hello_vue.js", "app/javascript/packs/application.js",
          force: true
        remove_file "app/javascript/packs/hello_vue.js"

{'fraction_non_alphanumeric': 0.11474435196195006, 'fraction_numerical': 0.0, 'mean_word_length': 2.932242990654206, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2868077', 'n_tokens_mistral': 552, 'n_tokens_neox': 525, 'n_words': 122}