<commit_before>package net.sandius.rembulan.compiler.types;

import net.sandius.rembulan.compiler.gen.LuaTypes;
import net.sandius.rembulan.util.Check;
import net.sandius.rembulan.util.PartialOrderComparisonResult;
import net.sandius.rembulan.util.ReadOnlyArray;

import java.util.ArrayList;

public class TypeSeq implements GradualTypeLike<TypeSeq> {

	public final ReadOnlyArray<Type> fixed;
	public final boolean varargs;

	public TypeSeq(ReadOnlyArray<Type> fixed, boolean varargs) {
		Check.notNull(fixed);
		this.fixed = fixed;
		this.varargs = varargs;
	}

	private static final TypeSeq EMPTY_FIXED = new TypeSeq(ReadOnlyArray.wrap(new Type[0]), false);
	private static final TypeSeq EMPTY_VARARG = new TypeSeq(ReadOnlyArray.wrap(new Type[0]), true);

	public static TypeSeq empty() {
		return EMPTY_FIXED;
	}

	public static TypeSeq vararg() {
		return EMPTY_VARARG;
	}

	public static TypeSeq of(Type... fixed) {
		return new TypeSeq(ReadOnlyArray.wrap(fixed), false);
	}
<commit_msg>Making type sequence's fields protected.<commit_after>package net.sandius.rembulan.compiler.types;

import net.sandius.rembulan.compiler.gen.LuaTypes;
import net.sandius.rembulan.util.Check;
import net.sandius.rembulan.util.PartialOrderComparisonResult;
import net.sandius.rembulan.util.ReadOnlyArray;

import java.util.ArrayList;

public class TypeSeq implements GradualTypeLike<TypeSeq> {

	protected final ReadOnlyArray<Type> fixed;
	protected final boolean varargs;

	public TypeSeq(ReadOnlyArray<Type> fixed, boolean varargs) {
		Check.notNull(fixed);
		this.fixed = fixed;
		this.varargs = varargs;
	}

	private static final TypeSeq EMPTY_FIXED = new TypeSeq(ReadOnlyArray.wrap(new Type[0]), false);
	private static final TypeSeq EMPTY_VARARG = new TypeSeq(ReadOnlyArray.wrap(new Type[0]), true);

	public static TypeSeq empty() {
		return EMPTY_FIXED;
	}

	public static TypeSeq vararg() {
		return EMPTY_VARARG;
	}

	public static TypeSeq of(Type... fixed) {
		return new TypeSeq(ReadOnlyArray.wrap(fixed), false);
	}

{'fraction_non_alphanumeric': 0.10004952947003468, 'fraction_numerical': 0.001981178801386825, 'mean_word_length': 5.516129032258065, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1796510', 'n_tokens_mistral': 686, 'n_tokens_neox': 669, 'n_words': 152}