<commit_before>
/*
 * GET home page.
 */

//DB設定
var mysql = require('../config/db');
var connection = mysql.dbConect.blog();

exports.blogController = {

    'top' : function(req, res){

            var queryStr = 'select * from blog limit=10';
            connection.query(queryStr, [ new Date() ], function(err, rows) {
                if(err) {
                    console.log(err);
                } else {
                    console.log('db中身' + debug(rows));
                    res.render('index', { articles: rows });<commit_msg>sql修正<commit_after>
/*
 * GET home page.
 */

//DB設定
var mysql = require('../config/db');
var connection = mysql.dbConect.blog();

exports.blogController = {

    'top' : function(req, res){

            var queryStr = 'select * from blog';
            connection.query(queryStr, [ new Date() ], function(err, rows) {
                if(err) {
                    console.log(err);
                } else {
                    console.log('db中身' + debug(rows));
                    res.render('index', { articles: rows });
{'fraction_non_alphanumeric': 0.15551366635249764, 'fraction_numerical': 0.001885014137606032, 'mean_word_length': 1.7371134020618557, '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': '5184983', 'n_tokens_mistral': 317, 'n_tokens_neox': 306, 'n_words': 67}