<commit_before>package org.warp.picalculator.math.functions;

import java.util.List;

import org.nevec.rjm.BigDecimalMath;
import org.warp.picalculator.Error;
import org.warp.picalculator.gui.expression.blocks.Block;
import org.warp.picalculator.gui.expression.blocks.BlockChar;
import org.warp.picalculator.math.Function;
import org.warp.picalculator.math.MathContext;
import org.warp.picalculator.Utils;
import org.warp.picalculator.math.MathematicalSymbols;
import org.warp.picalculator.math.rules.Rule;

import it.unimi.dsi.fastutil.objects.ObjectArrayList;

public class Variable implements Function {

	protected char var;
	protected final MathContext root;
	protected V_TYPE type = V_TYPE.CONSTANT;

	public Variable(MathContext root, char val, V_TYPE type) {
		this.root = root;
		var = val;
		this.type = type;
	}

	public Variable(MathContext root, String s, V_TYPE type) throws Error {
		this(root, s.charAt(0), type);
	}<commit_msg>Removed unused imports<commit_after>package org.warp.picalculator.math.functions;

import org.warp.picalculator.Error;
import org.warp.picalculator.gui.expression.blocks.Block;
import org.warp.picalculator.gui.expression.blocks.BlockChar;
import org.warp.picalculator.math.Function;
import org.warp.picalculator.math.MathContext;
import org.warp.picalculator.math.rules.Rule;

import it.unimi.dsi.fastutil.objects.ObjectArrayList;

public class Variable implements Function {

	protected char var;
	protected final MathContext root;
	protected V_TYPE type = V_TYPE.CONSTANT;

	public Variable(MathContext root, char val, V_TYPE type) {
		this.root = root;
		var = val;
		this.type = type;
	}

	public Variable(MathContext root, String s, V_TYPE type) throws Error {
		this(root, s.charAt(0), type);
	}
{'fraction_non_alphanumeric': 0.10315186246418338, 'fraction_numerical': 0.001146131805157593, 'mean_word_length': 5.280575539568345, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3315317', 'n_tokens_mistral': 614, 'n_tokens_neox': 578, 'n_words': 124}