<commit_before># frozen_string_literal: true

class Folio::TracoGenerator < Rails::Generators::Base
  source_root File.expand_path('templates', __dir__)

  def add_traco_gem
    gem 'traco'
  end

  def add_migrations
    [
      'config/initializers/folio_using_traco.rb',
      'db/migrate/20181109082102_add_page_translations.rb',
    ].each { |f| template "#{f}.erb", f }
  end
end<commit_msg>fix migration name in traco_generator<commit_after># frozen_string_literal: true

class Folio::TracoGenerator < Rails::Generators::Base
  source_root File.expand_path('templates', __dir__)

  def add_traco_gem
    gem 'traco'
  end

  def add_migrations
    [
      'config/initializers/folio_using_traco.rb',
      'db/migrate/20190207101928_add_page_translations.rb',
    ].each { |f| template "#{f}.erb", f }
  end
end
{'fraction_non_alphanumeric': 0.11246943765281174, 'fraction_numerical': 0.034229828850855744, 'mean_word_length': 4.352941176470588, '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': '2970442', 'n_tokens_mistral': 312, 'n_tokens_neox': 293, 'n_words': 53}