<commit_before>/*
 * Open Source Software published under the Apache Licence, Version 2.0.
 */

package io.github.vocabhunter.gui.settings;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class VocabHunterSettings {
    public static final int DEFAULT_MINIMUM_LETTERS = 4;

    public static final int DEFAULT_MINIMUM_OCCURRENCES = 2;

    private String documentsPath;

    private String sessionsPath;

    private String exportPath;

    private int filterMinimumLetters = DEFAULT_MINIMUM_LETTERS;

    private int filterMinimumOccurrences = DEFAULT_MINIMUM_OCCURRENCES;

    public String getDocumentsPath() {
        return documentsPath;
    }

    public void setDocumentsPath(final String documentsPath) {
        this.documentsPath = documentsPath;
    }

    public String getSessionsPath() {
        return sessionsPath;
    }

    public void setSessionsPath(final String sessionsPath) {
        this.sessionsPath = sessionsPath;
    }

    public String getExportPath() {
        return exportPath;<commit_msg>Default to 2 letter minimum in filter<commit_after>/*
 * Open Source Software published under the Apache Licence, Version 2.0.
 */

package io.github.vocabhunter.gui.settings;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown = true)
public class VocabHunterSettings {
    public static final int DEFAULT_MINIMUM_LETTERS = 2;

    public static final int DEFAULT_MINIMUM_OCCURRENCES = 2;

    private String documentsPath;

    private String sessionsPath;

    private String exportPath;

    private int filterMinimumLetters = DEFAULT_MINIMUM_LETTERS;

    private int filterMinimumOccurrences = DEFAULT_MINIMUM_OCCURRENCES;

    public String getDocumentsPath() {
        return documentsPath;
    }

    public void setDocumentsPath(final String documentsPath) {
        this.documentsPath = documentsPath;
    }

    public String getSessionsPath() {
        return sessionsPath;
    }

    public void setSessionsPath(final String sessionsPath) {
        this.sessionsPath = sessionsPath;
    }

    public String getExportPath() {
        return exportPath;
{'fraction_non_alphanumeric': 0.05898366606170599, 'fraction_numerical': 0.004083484573502722, 'mean_word_length': 3.721627408993576, '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': '7062205', 'n_tokens_mistral': 638, 'n_tokens_neox': 589, 'n_words': 161}