<commit_before>(function() {
    "use strict";
    var app = angular.module('DDDApp', ['ui.router']);

    app.controller('StoreController', function() {
        this.products = storeInventory;
		
		// Updates the counter badge on the shopping cart  
        this.counter = 0;
        this.countAdd = function(inc) {
            this.counter += inc;
        };
    
    });

    var storeInventory = [{
        name: 'one',
        desc: 'this is the 1st box in the store',
        image: 'http://placehold.it/330x150',
        price: '1',
        canPurchase: true,
        soldOut: false<commit_msg>fixed cart counter bug<commit_after>(function() {
    "use strict";
    var app = angular.module('DDDApp', ['ui.router']);

    app.controller('StoreController', function() {
        var store = this;
        	store.products = storeInventory;
		
		// Updates the counter badge on the shopping cart when add to cart button is clicked 
        store.counter = 0;
        store.countAdd = function(inc) {
            store.counter += inc;
        };
    
    });

    var storeInventory = [{
        name: 'one',
        desc: 'this is the 1st box in the store',
        image: 'http://placehold.it/330x150',
        price: '1',
        canPurchase: true,
        soldOut: false
{'fraction_non_alphanumeric': 0.12695924764890282, 'fraction_numerical': 0.014106583072100314, 'mean_word_length': 2.062350119904077, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1404440', 'n_tokens_mistral': 391, 'n_tokens_neox': 363, 'n_words': 104}