<commit_before>var express = require('express');
var router = express.Router();

ledcolor = app.get('/p', function(req, res) {
  res.send("led is set to " + req.query.led);
});

var statusFile = __base + '/data/'+ledcolor+'_status';
var isLedOn = 0
try {
	isLedOn = parseInt(fs.readFileSync(statusFile));
} catch (err) {
	console.log('could not read status file for %s led %s', ledcolor, statusFile)<commit_msg>fixed issue where app instead of router was used to retrieve status of page<commit_after>var express = require('express');
var router = express.Router();

ledcolor = router.get('/p', function(req, res) {
  res.send("led is set to " + req.query.led);
});

var statusFile = __base + '/data/'+ledcolor+'_status';
var isLedOn = 0
try {
	isLedOn = parseInt(fs.readFileSync(statusFile));
} catch (err) {
	console.log('could not read status file for %s led %s', ledcolor, statusFile)
{'fraction_non_alphanumeric': 0.15783540022547915, 'fraction_numerical': 0.002254791431792559, 'mean_word_length': 5.0, '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': '191219', 'n_tokens_mistral': 296, 'n_tokens_neox': 294, 'n_words': 88}