<commit_before>class TestObjectsController < MyplaceonlineController
  def may_upload
    true
  end

  protected
    def insecure
      true
    end

    def sorts
      ["lower(test_objects.test_object_name) ASC"]
    end

    def obj_params
      params.require(:test_object).permit(<commit_msg>Add common things to test object controller such as bubble text and date sorting<commit_after>class TestObjectsController < MyplaceonlineController
  def may_upload
    true
  end

  def use_bubble?
    true
  end
  
  def bubble_text(obj)
    Myp.display_date_month_year_simple(obj.test_object_date, User.current_user)
  end

  protected
    def insecure
      true
    end

    def sorts
      #["lower(test_objects.test_object_name) ASC"]
      ["test_objects.test_object_date DESC NULLS LAST"]
    end

    def obj_params
      params.require(:test_object).permit(
{'fraction_non_alphanumeric': 0.05658198614318707, 'fraction_numerical': 0.0, 'mean_word_length': 3.229268292682927, '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': '2128037', 'n_tokens_mistral': 273, 'n_tokens_neox': 259, 'n_words': 65}