<commit_before>package org.mwc.asset.scenariocontroller2.views;

import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.layout.RowLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.mwc.asset.scenariocontroller2.views.MultiScenarioView.UIDisplay;

public class UISkeleton2 extends Composite implements UIDisplay
{

	/**
	 * Auto-generated method to display this org.eclipse.swt.widgets.Composite
	 * inside a new Shell.
	 */
	public static void showGUI()
	{
		Display display = Display.getDefault();
		Shell shell = new Shell(display);
		UISkeleton2 inst = new UISkeleton2(shell, SWT.NULL);
		Point size = inst.getSize();
		shell.setLayout(new FillLayout());
		shell.layout();
		if (size.x == 0 && size.y == 0)
		{
			inst.pack();
			shell.pack();
		}
		else
		{
			Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);
			shell.setSize(shellBounds.width, shellBounds.height);
		}
		shell.open();
		while (!shell.isDisposed())
		{
			if (!display.readAndDispatch())
				display.sleep();
		}
	}

	private Label scenarioVal;
	private Label controlVal;
	private Button btnGenerate;
	private Button btnRunAll;
	private Button btnInit;
	private Button btnStep;
	private Button btnPlay;
	private Composite multiTableHolder;
	private Label lblTime;
	private Font _timeFont;
	private Color _timeFore;
	private Color _timeBack;
	private Group grpFiles;

	/**
	 * Create the composite.
	 * 
	 * @param parent
	 * @param style
	 */
	public UISkeleton2(Composite parent, int style)
	{
		super(parent, style);
		setLayout(new FormLayout());

		Composite topPanel = new Composite(this, SWT.NONE);
		FormData fd_topPanel = new FormData();
		fd_topPanel.right = new FormAttachment(100, -10);
		fd_topPanel.top = new FormAttachment(0, 3);
		fd_topPanel.left = new FormAttachment(0, 3);
		topPanel.setLayoutData(fd_topPanel);
		topPanel.setLayout(new RowLayout(SWT.HORIZONTAL));
		
		grpFiles = new Group(topPanel, SWT.NONE);
		grpFiles.setText("Files");

		Composite filenameHolder = new Composite(grpFiles, SWT.NONE);
		filenameHolder.setSize(218, 45);
		filenameHolder.setLayout(new GridLayout(2, false));

		Label lblScenarioFile = new Label(filenameHolder, SWT.NONE);
		lblScenarioFile.setBounds(0, 0, 59, 14);
		lblScenarioFile.setText("Scenario file:");

		scenarioVal = new Label(filenameHolder, SWT.NONE);
		scenarioVal.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false,
				1, 1));
		scenarioVal.setBounds(0, 0, 59, 14);
		scenarioVal.setText("[pending]                     ");

		Label lblControlFile = new Label(filenameHolder, SWT.NONE);
		lblControlFile.setBounds(0, 0, 59, 14);
		lblControlFile.setText("Control file:");

		controlVal = new Label(filenameHolder, SWT.BORDER);
		controlVal.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false,
				1, 1));
		controlVal.setBounds(0, 0, 59, 14);
		controlVal.setText("[pending]               ");

		Group grpManageScenarios = new Group(topPanel, SWT.NONE);
		grpManageScenarios.setText("Manage scenarios");
		grpManageScenarios.setLayout(new RowLayout(SWT.HORIZONTAL));

		Group grpAllScenarios = new Group(grpManageScenarios, SWT.NONE);
		grpAllScenarios.setText("All scenarios");
		RowLayout rl_grpAllScenarios = new RowLayout(SWT.VERTICAL);
		rl_grpAllScenarios.spacing = 0;
		rl_grpAllScenarios.marginTop = 0;
		rl_grpAllScenarios.marginRight = 0;
		rl_grpAllScenarios.marginLeft = 0;
		rl_grpAllScenarios.marginBottom = 0;
		grpAllScenarios.setLayout(rl_grpAllScenarios);

		btnGenerate = new Button(grpAllScenarios, SWT.NONE);
		btnGenerate.setText("Generate");

		btnRunAll = new Button(grpAllScenarios, SWT.NONE);
		btnRunAll.setText("Run all");

		Group grpSelectedScenario = new Group(grpManageScenarios, SWT.NONE);
		grpSelectedScenario.setText("Selected scenario");
		GridLayout gl_grpSelectedScenario = new GridLayout(2, false);
		gl_grpSelectedScenario.marginWidth = 0;
		gl_grpSelectedScenario.marginHeight = 0;
		gl_grpSelectedScenario.horizontalSpacing = 0;
		gl_grpSelectedScenario.verticalSpacing = 0;
		grpSelectedScenario.setLayout(gl_grpSelectedScenario);
<commit_msg>Correct the layout of the files box<commit_after>package org.mwc.asset.scenariocontroller2.views;

import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.layout.RowLayout;
import org.eclipse.swt.widgets.*;
import org.mwc.asset.scenariocontroller2.views.MultiScenarioView.UIDisplay;

