<commit_before>/**
 * Copyright winterwell Mathematics Ltd.
 * @author <NAME>
 * 11 Jan 2007
 */
package winterwell.markdown.editors;

import org.eclipse.core.runtime.Assert;
import org.eclipse.jface.text.rules.ICharacterScanner;
import org.eclipse.jface.text.rules.IRule;
import org.eclipse.jface.text.rules.IToken;
import org.eclipse.jface.text.rules.MultiLineRule;
import org.eclipse.jface.text.rules.Token;

/**
 * 
 *
 * @author <NAME>
 */
public class EmphasisRule implements IRule {
	private static char[][] fDelimiters = null;
	private char[] fSequence;
	protected IToken fToken;


	public EmphasisRule(String marker, IToken token) {
		assert marker.equals("*") || marker.equals("_") || marker.equals("**")
				|| marker.equals("***");
		Assert.isNotNull(token);
		fSequence = marker.toCharArray();
		fToken = token;
	}
	<commit_msg>fixed assert for 'inline code' rule<commit_after>/**
 * Copyright winterwell Mathematics Ltd.
 * @author <NAME>
 * 11 Jan 2007
 */
package winterwell.markdown.editors;

import org.eclipse.core.runtime.Assert;
import org.eclipse.jface.text.rules.ICharacterScanner;
import org.eclipse.jface.text.rules.IRule;
import org.eclipse.jface.text.rules.IToken;
import org.eclipse.jface.text.rules.MultiLineRule;
import org.eclipse.jface.text.rules.Token;

/**
 * 
 *
 * @author <NAME>
 */
public class EmphasisRule implements IRule {
	private static char[][] fDelimiters = null;
	private char[] fSequence;
	protected IToken fToken;


	public EmphasisRule(String marker, IToken token) {
		assert marker.equals("*") || marker.equals("_") || marker.equals("**")
				|| marker.equals("***") || marker.equals("`") || marker.equals("``");
		Assert.isNotNull(token);
		fSequence = marker.toCharArray();
		fToken = token;
	}
	
{'fraction_non_alphanumeric': 0.15265866209262435, 'fraction_numerical': 0.00686106346483705, 'mean_word_length': 4.681818181818182, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6643926', 'n_tokens_mistral': 604, 'n_tokens_neox': 562, 'n_words': 121}