<commit_before>/**
* Pizzazz Server
* @author: <NAME>
*/

var static = require('node-static');
var fileServer = new static.Server('./');
require('http').createServer(function (request, response) {
    request.addListener('end', function () {
        fileServer.serve(request, response);
    }).resume();
}).listen(8080);

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

/**
* Test Endpoint
* @param
* @return
**/
app.get('/api/test', function(req, res) {
    console.log('/api/test');
    next();
  }, function (req, res) {
    res.send('Hello, world! Testicular test!');
    var data = req.query;
    var color = data.color;
    console.log(color);
});

/**
* Complementary Endpoint
* @param
* @return
**/
app.get('/api/complementary', function(req, res) {
    console.log('/api/complementary');
    next();
  }, function (req, res) {
    res.send('Complementary');
    var data = req.query;
    var color = data.color;
    console.log(color);
});

/**
* Analogous Endpoint
* @param
* @return
**/
app.get('/api/analogous', function(req, res) {
    console.log('/api/analogous');
    next();
  }, function (req, res) {
    res.send('Analogous');
    var data = req.query;
    var color = data.color;
    console.log(color);
});

/**
* Triad Endpoint
* @param
* @return
**/
app.get('/api/triad', function(req, res) {
    console.log('/api/triad');
    next();
  }, function (req, res) {
    res.send('Triad');
    var data = req.query;
    var color = data.color;
    console.log(color);
});

/**
* Split-Complementary Endpoint
* @param
* @return
**/
app.get('/api/split', function(req, res) {
    console.log('/api/split');
    next();
  }, function (req, res) {
    res.send('Split');
    var data = req.query;
    var color = data.color;
    console.log(color);
});

/**
* Rectangle Endpoint
* @param
* @return
**/
app.get('/api/rectangle', function(req, res) {
    console.log('/api/rectangle');
    next();
  }, function (req, res) {
    res.send('Rectangle');
    var data = req.query;
    var color = data.color;
    console.log(color);
});

/**
* Square Endpoint
* @param
* @return
**/
app.get('/api/square', function(req, res) {
    console.log('/api/square');
    next();
  }, function (req, res) {
    res.send('Square');
    var data = req.query;
    var color = data.color;
    console.log(color);
});

app.listen(8081);
<commit_msg>Fix next() error<commit_after>/**
* Pizzazz Server
* @author: <NAME>
*/

var static = require('node-static');
var fileServer = new static.Server('./');
require('http').createServer(function (request, response) {
    request.addListener('end', function () {
        fileServer.serve(request, response);
    }).resume();
}).listen(8080);

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

/**
* Test Endpoint
* @param
* @return
**/
app.get('/api/test', function(req, res, next) {
    console.log('/api/test');
    next();
  }, function (req, res) {
    res.send('Hello, world! Testicular test!');
    var data = req.query;
    var color = data.color;
    console.log(color);
});

/**
* Complementary Endpoint
* @param
* @return
**/
app.get('/api/complementary', function(req, res, next) {
    console.log('/api/complementary');
    next();
  }, function (req, res) {
    res.send('Complementary');
    var data = req.query;
    var color = data.color;
    console.log(color);
});

/**
* Analogous Endpoint
* @param
* @return
**/
app.get('/api/analogous', function(req, res, next) {
    console.log('/api/analogous');
    next();
  }, function (req, res) {
    res.send('Analogous');
    var data = req.query;
    var color = data.color;
    console.log(color);
});

/**
* Triad Endpoint
* @param
* @return
**/
app.get('/api/triad', function(req, res, next) {
    console.log('/api/triad');
    next();
  }, function (req, res) {
    res.send('Triad');
    var data = req.query;
    var color = data.color;
    console.log(color);
});

/**
* Split-Complementary Endpoint
* @param
* @return
**/
app.get('/api/split', function(req, res, next) {
    console.log('/api/split');
    next();
  }, function (req, res) {
    res.send('Split');
    var data = req.query;
    var color = data.color;
    console.log(color);
});

/**
* Rectangle Endpoint
* @param
* @return
**/
app.get('/api/rectangle', function(req, res, next) {
    console.log('/api/rectangle');
    next();
  }, function (req, res) {
    res.send('Rectangle');
    var data = req.query;
    var color = data.color;
    console.log(color);
});

/**
* Square Endpoint
* @param
* @return
**/
app.get('/api/square', function(req, res, next) {
    console.log('/api/square');
    next();
  }, function (req, res) {
    res.send('Square');
    var data = req.query;
    var color = data.color;
    console.log(color);
});

app.listen(8081);

{'fraction_non_alphanumeric': 0.2077457377394233, 'fraction_numerical': 0.003367712060618817, 'mean_word_length': 3.183098591549296, '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': '279658', 'n_tokens_mistral': 1660, 'n_tokens_neox': 1661, 'n_words': 351}