<commit_before><!doctype html>
<html lang="en">
<head>
    <title>RabbitMQ Demo</title>
</head>
<body>
    <header>
        <h1>RabbitMQ Demo</h1>
    </header>

    <div class="main">
        <div class="left">
            <div id="clientInfo">
                <div>Client ID: <span data-prop="clientId"></span></div>
                <div>Connected to: <span data-prop="serverId"></span></div>
            </div>
            <div id="jobInput">
                <h3>New Job</h3>
                <input type="text" placeholder="Enter job input">
                <button >Submit Job</button> 
            </div>
        </div>
        <div class="right">
            <h4>Job Results</h4>
            <div id="results">
            </div>
        </div>
    </div>
    
    <footer>
        <a href="https://github.com/habbes/rmq-demo">Documentation and Source Code</a>
    </footer>
<script>

var newJobBtn = document.getElementById('newJobBtn');
var newJobInput = document.getElementById('newJobInput');

window.onload = init;

/**<commit_msg>Style basic layout for page<commit_after><!doctype html>
<html lang="en">
<head>
    <title>RabbitMQ Demo</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
        html {
            height: 100%;
        }
        body {
            font-family: Arial, Helvetica, sans-serif;
            margin: 0;
            height: 100%;
        }

        .container {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        header, footer {
            text-align: center;
        }

        .main  {
            margin: 10px 100px;
            flex-grow: 1;
            display: flex;
            flex-direction: row;
            align-items: baseline;
            justify-content: space-between;
        }

        .left {
            flex-grow: 2;
        }

        .right {
            flex-grow: 1;
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <h1>RabbitMQ Demo</h1>
        </header>

        <div class="main">
            <div class="left">
                <div id="clientInfo">
                    <div>Client ID: <span data-prop="clientId"></span></div>
                    <div>Connected to: <span data-prop="serverId"></span></div>
                </div>
                <div id="jobInput">
                    <h3>New Job</h3>
                    <input type="text" placeholder="Enter job input">
                    <button >Submit Job</button> 
                </div>
            </div>
            <div class="right">
                <h4>Job Results</h4>
                <div id="results">
                </div>
            </div>
        </div>
        
        <footer>
            <a href="https://github.com/habbes/rmq-demo">Documentation and Source Code</a>
        </footer>
    </div>
<script>

var newJobBtn = document.getElementById('newJobBtn');
var newJobInput = document.getElementById('newJobInput');

window.onload = init;

/**
{'fraction_non_alphanumeric': 0.14657444005270093, 'fraction_numerical': 0.010210803689064558, 'mean_word_length': 1.4852700490998363, 'pattern_counts': {'":': 0, '<': 94, '<?xml version=': 0, '>': 94, 'https://': 2, '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': '5410080', 'n_tokens_mistral': 943, 'n_tokens_neox': 887, 'n_words': 190}