Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions packages/imitation_game/bin/imitation_game.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ class _ImitationGame {
results.putIfAbsent(test, () => <String, dynamic>{});
results[test].putIfAbsent(platform, () => <String, dynamic>{});
data['results'].forEach((String k, dynamic v) {
// ignore: avoid_as
results[test][platform][k] = v as double;
});
return _runNext();
Expand Down Expand Up @@ -239,7 +238,6 @@ Future<void> main(List<String> args) async {
if (request.method == 'POST') {
final String content = await utf8.decoder.bind(request).join();
final Map<String, dynamic> data =
// ignore: avoid_as
jsonDecode(content) as Map<String, dynamic>;
print('$data');
keepRunning = await game.handleResult(data);
Expand All @@ -261,7 +259,6 @@ Future<void> main(List<String> args) async {
const JsonDecoder decoder = JsonDecoder();
final Map<String, dynamic> lastResults =
decoder.convert(File(lastResultsFilename).readAsStringSync())
// ignore: avoid_as
as Map<String, dynamic>;

// TODO(aaclarke): Calculate the generation time for each measurement since we
Expand Down