<commit_before>require 'active_support/concern'
require 'meta_magic'

module Archivable
  module Controller
    include MetaMagic::Controller
    include MetaMagic::Helper
    extend ActiveSupport::Concern

    def archive
      archivable_model = set_model_instance_variable
      archivable_model.toggle(:archived)

      if archivable_model.save
        redirect_to archivable_model, notice: get_archivable_flash(archivable_model, success: true)
      else
        render :edit, alert: get_archivable_flash(archivable_model, success: false)
      end
    end

    def get_archivable_flash(model, opts = {})
      "#{ model.class.name } was"\
      "#{ ' not' unless opts[:success] } "\
      "#{ model.archived ? :archived : :unarchived } "\
      "successfully."
    end
  end
end<commit_msg>Nuke unneeded include.<commit_after>require 'active_support/concern'
require 'meta_magic'

module Archivable
  module Controller
    include MetaMagic::Controller
    extend ActiveSupport::Concern

    def archive
      archivable_model = set_model_instance_variable
      archivable_model.toggle(:archived)

      if archivable_model.save
        redirect_to archivable_model, notice: get_archivable_flash(archivable_model, success: true)
      else
        render :edit, alert: get_archivable_flash(archivable_model, success: false)
      end
    end

    def get_archivable_flash(model, opts = {})
      "#{ model.class.name } was"\
      "#{ ' not' unless opts[:success] } "\
      "#{ model.archived ? :archived : :unarchived } "\
      "successfully."
    end
  end
end
{'fraction_non_alphanumeric': 0.0910248249522597, 'fraction_numerical': 0.0, 'mean_word_length': 3.3910614525139664, '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': '1853224', 'n_tokens_mistral': 491, 'n_tokens_neox': 463, 'n_words': 101}