<commit_before>var express = require('express');
var MongoClient = require('mongodb').MongoClient;
var app = express();

MongoClient.connect('mongodb://localhost:27017/blog', function(err, db) {
    "use strict";

    if(err) throw err;

    console.log('Connected to database!');
});<commit_msg>update of selected document<commit_after>var express = require('express');
var MongoClient = require('mongodb').MongoClient;
var app = express();

MongoClient.connect('mongodb://localhost:27017/blog', function(err, db) {
    "use strict";

    if(err) throw err;

    console.log('Connected to database!');

    var posts = db.collection('posts');

    posts.find({ 'permalink': 'bjdgkubdbesvrgkvvelt' }).toArray(function (err, items) {
        posts.update({ _id: items[0]._id }, { $set: { author: 'test123'} }, function (err, result) {
            console.log(result);
        });
    });
});
{'fraction_non_alphanumeric': 0.1752808988764045, 'fraction_numerical': 0.015730337078651686, 'mean_word_length': 4.241176470588235, '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': '1800444', 'n_tokens_mistral': 297, 'n_tokens_neox': 275, 'n_words': 62}