<commit_before>package codemining.languagetools;

import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Map.Entry;
import java.util.SortedMap;

import org.apache.commons.io.FileUtils;
import org.apache.commons.io.filefilter.AbstractFileFilter;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;

/**
 * Adds a NO_SPACE between tokens that contain, no space.
 * 
 */
public class FormattingTokenizer implements IFormattingTokenizer {

	public static final String WS_NO_SPACE = "WS_NO_SPACE";
	private static final long serialVersionUID = -1736507313790110846L;
	final IFormattingTokenizer baseTokenizer;

	public FormattingTokenizer(final IFormattingTokenizer baseTokenizer) {
		this.baseTokenizer = baseTokenizer;
	}

	@Override
	public SortedMap<Integer, FullToken> fullTokenListWithPos(final char[] code) {
		throw new IllegalArgumentException("Cannot be implemented");
	}<commit_msg>A formatting devstyle tool and some changes in the rule extraction packages.<commit_after>package codemining.languagetools;

import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Map.Entry;
import java.util.SortedMap;

import org.apache.commons.io.FileUtils;
import org.apache.commons.io.filefilter.AbstractFileFilter;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;

/**
 * Adds a NO_SPACE between tokens that contain, no space.
 * 
 */
public class FormattingTokenizer implements IFormattingTokenizer {

	public static final String WS_NO_SPACE = "WS_NO_SPACE";
	private static final long serialVersionUID = -1736507313790110846L;
	final IFormattingTokenizer baseTokenizer;

	public FormattingTokenizer(final IFormattingTokenizer baseTokenizer) {
		this.baseTokenizer = baseTokenizer;
	}

	@Override
	public SortedMap<Integer, FullToken> fullTokenListWithPos(final char[] code) {
		throw new IllegalArgumentException("Cannot be implemented");
	}

	public IFormattingTokenizer getBaseTokenizer() {
		return baseTokenizer;
	}
{'fraction_non_alphanumeric': 0.08329250367466928, 'fraction_numerical': 0.018618324350808426, 'mean_word_length': 5.922033898305084, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3227082', 'n_tokens_mistral': 651, 'n_tokens_neox': 615, 'n_words': 150}