<commit_before>// asset/importers/binary - generic binary files importer
// Part of Stardazed
// (c) 2015-2017 by <NAME> - @zenmumbler
// https://github.com/stardazed/stardazed

/// <reference path="../parser.ts" />

namespace sd.asset {

	export interface CacheAccess {
		(kind: "binary", name: string): ArrayBuffer;
	}
	
	export namespace importer {

		export function importBinary(data: Blob, _uri: string) {
			return getArrayBuffer(data).then(buffer => {
				return Promise.resolve({
					binary: {
						kind: "binary",
						item: buffer
					}
				});
			});
		}

		registerImporter(importBinary, "application/octet-stream", ["bin"]);

	} // ns parser

} // ns sd.asset<commit_msg>ref(asset): fix reference from binary importer<commit_after>// asset/importers/binary - generic binary files importer
// Part of Stardazed
// (c) 2015-2017 by <NAME> - @zenmumbler
// https://github.com/stardazed/stardazed

/// <reference path="../importer.ts" />

namespace sd.asset {

	export interface CacheAccess {
		(kind: "binary", name: string): ArrayBuffer;
	}
	
	export namespace importer {

		export function importBinary(data: Blob, _uri: string) {
			return getArrayBuffer(data).then(buffer => {
				return Promise.resolve({
					binary: {
						kind: "binary",
						item: buffer
					}
				});
			});
		}

		registerImporter(importBinary, "application/octet-stream", ["bin"]);

	} // ns importer

} // ns sd.asset
{'fraction_non_alphanumeric': 0.15053003533568904, 'fraction_numerical': 0.011307420494699646, 'mean_word_length': 3.164705882352941, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '2463817', 'n_tokens_mistral': 534, 'n_tokens_neox': 441, 'n_words': 108}