<commit_before>class ActivitiesController < MyplaceonlineController
  def model
    Activity
  end

  def display_obj(obj)
    obj.name
  end

  protected
    def sorts
      ["lower(activities.name) ASC"]
    end

    def obj_params
      params.require(:activity).permit(:name)
    end
end
<commit_msg>Allow adding activity without password re-entry<commit_after>class ActivitiesController < MyplaceonlineController
  def model
    Activity
  end

  def display_obj(obj)
    obj.name
  end

  protected
    def insecure
      true
    end

    def sorts
      ["lower(activities.name) ASC"]
    end

    def obj_params
      params.require(:activity).permit(:name)
    end
end

{'fraction_non_alphanumeric': 0.0662739322533137, 'fraction_numerical': 0.0, 'mean_word_length': 2.8202247191011236, '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': '2875728', 'n_tokens_mistral': 210, 'n_tokens_neox': 197, 'n_words': 53}