<commit_before><?php
require('Services/Twilio.php');
header('Content-Type: text/xml');
$accountSid = getenv('TWILIO_ACCOUNT_SID');
$authToken = getenv('TWILIO_AUTH_TOKEN');

$appSid = getenv('TWILIO_APP_SID');



$requestFunction = $_REQUEST['requestFunction']?:'';
$numberPhone = $_REQUEST['numberPhone']?:'';


function ValidateNumber(){
   $client = new Services_Twilio($accountSid, $authToken);
	$response = $client->account->outgoing_caller_ids->create($numberPhone, array(   
	'FriendlyName' => "mathiu"));

	echo json_encode(array('numberPhone'=>$numberPhone, 'code'=>'12357'));
}

function getNumberValidated(){	
	$client = new Services_Twilio('AC123', '123');
	$arrayObject = array('numberPhone'=>$numberPhone, 'code'=>'12357');
	
	$callers = $client->account->outgoing_caller_ids->getIterator(0, 50, array()); 
 
	foreach ($callers as $caller_id) {
		$arrayObject[] = $caller_id->friendly_name;
	}
	echo json_encode($arrayObject);
}




if($requestFunction == 'requestValid'){
	ValidateNumber();
	echo 'valid phonenumber';
} else if($requestFunction = 'requestValidList'){
	getNumberValidated();
	echo 'not valid';
}
?>
<commit_msg>no message<commit_after><?php
require('Services/Twilio.php');
header('Content-Type: text/xml');
$accountSid = getenv('TWILIO_ACCOUNT_SID');
$authToken = getenv('TWILIO_AUTH_TOKEN');

$appSid = getenv('TWILIO_APP_SID');



$requestFunction = $_POST['requestFunction']?:'';
$numberPhone = $_POST['numberPhone']?:'';


function ValidateNumber(){
   $client = new Services_Twilio($accountSid, $authToken);
	$response = $client->account->outgoing_caller_ids->create($numberPhone, array(   
	'FriendlyName' => "mathiu"));

	echo json_encode(array('numberPhone'=>$numberPhone, 'code'=>'12357'));
}

function getNumberValidated(){	
	$client = new Services_Twilio($accountSid, $authToken);
	$arrayObject = array('numberPhone'=>$numberPhone, 'code'=>'12357');
	
	$callers = $client->account->outgoing_caller_ids->getIterator(0, 50, array()); 
 
	foreach ($callers as $caller_id) {
		$arrayObject[] = $caller_id->friendly_name;
	}
	echo json_encode($arrayObject);
}




if($requestFunction == 'requestValid'){
	ValidateNumber();

} else if($requestFunction = 'requestValidList'){
	getNumberValidated();

}
?>

{'fraction_non_alphanumeric': 0.18571428571428572, 'fraction_numerical': 0.014285714285714285, 'mean_word_length': 7.5534351145038165, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1006633', 'n_tokens_mistral': 802, 'n_tokens_neox': 759, 'n_words': 119}