<commit_before>/**
 * This is an example of a basic node.js script that performs
 * the Authorization Code oAuth2 flow to authenticate against
 * the Spotify Accounts.
 *
 * For more information, read
 * https://developer.spotify.com/web-api/authorization-guide/#authorization_code_flow
 */

var express = require('express'); // Express web server framework
var request = require('request'); // "Request" library
var querystring = require('querystring');
var cookieParser = require('cookie-parser');

var client_id = 'a3dc7add85b7450eb59b7507049517fd'; // Your client id
var client_secret = '<KEY>'; // Your secret
var redirect_uri = 'http://localhost:8888/callback'; // Your redirect uri
var app = express();
app.use("/", express.static(__dirname));
app.use('/', express.static(__dirname + '/view'));
app.use('/', express.static(__dirname + '/scripts'));
app.use('/', express.static(__dirname + '/css'));


app.get("/", function(req, res){
  res.sendfile("index")
})

console.log('Listening on 8888');
app.listen(8888);<commit_msg>hardcoded available modules<commit_after>/**
 * This is an example of a basic node.js script that performs
 * the Authorization Code oAuth2 flow to authenticate against
 * the Spotify Accounts.
 *
 * For more information, read
 * https://developer.spotify.com/web-api/authorization-guide/#authorization_code_flow
 */

var express = require('express'); // Express web server framework
var request = require('request'); // "Request" library
var querystring = require('querystring');
var cookieParser = require('cookie-parser');

var client_id = 'a3dc7add85b7450eb59b7507049517fd'; // Your client id
var client_secret = '<KEY>'; // Your secret
var redirect_uri = 'http://localhost:8888/callback'; // Your redirect uri
var app = express();
app.use("/", express.static(__dirname));
app.use('/', express.static(__dirname + '/view'));
app.use('/', express.static(__dirname + '/scripts'));
app.use('/', express.static(__dirname + '/css'));


app.get("/", function(req, res){
  res.sendfile("index")
});

app.get("/modules", function (req, res) {
    res.send({
            modules: [
                {clock: [{options:{minwidth:100, minheight:100}}

                ]},
                        {spotify: [{options:{minwidth:100, minheight:100}}

                ]}
            ]
});

});
console.log('Listening on 8888');
app.listen(8888);
{'fraction_non_alphanumeric': 0.165890816758358, 'fraction_numerical': 0.033008887008040624, 'mean_word_length': 4.072961373390558, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2660721', 'n_tokens_mistral': 743, 'n_tokens_neox': 680, 'n_words': 183}