<commit_before>'use strict';

var pg = require('pg').native,
    async = require('async'),
    config = require('./config/config').database;
    
var conString = 'postgres://' + config.username + ':' + config.password +
    '@' + config.options.host + '/' + config.database;

var queryList = [
    query('SELECT count(*) from threads', 'Thread Count:', 'count'),
    query('SELECT count(*) from thread_rank', 'Thread Rank Count:', 'count'),
    query('SELECT count(*) from threads where "createdAt" = now()::date', 'Today thread count:', 'count'),
    query('SELECT count(*) from thread_rank where "createdAt" = now()::date', 'Today rank count:', 'count')
];

var client = new pg.Client(conString);
    client.connect(function(err) {
        if(err) {
            return console.error('could not connect to postgres', err);
        }<commit_msg>Removed native from queryStats<commit_after>'use strict';

var pg = require('pg'),
    async = require('async'),
    config = require('./config/config').database;

var conString = 'postgres://' + config.username + ':' + config.password +
    '@' + config.options.host + '/' + config.database;

var queryList = [
    query('SELECT count(*) from threads', 'Thread Count:', 'count'),
    query('SELECT count(*) from thread_rank', 'Thread Rank Count:', 'count'),
    query('SELECT count(*) from threads where "createdAt" = now()::date', 'Today thread count:', 'count'),
    query('SELECT count(*) from thread_rank where "createdAt" = now()::date', 'Today rank count:', 'count')
];

var client = new pg.Client(conString);
    client.connect(function(err) {
        if(err) {
            return console.error('could not connect to postgres', err);
        }
{'fraction_non_alphanumeric': 0.1821933962264151, 'fraction_numerical': 0.0, 'mean_word_length': 3.8904899135446684, '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': '1721038', 'n_tokens_mistral': 499, 'n_tokens_neox': 495, 'n_words': 139}