<commit_before><?php
 $data = array('metadata' => array('service' => 'noise', 'mode' => 'upload'), 'rawdata' => array('location_id' => '1', 'noise_level' => '45.67', 'date_time' => ''));
 $data_string = json_encode($data);

 $url = 'http://156.56.93.34/CDME/request.php';

 $ch = curl_init($url);
  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
  curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER, array(
                     'Content-Type: application/json',
                 'Content-Length: ' . strlen($data_string))
   );
  $result = curl_exec($ch);
  curl_close($ch);

  echo $result;

  //$json_result = json_decode($result, true);
 ?><commit_msg>finish http dummy request<commit_after><?php

$data = array('metadata' => array('service' => 'noise', 'mode' => 'upload'), 'rawdata' => array('latitude' => '7', 'longitude' => '81', 'noise_level' => '45.67', 'date_time' => ''));
$data_string = json_encode($data);

$url = 'http://156.56.93.34/CDME/request.php';

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Content-Type: application/json',
    'Content-Length: ' . strlen($data_string))
);
$result = curl_exec($ch);
curl_close($ch);

echo $result;

//$json_result = json_decode($result, true);
?>
{'fraction_non_alphanumeric': 0.20762423417290674, 'fraction_numerical': 0.02042205582028591, 'mean_word_length': 5.228813559322034, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4381997', 'n_tokens_mistral': 572, 'n_tokens_neox': 530, 'n_words': 91}