<commit_before>/*
 * Copyright 2011 <NAME>
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.urish.gwtit.client;

import java.io.PrintStream;

import org.urish.gwtit.client.io.StringPrintStream;
import org.urish.gwtit.client.io.TitaniumStandardErrorPrintStream;
import org.urish.gwtit.client.io.TitaniumStandardOutputPrintStream;
import org.urish.gwtit.client.util.Javascript;
import org.urish.gwtit.client.util.Timer;
import org.urish.gwtit.client.util.TimerCallback;
import org.urish.gwtit.client.util.Timers;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;

/**
 * Base class for bootstrapping into a Titanium application. It is recommended
 * that this class is extended and {@link #main()} implemented to begin a
 * Titanium application.
 * 
 * @author <NAME>
 */
public abstract class GwtTitaniumBootstrap implements EntryPoint {

	@Override
	public final void onModuleLoad() {
		Runner runner = GWT.create(Runner.class);
		System.setOut(new TitaniumStandardOutputPrintStream());
		System.setErr(new TitaniumStandardErrorPrintStream());
		try {
			runner.run(this);
		}
		catch (RuntimeException e) {
			e.printStackTrace();
			
			/* Unfortunately, Titanium can only handle string exceptions... */
			PrintStream ps = new StringPrintStream();<commit_msg>Catch all types of exception the the modules entry point<commit_after>/*
 * Copyright 2011 <NAME>
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.urish.gwtit.client;

import java.io.PrintStream;

import org.urish.gwtit.client.io.StringPrintStream;
import org.urish.gwtit.client.io.TitaniumStandardErrorPrintStream;
import org.urish.gwtit.client.io.TitaniumStandardOutputPrintStream;
import org.urish.gwtit.client.util.Javascript;
import org.urish.gwtit.client.util.Timer;
import org.urish.gwtit.client.util.TimerCallback;
import org.urish.gwtit.client.util.Timers;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;

/**
 * Base class for bootstrapping into a Titanium application. It is recommended
 * that this class is extended and {@link #main()} implemented to begin a
 * Titanium application.
 * 
 * @author <NAME>
 */
public abstract class GwtTitaniumBootstrap implements EntryPoint {

	@Override
	public final void onModuleLoad() {
		Runner runner = GWT.create(Runner.class);
		System.setOut(new TitaniumStandardOutputPrintStream());
		System.setErr(new TitaniumStandardErrorPrintStream());
		try {
			runner.run(this);
		}
		catch (Throwable e) {
			e.printStackTrace();
			
			/* Unfortunately, Titanium can only handle string exceptions... */
			PrintStream ps = new StringPrintStream();
{'fraction_non_alphanumeric': 0.09565217391304348, 'fraction_numerical': 0.004347826086956522, 'mean_word_length': 4.445266272189349, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6815249', 'n_tokens_mistral': 1125, 'n_tokens_neox': 1060, 'n_words': 340}