conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Make it fast to draw color icons\n\nInstead of using a ColorFilter, plumb the information down to Icon and thereby\nto Image.\n" }, { "from": "human", "value": "// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a...
dart
chosen
[ { "from": "system", "value": "Fix url location for http test\n" }, { "from": "human", "value": "// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file\n// or details. All rights reserved. Use of this source code is governed by a\n// BSD-style license that can be found in t...
dart
chosen
[ { "from": "system", "value": "Fix crash in stocks2 app caused by unspecified PaintBits.\n\nTBR=eseidel@chromium.org\n\nReview URL: https://codereview.chromium.org/1182613002.\n" }, { "from": "human", "value": "// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source co...
dart
chosen
[ { "from": "system", "value": "fix(dart/payload): Fix runtime error in hello_world payload app\n\nThe hello_world app used to measure Dart payload size was broken by a\nchange in\nhttps://github.com/angular/angular/commit/7ae23adaff2990cf6022af9792c449730d451d1d.\n\nThis breakage does not materially affect t...
dart
chosen
[ { "from": "system", "value": "Support a giant hack to store last keyCode\n\nUntil KeyEvent is fixed in Dart\n" }, { "from": "human", "value": "library keys;\n\nimport 'package:ctrl_alt_foo/shortcut.dart';\nimport 'package:ctrl_alt_foo/key_event_x.dart';\n\nclass Keys {\n static List subscriptio...
dart
chosen
[ { "from": "system", "value": "Migrate a VM test off the ancient deprecated unittest package.\n\nChange-Id: Id2d408b87bc40af75899fbe0922ba523cbde148c\nReviewed-on: https://dart-review.googlesource.com/c/sdk/+/136022\nAuto-Submit: Bob Nystrom <afede3a9ebedb865bee78398feff6fbe97068f17@google.com>\nReviewed-by:...
dart
chosen
[ { "from": "system", "value": "Mark another test as not working with dart2js\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=132199028\n" }, { "from": "human", "value": "@TestOn('browser')\nlibrary angular2.test.symbol_inspector.symbol_inspector_test;\n\nimport...
dart
chosen
[ { "from": "system", "value": "Fix test to not assume that JSON.decode returns dynamic.\n\nIt currently returns Object.\nI have CL to make it do that again, but it's open for discussion.\n\nReview URL: https://codereview.chromium.org//52353002\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@29527 260...
dart
chosen
[ { "from": "system", "value": "fix(mock): Fix unitialized variable in MockWindow.\n" }, { "from": "human", "value": "part of angular.mock;\n\n@proxy\nclass MockWindow extends Mock implements Window {\n final history = new MockHistory();\n final location = new MockLocation();\n final document =...
dart
chosen
[ { "from": "system", "value": "Make FloatingActionButton respect the onPressed ctor arg.\n\nBUG=\nR=abarth@chromium.org\n\nReview URL: https://codereview.chromium.org/1210923003.\n" }, { "from": "human", "value": "// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source...
dart
chosen
[ { "from": "system", "value": "Adjust server header padding to match dropdowns.\n\nImplements #45\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\nimport 'package:font_awesome_flutter/font_awesome_flutter.dart';\n\nimport '../../features/activity/presentation/bloc/activ...
dart
chosen
[ { "from": "system", "value": "Fix Dumb Bot for the new Event System (it was left out)\n" }, { "from": "human", "value": "part of irc.bot;\n\nclass DumbBot extends Bot {\n Client _client;\n List<String> channels = [];\n\n DumbBot(BotConfig config) {\n _client = new Client(config);\n _reg...
dart
chosen
[ { "from": "system", "value": "Add tests for remaining span elements.\n" }, { "from": "human", "value": "import 'package:unittest/unittest.dart';\nimport 'package:workmantrainer/textmarker.dart';\n\nvoid main() {\n test('check initialisation of TextMarker Class works.', () {\n var tm = new Te...
dart
chosen
[ { "from": "system", "value": "Use directories with content, to avoid very large folder and flakyness.\n\nBUG=\nR=sgjesse@google.com\n\nReview URL: https://codereview.chromium.org//16825003\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@24124 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "fro...
dart
chosen
[ { "from": "system", "value": "Fix missed spot for move of unittest from lib to pkg.\nTBR=rnystrom\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@10689 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copyright (c) 2012, the Dart project authors. Please see the...
dart
chosen
[ { "from": "system", "value": "Use single quote for part/import statements\n" }, { "from": "human", "value": "/* Bot Abstraction */\nlibrary irc.bot;\n\nimport 'package:irc/irc.dart';\nimport 'dart:async';\nimport 'dart:io';\n\npart 'src/bot/dumbbot.dart';\npart \"src/bot/commandbot.dart\";\npart...
dart
chosen
[ { "from": "system", "value": "Make migration update to 1.0.0\n" }, { "from": "human", "value": "import 'package:codemod/codemod.dart';\n\n/// The latest version of riverpod that migrated code should be updated to\n// TODO add a test that this version is up-to-date\nconst latestVersion = '1.0.0-d...
dart
chosen
[ { "from": "system", "value": "Use Jael in example 1\n" }, { "from": "human", "value": "import 'package:jael_web/jael_web.dart';\nimport 'package:jael_web/elements.dart';\npart 'main.g.dart';\n\n@Dsx(template: '''\n<div>\n <h1>Hello, Jael!</h1>\n <i>Current time: {now}</i>\n</div>\n''')\nclass ...
dart
chosen
[ { "from": "system", "value": "Fix a Dart 2 runtime failure\n" }, { "from": "human", "value": "part of image;\r\n\r\n/**\r\n * Apply a smoothing convolution filter to the [src] image.\r\n *\r\n * [w] is the weight of the current pixel being filtered. If it's greater than\r\n * 1.0, it will make ...
dart
chosen
[ { "from": "system", "value": "Fix static error - Dart 2 symantics\n" }, { "from": "human", "value": "// Before blank line\n\n// After blank line\n\n/// This is my class.\nclass MyClass {\n /// This is my num field.\n num myNumField;\n\n /// This is my num getter.\n num get myNumGetter => 1;\...
dart
chosen
[ { "from": "system", "value": "Remove dead commented out code.\n" }, { "from": "human", "value": "// Copyright (c) 2016, <your name>. All rights reserved. Use of this source code\n// is governed by a BSD-style license that can be found in the LICENSE file.\n\nlibrary markov.example;\n\nimport 'da...
dart
chosen
[ { "from": "system", "value": "dart2js: Remove spurious comment in test.\n\nR=sigurdm@google.com\n\nReview URL: https://codereview.chromium.org//632633002\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@40925 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copyr...
dart
chosen
[ { "from": "system", "value": "Fix a race in structured errors tests\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\n\nvoid main() => runApp(MyBrokenApp());\n\nclass MyBrokenApp extends StatelessWidget {\n @override\n Widget build(BuildContext context) {\n return ...
dart
chosen
[ { "from": "system", "value": "Correct pub.dev static analysis issues\n" }, { "from": "human", "value": "enum HeadPhoneStrategy { none, pauseOnUnplug, pauseOnUnplugPlayOnPlug }\n\nString describeHeadPhoneStrategy(HeadPhoneStrategy strategy) {\n switch (strategy) {\n case HeadPhoneStrategy.non...
dart
chosen
[ { "from": "system", "value": "Refactor and clean up code\n" }, { "from": "human", "value": "library ddrive.src.commands.init;\n\nimport 'package:unscripted/unscripted.dart';\nimport 'package:googleapis/drive/v2.dart' as drive;\nimport 'package:path/path.dart' as path;\n\nimport '../context.dart'...
dart
chosen
[ { "from": "system", "value": "Rename an incorrectly named test class\n\nChange-Id: I40cdb290cea7beaffa68d5f21f1e340e7086a857\nReviewed-on: https://dart-review.googlesource.com/c/sdk/+/138603\nReviewed-by: Konstantin Shcheglov <09e4d7516628963212bf4aace2f97603d2b706e4@google.com>\nCommit-Queue: Brian Wilkers...
dart
chosen
[ { "from": "system", "value": "Add commit hash to results upload on builders\n\nChange-Id: I395ea68d7c6f7f45d665279e3dbc0b4f60d3ac1c\nReviewed-on: https://dart-review.googlesource.com/74624\nReviewed-by: Martin Kustermann <a35dd5b79fac84b2bb3b026a16b8becc55af5961@google.com>\nReviewed-by: Jonas Termansen <09...
dart
chosen
[ { "from": "system", "value": "Rename File.readAsText to File.readAsString. There is no Text type in Dart\nand the methods return Strings.\n\nR=sgjesse@google.com\nBUG=\n\nReview URL: https://codereview.chromium.org//11412033\n\ngit-svn-id: a8f079e7cfc3a289d8496d7b88aabbd5c45a3053@15011 260f80e4-7a28-3924-81...
dart
chosen
[ { "from": "system", "value": "Add optional loading indicator to PageBody.\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\nimport 'package:flutter_bloc/flutter_bloc.dart';\n\nimport '../../features/settings/presentation/bloc/settings_bloc.dart';\nimport 'settings_not_l...
dart
chosen
[ { "from": "system", "value": "Add event objects' tests to travis builds\n" }, { "from": "human", "value": "library test.event_emitter;\n\nimport 'src/event_emitter_test.dart' as event_emitter_test;\nimport 'package:test/test.dart';\n\nvoid main () {\n group('[Event emitter]', event_emitter_te...
dart
chosen
[ { "from": "system", "value": "Add new kind of sprites\n" }, { "from": "human", "value": "library dartrocket;\n\nimport \"dart:math\";\nimport \"dart:async\";\nimport \"dart:html\" show Element,querySelector;\nimport \"package:stagexl/stagexl.dart\" as StageXL;\n\n\npart \"src/core/game.dart\";\n...
dart
chosen
[ { "from": "system", "value": "Remove a TODO that's already been done.\n" }, { "from": "human", "value": "// Copyright 2016 Google Inc. Use of this source code is governed by an\n// MIT-style license that can be found in the LICENSE file or at\n// https://opensource.org/licenses/MIT.\n\nimport 'v...
dart
chosen
[ { "from": "system", "value": "Fix examples/game to work after Hixie's grand rename.\n\nTBR=viktorl@google.com\n\nReview URL: https://codereview.chromium.org/1158273009\n" }, { "from": "human", "value": "library sprites;\n\nimport 'dart:sky';\nimport 'dart:math' as Math;\nimport 'package:vector_m...
dart
chosen
[ { "from": "system", "value": "Add appBar and blue theme\n" }, { "from": "human", "value": "//This will be the style guide used for this project\n//https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo\n\nimport 'package:flutter/material.dart';\n\nvoid main() => runApp(MyApp());\n\...
dart
chosen
[ { "from": "system", "value": "Revert \"Use old import syntax.\"\n\nTBR=ahe@google.com\n\nReview URL: https://codereview.chromium.org//11537007\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@15974 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copyright (c) 20...
dart
chosen
[ { "from": "system", "value": "Use 'if' to determine if Heading should display.\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\n\nimport 'heading.dart';\n\nclass ListTileGroup extends StatelessWidget {\n final String? heading;\n final List<Widget> listTiles;\n\n con...
dart
chosen
[ { "from": "system", "value": "Update test to work with mirrors for Dart 1.1\n\nTBR=sigmund@google.com\n\nReview URL: https://chromiumcodereview.appspot.com//123153002\n" }, { "from": "human", "value": "#!/usr/bin/env dart\n// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS ...
dart
chosen
[ { "from": "system", "value": "Remove comprehension object, but return the list of scopes directly instead.\n\nThis is to fix https://code.google.com/p/dart/issues/detail?id=18792:\ncreating a new list of scopes on every invocation to _convertValue was causing us to issue extra notifications, which in turn c...
dart
chosen
[ { "from": "system", "value": "Improve init parameters to center initial vectors\n" }, { "from": "human", "value": "library aquatics;\n\nimport 'dart:html' as html;\nimport 'dart:math';\nimport 'dart:async';\nimport 'package:stagexl/stagexl.dart';\n\npart 'RandomPath.dart';\npart 'Aquatic.dart';\...
dart
chosen
[ { "from": "system", "value": "Fix typo also in example\n" }, { "from": "human", "value": "/// Calculator from the tutorial.\nlibrary petitparser.example.calc;\n\nimport 'package:petitparser/petitparser.dart';\n\nvoid main(List<String> arguments) {\n final number = digit().plus().flatten().trim(...
dart
chosen
[ { "from": "system", "value": "Fix Typo in [Hostmask] documentation\n" }, { "from": "human", "value": "part of irc.parser;\n\n/**\n * Represents a Hostmask that has been parsed\n */\nclass Hostmask {\n static final HOSTMASK_REGEX = new RegExp(\"[!@]\");\n\n /**\n * Nickname is Hostmask\n */...
dart
chosen
[ { "from": "system", "value": "Add a proper material shadow the popup menu\n\nR=eseidel@chromium.org\n\nReview URL: https://codereview.chromium.org/1172723002.\n" }, { "from": "human", "value": "// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source code is governed b...
dart
chosen
[ { "from": "system", "value": "Update StatusPage to use Gap instead of SizedBox.\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\nimport 'package:quiver/strings.dart';\n\nclass StatusPage extends StatelessWidget {\n final String message;\n final String? suggestion;\n ...
dart
chosen
[ { "from": "system", "value": "Add enum property for order\n" }, { "from": "human", "value": "import 'package:endpoints/endpoints.dart';\nimport 'package:cloud_datastore/cloud_datastore.dart';\n\n@ModelMetadata(const ScoreDesc())\nclass Score extends Model {\n @ApiProperty(description: 'Datastor...
dart
chosen
[ { "from": "system", "value": "Add some temporary example people\n" }, { "from": "human", "value": "import 'package:angular/angular.dart';\nimport 'package:angular/application_factory.dart';\nimport 'trips_history.dart';\n\n@Controller(\n selector: '[trips-history]',\n publishAs: 'ctrl')\nc...
dart
chosen
[ { "from": "system", "value": "Remove app bar and wrapper on book list page\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\nimport './book-list.dart';\n\nvoid main() => runApp(BuddyBible());\n\nclass BuddyBible extends StatelessWidget{\n @override\n Widget build(Buil...
dart
chosen
[ { "from": "system", "value": "Adjust native field wrapper field count.\n\nSee corresponding change in WebKit: http://codereview.chromium.org/9837116/.\n\nR=antonm@chromium.org\n\nReview URL: https://chromiumcodereview.appspot.com//9968004\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@6034 260f80e4...
dart
chosen
[ { "from": "system", "value": "Fix ReassembleHandler example in class docs" }, { "from": "human", "value": "import 'package:flutter/foundation.dart' show BindingBase;\nimport 'package:flutter/widgets.dart' show Element;\n\n/// If you need your provider to be notified when 'Hot Reload' occurs,\n//...
dart
chosen
[ { "from": "system", "value": "Use USB icon for no device when in USB mode.\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\nimport 'package:flutter_riverpod/flutter_riverpod.dart';\n\nimport '../state.dart';\nimport 'device_avatar.dart';\nimport 'device_picker_dialog.d...
dart
chosen
[ { "from": "system", "value": "Make sure we don't delete the packages dartdocs-generator depends on\n" }, { "from": "human", "value": "library dartdoc_runner.cleaners.package_cleaner;\n\nimport 'dart:async';\nimport 'dart:io';\n\nimport 'package:dartdoc_runner/config.dart';\nimport 'package:dartd...
dart
chosen
[ { "from": "system", "value": "Refactor image handling in Sky to expose the loader and image as separate classes to Dart code. This makes it possible to avoid unnecessary paints, by only painting once when the image has loaded. Now that we've separated the loader and image classes, we can implement an image ...
dart
chosen
[ { "from": "system", "value": "Make ExtensionSet static fields final\n" }, { "from": "human", "value": "import 'block_parser.dart';\nimport 'inline_parser.dart';\n\nclass ExtensionSet {\n static ExtensionSet none = new ExtensionSet._([], []);\n\n static ExtensionSet commonMark = new ExtensionSe...
dart
chosen
[ { "from": "system", "value": "Set a constant for the error template to use in ErrorController\n" }, { "from": "human", "value": "part of main;\n\n/// This controller is completely arbitrary. You can choose to set up\n/// your environment however you like!\nclass ErrorController {\n Future<Respo...
dart
chosen
[ { "from": "system", "value": "Fix typo in class name.\n" }, { "from": "human", "value": "#!/usr/bin/env dart\n\nimport 'dart:io';\n\nimport 'package:analyzer/src/generated/error.dart';\nimport 'package:analyzer/src/generated/parser.dart';\nimport 'package:analyzer/src/generated/scanner.dart';\n\...
dart
chosen
[ { "from": "system", "value": "Reset dialog contents and save changes.\n" }, { "from": "human", "value": "import 'package:angular2/core.dart';\nimport 'package:np8080/document/textdocument.dart';\nimport 'package:np8080/services/textprocessingservice.dart';\n\n@Component(\n selector: 'generate...
dart
chosen
[ { "from": "system", "value": "Add test for garbage collected window event listeners issue.\n\nR=antonm@google.com\n\nReview URL: https://chromiumcodereview.appspot.com//10689120\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@9497 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human",...
dart
chosen
[ { "from": "system", "value": "Stop logging of HTML if status!=200\n" }, { "from": "human", "value": "library dart_coveralls.coveralls_endpoint;\n\nimport 'dart:async' show Future;\nimport 'dart:convert' show JSON;\n\nimport 'package:http/http.dart' show MultipartRequest, MultipartFile, Response;...
dart
chosen
[ { "from": "system", "value": "Add vmservice_sdk to target as it is needed in platform.dill to be included into app dill file for Flutter release gen_snapshot\n\nBug:\nChange-Id: I699768ef6f3a315d497bc65c7d713d0c538313ca\nReviewed-on: https://dart-review.googlesource.com/12783\nReviewed-by: Zach Anderson <9f...
dart
chosen
[ { "from": "system", "value": "fix(static-injector): Update to the latest StaticParser\n" }, { "from": "human", "value": "library app_initializer;\n\nimport 'package:angular/angular.dart';\nimport 'package:di/di.dart';\nimport 'package:di/static_injector.dart';\n\n// Generated Files!\nimport 'di_...
dart
chosen
[ { "from": "system", "value": "Use CMD on Mac, Ctrl on rest.\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\nimport 'package:flutter/services.dart';\n\nclass CopyIntent extends Intent {\n const CopyIntent();\n}\n\nclass SearchIntent extends Intent {\n const SearchInt...
dart
chosen
[ { "from": "system", "value": "Update flutter_sprites now that ImageResource.first returns an ImageInfo\n" }, { "from": "human", "value": "// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICEN...
dart
chosen
[ { "from": "system", "value": "Change \"FormatException.position\" to be named \"offset\".\n\nAddress comments on SpanFormatException changes.\n\nR=nweiz@google.com\n\nCommitted: https://code.google.com/p/dart/source/detail?r=38373\n\nCommitted: https://code.google.com/p/dart/source/detail?r=38378\n\nReview ...
dart
chosen
[ { "from": "system", "value": "Remove unneeded import and fix analyzer warnings\n\nR=ianh@google.com, hixie\n\nReview URL: https://codereview.chromium.org/1190573002.\n" }, { "from": "human", "value": "// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source code is gov...
dart
chosen
[ { "from": "system", "value": "Adjust vm test about the Symbol constructor\n\nThe `Symbol` constructor has been changed to accept any string as the\nactual argument (it used to require strings similar to the ones that we\ncan use with `#` to create a symbol literal). This CL change a vm test\nsuch that it ha...
dart
chosen
[ { "from": "system", "value": "Add a library tag to allow running on DRT.\n\nR=ngeoffray@google.com\n\nReview URL: https://codereview.chromium.org//11859031\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@17280 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Cop...
dart
chosen
[ { "from": "system", "value": "Tweak Documentation to use spaces for the code highlighting\n" }, { "from": "human", "value": "part of irc.parser;\n\n/**\n * Base class for IRC Parsers\n *\n * ```\n * var parser = new SomeIrcParser();\n * var message = parser.convert(\":some.server PRIVMSG #SomeCh...
dart
chosen
[ { "from": "system", "value": "Set include last seen to true for get user.\n" }, { "from": "human", "value": "import 'package:meta/meta.dart';\n\nimport '../../../features/settings/presentation/bloc/settings_bloc.dart';\nimport 'connection_handler.dart';\n\nabstract class GetUser {\n Future<Map<...
dart
chosen
[ { "from": "system", "value": "Fix Return Type for Bot.register(handler)\n" }, { "from": "human", "value": "part of irc.bot;\n\n/**\n * Base Class for Bots\n */\nabstract class Bot {\n Client client();\n\n void connect() => client().connect();\n\n void disconnect() => client().disconnect();\n\...
dart
chosen
[ { "from": "system", "value": "Support dart2js in pub serve.\n\nR=nweiz@google.com\n\nReview URL: https://codereview.chromium.org//24886002\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@28231 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copyright (c) 2013, ...
dart
chosen
[ { "from": "system", "value": "Add helper function to parse IP from URL string.\n" }, { "from": "human", "value": "import 'dart:io';\n\nclass IpAddressHelper {\n /// Returns true if IP address is not a loopback, link local, or private IP\n ///\n /// Throws a generic exception if [ipAddress] ca...
dart
chosen
[ { "from": "system", "value": "Fix new test in checked mode\n\nIt's also analyzer clean now.\nR=vegorov@google.com\nBUG=\n\nReview-Url: https://codereview.chromium.org/2909883002 .\n" }, { "from": "human", "value": "// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file\n//...
dart
chosen
[ { "from": "system", "value": "Fix negative test by not complicating it by using the unit test framework.\n\nR=kasperl@google.com\nBUG=\n\nReview URL: https://chromiumcodereview.appspot.com//10828145\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@10215 260f80e4-7a28-3924-810f-c04153c831b5\n" }, ...
dart
chosen
[ { "from": "system", "value": "Add comment to maximize test to warn that it may fail in some cases.\n" }, { "from": "human", "value": "library webdriver_test.window;\n\nimport 'package:unittest/unittest.dart';\nimport 'package:webdriver/webdriver.dart';\n\nvoid main() {\n group('Window', () {\n ...
dart
chosen
[ { "from": "system", "value": "Fix error. import dart:json as json." }, { "from": "human", "value": "library distributed_dart;\nimport 'dart:io';\nimport 'dart:async';\nimport 'dart:isolate';\nimport 'dart:json';\nimport 'dart:typeddata';\n\npart 'src/dart_import/util/characters.dart';\n//part 's...
dart
chosen
[ { "from": "system", "value": "Set default coordinates to ucsd\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\nimport 'package:google_maps_flutter/google_maps_flutter.dart';\n\nclass Map extends StatelessWidget {\n GoogleMapController mapController;\n final LatLng _c...
dart
chosen
[ { "from": "system", "value": "Remove @MirrorUsed, it breaks Javascript in Firefox\n\nApparently I haven't listed in `targets` all classes/things that I need to\nlist, so this error happens:\n TypeError: Cannot call method 'gMP' of undefined\n" }, { "from": "human", "value": "library debiki_admi...
dart
chosen
[ { "from": "system", "value": "Remove an unneeded ignore comment in vm package\n\nChange-Id: I3b81e1d66c2100b8ed1834815f318cf39a8da305\nTested: This only impacts the analyzer's reporting of diagnostics, so I ran the analyzer over the code and verified that no new diagnostics were being reported.\nReviewed-on...
dart
chosen
[ { "from": "system", "value": "Use cascading methods off of first Worker() reference [ci skip]\n" }, { "from": "human", "value": "import 'package:pwa/worker.dart';\nimport 'package:website/pwa/offline_urls.g.dart' as offline;\n\n/// The Progressive Web Application's entry point.\nvoid main() {\n ...
dart
chosen
[ { "from": "system", "value": "Add option for printing tokens produced by the scanner.\n\nR=danrubel@google.com\n\nReview-Url: https://codereview.chromium.org/2933533002 .\n" }, { "from": "human", "value": "// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file\n// for detai...
dart
chosen
[ { "from": "system", "value": "Fix another issue from the cherry-picking.\n" }, { "from": "human", "value": "import '../../ordering.dart';\n\nclass NullsLastOrdering<T> extends Ordering<T> {\n final Ordering<T> ordering;\n\n const NullsLastOrdering(this.ordering);\n\n @override\n int compare(...
dart
chosen
[ { "from": "system", "value": "Remove the completer from the list" }, { "from": "human", "value": "part of plugins.common;\n\nclass RequestManager {\n\n Map<int, Completer> _requests = {};\n final Random _rand = new Random();\n\n void complete(int uid, String command, Map<dynamic, dynamic> dat...
dart
chosen
[ { "from": "system", "value": "Improve debuggability if core package is not found\n" }, { "from": "human", "value": "import 'dart:async';\nimport 'dart:io';\n\nimport 'package:args/args.dart';\nimport 'package:lsp_server/src/analysis_server.dart';\nimport 'package:lsp_server/src/channel.dart';\n\...
dart
chosen
[ { "from": "system", "value": "Add default value to textAlign property\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\nimport 'package:flutter_linkify/flutter_linkify.dart';\nimport 'package:url_launcher/url_launcher.dart';\n\n/*\nWidget used to Linkify text and then e...
dart
chosen
[ { "from": "system", "value": "Change how FlatMapLatest cancels previous subscriptions\n" }, { "from": "human", "value": "part of stream_transformers;\n\n/// Similar to `FlatMap`, but instead of including events from all spawned\n/// streams, only includes the ones from the latest stream. Think o...
dart
chosen
[ { "from": "system", "value": "Replace compute target with a structure map function\n" }, { "from": "human", "value": "// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file\n// for details. All rights reserved. Use of this source code is governed by a\n// BSD-style license...
dart
chosen
[ { "from": "system", "value": "Call .toCamelCase() after safeIdentifierForString for consistency\n\n" }, { "from": "human", "value": "import 'safenames.dart';\nimport 'utils.dart';\nimport 'winrt_method.dart';\n\nabstract class WinRTPropertyProjection extends WinRTMethodProjection {\n WinRTPrope...
dart
chosen
[ { "from": "system", "value": "Allow test.dart to handle the co19 test suite if it is not checked out.\n\nBUG=\nTEST=tools/test.dart co19\n\nReview URL: https://chromiumcodereview.appspot.com//9315052\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@3843 260f80e4-7a28-3924-810f-c04153c831b5\n" }, ...
dart
chosen
[ { "from": "system", "value": "Use sqflite_common_ffi for web in example app\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\nimport 'package:sqflite_example/main.dart' as example;\n\nvoid main() {\n WidgetsFlutterBinding.ensureInitialized();\n example.main();\n}\n" ...
dart
chosen
[ { "from": "system", "value": "Fix menu selection not working after dart2js\n" }, { "from": "human", "value": "// Copyright (c) 2013, Google Inc. Please see the AUTHORS file for details.\n// All rights reserved. Use of this source code is governed by a BSD-style\n// license that can be found in t...
dart
chosen
[ { "from": "system", "value": "Create webgame wrappers and error response" }, { "from": "human", "value": "// Copyright (c) 2015, Brian G. All rights reserved. Use of this source code\n// is governed by a BSD-style license that can be found in the LICENSE file.\n\n/// The dartbase_server library....
dart
chosen
[ { "from": "system", "value": "Remove one more unused import\n\nR=karlklose@google.com\n\nReview-Url: https://codereview.chromium.org/2943653002 .\n" }, { "from": "human", "value": "// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file\n// for details. All rights reserved....
dart
chosen
[ { "from": "system", "value": "Make is easier to find the error in the call stack\n" }, { "from": "human", "value": "import 'package:flutter_web/material.dart';\n\nvoid main() => runApp(new MyBrokenApp());\n\nclass MyBrokenApp extends StatelessWidget {\n @override\n Widget build(BuildContext co...
dart
chosen
[ { "from": "system", "value": "Undo accidental changed in r3337\n\nTBR=ager@google.com\n\nBUG=\nTEST=\n\nReview URL: http://codereview.chromium.org//9183004\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@3338 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": " // Co...
dart
chosen
[ { "from": "system", "value": "Remove uses of Options from pkg, samples, tests, and third_party directories.\n\nBUG=\nR=sgjesse@google.com\n\nReview URL: https://codereview.chromium.org//52573002\n\ngit-svn-id: c53bd6455474c0a826d309663cf600546f7b0963@29552 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { ...
dart
chosen
[ { "from": "system", "value": "Remove the argument from main in a test\n\nDartium looks for main() with no arguments.\n\nBUG=\nR=jensj@google.com, whesse@google.com\n\nReview-Url: https://codereview.chromium.org/2878543006 .\n" }, { "from": "human", "value": "// Copyright (c) 2017, the Dart proje...
dart
chosen
[ { "from": "system", "value": "Fix the error reporting when running the tests\n" }, { "from": "human", "value": "library all_test;\n\nimport 'package:euler/euler.dart';\nimport 'package:unittest/unittest.dart';\n\nvoid main() {\n allProblemsDo((problem, executor) {\n test('Problem $problem', ...
dart
chosen
[ { "from": "system", "value": "Stop relying on Dart 1.0 behavior of callable classes.\n\nDue to an upcoming change in Dart language semantics\n(https://github.com/dart-lang/sdk/issues/32152), we can no longer use \"callable classes\" (those that contain a \".call\" method) in a place where function types are...
dart
chosen
[ { "from": "system", "value": "Remove an infinity in layout code.\n" }, { "from": "human", "value": "// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\nimport 'box.dart';\nimport...
dart
chosen
[ { "from": "system", "value": "Add InvocationMirror interface to the core library.\n\nReview URL: https://codereview.chromium.org//11232057\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@13950 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copyright (c) 2012, ...
dart
chosen
[ { "from": "system", "value": "[analysis_server] Fix crash reporting bug, casting exception to a string\n\nBrian noticed this running unit tests. Who knows how many bug reports we\nhave missed from this -- we can only hope it is very few.\n\n```\ntype '_TypeError' is not a subtype of type 'String'\n\npackage...
dart
chosen