<commit_before>import 'package:test/test.dart';
import 'package:aqueduct/aqueduct.dart';
import 'dart:async';
import 'dart:io';
import 'dart:convert';

main() {
  test("Package resolver", () {
    String homeDir = Platform.environment['HOME'] ?? Platform.environment['USERPROFILE'];
    var p = new PackagePathResolver(new File(".packages").path);
    var resolvedPath = p.resolve(new Uri(scheme: "package", path: "analyzer/file_system/file_system.dart"));

    expect(resolvedPath.endsWith("file_system/file_system.dart"), true);
    expect(resolvedPath.startsWith("$homeDir/.pub-cache/hosted/pub.dartlang.org"), true);
  });

  test("App-to-router test", () {
    var app = new Application<TPipeline>();
    var doc = app.document(new PackagePathResolver(new File(".packages").path));
    print("${JSON.encode(doc.asMap())}");

  });

  test("Tests", () {
//    ApplicationPipeline pipeline = new TPipeline({});
//    pipeline.addRoutes();
//
//    var docs = pipeline.document();
//    var document = new APIDocument()
//      ..items = docs;

  });

}

class TPipeline extends ApplicationPipeline implements AuthenticationServerDelegate {
  TPipeline(Map opts) : super(opts) {
    authServer = new AuthenticationServer(this);
  }

  AuthenticationServer authServer;
<commit_msg>Removed print statement<commit_after>import 'package:test/test.dart';
import 'package:aqueduct/aqueduct.dart';
import 'dart:async';
import 'dart:io';
import 'dart:convert';

main() {
  test("Package resolver", () {
    String homeDir = Platform.environment['HOME'] ?? Platform.environment['USERPROFILE'];
    var p = new PackagePathResolver(new File(".packages").path);
    var resolvedPath = p.resolve(new Uri(scheme: "package", path: "analyzer/file_system/file_system.dart"));

    expect(resolvedPath.endsWith("file_system/file_system.dart"), true);
    expect(resolvedPath.startsWith("$homeDir/.pub-cache/hosted/pub.dartlang.org"), true);
  });

  test("App-to-router test", () {
    var app = new Application<TPipeline>();
    var doc = app.document(new PackagePathResolver(new File(".packages").path));
    //print("${JSON.encode(doc.asMap())}");

  });

  test("Tests", () {
//    ApplicationPipeline pipeline = new TPipeline({});
//    pipeline.addRoutes();
//
//    var docs = pipeline.document();
//    var document = new APIDocument()
//      ..items = docs;

  });

}

class TPipeline extends ApplicationPipeline implements AuthenticationServerDelegate {
  TPipeline(Map opts) : super(opts) {
    authServer = new AuthenticationServer(this);
  }

  AuthenticationServer authServer;

{'fraction_non_alphanumeric': 0.1653726708074534, 'fraction_numerical': 0.0, 'mean_word_length': 4.494669509594883, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5975007', 'n_tokens_mistral': 795, 'n_tokens_neox': 778, 'n_words': 150}