<commit_before>var pg = require('pg');
var http = require('http');
 
// instantiate a new client 
// the client will read connection information from 
// the same environment variables used by postgres cli tools 
var client = new pg.Client('postgres://node:12345@archives.cjblink1.pro/test');
var server = http.createServer(function(request, response) {
    // connect to our database 
    client.connect(function (err) {
    if (err) throw err;
    
        // execute a query on our database 
        client.query('SELECT * From get_all_podcasts()' , function (err, result) {
            if (err) throw err;
        
            response.end(JSON.stringify(resqqult.rows));

            // just print the result the console 
            console.log(result.rows[0].podcast_id); // outputs: { name: 'brianc' } 
        
            // disconnect the client 
            client.end(function (err) {
                if (err) throw err;
            });
        });
    });
});

server.listen(3000);
 

<commit_msg>fixed a few typos in test.js<commit_after>var pg = require('pg');
var http = require('http');

// instantiate a new client
// the client will read connection information from
// the same environment variables used by postgres cli tools
var server = http.createServer(function(request, response) {
    // connect to our database
    var client = new pg.Client('postgres://node:12345@archives.cjblink1.pro/test');
    client.connect(function (err) {
    if (err) {
      console.log(JSON.stringify(err));
      throw err;
    }

        // execute a query on our database
        client.query('SELECT * From get_all_podcasts()' , function (err, result) {
            if (err) {
              throw err;
            }

            response.end(JSON.stringify(result.rows));

            // just print the result the console
            console.log(result.rows[0].podcast_id); // outputs: { name: 'brianc' }

            // disconnect the client
            client.end(function (err) {
                if (err) throw err;
            });
        });
    });
});

server.listen(3000);
{'fraction_non_alphanumeric': 0.12248803827751197, 'fraction_numerical': 0.010526315789473684, 'mean_word_length': 2.17298937784522, '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': '1625169', 'n_tokens_mistral': 612, 'n_tokens_neox': 574, 'n_words': 168}