<commit_before>package de.lessvoid.nifty.java2d.input;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.util.concurrent.ConcurrentLinkedQueue;

import de.lessvoid.nifty.NiftyInputConsumer;
import de.lessvoid.nifty.input.keyboard.KeyboardInputEvent;
import de.lessvoid.nifty.input.mouse.MouseInputEvent;
import de.lessvoid.nifty.spi.input.InputSystem;

public class InputSystemAwtImpl implements InputSystem, MouseMotionListener,
		MouseListener, KeyListener {

	private ConcurrentLinkedQueue<MouseInputEvent> mouseEvents = new ConcurrentLinkedQueue<MouseInputEvent>();

	private ConcurrentLinkedQueue<KeyboardInputEvent> keyboardEvents = new ConcurrentLinkedQueue<KeyboardInputEvent>();

	@Override
	public void forwardEvents(final NiftyInputConsumer inputEventConsumer) {
		MouseInputEvent mouseEvent = mouseEvents.poll();
		while (mouseEvent != null) {
			inputEventConsumer.processMouseEvent(mouseEvent);
			mouseEvent = mouseEvents.poll();
		}

		KeyboardInputEvent keyEvent = keyboardEvents.poll();
		while (keyEvent != null) {
			inputEventConsumer.processKeyboardEvent(keyEvent);
			keyEvent = keyboardEvents.poll();
		}
	}

	@Override
	public void mouseDragged(MouseEvent mouseEvent) {

	}

	@Override
	public void mouseMoved(MouseEvent mouseEvent) {
		mouseEvents.add(new MouseInputEvent(mouseEvent.getX(), mouseEvent
				.getY(), mouseEvent.getButton() == MouseEvent.BUTTON1));
	}

	@Override
	public void mouseClicked(MouseEvent mouseEvent) {

	}

	@Override
	public void mouseEntered(MouseEvent mouseEvent) {

	}
<commit_msg>@public generate mouse events in onDragged too<commit_after>package de.lessvoid.nifty.java2d.input;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.util.concurrent.ConcurrentLinkedQueue;

import de.lessvoid.nifty.NiftyInputConsumer;
import de.lessvoid.nifty.input.keyboard.KeyboardInputEvent;
import de.lessvoid.nifty.input.mouse.MouseInputEvent;
import de.lessvoid.nifty.spi.input.InputSystem;

public class InputSystemAwtImpl implements InputSystem, MouseMotionListener,
		MouseListener, KeyListener {

	private ConcurrentLinkedQueue<MouseInputEvent> mouseEvents = new ConcurrentLinkedQueue<MouseInputEvent>();

	private ConcurrentLinkedQueue<KeyboardInputEvent> keyboardEvents = new ConcurrentLinkedQueue<KeyboardInputEvent>();

	@Override
	public void forwardEvents(final NiftyInputConsumer inputEventConsumer) {
		MouseInputEvent mouseEvent = mouseEvents.poll();
		while (mouseEvent != null) {
			inputEventConsumer.processMouseEvent(mouseEvent);
			mouseEvent = mouseEvents.poll();
		}

		KeyboardInputEvent keyEvent = keyboardEvents.poll();
		while (keyEvent != null) {
			inputEventConsumer.processKeyboardEvent(keyEvent);
			keyEvent = keyboardEvents.poll();
		}
	}

	@Override
	public void mouseDragged(MouseEvent mouseEvent) {
    mouseEvents.add(new MouseInputEvent(mouseEvent.getX(), mouseEvent.getY(), mouseEvent.getButton() == MouseEvent.BUTTON1));
	}

	@Override
	public void mouseMoved(MouseEvent mouseEvent) {
		mouseEvents.add(new MouseInputEvent(mouseEvent.getX(), mouseEvent.getY(), mouseEvent.getButton() == MouseEvent.BUTTON1));
	}

	@Override
	public void mouseClicked(MouseEvent mouseEvent) {

	}

	@Override
	public void mouseEntered(MouseEvent mouseEvent) {

	}

{'fraction_non_alphanumeric': 0.09638896787034404, 'fraction_numerical': 0.0014216661927779358, 'mean_word_length': 6.453389830508475, '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': '5220082', 'n_tokens_mistral': 1086, 'n_tokens_neox': 1039, 'n_words': 190}