<commit_before><?php

/**
 *
 * Input Image
 *
*/
class Images
{
	var $opt=array();

	function upload($name,$options=array())
	{
		
		$this->opt = array_merge($this->opt, $options);

		// $file_size              = $_FILES[$name]['size'];
		// $file_type              = $_FILES[$name]['type'];
		$this->opt['file_temp']    = $_FILES[$name]['tmp_name']; 
		
		//getting extention
		$ext = explode(".",$_FILES[$name]['name']);
		$this->opt['extension']    = strtolower($ext[sizeof($ext)-1]);


		//name
		$this->opt['name'] = ($this->opt['name']=='auto')?$_FILES[$name]['name']:$this->opt['name'];

		if(substr($this->opt['name'],-4,4)!=".".$this->opt['extension'])
			$this->opt['name']=$this->opt['name'].".".$this->opt['extension'];

		//fixing extention
		$this->opt['path'] = str_replace("//","/",$this->opt['path']."/");
		$this->opt['path'] = ($this->opt['path']=="/")?"":$this->opt['path'];

		//get file dest
    	$this->opt['dest'] =$this->opt['path'].$this->opt['name'];

    	$validate=$this->validate();
		if($validate!=1)
			return $validate;

		if(!($coyping=$this->store()))
		return $copying;<commit_msg>viernes yeah<commit_after><?php

/**
 *
 * Input Image
 *
*/
class Images
{
	var $opt=array();

	function upload($name,$options=array())
	{
		
		$this->opt = array_merge($this->opt, $options);

		// $file_size              = $_FILES[$name]['size'];
		// $file_type              = $_FILES[$name]['type'];
		$this->opt['file_temp']    = $_FILES[$name]['tmp_name']; 
		
		//getting extention
		$ext = explode(".",$_FILES[$name]['name']);
		$this->opt['extension']    = strtolower($ext[sizeof($ext)-1]);

		//name
		$this->opt['name'] = ($this->opt['name']=='auto')?$_FILES[$name]['name']:$this->opt['name'];

		if(substr($this->opt['name'],-4,4)!=".".$this->opt['extension'])
			$this->opt['name']=$this->opt['name'].".".$this->opt['extension'];

		//fixing extention
		$this->opt['path'] = str_replace("//","/",$this->opt['path']."/");
		$this->opt['path'] = ($this->opt['path']=="/")?"":$this->opt['path'];

		//get file dest
    	$this->opt['dest'] =$this->opt['path'].$this->opt['name'];

    	$validate=$this->validate();
		if($validate!=1)
			return $validate;

		if(!($coyping=$this->store()))
		return $copying;
{'fraction_non_alphanumeric': 0.3025962399283796, 'fraction_numerical': 0.0035810205908683975, 'mean_word_length': 4.068027210884353, 'pattern_counts': {'":': 2, '<': 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': '280575', 'n_tokens_mistral': 884, 'n_tokens_neox': 796, 'n_words': 94}