<commit_before>import 'package:angular/angular.dart';
import 'package:angular/playback/playback_http.dart';
import 'package:angular_transformers/auto_modules.dart';
import 'package:di/di.dart';
import 'package:todo/todo.dart';

import 'dart:html';

// Everything in the 'todo' library should be preserved by MirrorsUsed
@MirrorsUsed(
    targets: const['todo'],
    override: '*')
import 'dart:mirrors';

main() {

  print(window.location.search);
  var module = new Module()
    ..type(TodoController)
    ..type(PlaybackHttpBackendConfig)
    ..install(defaultExpressionModule)
    ..install(defaultMetadataModule);

  // If these is a query in the URL, use the server-backed
  // TodoController.  Otherwise, use the stored-data controller.
  var query = window.location.search;
  if (query.contains('?')) {
    module.type(ServerController);
  } else {
    module.type(ServerController, implementedBy: NoServerController);
  }

  if (query == '?record') {
    print('Using recording HttpBackend');
    var wrapper = new HttpBackendWrapper(new HttpBackend());<commit_msg>Removing unneeded @MirrorsUsed from main.dart.<commit_after>import 'package:angular/angular.dart';
import 'package:angular/playback/playback_http.dart';
import 'package:angular_transformers/auto_modules.dart';
import 'package:di/di.dart';
import 'package:todo/todo.dart';

import 'dart:html';

main() {

  print(window.location.search);
  var module = new Module()
    ..type(TodoController)
    ..type(PlaybackHttpBackendConfig)
    ..install(defaultExpressionModule)
    ..install(defaultMetadataModule);

  // If these is a query in the URL, use the server-backed
  // TodoController.  Otherwise, use the stored-data controller.
  var query = window.location.search;
  if (query.contains('?')) {
    module.type(ServerController);
  } else {
    module.type(ServerController, implementedBy: NoServerController);
  }

  if (query == '?record') {
    print('Using recording HttpBackend');
    var wrapper = new HttpBackendWrapper(new HttpBackend());
{'fraction_non_alphanumeric': 0.1314878892733564, 'fraction_numerical': 0.0, 'mean_word_length': 4.653631284916201, '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': '4703204', 'n_tokens_mistral': 617, 'n_tokens_neox': 614, 'n_words': 139}