<commit_before><html>

<head>

    <meta charset="utf-8">
    <title>Vert.x HTTP + ConfigMap Booster</title>

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
          integrity="<KEY>" crossorigin="anonymous">

</head>

<body>

<div class="container">

    <div>
        <h1>Vert.x HTTP + ConfigMap Booster</h1>
        <p class="lead">This mission showcases application configuration, using OpenShift <em>configmaps</em>. It
            demonstrates application and runtime configuration leveraging external configuration sources. Alongside
            the basic means to set up a <em>configmap</em> and use with a specific runtime, this booster also
            demonstrates how changes to the configuration can be applied to services already deployed in OpenShift.
        </p>

        <h2>Using the greeting service</h2>
        
        <form class="form-inline">
            <div class="form-group">
                <label for="name">Name</label>
                <input type="text" class="form-control" id="name" placeholder="World">
            </div>
            <button id="invoke" type="submit" class="btn btn-success">Invoke</button>
        </form>

        <h3>Result:</h3>
        <pre><code id="greeting-result">Invoke the service to see the result.</code></pre>

        <p class="lead">
            Once you have invoked the <em>greeting</em> service, you can reconfigure it:
        </p>
        <ol>
            <li>Run <code>oc edit configmap app-config</code></li>
            <li>Change the <code>message</code> entry to <code>Bonjour, %s from Kubernetes ConfigMap !</code></li>
            <li>Change the <code>level</code> entry to <code>DEBUG</code></li>
            <li>Save</li>
        </ol>
    </div>
</div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
        integrity="<KEY>"
        crossorigin="anonymous"></script>

<script>
    $(document).ready(function() {
       $("#invoke").click(function(e) {
          var n = $("#name").val() || "World";
          $.getJSON("/api/greeting?name=" + n, function(res) {
              $("#greeting-result").html(JSON.stringify(res));
          });
          e.preventDefault();
       });
    });
</script>

</body>

</html><commit_msg>handle the config mapp issue in the UI<commit_after><html>

<head>

    <meta charset="utf-8">
    <title>Vert.x HTTP + ConfigMap Booster</title>

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous">

</head>

<body>

    <div class="container">

        <div>
            <h1>Vert.x HTTP + ConfigMap Booster</h1>
            <p class="lead">This mission showcases application configuration, using OpenShift <em>configmaps</em>. It demonstrates application and runtime configuration leveraging external configuration sources. Alongside the basic means to set up a <em>configmap</em>                and use with a specific runtime, this booster also demonstrates how changes to the configuration can be applied to services already deployed in OpenShift.
            </p>

            <h2>Using the greeting service</h2>

            <form class="form-inline">
                <div class="form-group">
                    <label for="name">Name</label>
                    <input type="text" class="form-control" id="name" placeholder="World">
                </div>
                <button id="invoke" type="submit" class="btn btn-success">Invoke</button>
            </form>

            <h3>Result:</h3>
            <pre><code id="greeting-result">Invoke the service to see the result.</code></pre>

            <p class="lead">
                Once you have invoked the <em>greeting</em> service, you can reconfigure it:
            </p>
            <ol>
                <li>Run <code>oc edit configmap app-config</code></li>
                <li>Change the <code>message</code> entry to <code>Bonjour, %s from Kubernetes ConfigMap !</code></li>
                <li>Change the <code>level</code> entry to <code>DEBUG</code></li>
                <li>Save</li>
            </ol>
        </div>
    </div>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="<KEY>" crossorigin="anonymous"></script>

    <script>
        $(document).ready(function() {
            $("#invoke").click(function(e) {
                var n = $("#name").val() || "World";
                $.getJSON("/api/greeting?name=" + n, function(res) {
                        $("#greeting-result").html(JSON.stringify(res));
                    })
                    .fail(function(jqxhr, textStatus, error) {
                        $("#greeting-result").html("Unable to read the configuration");
                    });
                e.preventDefault();
            });
        });
    </script>

</body>

</html>
{'fraction_non_alphanumeric': 0.15486898709425106, 'fraction_numerical': 0.00664841611263199, 'mean_word_length': 2.2830551989730425, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 0, '>': 145, 'https://': 6, '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': '1994440', 'n_tokens_mistral': 1498, 'n_tokens_neox': 1449, 'n_words': 350}