<commit_before>namespace :spree_multi_tenant do

  desc "Create a new tenant"
  task :create_tenant => :environment do
    domain = ENV["domain"]
    code = ENV["code"]

    if domain.blank? or code.blank?
      puts "Error: domain and code must be specified"
      puts "(e.g. rake spree_multi_tenant:create_tenant domain=mydomain.com code=mydomain)"
      exit
    end

    tenant = Spree::Tenant.create!({:domain => domain.dup, :code => code.dup})
    tenant.create_template_and_assets_paths
  end

end<commit_msg>Use block for multi-assignment protection<commit_after>namespace :spree_multi_tenant do

  desc "Create a new tenant"
  task :create_tenant => :environment do
    domain = ENV["domain"]
    code = ENV["code"]

    if domain.blank? or code.blank?
      puts "Error: domain and code must be specified"
      puts "(e.g. rake spree_multi_tenant:create_tenant domain=mydomain.com code=mydomain)"
      exit
    end

    tenant = Spree::Tenant.create! do |t|
      t.domain = domain.dup
      t.code = code.dup
    end
    tenant.create_template_and_assets_paths
  end

end
{'fraction_non_alphanumeric': 0.09953917050691244, 'fraction_numerical': 0.0, 'mean_word_length': 3.379032258064516, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4990758', 'n_tokens_mistral': 350, 'n_tokens_neox': 359, 'n_words': 95}