<commit_before><?php

/*

@Author: <NAME>
@Date: 20/10/14

Uptime Robot API Scripts

forked from ckdarby/PHP-UptimeRobot

*/
require_once('UptimeRobot/config.php');
use UptimeRobot\API;

try {

    //Initalizes API with config options
    $api = new API($config);
    //Define parameters for our getMethod request
    $args = [
        'showTimezone' => 1,
        'customUptimeRatio' => '7-30-45'
    ];

    //Makes request to the getMonitor Method
    $results = $api->request('/getMonitors', $args);

    //Output json_decoded contents
     // var_dump($results);

} catch (Exception $e) {
    echo $e->getMessage();
    //Output various debug information
    var_dump($api->debug);
}

// Get Overall all time Uptime Stats. 
function getOverall($results){

    $alltime = 0;<commit_msg>Update Description<commit_after><?php

/*

@Author: <NAME>
@Date: 20/10/14

Uptime Robot API Scripts

API forked from ckdarby/PHP-UptimeRobot

*/
require_once('UptimeRobot/config.php');
use UptimeRobot\API;

try {

    //Initalizes API with config options
    $api = new API($config);
    //Define parameters for our getMethod request
    $args = [
        'showTimezone' => 1,
        'customUptimeRatio' => '7-30-45'
    ];

    //Makes request to the getMonitor Method
    $results = $api->request('/getMonitors', $args);

    //Output json_decoded contents
     // var_dump($results);

} catch (Exception $e) {
    echo $e->getMessage();
    //Output various debug information
    var_dump($api->debug);
}

// Get Overall all time Uptime Stats. 
function getOverall($results){

    $alltime = 0;
{'fraction_non_alphanumeric': 0.13845185651353054, 'fraction_numerical': 0.016362492133417242, 'mean_word_length': 3.045801526717557, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '2074334', 'n_tokens_mistral': 564, 'n_tokens_neox': 533, 'n_words': 137}