<commit_before>module Typus
  module Orm
    module Mongoid
      module InstanceMethods

        # def assign_attributes(attrs = nil, options = {})
        #   assigning do
        #     process(attrs, !options[:without_protection]) do |document|
        #       document.identify if new? && id.blank?
        #     end
        #   end
        # end

        def update_attributes(attributes, options ={})
          super(attributes)
        end

        def toggle(attribute)
          self[attribute] = !send("#{attribute}?")
          self
        end

      end<commit_msg>Removed old code<commit_after>module Typus
  module Orm
    module Mongoid
      module InstanceMethods

        def update_attributes(attributes, options ={})
          super(attributes)
        end

        def toggle(attribute)
          self[attribute] = !send("#{attribute}?")
          self
        end

      end
{'fraction_non_alphanumeric': 0.08807134894091416, 'fraction_numerical': 0.0, 'mean_word_length': 1.8417721518987342, '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': '6189699', 'n_tokens_mistral': 239, 'n_tokens_neox': 233, 'n_words': 58}