<commit_before><?php

require('../src/tempodb.php');
date_default_timezone_set("America/Chicago");

$tdb = new TempoDB("your-api-key", "your-api-secret");

$series_key = "php-increment";

$data = array(
    new DataPoint(new DateTime("2012-07-04T14:00:00"), 1),
    new DataPoint(new DateTime("2012-07-04T14:01:00"), 4)
);

$result = $tdb->increment_key($series_key, $data);
var_dump($result);

?>
<commit_msg>Make time ranges consistent across examples<commit_after><?php

require('../src/tempodb.php');
date_default_timezone_set("America/Chicago");

$tdb = new TempoDB("your-api-key", "your-api-secret");

$series_key = "php-increment";

$data = array(
    new DataPoint(new DateTime("2014-02-01T12:00:00"), 1),
    new DataPoint(new DateTime("2014-02-01T12:01:00"), 4)
);

$result = $tdb->increment_key($series_key, $data);
var_dump($result);

?>

{'fraction_non_alphanumeric': 0.2023529411764706, 'fraction_numerical': 0.07058823529411765, 'mean_word_length': 5.862903225806452, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6306657', 'n_tokens_mistral': 364, 'n_tokens_neox': 325, 'n_words': 51}