<commit_before>#!/usr/bin/env node
var express = require('express')
var request = require('request')
var app = express()
var slSystems = require('./src/slSystemsCrawler')
var Bacon = require('baconjs').Bacon
var _ = require('lodash')
var courts = require('./public/courts')
var webTimmi = require('./src/webTimmiCrawler')
app.use(express.static(__dirname + '/public'))
app.get('/courts', function (req, res) {
    var isoDate = req.query.date || todayIsoDate()
    Bacon.combineTemplate({
        meilahti:     slSystems.getMeilahti(isoDate),
        herttoniemi:  slSystems.getHerttoniemi(isoDate),
        kulosaari:    slSystems.getKulosaari(isoDate),
        merihaka:     slSystems.getMerihaka(isoDate),
        //tali1:        webTimmi.getTali1(isoDate),
        //tali2:        webTimmi.getTali2(isoDate),
        taivallahti1: webTimmi.getTaivallahti1(isoDate),
        taivallahti2: webTimmi.getTaivallahti2(isoDate)
    }).onValue(function (obj) { res.send(obj) })
});

function todayIsoDate() {
    var now = new Date()
    var isoDateTime = now.toISOString()<commit_msg>Show all tali times<commit_after>#!/usr/bin/env node
var express = require('express')
var request = require('request')
var app = express()
var slSystems = require('./src/slSystemsCrawler')
var Bacon = require('baconjs').Bacon
var _ = require('lodash')
var courts = require('./public/courts')
var webTimmi = require('./src/webTimmiCrawler')
app.use(express.static(__dirname + '/public'))
app.get('/courts', function (req, res) {
    var isoDate = req.query.date || todayIsoDate()
    Bacon.combineTemplate({
        meilahti:     slSystems.getMeilahti(isoDate),
        herttoniemi:  slSystems.getHerttoniemi(isoDate),
        kulosaari:    slSystems.getKulosaari(isoDate),
        merihaka:     slSystems.getMerihaka(isoDate),
        tali1:        webTimmi.getTali1(isoDate),
        tali2:        webTimmi.getTali2(isoDate),
        taivallahti1: webTimmi.getTaivallahti1(isoDate),
        taivallahti2: webTimmi.getTaivallahti2(isoDate)
    }).onValue(function (obj) { res.send(obj) })
});

function todayIsoDate() {
    var now = new Date()
    var isoDateTime = now.toISOString()
{'fraction_non_alphanumeric': 0.14035087719298245, 'fraction_numerical': 0.007386888273314866, 'mean_word_length': 3.7314410480349345, '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': '2908000', 'n_tokens_mistral': 781, 'n_tokens_neox': 750, 'n_words': 130}