<commit_before>package br.net.mirante.singular.server.commons.wicket.view.form;

import br.net.mirante.singular.commons.lambda.IBiConsumer;
import br.net.mirante.singular.form.SIComposite;
import br.net.mirante.singular.form.SInstance;
import br.net.mirante.singular.form.context.SFormConfig;
import br.net.mirante.singular.form.document.RefType;
import br.net.mirante.singular.form.persistence.FormKey;
import br.net.mirante.singular.form.service.IFormService;
import br.net.mirante.singular.form.wicket.enums.ViewMode;
import br.net.mirante.singular.form.wicket.model.SInstanceRootModel;
import br.net.mirante.singular.form.wicket.panel.SingularFormPanel;
import br.net.mirante.singular.server.commons.persistence.entity.form.PetitionEntity;
import br.net.mirante.singular.server.commons.wicket.builder.HTMLParameters;
import br.net.mirante.singular.server.commons.wicket.builder.MarkupCreator;
import br.net.mirante.singular.util.wicket.modal.BSModalBorder;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.StringResourceModel;

public class STypeBasedFlowConfirmModal<T extends PetitionEntity> extends AbstractFlowConfirmModal<T> {

    private final SFormConfig<String>              formConfig;
    private final RefType                          refType;
    private final FormKey                          formKey;
    private final IFormService                     formService;
    private final IBiConsumer<SIComposite, String> onCreateInstance;
    private       SInstanceRootModel<SInstance>    instanceModel;
    private       String                           transitionName;

    public STypeBasedFlowConfirmModal(AbstractFormPage<T> formPage,
                                      SFormConfig<String> formConfig,
                                      RefType refType,
                                      FormKey formKey,
                                      IFormService formService,
                                      IBiConsumer<SIComposite, String> onCreateInstance) {
        super(formPage);
        this.formConfig = formConfig;
        this.refType = refType;
        this.formKey = formKey;
        this.formService = formService;
        this.onCreateInstance = onCreateInstance;
    }

    @Override
    public String getMarkup(String idSuffix) {
        return MarkupCreator.div("flow-modal" + idSuffix, new HTMLParameters().styleClass("portlet-body form"), MarkupCreator.div("singular-form-panel"));
    }<commit_msg>teste<commit_after>package br.net.mirante.singular.server.commons.wicket.view.form;

import br.net.mirante.singular.commons.lambda.IBiConsumer;
import br.net.mirante.singular.form.SIComposite;
import br.net.mirante.singular.form.SInstance;
import br.net.mirante.singular.form.context.SFormConfig;
import br.net.mirante.singular.form.document.RefType;
import br.net.mirante.singular.form.persistence.FormKey;
import br.net.mirante.singular.form.service.IFormService;
import br.net.mirante.singular.form.wicket.enums.ViewMode;
import br.net.mirante.singular.form.wicket.model.SInstanceRootModel;
import br.net.mirante.singular.form.wicket.panel.SingularFormPanel;
import br.net.mirante.singular.server.commons.persistence.entity.form.PetitionEntity;
import br.net.mirante.singular.server.commons.wicket.builder.HTMLParameters;
import br.net.mirante.singular.server.commons.wicket.builder.MarkupCreator;
import br.net.mirante.singular.util.wicket.modal.BSModalBorder;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.StringResourceModel;

public class STypeBasedFlowConfirmModal<T extends PetitionEntity> extends AbstractFlowConfirmModal<T> {

    private final SFormConfig<String>              formConfig;
    private final RefType                          refType;
    private final FormKey                          formKey;
    private final IFormService                     formService;
    private final IBiConsumer<SIComposite, String> onCreateInstance;
    private       SInstanceRootModel<SInstance>    instanceModel;
    private       String                           transitionName;

    public STypeBasedFlowConfirmModal(AbstractFormPage<T> formPage,
                                      SFormConfig<String> formConfig,
                                      RefType refType,
                                      FormKey formKey,
                                      IFormService formService,
                                      IBiConsumer<SIComposite, String> onCreateInstance) {
        super(formPage);

        this.formConfig = formConfig;
        this.refType = refType;
        this.formKey = formKey;
        this.formService = formService;
        this.onCreateInstance = onCreateInstance;
    }

    @Override
    public String getMarkup(String idSuffix) {
        return MarkupCreator.div("flow-modal" + idSuffix, new HTMLParameters().styleClass("portlet-body form"), MarkupCreator.div("singular-form-panel"));
    }
{'fraction_non_alphanumeric': 0.08602150537634409, 'fraction_numerical': 0.0, 'mean_word_length': 2.734848484848485, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3443145', 'n_tokens_mistral': 1387, 'n_tokens_neox': 1334, 'n_words': 210}