<commit_before>'use strict';

const bodyParser = require('body-parser'),
    express = require('express'),
    mongoose = require('mongoose');
mongoose.Promise = global.Promise;

//import models and routes
require('./public/modules/supplier/supplier.model');
const supplierRouter=require('./public/modules/supplier/supplier.route');

require('./public/modules/stock/drugorder.model.js');
const drugOrderRouter=require('./public/modules/stock/drugorder.route.js');


const app = express();
app.use(bodyParser.json());


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

// mongoose.connect('mongodb://codechamps:<EMAIL>:29651/codechamps', err => {
//     if (err) {
//         console.log(err);
//         //process.exit(1);
//     }
//     else {
//         console.log('connect to the database');
// }
// });

////////////////////////////////////////////////////////////////////////////////
//meka delete krnna epoo. meka mata test krnna daagatte - ashani
mongoose.connect('mongodb://localhost:27017/chumps', err => {
    if (err) {<commit_msg>add perscrib route to server.js - sachi<commit_after>'use strict';

const bodyParser = require('body-parser'),
    express = require('express'),
    mongoose = require('mongoose');
mongoose.Promise = global.Promise;

//import models and routes
require('./public/modules/supplier/supplier.model');
const supplierRouter=require('./public/modules/supplier/supplier.route');

require('./public/modules/stock/drugorder.model.js');
const drugOrderRouter=require('./public/modules/stock/drugorder.route.js');

require('./public/modules/ViewDispense/pres.model');
const presRouter=require('./public/modules/ViewDispense/pres.route');


const app = express();
app.use(bodyParser.json());


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

// mongoose.connect('mongodb://codechamps:<EMAIL>:29651/codechamps', err => {
//     if (err) {
//         console.log(err);
//         //process.exit(1);
//     }
//     else {
//         console.log('connect to the database');
// }
// });

////////////////////////////////////////////////////////////////////////////////
//meka delete krnna epoo. meka mata test krnna daagatte - ashani
mongoose.connect('mongodb://localhost:27017/chumps', err => {
    if (err) {
{'fraction_non_alphanumeric': 0.24343776460626587, 'fraction_numerical': 0.009314140558848433, 'mean_word_length': 2.8298217179902756, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5744580', 'n_tokens_mistral': 715, 'n_tokens_neox': 695, 'n_words': 116}