<commit_before>package eu.cloudscaleproject.env.product.gui;

import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Label;

public class ButtonImg {
	
	public Label img;
	
	public ButtonImg(Composite parent, Image image, int width, int height) {
		
		Composite c_back = new Composite(parent, SWT.NONE);
		FillLayout layout = new FillLayout();
		GridData gd_back = new GridData(GridData.HORIZONTAL_ALIGN_CENTER, GridData.VERTICAL_ALIGN_CENTER,
				false, false);
		gd_back.widthHint = width;
		gd_back.heightHint = height;
		c_back.setLayoutData(gd_back);
		c_back.setLayout(layout);
		c_back.setVisible(true);
		
		img = new Label(c_back, SWT.NONE);
		img.setImage(image);
		img.setBounds(image.getBounds());
	}
	
	public void addSelectionListener(final SelectionListener listener){
		
		img.addMouseListener(new MouseListener() {
			
			@Override
			public void mouseUp(MouseEvent e) {
				Event event = new Event();
				event.type = SWT.Selection;
				event.widget = img; 
				listener.widgetSelected(new SelectionEvent(event));
			}
			
			@Override
			public void mouseDown(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void mouseDoubleClick(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}
		});
	}
}
<commit_msg>IntroScreen - Cursor on buttons<commit_after>package eu.cloudscaleproject.env.product.gui;


import org.eclipse.swt.SWT;
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.graphics.Cursor;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Label;

public class ButtonImg extends Composite{
	
	static Cursor handCursor = Display.getDefault().getSystemCursor(SWT.CURSOR_HAND);
	public Label img;
	
	public ButtonImg(Composite parent, Image image, int width, int height) {
		
		super(parent, SWT.NONE);

		FillLayout layout = new FillLayout();
		GridData gd_back = new GridData(GridData.HORIZONTAL_ALIGN_CENTER, GridData.VERTICAL_ALIGN_CENTER,
				false, false);
		gd_back.widthHint = width;
		gd_back.heightHint = height;
		this.setLayoutData(gd_back);
		this.setLayout(layout);
		this.setVisible(true);
		
		img = new Label(this, SWT.NONE);
		img.setImage(image);
		img.setBounds(image.getBounds());
		
		this.setCursor(handCursor);
	}
	
	public void addSelectionListener(final SelectionListener listener){
		
		img.addMouseListener(new MouseListener() {
			
			@Override
			public void mouseUp(MouseEvent e) {
				Event event = new Event();
				event.type = SWT.Selection;
				event.widget = img; 
				listener.widgetSelected(new SelectionEvent(event));
			}
			
			@Override
			public void mouseDown(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void mouseDoubleClick(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}
		});
	}
}

{'fraction_non_alphanumeric': 0.10611205432937182, 'fraction_numerical': 0.0, 'mean_word_length': 4.130624092888244, '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': '3321575', 'n_tokens_mistral': 1305, 'n_tokens_neox': 1128, 'n_words': 227}