<commit_before><?php
/*
A quick and dirty example asking for one single capability. Some cahceing should be implemented.
*/
class wewAPI{
	
	private $service="http://ddr.demo.wew.io/c/";		
	private $response ="";
	private $headers = "";
	
	public function get($capa){
		foreach(getallheaders() as $key => $value) {
			if ($key !="Host") 
			  $this->headers[] = $key . ': ' . $value;
		}
		$url = $this->service . $capa;
		$curl = curl_init($url);
		curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
<commit_msg>Update wewClass.php<commit_after><?php
/*
A quick and dirty example asking for one single capability. Some cahceing should be implemented.
*/
class wewAPI{
	
	private $service="http://ddr.demo.wew.io/c/";		
	private $response ="";
	private $headers = "";
	
	public function get($capa){
		foreach(getallheaders() as $key => $value) {
			if ($key !="Host" && $key !="Accept-Encoding")
			  $this->headers[] = $key . ': ' . $value;
		}
		$url = $this->service . $capa;
		$curl = curl_init($url);
		curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

{'fraction_non_alphanumeric': 0.17880794701986755, 'fraction_numerical': 0.0, 'mean_word_length': 3.853211009174312, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4605298', 'n_tokens_mistral': 408, 'n_tokens_neox': 369, 'n_words': 93}