<commit_before>package net.sourceforge.javydreamercsw.vm.jasperreportchooser;

import com.validation.manager.core.api.report.ReportParameterInterface;
import com.validation.manager.core.api.report.ReportChooserInterface;
import java.awt.Component;
import java.util.Collection;
import java.util.Map;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.ListCellRenderer;
import net.sf.jasperreports.engine.JRException;
import net.sourceforge.javydreamercsw.vm.jasperreportviewer.ReportProviderInterface;
import org.openide.util.Exceptions;
import org.openide.util.Lookup;
import org.openide.util.Utilities;
import org.openide.util.lookup.ServiceProvider;

/**
 *
 * @author <NAME> <<EMAIL>>
 */
@ServiceProvider(service = ReportChooserInterface.class)
public class ReportChooser extends javax.swing.JDialog
        implements ReportChooserInterface {

    /**
     * Creates new form ReportChooser
     */
    public ReportChooser() {
        super(new JFrame(), true);
        initComponents();
        jList1.setModel(new javax.swing.AbstractListModel() {
            Collection<? extends ReportProviderInterface> providers
                    = Utilities.actionsGlobalContext().lookupAll(ReportProviderInterface.class);

            @Override
            public int getSize() {
                return providers.size();
            }

            @Override
            public Object getElementAt(int i) {
                return providers.toArray()[i];<commit_msg>Fix so reports are seen from the correct Lookup.<commit_after>package net.sourceforge.javydreamercsw.vm.jasperreportchooser;

import com.validation.manager.core.api.report.ReportParameterInterface;
import com.validation.manager.core.api.report.ReportChooserInterface;
import java.awt.Component;
import java.util.Collection;
import java.util.Map;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.ListCellRenderer;
import net.sf.jasperreports.engine.JRException;
import net.sourceforge.javydreamercsw.vm.jasperreportviewer.ReportProviderInterface;
import org.openide.util.Exceptions;
import org.openide.util.Lookup;
import org.openide.util.lookup.ServiceProvider;

/**
 *
 * @author <NAME> <<EMAIL>>
 */
@ServiceProvider(service = ReportChooserInterface.class)
public class ReportChooser extends javax.swing.JDialog
        implements ReportChooserInterface {

    /**
     * Creates new form ReportChooser
     */
    public ReportChooser() {
        super(new JFrame(), true);
        initComponents();
        jList1.setModel(new javax.swing.AbstractListModel() {
            Collection<? extends ReportProviderInterface> providers
                    = Lookup.getDefault().lookupAll(ReportProviderInterface.class);

            @Override
            public int getSize() {
                return providers.size();
            }

            @Override
            public Object getElementAt(int i) {
                return providers.toArray()[i];
{'fraction_non_alphanumeric': 0.09810442301296973, 'fraction_numerical': 0.0006651147322913202, 'mean_word_length': 3.430044182621502, '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': '5634333', 'n_tokens_mistral': 835, 'n_tokens_neox': 804, 'n_words': 153}