<commit_before><div ng-repeat="item in dashboard.grocery.list track by $index" class="row">
    <div class="col-xs-8">
        <i class="fa fa-minus-circle" ng-click="dashboard.grocery.deleteItem(item)" style="color:orangered"></i>
        <span>{{ item.name }}</span>
    </div>
    <div class="col-xs-2">
        <input ng-model="item.quantity" type="number" name="mealQuantity" class="form-control" min="0.5" step="0.5"/>
    </div>
    <div class="col-xs-2">
        <i class="fa fa-check-circle" ng-click="dashboard.grocery.changeQuantity(item)" style="color:limegreen"></i>
    </div>
</div>
<div class="row form-group">
    <form name="newFridgeItemAdder" role="form" ng-submit="dashboard.grocery.addItem(dashboard.grocery.newItem)">
        <div class="col-xs-8">
            <input ng-model="dashboard.grocery.newItem.name" placeholder="e.g. Cocoa" name="mealName" class="form-control" minlength="2" required/>
        </div>
        <div class="col-xs-2">
            <input ng-model="dashboard.grocery.newItem.quantity" type="number" name="mealQuantity" class="form-control" min="0.5" step="0.5" required/>
        </div>
        <div class="col-xs-2">
            <button class="btn btn-success"><i class="fa fa-plus-circle"></i></button>
        </div>
    </form>
</div>
<div class="row">
    <div class="col-xs-12">
        <i class="fa fa-trash-o pull-right" data-toggle="modal" data-target="#confirmGroceryDelete" ng-show="dashboard.grocery.list.length > 0"></i>
    </div>
    <div ng-include="'scripts/tmpl/confirmGroceryDelete.html'"></div>
</div><commit_msg>MP-18: simplified grocery list changing quantity<commit_after><div ng-repeat="item in dashboard.grocery.list track by $index" class="row">
    <div class="col-xs-10">
        <i class="fa fa-check-circle text-success" ng-click="dashboard.grocery.deleteItem(item)"></i>
        <span>{{ item.name }}</span>
    </div>
    <div class="col-xs-2">
        <input ng-model="item.quantity" type="number" name="mealQuantity" class="form-control" min="0.5" step="0.5" ng-change="dashboard.grocery.changeQuantity(item)"/>
    </div>
</div>
<div class="row form-group">
    <form name="newFridgeItemAdder" role="form" ng-submit="dashboard.grocery.addItem(dashboard.grocery.newItem)">
        <div class="col-xs-8">
            <input ng-model="dashboard.grocery.newItem.name" placeholder="e.g. Cocoa" name="mealName" class="form-control" minlength="2" required/>
        </div>
        <div class="col-xs-2">
            <input ng-model="dashboard.grocery.newItem.quantity" type="number" name="mealQuantity" class="form-control" min="0.5" step="0.5" required/>
        </div>
        <div class="col-xs-2">
            <button class="btn btn-success"><i class="fa fa-plus-circle"></i></button>
        </div>
    </form>
</div>
<div class="row">
    <div class="col-xs-12">
        <i class="fa fa-trash-o pull-right" data-toggle="modal" data-target="#confirmGroceryDelete" ng-show="dashboard.grocery.list.length > 0"></i>
    </div>
    <div ng-include="'scripts/tmpl/confirmGroceryDelete.html'"></div>
</div>
{'fraction_non_alphanumeric': 0.1997401753816174, 'fraction_numerical': 0.012341669373173108, 'mean_word_length': 3.522760646108664, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 79, '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': '4817380', 'n_tokens_mistral': 1086, 'n_tokens_neox': 1045, 'n_words': 183}