<commit_before>/**
 * Module dependencies.
 */

var express =
    require('express'),
    routes = require('./routes'),
    ajax = require('./routes/ajax'),
    music = require('./routes/music'),
    scanner = require('./scanner'),
    http = require('http'),
    path = require('path'),
    config = require('./settings'),
    mongoose = require('mongoose'),
    fs = require('fs'),
    connectJadeClient = require("connect-jade-client");

var app = express();

// all environments
app.set('port', process.env.PORT || config.express.port || 3000);
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
app.use(express.favicon(path.join(__dirname, 'public', 'images', 'favicon.png')));
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(app.router);
app.use(express.static(path.join(__dirname, 'public')));
app.use(connectJadeClient({
    source: path.join(__dirname, "views"),
    public: path.join(__dirname, "public"),
    prefix: "/js/templates"
}));

// development only
if ('development' == app.get('env')) {
    app.use(express.errorHandler());
}

app.get('/', routes.index);
app.get('/music/:id', music.index);
app.post('/ajax/search/artists', ajax.searchartists);
app.get('/ajax/list/tracks', ajax.listtracks);
app.get('/ajax/list/albums', ajax.listalbums);
app.get('/ajax/list/artists', ajax.listartists);
app.get('/ajax/list/albumsbyartists', ajax.listalbumsbyartists);
app.get('/ajax/fileinfo', ajax.fileinfo);
app.get('/ajax/albumart', ajax.albumart);
app.get('/ajax/hasalbumart', ajax.hasalbumart);
<commit_msg>use compress<commit_after>/**
 * Module dependencies.
 */

var express =
    require('express'),
    routes = require('./routes'),
    ajax = require('./routes/ajax'),
    music = require('./routes/music'),
    scanner = require('./scanner'),
    http = require('http'),
    path = require('path'),
    config = require('./settings'),
    mongoose = require('mongoose'),
    fs = require('fs'),
    connectJadeClient = require("connect-jade-client");

var app = express();

// all environments
app.set('port', process.env.PORT || config.express.port || 3000);
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
app.use(express.favicon(path.join(__dirname, 'public', 'images', 'favicon.png')));
app.use(express.logger('dev'));
app.use(express.compress());
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(app.router);
app.use(express.static(path.join(__dirname, 'public')));
app.use(connectJadeClient({
    source: path.join(__dirname, "views"),
    public: path.join(__dirname, "public"),
    prefix: "/js/templates"
}));

// development only
if ('development' == app.get('env')) {
    app.use(express.errorHandler());
}

app.get('/', routes.index);
app.get('/music/:id', music.index);
app.post('/ajax/search/artists', ajax.searchartists);
app.get('/ajax/list/tracks', ajax.listtracks);
app.get('/ajax/list/albums', ajax.listalbums);
app.get('/ajax/list/artists', ajax.listartists);
app.get('/ajax/list/albumsbyartists', ajax.listalbumsbyartists);
app.get('/ajax/fileinfo', ajax.fileinfo);
app.get('/ajax/albumart', ajax.albumart);
app.get('/ajax/hasalbumart', ajax.hasalbumart);

{'fraction_non_alphanumeric': 0.21807526218383713, 'fraction_numerical': 0.0024676125848241827, 'mean_word_length': 4.928702010968921, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4160890', 'n_tokens_mistral': 1085, 'n_tokens_neox': 1058, 'n_words': 174}