<commit_before>class Venue < ActiveRecord::Base
	belongs_to :user
	has_many :events
  	has_many :reviews
	has_many :venue_games
	has_many :games, through: :venue_games

	def game
		
	end

	def make_new(game_name)
		if !Game.find_by(name: game_name)
			new_game = Game.create(name: game_name)
			self.games << new_game
		else
			self.games << Game.find_by(name: game_name)
		end
	end

	def has_reviews?
		self.reviews.length > 0
	end

	def recent_reviews
		self.reviews.last(10)
	end

end<commit_msg>reverse recent review method to show newest first<commit_after>class Venue < ActiveRecord::Base
	belongs_to :user
	has_many :events
  	has_many :reviews
	has_many :venue_games
	has_many :games, through: :venue_games

	def game
		
	end

	def make_new(game_name)
		if !Game.find_by(name: game_name)
			new_game = Game.create(name: game_name)
			self.games << new_game
		else
			self.games << Game.find_by(name: game_name)
		end
	end

	def has_reviews?
		self.reviews.length > 0
	end

	def recent_reviews
		self.reviews.last(10).reverse
	end

end
{'fraction_non_alphanumeric': 0.0854126679462572, 'fraction_numerical': 0.005758157389635317, 'mean_word_length': 4.038647342995169, 'pattern_counts': {'":': 0, '<': 13, '<?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': '4306739', 'n_tokens_mistral': 447, 'n_tokens_neox': 398, 'n_words': 94}