<commit_before>const express = require('express'),
    app = express(),
    server = require('http').Server(app),
    io = require('socket.io')(server),
    broadcastPort = process.env.PORT || 3000

app.use(express.static('public'))

// Front page of the app
app.get('/', (req, res) => {
    res.sendFile(`${__dirname}/public/index.html`)
})

try {
    const SerialPort = require('serialport'),
        Readline = SerialPort.parsers.Readline,
        port = new SerialPort('/dev/tty.usbserial-DN00OO8D'),
        parser = port.pipe(new Readline())
    let last_req, sending = false
<commit_msg>Using device name from rpi<commit_after>const express = require('express'),
    app = express(),
    server = require('http').Server(app),
    io = require('socket.io')(server),
    broadcastPort = process.env.PORT || 3000

app.use(express.static('public'))

// Front page of the app
app.get('/', (req, res) => {
    res.sendFile(`${__dirname}/public/index.html`)
})

try {
    const SerialPort = require('serialport'),
        Readline = SerialPort.parsers.Readline,
        port = new SerialPort('/dev/ttyUSB0'),// iMac: '/dev/tty.usbserial-DN00OO8D'),
        parser = port.pipe(new Readline())
    let last_req, sending = false

{'fraction_non_alphanumeric': 0.17047308319738988, 'fraction_numerical': 0.012234910277324634, 'mean_word_length': 3.5276752767527677, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5744584', 'n_tokens_mistral': 393, 'n_tokens_neox': 386, 'n_words': 82}