<commit_before>package org.swingeasy;

import java.awt.event.ActionEvent;
import java.util.Locale;
import java.util.regex.Pattern;

import javax.swing.Icon;
import javax.swing.JComponent;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.tree.TreePath;

import ca.odell.glazedlists.matchers.Matcher;

/**
 * @author Jurgen
 */
public class ETreeSearchComponent<T> extends ELabeledTextFieldButtonComponent implements Matcher<T> {

    private static final long serialVersionUID = 5196244125968828897L;

    protected final ETree<T> eTree;

    protected final ETreeI<T> sTree;

    protected Pattern pattern = null;

    public ETreeSearchComponent(ETree<T> eTree) {
        this.eTree = eTree;
        this.sTree = eTree.stsi();
    }

    /**
     * 
     * @see org.swingeasy.EComponentPopupMenu.ReadableComponent#copy(java.awt.event.ActionEvent)
     */
    @Override
    public void copy(ActionEvent e) {
        throw new UnsupportedOperationException("not implemented"); // TODO implement
    }

    /**
     * 
     * @see org.swingeasy.ELabeledTextFieldButtonComponent#doAction()<commit_msg>copy does not throw exception anymore<commit_after>package org.swingeasy;

import java.awt.event.ActionEvent;
import java.util.Locale;
import java.util.regex.Pattern;

import javax.swing.Icon;
import javax.swing.JComponent;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.tree.TreePath;

import ca.odell.glazedlists.matchers.Matcher;

/**
 * @author Jurgen
 */
public class ETreeSearchComponent<T> extends ELabeledTextFieldButtonComponent implements Matcher<T> {

    private static final long serialVersionUID = 5196244125968828897L;

    protected final ETree<T> eTree;

    protected final ETreeI<T> sTree;

    protected Pattern pattern = null;

    public ETreeSearchComponent(ETree<T> eTree) {
        this.eTree = eTree;
        this.sTree = eTree.stsi();
    }

    /**
     * 
     * @see org.swingeasy.EComponentPopupMenu.ReadableComponent#copy(java.awt.event.ActionEvent)
     */
    @Override
    public void copy(ActionEvent e) {
        // TODO implement
    }

    /**
     * 
     * @see org.swingeasy.ELabeledTextFieldButtonComponent#doAction()
{'fraction_non_alphanumeric': 0.10017969451931716, 'fraction_numerical': 0.017070979335130278, 'mean_word_length': 3.6589958158995817, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3222451', 'n_tokens_mistral': 720, 'n_tokens_neox': 679, 'n_words': 138}