<commit_before><label for="new-ingredient">Ingredientes</label>
<input
    id="new-ingredient"
    type="text"
    placeholder="Nombre ingrediente"
    class="u-full-width"
    ng-model="$ctrl.ingredient.name"
    ng-keydown="$ctrl.pressedKey($event)">
<table class="u-full-width">
    <thead>
        <tr>
            <th>Ingrediente</th>
            <th colspan="2">Cantidad</th>
        </tr>
    </thead>
    <tbody>
        <tr ng-repeat="ingredient in $ctrl.ingredients">
            <td>{{ ingredient.name }}</td>
            <td>
                <input type="number" ng-model="ingredient.quantity" min="1">
            </td>
            <td>
                <!-- $index given by Angular on ng-repeat -->
                <button ng-click="$ctrl.notifyDelete($index)">Eliminar</button>
            </td>
        </tr>
    </tbody>
</table><commit_msg>Only show table if it contents anything<commit_after><label for="new-ingredient">Ingredientes</label>
<input
    id="new-ingredient"
    type="text"
    placeholder="Nombre ingrediente"
    class="u-full-width"
    ng-model="$ctrl.ingredient.name"
    ng-keydown="$ctrl.pressedKey($event)">
<!-- ng-show shows if expression is evaluated to true and ng-hide reverse -->
<!-- ng-if doesn't write code if expression is false -->
<table class="u-full-width" ng-show="($ctrl.ingredients.length > 0)">
    <thead>
        <tr>
            <th>Ingrediente</th>
            <th colspan="2">Cantidad</th>
        </tr>
    </thead>
    <tbody>
        <tr ng-repeat="ingredient in $ctrl.ingredients">
            <td>{{ ingredient.name }}</td>
            <td>
                <input type="number" ng-model="ingredient.quantity" min="1">
            </td>
            <td>
                <!-- $index given by Angular on ng-repeat -->
                <button ng-click="$ctrl.notifyDelete($index)">Eliminar</button>
            </td>
        </tr>
    </tbody>
</table>
{'fraction_non_alphanumeric': 0.17118997912317327, 'fraction_numerical': 0.0026096033402922755, 'mean_word_length': 2.096930533117932, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 60, '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': '4084023', 'n_tokens_mistral': 628, 'n_tokens_neox': 595, 'n_words': 118}