<commit_before>import 'package:args/args.dart';
import 'package:meta/meta.dart';

const _forceTraceLevel = 'force_trace_level';

class StartupArgs {
  List<String> analysisServerArgs;
  String forceTraceLevel;

  factory StartupArgs(List<String> args) {
    final parser = new ArgParser()
      ..addOption(_forceTraceLevel,
          help: 'Override the `trace` option duriong initialization',
          allowed: ['trace', 'verbose', 'off']);
    try {
      final result = parser.parse(args);
      return new StartupArgs._(
        forceTraceLevel: result[_forceTraceLevel],
        analysisServerArgs: result.rest,
      );
    } catch (_) {
      throw new UsageException(parser.usage);
    }
  }

  StartupArgs._({
    @required String forceTraceLevel,
    @required List<String> analysisServerArgs,
  })  : forceTraceLevel = forceTraceLevel,
        analysisServerArgs = analysisServerArgs;
}

class UsageException implements Exception {
  final String usage;
  UsageException(this.usage);
}
<commit_msg>Fix typo in --force_trace_level help string (#38)<commit_after>import 'package:args/args.dart';
import 'package:meta/meta.dart';

const _forceTraceLevel = 'force_trace_level';

class StartupArgs {
  List<String> analysisServerArgs;
  String forceTraceLevel;

  factory StartupArgs(List<String> args) {
    final parser = new ArgParser()
      ..addOption(_forceTraceLevel,
          help: 'Override the `trace` option during initialization',
          allowed: ['trace', 'verbose', 'off']);
    try {
      final result = parser.parse(args);
      return new StartupArgs._(
        forceTraceLevel: result[_forceTraceLevel],
        analysisServerArgs: result.rest,
      );
    } catch (_) {
      throw new UsageException(parser.usage);
    }
  }

  StartupArgs._({
    @required String forceTraceLevel,
    @required List<String> analysisServerArgs,
  })  : forceTraceLevel = forceTraceLevel,
        analysisServerArgs = analysisServerArgs;
}

class UsageException implements Exception {
  final String usage;
  UsageException(this.usage);
}

{'fraction_non_alphanumeric': 0.10549343704423918, 'fraction_numerical': 0.0009722897423432182, 'mean_word_length': 3.6455981941309257, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1601454', 'n_tokens_mistral': 593, 'n_tokens_neox': 579, 'n_words': 138}