<commit_before>var net = require('net'),
    _ = require('underscore')._,
    os = require("os");

function GraphiteClient(options) {

    var queue = {};

    var defaults = {
        host: '127.0.0.1',
        port: 2003,
        debug: false,
        interval: 60000,
        prefix: "monitoring." + os.hostname() + "."
    };

    function init() {
        options = _.defaults(options || {}, defaults);

        setInterval(send, options.interval);

        return {
            increment: increment,
            collectLastValue: collectLastValue,
            collectMaximum: collectMaximum,
            options: options,
            send: send
        }
    }

    function increment(name, value) {<commit_msg>Support for not scheduling send()<commit_after>var net = require('net'),
    _ = require('underscore')._,
    os = require("os");

function GraphiteClient(options) {

    var queue = {};

    var defaults = {
        host: '127.0.0.1',
        port: 2003,
        debug: false,
        interval: 60000,
        prefix: "monitoring." + os.hostname() + "."
    };

    function init() {
        options = _.defaults(options || {}, defaults);

        if (options.interval !== 0) {
            setInterval(send, options.interval);
        }

        return {
            increment: increment,
            collectLastValue: collectLastValue,
            collectMaximum: collectMaximum,
            options: options,
            send: send
        }
    }

    function increment(name, value) {
{'fraction_non_alphanumeric': 0.12881806108897742, 'fraction_numerical': 0.020584329349269587, 'mean_word_length': 1.898076923076923, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3556371', 'n_tokens_mistral': 440, 'n_tokens_neox': 401, 'n_words': 95}