<commit_before>require 'fileutils'

version = ARGV.pop

%w( core api backend dash frontend sample ).each do |framework|
  puts "Installing #{framework}..."

  Dir.chdir(framework) do
    `gem build spree_#{framework}.gemspec`
    `gem install spree_#{framework}-#{version}.gem --no-ri --no-rdoc`
    FileUtils.remove "spree_#{framework}-#{version}.gem"
  end

end

puts "Installing Spree..."
  `gem build spree.gemspec`
  `gem install spree-#{version}.gem --no-ri --no-rdoc `

  FileUtils.remove "spree-#{version}.gem"
<commit_msg>Changed order of installation to fix dependency error when performing a new installation<commit_after>require 'fileutils'

version = ARGV.pop

%w( cmd core api backend frontend dash sample ).each do |framework|
  puts "Installing #{framework}..."

  Dir.chdir(framework) do
    `gem build spree_#{framework}.gemspec`
    `gem install spree_#{framework}-#{version}.gem --no-ri --no-rdoc`
    FileUtils.remove "spree_#{framework}-#{version}.gem"
  end

end

puts "Installing Spree..."
  `gem build spree.gemspec`
  `gem install spree-#{version}.gem --no-ri --no-rdoc `

  FileUtils.remove "spree-#{version}.gem"

{'fraction_non_alphanumeric': 0.15074496056091147, 'fraction_numerical': 0.0, 'mean_word_length': 3.9224137931034484, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3977476', 'n_tokens_mistral': 382, 'n_tokens_neox': 391, 'n_words': 101}