<commit_before>var async = require('async');
var mongodb = require('mongodb');
var MongoClient = mongodb.MongoClient;
var ObjectID = require('mongodb').ObjectID;
var url = process.env.MONGODB || 'mongodb://wxen:<EMAIL>:49180/colorbox' || 'mongodb://127.0.0.1:27017/colorbox';

//async waterfall 
module.exports = {
    connect:function(tasks,fn){
        var nowDb,
            task = function(callback){
                MongoClient.connect(url,function(err,db){
                    callback(err,nowDb = db);
                });<commit_msg>add scroll load<commit_after>var async = require('async');
var mongodb = require('mongodb');
var MongoClient = mongodb.MongoClient;
var ObjectID = require('mongodb').ObjectID;
var url = process.env.MONGODB || 'mongodb://127.0.0.1:27017/colorbox';

//async waterfall 
module.exports = {
    connect:function(tasks,fn){
        var nowDb,
            task = function(callback){
                MongoClient.connect(url,function(err,db){
                    callback(err,nowDb = db);
                });
{'fraction_non_alphanumeric': 0.1482194417709336, 'fraction_numerical': 0.02598652550529355, 'mean_word_length': 2.9097744360902253, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1255837', 'n_tokens_mistral': 349, 'n_tokens_neox': 316, 'n_words': 57}