<commit_before><commit_msg>The first draft<commit_after>#!/usr/bin/perl

use strict;
use warnings;
use JSON qw( decode_json );
use File::Fetch;

# Grab the latest stats from c3netmon and decode the data
my $statsjson = File::Fetch->new(uri => 'http://c3netmon.camp.ohm2013.org/current.json');

print $statsjson;
my $decoded = decode_json($statsjson);


# Pulling out the shadow temprature from the decoded json
print "Shadow temprature: " . $decoded->{'OHM1'}{'value'} . "\n";
{'fraction_non_alphanumeric': 0.14705882352941177, 'fraction_numerical': 0.014705882352941176, 'mean_word_length': 5.36, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '1021587', 'n_tokens_mistral': 170, 'n_tokens_neox': 161, 'n_words': 46}