conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix runtime migration verification typo\n" }, { "from": "human", "value": "import 'package:drift/drift.dart';\n\n// #docregion\n// import the migrations tooling\nimport 'package:drift_dev/api/migrations.dart';\n// #enddocregion\n\nconst kDebugBuild = true;\n\nabstra...
dart
chosen
[ { "from": "system", "value": "Add support for accessing all of the created contexts\n\nChange-Id: I84284726dea1b12f8403456cbdb0a9a967624e0d\nReviewed-on: https://dart-review.googlesource.com/67380\nReviewed-by: Konstantin Shcheglov <09e4d7516628963212bf4aace2f97603d2b706e4@google.com>\nCommit-Queue: Brian W...
dart
chosen
[ { "from": "system", "value": "Use nonBlocking stdio for LSP\n\nChange-Id: I20f7ed183d08b7fc778b4cb643eff6f82c9f3f48\nReviewed-on: https://dart-review.googlesource.com/c/90001\nReviewed-by: Brian Wilkerson <1f7641b6b14c52b9163524ab8d9aabff80176f21@google.com>\nCommit-Queue: Danny Tuppeny <596a1fc21c51678cfaf...
dart
chosen
[ { "from": "system", "value": "Fix game state getter name" }, { "from": "human", "value": "// Copyright (c) 2015, <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 dartbase_console_client.test;\n\nimp...
dart
chosen
[ { "from": "system", "value": "test(Core): Add a test that rootLegacyInjector supports SlowComponentLoader.\n\nPiperOrigin-RevId: 192625887\n" }, { "from": "human", "value": "@TestOn('browser')\nimport 'package:angular/angular.dart';\nimport 'package:angular/experimental.dart';\nimport 'package:t...
dart
chosen
[ { "from": "system", "value": "Use nullable access to the dropdown, as it is passed optionally in menu-root.\n\nPiperOrigin-RevId: 256203326\n" }, { "from": "human", "value": "// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file\n// for details. All rights reserved. Use o...
dart
chosen
[ { "from": "system", "value": "Update exception catch to JsonDecodeException.\n" }, { "from": "human", "value": "import 'dart:async';\nimport 'dart:io';\n\nimport 'package:dartz/dartz.dart';\nimport 'package:meta/meta.dart';\n\nimport '../../../../core/error/exception.dart';\nimport '../../../../...
dart
chosen
[ { "from": "system", "value": "Use SelectionModel.single(), SelectionModel.multi() etc. instead of deprecated SelectionModel.withList()\nUse SelectionModel.empty() instead of deprecated SelectionModel()\n\nPiperOrigin-RevId: 200344866\n" }, { "from": "human", "value": "// Copyright (c) 2016, the ...
dart
chosen
[ { "from": "system", "value": "Add some help to write the first function\n" }, { "from": "human", "value": "import 'package:hello_dart/hello_dart.dart';\n\n/// Your player.\nclass MyPlayer extends Player {\n\n /// Your program.\n start() {\n }\n\n}\n\n\nmain() {\n createWorld('scenario.txt', ...
dart
chosen
[ { "from": "system", "value": "Fix binstub test on windows.\n\nR=nweiz@google.com\n\nReview URL: https://codereview.chromium.org//586843002\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@40518 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copyright (c) 2014, ...
dart
chosen
[ { "from": "system", "value": "Make debug printing of function types more robust.\n\nSometimes when printing stack states in the outline builder,\na formal in a function type is a FormalParameterBuilder,\nand sometimes a formal or the return type is null.\n\nChange-Id: I2bed0baae2a80e894e170a85744e382e763c89...
dart
chosen
[ { "from": "system", "value": "Clear a repair slot when completed.\n" }, { "from": "human", "value": "part of kcaa_model;\n\nclass RepairSlot extends Observable {\n @observable int id;\n @observable Ship ship;\n @observable DateTime eta;\n @observable String etaDatetimeString;\n\n RepairSlot...
dart
chosen
[ { "from": "system", "value": "Update imports after material.dart rename\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\nlibrary playfair;\n...
dart
chosen
[ { "from": "system", "value": "Convert RegExp to final vars\n" }, { "from": "human", "value": "import 'package:slugify/src/replacements.dart';\n\nconst dupeSpacePattern = r'\\s{2,}';\nconst punctuationPattern = r'[^\\w\\s-]';\n\nSlugify(String text, {String delimiter = '-', bool lowercase = true}...
dart
chosen
[ { "from": "system", "value": "Rename getDegreeOfMembership to getDegreeOfMembershipWithInputs even in FuzzyHedges\n" }, { "from": "human", "value": "/**\n * By importing this library, you get the two most important fuzzy logic hedges:\n * [very] and [fairly].\n * \n * This means you can do:\n * ...
dart
chosen
[ { "from": "system", "value": "Add tests for insertTask function\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', () {\n LI...
dart
chosen
[ { "from": "system", "value": "Fix typo in region tag" }, { "from": "human", "value": "import 'package:cloud_firestore/cloud_firestore.dart';\nimport 'package:flutter/material.dart';\n\n// [START listen_to_realtime_updates_listen_for_updates2]\nclass UserInformation extends StatefulWidget {\n @o...
dart
chosen
[ { "from": "system", "value": "Add Hero widget support to PosterCard.\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 details;\n\n ...
dart
chosen
[ { "from": "system", "value": "Fix another transformer load error test.\n\nR=rnystrom@google.com\nTBR\n\nReview URL: https://codereview.chromium.org//302433002\n\ngit-svn-id: a962b240025cf0577aa172e20f49ccb159ba6be1@36604 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// ...
dart
chosen
[ { "from": "system", "value": "Fix test for analyzer error message.\n\nBUG=\nR=nweiz@google.com\n\nReview URL: https://codereview.chromium.org//192753005\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@33507 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copyri...
dart
chosen
[ { "from": "system", "value": "Fix an analyzer warning in barback.\n\nR=rnystrom@google.com\nBUG=\n\nReview URL: https://codereview.chromium.org//196573013\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@33678 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copy...
dart
chosen
[ { "from": "system", "value": "[cfe] Remove misleading comment from test\n\nChange-Id: I97392718faf380d1431e76e808bbe775e25e3d4e\nReviewed-on: https://dart-review.googlesource.com/c/sdk/+/177860\nReviewed-by: Dmitry Stefantsov <95a4b7e39916a54bd6477bec6a6de014b977db32@google.com>\nCommit-Queue: Johnni Winthe...
dart
chosen
[ { "from": "system", "value": "Increase logging level on worker nodes\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 that can be f...
dart
chosen
[ { "from": "system", "value": "Use normal request handler instead of shelf\n" }, { "from": "human", "value": "import 'package:endpoints/endpoints.dart';\nimport 'package:appengine/appengine.dart';\nimport 'package:shelf/shelf.dart';\nimport 'package:shelf_appengine/shelf_appengine.dart' as shelf_...
dart
chosen
[ { "from": "system", "value": "Add call to flush() to avoid flakiness\n\nRelated to #28558.\n\nR=zra@google.com\n\nReview-Url: https://codereview.chromium.org/2688243003 .\n" }, { "from": "human", "value": "// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file\n// for deta...
dart
chosen
[ { "from": "system", "value": "Revert \"Fixup DDC test on Windows\"\n\nThis reverts commit 70020cd30d9c8d4b42c42b702df2cf2bf6a77d18.\n\nReason for revert: Didn't quite work.\n\nOriginal change's description:\n> Fixup DDC test on Windows\n> \n> Directory.current.path on Windows uses \"\\\" and not \"/\".\n> \...
dart
chosen
[ { "from": "system", "value": "Add `shutdown` and `exit` method handlers\n\nThis matches the language server protocol. Shutdown does not need to do\nany useful cleanup. Correctly sets the exit code against the protocol\nspec based on whether shutdown was called.\n" }, { "from": "human", "value": ...
dart
chosen
[ { "from": "system", "value": "Fix running process tests on Windows\n\nTBR=ager@google.com\n\nBUG=\nTEST=\n\nReview URL: http://codereview.chromium.org//8679008\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@1799 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// ...
dart
chosen
[ { "from": "system", "value": "Fix lints of Flutter example\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\nimport 'package:flutter/services.dart';\nimport 'package:toml/toml.dart';\n\nvoid main() {\n runApp(MyApp());\n}\n\nclass MyApp extends StatelessWidget {\n @ov...
dart
chosen
[ { "from": "system", "value": "Add missing patch methods to dart2js implementation of timeline\n\nBUG=\n\nReview URL: https://codereview.chromium.org/1400893002 .\n" }, { "from": "human", "value": "// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file\n// for details. All ...
dart
chosen
[ { "from": "system", "value": "Use Quiver for Reversing Strings" }, { "from": "human", "value": "import \"package:polymorphic_bot/plugin.dart\";\nexport \"package:polymorphic_bot/plugin.dart\";\n\n@Command(\"reverse\", allowVariables: true)\nreverse(CommandEvent event) =>\n event.transform((in...
dart
chosen
[ { "from": "system", "value": "Add timestamp to Task class.\n" }, { "from": "human", "value": "\nlibrary task;\n\nclass TaskNote {\n String notebody;\n TaskNote(this.notebody);\n}\n\n\n\nclass Task {\n String summary;\n List<TaskNote> tasknotes = [];\n DateTime scheduled;\n Set<String> task...
dart
chosen
[ { "from": "system", "value": "Normalize with the internal verison of this file.\n\nChange-Id: I27d56a0f61bb68bfe9f0386dc7b140cdebba4522\nReviewed-on: https://dart-review.googlesource.com/72542\nReviewed-by: Brian Wilkerson <1f7641b6b14c52b9163524ab8d9aabff80176f21@google.com>\nCommit-Queue: Devon Carew <e99...
dart
chosen
[ { "from": "system", "value": "Return a NodeDSL object from NodeDSL.on\n" }, { "from": "human", "value": "part of tmx;\n\nclass NodeDSL {\n XmlElement element;\n\n NodeDSL(this.element);\n\n static NodeDSL on(XmlElement element, Function fxn) {\n var node = new NodeDSL(element);\n fxn(no...
dart
chosen
[ { "from": "system", "value": "Revert \"This statement crashes the isolate.\"\n\nThis reverts commit 7cd8fdf8cb710042ff2e816db53da0c6c94cfc42.\n" }, { "from": "human", "value": "// Copyright (c) 2014, Google Inc. Please see the AUTHORS file for details.\n// All rights reserved. Use of this source...
dart
chosen
[ { "from": "system", "value": "Reduce the length of the toast message.\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\nimport 'package:flutter_bloc/flutter_bloc.dart';\nimport 'package:fluttertoast/fluttertoast.dart';\n\nimport '../../features/settings/presentation/blo...
dart
chosen
[ { "from": "system", "value": "Add .git to excluded dirs\n" }, { "from": "human", "value": "library common;\n\nimport 'dart:io';\n\nfinal String BUILD_URL = '/build';\nfinal String CLOSE_URL = '/close';\nfinal String STATUS_URL = '/status';\nfinal String BUILDLOG_FILE = '.buildlog';\nfinal String...
dart
chosen
[ { "from": "system", "value": "[dart2js] Migrate abstract value strategy to null safety\n\nChange-Id: Iae8a77663b3e87f7d05f7faa0c85bb8cf3bdfc9f\nReviewed-on: https://dart-review.googlesource.com/c/sdk/+/253003\nReviewed-by: Mayank Patke <e0355b78204b67a55a952941c68c8f1b40235938@google.com>\nCommit-Queue: Sig...
dart
chosen
[ { "from": "system", "value": "fix(WebWorker): Fix bug causing multi browser demo to crash\n\nCloses #4839\n" }, { "from": "human", "value": "library angular2.examples.web_workers.todo.server_index;\nimport \"index_common.dart\" show TodoApp;\nimport \"package:angular2/src/web_workers/debug_tools...
dart
chosen
[ { "from": "system", "value": "Split debugPrint messages into 300 character chunks\n" }, { "from": "human", "value": "import 'dart:async';\n\nimport 'package:drift/drift.dart';\nimport 'package:drift/src/runtime/executor/delayed_stream_queries.dart';\nimport 'package:drift/src/runtime/executor/st...
dart
chosen
[ { "from": "system", "value": "Support disabled attribute in tab button\n\nPiperOrigin-RevId: 202175148\n" }, { "from": "human", "value": "// Copyright (c) 2016, 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...
dart
chosen
[ { "from": "system", "value": "Change default GetImageUrl height & width.\n\nFixes poster change in Tautulli not being reflected in Tautulli Remote.\n" }, { "from": "human", "value": "import 'package:meta/meta.dart';\n\nimport '../../../../core/api/tautulli_api/tautulli_api.dart' as tautulli_api;...
dart
chosen
[ { "from": "system", "value": "Make tracing work in the new .dart world.\n\nR=abarth@chromium.org, viktorl@google.com\n\nReview URL: https://codereview.chromium.org/1152483006\n" }, { "from": "human", "value": "// Copyright 2015 The Chromium Authors. All rights reserved.\n// Use of this source co...
dart
chosen
[ { "from": "system", "value": "Refresh task list view when new task is submitted\n" }, { "from": "human", "value": "library new_task;\n\nimport 'dart:html';\nimport 'package:ddays/task.dart' show Task;\nimport 'package:ddays/storageservice.dart' show saveToStorage, STORAGE_KEY;\n\nvoid saveTask(E...
dart
chosen
[ { "from": "system", "value": "Fix one more test with factory redirect to abstract class.\n\nSame as https://dart-review.googlesource.com/c/sdk/+/175361\n\nChange-Id: I0f6b9032e4f2718bceb00010080bc5ca0835a761\nReviewed-on: https://dart-review.googlesource.com/c/sdk/+/175580\nReviewed-by: Brian Wilkerson <1f7...
dart
chosen
[ { "from": "system", "value": "Test year selection for date picker" }, { "from": "human", "value": "import 'package:sky/widgets.dart';\nimport 'package:test/test.dart';\n\nimport 'build_utils.dart';\n\nvoid main() {\n test('Can select a day', () {\n WidgetTester tester = new WidgetTester();\n...
dart
chosen
[ { "from": "system", "value": "Drop ambition to add bump (height) mapping\n" }, { "from": "human", "value": "part of material;\n\nclass LambertMaterial implements Material {\n String name;\n\n Blending blending = const Blending(\n sourceColorFactor: BlendingFactor.sourceAlpha,\n desti...
dart
chosen
[ { "from": "system", "value": "Remove analyzer warning from test.\n\nReview URL: https://codereview.chromium.org/2132903003 .\n" }, { "from": "human", "value": "// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file\n// for details. All rights reserved. Use of this source c...
dart
chosen
[ { "from": "system", "value": "Fix a test after recent uri change.\n\nTBR=sgjesse@google.com\n\nReview URL: https://codereview.chromium.org//16026004\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@23273 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "library Locat...
dart
chosen
[ { "from": "system", "value": "Fix another part-of related test failure\n\nLibrary names must match.\n\nReview URL: https://codereview.chromium.org//14788009\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@22288 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Co...
dart
chosen
[ { "from": "system", "value": "Initialize barcode model barCode data type as int to resolve null exceptions\n" }, { "from": "human", "value": "// To parse this JSON data, do\n//\n// final studentIdBarcodeModel = studentIdBarcodeModelFromJson(jsonString);\n\nimport 'dart:convert';\n\nStudentId...
dart
chosen
[ { "from": "system", "value": "Remove utils.dart export from library" }, { "from": "human", "value": "library oauth1;\n\nexport 'src/utils.dart';\nexport 'src/client_credentials.dart';\nexport 'src/credentials.dart';\nexport 'src/signature_method.dart';\nexport 'src/client.dart';\nexport 'src/aut...
dart
chosen
[ { "from": "system", "value": "Remove visibility.all from @Component annotations. This is potentially BREAKING\nchange.\n\nPlease review carefully. Breakage will only be caught if the code is covered by\ntests. Reject this change if you believe it breaks you.\n\nIf the component needs to be injected anywhere...
dart
chosen
[ { "from": "system", "value": "Use the same trash icon as server settings page.\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\nimport 'package:font_awesome_flutter/font_awesome_flutter.dart';\n\nimport '../../../../core/helpers/color_palette_helper.dart';\n\nclass Del...
dart
chosen
[ { "from": "system", "value": "Fix test to not reach out of current dir\n\nThis lets us use the same test for DDC\n\nTBR=vsm@google.com\n\nReview URL: https://codereview.chromium.org/1946973002 .\n" }, { "from": "human", "value": "// Copyright (c) 2013, the Dart project authors. Please see the A...
dart
chosen
[ { "from": "system", "value": "Make transformer type parameters more concrete to let users control types.\n" }, { "from": "human", "value": "part of streamy.runtime;\n\n/// A [StreamTransformer] that de-duplicates entities. This will cause\n/// metadata about the entity (Entity.streamy) to be ina...
dart
chosen
[ { "from": "system", "value": "Fix integration test to avoid new 'Unused local variable' hint.\n\nR=scheglov@google.com\n\nReview URL: https://codereview.chromium.org//700323004\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@41580 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human",...
dart
chosen
[ { "from": "system", "value": "Fix build by updating test to use different check for user-defined getters.\n\nTBR'ed.\n\nR=ngeoffray@google.com\nBUG=\n\nReview URL: https://codereview.chromium.org//12295011\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@18625 260f80e4-7a28-3924-810f-c04153c831b5\n" ...
dart
chosen
[ { "from": "system", "value": "Add docu to the platform interface\n" }, { "from": "human", "value": "import 'package:pay_platform_interface/core/payment_item.dart';\n\nabstract class PayPlatform {\n /**\n * TBA\n */\n Future<bool> userCanPay(Map<String, dynamic> paymentProfile);\n\n /**\n ...
dart
chosen
[ { "from": "system", "value": "Add multitest markers to reify test\n\nTBR=dmitryas@google.com\n\nReview-Url: https://codereview.chromium.org/2696283006 .\n" }, { "from": "human", "value": "// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file\n// for details. All rights re...
dart
chosen
[ { "from": "system", "value": "Prepare for Uint8List SDK breaking change\n\nA recent change to the Dart SDK updated `HttpClientResponse`\nto implement `Stream<Uint8List>` rather than implementing\n`Stream<List<int>>`.\n\nThis forwards-compatible chnage updates calls to\n`Stream.transform(StreamTransformer)` ...
dart
chosen
[ { "from": "system", "value": "Use double for RGB color.\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.\nlibrary col...
dart
chosen
[ { "from": "system", "value": "Add Support for Chemical Names and Formulas\n" }, { "from": "human", "value": "import \"package:polymorphic_bot/plugin.dart\";\nexport \"package:polymorphic_bot/plugin.dart\";\n\nconst String APP_ID = \"2982LV-6WP5YYAWLQ\";\n\n@Command(\"w\", description: \"Wolfram ...
dart
chosen
[ { "from": "system", "value": "Fix relative import from pkg/kernel/test to pkg/kernel/lib.\n\nThis doesn't work due to the file organization used in google3.\n\nChange-Id: I814a087bd9c6e10fc7738c782af6f54fde3cf000\nReviewed-on: https://dart-review.googlesource.com/c/sdk/+/99181\nAuto-Submit: Paul Berry <72d4...
dart
chosen
[ { "from": "system", "value": "Add LoadingComponent as directive to profile setting component\n" }, { "from": "human", "value": "import 'dart:html';\n\nimport 'package:angular/angular.dart';\nimport 'package:angular_forms/angular_forms.dart';\nimport 'package:angular_router/angular_router.dart';\...
dart
chosen
[ { "from": "system", "value": "Change return type of firstNonNull to dynamic\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 file except in compliance with the ...
dart
chosen
[ { "from": "system", "value": "[pkg:test_runner] Replace space from test config name\n\nhttps://dart-review.googlesource.com/c/sdk/+/181404 disallows spaces\nin Configurations.\n\nChange-Id: I0582eca064bd6d88ebcbbf411e44a6147895148c\nReviewed-on: https://dart-review.googlesource.com/c/sdk/+/184902\nAuto-Subm...
dart
chosen
[ { "from": "system", "value": "Add missing text direction for running flutter tests\n" }, { "from": "human", "value": "import 'package:flutter/widgets.dart';\n\nvoid main() {\n runApp(new Center(child: new Text('Hello, world!')));\n}\n\nclass MySampleHome extends StatelessWidget {\n @override\n...
dart
chosen
[ { "from": "system", "value": "Revert \"rename manager to workerStarter\"\n\nThis reverts commit f6e51634a05181f837fef270cb0ef25580c18c4b.\n" }, { "from": "human", "value": "part of ChattyWorker;\n\n_workerStarter(message) {\n message[0].startWorking(message[1]);\n}\n\nabstract class Boss {\n\n ...
dart
chosen
[ { "from": "system", "value": "Rename library name in test.\n\nReview URL: https://codereview.chromium.org/2126573002 .\n" }, { "from": "human", "value": "// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file\n// for details. All rights reserved. Use of this source code is...
dart
chosen
[ { "from": "system", "value": "Add another missing analyzer tag to test\n" }, { "from": "human", "value": "import 'package:moor_generator/src/analyzer/errors.dart';\nimport 'package:test/test.dart';\n\nimport '../utils.dart';\n\nvoid main() {\n group(\"reports error when an import can't be found...
dart
chosen
[ { "from": "system", "value": "Use our own DiagnosticHandler for dart2js.\n\nInstead of implementing SourceFileProvider and using dart2js's\nbuilt in DiagnosticHandler, we just provide our own\nCompilerInputProvider and DiagnosticHandler functions. This avoids\nimplementing stuff in SourceFileProvider and, m...
dart
chosen
[ { "from": "system", "value": "Remove unused local var _argParser.\n\nPiperOrigin-RevId: 177630622\n" }, { "from": "human", "value": "import 'package:args/args.dart';\nimport 'package:build/build.dart';\nimport 'package:source_gen/source_gen.dart';\nimport 'package:angular/source_gen.dart';\nimpo...
dart
chosen
[ { "from": "system", "value": "Make sleep test resilient to timer rounding issues\n\nTBR=ager@google.com\n\nReview URL: https://codereview.chromium.org//13718002\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@20953 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "/...
dart
chosen
[ { "from": "system", "value": "Allow main to be null for modular tranformation.\n\nR=asgerf@google.com\n\nReview-Url: https://codereview.chromium.org/2612873005 .\n" }, { "from": "human", "value": "// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file\n// for details. All ...
dart
chosen
[ { "from": "system", "value": "Fix a test to get the analyzer nnbd bot to pass\n\nChange-Id: I5892c245d4aa984c896471bf18cd71362958d0c6\nReviewed-on: https://dart-review.googlesource.com/c/sdk/+/138782\nReviewed-by: Konstantin Shcheglov <09e4d7516628963212bf4aace2f97603d2b706e4@google.com>\nCommit-Queue: Bria...
dart
chosen
[ { "from": "system", "value": "Change displayTasks to use taskContainer element.\n" }, { "from": "human", "value": "library list_tasks;\n\nimport 'dart:html';\nimport 'package:ddays/storageservice.dart' show loadFromStorage;\n\nLIElement singleTaskElement(String tasksummary) {\n LIElement li = n...
dart
chosen
[ { "from": "system", "value": "Fix example according to filename\n" }, { "from": "human", "value": "import 'dart:io';\nimport 'package:twitter/twitter.dart';\n\nmain(){\n var envVars = Platform.environment;\n print(envVars['CONSUMER_KEY']);\n print(envVars['CONSUMER_SECRET']);\n print(envVars...
dart
chosen
[ { "from": "system", "value": "Use underscores for import aliases\n" }, { "from": "human", "value": "library frappe.test_runner;\n\nimport 'event_stream_test.dart' as eventStreamTest;\nimport 'property_test.dart' as propertyTest;\nimport 'constant_property_test.dart' as constantPropertyTest;\nimp...
dart
chosen
[ { "from": "system", "value": "Use emitsThrough instead of emits\n" }, { "from": "human", "value": "import 'dart:async';\n\nimport 'package:build/build.dart';\nimport 'package:build_test/build_test.dart';\nimport 'package:moor_generator/integrations/build.dart';\nimport 'package:test/test.dart';\...
dart
chosen
[ { "from": "system", "value": "Fix compile warning in Dart test project\n" }, { "from": "human", "value": "main() {\n var s = \"Hello!\";\n var l = [0, 1];\n var m = {\n \"l\": l,\n \"s\": s,\n new DateTime.now(): \"today\",\n new DateTime.now().add(const Duration(days: 1)): \"tomo...
dart
chosen
[ { "from": "system", "value": "Add test for insertTask function\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', () {\n LIE...
dart
chosen
[ { "from": "system", "value": "Fix throw statement in _InvocationMirror.invokeOn on VM's library.\n\nUnsupportedOperation was renamed to UnsupportedError.\n\nR=fschneider@google.com\n\nReview URL: https://codereview.chromium.org//11414183\n\ngit-svn-id: c93d8a2297af3b929165606efe145742a534bc71@15397 260f80e4...
dart
chosen
[ { "from": "system", "value": "Fix problem with instance of coverage result\n" }, { "from": "human", "value": "library dart_coveralls.calc;\n\nimport 'dart:io';\n\nimport 'package:dart_coveralls/dart_coveralls.dart';\n\nimport 'command_line.dart';\n\nclass CalcPart extends Object with CommandLine...
dart
chosen
[ { "from": "system", "value": "Use a different QR Generator API" }, { "from": "human", "value": "import \"package:polymorphic_bot/plugin.dart\";\nexport \"package:polymorphic_bot/plugin.dart\";\n\n@PluginInstance()\nPlugin plugin;\n@BotInstance()\nBotConnector bot;\n\n@Command(\"qr\", description...
dart
chosen
[ { "from": "system", "value": "Update failure alert dialog with translation keys.\n" }, { "from": "human", "value": "// @dart=2.9\n\nimport 'package:flutter/material.dart';\n\nimport '../../features/help/presentation/pages/help_page.dart';\nimport '../error/failure.dart';\nimport '../helpers/fail...
dart
chosen
[ { "from": "system", "value": "Fix typo in classes.add ...\n" }, { "from": "human", "value": "library list_tasks;\n\nimport 'dart:html';\nimport 'package:ddays/storageservice.dart' show loadFromStorage;\n\n\nLIElement singleTaskElement(String tasksummary) {\n LIElement li = new LIElement();\n P...
dart
chosen
[ { "from": "system", "value": "Fix binstub test on windows.\n\nR=nweiz@google.com\n\nReview URL: https://codereview.chromium.org//586843002\n\ngit-svn-id: a962b240025cf0577aa172e20f49ccb159ba6be1@40518 260f80e4-7a28-3924-810f-c04153c831b5\n" }, { "from": "human", "value": "// Copyright (c) 2014, ...
dart
chosen
[ { "from": "system", "value": "Fix comment in Context class\n" }, { "from": "human", "value": "// Copyright (c) 2014, the Liquid 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 that can be found in t...
dart
chosen
[ { "from": "system", "value": "Add temp code for going straight to game." }, { "from": "human", "value": "#library('roguekit');\n\n#import('dart:html', prefix: 'html');\n\n#import('content.dart');\n#import('engine.dart');\n#import('ui.dart');\n#import('util.dart');\n\nmain() {\n final content = ...
dart
chosen
[ { "from": "system", "value": "Remove visibility.all from @Component annotations. This is potentially BREAKING\nchange.\n\nPlease review carefully. Breakage will only be caught if the code is covered by\ntests. Reject this change if you believe it breaks you.\n\nIf the component needs to be injected anywhere...
dart
chosen
[ { "from": "system", "value": "Remove use of deprecated mirror API from code that only runs against dart2js.\n\nR=ahe@google.com, jmesserly@google.com\n\nReview URL: https://codereview.chromium.org//105453004\n\ngit-svn-id: 0aa7e0b98478d6ef7145d04e8154f8ab2209deba@30902 260f80e4-7a28-3924-810f-c04153c831b5\n...
dart
chosen
[ { "from": "system", "value": "Make nativeElement final.\ndoc(ElementRef): cleanup.\n\n-------------\nCreated by MOE: https://github.com/google/moe\nMOE_MIGRATED_REVID=153537946\n" }, { "from": "human", "value": "/// A wrapper around a native element inside of a View.\n///\n/// An `ElementRef` is...
dart
chosen
[ { "from": "system", "value": "Add hello api method with completer and delay\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 {\...
dart
chosen
[ { "from": "system", "value": "Update lookup-name tool to use the dart2js_mapping implementation.\n\nNote: the current implementation broke when we changed the encoding.\nChange-Id: I48d9e5fedad3f3be85fc1e73dd5dd091bb7278b0\nReviewed-on: https://dart-review.googlesource.com/c/84881\nCommit-Queue: Sigmund Che...
dart
chosen
[ { "from": "system", "value": "Add Android SDK to the context\n" }, { "from": "human", "value": "import 'dart:io' as io;\nimport 'package:flutter_tools/src/device.dart';\nimport 'package:flutter_tools/src/doctor.dart';\nimport 'package:flutter_tools/src/base/context.dart';\nimport 'package:flutte...
dart
chosen
[ { "from": "system", "value": "Fix escaping of CSV parts\n" }, { "from": "human", "value": "part of eventsourcing;\n\nQueryHandler csvExtractor(\n QueryHandler sub, String array, String field, List<String> columns) {\n final String columnSeperator = \"\\\\|\";\n final String rowSeperator = \...
dart
chosen
[ { "from": "system", "value": "Add iOS support in device info check.\n" }, { "from": "human", "value": "import 'package:device_info_plus/device_info_plus.dart';\n\nabstract class DeviceInfo {\n /// The end-user-visible name for the device.\n Future<String> get model;\n\n /// A unique identifie...
dart
chosen
[ { "from": "system", "value": "Revert \"Fix misoptimization of 'is' test\"\n\nR=johnniwinther@google.com\nBUG=\n\nThis reverts commits fc693153d1c79e8303abe05697a1d8458b0fef62\nand b7797ac45fe6d58d5dae6c4db3094afb1dfaa4bc, code review at\nhttps://codereview.chromium.org/2904543002. Revert is due to\nan AOT ...
dart
chosen
[ { "from": "system", "value": "Revert placeholder example to use hight fit again\n" }, { "from": "human", "value": "import 'package:flutter/material.dart';\nimport 'package:snapping_sheet/snapping_sheet.dart';\n\nclass PlaceholderSnapSheetExample extends StatelessWidget {\n @override\n Widget b...
dart
chosen