<commit_before>class TrailInfo::Trail

attr_accessor :name, :length, :surface, :state, :synopsis, :url

@@all = []

def initialize(state, trail_attributes)
  trail_attributes.each do |attribute_name, attribute_value|
    self.send("#{attribute_name}=", attribute_value)
  end
  save
end

def save
  @@all << self
end

def self.all
  @@all
end

end<commit_msg>added comments to trail<commit_after>class TrailInfo::Trail

attr_accessor :name, :length, :surface, :state, :synopsis, :url

@@all = []

def initialize(state, trail_attributes) #Creates new trail instance
  trail_attributes.each do |attribute_name, attribute_value|
    self.send("#{attribute_name}=", attribute_value)
  end
  save
end

def save #saves trail instance
  @@all << self
end

def self.all #returns all trail instances
  @@all
end

end
{'fraction_non_alphanumeric': 0.11524163568773234, 'fraction_numerical': 0.0, 'mean_word_length': 5.263565891472868, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3479322', 'n_tokens_mistral': 270, 'n_tokens_neox': 269, 'n_words': 77}