<commit_before>define(["dommanager", "hub"],
function(dom, hub) {
	"use strict";
	
	var state = {
		LOADING: 0,
		LOADED: 1,
		RUNNING: 2
	};
	
	// TODO(willscott): Document the communication channel between frames.
	var version = 1.0;

	/**
	 * Create a new sandbox with a given identifier.
	 */
	function SandboxManager(id) {
		var self = this;
		self._id = id;
		self._state = state.LOADING;
		self._el = dom.create("iframe");
		self._el.src = chrome.extension.getURL("sandbox.html");
		self._listener = listener.bind(this, id);
		window.addEventListener('message', self._listener, true);
	};<commit_msg>Remove dep<commit_after>define(["dommanager", "hub"],
function(dom, hub) {
	"use strict";
	
	var state = {
		LOADING: 0,
		LOADED: 1,
		RUNNING: 2
	};
	
	// TODO(willscott): Document the communication channel between frames.
	var version = 1.0;

	/**
	 * Create a new sandbox with a given identifier.
	 */
	function SandboxManager(id) {
		var self = this;
		self._id = id;
		self._state = state.LOADING;
    //TODO(ryscheng): replace with webworkers
		self._el = dom.create("iframe");
		self._el.src = chrome.extension.getURL("sandbox.html");
		self._listener = listener.bind(this, id);
		window.addEventListener('message', self._listener, true);
	};
{'fraction_non_alphanumeric': 0.15194908512330946, 'fraction_numerical': 0.007955449482895784, 'mean_word_length': 3.801526717557252, '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': '6391532', 'n_tokens_mistral': 468, 'n_tokens_neox': 419, 'n_words': 107}