<commit_before>class Delivery < ActiveRecord::Base
  
  include AmeeCarbonStore
  has_carbon_data_stored_in_amee :type_amount_repeats => true
  
  # Assumptions on types:
  #   - van - diesel, 1.305-1.740 tonnes
  #   - non-articulated lorry - diesel, fixed load
  #   - articulated lorry - diesel, fixed load
  COLOUR = "#FFBA4E"
  TRAIN_MASS = 1
  TYPE = {
    :van => AmeeCategory.new("Van", :distance, "/transport/van/generic/defra", :fuel => "diesel", :size => "1.305 to 1.740 tonnes"),
    :non_articulated => AmeeCategory.new("Non-Articulated Lorry", :distance, "/transport/lgv/generic/defra", :type => "rigid", :size => "uk average"),
    :articulated => AmeeCategory.new("Articulated Lorry", :distance, "/transport/lgv/generic/defra", :type => "articulated", :size => "uk average")
  }
  
  def amee_category
    TYPE[delivery_type.to_sym]
  end
  
  def additional_options
    delivery_type.to_sym == :rail ? {:mass => TRAIN_MASS} : nil
  end
end<commit_msg>Remove code associated with trains<commit_after>class Delivery < ActiveRecord::Base
  
  include AmeeCarbonStore
  has_carbon_data_stored_in_amee :type_amount_repeats => true
  
  # Assumptions on types:
  #   - van - diesel, 1.305-1.740 tonnes
  #   - non-articulated lorry - diesel, fixed load
  #   - articulated lorry - diesel, fixed load
  COLOUR = "#FFBA4E"
  TYPE = {
    :van => AmeeCategory.new("Van", :distance, "/transport/van/generic/defra", :fuel => "diesel", :size => "1.305 to 1.740 tonnes"),
    :non_articulated => AmeeCategory.new("Non-Articulated Lorry", :distance, "/transport/lgv/generic/defra", :type => "rigid", :size => "uk average"),
    :articulated => AmeeCategory.new("Articulated Lorry", :distance, "/transport/lgv/generic/defra", :type => "articulated", :size => "uk average")
  }
  
  def amee_category
    TYPE[delivery_type.to_sym]
  end
end
{'fraction_non_alphanumeric': 0.1465798045602606, 'fraction_numerical': 0.019001085776330078, 'mean_word_length': 3.927807486631016, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 24, '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': '3911228', 'n_tokens_mistral': 696, 'n_tokens_neox': 647, 'n_words': 141}