<commit_before>var express = require('express');
var bodyParser = require('body-parser');
var utility = require('utility');
var request = require('request');
var cheerio = require('cheerio');
var cookies = require('request-cookies');
var cron = require('cron');
var async = require('async');

var Mongo = require('mongodb').MongoClient;

var topic = require('./Model/Topic');

var url = require('url');

var db;
var latestCollection;
Mongo.connect("mongodb://localhost:27017/V2EX",function(error,mongodb){
    db = mongodb;
    latestCollection = db.collection("latest");
});

var app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: false}));

function isEmpty(str) {
    return (!str || 0 === str.length);
}

var handleCallback = function(callback, err, value1, value2) {
    try {<commit_msg>用 mlab 的免费 Mongodb<commit_after>var express = require('express');
var bodyParser = require('body-parser');
var utility = require('utility');
var request = require('request');
var cheerio = require('cheerio');
var cookies = require('request-cookies');
var cron = require('cron');
var async = require('async');

var Mongo = require('mongodb').MongoClient;

var topic = require('./Model/Topic');

var url = require('url');

var db;
var latestCollection;
Mongo.connect("mongodb://ishawnwang:<EMAIL>:45312/v2ex",function(error,mongodb){
    db = mongodb;
    latestCollection = db.collection("latest");
});

var app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: false}));

function isEmpty(str) {
    return (!str || 0 === str.length);
}

var handleCallback = function(callback, err, value1, value2) {
    try {
{'fraction_non_alphanumeric': 0.17664670658682635, 'fraction_numerical': 0.010778443113772455, 'mean_word_length': 5.7926829268292686, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '3324908', 'n_tokens_mistral': 539, 'n_tokens_neox': 516, 'n_words': 125}