<commit_before>package krasa.grepconsole.plugin.runConfiguration;

import com.intellij.execution.configurations.RunConfigurationBase;
import com.intellij.openapi.options.ConfigurationException;
import com.intellij.openapi.options.SettingsEditor;
import krasa.grepconsole.action.HighlightManipulationAction;
import krasa.grepconsole.plugin.MyConfigurable;
import krasa.grepconsole.plugin.PluginState;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

public class GrepSettingsEditor extends SettingsEditor<RunConfigurationBase> {
	private final RunConfigurationBase configuration;
	private MyConfigurable myConfigurable;

	public GrepSettingsEditor(RunConfigurationBase configuration) {
		this.configuration = configuration;
	}

	@Override
	protected void resetEditorFrom(RunConfigurationBase runConfigurationBase) {
	}

	@Override
	protected void applyEditorTo(RunConfigurationBase runConfigurationBase) throws ConfigurationException {
		myConfigurable.apply();
	}

	@NotNull
	@Override
	protected JComponent createEditor() {
		myConfigurable = new MyConfigurable(configuration) {
			@Override
			protected void refreshServices(@Nullable HighlightManipulationAction currentAction) {
			}

			protected JPanel getRootComponent() {
				return form.getProfiles();
			}
			@Override
			protected PluginState getClone(PluginState formSettings) {
				return formSettings;
			}
		};
		return myConfigurable.createComponent();
	}
<commit_msg>Run Config - added titled border<commit_after>package krasa.grepconsole.plugin.runConfiguration;

import com.intellij.execution.configurations.RunConfigurationBase;
import com.intellij.openapi.options.ConfigurationException;
import com.intellij.openapi.options.SettingsEditor;
import krasa.grepconsole.action.HighlightManipulationAction;
import krasa.grepconsole.plugin.MyConfigurable;
import krasa.grepconsole.plugin.PluginState;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;
import javax.swing.border.TitledBorder;

public class GrepSettingsEditor extends SettingsEditor<RunConfigurationBase> {
	private final RunConfigurationBase configuration;
	private MyConfigurable myConfigurable;

	public GrepSettingsEditor(RunConfigurationBase configuration) {
		this.configuration = configuration;
	}

	@Override
	protected void resetEditorFrom(RunConfigurationBase runConfigurationBase) {
	}

	@Override
	protected void applyEditorTo(RunConfigurationBase runConfigurationBase) throws ConfigurationException {
		myConfigurable.apply();
	}

	@NotNull
	@Override
	protected JComponent createEditor() {
		myConfigurable = new MyConfigurable(configuration) {
			@Override
			protected void refreshServices(@Nullable HighlightManipulationAction currentAction) {
			}

			protected JPanel getRootComponent() {
				JPanel profiles = form.getProfiles();
				profiles.setBorder(new TitledBorder("Grep Console"));
				return profiles;
			}
			@Override
			protected PluginState getClone(PluginState formSettings) {
				return formSettings;
			}
		};
		return myConfigurable.createComponent();
	}

{'fraction_non_alphanumeric': 0.07368421052631578, 'fraction_numerical': 0.0, 'mean_word_length': 6.431279620853081, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1219897', 'n_tokens_mistral': 903, 'n_tokens_neox': 824, 'n_words': 168}