<commit_before>Ext.define('ScrumButMobile.model.Result', {
    extend: 'Ext.data.Model',
    
    /**
     * Average Resultpoints 
     *
     * @var Int
     */
    averagePoints: 50,
    
    /**
     * Creates the Resultpage Text and returns it
     *
     * @param score     The current Score
     * @return String
     */
    getResultPageText: function(score) {
        var comment = this.getResultComment(score);
        var text = "Erreichte Punkte: " + score + "</br>" +
                   "Durschnittliche Punkte: " + this.averagePoints + "</br>" +
                   comment;
        return text;
    },
    
    /**
     * Gets the comment for the Resultpage based on the current Score
     * 
     * @param score     The current Score, used for getting the comment 
     * @return String
     */
    getResultComment: function(score) {
        var comment = "Knnte besser sein";
        
        return comment;
    }
});<commit_msg>Dynamic result comment The result comment now depends on the reached score<commit_after>Ext.define('ScrumButMobile.model.Result', {
    extend: 'Ext.data.Model',
    
    /**
     * Average Resultscore 
     *
     * @var Int
     */
    averageScore: 50,
    
    /**
     * Creates the Resultpage Text and returns it
     *
     * @param score     The current Score
     * @return String
     */
    getResultPageText: function(score) {
        var comment = this.getResultComment(score);
        var text = "Erreichte Punkte: " + score + "</br>" +
                   "Durschnittliche Punkte: " + this.averageScore + "</br>" +
                   comment;
        return text;
    },
    
    /**
     * Gets the comment for the Resultpage based on the current Score
     * 
     * @param score     The current Score, used for getting the comment 
     * @return String
     */
    getResultComment: function(score) {
		
		var comment = "Knnte besser sein"; 
		
		if (this.averageScore < score) {
			comment = "Glckwunsch!"; 
		} 
			
        return comment;
    }
});
{'fraction_non_alphanumeric': 0.10570719602977667, 'fraction_numerical': 0.0019851116625310174, 'mean_word_length': 1.8514851485148516, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 7, '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': '7276977', 'n_tokens_mistral': 598, 'n_tokens_neox': 573, 'n_words': 162}