<commit_before><commit_msg>initial work on MungedLanguage module<commit_after>package ca.vire.ChatMunger;

/*
 * This object represents the attributes of a specific language that belongs to a player
 */
public class MungedLanguage {

    public int CurrentSkillPoints; // Number of skill points the player has gained so far
    public int RequiredSkillPoints; // Number of skill points required to have learned the language

    public MungedLanguage(int currentSkillPoints, int requiredSkillPoints) {
        CurrentSkillPoints = currentSkillPoints;
        RequiredSkillPoints = currentSkillPoints;
    }
    
    // Add or remove a skill point
    public void AddPoint(int point) {
        CurrentSkillPoints += point;
        
        if (CurrentSkillPoints > RequiredSkillPoints)
            CurrentSkillPoints = RequiredSkillPoints;
        
        if (CurrentSkillPoints < 0)
            CurrentSkillPoints = 0;
    }
    
    // Return language skill as number between 0 - 100 
    public int GetSkillPercentage() {
        return (int)(((double)CurrentSkillPoints / (double)RequiredSkillPoints) * 100.0);
    }
}
{'fraction_non_alphanumeric': 0.06327985739750445, 'fraction_numerical': 0.008912655971479501, 'mean_word_length': 2.99644128113879, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '401817', 'n_tokens_mistral': 304, 'n_tokens_neox': 290, 'n_words': 95}