<commit_before>- unless @asset.new_record?
  = editable_asset_field_tag(@asset,'serial_number', 'Vehicle Identification Number (VIN)')
  = editable_asset_field_tag(@asset, :asset_tag, 'Asset ID')
  .row
    .col-md-3
      = editable_asset_field_tag(@asset, 'external_id', 'External ID', required: false)
    .col-md-3
      .form-group
        %label.control-label
          NTD ID
        .display-value
          = link_to (@asset.ntd_id || 'Unnamed Fleet'), asset_fleet_path(@asset.asset_fleets.first) if @asset.asset_fleets.count > 0

  = editable_asset_association_tag(@asset, :fta_asset_class, 'Class', FtaAssetClass.where(fta_asset_category_id: @asset.fta_asset_category_id).collect{|x| [x.id, x.name]})
  = editable_asset_association_tag(@asset, :global_fta_type, 'Type', FtaVehicleType.all.collect{|f| ["#{f.to_global_id}", "#{f.to_s}"]}, current_method: :global_fta_type)
  = editable_asset_association_tag(@asset, :asset_subtype, 'Subtype', AssetSubtype.where(asset_type: AssetType.where(class_name: 'Vehicle')).collect{|x| [x.id, x.name]})
  = editable_asset_association_tag(@asset, :esl_category, 'Estimated Service Life (ESL) Category', EslCategory.active.where(class_name: @asset.class.to_s).collect{|x| [x.id, x.name]})

<commit_msg>fix subtype possible values on revenue vehicles<commit_after>- unless @asset.new_record?
  = editable_asset_field_tag(@asset,'serial_number', 'Vehicle Identification Number (VIN)')
  = editable_asset_field_tag(@asset, :asset_tag, 'Asset ID')
  .row
    .col-md-3
      = editable_asset_field_tag(@asset, 'external_id', 'External ID', required: false)
    .col-md-3
      .form-group
        %label.control-label
          NTD ID
        .display-value
          = link_to (@asset.ntd_id || 'Unnamed Fleet'), asset_fleet_path(@asset.asset_fleets.first) if @asset.asset_fleets.count > 0

  = editable_asset_association_tag(@asset, :fta_asset_class, 'Class', FtaAssetClass.where(fta_asset_category_id: @asset.fta_asset_category_id).collect{|x| [x.id, x.name]})
  = editable_asset_association_tag(@asset, :global_fta_type, 'Type', FtaVehicleType.all.collect{|f| ["#{f.to_global_id}", "#{f.to_s}"]}, current_method: :global_fta_type)
  = editable_asset_association_tag(@asset, :asset_subtype, 'Subtype', AssetSubtype.where(asset_type: AssetType.where(class_name: ['Vehicle', 'RailCar', 'Locomotive'])).collect{|x| [x.id, x.name]})
  = editable_asset_association_tag(@asset, :esl_category, 'Estimated Service Life (ESL) Category', EslCategory.active.where(class_name: @asset.class.to_s).collect{|x| [x.id, x.name]})


{'fraction_non_alphanumeric': 0.15384615384615385, 'fraction_numerical': 0.0023428348301444747, 'mean_word_length': 5.552429667519181, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6273618', 'n_tokens_mistral': 955, 'n_tokens_neox': 934, 'n_words': 144}