<commit_before><?php

namespace Apartment\Model;

use Zend\InputFilter\InputFilter;
use Zend\InputFilter\InputFilterAwareInterface;
use Zend\InputFilter\InputFilterInterface;

class Apartment implements InputFilterAwareInterface {
	public $id;
	public $adress;
	public $room_num;
	public $floor;
	public $power;
	protected $inputFilter;
	public function exchangeArray($data) {
		if (! empty ( $data ['id'] )) {
			$this->id = $data ['id'];
		} else {
			$this->id = null;
		}
		
		if (! empty ( $data ['adress'] )) {
			$this->adress = $data ['adress'];
		} else {
			$this->adress = null;
		}
		
		if (! empty ( $data ['room_num'] )) {
			$this->room_num = $data ['room_num'];
		} else {
			$this->room_num = null;
		}
		
		if (! empty ( $data ['floor'] )) {
			$this->floor = $data ['floor'];
		} else {
			$this->floor = null;
		}
		if (! empty ( $data ['power'] )) {
			$this->power = $data ['power'];
		} else {
			$data ['power'] = null;
		}
	}
	public function getArrayCopy() {
		return get_object_vars ( $this );
	}
	public function setInputFilter(InputFilterInterface $inputFilter) {
		throw new \Exception ( "Not used" );<commit_msg>Corrected a mistake in the exchangeArray method<commit_after><?php

namespace Apartment\Model;

use Zend\InputFilter\InputFilter;
use Zend\InputFilter\InputFilterAwareInterface;
use Zend\InputFilter\InputFilterInterface;

class Apartment implements InputFilterAwareInterface {
	public $id;
	public $adress;
	public $room_num;
	public $floor;
	public $power;
	protected $inputFilter;
	public function exchangeArray($data) {
		if (! empty ( $data ['id'] )) {
			$this->id = $data ['id'];
		} else {
			$this->id = null;
		}
		
		if (! empty ( $data ['adress'] )) {
			$this->adress = $data ['adress'];
		} else {
			$this->adress = null;
		}
		
		if (! empty ( $data ['room_num'] )) {
			$this->room_num = $data ['room_num'];
		} else {
			$this->room_num = null;
		}
		
		if (! empty ( $data ['floor'] )) {
			$this->floor = $data ['floor'];
		} else {
			$this->floor = null;
		}
		if (! empty ( $data ['power'] )) {
			$this->power = $data ['power'];
		} else {
			$this->power = null;
		}
	}
	public function getArrayCopy() {
		return get_object_vars ( $this );
	}
	public function setInputFilter(InputFilterInterface $inputFilter) {
		throw new \Exception ( "Not used" );
{'fraction_non_alphanumeric': 0.1709106603366422, 'fraction_numerical': 0.0, 'mean_word_length': 3.5362035225048922, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 22, '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': '1685812', 'n_tokens_mistral': 891, 'n_tokens_neox': 793, 'n_words': 193}