conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add warning for future maintainers of Timer.\n\nReview URL: https://codereview.chromium.org//11108007\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@13616 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copyright (c) 2012, the Dar...
dart
chosen
[ { "from": "system", "value": "Fix test in checked mode.\n\nBUG=\n\nReview URL: https://codereview.chromium.org//592013002\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@40536 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copyright (c) 2014, the Dart project ...
dart
chosen
[ { "from": "system", "value": "Use raw string for legibility\n" }, { "from": "human", "value": "@TestOn('windows')\n\nimport 'dart:ffi';\nimport 'package:ffi/ffi.dart';\n\nimport 'package:test/test.dart';\nimport 'package:win32/win32.dart';\n\nvoid main() {\n test('Volume management API', () {\n...
dart
chosen
[ { "from": "system", "value": "Remove verified-mem option from test as it is being deprecated.\n\nReview URL: https://codereview.chromium.org/1891493002 .\n" }, { "from": "human", "value": "// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file\n// for details. All rights r...
dart
chosen
[ { "from": "system", "value": "Add initstorage function for tests\n" }, { "from": "human", "value": "\nimport 'package:ddays/storageservice.dart';\nimport 'package:test/test.dart';" }, { "from": "gpt", "value": "\nimport 'package:ddays/storageservice.dart';\nimport 'package:test/test....
dart
chosen
[ { "from": "system", "value": "Fix part code file name.\n" }, { "from": "human", "value": "library pin;\n\nimport 'dart:async';\nimport 'dart:collection';\nimport 'dart:convert';\nimport 'dart:io';\nimport 'dart:mirrors';\n\nimport 'package:crypto/crypto.dart';\nimport 'package:http/http.dart' as...
dart
chosen
[ { "from": "system", "value": "Add update method for single notification\n" }, { "from": "human", "value": "part of app;\n\n/**\n * Notification resource.\n */\n@Injectable()\nclass NotificationsResource {\n final Api _api;\n\n NotificationsResource(this._api);\n\n /**\n * Returns all (or un...
dart
chosen
[ { "from": "system", "value": "Make the XmlNodeType an enum\n" }, { "from": "human", "value": "part of xml;\n\n/// Enum of the different XML Node types.\nclass XmlNodeType {\n\n static const ELEMENT = const XmlNodeType._('ELEMENT');\n static const ATTRIBUTE = const XmlNodeType._('ATTRIBUTE');\n...
dart
chosen
[ { "from": "system", "value": "Update for new concat syntax\n" }, { "from": "human", "value": "#library('Collection View for My Comic Book Collection');\n\n#import('https://raw.github.com/eee-c/hipster-mvc/master/HipsterView.dart');\n\nclass Comics extends HipsterView {\n Comics([collection, el]...
dart
chosen
[ { "from": "system", "value": "Add automatic widget size determination when no size property is provided.\n" }, { "from": "human", "value": "import 'package:flutter/foundation.dart';\nimport 'package:flutter/widgets.dart';\nimport 'package:qr/qr.dart';\n\nimport 'qr_painter.dart';\n\nclass QrImag...
dart
chosen
[ { "from": "system", "value": "Add reference to global tasklist.\n" }, { "from": "human", "value": "library storageservice;\n\nimport 'dart:html';\nimport 'dart:convert';\n\nfinal String STORAGE_KEY = 'ddays';\n\n// add an item to a given List, then save\n// this list in localStorage with the key...
dart
chosen
[ { "from": "system", "value": "Allow font size for BulletItem.\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\n\nclass BulletItem extends StatelessWidget {\n final String text;\n\n const BulletItem(this.text, {Key key}) : super(key: key);\n\n @override\n Widget bui...
dart
chosen
[ { "from": "system", "value": "Revert \"breaking the build on purpose\"\n\nThis reverts commit b294e5ffb1fd96119a6f5c0b139a3639e4b8a29e.\n" }, { "from": "human", "value": "import 'dart:io';\nimport \"controllers/HomeController.dart\";\nimport \"controllers/ApiController.dart\";\n\ntypedef bool Ha...
dart
chosen
[ { "from": "system", "value": "Use some dart2js flags to improve compiled output." }, { "from": "human", "value": "library polymorphic.grind;\n\nimport \"dart:io\";\n\nimport \"package:grinder/grinder.dart\";\nimport \"package:yaml/yaml.dart\";\n\nvoid main(List<String> args) {\n task(\"clean\",...
dart
chosen
[ { "from": "system", "value": "Replace deprecated ManagedDataModel.fromPackageContainingType() by ManagedDataModel.fromCurrentMirrorSystem().\n" }, { "from": "human", "value": "part of quiz;\n\n// RequestSunk is one of the base classes in the Aqueduct pipeline\nclass QuizRequestSink extends Reque...
dart
chosen
[ { "from": "system", "value": "Simplify the implementation of the digits iterable.\n" }, { "from": "human", "value": "library more.iterable.math;\n\nimport 'dart:collection' show IterableBase;\n\nimport 'package:more/src/iterable/fold.dart';\n\n/// Returns an iterable over the fibonacci sequence ...
dart
chosen
[ { "from": "system", "value": "Add some additional tests to test the commands that are currently passing the help <verb> == <verb> --help assertion.\n\nBug: https://github.com/dart-lang/sdk/issues/41041\nChange-Id: I440c76fc84d0d222d8d996c622c711c31b13e948\nReviewed-on: https://dart-review.googlesource.com/c...
dart
chosen
[ { "from": "system", "value": "Make userId required for UserHistoryFetched event.\n" }, { "from": "human", "value": "part of 'user_history_bloc.dart';\n\nabstract class UserHistoryEvent extends Equatable {\n const UserHistoryEvent();\n\n @override\n List<Object> get props => [];\n}\n\nclass Us...
dart
chosen
[ { "from": "system", "value": "test(bootstrap): Use JQuery in the bootstrap test\n" }, { "from": "human", "value": "library bootstrap_spec;\n\nimport '_specs.dart';\n\nvoid main() {\n describe('bootstrap', () {\n BodyElement body = window.document.querySelector('body');\n\n it('should defa...
dart
chosen
[ { "from": "system", "value": "Build ListTiles from loaded servers.\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\nimport 'package:websafe_svg/websafe_svg.dart';\n\nimport '../../../../core/widgets/list_tile_group.dart';\nimport '../pages/server_settings_page.dart';\n...
dart
chosen
[ { "from": "system", "value": "Check editTaskElement returns a LIElement.\n" }, { "from": "human", "value": "\nimport 'package:ddays/list_tasks.dart';\nimport 'package:test/test.dart';\nimport 'dart:html';\n\nvoid main() {\n test('sinlgeTaskElement returns a LIElement with correct p children', (...
dart
chosen
[ { "from": "system", "value": "Fix crash in checked mode because of wrong output type.\n" }, { "from": "human", "value": "part of dherkin_core;\n\nclass GherkinTable extends IterableBase {\n\n final String _SPACER = \"\\t\\t \";\n\n List<String> _columnNames = [];\n List<Map> _table = [];\n\n...
dart
chosen
[ { "from": "system", "value": "Change regression test now that String does have operator*.\n\nIt still doesn't work for string arguments, but that's a type/argument error.\n\nReview URL: https://codereview.chromium.org//173543002\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@32845 260f80e4-7a28-392...
dart
chosen
[ { "from": "system", "value": "Change format of importing test packages\n" }, { "from": "human", "value": "library test.event_emitter;\n\nimport 'event_emitter_test.dart' as event_emitter_test;\nimport 'event_emitter_with_event_objects_test.dart' as event_objects_test;\nimport 'event_handlers_as_...
dart
chosen
[ { "from": "system", "value": "Update setup instructions to use TextList widget.\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\n\nimport '../../../../core/widgets/bullet_item.dart';\n\nclass ServerSetupInstructions extends StatelessWidget {\n final bool showWarning;\...
dart
chosen
[ { "from": "system", "value": "Tweak Query String Stuff for Demos\n" }, { "from": "human", "value": "import \"dart:html\";\n\nvoid init(String script, {void onReady()}) {\n var stopwatch = new Stopwatch();\n \n if (onReady != null) {\n document.onReadyStateChange.listen((event) {\n if ...
dart
chosen
[ { "from": "system", "value": " Add -O4 flag that changes speedtest from 31 seconds to 0.9 seconds.\n" }, { "from": "human", "value": "import 'dart:html';\nimport '../DiffMatchPatch.dart';\n\n// Compile with:\n// dart2js --out=Speedtest.dart.js Speedtest.dart\n\nvoid launch(Event e) {\n HtmlElem...
dart
chosen
[ { "from": "system", "value": "Use BytesBuilder in pkg:http, when accumulating binary data.\n\nThis should speed up the library significant.\n\nBUG=\nR=sgjesse@google.com\n\nReview URL: https://codereview.chromium.org//47923022\n\ngit-svn-id: a0fc6a377c96b9059f80895148836233a16d98be@29739 260f80e4-7a28-3924-...
dart
chosen
[ { "from": "system", "value": "Add conditional intrinsics to exec\n" }, { "from": "human", "value": "sub(x, y) => x - y;\nadd(x, y) => x + y;\ndiv(x, y) => x / y;\nmod(x, y) => x % y;\nmul(x, y) => x * y;\nnot(x) => !x;\n\nrpc_proxy(name, arguments) {\n \n}\n" }, { "from": "gpt", "va...
dart
chosen
[ { "from": "system", "value": "Allow OneSignal toggle to be hidden.\n" }, { "from": "human", "value": "import 'package:easy_localization/easy_localization.dart';\nimport 'package:flutter/material.dart';\nimport 'package:gap/gap.dart';\n\nimport '../../../../core/widgets/list_tile_group.dart';\nim...
dart
chosen
[ { "from": "system", "value": "Use writeln instead of manual newline insert.\n" }, { "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';...
dart
chosen
[ { "from": "system", "value": "Throw StateError explicitly instead of using assert. Document thrown exception.\n" }, { "from": "human", "value": "// Copyright 2013 Google Inc. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this f...
dart
chosen
[ { "from": "system", "value": "Rearrange arguments in DelegatingComponent constructor\n" }, { "from": "human", "value": "// Copyright (c) 2014, the VDom project authors. Please see the AUTHORS file for\n// details. All rights reserved. Use of this source code is governed by a\n// BSD-style licens...
dart
chosen
[ { "from": "system", "value": "Fix for MatchState acting weird\n" }, { "from": "human", "value": "part of dart_commons;\n\n/**\n * Checks a [value] against a [Matcher] and throws a [PreconditionError] value is not valid. \n * \n * The default message in the [PreconditionError] details the nature...
dart
chosen
[ { "from": "system", "value": "Make the Progress Bar auto-resize.\n" }, { "from": "human", "value": "part of devtools.util;\n\nclass ProgressBar {\n final int width;\n final int complete;\n \n int current = 0;\n \n ProgressBar({int width, this.complete: 100}) : this.width = width != null ...
dart
chosen
[ { "from": "system", "value": "Add function to mask a sensitive string.\n" }, { "from": "human", "value": "/// Helper functions to manipulate string.\nclass StringFormatHelper {\n /// Capitalizes the first letter of a string.\n ///\n /// Throws an [ArgumentError] if string is null.\n static S...
dart
chosen
[ { "from": "system", "value": "Test the full continuous build chain (Drone.io + Heroku)\n" }, { "from": "human", "value": "import 'dart:io';\nimport 'dart:json' as JSON;\n\nmain() {\n var port = int.parse(Platform.environment['PORT']);\n HttpServer.bind('0.0.0.0', port).then((HttpServer server)...
dart
chosen
[ { "from": "system", "value": "Change icon for OneSignal Data Privacy.\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\nimport 'package:font_awesome_flutter/font_awesome_flutter.dart';\n\nimport '../../../../core/package_information/package_information.dart';\nimport '....
dart
chosen
[ { "from": "system", "value": "Add donate button to Changelog.\n" }, { "from": "human", "value": "import 'package:easy_localization/easy_localization.dart';\nimport 'package:flutter/material.dart';\n\nimport '../../../../translations/locale_keys.g.dart';\nimport '../../data/datasource/changelog_d...
dart
chosen
[ { "from": "system", "value": "Update pub test with \"Uncaught Error: \" prefix on output.\n\nR=ajohnsen@google.com\n\nReview URL: https://codereview.chromium.org//439783002\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@38857 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", ...
dart
chosen
[ { "from": "system", "value": "Use the dart:async Stream API thoroughly in Pub.\n\nReview URL: https://codereview.chromium.org//12021008\n\ngit-svn-id: a0fc6a377c96b9059f80895148836233a16d98be@17821 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copyright (c) 2013, the...
dart
chosen
[ { "from": "system", "value": "Support setting <base href> even when set dynamically\n" }, { "from": "human", "value": "import 'dart:async';\nimport 'dart:io';\n\nimport 'package:logging/logging.dart';\nimport 'package:path/path.dart' as p;\n\nimport 'runner.dart' as Process; // TODO(chalin) tmp ...
dart
chosen
[ { "from": "system", "value": "fix(Internal): Drop <T> type in typeToFactory.\n\nIt can never work, because [typeToFactory] doesn't often get a <T> type that is correct.\n\nPiperOrigin-RevId: 190963426\n" }, { "from": "human", "value": "import 'package:angular/src/runtime.dart';\nimport 'package:...
dart
chosen
[ { "from": "system", "value": "Test current situation with mirror\n" }, { "from": "human", "value": "#library(\"objectory_mirror_requirements_test\");\n#import(\"domain_model.dart\");\n#import(\"dart:mirrors\");\n// Possibility to use mirrors currently blocked by lack of VariableMirror.type imple...
dart
chosen
[ { "from": "system", "value": "Use unittest to avoid timeouts on Dartium.\n\nReview URL: https://codereview.chromium.org//15053007\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@22788 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copyright (c) 2013, the Dart ...
dart
chosen
[ { "from": "system", "value": "Set build path as target\n" }, { "from": "human", "value": "import 'package:force/force_serverside.dart';\n\nvoid main() {\n ForceServer fs = new ForceServer(clientFiles: \"../client/web/\",\n startPage: \"index.html\");\n\n fs.setupConsoleLog();\n\n fs.on(\...
dart
chosen
[ { "from": "system", "value": "Add non-ascii ArchiveFile name to test\n" }, { "from": "human", "value": "import 'dart:typed_data';\r\n\r\nimport 'package:archive/archive.dart';\r\nimport 'package:test/test.dart';\r\n\r\nvoid main() {\r\n group('archive', () {\r\n test('replace existing file',...
dart
chosen
[ { "from": "system", "value": "Add an Asynchronous Function Execution\n" }, { "from": "human", "value": "part of alpha.async;\n\nFuture<List<dynamic>> where(List<dynamic> input, bool filter(dynamic it)) {\n var completer = new Completer();\n \n var elements = [];\n \n new Stream.fromIterable...
dart
chosen
[ { "from": "system", "value": "Load questions as objects from Aqueduct to Angular.\n" }, { "from": "human", "value": "import 'package:angular2/core.dart';\nimport 'package:path/path.dart' as path;\n\n// Every Angular application has at least one component: the root component, named AppComponent h...
dart
chosen
[ { "from": "system", "value": "Migrate VM tests to Web\n\nWe will soon enforce that vm tests have dependencies that declare support for the vm platform. These tests transitively depend on web only targets, thus we must migrate them to web tests. There will be a minor performance impact because of this change...
dart
chosen
[ { "from": "system", "value": "Add a basic popup menu widget\n\nCurrently this widget is demoed in widgets-fn, but I'll move it into stocks-fn\nsoon.\n\nR=eseidel@chromium.org\n\nReview URL: https://codereview.chromium.org/1017873002\n" }, { "from": "human", "value": "// Copyright 2015 The Chromi...
dart
chosen
[ { "from": "system", "value": "Use the expression builder in the 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...
dart
chosen
[ { "from": "system", "value": "Add test for Class initialisation.\n" }, { "from": "human", "value": "import 'package:unittest/unittest.dart';\nimport 'package:workmantrainer/textmarker.dart';\n\n" }, { "from": "gpt", "value": "import 'package:unittest/unittest.dart';\nimport 'package:...
dart
chosen
[ { "from": "system", "value": "Fix test for abstract field, not impelemnetd by the mixin application.\n\nChange-Id: I1d12a70a82a859d57516948672ed6a931904ae7a\nReviewed-on: https://dart-review.googlesource.com/c/sdk/+/161626\nReviewed-by: Brian Wilkerson <1f7641b6b14c52b9163524ab8d9aabff80176f21@google.com>\n...
dart
chosen
[ { "from": "system", "value": "Clean up context test given new async test mocking\n" }, { "from": "human", "value": "@TestOn('browser')\nlibrary quark.test.contexts.html;\n\nimport 'package:test/test.dart';\nimport 'package:quark/integration.dart';\nimport 'package:quark/contexts/html.dart';\nimp...
dart
chosen
[ { "from": "system", "value": "Remove keyword this from constructor\n" }, { "from": "human", "value": "// Copyright (c) 2015, <Martin Haesler>. 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 colorful library.\n...
dart
chosen
[ { "from": "system", "value": "Make generated Dart type registry more useful\n" }, { "from": "human", "value": "// Generated by Spine Proto Dart Gradle plugin.\n//\n// https://github.com/SpineEventEngine/base\n//\n// Do NOT edit this file manually.\n//\n\nimport \"package:protobuf/protobuf.dart\"...
dart
chosen
[ { "from": "system", "value": "Send method changed to add in WebSocket\n" }, { "from": "human", "value": "import 'dart:io';\nimport 'dart:async';\n\n// example websocket server\n// listens on ws://dart.dyndns.dk:15000\nmain(){\n listen(HttpServer server){\n print(\"listening for new connect...
dart
chosen
[ { "from": "system", "value": "Improve frog error reporting when providing too few or too many arguments.\n\nThis is a partial re-landing of r3720, but without getting rid of the\nduplicate errors and warnings.\n\nR=floitsch@google.com\nBUG=\nTEST=\n\nReview URL: https://chromiumcodereview.appspot.com//92640...
dart
chosen
[ { "from": "system", "value": "refactor(Compiler): Use trailing commas for DSLs, and make something const.\n\nPiperOrigin-RevId: 177529991\n" }, { "from": "human", "value": "import 'dart:async';\n\nimport 'package:build/build.dart';\nimport 'package:angular/src/transform/common/names.dart';\nimpo...
dart
chosen
[ { "from": "system", "value": "Refactor customer merge click handler to be its own method\n" }, { "from": "human", "value": "import \"package:bitesize_screencasts/customer/customer.dart\";\nimport \"package:intl/intl.dart\";\nimport \"dart:html\";\n\nfinal wealthFormatter = new NumberFormat(\"###...
dart
chosen
[ { "from": "system", "value": "Add a timeout on HttpRequestDataReader\n\nBUG=\nR=efortuna@google.com\n\nReview URL: https://codereview.chromium.org//347963004\n\ngit-svn-id: a8f079e7cfc3a289d8496d7b88aabbd5c45a3053@37711 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// C...
dart
chosen
[ { "from": "system", "value": "Use new `decoder` library in examples.\n" }, { "from": "human", "value": "// Copyright (c) 2015 Justin Andresen. All rights reserved.\n// This software may be modified and distributed under the terms\n// of the MIT license. See the LICENSE file for details.\n\nlibra...
dart
chosen
[ { "from": "system", "value": "Fix to ResourceRequest, cleaned up init\n" }, { "from": "human", "value": "part of monadart;\n\nclass ResourceRequest {\n\n final HttpRequest request;\n HttpResponse get response => request.response;\n\n Map<String, String> pathParameters = null;\n Map<dynamic, ...
dart
chosen
[ { "from": "system", "value": "Sort packages before listing them.\n\nReview URL: https://chromiumcodereview.appspot.com//10137015\n\ngit-svn-id: a962b240025cf0577aa172e20f49ccb159ba6be1@7112 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copyright (c) 2012, the Dart pr...
dart
chosen
[ { "from": "system", "value": "Introduce default locale setting for permutations transformer" }, { "from": "human", "value": "// Copyright 2015 Google Inc. All Rights Reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compli...
dart
chosen
[ { "from": "system", "value": "Remove unnecessary observable wrapping logic\n" }, { "from": "human", "value": "part of streamy.runtime;\n\nfinal _observableJsonCodec = new JsonCodec.withReviver(_observableReviver);\n\n/// Parses JSON into [Observable] lists and maps.\ndynamic jsonParse(String jso...
dart
chosen
[ { "from": "system", "value": "Add hello api method without async\n" }, { "from": "human", "value": "library sample_api;\n\nimport 'dart:async';\nimport 'dart:io';\n\nimport 'package:rpc/rpc.dart';\n\nfinal List<String> names = ['Joe', 'John', 'Doe', 'Dohn'];\n\nclass StringResponse {\n String r...
dart
chosen
[ { "from": "system", "value": "Add Test for Message IRC Parser\n" }, { "from": "human", "value": "library parser_tests;\n\nimport 'package:irc/parser.dart';\nimport 'package:unittest/unittest.dart';\n\nmain() {\n group(\"Hostmask\", () {\n var inputs = {\n \"samrg472!~deathcraz@I.got.g-l...
dart
chosen
[ { "from": "system", "value": "Use ssh for github repositories.\n" }, { "from": "human", "value": "import 'dart:async';\n\nimport 'dart_doc_syncer.dart' as syncer;\n\nfinal examplesToSync = <List<String>>[\n <String>[\n 'public/docs/_examples/template-syntax/dart',\n 'https://github.com/an...
dart
chosen
[ { "from": "system", "value": "Add description to Notices banner\n" }, { "from": "human", "value": "import 'package:campus_mobile_experimental/app_styles.dart';\nimport 'package:campus_mobile_experimental/core/models/notices.dart';\nimport 'package:campus_mobile_experimental/ui/common/image_loade...
dart
chosen
[ { "from": "system", "value": "Add getter methods for r, g, b;\n" }, { "from": "human", "value": "// Copyright (c) 2015, <Martin Haesler>. 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 colorful library.\nlibra...
dart
chosen
[ { "from": "system", "value": "Use tasklist global in loadFromStorage function.\n" }, { "from": "human", "value": "library storageservice;\n\nimport 'dart:html';\nimport 'dart:convert';\n\nfinal String STORAGE_KEY = 'ddays';\n\nList tasklist = [];\n\n// add an item to a given List, then save\n// ...
dart
chosen
[ { "from": "system", "value": "Use initialised start and endpositions.\n" }, { "from": "human", "value": "library textmarker;\n\nimport 'dart:html'; \n\nclass TextMarker {\n String targettext;\n int startposition;\n int endposition;\n String textState; // were characters from start to end...
dart
chosen
[ { "from": "system", "value": "Update unit test configuration setting.\n" }, { "from": "human", "value": "library test_dump_render_tree;\n\nimport 'dart:io';\nimport 'package:unittest/unittest.dart';\n\nvoid main() {\n testRun();\n}\n\nvoid testCore(Configuration config) {\n configure(config);\...
dart
chosen
[ { "from": "system", "value": "Fix uses_bottom_as_dynamic (\"fuzzy arrow\") errors for material_select.\n\nUsing dynamic as bottom will become an error in Dart 2.0. https://github.com/dart-lang/sdk/issues/29630\n\nPiperOrigin-RevId: 182020806\n" }, { "from": "human", "value": "// Copyright (c) 20...
dart
chosen
[ { "from": "system", "value": "Make cyclic error init more complicated to avoid static warnings.\n\nReview URL: https://codereview.chromium.org//18433003\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@24728 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copyri...
dart
chosen
[ { "from": "system", "value": "Support for discord's latest feature\n" }, { "from": "human", "value": "part of discord;\n\n/// A game.\nclass Game extends _BaseObj {\n /// The game name.\n String name;\n\n /// The game type. 0 if not streamed, 1 if being streamed.\n int type;\n\n /// The gam...
dart
chosen
[ { "from": "system", "value": "Remove dependency on dart:mirrors from Streamy runtime.\n" }, { "from": "human", "value": "/// Runtime library used by all generated APIs.\nlibrary streamy.runtime;\n\nimport 'dart:async';\nimport 'dart:json';\nimport 'dart:mirrors';\n\nimport 'package:meta/meta.dar...
dart
chosen
[ { "from": "system", "value": "Correct or pause previous TimeCounters.\n\nR=brianwilkerson@google.com, jwren@google.com\nBUG=\n\nReview URL: https://codereview.chromium.org//225183020\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@34809 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "h...
dart
chosen
[ { "from": "system", "value": "[test] Fix expected and actual ordering\n\nNot a big deal but I was confused for longer than I would like to\nadmit because the failure message labels the \"expected\" and \"actual\"\nvalues as such.\n\nChange-Id: I433d263b873286a54725b7a2a0ba536dd29aae47\nReviewed-on: https://...
dart
chosen
[ { "from": "system", "value": "Test that getSdkDir() finds the SDK without CLI args." }, { "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": "Test that isInQuery writes inner tables\n" }, { "from": "human", "value": "import 'package:test/test.dart';\nimport 'package:moor/moor.dart';\n\nimport '../data/tables/todos.dart';\nimport '../data/utils/expect_generated.dart';\n\nvoid main() {\n final db = TodoDb(...
dart
chosen
[ { "from": "system", "value": "Prepare for adding the button to the right to enable sending the message\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\n\nvoid main() {\n runApp(new FriendlychatApp());\n}\n\nclass FriendlychatApp extends StatelessWidget {\n @override\...
dart
chosen
[ { "from": "system", "value": "Fix some types, better way of interpolating values\n" }, { "from": "human", "value": "import 'dart:io';\nimport 'dart:convert' show JSON;\n\nmain() {\n var port = 3000;\n\n HttpServer.bind('localhost', port).then((HttpServer server) {\n print('Server st...
dart
chosen
[ { "from": "system", "value": "Add title mapper for graph series type.\n" }, { "from": "human", "value": "class StringMapperHelper {\n static String mapStatIdToTitle(String statId) {\n switch (statId) {\n case ('top_tv'):\n return 'Most Watched TV Shows';\n case ('popular_tv'...
dart
chosen
[ { "from": "system", "value": "Sort packages by name before listing them.\n\nReview URL: https://chromiumcodereview.appspot.com//10191027\n\ngit-svn-id: a962b240025cf0577aa172e20f49ccb159ba6be1@6978 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copyright (c) 2012, the...
dart
chosen
[ { "from": "system", "value": "Rename 'Matching' transformer to 'StringsMatching'\n" }, { "from": "human", "value": "part of devtools.util;\n\nclass StringTrimmer implements StreamTransformer<String, String> { \n @override\n Stream<String> bind(Stream<String> stream) =>\n stream.map((valu...
dart
chosen
[ { "from": "system", "value": "Make the root zone's schduleMicrotask and create[Periodic]Timer bind the callback.\n\nBUG= http://dartbug.com/15232\nR=floitsch@google.com\n\nCommitted: https://code.google.com/p/dart/source/detail?r=30708\n\nReview URL: https://codereview.chromium.org//87283003\n\ngit-svn-id: ...
dart
chosen
[ { "from": "system", "value": "Allow poster card to load if no url is provided.\n" }, { "from": "human", "value": "import 'dart:ui';\n\nimport 'package:flutter/material.dart';\n\nimport 'poster_chooser.dart';\n\nclass PosterCard extends StatelessWidget {\n final dynamic item;\n final Widget det...
dart
chosen
[ { "from": "system", "value": "Add breakpoint marker for Dart tests\n" }, { "from": "human", "value": "import \"package:test/test.dart\";\n\nvoid main() {\n group(\"String\", () {\n test(\".split() splits the string on the delimiter\", () {\n var string = \"foo,bar,baz\";\n expect(s...
dart
chosen
[ { "from": "system", "value": "Call /api/sessions/logout to log out\n" }, { "from": "human", "value": "import 'dart:async';\nimport 'dart:convert';\nimport 'dart:html';\n\nimport 'package:angular/angular.dart';\nimport 'package:http/browser_client.dart';\n\n@Injectable()\nclass LoginService {\n ...
dart
chosen
[ { "from": "system", "value": "Test fixed to not to be racy\n" }, { "from": "human", "value": "/*\n * Copyright (c) 2016, the Dart project authors. Please see the AUTHORS\n * file for details. All rights reserved. Use of this source code is governed\n * by a BSD-style license that can be found i...
dart
chosen
[ { "from": "system", "value": "Sort packages before listing them.\n\nReview URL: https://chromiumcodereview.appspot.com//10137015\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@7112 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copyright (c) 2012, the Dart pr...
dart
chosen
[ { "from": "system", "value": "Make OutOfMemory test work on 32 bit machines.\n\nR=rmacnak@google.com\n\nReview URL: https://codereview.chromium.org/2080383003 .\n" }, { "from": "human", "value": "// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file\n// for details. All r...
dart
chosen
[ { "from": "system", "value": "Change timer delay to 0 to make jsshell happy.\n\nBUG=\nR=karlklose@google.com\n\nReview URL: https://codereview.chromium.org//903433002\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@43464 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "valu...
dart
chosen
[ { "from": "system", "value": "Add second argument to Future error handlers.\n\nR=lrn@google.com, nweiz@google.com\n\nReview URL: https://codereview.chromium.org//25027004\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@28510 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "...
dart
chosen
[ { "from": "system", "value": "Set an attribute at a more correct time\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 the LI...
dart
chosen
[ { "from": "system", "value": "Remove infinite recursion and add Rank==.\n" }, { "from": "human", "value": "// Copyright 2014 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\npart of freecell.de...
dart
chosen
[ { "from": "system", "value": "Add constant for log directory.\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 the LICENSE fi...
dart
chosen