<commit_before><?php
include dirname(__FILE__) . '/../../../functions/config.php';
require_once(dirname(__FILE__) . '/../../../functions/functions.php');
if (!check_session()){
    echo json_encode(array('error' => 'nologin'));
    exit;
}
slash_vars();
$vm_id = $_POST['vm_id'];
if (!empty ($vm_id))
   echo GetVMInfo($vm_id);<commit_msg>Openstack: removing unnecessary json conversions<commit_after><?php
include dirname(__FILE__) . '/../../../functions/config.php';
require_once(dirname(__FILE__) . '/../../../functions/functions.php');
if (!check_session()){
    echo json_encode(array('error' => 'nologin'));
    exit;
}
slash_vars();
$vm_id = $_POST['vm_id'];
if (!empty ($vm_id))
   echo json_encode(GetVMInfo($vm_id));
{'fraction_non_alphanumeric': 0.2327823691460055, 'fraction_numerical': 0.0, 'mean_word_length': 4.724409448818897, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4217797', 'n_tokens_mistral': 240, 'n_tokens_neox': 240, 'n_words': 43}