<commit_before><?php

class WeatherDTO {

	/**********************************************************************
	*	Huco 617.B2 (Winter 2014)
	*	WeatherDTO is a data transfer object to facilitate moving weather
	*	data around. Clients are free to work with their own data in 
	*	any format they wish, but can get/set this DTO for easy access.
	**********************************************************************/

	protected $actualprecip;
	protected $chanceprecip;
	protected $date;		//	forecast date
	protected $hightemp;
	protected $lowtemp;
	protected $scraper;		//	scraper that built this object
	protected $precipType;
	protected $siteID;		//	scraper's site ID

	
	public function __construct(WeatherScraper $scraper) {
		$this->date = new Date();
		$this->scraper = $scraper;
		$this->sitename = $this->scraper->getSiteName();
	}
	
	/***************************
	*	Site Name
	***************************/
	
	public function getSiteName() {
		return $this->sitename;				// Johns test addition! //Sonja's test addition! //Ditto for Andrea!
	}	
	
	public function setSiteName($sitename = null) {
		$this->sitename = $sitename;
	}
	
	/***************************
	*	Date
	***************************/
	
	public function getDate() {
		return $this->date->getDateAsSQL();
	}
	
	public function setDate($string) {
		$this->date->setFromString($string);
	}
	
	/***************************
	*	High Temp
	***************************/
	
	public function getHighTemp() {
		return $this->hightemp;
	}
	
	public function setHighTemp($temp = null) {
		$this->hightemp = $temp;
	}
	
	/***************************
	*	Low Temp
	***************************/
	
	public function getLowTemp() {
		return $this->lowtemp;
	}
	
	public function setLowTemp($temp = null) {
		$this->lowtemp = $temp;
	}
	
	/***************************
	*	Chance of Precipitation
	***************************/
	
	public function getChanceOfPrecip() {
		return $this->chanceprecip;
	}
	
	public function setChanceOfPrecip($precip = null) {
		$this->chanceprecip = $precip;
	}
	
	/***************************
	*	Actual Precipitation(Changes)
	***************************/
	
	public function getActualPrecip() {
		return $this->actualprecip;
	}
	
	public function setActualPrecip($precip = null) {
		$this->actualprecip = $precip;
	}
	
	/***************************
	*	Precipitation Type(michael)
	***************************/
	
	public function getPrecipType() {
		return $this->precipType;
	}
	
	public function setPrecipType($type = null) {
		$this->precipType = $type;
	}
	
	/***************************
	*	Get Database Query
	***************************/
	
	public function getQuery() {
	
	}
}

?><commit_msg>Adding method; moving 'real' data to a DTO subclass<commit_after><?php

class WeatherDTO {

	/**********************************************************************
	*	Huco 617.B2 (Winter 2014)
	*	WeatherDTO is a data transfer object to facilitate moving weather
	*	data around. Clients are free to work with their own data in 
	*	any format they wish, but can get/set this DTO for easy access.
	**********************************************************************/

	protected $chanceprecip;
	protected $date;				//	forecast date
	protected $hightemp;
	protected $lowtemp;
	protected $scraper;				//	scraper that built this object
	protected $precipType;
	protected $proseDescription;	//	i.e., 'partly cloudy'
	protected $siteID;				//	scraper's site ID

	
	public function __construct(WeatherScraper $scraper) {
		$this->date = new Date();
		$this->scraper = $scraper;
		$this->siteID = $this->scraper->getSiteID();
	}
	
	/***************************
	*	Site ID
	***************************/
	
	public function getSiteID() {
		return $this->siteID;
	}	
	
	public function setSiteID($siteID = null) {
		$this->siteID = $siteID;
	}
	
	/***************************
	*	Date
	***************************/
	
	public function getDate() {
		return $this->date->getDateAsSQL();
	}
	
	public function setDate($string) {
		$this->date->setFromString($string);
	}
	
	/***************************
	*	High Temp
	***************************/
	
	public function getHighTemp() {
		return $this->hightemp;
	}
	
	public function setHighTemp($temp = null) {
		$this->hightemp = $temp;
	}
	
	/***************************
	*	Low Temp
	***************************/
	
	public function getLowTemp() {
		return $this->lowtemp;
	}
	
	public function setLowTemp($temp = null) {
		$this->lowtemp = $temp;
	}
	
	/***************************
	*	Chance of Precipitation
	***************************/
	
	public function getChanceOfPrecip() {
		return $this->chanceprecip;
	}
	
	public function setChanceOfPrecip($precip = null) {
		$this->chanceprecip = $precip;
	}
	
	/***************************
	*	Precipitation Type(michael)
	***************************/
	
	public function getPrecipType() {
		return $this->precipType;
	}
	
	public function setPrecipType($type = null) {
		$this->precipType = $type;
	}
	
	/***************************
	*	Prose Description
	***************************/

	public function getProseDescription() {
		return $this->proseDescription;
	}
	
	public function setProseDescription($desc = null) {
		$this->proseDescription = $desc;
	}

}

?>
{'fraction_non_alphanumeric': 0.3079724032196244, 'fraction_numerical': 0.0030663089306247606, 'mean_word_length': 4.470649895178197, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 47, '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': '6090063', 'n_tokens_mistral': 1785, 'n_tokens_neox': 1565, 'n_words': 360}