<commit_before><?php
/* 
 * Yet another burndown online generator, http://www.burndowngenerator.com
 * Copyright (C) 2010 <NAME> <<EMAIL>>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
class Burndown {
		/**
		 * PDF Class
		 * 
		 * @var MetricsPdf
		 * @private
		 */
	private $_pdf = null;
	
	private
		$_points = null,
		$_days = null,
		$_margins = null,
		$_tick_size = null,
		$_tick_steps = null,
		$_title = null,
		$_hide_speed = null,
		$_hide_grid = null,
		$_burndown_color = null,
		$_xlabel = null,
		$_ylabel = null,
		$_chart_type = null
		;

	public function __construct($pdf, $points, $days) {
		$this->_pdf = $pdf;
		$this->_points = $points;
		$this->_days = $days;

		$this->_margins = array(
			'top' => 25,
			'bottom' => 20,
			'left' => 20,
			'right' => 20
		);

		$this->_tick_steps = array(
			0,  // Mandatory to get a correct do-while code
			1,
			2,
			3,
			5,
			10,
			15,
			20,
			25,
			50,
			75,
			100,
			125,
			150,
			200,
			250,
			300,
			400,
			500,
			1000,
			1500,
			2000,
			2500,
			5000,
			10000,
			15000,
			20000,
			25000,
			50000,
			100000
		);

		$this->_tick_size = 4;
		$this->_hide_speed = false;
		$this->_hide_grid = false;
		$this->_burndown_color = '#000000';
		$this->_chart_type = 'burndown';
	}

	public function setOptions($options) {
		foreach($options AS $k => $v) {
			$k = '_' . $k;
			$this->$k = $v;
		}
	}

	public function output() {
		$this->_log();

		$this->_drawTitle();

		$this->_drawXAxis();
		$this->_drawYAxis();<commit_msg>Removed tick sizes from Burndown class<commit_after><?php
/* 
 * Yet another burndown online generator, http://www.burndowngenerator.com
 * Copyright (C) 2010 <NAME> <<EMAIL>>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
class Burndown {
		/**
		 * PDF Class
		 * 
		 * @var MetricsPdf
		 * @private
		 */
	private $_pdf = null;
	
	private
		$_points = null,
		$_days = null,
		$_margins = null,
		$_tick_size = null,
		$_title = null,
		$_hide_speed = null,
		$_hide_grid = null,
		$_burndown_color = null,
		$_xlabel = null,
		$_ylabel = null,
		$_chart_type = null
		;

	public function __construct($pdf, $points, $days) {
		$this->_pdf = $pdf;
		$this->_points = $points;
		$this->_days = $days;

		$this->_margins = array(
			'top' => 25,
			'bottom' => 20,
			'left' => 20,
			'right' => 20
		);

		$this->_tick_size = 4;
		$this->_hide_speed = false;
		$this->_hide_grid = false;
		$this->_burndown_color = '#000000';
		$this->_chart_type = 'burndown';
	}

	public function setOptions($options) {
		foreach($options AS $k => $v) {
			$k = '_' . $k;
			$this->$k = $v;
		}
	}

	public function output() {
		$this->_log();

		$this->_drawTitle();

		$this->_drawXAxis();
		$this->_drawYAxis();
{'fraction_non_alphanumeric': 0.13467336683417086, 'fraction_numerical': 0.033165829145728645, 'mean_word_length': 2.984984984984985, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 50, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '110279', 'n_tokens_mistral': 1629, 'n_tokens_neox': 1327, 'n_words': 437}