<commit_before>package eu.humanbrainproject.mip.algorithms;

/**
 * As the algorithm results are exported as a generic text, we define here what was the format used to encode the results.
 */
public enum ResultsFormat {
    PFA_JSON("pfa_json", "application/pfa+json"),
    PFA_YAML("pfa_yaml", "application/pfa+yaml"),
    HIGHCHARTS("highcharts_json", "application/highcharts+json"),
    JAVASCRIPT_VISJS("visjs", "application/visjs+javascript"),
    PNG_IMAGE("png_image", "image/png;base64"),
    SVG_IMAGE("svg_image", "image/svg+xml");

    private final String shape;
    private final String mimeType;

    ResultsFormat(String shape, String mimeType) {
        this.shape = shape;
        this.mimeType = mimeType;
    }

    public String getShape() {
        return shape;
    }

    public String getMimeType() {
        return mimeType;<commit_msg>added a new result format<commit_after>package eu.humanbrainproject.mip.algorithms;

/**
 * As the algorithm results are exported as a generic text, we define here what was the format used to encode the results.
 */
public enum ResultsFormat {
    PFA_JSON("pfa_json", "application/pfa+json"),
    PFA_YAML("pfa_yaml", "application/pfa+yaml"),
    HIGHCHARTS("highcharts_json", "application/highcharts+json"),
    JAVASCRIPT_VISJS("visjs", "application/visjs+javascript"),
    PNG_IMAGE("png_image", "image/png;base64"),
    SVG_IMAGE("svg_image", "image/svg+xml"),
    TABULAR_DATA_RESOURCE_JSON("tdr_json", "application/json");

    private final String shape;
    private final String mimeType;

    ResultsFormat(String shape, String mimeType) {
        this.shape = shape;
        this.mimeType = mimeType;
    }

    public String getShape() {
        return shape;
    }

    public String getMimeType() {
        return mimeType;
{'fraction_non_alphanumeric': 0.11401557285873193, 'fraction_numerical': 0.002224694104560623, 'mean_word_length': 3.836021505376344, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5631401', 'n_tokens_mistral': 580, 'n_tokens_neox': 551, 'n_words': 135}