<commit_before><?php
$ch = curl_init();
$host =  "http://127.0.0.1:13000";
$inputUrl = $host . "/api/v1/query";

$tags["type"] = "tp0";                                                                                    
$tags["speed"] = "11";



$metric["groupby"][0] = "host";
$metric["groupby"][1] = "type";
$metric["groupby"][2] = "speed";

$metric["aggregator"]["name"] = "sum";
$metric["aggregator"]["sampling"]["unit"] = "h";
$metric["aggregator"]["sampling"]["value"] = 1;

$metric["tags"] = $tags;
$metric["name"] = "wyatt_test";

 $input["startabsolute"]= 1389024000000;
  $input["endabsolute"] = 1389024000000 +  60 * 60 * 4 *  5 *1000 + 10500;
$input["metric"] = $metric;

$post = json_encode($input);
echo $post;
curl_setopt($ch, CURLOPT_URL ,$inputUrl);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_POST, true);<commit_msg>use data from add point<commit_after><?php
$ch = curl_init();
$host =  "http://127.0.0.1:13000";
$inputUrl = $host . "/api/v1/query";

$tags["type"] = "tp1";                                                                                    
$tags["speed"] = "11";

$metric["groupby"][0] = "host";
$metric["groupby"][1] = "type";
$metric["groupby"][2] = "speed";

$metric["aggregator"]["name"] = "sum";
$metric["aggregator"]["sampling"]["unit"] = "m";
$metric["aggregator"]["sampling"]["value"] = 1;

$metric["tags"] = $tags;
$metric["name"] = "wyatt_new";

 $input["startabsolute"]= 1459900800000;//1389024000000;
  $input["endabsolute"] = $input["startabsolute"] +  60 * 60 * 4 *  5 *1000 + 10500;
$input["metric"] = $metric;

$post = json_encode($input);
echo $post;
curl_setopt($ch, CURLOPT_URL ,$inputUrl);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_POST, true);
{'fraction_non_alphanumeric': 0.233810888252149, 'fraction_numerical': 0.06876790830945559, 'mean_word_length': 3.757493188010899, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6165387', 'n_tokens_mistral': 720, 'n_tokens_neox': 634, 'n_words': 109}