<commit_before>//setup
var azure = require('azure');
var port = process.env.PORT | 3000;
var mongoDbuser = "";
var mongoDbpass = "";
azure.RoleEnvironment.getConfigurationSettings(function(error, settings) {
  if (!error) {
      mongoDbpass = settings['dbpass'];
      mongoDbuser = settings['dbuser'];
  }
});

var mongoDbAccess = "mongodb://"+mongoDbuser+":"+mongoDbpass+"@<EMAIL>:64188/loteriaparagonowaapi"
var mongoose = require('mongoose');
mongoose.connect(mongoDbAccess);
var lottery = require('./lotteryModel');
var express = require('express');
var app = express();
var bodyParser = require('body-parser');

app.use(bodyParser.json()); // support json encoded bodies
app.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies

var lotteryController = require('./lotteryController');

app.get('/', function(req,res){
   res.send("It works"); 
});

app.get('/lottery/:nr', lotteryController.findByNr);
app.get('/lottery', lotteryController.find);
app.post('/lottery', lotteryController.add);

app.listen(port);
console.log("Listen start at: " + port);
<commit_msg>change port from 3000 to 1337<commit_after>//setup
var azure = require('azure');
var port = process.env.PORT | 1337;
var mongoDbuser = "";
var mongoDbpass = "";
azure.RoleEnvironment.getConfigurationSettings(function(error, settings) {
  if (!error) {
      mongoDbpass = settings['dbpass'];
      mongoDbuser = settings['dbuser'];
  }
});

var mongoDbAccess = "mongodb://"+mongoDbuser+":"+mongoDbpass+"@<EMAIL>.<EMAIL>:64188/loteriaparagonowaapi"
var mongoose = require('mongoose');
mongoose.connect(mongoDbAccess);
var lottery = require('./lotteryModel');
var express = require('express');
var app = express();
var bodyParser = require('body-parser');

app.use(bodyParser.json()); // support json encoded bodies
app.use(bodyParser.urlencoded({ extended: true })); // support encoded bodies

var lotteryController = require('./lotteryController');

app.get('/', function(req,res){
   res.send("It works"); 
});

app.get('/lottery/:nr', lotteryController.findByNr);
app.get('/lottery', lotteryController.find);
app.post('/lottery', lotteryController.add);

app.listen(port);
console.log("Listen start at: " + port);

{'fraction_non_alphanumeric': 0.17798913043478262, 'fraction_numerical': 0.01177536231884058, 'mean_word_length': 5.8390092879256965, 'pattern_counts': {'":': 2, '<': 6, '<?xml version=': 0, '>': 6, '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': '3537880', 'n_tokens_mistral': 716, 'n_tokens_neox': 693, 'n_words': 141}