<commit_before>package seedu.task.model.tag;

import java.util.HashMap;
import java.util.Random;
//@@author A0142939W
/**
 * Represents the static TagColorMap in the
 * taskmanager.
 */
public class TagColorMap {
    private static HashMap<String, String> tagColorMap;

    /**
     * Sets sets a random colour for a tag if the tag exists but
     * does not have an assigned colour yet
     * @param tag
     */
    public static void setColor(String tag) {
        Random rand = new Random();
        int r = rand.nextInt(205);
        int g = rand.nextInt(205);
        int b = rand.nextInt(205);
        String hex = String.format("#%02x%02x%02x", r, g, b);
        tagColorMap.put(tag, hex);
    }
<commit_msg>add additional comment<commit_after>package seedu.task.model.tag;

import java.util.HashMap;
import java.util.Random;
//@@author A0142939W
/**
 * Represents the static TagColorMap in the
 * taskmanager.
 */
public class TagColorMap {
    private static HashMap<String, String> tagColorMap;

    /**
     * Sets sets a random colour for a tag if the tag exists but
     * does not have an assigned colour yet
     * @param tag
     */
    public static void setColor(String tag) {
        Random rand = new Random();
        int r = rand.nextInt(205);
        int g = rand.nextInt(205);
        int b = rand.nextInt(205);
        //Converts RGB into hex coded color
        String hex = String.format("#%02x%02x%02x", r, g, b);
        tagColorMap.put(tag, hex);
    }

{'fraction_non_alphanumeric': 0.11058664868509778, 'fraction_numerical': 0.029669588671611596, 'mean_word_length': 2.610705596107056, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2269490', 'n_tokens_mistral': 483, 'n_tokens_neox': 454, 'n_words': 150}