<commit_before>package com.cmendenhall.utils;

import java.io.IOException;
import java.util.Properties;

public class StringLoader {
    String welcome;
    String divider;
    String yourMove;
    String yourMoveThreeSquares;
    String playAgain;
    String gameOverDraw;
    String gameOverWin;
    String xWins;
    String oWins;
    String choosePlayerOne;
    String choosePlayerTwo;
    String boardSize;

    public StringLoader() {
    }

    void loadViewStrings() {
        Properties viewStrings = new Properties();
        try {
            viewStrings.load(null.getClass().getResourceAsStream("/viewstrings.properties"));<commit_msg>Duplicated code 2: Add HashMap to StringLoader<commit_after>package com.cmendenhall.utils;

import java.io.IOException;
import java.util.HashMap;
import java.util.Properties;

public class StringLoader {
    private HashMap<String, String> viewStrings = new HashMap<String, String>();

    public StringLoader() {
    }

    void loadViewStrings() {
        Properties viewStrings = new Properties();
        try {
            viewStrings.load(getClass().getResourceAsStream("/viewstrings.properties"));
{'fraction_non_alphanumeric': 0.08956521739130435, 'fraction_numerical': 0.0008695652173913044, 'mean_word_length': 3.5674603174603177, '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': '4813256', 'n_tokens_mistral': 308, 'n_tokens_neox': 305, 'n_words': 76}