<commit_before>'use strict';

angular.module('Grid', [])
.factory('TileModel', function() {
    var Tile = function(coordinate, val) {
        this.coordinate = coordinate;
        this.value = val || 2;
    };

    Tile.prototype.getPosition = function() {
        return this.coordinate;
    };

    Tile.prototype.updateCoordinate = function(newCoordinate) {
        this.coordinate = newCoordinate;
    };
<commit_msg>Create merged indicator within TileModel and reset method.<commit_after>'use strict';

angular.module('Grid', [])
.factory('TileModel', function() {
    var Tile = function(coordinate, val) {
        this.coordinate = coordinate;
        this.value = val || 2;
        this.merged = false;
    };

    Tile.prototype.getPosition = function() {
        return this.coordinate;
    };

    Tile.prototype.updateCoordinate = function(newCoordinate) {
        this.coordinate = newCoordinate;
    };

    // Reset tile to initial state.
    Tile.prototype.reset = function() {
        this.merged = false;
    };

{'fraction_non_alphanumeric': 0.12997090203685743, 'fraction_numerical': 0.0019398642095053346, 'mean_word_length': 2.7664233576642334, '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': '1039331', 'n_tokens_mistral': 307, 'n_tokens_neox': 284, 'n_words': 62}