<commit_before>/*jslint node: true */
'use strict';

var express = require('express');
var mongo = require('mongoose');
var pythonShell = require('python-shell');

var router = express.Router();
var bodyParser = require('body-parser');

var Temp = require('../../../models/Temp');


// Path is relative to Python install for some reason, so we use absolute path
var pythonShellOptions = {
  scriptPath: '/Users/shanesteszyn/Projects/Olivier/Pool/scripts/'
};

/*===============================
=            /temps            =
===============================*/
// Bearer auth is in header already
router.route('/')
  //localhost:8080/api/temps
<commit_msg>Scripts path<commit_after>/*jslint node: true */
'use strict';

var express = require('express');
var mongo = require('mongoose');
var pythonShell = require('python-shell');

var router = express.Router();
var bodyParser = require('body-parser');

var Temp = require('../../../models/Temp');


// Path is relative to Python install for some reason, so we use absolute path
// scriptPath: '/Users/shanesteszyn/Projects/Olivier/Pool/scripts/'
var pythonShellOptions = {
  scriptPath: '/home/pi/Projecrs/PiPoolMonit/scripts/'
};

/*===============================
=            /temps            =
===============================*/
// Bearer auth is in header already
router.route('/')
  //localhost:8080/api/temps

{'fraction_non_alphanumeric': 0.2377468910021946, 'fraction_numerical': 0.005852231163130944, 'mean_word_length': 3.903225806451613, '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': '899377', 'n_tokens_mistral': 397, 'n_tokens_neox': 388, 'n_words': 103}