<commit_before><?php
namespace Catalog\Model;

use Zend\Db\TableGateway\TableGateway;

class CityTable {
	
	protected $tableGateway;
	
	public function __construct(TableGateway $tableGateway) {
		$this->tableGateway = $tableGateway;
	}
	
	public function fetchAll() {
		$resultSet = $this->tableGateway->select();
		return $resultSet;
	}
	
	public function getCity($id) {
		$id = (int) $id;
		$rowset = $this->tableGateway->select(array('id' => $id));
		$row = $rowset->current();
		if (!$row) {
			throw new \Exception('Could not find row ' . $id);
		}
		return $row;
	}
	
}<commit_msg>Yet needless method CityTyble#getCity() removed.<commit_after><?php
namespace Catalog\Model;

use Zend\Db\TableGateway\TableGateway;

class CityTable {
	
	protected $tableGateway;
	
	public function __construct(TableGateway $tableGateway) {
		$this->tableGateway = $tableGateway;
	}
	
	public function fetchAll() {
		$resultSet = $this->tableGateway->select();
		return $resultSet;
	}
	
}
{'fraction_non_alphanumeric': 0.14358974358974358, 'fraction_numerical': 0.0, 'mean_word_length': 4.545454545454546, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '6193735', 'n_tokens_mistral': 346, 'n_tokens_neox': 329, 'n_words': 70}