<commit_before>/*
 * Author: <NAME>
 * Name: CoralStore API
 * Version: 0.0
 * 
 * Special thanks to http://pixelhandler.com/posts/develop-a-restful-api-using-nodejs-with-express-and-mongoose
 *   for guidance
 *
 */




var application_root = __dirname,
    express = require("express"),
    path = require("path"),
    mongoose = require("mongoose");

var app = express.createServer();

// Database

mongoose.connect('mongodb://localhost/coral_database');

// Config

app.configure(function() {
    app.use(express.bodyParser());
    app.use(express.methodOverride());
    app.use(app.router);
    app.use(express.static(path.join(application_root, "public")));
    app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
});

app.get('/api', function (req, res) {
    res.send('Coral API is running');
});

// Launch Server<commit_msg>remove spaces<commit_after>/*
 * Author: <NAME>
 * Name: CoralStore API
 * Version: 0.0
 * 
 * Special thanks to http://pixelhandler.com/posts/develop-a-restful-api-using-nodejs-with-express-and-mongoose
 *   for guidance
 *
 */

var application_root = __dirname,
    express = require("express"),
    path = require("path"),
    mongoose = require("mongoose");

var app = express.createServer();

// Database

mongoose.connect('mongodb://localhost/coral_database');

// Config

app.configure(function() {
    app.use(express.bodyParser());
    app.use(express.methodOverride());
    app.use(app.router);
    app.use(express.static(path.join(application_root, "public")));
    app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
});

app.get('/api', function (req, res) {
    res.send('Coral API is running');
});

// Launch Server
{'fraction_non_alphanumeric': 0.17203042715038033, 'fraction_numerical': 0.0023405500292568754, 'mean_word_length': 4.0146627565982405, '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': '3235452', 'n_tokens_mistral': 551, 'n_tokens_neox': 551, 'n_words': 100}