public class UISkeleton2 extends Composite implements UIDisplay
{

	/**
	 * Auto-generated method to display this org.eclipse.swt.widgets.Composite
	 * inside a new Shell.
	 */
	public static void showGUI()
	{
		Display display = Display.getDefault();
		Shell shell = new Shell(display);
		UISkeleton2 inst = new UISkeleton2(shell, SWT.NULL);
		Point size = inst.getSize();
		shell.setLayout(new FillLayout());
		shell.layout();
		if (size.x == 0 && size.y == 0)
		{
			inst.pack();
			shell.pack();
		}
		else
		{
			Rectangle shellBounds = shell.computeTrim(0, 0, size.x, size.y);
			shell.setSize(shellBounds.width, shellBounds.height);
		}
		shell.open();
		while (!shell.isDisposed())
		{
			if (!display.readAndDispatch())
				display.sleep();
		}
	}

	private Label scenarioVal;
	private Label controlVal;
	private Button btnGenerate;
	private Button btnRunAll;
	private Button btnInit;
	private Button btnStep;
	private Button btnPlay;
	private Composite multiTableHolder;
	private Label lblTime;
	private Font _timeFont;
	private Color _timeFore;
	private Color _timeBack;
	private Group grpDataFiles;

	/**
	 * Create the composite.
	 * 
	 * @param parent
	 * @param style
	 */
	public UISkeleton2(Composite parent, int style)
	{
		super(parent, style);
		setLayout(new FormLayout());

		Composite topPanel = new Composite(this, SWT.NONE);
		FormData fd_topPanel = new FormData();
		fd_topPanel.right = new FormAttachment(100, -10);
		fd_topPanel.top = new FormAttachment(0, 3);
		fd_topPanel.left = new FormAttachment(0, 3);
		topPanel.setLayoutData(fd_topPanel);
		topPanel.setLayout(new RowLayout(SWT.HORIZONTAL));
		
		grpDataFiles = new Group(topPanel, SWT.NONE);
		grpDataFiles.setText("Data files");
		GridLayout gl_grpDataFiles = new GridLayout(1, false);
		gl_grpDataFiles.verticalSpacing = 0;
		gl_grpDataFiles.marginWidth = 0;
		gl_grpDataFiles.marginHeight = 0;
		gl_grpDataFiles.horizontalSpacing = 0;
		grpDataFiles.setLayout(gl_grpDataFiles);

		Composite filenameHolder = new Composite(grpDataFiles, SWT.NONE);
		GridLayout gl_filenameHolder = new GridLayout(1, false);
		gl_filenameHolder.verticalSpacing = 0;
		gl_filenameHolder.marginHeight = 0;
		gl_filenameHolder.horizontalSpacing = 0;
		filenameHolder.setLayout(gl_filenameHolder);

		Label lblScenarioFile = new Label(filenameHolder, SWT.NONE);
	//	lblScenarioFile.setBounds(0, 0, 59, 14);
		lblScenarioFile.setText("Scenario file:");

		scenarioVal = new Label(filenameHolder, SWT.NONE);
		scenarioVal.setAlignment(SWT.RIGHT);
		scenarioVal.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false,
				1, 1));
//		scenarioVal.setBounds(0, 0, 59, 14);
		scenarioVal.setText("[pending]                     ");

		Label lblControlFile = new Label(filenameHolder, SWT.NONE);
//		lblControlFile.setBounds(0, 0, 59, 14);
		lblControlFile.setText("Control file:");

		controlVal = new Label(filenameHolder, SWT.NONE);
		controlVal.setAlignment(SWT.RIGHT);
		controlVal.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false,
				1, 1));
// 		controlVal.setBounds(0, 0, 59, 14);
		controlVal.setText("[pending]               ");

		Group grpManageScenarios = new Group(topPanel, SWT.NONE);
		grpManageScenarios.setText("Manage scenarios");
		grpManageScenarios.setLayout(new RowLayout(SWT.HORIZONTAL));

		Group grpAllScenarios = new Group(grpManageScenarios, SWT.NONE);
		grpAllScenarios.setText("All scenarios");
		grpAllScenarios.setLayout(new RowLayout(SWT.VERTICAL));

		btnGenerate = new Button(grpAllScenarios, SWT.NONE);
		btnGenerate.setText("Generate");

		btnRunAll = new Button(grpAllScenarios, SWT.NONE);
		btnRunAll.setText("Run all");

		Group grpSelectedScenario = new Group(grpManageScenarios, SWT.NONE);
		grpSelectedScenario.setText("Selected scenario");
		grpSelectedScenario.setLayout(new GridLayout(2, false));

{'fraction_non_alphanumeric': 0.11636828644501279, 'fraction_numerical': 0.01278772378516624, 'mean_word_length': 4.917402269861286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '539615', 'n_tokens_mistral': 3442, 'n_tokens_neox': 3183, 'n_words': 628}