<commit_before>
var angularserver = require('../lib/main.js');
var path = require('path');
var fs = require('fs');
var express = require('express');

var templateFile = path.join(__dirname, 'simpleapp.html');
var template = fs.readFileSync(templateFile, {encoding:'utf8'});
var staticDir = __dirname;

var app = express();
var angularMiddlewares = angularserver.middlewares(
    {
        template: template,
        serverScripts: [
            path.join(__dirname, 'angular.js'),
            path.join(__dirname, 'simpleapp.js')
        ],
        clientScripts: [
            '/:static/angular.js',<commit_msg>Updating example to use Server instead of middlewares<commit_after>
var angularserver = require('../lib/main.js');
var path = require('path');
var fs = require('fs');
var express = require('express');

var templateFile = path.join(__dirname, 'simpleapp.html');
var template = fs.readFileSync(templateFile, {encoding:'utf8'});
var staticDir = __dirname;

var app = express();
var angularMiddlewares = angularserver.Server(
    {
        template: template,
        serverScripts: [
            path.join(__dirname, 'angular.js'),
            path.join(__dirname, 'simpleapp.js')
        ],
        clientScripts: [
            '/:static/angular.js',
{'fraction_non_alphanumeric': 0.14591593973037273, 'fraction_numerical': 0.0015860428231562252, 'mean_word_length': 3.3517241379310345, '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': '5910158', 'n_tokens_mistral': 363, 'n_tokens_neox': 360, 'n_words': 84}