<commit_before>var sql = require('mssql');

var config = {
  // Reach database connection params
 
    user: 'sa',
    password: '<PASSWORD>',
    server: 'wbalshem01046', // You can use 'localhost\\instance' to connect to named instance
    driver: 'msnodesql',
    database: 'Reach',
    //connectionString: "Driver={SQL Server Native Client 11.0};Server=#{server};Database=#{database};Uid=#{user};Pwd=#{password};Trusted_Connection={true}",
    connectionString: "Driver={SQL Server Native Client 11.0};Server=#{server};Database=#{database};Trusted_Connection=yes",
    options: {
        encrypt: false // Use this if you're on Windows Azure
    }
};

var express = require('express');
var app = express();

app.use(function(req, res, next) {
res.setHeader("Access-Control-Allow-Origin", "*");
return next();
});

app.use(express.static(__dirname +'/html'));

console.log("Registering endpoint: /");
app.get('/', function(req, res){<commit_msg>PR-1666 #time 2h Was able to finish the proof of concept and successfully test the API with data from the database<commit_after>var sql = require('mssql');

var config = {
  // Reach database connection params
 
    user: 'xx',
    password: '<PASSWORD>',
    server: 'xxxxxxxxx', // You can use 'localhost\\instance' to connect to named instance
    driver: 'msnodesql',
    database: 'xxxxxx',
    //connectionString: "Driver={SQL Server Native Client 11.0};Server=#{server};Database=#{database};Uid=#{user};Pwd=#{password};Trusted_Connection={true}",
    connectionString: "Driver={SQL Server Native Client 11.0};Server=#{server};Database=#{database};Trusted_Connection=yes",
    options: {
        encrypt: false // Use this if you're on Windows Azure
    }
};

var express = require('express');
var app = express();

app.use(function(req, res, next) {
res.setHeader("Access-Control-Allow-Origin", "*");
return next();
});

app.use(express.static(__dirname +'/html'));

console.log("Registering endpoint: /");
app.get('/', function(req, res){
{'fraction_non_alphanumeric': 0.17051153460381144, 'fraction_numerical': 0.011033099297893681, 'mean_word_length': 4.833333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '527692', 'n_tokens_mistral': 614, 'n_tokens_neox': 590, 'n_words': 157}