<commit_before>import 'package:angular2/core.dart';
import 'package:angular2/router.dart';
import 'package:angular2/platform/browser.dart';
import 'package:angular2/platform/common.dart';

import 'package:Sjoslaget/app_component.dart';
import 'package:Sjoslaget/client/client_factory.dart' show SJOSLAGET_API_ROOT;

void main() {
	bootstrap(AppComponent, [
		ROUTER_PROVIDERS,
		provide(APP_BASE_HREF, useValue: '/'),
		provide(SJOSLAGET_API_ROOT, useValue: 'https://sjoslaget.se/api'),
//		const Provider(LocationStrategy, useClass: HashLocationStrategy)
	]);
}<commit_msg>Structured main.dart to easily switch between test/prod.<commit_after>import 'package:angular2/core.dart';
import 'package:angular2/router.dart';
import 'package:angular2/platform/browser.dart';
import 'package:angular2/platform/common.dart';

import 'package:Sjoslaget/app_component.dart';
import 'package:Sjoslaget/client/client_factory.dart' show SJOSLAGET_API_ROOT;

void main() {
	// false for testing on local, true for production builds
	final release = false;

	List<dynamic> providers;
	if (release) {
		providers = <dynamic>[
			ROUTER_PROVIDERS,
			provide(APP_BASE_HREF, useValue: '/'),
			provide(SJOSLAGET_API_ROOT, useValue: 'https://sjoslaget.se/api'),
		];
	} else {
		providers = <dynamic>[
			ROUTER_PROVIDERS,
			provide(APP_BASE_HREF, useValue: '/'),
			provide(SJOSLAGET_API_ROOT, useValue: 'http://localhost:60949/api'),
			const Provider(LocationStrategy, useClass: HashLocationStrategy)
		];
	}

	bootstrap(AppComponent, providers);
}
{'fraction_non_alphanumeric': 0.13307240704500978, 'fraction_numerical': 0.008480104370515329, 'mean_word_length': 6.339712918660287, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '7635595', 'n_tokens_mistral': 572, 'n_tokens_neox': 534, 'n_words': 88}