<commit_before>class VehiclesController < MyplaceonlineController
  def may_upload
    true
  end

  def footer_items_show
    super + [
      {
        title: I18n.t("myplaceonline.vehicles.add_vehicle_service"),
        link: new_vehicle_vehicle_service_path(@obj),
        icon: "plus"
      },
      {
        title: I18n.t("myplaceonline.vehicles.vehicle_services"),
        link: vehicle_vehicle_services_path(@obj),
        icon: "bars"
      },
    ]
  end
  
  protected
    def sorts
      ["lower(vehicles.name) ASC"]
    end

    def obj_params
      params.require(:vehicle).permit(
        :name,
        :notes,
        :owned_start,<commit_msg>Add bubble text to vehicles<commit_after>class VehiclesController < MyplaceonlineController
  def may_upload
    true
  end

  def footer_items_show
    super + [
      {
        title: I18n.t("myplaceonline.vehicles.add_vehicle_service"),
        link: new_vehicle_vehicle_service_path(@obj),
        icon: "plus"
      },
      {
        title: I18n.t("myplaceonline.vehicles.vehicle_services"),
        link: vehicle_vehicle_services_path(@obj),
        icon: "bars"
      },
    ]
  end
  
  def use_bubble?
    true
  end
  
  def bubble_text(obj)
    obj.year
  end
    
  protected
    def sorts
      ["lower(vehicles.name) ASC"]
    end

    def obj_params
      params.require(:vehicle).permit(
        :name,
        :notes,
        :owned_start,
{'fraction_non_alphanumeric': 0.09597741707833451, 'fraction_numerical': 0.0056457304163726185, 'mean_word_length': 2.2672811059907834, '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': '7134803', 'n_tokens_mistral': 478, 'n_tokens_neox': 451, 'n_words': 81}