<commit_before>var express = require('express');
var app = express();
var csvjson = require('csvjson');
var traverse = require('traverse');
//var knayi = require("knayi-myscript");
// Retrieve
var MongoClient = require('mongodb').MongoClient;
var ObjectID = require('mongodb').ObjectID;
var dbhost="mongodb://10.240.33.97:27017/elecapi";
var pagesize=20;
var page=1;

var fixDate=function(item){
	if(item===null) return item;
	if(item.establishment_approval_date!==null) item.establishment_approval_date =new Date(item.establishment_approval_date).getTime();
	if(item.registration_application_date!==null) item.registration_application_date =new Date(item.registration_application_date).getTime();
	if(item.registration_approval_date!==null) item.registration_approval_date =new Date(item.registration_approval_date).getTime();
	if(item.establishment_date!==null) item.establishment_date =new Date(item.establishment_date).getTime();
	item.created_at=new Date(item.created_at).getTime();
	item.updated_at=new Date(item.updated_at).getTime();<commit_msg>Change mongodb IP<commit_after>var express = require('express');
var app = express();
var csvjson = require('csvjson');
var traverse = require('traverse');
//var knayi = require("knayi-myscript");
// Retrieve
var MongoClient = require('mongodb').MongoClient;
var ObjectID = require('mongodb').ObjectID;
var dbhost="mongodb://10.240.0.2:27017/elecapi";
var pagesize=20;
var page=1;

var fixDate=function(item){
	if(item===null) return item;
	if(item.establishment_approval_date!==null) item.establishment_approval_date =new Date(item.establishment_approval_date).getTime();
	if(item.registration_application_date!==null) item.registration_application_date =new Date(item.registration_application_date).getTime();
	if(item.registration_approval_date!==null) item.registration_approval_date =new Date(item.registration_approval_date).getTime();
	if(item.establishment_date!==null) item.establishment_date =new Date(item.establishment_date).getTime();
	item.created_at=new Date(item.created_at).getTime();
	item.updated_at=new Date(item.updated_at).getTime();
{'fraction_non_alphanumeric': 0.1461100569259962, 'fraction_numerical': 0.015180265654648957, 'mean_word_length': 9.090909090909092, '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': '147386', 'n_tokens_mistral': 733, 'n_tokens_neox': 679, 'n_words': 107}