<commit_before>class Cell
	# attr_reader :living
	attr_accessor :living, :num_living_neighbors

	def initialize(row, col, living)
		@row = row
		@col = col
		@living = living
		@num_living_neighbors = 0
	end

	def dead
		return !living
	end

	def dies
		@living = false
	end

	def regenerates
		@living = true
	end

	def tick
		return true if living && (num_living_neighbors==2 || num_living_neighbors==3)
		return true if dead && num_living_neighbors==3
		return false
	end

	def to_s
		@living ? "X" : "_"
	end

	def neighbors_coords
		all_directions = [
												[-1,-1], [-1,0],  [-1,1],
												[0,-1],           [0,1],
												[1,-1],   [1,0],  [1,1],
											]
		neighbors_coords = all_directions.each_with_object([]) do |coord, neighbors|
			neighbor_row = @row + coord[0]
			neighbor_col = @col + coord[1]
			neighbors.push([neighbor_row, neighbor_col])
		end
		return neighbors_coords

	end

end
<commit_msg>remove 'dies' and 'regenerates' methods<commit_after>class Cell
	attr_accessor :living, :num_living_neighbors

	def initialize(row, col, living)
		@row = row
		@col = col
		@living = living
		@num_living_neighbors = 0
	end

	def dead
		return !living
	end

	def tick
		return true if living && (num_living_neighbors==2 || num_living_neighbors==3)
		return true if dead && num_living_neighbors==3
		return false
	end

	def to_s
		@living ? "X" : "_"
	end

	def neighbors_coords
		all_directions = [
												[-1,-1], [-1,0],  [-1,1],
												[0,-1],           [0,1],
												[1,-1],   [1,0],  [1,1],
											]
		neighbors_coords = all_directions.each_with_object([]) do |coord, neighbors|
			neighbor_row = @row + coord[0]
			neighbor_col = @col + coord[1]
			neighbors.push([neighbor_row, neighbor_col])
		end
		return neighbors_coords

	end

end
{'fraction_non_alphanumeric': 0.12388392857142858, 'fraction_numerical': 0.024553571428571428, 'mean_word_length': 2.932017543859649, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5942717', 'n_tokens_mistral': 853, 'n_tokens_neox': 682, 'n_words': 162}