<commit_before>package com.sixtyfour.basicshell;

import com.sixtyfour.plugins.InputProvider;

/**
 * @Author nietoperz809
 */
public class ShellInputProvider implements InputProvider {
	private BasicShell shellFrame;

	public ShellInputProvider(BasicShell shellFrame) {
		this.shellFrame = shellFrame;
	}

	@Override
	public Character readKey() {
		if (shellFrame.peek() && shellFrame.getString().length() > 0)
			return shellFrame.getString().charAt(0);
		return null;
	}

	@Override
	public String readString() {
		String s = shellFrame.getString();
		s = s.substring(s.indexOf('?') + 1);
		return s;
	}
}<commit_msg>Fixed the fix...<commit_after>package com.sixtyfour.basicshell;

import com.sixtyfour.plugins.InputProvider;

/**
 * @Author nietoperz809
 */
public class ShellInputProvider implements InputProvider {
	private BasicShell shellFrame;

	public ShellInputProvider(BasicShell shellFrame) {
		this.shellFrame = shellFrame;
	}

	@Override
	public Character readKey() {
		if (shellFrame.peek()) {
			String s = shellFrame.getString();
			if (s.length() > 0) {
				return s.charAt(0);
			}
		}
		return null;
	}

	@Override
	public String readString() {
		String s = shellFrame.getString();
		s = s.substring(s.indexOf('?') + 1);
		return s;
	}
}
{'fraction_non_alphanumeric': 0.1271860095389507, 'fraction_numerical': 0.009538950715421303, 'mean_word_length': 4.312236286919831, 'pattern_counts': {'":': 0, '<': 3, '<?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': '531289', 'n_tokens_mistral': 447, 'n_tokens_neox': 403, 'n_words': 92}