<commit_before>// const express = require('express')
const queries = require('./queries.js')
const pgPromise = require('pg-promise')
const pgp = pgPromise()
const db = pgp({
	database: 'to_do_list'
})

const actions = {
	getAll: () => db.any(queries.selectAll),
	create: (title) => {
		db.any(queries.insert, [title])
		return 'new sticky created'
	},
	delete: (id) => {
		db.none(queries.delete, [id])
		return 'sticky has been deleted'
	},
	update: (title, id) => {
		db.one(queries.update, [title, id])
		return 'sticky has been updated'
	}
}

module.exports = actions<commit_msg>Removes returns from actions.js<commit_after>// const express = require('express')
const queries = require('./queries.js')
const pgPromise = require('pg-promise')
const pgp = pgPromise()
const db = pgp({
	database: 'to_do_list'
})

const actions = {
	getAll: () => db.any(queries.selectAll),
	create: (title) => {
		db.any(queries.insert, [title])
		// return 'new sticky created'
	},
	delete: (id) => {
		db.none(queries.delete, [id])
		// return 'sticky has been deleted'
	},
	update: (title, id) => {
		db.one(queries.update, [title, id])
		// return 'sticky has been updated'
	}
}

module.exports = actions
{'fraction_non_alphanumeric': 0.1768650461022632, 'fraction_numerical': 0.0, 'mean_word_length': 4.146551724137931, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3698765', 'n_tokens_mistral': 442, 'n_tokens_neox': 427, 'n_words': 106}