<commit_before>package org.kie.workbench.common.screens.projecteditor.client.forms;

import com.google.gwt.cell.client.ButtonCell;
import com.google.gwt.cell.client.FieldUpdater;
import com.google.gwt.user.cellview.client.Column;
import com.google.gwt.user.cellview.client.TextHeader;
import com.google.gwt.user.client.ui.Widget;
import org.jboss.errai.common.client.api.Caller;
import org.guvnor.m2repo.client.editor.PagedJarTable;
import org.guvnor.m2repo.model.JarListPageRow;
import org.guvnor.m2repo.service.M2RepoService;
import org.uberfire.client.common.Popup;

import javax.inject.Inject;

public class DependencySelectorPopupViewImpl
        extends Popup
        implements DependencySelectorPopupView {

    private final Caller<M2RepoService> m2RepoService;
    private Presenter presenter;

    @Inject
    public DependencySelectorPopupViewImpl(Caller<M2RepoService> m2RepoService) {
        this.m2RepoService = m2RepoService;
    }

    @Override
    public Widget getContent() {
        PagedJarTable pagedJarTable = new PagedJarTable(m2RepoService);
        pagedJarTable.hideColumnPicker();
        pagedJarTable.hideSelectionColumn();

        Column<JarListPageRow, String> selectColumn = new Column<JarListPageRow, String>(new ButtonCell()) {
            public String getValue(JarListPageRow row) {
                return "Select";
            }
        };
        selectColumn.setFieldUpdater(new FieldUpdater<JarListPageRow, String>() {
            public void update(int index,
                               JarListPageRow row,
                               String value) {
                presenter.onPathSelection(row.getPath());
            }
        });

        pagedJarTable.addColumn(selectColumn, new TextHeader(""));

        return pagedJarTable;
    }

    @Override
    public void setPresenter(Presenter presenter) {
        this.presenter = presenter;
    }
}<commit_msg>BZ1020925 - Dual maven repositories unable to remove malicious dependency in Business Central<commit_after>package org.kie.workbench.common.screens.projecteditor.client.forms;

import com.google.gwt.cell.client.ButtonCell;
import com.google.gwt.cell.client.FieldUpdater;
import com.google.gwt.user.cellview.client.Column;
import com.google.gwt.user.cellview.client.TextHeader;
import com.google.gwt.user.client.ui.Widget;
import org.jboss.errai.common.client.api.Caller;
import org.guvnor.m2repo.client.editor.PagedJarTable;
import org.guvnor.m2repo.model.JarListPageRow;
import org.guvnor.m2repo.service.M2RepoService;
import org.uberfire.client.common.Popup;

import javax.inject.Inject;

public class DependencySelectorPopupViewImpl
        extends Popup
        implements DependencySelectorPopupView {

    private final Caller<M2RepoService> m2RepoService;
    private Presenter presenter;

    @Inject
    public DependencySelectorPopupViewImpl( Caller<M2RepoService> m2RepoService ) {
        this.m2RepoService = m2RepoService;
    }

    @Override
    public Widget getContent() {
        PagedJarTable pagedJarTable = new PagedJarTable( m2RepoService );
        pagedJarTable.hideColumnPicker();

        Column<JarListPageRow, String> selectColumn = new Column<JarListPageRow, String>( new ButtonCell() ) {
            public String getValue( JarListPageRow row ) {
                return "Select";
            }
        };
        selectColumn.setFieldUpdater( new FieldUpdater<JarListPageRow, String>() {
            public void update( int index,
                                JarListPageRow row,
                                String value ) {
                presenter.onPathSelection( row.getPath() );
            }
        } );

        pagedJarTable.addColumn( selectColumn, new TextHeader( "" ) );

        return pagedJarTable;
    }

    @Override
    public void setPresenter( Presenter presenter ) {
        this.presenter = presenter;
    }
}
{'fraction_non_alphanumeric': 0.08725868725868725, 'fraction_numerical': 0.007464607464607464, 'mean_word_length': 2.9572301425661913, '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': '3235302', 'n_tokens_mistral': 1174, 'n_tokens_neox': 1180, 'n_words': 201}