<commit_before>const crypto = require('../cryptUtils.js');

const conf = require('../conf.js')

function Message(sender,content) {
    this.sender = sender;
    this.content = content;
    this.timeStamp = 1000
    //this.timeStamp = Math.floor(Date.now() / 1000);
}

Message.prototype.getAsBase64 = function(){
  console.log(JSON.stringify(this));
  return new Buffer(JSON.stringify(this)).toString('base64');
}
<commit_msg>fixed message timestamp<commit_after>const crypto = require('../cryptUtils.js');

const conf = require('../conf.js')

function Message(sender,content) {
    this.sender = sender;
    this.content = content;
    this.timeStamp = Math.floor(Date.now() / 1000);
}

Message.prototype.getAsBase64 = function(){
  console.log(JSON.stringify(this));
  return new Buffer(JSON.stringify(this)).toString('base64');
}

{'fraction_non_alphanumeric': 0.16826923076923078, 'fraction_numerical': 0.02403846153846154, 'mean_word_length': 4.444444444444445, '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': '7083529', 'n_tokens_mistral': 277, 'n_tokens_neox': 258, 'n_words': 46}