<commit_before><?php
class RequestObject{
	private $_DATA = null;
	private $_STATUS = 0;
	private $_req;
	
	private $_sqlCon;
	private $_user;
	/** Constructor
	 ** Currently takes optional PDO connection argument
	 **/
	public function __construct(){
		for($i=0;$i<func_num_args();$i++){
			$arg = func_get_arg($i);
			if(is_object($arg)){
				$class = get_class($arg);
				if($class == 'PDO'){
					$this->_sqlCon = $arg;
				}
				if($class == 'User'){
					$this->_user = $arg;
				}
			}
		} 
		if(REQUEST_DATA_ARRAY == 0){
			$this->_req = $_REQUEST;
		}
		else{
			$this->_req = $_POST;
		}
		
		if($this->_user == null){
			$this->_user = new User();
		}
		$this->_user->initialize(); //We are going to use the session, so initialize it.
	}
	public function performRequest(){
		if(!$this->_user->IsLoggedIn()){
			$this->setResult(STATUS_NLI,'You must be logged in!');
			return;
		}
	
		$required = array('location_lat','location_lon','question','answer','is_user','person_id','session');
		$missing = array();
		if(!$this->checkRequiredArgs($required,$missing)){<commit_msg>apparently I modified this I guess<commit_after><?php
class RequestObject{
	private $_DATA = null;
	private $_STATUS = 0;
	private $_req;
	
	private $_sqlCon;
	private $_user;
	/** Constructor
	 ** Currently takes optional PDO connection argument
	 **/
	public function __construct(){
		for($i=0;$i<func_num_args();$i++){
			$arg = func_get_arg($i);
			if(is_object($arg)){
				$class = get_class($arg);
				if($class == 'PDO'){
					$this->_sqlCon = $arg;
				}
				elseif($class == 'User'){
					$this->_user = $arg;
				}
			}
		} 
		if(REQUEST_DATA_ARRAY == 0){
			$this->_req = $_REQUEST;
		}
		else{
			$this->_req = $_POST;
		}
		
		if($this->_user == null){
			$this->_user = new User();
		}
		$this->_user->initialize(); //We are going to use the session, so initialize it.
	}
	public function performRequest(){
		if(!$this->_user->IsLoggedIn()){
			$this->setResult(STATUS_NLI,'You must be logged in!');
			return;
		}
	
		$required = array('location_lat','location_lon','question','answer','is_user','person_id','session');
		$missing = array();
		if(!$this->checkRequiredArgs($required,$missing)){
{'fraction_non_alphanumeric': 0.19151846785225718, 'fraction_numerical': 0.0027359781121751026, 'mean_word_length': 3.853982300884956, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 27, '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': '6513044', 'n_tokens_mistral': 879, 'n_tokens_neox': 753, 'n_words': 158}