<commit_before>/*
 * PriorDialog.java
 *
 * Copyright (C) 2002-2006 <NAME> and <NAME>
 *
 * This file is part of BEAST.
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership and licensing.
 *
 * BEAST is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 *  BEAST is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with BEAST; if not, write to the
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 * Boston, MA  02110-1301  USA
 */

package dr.app.beauti.tipdatepanel;

import dr.app.beauti.options.DateGuesser;
import dr.app.beauti.options.STARBEASTOptions;
import dr.app.beauti.util.TextUtil;
import dr.app.gui.components.RealNumberField;
import figtree.treeviewer.TreeViewer;
import jam.mac.Utils;
import jam.panels.OptionsPanel;

import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
import java.awt.event.*;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.prefs.Preferences;

/**
 * @author <NAME>
 * @author <NAME>
 * @version $Id: PriorDialog.java,v 1.4 2006/09/05 13:29:34 rambaut Exp $
 */
public class GuessDatesDialog {

    public static Preferences PREFS = Preferences.userNodeForPackage(TreeViewer.class);
    public static final String DELIMIT_RADIO_KEY = "delimitRadio";
    public static final String ORDER_COMBO_KEY = "orderCombo";
    public static final String PREFIX_TEXT_KEY = "prefixText";
    public static final String REGEX_TEXT_KEY = "regexText";
    public static final String PARSE_RADIO_KEY = "parseRadio";
    public static final String OFFSET_CHECK_KEY = "offsetCheck";
    public static final String OFFSET_TEXT_KEY = "offsetText";
    public static final String UNLESS_CHECK_KEY = "unlessCheck";
    public static final String UNLESS_TEXT_KEY = "unlessText";
    public static final String OFFSET2_TEXT_KEY = "offset2Text";
    public static final String DATE_FORMAT_TEXT_KEY = "dateFormatText";

    private JFrame frame;

    private final OptionsPanel optionPanel;

    private final JRadioButton orderRadio = new JRadioButton("Defined just by its order", true);
    private final JComboBox orderCombo = new JComboBox(new String[]{"first", "second", "third",
            "fourth", "fourth from last",
            "third from last", "second from last", "last"});

    private final JRadioButton prefixRadio = new JRadioButton("Defined by a prefix and its order", false);
    private final JTextField prefixText = new JTextField(16);
<commit_msg>Dependancy leak between packages<commit_after>/*
 * PriorDialog.java
 *
 * Copyright (C) 2002-2006 <NAME> and <NAME>
 *
 * This file is part of BEAST.
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership and licensing.
 *
 * BEAST is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 *  BEAST is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with BEAST; if not, write to the
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
 * Boston, MA  02110-1301  USA
 */

package dr.app.beauti.tipdatepanel;

import dr.app.beauti.options.DateGuesser;
import dr.app.beauti.options.STARBEASTOptions;
import dr.app.beauti.util.TextUtil;
import dr.app.gui.components.RealNumberField;
import jam.mac.Utils;
import jam.panels.OptionsPanel;

import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
import java.awt.event.*;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.prefs.Preferences;

/**
 * @author <NAME>
 * @author <NAME>
 * @version $Id: PriorDialog.java,v 1.4 2006/09/05 13:29:34 rambaut Exp $
 */
public class GuessDatesDialog {

    public static Preferences PREFS = Preferences.userNodeForPackage(GuessDatesDialog.class);
    public static final String DELIMIT_RADIO_KEY = "delimitRadio";
    public static final String ORDER_COMBO_KEY = "orderCombo";
    public static final String PREFIX_TEXT_KEY = "prefixText";
    public static final String REGEX_TEXT_KEY = "regexText";
    public static final String PARSE_RADIO_KEY = "parseRadio";
    public static final String OFFSET_CHECK_KEY = "offsetCheck";
    public static final String OFFSET_TEXT_KEY = "offsetText";
    public static final String UNLESS_CHECK_KEY = "unlessCheck";
    public static final String UNLESS_TEXT_KEY = "unlessText";
    public static final String OFFSET2_TEXT_KEY = "offset2Text";
    public static final String DATE_FORMAT_TEXT_KEY = "dateFormatText";

    private JFrame frame;

    private final OptionsPanel optionPanel;

    private final JRadioButton orderRadio = new JRadioButton("Defined just by its order", true);
    private final JComboBox orderCombo = new JComboBox(new String[]{"first", "second", "third",
            "fourth", "fourth from last",
            "third from last", "second from last", "last"});

    private final JRadioButton prefixRadio = new JRadioButton("Defined by a prefix and its order", false);
    private final JTextField prefixText = new JTextField(16);

{'fraction_non_alphanumeric': 0.08222633260467463, 'fraction_numerical': 0.013452160753321002, 'mean_word_length': 4.282415630550622, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1785937', 'n_tokens_mistral': 1742, 'n_tokens_neox': 1653, 'n_words': 633}