<commit_before>/** This module defines the routes for comments using the store.js as db memory
 *
 * @author <NAME>
 * @licence CC BY-SA 4.0
 *
 * @module routes/comments
 * @type {Router}
 */

// remember: in modules you have 3 variables given by CommonJS
// 1.) require() function
// 2.) module.exports
// 3.) exports (which is module.exports)

// modules
var express = require('express');
var logger = require('debug')('me2u4:videos');
var store = require('../blackbox/store');
var utils = require('../utils/utils');

var comments = express.Router();

// if you like, you can use this for task 1.b:
var requiredKeys = {videoid: 'number', text: 'string'};
var optionalKeys = {likes: 'number', dislikes: 'number'};
var internalKeys = {id: 'number', timestamp: 'number'};<commit_msg>no message<commit_after>/** This module defines the routes for comments using the store.js as db memory
 *
 * @author <NAME>
 * @licence CC BY-SA 4.0
 *
 * @module routes/comments
 * @type {Router}
 */

// remember: in modules you have 3 variables given by CommonJS
// 1.) require() function
// 2.) module.exports
// 3.) exports (which is module.exports)

// modules
var express = require('express');
var logger = require('debug')('me2u4:comments');
var store = require('../blackbox/store');
var utils = require('../utils/utils');

var comments = express.Router();

// if you like, you can use this for task 1.b:
var requiredKeys = {videoid: 'number', text: 'string'};
var optionalKeys = {likes: 'number', dislikes: 'number'};
var internalKeys = {id: 'number', timestamp: 'number'};
{'fraction_non_alphanumeric': 0.16485623003194888, 'fraction_numerical': 0.011501597444089457, 'mean_word_length': 4.117647058823529, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6229855', 'n_tokens_mistral': 490, 'n_tokens_neox': 478, 'n_words': 176}