<commit_before><?php namespace emat; class Settings {
/**
 * Represents the settings/configuration file on disk, creates and 
 * populates the file if it doesn't exist.
 */

private $_filePath = "settings";
private $_questions

public function __construct() {
	// Force absolute path
	$this->_filePath = dirname(__DIR__) . "/" . $this->_filePath;

	if(!is_file($this->_filePath)) {
		$this->create();
	}
}

/**
 * Asks user for all required information, serialises to settings file.
 */
private function create() {

}

}#<commit_msg>Add default settings<commit_after><?php namespace emat; class Settings {
/**
 * Represents the settings/configuration file on disk, creates and 
 * populates the file if it doesn't exist.
 */

private $_filePath = "settings";
private $_conf = [
	"APIKEY" => [
		"description" => "API key",
	],
	"APISECRET" => [
		"description" => "API secret",
	],
	"EXCHANGE" => [
		"description" => "Exchange",
		"default" => "BTCE",
	],
	"FREQ" => [
		"description" => "Trade frequency (minutes)",
		"default" => 60,
	],
	"EMASHORT" => [
		"description" => "Short EMA",
		"default" => 10,
	],
	"EMALONG" => [
		"description" => "Long EMA",
		"default" => 21
	],
	"WAIT" => [
		"description" => "Period to check threshold before trade (minutes)",
		"default" => 0,
	],
	"BUY" => [
		"description" => "Buy threshold (%)",
		"default" => 0.25,
	],
	"SELL" => [
		"description" => "Sell threshold (%)",
		"default" => 0.25,
	],
	"DRYRUN" => [
		"description" => "Dry run (yes/no)",
		"default" => "yes",
	],
];

public function __construct() {
	// Force absolute path
	$this->_filePath = dirname(__DIR__) . "/" . $this->_filePath;

	if(!is_file($this->_filePath)) {
		$this->create();
	}
}

/**
 * Asks user for all required information, serialises to settings file.
 */
private function create() {

}

}#
{'fraction_non_alphanumeric': 0.19330038440417352, 'fraction_numerical': 0.007138934651290499, 'mean_word_length': 3.7571801566579635, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, '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': '1023074', 'n_tokens_mistral': 666, 'n_tokens_neox': 625, 'n_words': 162}