<commit_before>package pl.mjedynak.idea.plugins.builder.factory.impl;

import com.intellij.codeInsight.generation.PsiElementClassMember;
import com.intellij.ide.util.MemberChooser;
import com.intellij.openapi.project.Project;
import pl.mjedynak.idea.plugins.builder.factory.MemberChooserDialogFactory;

import java.util.List;

public class MemberChooserDialogFactoryImpl implements MemberChooserDialogFactory {
    public static final String TITLE = "Select fields to be available in builder";

    public MemberChooser<PsiElementClassMember> getMemberChooserDialog(List<PsiElementClassMember> elements, Project project) {
        PsiElementClassMember[] psiElementClassMembers = elements.toArray(new PsiElementClassMember[0]);
        MemberChooser<PsiElementClassMember> memberChooserDialog = new MemberChooser<PsiElementClassMember>(psiElementClassMembers, false, true, project, false);
        memberChooserDialog.setCopyJavadocVisible(false);
        memberChooserDialog.selectElements(psiElementClassMembers);
        memberChooserDialog.setTitle("Select fields to be available in builder");
        return memberChooserDialog;
    }
}
<commit_msg>* refactoring<commit_after>package pl.mjedynak.idea.plugins.builder.factory.impl;

import com.intellij.codeInsight.generation.PsiElementClassMember;
import com.intellij.ide.util.MemberChooser;
import com.intellij.openapi.project.Project;
import pl.mjedynak.idea.plugins.builder.factory.MemberChooserDialogFactory;

import java.util.List;

public class MemberChooserDialogFactoryImpl implements MemberChooserDialogFactory {
    public static final String TITLE = "Select fields to be available in builder";

    public MemberChooser<PsiElementClassMember> getMemberChooserDialog(List<PsiElementClassMember> elements, Project project) {
        PsiElementClassMember[] psiElementClassMembers = elements.toArray(new PsiElementClassMember[0]);
        MemberChooser<PsiElementClassMember> memberChooserDialog = new MemberChooser<PsiElementClassMember>(psiElementClassMembers, false, true, project, false);
        memberChooserDialog.setCopyJavadocVisible(false);
        memberChooserDialog.selectElements(psiElementClassMembers);
        memberChooserDialog.setTitle(TITLE);
        return memberChooserDialog;
    }
}

{'fraction_non_alphanumeric': 0.07529722589167767, 'fraction_numerical': 0.0008806693086745927, 'mean_word_length': 6.235668789808917, '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': '2502846', 'n_tokens_mistral': 644, 'n_tokens_neox': 606, 'n_words': 111}