<commit_before>package com.rollbar.payload.utilities;

import java.io.IOException;
import java.io.InputStream;

public class Properties {
    public static String getAssemblyVersion() {
        final String file = "assembly.properties";
        try {
            InputStream stream = Properties.class
                    .getClassLoader()
                    .getResourceAsStream(file);
            java.util.Properties properties = new java.util.Properties();
            if (stream != null) {
                properties.load(stream);
            }
            else {
                System.err.println("File not found: " + file);
                return null;
            }
            return properties.getProperty("version");
        }
        catch (IOException e){
            System.err.println("File read error: " + file);
            return null;
        }
    }
}
<commit_msg>Document the Properties class; untested, still need to deploy to maven to test it<commit_after>package com.rollbar.payload.utilities;

import java.io.IOException;
import java.io.InputStream;

/**
 * A class that gets properties from the properties file.
 */
public class Properties {
    /**
     * Get the assembly verison in the assembly.properties file. Should update automatically with each Maven release.
     * @return the version
     */
    public static String getAssemblyVersion() {
        final String file = "assembly.properties";
        try {
            InputStream stream = Properties.class
                    .getClassLoader()
                    .getResourceAsStream(file);
            java.util.Properties properties = new java.util.Properties();
            if (stream != null) {
                properties.load(stream);
            }
            else {
                System.err.println("File not found: " + file);
                return null;
            }
            return properties.getProperty("version");
        }
        catch (IOException e){
            System.err.println("File read error: " + file);
            return null;
        }
    }
}

{'fraction_non_alphanumeric': 0.09200968523002422, 'fraction_numerical': 0.0, 'mean_word_length': 1.7657295850066934, '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': '6741653', 'n_tokens_mistral': 491, 'n_tokens_neox': 482, 'n_words': 138}