<commit_before>package org.apache.dstream.local;

import org.apache.dstream.io.StreamableSource;

class SplitGenerationUtil {

	/**
	 * This methods will generate splits from {@link StreamableSource} to mainly emulate the behavior of
	 * the underlying distributed system allowing {@link StreamableSource} to be processed parallelized as if
	 * it was parallelized in such system.
	 * 
	 * @param source
	 */
	public static <T> Split<T>[] generateSplits(StreamableSource<T> source){
		return null;
	}
}
<commit_msg>polishing<commit_after>package org.apache.dstream.local;

import org.apache.dstream.io.StreamableSource;
import org.apache.dstream.io.TextSource;

class SplitGenerationUtil {

	/**
	 * This methods will generate splits from {@link StreamableSource} to mainly emulate the behavior of
	 * the underlying distributed system allowing {@link StreamableSource} to be processed parallelized as if
	 * it was parallelized in such system.
	 * 
	 * @param source
	 */
	public static <T> Split<T>[] generateSplits(StreamableSource<T> source){
		Split<T>[] splits = null;
		if (source instanceof TextSource){
			splits = PourManTextFileSplitter.generateSplits((TextSource) source);
		} else {
			throw new UnsupportedOperationException("Source " + source + " is not currently supported");
		}
		return splits;
	}
}

{'fraction_non_alphanumeric': 0.09332321699544764, 'fraction_numerical': 0.0, 'mean_word_length': 4.734782608695652, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '374026', 'n_tokens_mistral': 400, 'n_tokens_neox': 362, 'n_words': 119}