<commit_before><!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Add Employee</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css">
</head>

<body>
    <div class="container-fluid my-2 header navbar-text border-bottom shadow" align="center">
        <a href = "/ui/"><h1>Rulette Server</h1></a>
    </div>
    <div class="container my-5">
        <h4 th:text="@{Editing rule id {id}(id = ${ruleToEdit.get(ruleSystem.uniqueIdColumnName)})}"></h4>
        <div class="card">
            <div class="card-body">
                <div class="col">
                    <form action="#" th:object="${ruleDto}"
                          th:action="@{/ui/save/{ruleSystemName}/{ruleId}
                            (ruleSystemName = ${ruleSystem.ruleSystemName}, ruleId=${ruleToEdit.get(ruleSystem.uniqueIdColumnName)})}"
                          method="post">
                        <div class="row">
                            <th:block th:each="colName : ${ruleSystem.inputColumnList}">
                                <div class="form-group col">
                                    <label th:text="${colName.name}"
                                           th:for="${colName.name}"
                                           class="col-form-label"></label>
                                </div>
                            </th:block>
                            <div class="form-group col">
                                <label th:text="${ruleSystem.uniqueOutputColumnName}"
                                       th:for="${ruleSystem.uniqueOutputColumnName}"
                                       class="col-form-label"></label>
                            </div>
                            <div class="col">
                                &nbsp;
                            </div>
                        </div>
                        <div class="row">
                            <th:block th:each="inputEntry : ${ruleDto.ruleInputs.entrySet()}">
                                <div class="form-group col">
                                    <input type="text"
                                           th:field="*{ruleInputs['__${inputEntry.key}__']}"
                                           th:value="*{ruleInputs['__${inputEntry.key}__']}"
                                           class="form-control"
                                           th:id="*{ruleInputs['__${inputEntry.key}__']}" />
                                </div>
                            </th:block>
                            <div class="form-group col">
                                <input type="text"
                                       th:value="${ruleToEdit.get(ruleSystem.uniqueOutputColumnName)}"
                                       class="form-control"
                                       th:id="${ruleSystem.uniqueOutputColumnName}" />
                            </div>
                            <input type="hidden"
                                   class="form-control"
                                   th:id="${ruleSystem.uniqueIdColumnName}"
                                   th:value="${ruleToEdit.get(ruleSystem.uniqueIdColumnName)}" />

                            <div class="col ">
                                <input type="submit" class="btn btn-primary" value="Save">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</body>

</html><commit_msg>rule id is not editable<commit_after><!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>Add Employee</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css">
</head>

<body>
    <div class="container-fluid my-2 header navbar-text border-bottom shadow" align="center">
        <a href = "/ui/"><h1>Rulette Server</h1></a>
    </div>
    <div class="container my-5">
        <h4 th:text="@{Editing rule id {id}(id = ${ruleToEdit.get(ruleSystem.uniqueIdColumnName)})}"></h4>
        <div class="card">
            <div class="card-body">
                <div class="col">
                    <form action="#" th:object="${ruleDto}"
                          th:action="@{/ui/save/{ruleSystemName}/{ruleId}
                            (ruleSystemName = ${ruleSystem.ruleSystemName}, ruleId=${ruleToEdit.get(ruleSystem.uniqueIdColumnName)})}"
                          method="post">
                        <div class="row">
                            <th:block th:each="colName : ${ruleSystem.inputColumnList}">
                                <div class="form-group col">
                                    <label th:text="${colName.name}"
                                           th:for="${colName.name}"
                                           class="col-form-label"></label>
                                </div>
                            </th:block>
                            <div class="form-group col">
                                <label th:text="${ruleSystem.uniqueOutputColumnName}"
                                       th:for="${ruleSystem.uniqueOutputColumnName}"
                                       class="col-form-label"></label>
                            </div>
                            <div class="col">
                                &nbsp;
                            </div>
                        </div>
                        <div class="row">
                            <th:block th:each="col : ${ruleSystem.inputColumnList}">
                                <div class="form-group col">
                                    <input type="text"
                                           th:field="*{ruleInputs['__${col.name}__']}"
                                           th:value="*{ruleInputs['__${col.name}__']}"
                                           class="form-control"
                                           th:id="*{ruleInputs['__${col.name}__']}" />
                                </div>
                            </th:block>
                            <div class="form-group col">
                                <input type="text"
                                       th:value="${ruleToEdit.get(ruleSystem.uniqueOutputColumnName)}"
                                       class="form-control"
                                       th:id="${ruleSystem.uniqueOutputColumnName}" />
                            </div>
                            <input type="hidden"
                                   class="form-control"
                                   th:id="${ruleSystem.uniqueIdColumnName}"
                                   th:value="${ruleToEdit.get(ruleSystem.uniqueIdColumnName)}" />

                            <div class="col ">
                                <input type="submit" class="btn btn-primary" value="Save">
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</body>

</html>
{'fraction_non_alphanumeric': 0.1373138228377319, 'fraction_numerical': 0.0036582179252678338, 'mean_word_length': 1.072279371954521, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 123, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 44, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1449383', 'n_tokens_mistral': 1879, 'n_tokens_neox': 1811, 'n_words': 269}