<commit_before># encoding: utf-8
require 'active_record/fixtures'

namespace :db do
  desc "Bootstrap your database for Spree."
  task :bootstrap  => :environment do
    # load initial database fixtures (in db/sample/*.yml) into the current environment's database
    ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
    Spree::Setup.create_admin_user('admin', '<EMAIL>') if User.count == 0
    Dir.glob(File.join(RussianAdaptationExtension.root, "db", 'sample', '*.{yml,csv}')).each do |fixture_file|
      Fixtures.create_fixtures("#{RussianAdaptationExtension.root}/db/sample", File.basename(fixture_file, '.*'))
    end
  end
end<commit_msg>Убрал устаревший способ автоматического создания администратора приводящий к ошибке<commit_after># encoding: utf-8
require 'active_record/fixtures'

namespace :db do
  desc "Bootstrap your database for Spree."
  task :bootstrap  => :environment do
    # load initial database fixtures (in db/sample/*.yml) into the current environment's database
    ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
    Dir.glob(File.join(RussianAdaptationExtension.root, "db", 'sample', '*.{yml,csv}')).each do |fixture_file|
      Fixtures.create_fixtures("#{RussianAdaptationExtension.root}/db/sample", File.basename(fixture_file, '.*'))
    end
  end
end
{'fraction_non_alphanumeric': 0.12653374233128833, 'fraction_numerical': 0.0023006134969325155, 'mean_word_length': 5.365853658536586, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '3219671', 'n_tokens_mistral': 427, 'n_tokens_neox': 430, 'n_words': 94}