<commit_before>
class Listing

  attr_accessor address:, price:, beds:, baths:, property_type:, house_url:, sqft:, acres:, status:, price_per_sqft:, days_on_market:, year_built:, description:

  def initialize(listing_hash)
    listing_hash.each {|key, value| self.send("#{key}=", value)}
    @@all << self
  end

  def self.create_from_collection(listings_array)
    listings_array.each {|hash| Listing.new(hash)}
  end

end<commit_msg>added self.all to listing class<commit_after>
class Listing

  attr_accessor address:, price:, beds:, baths:, property_type:, house_url:, sqft:, acres:, status:, price_per_sqft:, days_on_market:, year_built:, description:

  def initialize(listing_hash)
    listing_hash.each {|key, value| self.send("#{key}=", value)}
    @@all << self
  end

  def self.create_from_collection(listings_array)
    listings_array.each {|hash| Listing.new(hash)}
  end

  def self.all
    @@all
  end

end
{'fraction_non_alphanumeric': 0.13636363636363635, 'fraction_numerical': 0.0, 'mean_word_length': 5.166666666666667, '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': '1918555', 'n_tokens_mistral': 342, 'n_tokens_neox': 329, 'n_words': 75}