<commit_before>class InstancesController < ResourceController::Base
  belongs_to :environment

  create.flash { "Your instance(s) are being launched." }
  create.wants.html { redirect_to [@environment.application, @environment] }

  destroy.wants.html { redirect_to [@environment.application, @environment] }

  def deployments
    load_object
    @instance.send_later :start_deployment
    flash[:notice] = "Deploying"

    redirect_to @instance.environment
  end
end<commit_msg>update deployments action<commit_after>class InstancesController < ResourceController::Base
  belongs_to :environment

  create.flash { "Your instance(s) are being launched." }
  create.wants.html { redirect_to [@environment.application, @environment] }

  destroy.wants.html { redirect_to [@environment.application, @environment] }

  def deployments
    load_object
    @instance.deploy
    flash[:notice] = "Deploying"

    redirect_to @instance.environment
  end
end
{'fraction_non_alphanumeric': 0.09578947368421052, 'fraction_numerical': 0.0, 'mean_word_length': 4.94375, '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': '5987104', 'n_tokens_mistral': 275, 'n_tokens_neox': 262, 'n_words': 60}