<commit_before>/**
 * SharedChain Chainlink
 *
 * A Node.js application supporting the SharedChain Protocol
 * http://sharedchain.com/protocol
 */
"use strict"

// Set the port this Chainlink will run on
var port = process.env.PORT || 3000;

const koa = require('koa'),
    route = require('koa-route'),
    websockify = require('koa-websocket');

const app = websockify(koa());

app.use(route.get('/', function* (next) {
    this.body = 'Heello';
}));

// Note it's app.ws.use and not app.use
app.ws.use(route.all('/', function* (next) {
    // `this` is the regular koa context created from the `ws` onConnection `socket.upgradeReq` object.
    // the websocket is added to the context on `this.websocket`.
    this.websocket.send('Hello World');
    this.websocket.on('message', function(message) {
        // do something with the message from client
        console.log(message);
    });
    // yielding `next` will pass the context (this) on to the next ws middleware
    yield next;
}));

app.listen(port);<commit_msg>Good to go, no semi-colons<commit_after>/**
 * SharedChain Chainlink
 *
 * A Node.js application supporting the SharedChain Protocol
 * http://sharedchain.com/protocol
 */
"use strict"

// Set the port this Chainlink will run on
var port = process.env.PORT || 3000

const koa = require('koa')
const route = require('koa-route')
const websockify = require('koa-websocket')

const app = websockify(koa())

app.use(route.get('/', function* (next) {
    this.body = 'Heello'
}))

// Note it's app.ws.use and not app.use
app.ws.use(route.all('/', function* (next) {
    // `this` is the regular koa context created from the `ws` onConnection `socket.upgradeReq` object.
    // the websocket is added to the context on `this.websocket`.
    this.websocket.send('Hello World')
    this.websocket.on('message', function(message) {
        // do something with the message from client
        console.log(message)
    });
    // yielding `next` will pass the context (this) on to the next ws middleware
    yield next
}))

app.listen(port)
{'fraction_non_alphanumeric': 0.1411192214111922, 'fraction_numerical': 0.0038929440389294406, 'mean_word_length': 3.412017167381974, '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': '7499927', 'n_tokens_mistral': 661, 'n_tokens_neox': 632, 'n_words': 203}