<commit_before>var path = require('path')
  , _ = require('lodash')
  , tingodb = require('tingodb')()
  , uuid = require('../uuid');

module.exports = {

    // __connect:__ Initiate communication with the database.
    // 
    // `db.connect(options, callback)`
    //
    // - __options:__ The options can have information like host, port, etc. [optional]
    // - __callback:__ `function(err, queue){}`
    connect: function(options, callback) {

        if(_.isFunction(options)) {
            callback = options;
        }

        var defaults = {
            dbPath: __dirname + '/'
        };

        _.defaults(options, defaults);

        this.dbPath = options.dbPath;

        this.db = new tingodb.Db(this.dbPath, {});

        this.isConnected = true;

        callback(null, this);
    },
<commit_msg>added tingo implementation<commit_after>var path = require('path')
  , _ = require('lodash')
  , tingodb = require('tingodb')();

module.exports = {

    // __connect:__ Initiate communication with the database.
    // 
    // `db.connect(options, callback)`
    //
    // - __options:__ The options can have information like host, port, etc. [optional]
    // - __callback:__ `function(err, queue){}`
    connect: function(options, callback) {

        if(_.isFunction(options)) {
            callback = options;
        }

        var defaults = {
            dbPath: __dirname + '/'
        };

        _.defaults(options, defaults);

        this.dbPath = options.dbPath;

        this.db = new tingodb.Db(this.dbPath, {});

        this.isConnected = true;

        callback(null, this);
    },

{'fraction_non_alphanumeric': 0.1453308596165739, 'fraction_numerical': 0.0, 'mean_word_length': 2.172549019607843, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1969694', 'n_tokens_mistral': 500, 'n_tokens_neox': 472, 'n_words': 104}