<commit_before>package io.frontierrobotics.i2c.api

import org.wasabifx.wasabi.app.AppServer
import org.wasabifx.wasabi.interceptors.enableContentNegotiation

class Server (val i2cController: I2CController)
{
    fun start()
    {
        val server = AppServer()

        server.enableContentNegotiation()
        server.put("/bus/:bus/address/:address", i2cController.sendCommand)
        server.put("/bus/:bus/address/:address/internal_address/:internal_address", i2cController.sendCommand)

        server.start()
    }
}<commit_msg>This is easy!<commit_after>package io.frontierrobotics.i2c.api

import org.wasabifx.wasabi.app.AppServer
import org.wasabifx.wasabi.interceptors.enableContentNegotiation

class Server (val i2cController: I2CController)
{
    fun start()
    {
        val server = AppServer()

        server.enableContentNegotiation()
        server.put("/bus/:bus/address/:address", i2cController.sendCommand)
        server.put("/bus/:bus/address/:address/internal_address/:internal_address", i2cController.sendCommand)

        server.exception(IllegalArgumentException::class, {
            response.setStatus(418, "My brew is not as strong as yours!")
            response.send("Out of beans: ${exception.message}")
        })

        server.start()
    }
}
{'fraction_non_alphanumeric': 0.11526479750778816, 'fraction_numerical': 0.010124610591900311, 'mean_word_length': 3.5567375886524824, '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': '4039126', 'n_tokens_mistral': 397, 'n_tokens_neox': 398, 'n_words': 60}