<commit_before>/**
 * @file Catalogopolis API Bootstrap/Initialization
 * @author <NAME> <<EMAIL>>
 */

const express = require('express'),
    restv1 = require('./restv1'),
    sqlite3 = require('sqlite3').verbose(),
    graphql = require('./graphql');

var connection = new sqlite3.Database('catalogopolis-api.sqlite', sqlite3.OPEN_READONLY);

var server = express();

restv1.init(server, connection);
graphql.init(server, connection);

server.listen(5000);<commit_msg>Build a path to the SQLite db<commit_after>/**
 * @file Catalogopolis API Bootstrap/Initialization
 * @author <NAME> <<EMAIL>>
 */

const express = require('express'),
    restv1 = require('./restv1'),
    sqlite3 = require('sqlite3').verbose(),
    graphql = require('./graphql'),
	path = require('path');

var connection = new sqlite3.Database(path.join(__dirname, '..', 'catalogopolis-api.sqlite'));

var server = express();

restv1.init(server, connection);
graphql.init(server, connection);

server.listen(5000);
{'fraction_non_alphanumeric': 0.17307692307692307, 'fraction_numerical': 0.02125506072874494, 'mean_word_length': 5.18125, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4840745', 'n_tokens_mistral': 325, 'n_tokens_neox': 311, 'n_words': 67}