<commit_before>define(["lodash", "context", "mithril"], function(_, Context, m) {
    return function() {
        var player = m.prop(Context.getInstance().currentPlayer);
        this.resources = m.prop(_.toArray(Context.getInstance().currentPlayer.resources.resourcesList));
        this.playerName = m.prop(player().name);
    };
});
<commit_msg>FE #12 Fixed controller properties not being refreshed after a change<commit_after>define(["lodash", "context", "mithril"], function(_, Context, m) {
    return function() {
        this.resources = function() {
            return _.toArray(Context.getInstance().currentPlayer.resources.resourcesList);
        };
        this.playerName = function() {
            return Context.getInstance().currentPlayer.name;
        };
    };
});

{'fraction_non_alphanumeric': 0.15286624203821655, 'fraction_numerical': 0.0025477707006369425, 'mean_word_length': 3.4157303370786516, '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': '242234', 'n_tokens_mistral': 214, 'n_tokens_neox': 207, 'n_words': 41}