<commit_before>var mysql = require('mysql');

function setAndGetText(router,connection,md5){
  var self=this;
  self.handleRoutes(router,connection,md5);
}

var self=this;

setAndGetText.prototype.handleRoutes = function(router,connection,md5){
  router.post('/setAndGetText',function(req,res){
    var text = req.body.text;
    var session = req.body.session;
    if(session==null || session==undefined || session==""){
      // res.json({"message":"err.. session not rec"});
      connection.query("select value from `display` where id_display=1",function(err,rows){
        if(err){
          res.json({"message":"err.. error on value"});
        }else{
          if(rows[0].length > 0){
            if(rows[0].value == null || rows[0].value == undefined){<commit_msg>ver2.8.tested<commit_after>var mysql = require('mysql');

function setAndGetText(router,connection,md5){
  var self=this;
  self.handleRoutes(router,connection,md5);
}

var self=this;

setAndGetText.prototype.handleRoutes = function(router,connection,md5){
  router.post('/setAndGetText',function(req,res){
    var text = req.body.text;
    var session = req.body.session;
    if(session==null || session==undefined || session==""){
      // res.json({"message":"err.. session not rec"});
      connection.query("select value from `display` where id_display=1",function(err,rows){
        if(err){
          res.json({"message":"err.. error on value"});
        }else{
          if(rows.length > 0){
            if(rows[0].value == null || rows[0].value == undefined){
{'fraction_non_alphanumeric': 0.1728395061728395, 'fraction_numerical': 0.011046133853151396, 'mean_word_length': 3.858044164037855, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 5, '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': '5421851', 'n_tokens_mistral': 487, 'n_tokens_neox': 477, 'n_words': 87}