<commit_before>var pg = require('pg');
var connectionString = process.env.SNAP_DB_PG_URL || process.env.DATABASE_URL || 'tcp://vagrant@localhost/pace';
var client = new pg.Client(connectionString);
client.connect(
    function (err) {
        console.log(err);
        if (!err) {
            return client.query (
                "create table participants (id SERIAL PRIMARY KEY, email VARCHAR(255), firstname VARCHAR(255), lastname VARCHAR(255));",
                function (err, res) { 
                    if (! err) { 
                        console.log("result:" , res);
                        client.end();
                        return "created";
                    }
                }
            );<commit_msg>Simplified & fixed by the done() call.<commit_after>var pg = require('pg');
var connectionString = process.env.SNAP_DB_PG_URL || process.env.DATABASE_URL || 'tcp://vagrant@localhost/pace';
pg.connect(connectionString, function (err, client, done) {
        if (!err) {
            client.query (
                "create table participants (id SERIAL PRIMARY KEY, email VARCHAR(255), firstname VARCHAR(255), lastname VARCHAR(255));");
            done();
{'fraction_non_alphanumeric': 0.12818336162988114, 'fraction_numerical': 0.015280135823429542, 'mean_word_length': 2.127320954907162, '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': '4509246', 'n_tokens_mistral': 341, 'n_tokens_neox': 309, 'n_words': 78}