<commit_before>// instance - instances, ranges, iterators and manager interface
// Part of Stardazed TX
// (c) 2016 by <NAME> - @zenmumbler

namespace sd.world {

	export interface Instance<Component> extends Number {
		__C?: Component;
	}


	export interface InstanceRange<Component> {
		empty: boolean;
		has(inst: Instance<Component>): boolean;

		makeIterator(): InstanceIterator<Component>;
		forEach(fn: (inst: Instance<Component>) => void, thisObj?: any): void;
	}


	export interface InstanceIterator<Component> {
		current: Instance<Component>;
		next(): boolean;<commit_msg>Instance: add interface to cast Int32Array types to for typed subscript<commit_after>// instance - instances, ranges, iterators and manager interface
// Part of Stardazed TX
// (c) 2016 by <NAME> - @zenmumbler

namespace sd.world {

	export interface Instance<Component> extends Number {
		__C?: Component;
	}


	export interface InstanceArrayView<Component> {
		length: number;
		[index: number]: Instance<Component>;
	}


	export interface InstanceRange<Component> {
		empty: boolean;
		has(inst: Instance<Component>): boolean;

		makeIterator(): InstanceIterator<Component>;
		forEach(fn: (inst: Instance<Component>) => void, thisObj?: any): void;
	}


	export interface InstanceIterator<Component> {
		current: Instance<Component>;
		next(): boolean;
{'fraction_non_alphanumeric': 0.11808669656203288, 'fraction_numerical': 0.007473841554559043, 'mean_word_length': 5.114155251141552, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 23, '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': '3342776', 'n_tokens_mistral': 407, 'n_tokens_neox': 382, 'n_words': 117}