<commit_before>package dae.gui;

import dae.prefabs.ui.classpath.FileNode;
import dae.project.Project;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import javax.swing.AbstractAction;
import javax.swing.ActionMap;
import javax.swing.InputMap;
import javax.swing.JComponent;
import javax.swing.KeyStroke;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;

/**
 *
 * @author <NAME>
 */
public class SelectAssetDialog extends javax.swing.JDialog implements TreeSelectionListener {

    /**
     * A return status code - returned if Cancel button has been pressed
     */
    public static final int RET_CANCEL = 0;
    /**
     * A return status code - returned if OK button has been pressed
     */
    public static final int RET_OK = 1;
    /**
     * The selected FileNode
     */
    private FileNode selected;

    /**
     * Creates new form SelectAssetDialog
     */
    public SelectAssetDialog(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();<commit_msg>Different way of setting the modal type.<commit_after>package dae.gui;

import dae.prefabs.ui.classpath.FileNode;
import dae.project.Project;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import javax.swing.AbstractAction;
import javax.swing.ActionMap;
import javax.swing.InputMap;
import javax.swing.JComponent;
import javax.swing.KeyStroke;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;

/**
 *
 * @author <NAME>
 */
public class SelectAssetDialog extends javax.swing.JDialog implements TreeSelectionListener {

    /**
     * A return status code - returned if Cancel button has been pressed
     */
    public static final int RET_CANCEL = 0;
    /**
     * A return status code - returned if OK button has been pressed
     */
    public static final int RET_OK = 1;
    /**
     * The selected FileNode
     */
    private FileNode selected;

    /**
     * Creates new form SelectAssetDialog
     */
    public SelectAssetDialog(java.awt.Window parent, boolean modal) {
        super(parent,modal? ModalityType.TOOLKIT_MODAL:ModalityType.MODELESS);
        initComponents();
{'fraction_non_alphanumeric': 0.09320126069338136, 'fraction_numerical': 0.0018009905447996398, 'mean_word_length': 3.4262948207171315, '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': '7130864', 'n_tokens_mistral': 634, 'n_tokens_neox': 623, 'n_words': 175}