<commit_before>// Copyright (c) 2014, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'package:args/args.dart';
import '../lib/http.dart';

import 'dart:io';


void main(List<String> args) {
  var parser = new ArgParser()
      ..addOption('port', abbr: 'p', defaultsTo: '8080')
      ..addOption('host', abbr: 'h', defaultsTo: 'localhost');

  var results = parser.parse(args);

  var host = results['host'];
  var port = int.parse(results['port'], onError: logParseErrorAndQuit);

  new CometHttp(host, port).serve();
}

logParseErrorAndQuit(val) {
  stdout.writeln('Could not parse port value "$val" into a number.');
  exit(1);
}<commit_msg>Fix import<commit_after>// Copyright (c) 2014, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

import 'package:args/args.dart';
import '../lib/comet.dart';

import 'dart:io';


void main(List<String> args) {
  var parser = new ArgParser()
      ..addOption('port', abbr: 'p', defaultsTo: '8080')
      ..addOption('host', abbr: 'h', defaultsTo: 'localhost');

  var results = parser.parse(args);

  var host = results['host'];
  var port = int.parse(results['port'], onError: logParseErrorAndQuit);

  new CometHttp(host, port).serve();
}

logParseErrorAndQuit(val) {
  stdout.writeln('Could not parse port value "$val" into a number.');
  exit(1);
}
{'fraction_non_alphanumeric': 0.15967523680649526, 'fraction_numerical': 0.012178619756427604, 'mean_word_length': 4.171328671328672, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5473907', 'n_tokens_mistral': 501, 'n_tokens_neox': 477, 'n_words': 153}