commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
60e0354a42869854d8a38aaa1e2ac2f73666dce7 | tool/generator/lib/src/projection/winrt_property.dart | tool/generator/lib/src/projection/winrt_property.dart | import 'safenames.dart';
import 'utils.dart';
import 'winrt_method.dart';
abstract class WinRTPropertyProjection extends WinRTMethodProjection {
WinRTPropertyProjection(super.method, super.vtableOffset);
/// Strip off all underscores, even if double underscores
String get exposedMethodName =>
method.name.... | import 'safenames.dart';
import 'utils.dart';
import 'winrt_method.dart';
abstract class WinRTPropertyProjection extends WinRTMethodProjection {
WinRTPropertyProjection(super.method, super.vtableOffset);
/// Strip off all underscores, even if double underscores
String get exposedMethodName =>
method.name.... | Call .toCamelCase() after safeIdentifierForString for consistency | Call .toCamelCase() after safeIdentifierForString for consistency
| Dart | bsd-3-clause | timsneath/win32,timsneath/win32,timsneath/win32 |
6f84f2acc88c600a77ce792eea1a4bac08db870a | tests/co19/test_config.dart | tests/co19/test_config.dart | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#library("co19_test_config");
#import("../../tools/testing/dart/test_suite.dart");
class Co19TestSuit... | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#library("co19_test_config");
#import("dart:io");
#import("../../tools/testing/dart/test_suite.dart");... | Allow test.dart to handle the co19 test suite if it is not checked out. | Allow test.dart to handle the co19 test suite if it is not checked out.
BUG=
TEST=tools/test.dart co19
Review URL: https://chromiumcodereview.appspot.com//9315052
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@3843 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/... |
db36973aa9d17bdcfff8d6207523588bd180e434 | sqflite_test_app/lib/main_web.dart | sqflite_test_app/lib/main_web.dart | import 'package:flutter/material.dart';
import 'package:sqflite_example/main.dart' as example;
void main() {
WidgetsFlutterBinding.ensureInitialized();
example.main();
}
| import 'main_ffi.dart' as main_ffi;
void main() {
main_ffi.main();
}
| Use sqflite_common_ffi for web in example app | Use sqflite_common_ffi for web in example app
| Dart | bsd-2-clause | tekartik/sqflite,tekartik/sqflite,tekartik/sqflite,tekartik/sqflite,tekartik/sqflite |
3861d20b9d9c03ee3854993b9748446259ca9704 | widgets/lib/spark_menu_item/spark_menu_item.dart | widgets/lib/spark_menu_item/spark_menu_item.dart | // Copyright (c) 2013, Google Inc. Please see the AUTHORS file for details.
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
library spark_widgets.menu_item;
import 'package:polymer/polymer.dart';
import '../common/spark_widget.dart';
// Po... | // Copyright (c) 2013, Google Inc. Please see the AUTHORS file for details.
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
library spark_widgets.menu_item;
import 'package:polymer/polymer.dart';
import '../common/spark_widget.dart';
// Po... | Fix menu selection not working after dart2js | Fix menu selection not working after dart2js
| Dart | bsd-3-clause | yikaraman/chromedeveditor,b0dh1sattva/chromedeveditor,vivalaralstin/chromedeveditor,yikaraman/chromedeveditor,googlearchive/chromedeveditor,2947721120/chromedeveditor,b0dh1sattva/chromedeveditor,valmzetvn/chromedeveditor,googlearchive/chromedeveditor,hxddh/chromedeveditor,vivalaralstin/chromedeveditor,googlearchive/chr... |
cfc367c3fbff98b7fdfe49e8dfd12122773f2740 | dartbase_server/lib/supervisor/gamesupervisor.dart | dartbase_server/lib/supervisor/gamesupervisor.dart | // Copyright (c) 2015, Brian G. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
/// The dartbase_server library.
part of dartbase_server;
final GameSupervisor _gameSuper = new GameSupervisor._singleton();
class GameSupervisor {
List<Game> _g... | // Copyright (c) 2015, Brian G. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
/// The dartbase_server library.
part of dartbase_server;
final GameSupervisor _gameSuper = new GameSupervisor._singleton();
class GameSupervisor {
List<WebGame>... | Create webgame wrappers and error response | Create webgame wrappers and error response | Dart | mit | Mixolyde/dartbasejeff,Mixolyde/dartbasejeff |
7ccfd3599ca75dcc1730c6dbc90e1522f6dec3d5 | pkg/kernel/lib/transformations/closure_conversion.dart | pkg/kernel/lib/transformations/closure_conversion.dart | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library kernel.transformations.closure_conversion;
import '../ast.dart' show Class, Program, Library;
... | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library kernel.transformations.closure_conversion;
import '../ast.dart' show Program, Library;
import... | Remove one more unused import | Remove one more unused import
R=karlklose@google.com
Review-Url: https://codereview.chromium.org/2943653002 .
| Dart | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,... |
bc90c5d3b1277adc6d8132b921e5827117b6a41b | test/test_projects/flutter_web/broken/lib/main.dart | test/test_projects/flutter_web/broken/lib/main.dart | import 'package:flutter_web/material.dart';
void main() => runApp(new MyBrokenApp());
class MyBrokenApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(primarySwatch: Colors.blue),
home: new MyBroken... | import 'package:flutter_web/material.dart';
void main() => runApp(new MyBrokenApp());
class MyBrokenApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(primarySwatch: Colors.blue),
home: new MyBroken... | Make is easier to find the error in the call stack | Make is easier to find the error in the call stack
| Dart | mit | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code |
dde717489ac862b87eeadec7c24f7ad9a5e7f232 | client/dom/generated/src/interface/TextMetrics.dart | client/dom/generated/src/interface/TextMetrics.dart | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// WARNING: Do not edit - generated code.
interface TextMetrics {
num get width();
}
| // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// WARNING: Do not edit - generated code.
interface TextMetrics {
num get width();
}
| Undo accidental changed in r3337 | Undo accidental changed in r3337
TBR=ager@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//9183004
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@3338 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive... |
fd9211515feeae8a629ff8cd226c4dad7e1d4770 | example/watch.dart | example/watch.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// Watches the given directory and prints each modification to it.
library watch;
import 'dart:io';
... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// Watches the given directory and prints each modification to it.
library watch;
import 'dart:io';
... | Remove uses of Options from pkg, samples, tests, and third_party directories. | Remove uses of Options from pkg, samples, tests, and third_party directories.
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//52573002
git-svn-id: c53bd6455474c0a826d309663cf600546f7b0963@29552 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/watcher |
aacbe6d0ac561cf0253d2057fc279bd355067023 | tests/kernel/unsorted/generic_function_test.dart | tests/kernel/unsorted/generic_function_test.dart | // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Tests of generic functions.
import 'package:expect/expect.dart';
typedef R Foo<R>();
bar<R>(int b... | // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Tests of generic functions.
import 'package:expect/expect.dart';
typedef R Foo<R>();
bar<R>(int b... | Remove the argument from main in a test | Remove the argument from main in a test
Dartium looks for main() with no arguments.
BUG=
R=jensj@google.com, whesse@google.com
Review-Url: https://codereview.chromium.org/2878543006 .
| Dart | bsd-3-clause | dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,d... |
db31fa49d384808249f62172857995ff6a03f3ae | test/all_test.dart | test/all_test.dart | library all_test;
import 'package:euler/euler.dart';
import 'package:unittest/unittest.dart';
void main() {
allProblemsDo((problem, executor) {
test('Problem $problem', () {
expect(executor().exitCode, 0, reason: 'Exit code');
});
}, arguments: ['--checked']);
}
| library all_test;
import 'package:euler/euler.dart';
import 'package:unittest/unittest.dart';
void main() {
allProblemsDo((problem, executor) {
test('Problem $problem', () {
var result = executor();
if (result.exitCode != 0) {
logMessage(result.stderr);
}
expect(executor().exitCo... | Fix the error reporting when running the tests | Fix the error reporting when running the tests
| Dart | mit | renggli/dart-euler |
c62acf0801572559940320035da9bbcca51d8cda | angular_forms/lib/src/directives/normalize_validator.dart | angular_forms/lib/src/directives/normalize_validator.dart | import 'validators.dart' show Validator, ValidatorFn;
ValidatorFn normalizeValidator(dynamic validator) {
if (validator is Validator) {
return (c) => validator.validate(c);
} else {
return validator as ValidatorFn;
}
}
| import 'validators.dart' show Validator, ValidatorFn;
ValidatorFn normalizeValidator(dynamic validator) {
if (validator is Validator) {
return (c) => validator.validate(c);
} else if (validator is Function) {
return validator as ValidatorFn;
} else {
return validator.call as ValidatorFn;
}
}
| Stop relying on Dart 1.0 behavior of callable classes. | Stop relying on Dart 1.0 behavior of callable classes.
Due to an upcoming change in Dart language semantics
(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 expected.
To avoid breaking a lot of code, the ... | Dart | mit | chalin/angular2,angulardart/angular,chalin/angular2,matanlurey/angular,kevmoo/angular,chalin/angular2,matanlurey/angular,kevmoo/angular,kevmoo/angular,angulardart/angular,angulardart/angular,matanlurey/angular |
cb77bd44f66cdf906f5d8a821476ac70fecfb987 | packages/flutter/lib/src/rendering/statistics_box.dart | packages/flutter/lib/src/rendering/statistics_box.dart | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'box.dart';
import 'object.dart';
class StatisticsBox extends RenderBox {
StatisticsBox({int optionsMask: 0, int rasterizerThreshold: 0})
:... | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'box.dart';
import 'object.dart';
class StatisticsBox extends RenderBox {
StatisticsBox({int optionsMask: 0, int rasterizerThreshold: 0})
:... | Remove an infinity in layout code. | Remove an infinity in layout code.
| Dart | bsd-3-clause | tvolkert/flutter,flutter/flutter,Hixie/flutter,jason-simmons/flutter,tvolkert/flutter,cbracken/flutter,tvolkert/flutter,Hixie/flutter,flutter/flutter,Hixie/flutter,cbracken/flutter,flutter/flutter,tvolkert/flutter,jason-simmons/flutter,turnidge/flutter,tvolkert/flutter,Hixie/flutter,aghassemi/flutter,cbracken/flutter,a... |
9f92056ca0af21c1563a380ab1a7bc6487c3d7e3 | lib/core/invocation_mirror.dart | lib/core/invocation_mirror.dart | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* Representation of the invocation of a member on an object.
*
* This is the type of objects pas... | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* Representation of the invocation of a member on an object.
*
* This is the type of objects pas... | Add InvocationMirror interface to the core library. | Add InvocationMirror interface to the core library.
Review URL: https://codereview.chromium.org//11232057
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@13950 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/... |
aa3f7dc4e90c67fb575e806395ba747f49581525 | pkg/analysis_server/lib/src/server/error_notifier.dart | pkg/analysis_server/lib/src/server/error_notifier.dart | import 'package:analysis_server/src/analysis_server_abstract.dart';
import 'package:analyzer/exception/exception.dart';
import 'package:analyzer/instrumentation/instrumentation.dart';
/// An instrumentation service to show instrumentation errors as error
/// notifications to the user.
class ErrorNotifier extends NoopI... | import 'package:analysis_server/src/analysis_server_abstract.dart';
import 'package:analyzer/exception/exception.dart';
import 'package:analyzer/instrumentation/instrumentation.dart';
/// An instrumentation service to show instrumentation errors as error
/// notifications to the user.
class ErrorNotifier extends NoopI... | Fix crash reporting bug, casting exception to a string | [analysis_server] Fix crash reporting bug, casting exception to a string
Brian noticed this running unit tests. Who knows how many bug reports we
have missed from this -- we can only hope it is very few.
```
type '_TypeError' is not a subtype of type 'String'
package:analysis_server/src/server/error_notifier.dart 26... | Dart | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk |
9c72d858aeca1f50c413dd9fc988ee0b9067b3c5 | docs/lib/snippets/migrations/runtime_verification.dart | docs/lib/snippets/migrations/runtime_verification.dart | import 'package:drift/drift.dart';
// #docregion
// import the migrations tooling
import 'package:drift_dev/api/migrations.dart';
// #enddocregion
const kDebugBuild = true;
abstract class _$MyDatabase extends GeneratedDatabase {
_$MyDatabase(QueryExecutor executor) : super(executor);
}
// #docregion
class MyData... | import 'package:drift/drift.dart';
// #docregion
// import the migrations tooling
import 'package:drift_dev/api/migrations.dart';
// #enddocregion
const kDebugMode = true;
abstract class _$MyDatabase extends GeneratedDatabase {
_$MyDatabase(QueryExecutor executor) : super(executor);
}
// #docregion
class MyDatab... | Fix runtime migration verification typo | Fix runtime migration verification typo
| Dart | mit | simolus3/drift,simolus3/drift,simolus3/drift,simolus3/drift,simolus3/drift,simolus3/drift,simolus3/drift |
2e7b0a13f10a03c347cb936354e33564d146b915 | pkg/analyzer/lib/dart/analysis/analysis_context_collection.dart | pkg/analyzer/lib/dart/analysis/analysis_context_collection.dart | // Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:analyzer/dart/analysis/analysis_context.dart';
import 'package:analyzer/file_system/file... | // Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:analyzer/dart/analysis/analysis_context.dart';
import 'package:analyzer/file_system/file... | Add support for accessing all of the created contexts | Add support for accessing all of the created contexts
Change-Id: I84284726dea1b12f8403456cbdb0a9a967624e0d
Reviewed-on: https://dart-review.googlesource.com/67380
Reviewed-by: Konstantin Shcheglov <09e4d7516628963212bf4aace2f97603d2b706e4@google.com>
Commit-Queue: Brian Wilkerson <1f7641b6b14c52b9163524ab8d9aabff80176... | Dart | bsd-3-clause | dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-ar... |
3b5a149df7ad17df7b0835dbb3ca5f669ade1464 | pkg/analysis_server/lib/src/server/lsp_stdio_server.dart | pkg/analysis_server/lib/src/server/lsp_stdio_server.dart | // Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
import 'dart:io';
import 'package:analysis_server/src/lsp/channel/lsp_byte_stream_... | // Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
import 'dart:io';
import 'package:analysis_server/src/lsp/channel/lsp_byte_stream_... | Use nonBlocking stdio for LSP | Use nonBlocking stdio for LSP
Change-Id: I20f7ed183d08b7fc778b4cb643eff6f82c9f3f48
Reviewed-on: https://dart-review.googlesource.com/c/90001
Reviewed-by: Brian Wilkerson <1f7641b6b14c52b9163524ab8d9aabff80176f21@google.com>
Commit-Queue: Danny Tuppeny <596a1fc21c51678cfafc48cd1efd53705f8b4f1d@google.com>
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk... |
79605c54f502ebc41734f1d2ab94f7d8e90284f5 | dartbase_console_client/test/dartbase_console_client_test.dart | dartbase_console_client/test/dartbase_console_client_test.dart | // Copyright (c) 2015, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
library dartbase_console_client.test;
import 'package:dartbase_console_client/dartbase_console_client.dart';
import 'package:unittest/unittest.dart';
import 'p... | // Copyright (c) 2015, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
library dartbase_console_client.test;
import 'package:dartbase_console_client/dartbase_console_client.dart';
import 'package:unittest/unittest.dart';
import 'p... | Fix game state getter name | Fix game state getter name | Dart | mit | Mixolyde/dartbasejeff,Mixolyde/dartbasejeff |
3e27d27fc4e845c7a19c7fcc7eacbec0fa4013d2 | _tests/test/regression/1227_root_legacy_override_test.dart | _tests/test/regression/1227_root_legacy_override_test.dart | @TestOn('browser')
import 'package:angular/angular.dart';
import 'package:angular/experimental.dart';
import 'package:test/test.dart';
void main() {
// This is relied on by internal clients until we introduce a sharding API.
test('rootLegacyInjector should allow overriding ExceptionHandler', () {
final appInje... | @TestOn('browser')
import 'package:angular/angular.dart';
import 'package:angular/experimental.dart';
import 'package:test/test.dart';
void main() {
// This is relied on by internal clients until we introduce a sharding API.
test('rootLegacyInjector should allow overriding ExceptionHandler', () {
final appInje... | Add a test that rootLegacyInjector supports SlowComponentLoader. | test(Core): Add a test that rootLegacyInjector supports SlowComponentLoader.
PiperOrigin-RevId: 192625887
| Dart | mit | matanlurey/angular,chalin/angular2,angulardart/angular,matanlurey/angular,angulardart/angular,chalin/angular2,angulardart/angular,matanlurey/angular,chalin/angular2 |
2175c2e04c0bd7f2315747b70777fef0646b83af | angular_components/lib/material_menu/common/menu_root.dart | angular_components/lib/material_menu/common/menu_root.dart | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:angular/angular.dart';
import 'package:angular_components/mixins/material_dropdown_base... | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:angular/angular.dart';
import 'package:angular_components/mixins/material_dropdown_base... | Use nullable access to the dropdown, as it is passed optionally in menu-root. | Use nullable access to the dropdown, as it is passed optionally in menu-root.
PiperOrigin-RevId: 256203326
| Dart | bsd-3-clause | angulardart/angular_components,angulardart/angular_components,angulardart/angular_components |
0ea8aa9d2836755ad33e9539b05f3b6df71f481d | lib/features/activity/data/repositories/activity_repository_impl.dart | lib/features/activity/data/repositories/activity_repository_impl.dart | import 'dart:async';
import 'dart:io';
import 'package:dartz/dartz.dart';
import 'package:meta/meta.dart';
import '../../../../core/error/exception.dart';
import '../../../../core/error/failure.dart';
import '../../../../core/network/network_info.dart';
import '../../domain/repositories/activity_repository.dart';
imp... | import 'dart:async';
import 'dart:io';
import 'package:dartz/dartz.dart';
import 'package:meta/meta.dart';
import '../../../../core/error/exception.dart';
import '../../../../core/error/failure.dart';
import '../../../../core/network/network_info.dart';
import '../../domain/repositories/activity_repository.dart';
imp... | Update exception catch to JsonDecodeException. | Update exception catch to JsonDecodeException.
| Dart | mit | wcomartin/PlexPy-Remote |
58488308c75d92475b08cba6e05cf20ae0a020b4 | lib/src/model/selection/radio_group_single_selection_model.dart | lib/src/model/selection/radio_group_single_selection_model.dart | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:angular_components/model/selection/selection_model.dart';
import 'delegating_selection... | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:angular_components/model/selection/selection_model.dart';
import 'delegating_selection... | Use SelectionModel.single(), SelectionModel.multi() etc. instead of deprecated SelectionModel.withList() Use SelectionModel.empty() instead of deprecated SelectionModel() | Use SelectionModel.single(), SelectionModel.multi() etc. instead of deprecated SelectionModel.withList()
Use SelectionModel.empty() instead of deprecated SelectionModel()
PiperOrigin-RevId: 200344866
| Dart | bsd-3-clause | angulardart/angular_components,angulardart/angular_components,angulardart/angular_components |
2eb44dab08b2380e86133b6b436d294fcfa25945 | example/part1/scenario1.04-around-tree-with-method/my_player.dart | example/part1/scenario1.04-around-tree-with-method/my_player.dart | import 'package:hello_dart/hello_dart.dart';
/// Your player.
class MyPlayer extends Player {
/// Your program.
start() {
}
}
main() {
createWorld('scenario.txt', new MyPlayer());
}
| import 'package:hello_dart/hello_dart.dart';
/// Your player.
class MyPlayer extends Player {
/// Your program.
start() {
move();
goAroundTree();
}
goAroundTree() {
}
}
main() {
createWorld('scenario.txt', new MyPlayer());
}
| Add some help to write the first function | Add some help to write the first function
| Dart | mit | marcojakob/hello-dart,marcojakob/hello-dart |
f28699f50a1307c3f03756bfc2d8442baff6132b | sdk/lib/_internal/pub/test/global/binstubs/missing_script_test.dart | sdk/lib/_internal/pub/test/global/binstubs/missing_script_test.dart | // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:scheduled_test/scheduled_stream.dart';
import '../../../lib/src/exit_codes.dart' as ex... | // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:path/path.dart' as p;
import '../../descriptor.dart' as d;
import '../../test_pub.dart... | Fix binstub test on windows. | Fix binstub test on windows.
R=nweiz@google.com
Review URL: https://codereview.chromium.org//586843002
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@40518 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-s... |
5be73cd166da1658a60a80fdb017544746345be0 | pkg/front_end/lib/src/fasta/builder/function_type_builder.dart | pkg/front_end/lib/src/fasta/builder/function_type_builder.dart | // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library fasta.function_type_builder;
import 'builder.dart' show LibraryBuilder, TypeBuilder, TypeVaria... | // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library fasta.function_type_builder;
import 'builder.dart' show LibraryBuilder, TypeBuilder, TypeVaria... | Make debug printing of function types more robust. | Make debug printing of function types more robust.
Sometimes when printing stack states in the outline builder,
a formal in a function type is a FormalParameterBuilder,
and sometimes a formal or the return type is null.
Change-Id: I2bed0baae2a80e894e170a85744e382e763c8944
Reviewed-on: https://dart-review.googlesource... | Dart | bsd-3-clause | dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-s... |
47b7f1fe38a77072607ed48f396218815ff4b6e9 | client/web/model/repairdock.dart | client/web/model/repairdock.dart | part of kcaa_model;
class RepairSlot extends Observable {
@observable int id;
@observable Ship ship;
@observable DateTime eta;
@observable String etaDatetimeString;
RepairSlot();
void update(Map<String, dynamic> data, Map<int, Ship> shipMap) {
id = data["id"];
if (data["ship_id"] != 0) {
sh... | part of kcaa_model;
class RepairSlot extends Observable {
@observable int id;
@observable Ship ship;
@observable DateTime eta;
@observable String etaDatetimeString;
RepairSlot();
void update(Map<String, dynamic> data, Map<int, Ship> shipMap) {
id = data["id"];
if (data["ship_id"] != 0) {
sh... | Clear a repair slot when completed. | Clear a repair slot when completed.
| Dart | apache-2.0 | kcaa/kcaa,kcaa/kcaa,kcaa/kcaa,kcaa/kcaa |
92e7e4935c4f491986e90c1f03a3afc71bc509fd | packages/playfair/lib/playfair.dart | packages/playfair/lib/playfair.dart | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library playfair;
import 'dart:sky' as sky;
import 'dart:math' as math;
import 'package:sky/rendering.dart';
import 'package:sky/theme/typography.dart';... | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library playfair;
import 'dart:sky' as sky;
import 'dart:math' as math;
import 'package:sky/material.dart';
import 'package:sky/rendering.dart';
import ... | Update imports after material.dart rename | Update imports after material.dart rename
| Dart | bsd-3-clause | cbracken/flutter,tvolkert/flutter,turnidge/flutter,flutter/flutter,Hixie/flutter,cbracken/flutter,cbracken/flutter,tvolkert/flutter,tvolkert/flutter,flutter/flutter,turnidge/flutter,tvolkert/flutter,cbracken/flutter,tvolkert/flutter,turnidge/flutter,tvolkert/flutter,aghassemi/flutter,cbracken/flutter,Hixie/flutter,flut... |
b06184f7f40d0a74235d220e74f3da0e0f626ad7 | lib/src/slugify.dart | lib/src/slugify.dart | import 'package:slugify/src/replacements.dart';
const dupeSpacePattern = r'\s{2,}';
const punctuationPattern = r'[^\w\s-]';
Slugify(String text, {String delimiter = '-', bool lowercase = true}) {
// Trim leading and trailing whitespace
String slug = text.trim();
// Make the text lowercase (optional)
if (lowe... | import 'package:slugify/src/replacements.dart';
final _dupeSpaceRegExp = RegExp(r'\s{2,}');
final _punctuationRegExp = RegExp(r'[^\w\s-]');
/// Converts [text] to a slugified [String] separated by the [delimiter].
Slugify(String text, {String delimiter = '-', bool lowercase = true}) {
// Trim leading and trailing w... | Convert RegExp to final vars | Convert RegExp to final vars
| Dart | mit | izolate/slugify |
18ae0e92e089525eeb8774c866d9eae6251baa2e | lib/fuzzyhedges.dart | lib/fuzzyhedges.dart | /**
* By importing this library, you get the two most important fuzzy logic hedges:
* [very] and [fairly].
*
* This means you can do:
*
* (fairly(joke.funny) & very(situation.tense)) >> (laughter.loud)
*/
library fuzzyhedges;
import 'fuzzylogic.dart';
import 'dart:math';
class _FuzzyHedge extends FuzzyTe... | /**
* By importing this library, you get the two most important fuzzy logic hedges:
* [very] and [fairly].
*
* This means you can do:
*
* (fairly(joke.funny) & very(situation.tense)) >> (laughter.loud)
*/
library fuzzyhedges;
import 'fuzzylogic.dart';
import 'dart:math';
class _FuzzyHedge extends FuzzyTe... | Rename getDegreeOfMembership to getDegreeOfMembershipWithInputs even in FuzzyHedges | Rename getDegreeOfMembership to getDegreeOfMembershipWithInputs even in FuzzyHedges
| Dart | bsd-3-clause | filiph/fuzzylogic |
b5deb51332cd10a0166001bbddafcdb87fea9827 | test/list_tasks_test.dart | test/list_tasks_test.dart |
import 'package:ddays/list_tasks.dart';
import 'package:test/test.dart';
import 'dart:html';
void main() {
test('sinlgeTaskElement returns a LIElement with correct p children', () {
LIElement st = singleTaskElement('task1');
expect(st.children[0].text, 'task1');
expect(st.classes.contains('singletask'),true);... |
import 'package:ddays/list_tasks.dart';
import 'package:test/test.dart';
import 'dart:html';
void main() {
test('sinlgeTaskElement returns a LIElement with correct p children', () {
LIElement st = singleTaskElement('task1');
expect(st.children[0].text, 'task1');
expect(st.classes.contains('singletask'),true);... | Add tests for insertTask function | Add tests for insertTask function
| Dart | bsd-3-clause | mswift42/ddays,mswift42/ddays |
ad4bbcb028cd6b162c8d1325d1a490f1f9e45160 | packages/firebase_snippets_app/lib/widgets/user_info_streambuilder.dart | packages/firebase_snippets_app/lib/widgets/user_info_streambuilder.dart | import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
// [START listen_to_realtime_updates_listen_for_updates2]
class UserInformation extends StatefulWidget {
@override
_UserInformationState createState() => _UserInformationState();
}
class _UserInformationState extends St... | import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
// [START listen_to_realtime_updates_listen_for_updates2]
class UserInformation extends StatefulWidget {
@override
_UserInformationState createState() => _UserInformationState();
}
class _UserInformationState extends St... | Fix typo in region tag | Fix typo in region tag | Dart | apache-2.0 | firebase/snippets-flutter,firebase/snippets-flutter |
0b1b78d502a10619280610f3b777aad463865e52 | lib/core/widgets/poster_card.dart | lib/core/widgets/poster_card.dart | import 'dart:ui';
import 'package:flutter/material.dart';
import 'poster_chooser.dart';
class PosterCard extends StatelessWidget {
final dynamic item;
final Widget details;
const PosterCard({
Key key,
@required this.item,
@required this.details,
}) : super(key: key);
@override
Widget build(... | import 'dart:ui';
import 'package:flutter/material.dart';
import 'poster_chooser.dart';
class PosterCard extends StatelessWidget {
final dynamic item;
final Widget details;
final Key heroTag;
const PosterCard({
Key key,
@required this.item,
@required this.details,
this.heroTag,
}) : super(... | Add Hero widget support to PosterCard. | Add Hero widget support to PosterCard.
| Dart | mit | wcomartin/PlexPy-Remote |
1976946570b8297ec5335d16d36d959cf7262656 | test/transformer/fails_to_load_a_transform_with_an_import_error_test.dart | test/transformer/fails_to_load_a_transform_with_an_import_error_test.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library pub_tests;
import 'package:scheduled_test/scheduled_test.dart';
import '../descriptor.dart'... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library pub_tests;
import 'package:scheduled_test/scheduled_test.dart';
import '../descriptor.dart'... | Fix another transformer load error test. | Fix another transformer load error test.
R=rnystrom@google.com
TBR
Review URL: https://codereview.chromium.org//302433002
git-svn-id: a962b240025cf0577aa172e20f49ccb159ba6be1@36604 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | cjkao/dart-pub,maxwellpeterson-wf/pub,dart-lang/pub,computmaxer/pub,dart-lang/pub |
bba921fb274bdd9376a01a6b262e3d9d1faf3293 | sdk/lib/_internal/pub/test/transformer/fails_to_load_a_transform_with_a_syntax_error_test.dart | sdk/lib/_internal/pub/test/transformer/fails_to_load_a_transform_with_a_syntax_error_test.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library pub_tests;
import 'package:scheduled_test/scheduled_stream.dart';
import 'package:scheduled_... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library pub_tests;
import 'package:scheduled_test/scheduled_stream.dart';
import 'package:scheduled_... | Fix test for analyzer error message. | Fix test for analyzer error message.
BUG=
R=nweiz@google.com
Review URL: https://codereview.chromium.org//192753005
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@33507 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dar... |
10e3e333f0d776b964ac0a727779fc07b48aaa82 | test/transformer/catch_asset_not_found.dart | test/transformer/catch_asset_not_found.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library barback.test.transformer.bad;
import 'dart:async';
import 'package:barback/barback.dart';
imp... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library barback.test.transformer.catch_asset_not_found;
import 'dart:async';
import 'package:barback/... | Fix an analyzer warning in barback. | Fix an analyzer warning in barback.
R=rnystrom@google.com
BUG=
Review URL: https://codereview.chromium.org//196573013
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@33678 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/barback,Aetet/barback,dart-lang/barback,dart-archive/barback,dart-archive/barback,Aetet/barback |
0fde98290e89db20f0421e90965be23edd30bc95 | pkg/front_end/testcases/nnbd/issue44595.dart | pkg/front_end/testcases/nnbd/issue44595.dart | // Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "dart:async";
T id<T>(T value) => value;
main() async {
FutureOr<int> x = 1 + id(1); // Shoul... | // Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "dart:async";
T id<T>(T value) => value;
main() async {
FutureOr<int> x = 1 + id(1);
Futur... | Remove misleading comment from test | [cfe] Remove misleading comment from test
Change-Id: I97392718faf380d1431e76e808bbe775e25e3d4e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/177860
Reviewed-by: Dmitry Stefantsov <95a4b7e39916a54bd6477bec6a6de014b977db32@google.com>
Commit-Queue: Johnni Winther <0f64ef784d57ffb064b634040f9eeba0d33d0be4@goo... | Dart | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk |
f4a47e700839deba1344cec57e518449b857e0b5 | sintr_common/lib/logging_utils.dart | sintr_common/lib/logging_utils.dart | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:logging/logging.dart' as logging;
logging.Logger _logger = new logging.Logger("sintr_c... | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:logging/logging.dart' as logging;
logging.Logger _logger = new logging.Logger("sintr_c... | Increase logging level on worker nodes | Increase logging level on worker nodes
| Dart | apache-2.0 | lukechurch/sintr,lukechurch/sintr |
9a52cc0358c8716af1e52d8cb61e31b94e3d6e51 | bin/server.dart | bin/server.dart | import 'package:endpoints/endpoints.dart';
import 'package:appengine/appengine.dart';
import 'package:shelf/shelf.dart';
import 'package:shelf_appengine/shelf_appengine.dart' as shelf_ae;
import 'tictactoe_api.dart';
_handler(Request request) {
var headers = {'Content-Type' : 'text/plain'};
if (request.url.toStri... | import 'package:endpoints/endpoints.dart';
import 'package:appengine/appengine.dart';
import 'tictactoe_api.dart';
import 'dart:io';
ApiServer api_server;
_handler(HttpRequest request) {
if (request.uri.path.startsWith('/_ah/spi/')) {
api_server.handleRequest(request);
return;
}
if (request.uri.path ==... | Use normal request handler instead of shelf | Use normal request handler instead of shelf
| Dart | apache-2.0 | Scarygami/appengine-vm-endpoints-tictactoe-dart,Scarygami/appengine-vm-endpoints-tictactoe-dart |
6a36c0f36e6d713c808651954521a5b881a62104 | tests/standalone/io/process_stdin_transform_unsubscribe_test.dart | tests/standalone/io/process_stdin_transform_unsubscribe_test.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
// Process test program to test process communication.
//
// VMOptions=
// VMOptions=--short_socket_r... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
// Process test program to test process communication.
//
// VMOptions=
// VMOptions=--short_socket_r... | Add call to flush() to avoid flakiness | Add call to flush() to avoid flakiness
Related to #28558.
R=zra@google.com
Review-Url: https://codereview.chromium.org/2688243003 .
| Dart | bsd-3-clause | dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino... |
a35a676f394c30004cb846affd970268ef642d13 | pkg/dev_compiler/test/string_to_uri_test.dart | pkg/dev_compiler/test/string_to_uri_test.dart | import 'dart:io';
import 'package:expect/minitest.dart';
import 'package:dev_compiler/src/kernel/command.dart';
main(List<String> args) {
// Various URL schemes
expect(stringToUri("dart:io").toString(), "dart:io");
expect(stringToUri("package:expect/minitest.dart").toString(),
"package:expect/minitest.dart... | import 'dart:io';
import 'package:expect/minitest.dart';
import 'package:dev_compiler/src/kernel/command.dart';
main(List<String> args) {
// Various URL schemes
expect(stringToUri("dart:io").toString(), "dart:io");
expect(stringToUri("package:expect/minitest.dart").toString(),
"package:expect/minitest.dart... | Revert "Fixup DDC test on Windows" | Revert "Fixup DDC test on Windows"
This reverts commit 70020cd30d9c8d4b42c42b702df2cf2bf6a77d18.
Reason for revert: Didn't quite work.
Original change's description:
> Fixup DDC test on Windows
>
> Directory.current.path on Windows uses "\" and not "/".
>
> Bug:
> Change-Id: I6ef789d586622f78d0401c1a892f6a475bf6d9... | Dart | bsd-3-clause | dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk... |
16af9e4391482067126994cd016b8db507175056 | bin/demo_server.dart | bin/demo_server.dart | import 'dart:async';
import 'dart:io';
import 'dart:math';
import 'package:json_rpc_2/json_rpc_2.dart';
import 'package:dart_language_server/dart_language_server.dart';
final random = new Random();
Future main() async {
var log = new File('/tmp/wirelog.txt').openWrite();
var channel = new StdIOStreamChannel();
... | import 'dart:async';
import 'dart:io';
import 'dart:math';
import 'package:json_rpc_2/json_rpc_2.dart';
import 'package:dart_language_server/dart_language_server.dart';
final random = new Random();
Future main() async {
var log = new File('/tmp/wirelog.txt').openWrite();
var channel = new StdIOStreamChannel();
... | Add `shutdown` and `exit` method handlers | Add `shutdown` and `exit` method handlers
This matches the language server protocol. Shutdown does not need to do
any useful cleanup. Correctly sets the exit code against the protocol
spec based on whether shutdown was called.
| Dart | bsd-3-clause | natebosch/dart_language_server |
8ecb231e80fbdcb6a1203dd7512f25508efbe26f | tests/standalone/src/ProcessTestUtil.dart | tests/standalone/src/ProcessTestUtil.dart | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
String getPlatformOutDir() {
var os = new Platform().operatingSystem();
if (os == 'linux') return '... | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
String getPlatformOutDir() {
var os = new Platform().operatingSystem();
if (os == 'linux') return '... | Fix running process tests on Windows | Fix running process tests on Windows
TBR=ager@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8679008
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@1799 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-ar... |
6878c48151b81814d4b1724039ca561be70939f1 | example/flutter_example/lib/main.dart | example/flutter_example/lib/main.dart | import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:toml/toml.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
primarySwatch: Colors.blu... | import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:toml/toml.dart';
void main() {
runApp(MyApp());
}
/// The main widget of the example application.
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
the... | Fix lints of Flutter example | Fix lints of Flutter example
| Dart | mit | just95/toml.dart,just95/toml.dart |
80dec9493fa8caa2d26c230a23ae7e8eb7cb3bb6 | sdk/lib/_internal/js_runtime/lib/developer_patch.dart | sdk/lib/_internal/js_runtime/lib/developer_patch.dart | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Patch file for dart:developer library.
import 'dart:_js_helper' show patch, ForceInline;
import 'da... | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Patch file for dart:developer library.
import 'dart:_js_helper' show patch, ForceInline;
import 'da... | Add missing patch methods to dart2js implementation of timeline | Add missing patch methods to dart2js implementation of timeline
BUG=
Review URL: https://codereview.chromium.org/1400893002 .
| Dart | bsd-3-clause | dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-la... |
1a66b0090c40baf809ce2e6f0f05daba08c61152 | reverse.dart | reverse.dart | import "package:polymorphic_bot/plugin.dart";
export "package:polymorphic_bot/plugin.dart";
@Command("reverse", allowVariables: true)
reverse(CommandEvent event) =>
event.transform((input) => new String.fromCharCodes(input.codeUnits.reversed));
| import "package:polymorphic_bot/plugin.dart";
export "package:polymorphic_bot/plugin.dart";
@Command("reverse", allowVariables: true)
reverse(CommandEvent event) =>
event.transform((input) => flip(input));
| Use Quiver for Reversing Strings | Use Quiver for Reversing Strings | Dart | mit | PolymorphicBot/scripts |
65aaac5b931f9df676e936a62c4d777556319601 | lib/task.dart | lib/task.dart |
library task;
class TaskNote {
String notebody;
TaskNote(this.notebody);
}
class Task {
String summary;
List<TaskNote> tasknotes = [];
DateTime scheduled;
Set<String> taskcategories = new Set();
Task(this.summary, this.scheduled);
void addNote(TaskNote note) {
tasknotes.add(note);
}
voi... |
library task;
class TaskNote {
String notebody;
TaskNote(this.notebody);
}
class Task {
String summary;
List<TaskNote> tasknotes = [];
DateTime scheduled;
int timestamp;
Set<String> taskcategories = new Set();
Task(this.summary, this.scheduled) {
this.timestamp = new DateTime.now().millisecond;... | Add timestamp to Task class. | Add timestamp to Task class.
| Dart | bsd-3-clause | mswift42/ddays,mswift42/ddays |
9a1f783007e2650640bc0eb52d9fbe14613833a5 | pkg/analysis_server/bin/server.dart | pkg/analysis_server/bin/server.dart | // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:analysis_server/starter.dart';
/**
* Create and run an analysis server.
*/
void main... | // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:analysis_server/starter.dart';
/**
* Create and run an analysis server.
*/
void main... | Normalize with the internal verison of this file. | Normalize with the internal verison of this file.
Change-Id: I27d56a0f61bb68bfe9f0386dc7b140cdebba4522
Reviewed-on: https://dart-review.googlesource.com/72542
Reviewed-by: Brian Wilkerson <1f7641b6b14c52b9163524ab8d9aabff80176f21@google.com>
Commit-Queue: Devon Carew <e996497f4f2225f0ee7a9f4d1696ee710b488b66@google.co... | Dart | bsd-3-clause | dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-... |
9ffc5b684e6456f9f224a0d010750934ffbbe7ec | lib/src/node_dsl.dart | lib/src/node_dsl.dart | part of tmx;
class NodeDSL {
XmlElement element;
NodeDSL(this.element);
static NodeDSL on(XmlElement element, Function fxn) {
var node = new NodeDSL(element);
fxn(node);
}
String strOr(String attrName, String defaultValue) {
return _safely(attrName, defaultValue, (val) => val);
}
int intO... | part of tmx;
class NodeDSL {
XmlElement element;
NodeDSL(this.element);
static NodeDSL on(XmlElement element, Function fxn) {
var node = new NodeDSL(element);
fxn(node);
return node;
}
String strOr(String attrName, String defaultValue) {
return _safely(attrName, defaultValue, (val) => val)... | Return a NodeDSL object from NodeDSL.on | Return a NodeDSL object from NodeDSL.on
| Dart | mit | radicaled/tmx.dart |
fb2338c791b003c60431f3290612dd09384a0dc8 | ide/app/lib/services/services_isolate.dart | ide/app/lib/services/services_isolate.dart | // Copyright (c) 2014, Google Inc. Please see the AUTHORS file for details.
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
library spark.services;
import 'dart:isolate';
import 'services.dart';
void main(List<String> args, SendPort sendPor... | // Copyright (c) 2014, Google Inc. Please see the AUTHORS file for details.
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
library spark.services;
import 'dart:isolate';
import 'services.dart';
void main(List<String> args, SendPort sendPor... | Revert "This statement crashes the isolate." | Revert "This statement crashes the isolate."
This reverts commit 7cd8fdf8cb710042ff2e816db53da0c6c94cfc42.
| Dart | bsd-3-clause | vivalaralstin/chromedeveditor,2947721120/chromedeveditor,modulexcite/chromedeveditor,yikaraman/chromedeveditor,beaufortfrancois/chromedeveditor,b0dh1sattva/chromedeveditor,modulexcite/chromedeveditor,2947721120/choredev,hxddh/chromedeveditor,googlearchive/chromedeveditor,vivalaralstin/chromedeveditor,devoncarew/spark,u... |
24be1583830e0558657adc50568d458dda384616 | lib/core/widgets/double_tap_to_exit.dart | lib/core/widgets/double_tap_to_exit.dart | import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:fluttertoast/fluttertoast.dart';
import '../../features/settings/presentation/bloc/settings_bloc.dart';
class DoubleTapToExit extends StatelessWidget {
final Widget child;
const DoubleTapToExit({
Key? key... | import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:fluttertoast/fluttertoast.dart';
import '../../features/settings/presentation/bloc/settings_bloc.dart';
class DoubleTapToExit extends StatelessWidget {
final Widget child;
const DoubleTapToExit({
Key? key... | Reduce the length of the toast message. | Reduce the length of the toast message.
| Dart | mit | wcomartin/PlexPy-Remote |
c3035f083faa681f76ec6759e9ddb3987eed5ac5 | lib/src/common.dart | lib/src/common.dart | library common;
import 'dart:io';
final String BUILD_URL = '/build';
final String CLOSE_URL = '/close';
final String STATUS_URL = '/status';
final String BUILDLOG_FILE = '.buildlog';
final String BUILDLOCK_FILE = '.buildlock';
final String BUILD_DIR = 'build_out';
final String OUT_DIR = 'out';
final String SOURCE_PRE... | library common;
import 'dart:io';
final String BUILD_URL = '/build';
final String CLOSE_URL = '/close';
final String STATUS_URL = '/status';
final String BUILDLOG_FILE = '.buildlog';
final String BUILDLOCK_FILE = '.buildlock';
final String BUILD_DIR = 'build_out';
final String OUT_DIR = 'out';
final String SOURCE_PRE... | Add .git to excluded dirs | Add .git to excluded dirs
| Dart | bsd-3-clause | justinfagnani/buildtool |
10ed38fa3b7865cbd46372fef6a08758eaad2af9 | pkg/compiler/lib/src/inferrer/abstract_value_strategy.dart | pkg/compiler/lib/src/inferrer/abstract_value_strategy.dart | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart = 2.10
import '../universe/world_builder.dart' show SelectorConstraintsStrategy;
import '../w... | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import '../universe/world_builder.dart' show SelectorConstraintsStrategy;
import '../world_interfaces.d... | Migrate abstract value strategy to null safety | [dart2js] Migrate abstract value strategy to null safety
Change-Id: Iae8a77663b3e87f7d05f7faa0c85bb8cf3bdfc9f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253003
Reviewed-by: Mayank Patke <e0355b78204b67a55a952941c68c8f1b40235938@google.com>
Commit-Queue: Sigmund Cherem <beaea8fd7d2a56555046ba4f362c8a93e3... | Dart | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk |
eba70736f1b8e7530689106430d431a407a9657a | modules/playground/src/web_workers/todo/server_index.dart | modules/playground/src/web_workers/todo/server_index.dart | library angular2.examples.web_workers.todo.server_index;
import "index_common.dart" show TodoApp;
import "package:angular2/src/web_workers/debug_tools/multi_client_server_message_bus.dart";
import "package:angular2/src/web_workers/worker/application_common.dart"
show bootstrapWebWorkerCommon;
import 'dart:io';
import... | library angular2.examples.web_workers.todo.server_index;
import "index_common.dart" show TodoApp;
import "package:angular2/src/web_workers/debug_tools/multi_client_server_message_bus.dart";
import "package:angular2/src/web_workers/worker/application_common.dart"
show bootstrapWebWorkerCommon;
import 'dart:io';
import... | Fix bug causing multi browser demo to crash | fix(WebWorker): Fix bug causing multi browser demo to crash
Closes #4839
| Dart | mit | ValtoFrameworks/Angular-2,jesperronn/angular,templth/angular,laskoviymishka/angular,hansl/angular,angularbrasil/angular,aboveyou00/angular,naomiblack/angular,alxhub/angular,martinmcwhorter/angular,filipesilva/angular,LucasSloan/angular,gilamran/angular,mgol/angular,manekinekko/angular,AlmogShaul/angular,mgol/angular,cy... |
f396c2b6c9aa5c04ce09d7d5604c12e06da2c765 | drift/lib/src/runtime/api/runtime_api.dart | drift/lib/src/runtime/api/runtime_api.dart | import 'dart:async';
import 'package:drift/drift.dart';
import 'package:drift/src/runtime/executor/delayed_stream_queries.dart';
import 'package:drift/src/runtime/executor/stream_queries.dart';
import 'package:drift/src/runtime/executor/transactions.dart';
import 'package:meta/meta.dart';
part 'batch.dart';
part 'con... | import 'dart:async';
import 'package:drift/drift.dart';
import 'package:drift/src/runtime/executor/delayed_stream_queries.dart';
import 'package:drift/src/runtime/executor/stream_queries.dart';
import 'package:drift/src/runtime/executor/transactions.dart';
import 'package:meta/meta.dart';
part 'batch.dart';
part 'con... | Split debugPrint messages into 300 character chunks | Split debugPrint messages into 300 character chunks
| Dart | mit | simolus3/drift,simolus3/drift,simolus3/drift,simolus3/drift,simolus3/drift,simolus3/drift,simolus3/drift |
57af0660d0164d7f2e155fe575ed4fe36baff5d8 | lib/material_tab/tab_button.dart | lib/material_tab/tab_button.dart | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:html';
import 'package:angular/angular.dart';
import 'package:angular_components/material... | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:html';
import 'package:angular/angular.dart';
import 'package:angular_components/material... | Support disabled attribute in tab button | Support disabled attribute in tab button
PiperOrigin-RevId: 202175148
| Dart | bsd-3-clause | angulardart/angular_components,angulardart/angular_components,angulardart/angular_components |
9ecc2d6edaee92cc1a9aea1188764f021c141144 | lib/features/image_url/data/datasources/image_url_data_source.dart | lib/features/image_url/data/datasources/image_url_data_source.dart | import 'package:meta/meta.dart';
import '../../../../core/api/tautulli_api/tautulli_api.dart' as tautulli_api;
import '../../../settings/presentation/bloc/settings_bloc.dart';
abstract class ImageUrlDataSource {
Future<String> getImage({
@required String tautulliId,
String img,
int ratingKey,
int wi... | import 'package:meta/meta.dart';
import '../../../../core/api/tautulli_api/tautulli_api.dart' as tautulli_api;
import '../../../settings/presentation/bloc/settings_bloc.dart';
abstract class ImageUrlDataSource {
Future<String> getImage({
@required String tautulliId,
String img,
int ratingKey,
int wi... | Change default GetImageUrl height & width. | Change default GetImageUrl height & width.
Fixes poster change in Tautulli not being reflected in Tautulli Remote.
| Dart | mit | wcomartin/PlexPy-Remote |
28a43627a23e4ad9da844990364bcd5dbbc95e71 | examples/raw/spinning_square.dart | examples/raw/spinning_square.dart | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:sky';
double timeBase = null;
void beginFrame(double timeStamp) {
if (timeBase == null)
timeBase = timeStamp;
double delta = timeSt... | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:sky';
double timeBase = null;
void beginFrame(double timeStamp) {
tracing.begin('beginFrame');
if (timeBase == null)
timeBase = tim... | Make tracing work in the new .dart world. | Make tracing work in the new .dart world.
R=abarth@chromium.org, viktorl@google.com
Review URL: https://codereview.chromium.org/1152483006
| Dart | bsd-3-clause | cbracken/flutter,flutter/flutter,cbracken/flutter,Hixie/flutter,Hixie/flutter,Hixie/flutter,jason-simmons/flutter,aghassemi/flutter,cbracken/flutter,flutter/flutter,flutter/flutter,cbracken/flutter,flutter/flutter,tvolkert/flutter,aghassemi/flutter,flutter/flutter,flutter/flutter,jason-simmons/flutter,tvolkert/flutter,... |
1b909bb0f198ddae8b764acc47972e452663834c | lib/new_task.dart | lib/new_task.dart | library new_task;
import 'dart:html';
import 'package:ddays/task.dart' show Task;
import 'package:ddays/storageservice.dart' show saveToStorage, STORAGE_KEY;
void saveTask(Event e) {
e.preventDefault();
InputElement summary = querySelector('[name="tsummary"]');
Task task = new Task(summary.value.trim());
... | library new_task;
import 'dart:html';
import 'package:ddays/task.dart' show Task;
import 'package:ddays/storageservice.dart' show saveToStorage, STORAGE_KEY;
import 'package:ddays/list_tasks.dart' show displayTasks;
void saveTask(Event e) {
e.preventDefault();
InputElement summary = querySelector('[name="tsummar... | Refresh task list view when new task is submitted | Refresh task list view when new task is submitted
| Dart | bsd-3-clause | mswift42/ddays,mswift42/ddays |
e991bac5a24cfdf1eb6abfb5b0bfc9f0ed5c8d46 | tests/language/nonfunction_type_aliases/usage_object_error_test.dart | tests/language/nonfunction_type_aliases/usage_object_error_test.dart | // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// SharedOptions=--enable-experiment=nonfunction-type-aliases
// Introduce an aliased type.
typedef T... | // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// SharedOptions=--enable-experiment=nonfunction-type-aliases
// Introduce an aliased type.
typedef T... | Fix one more test with factory redirect to abstract class. | Fix one more test with factory redirect to abstract class.
Same as https://dart-review.googlesource.com/c/sdk/+/175361
Change-Id: I0f6b9032e4f2718bceb00010080bc5ca0835a761
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175580
Reviewed-by: Brian Wilkerson <1f7641b6b14c52b9163524ab8d9aabff80176f21@google.com... | Dart | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk |
52ed57e1bb393864428b6dcb2a9edee1a1ff6532 | packages/unit/test/widget/date_picker_test.dart | packages/unit/test/widget/date_picker_test.dart | import 'package:sky/widgets.dart';
import 'package:test/test.dart';
import 'build_utils.dart';
void main() {
test('Can select a day', () {
WidgetTester tester = new WidgetTester();
DateTime currentValue;
Widget builder() {
return new Block([
new DatePicker(
selectedDate: new Da... | import 'package:sky/widgets.dart';
import 'package:test/test.dart';
import 'build_utils.dart';
void main() {
test('Can select a day', () {
WidgetTester tester = new WidgetTester();
DateTime currentValue;
Widget builder() {
return new Block([
new DatePicker(
selectedDate: new Da... | Test year selection for date picker | Test year selection for date picker | Dart | bsd-3-clause | turnidge/flutter,Hixie/flutter,flutter/flutter,jason-simmons/flutter,flutter/flutter,tvolkert/flutter,turnidge/flutter,aghassemi/flutter,cbracken/flutter,aghassemi/flutter,turnidge/flutter,turnidge/flutter,flutter/flutter,cbracken/flutter,flutter/flutter,aghassemi/flutter,Hixie/flutter,tvolkert/flutter,flutter/flutter,... |
df8bfa726c415924fcf0a3f40037f33734737909 | lib/src/material/lambert_material.dart | lib/src/material/lambert_material.dart | part of material;
class LambertMaterial implements Material {
String name;
Blending blending = const Blending(
sourceColorFactor: BlendingFactor.sourceAlpha,
destinationColorFactor: BlendingFactor.oneMinusSourceAlpha);
DepthTest depthTest = const DepthTest();
StencilTest stencilTest;
CullingM... | part of material;
class LambertMaterial implements Material {
String name;
Blending blending = const Blending(
sourceColorFactor: BlendingFactor.sourceAlpha,
destinationColorFactor: BlendingFactor.oneMinusSourceAlpha);
DepthTest depthTest = const DepthTest();
StencilTest stencilTest;
CullingM... | Drop ambition to add bump (height) mapping | Drop ambition to add bump (height) mapping
| Dart | bsd-3-clause | RSSchermer/scene_3d.dart,RSSchermer/scene_3d.dart |
6c2cb212d6dce0c9c362389bc19f0eca7a22e585 | tests/language/factory5_test.dart | tests/language/factory5_test.dart | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
abstract class Link<T> {
factory Link.create() = LinkFactory<T>.create;
}
class LinkFactory<T> {
f... | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
abstract class Link<T> {
factory Link.create() = LinkFactory<T>.create;
}
class LinkFactory<T> imple... | Remove analyzer warning from test. | Remove analyzer warning from test.
Review URL: https://codereview.chromium.org/2132903003 .
| Dart | bsd-3-clause | dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-... |
8f79798b657fb18faf31eb2c12c9c92eb84061ac | tests/html/location_test.dart | tests/html/location_test.dart | library LocationTest;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
import 'dart:html';
main() {
useHtmlConfiguration();
var isLocation = predicate((x) => x is Location, 'is a Location');
test('location hash', () {
final location = window.location;
... | library LocationTest;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
import 'dart:html';
main() {
useHtmlConfiguration();
var isLocation = predicate((x) => x is Location, 'is a Location');
test('location hash', () {
final location = window.location;
... | Fix a test after recent uri change. | Fix a test after recent uri change.
TBR=sgjesse@google.com
Review URL: https://codereview.chromium.org//16026004
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@23273 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/... |
37d226d230117095179eb8f2a2a9f860357bbfca | tests/language/overridden_no_such_method.dart | tests/language/overridden_no_such_method.dart | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program testing overridden messageNotUnderstood.
part of ManyOverriddenNoSuchMethodTest.da... | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program testing overridden messageNotUnderstood.
part of OverriddenNoSuchMethodTest.dart;
... | Fix another part-of related test failure | Fix another part-of related test failure
Library names must match.
Review URL: https://codereview.chromium.org//14788009
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@22288 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-... |
b8d6b63dc40978fc5a7829ba927a5f0dbe9eeeb0 | lib/core/models/student_id_barcode_model.dart | lib/core/models/student_id_barcode_model.dart | // To parse this JSON data, do
//
// final studentIdBarcodeModel = studentIdBarcodeModelFromJson(jsonString);
import 'dart:convert';
StudentIdBarcodeModel studentIdBarcodeModelFromJson(String str) =>
StudentIdBarcodeModel.fromJson(json.decode(str));
String studentIdBarcodeModelToJson(StudentIdBarcodeModel da... | // To parse this JSON data, do
//
// final studentIdBarcodeModel = studentIdBarcodeModelFromJson(jsonString);
import 'dart:convert';
StudentIdBarcodeModel studentIdBarcodeModelFromJson(String str) =>
StudentIdBarcodeModel.fromJson(json.decode(str));
String studentIdBarcodeModelToJson(StudentIdBarcodeModel da... | Initialize barcode model barCode data type as int to resolve null exceptions | Initialize barcode model barCode data type as int to resolve null exceptions
| Dart | mit | UCSD/campus-mobile,UCSD/campus-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/now-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile |
6e498094d31f81b142176a80f2b5b6ae22e898fa | lib/oauth1.dart | lib/oauth1.dart | library oauth1;
export 'src/utils.dart';
export 'src/client_credentials.dart';
export 'src/credentials.dart';
export 'src/signature_method.dart';
export 'src/client.dart';
export 'src/authorization.dart';
export 'src/platform.dart';
| library oauth1;
export 'src/client_credentials.dart';
export 'src/credentials.dart';
export 'src/signature_method.dart';
export 'src/client.dart';
export 'src/authorization.dart';
export 'src/platform.dart';
| Remove utils.dart export from library | Remove utils.dart export from library | Dart | bsd-3-clause | kumar8600/dart-oauth1 |
620761ab13751cd153b3b4b7106021aa955059d5 | lib/utils/angular/reference/reference.dart | lib/utils/angular/reference/reference.dart | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:angular/angular.dart';
// TODO(google): Remove this once use of '#' in a template is e... | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:angular/angular.dart';
// TODO(google): Remove this once use of '#' in a template is e... | Remove visibility.all from @Component annotations. This is potentially BREAKING change. | Remove visibility.all from @Component annotations. This is potentially BREAKING
change.
Please review carefully. Breakage will only be caught if the code is covered by
tests. Reject this change if you believe it breaks you.
If the component needs to be injected anywhere in the app, you can get a
runtime exception aft... | Dart | bsd-3-clause | angulardart/angular_components,angulardart/angular_components,angulardart/angular_components |
be2fdb52e543c07adc3cdea345ca96bf115c1e18 | lib/features/synced_items/presentation/widgets/delete_synced_item_button.dart | lib/features/synced_items/presentation/widgets/delete_synced_item_button.dart | import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import '../../../../core/helpers/color_palette_helper.dart';
class DeleteSyncedItemButton extends StatelessWidget {
const DeleteSyncedItemButton({Key key}) : super(key: key);
@override
Widget build(BuildCon... | import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import '../../../../core/helpers/color_palette_helper.dart';
class DeleteSyncedItemButton extends StatelessWidget {
const DeleteSyncedItemButton({Key key}) : super(key: key);
@override
Widget build(BuildCon... | Use the same trash icon as server settings page. | Use the same trash icon as server settings page.
| Dart | mit | wcomartin/PlexPy-Remote |
8938f98fc1e3ff727e6f216a317e3377aa6bbe5f | tests/corelib/string_operations_with_null_test.dart | tests/corelib/string_operations_with_null_test.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
import "../language/compiler_annotations.dart";
@DontInline()
ret... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
@NoInline()
@AssumeDynamic()
returnStringOrNull() {
return new ... | Fix test to not reach out of current dir | Fix test to not reach out of current dir
This lets us use the same test for DDC
TBR=vsm@google.com
Review URL: https://codereview.chromium.org/1946973002 .
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartin... |
8f532e3dba180728719ebb8d52a835097a63b6af | lib/runtime/transforms.dart | lib/runtime/transforms.dart | part of streamy.runtime;
/// A [StreamTransformer] that de-duplicates entities. This will cause
/// metadata about the entity (Entity.streamy) to be inaccurate, but will
/// prevent multiple values from being published on [Stream]s when core [Entity]
/// data has not changed.
class EntityDedupTransformer extends Strea... | part of streamy.runtime;
/// A [StreamTransformer] that de-duplicates entities. This will cause
/// metadata about the entity (Entity.streamy) to be inaccurate, but will
/// prevent multiple values from being published on [Stream]s when core [Entity]
/// data has not changed.
class EntityDedupTransformer<T extends Ent... | Make transformer type parameters more concrete to let users control types. | Make transformer type parameters more concrete to let users control types.
| Dart | apache-2.0 | srawlins/streamy-dart,ronlobo/streamy-dart,srawlins/streamy-dart,srawlins/streamy-dart,google/streamy-dart,google/streamy-dart,ronlobo/streamy-dart,ronlobo/streamy-dart,google/streamy-dart,ronlobo/streamy-dart,srawlins/streamy-dart,google/streamy-dart |
e36820617a558787c27d025ea4355b77cb10e280 | pkg/analysis_server/test/integration/analysis/error_test.dart | pkg/analysis_server/test/integration/analysis/error_test.dart | // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library test.integration.analysis.error;
import 'package:analysis_server/src/protocol.dart';
import 'p... | // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library test.integration.analysis.error;
import 'package:analysis_server/src/protocol.dart';
import 'p... | Fix integration test to avoid new 'Unused local variable' hint. | Fix integration test to avoid new 'Unused local variable' hint.
R=scheglov@google.com
Review URL: https://codereview.chromium.org//700323004
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@41580 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk... |
c466b6f4a0a3dd6dadbae30c4be8e51c8286bdc4 | tests/compiler/dart2js/gvn_dynamic_field_get_test.dart | tests/compiler/dart2js/gvn_dynamic_field_get_test.dart | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test that dart2js gvns dynamic getters that don't have side
// effects.
import 'compiler_helper.dart... | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test that dart2js gvns dynamic getters that don't have side
// effects.
import 'compiler_helper.dart... | Fix build by updating test to use different check for user-defined getters. | Fix build by updating test to use different check for user-defined getters.
TBR'ed.
R=ngeoffray@google.com
BUG=
Review URL: https://codereview.chromium.org//12295011
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@18625 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,... |
ed6e913e50cf4d6034d5bd2b17b16bf319906f54 | pay_platform_interface/lib/pay_platform_interface.dart | pay_platform_interface/lib/pay_platform_interface.dart | import 'package:pay_platform_interface/core/payment_item.dart';
abstract class PayPlatform {
/**
* TBA
*/
Future<bool> userCanPay(Map<String, dynamic> paymentProfile);
/**
* TBA
*/
Future<Map<String, dynamic>> showPaymentSelector(
Map<String, dynamic> paymentProfile, List<PaymentItem> paymen... | import 'package:pay_platform_interface/core/payment_item.dart';
abstract class PayPlatform {
/// Determines whether the caller can make a payment with a given
/// configuration.
///
/// Returns a [Future] that resolves to a boolean value with the result.
Future<bool> userCanPay(Map<String, dynamic> paymentPr... | Add docu to the platform interface | Add docu to the platform interface
| Dart | apache-2.0 | google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin |
f12f5bcb15db6db62499e58071a6b2c90da9d0df | pkg/kernel/testcases/reify/native_types_test.dart | pkg/kernel/testcases/reify/native_types_test.dart | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library native_types;
import 'test_base.dart';
abstract class C {}
class D {}
var foo = bar;
var ba... | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library native_types;
import 'test_base.dart';
abstract class C {}
class D {}
var foo = bar;
var ba... | Add multitest markers to reify test | Add multitest markers to reify test
TBR=dmitryas@google.com
Review-Url: https://codereview.chromium.org/2696283006 .
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/da... |
ffad288a6857a606c05de13b0323164cb15712e2 | lib/src/utils/http.dart | lib/src/utils/http.dart | part of mac.utils;
Future<String> fetch(String url) async {
var uri = Uri.parse(url);
var client = new HttpClient();
var request = await client.getUrl(uri);
var response = await request.close();
if (response.statusCode != 200) {
throw new Exception("Failed to fetch ${url}");
}
return response.transfo... | part of mac.utils;
Future<String> fetch(String url) async {
var uri = Uri.parse(url);
var client = new HttpClient();
var request = await client.getUrl(uri);
var response = await request.close();
if (response.statusCode != 200) {
throw new Exception("Failed to fetch ${url}");
}
return UTF8.decoder.bin... | Prepare for Uint8List SDK breaking change | Prepare for Uint8List SDK breaking change
A recent change to the Dart SDK updated `HttpClientResponse`
to implement `Stream<Uint8List>` rather than implementing
`Stream<List<int>>`.
This forwards-compatible chnage updates calls to
`Stream.transform(StreamTransformer)` to instead call the
functionally equivalent `Stre... | Dart | mit | DirectMyFile/osx.dart |
def73b4b891770816c4372e5f45ead0dd7cbb6f4 | lib/colorful.dart | lib/colorful.dart | // Copyright (c) 2015, <Martin Haesler>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
/// The colorful library.
library colorful;
class Color {
int _r;
int _g;
int _b;
Color(this._r, this._g, this._b);
get r => _r;
get g => _g;... | // Copyright (c) 2015, <Martin Haesler>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
/// The colorful library.
library colorful;
class Color {
double _r;
double _g;
double _b;
Color(this._r, this._g, this._b);
get r => _r;
get... | Use double for RGB color. | Use double for RGB color.
| Dart | bsd-3-clause | mswift42/colorful |
576dafd77726835cf39cbdaefa9e6c4418d7554b | wolfram.dart | wolfram.dart | import "package:polymorphic_bot/plugin.dart";
export "package:polymorphic_bot/plugin.dart";
const String APP_ID = "2982LV-6WP5YYAWLQ";
@Command("w", description: "Wolfram Alpha", prefix: "Wolfram")
w(String input) => wolfram(input);
@Command("wolfram", description: "Wolfram Alpha", prefix: "Wolfram")
wolfram(String ... | import "package:polymorphic_bot/plugin.dart";
export "package:polymorphic_bot/plugin.dart";
const String APP_ID = "2982LV-6WP5YYAWLQ";
@Command("w", description: "Wolfram Alpha", prefix: "Wolfram")
w(String input) => wolfram(input);
@Command("wolfram", description: "Wolfram Alpha", prefix: "Wolfram")
wolfram(String ... | Add Support for Chemical Names and Formulas | Add Support for Chemical Names and Formulas
| Dart | mit | PolymorphicBot/scripts |
b7b7a63407b91de916f29186070242d49b2a9306 | pkg/kernel/test/import_table_test.dart | pkg/kernel/test/import_table_test.dart | import '../lib/import_table.dart';
main() {
List<String> paths = new List<String>();
paths.add("file://");
paths.add("file:///a");
paths.add("file:///a/b");
paths.add("file:///a/b/c");
int end = paths.length;
for (int i = 0; i < end; i++) {
paths.add(paths[i] + "/d.dart");
paths.add(paths[i] + "... | import 'package:kernel/import_table.dart';
main() {
List<String> paths = new List<String>();
paths.add("file://");
paths.add("file:///a");
paths.add("file:///a/b");
paths.add("file:///a/b/c");
int end = paths.length;
for (int i = 0; i < end; i++) {
paths.add(paths[i] + "/d.dart");
paths.add(path... | Fix relative import from pkg/kernel/test to pkg/kernel/lib. | Fix relative import from pkg/kernel/test to pkg/kernel/lib.
This doesn't work due to the file organization used in google3.
Change-Id: I814a087bd9c6e10fc7738c782af6f54fde3cf000
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99181
Auto-Submit: Paul Berry <72d414e3a99fb120308437779d51667bcc0984eb@google.com>... | Dart | bsd-3-clause | dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk... |
57ed294eb91d4d7a76c38e7f93e96648973ed8ff | ui/lib/src/settings/profile/profile_component.dart | ui/lib/src/settings/profile/profile_component.dart | import 'dart:html';
import 'package:angular/angular.dart';
import 'package:angular_forms/angular_forms.dart';
import 'package:angular_router/angular_router.dart';
import 'package:gitpods/src/user/user.dart';
import 'package:gitpods/src/user/user_service.dart';
@Component(
selector: 'profile',
templateUrl: 'profil... | import 'dart:html';
import 'package:angular/angular.dart';
import 'package:angular_forms/angular_forms.dart';
import 'package:angular_router/angular_router.dart';
import 'package:gitpods/src/loading_component.dart';
import 'package:gitpods/src/user/user.dart';
import 'package:gitpods/src/user/user_service.dart';
@Com... | Add LoadingComponent as directive to profile setting component | Add LoadingComponent as directive to profile setting component
| Dart | apache-2.0 | gitpods/gitpods,gitpods/gitpods,gitpods/gitpods,gitpods/gitpods |
9d150d9acbe3cb265d481acec33aca52099dc0c8 | lib/core.dart | lib/core.dart | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | Change return type of firstNonNull to dynamic | Change return type of firstNonNull to dynamic
| Dart | apache-2.0 | EmmanuelOga/quiver-dart,googlearchive/quiver_time,QuiverDart/quiver_check,QuiverDart/quiver_cache,QuiverDart/quiver_strings,yjbanov/quiver_hashcode,QuiverDart/quiver_hashcode,googlearchive/quiver_async,QuiverDart/quiver_iterables,QuiverDart/quiver_pattern,googlearchive/quiver_iterables,QuiverDart/quiver_check,googlearc... |
774b80f2d3805050f5f4a91bf8911651206b3230 | pkg/test_runner/bin/launch_browser.dart | pkg/test_runner/bin/launch_browser.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// Simple command line interface to launching browsers.
/// Uses the browser_controller framework.
///... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// Simple command line interface to launching browsers.
/// Uses the browser_controller framework.
///... | Replace space from test config name | [pkg:test_runner] Replace space from test config name
https://dart-review.googlesource.com/c/sdk/+/181404 disallows spaces
in Configurations.
Change-Id: I0582eca064bd6d88ebcbbf411e44a6147895148c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/184902
Auto-Submit: Srujan Gaddam <4175f2f2dd3cde6c8ffb10fc9674dc... | Dart | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk |
583eccf93ed9d44a974b509a3fc646b7a8888dae | test/test_projects/flutter_hello_world/lib/main.dart | test/test_projects/flutter_hello_world/lib/main.dart | import 'package:flutter/widgets.dart';
void main() {
runApp(new Center(child: new Text('Hello, world!')));
}
class MySampleHome extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Container();
}
}
| import 'package:flutter/widgets.dart';
void main() {
runApp(new Center(
child: new Text(
'Hello, world!',
textDirection: TextDirection.ltr,
)));
}
class MySampleHome extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Container();
}
}
| Add missing text direction for running flutter tests | Add missing text direction for running flutter tests
| Dart | mit | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code |
86a7a56ea24f22d0185d1cc0c0f35da27cb5778a | lib/boss.dart | lib/boss.dart | part of ChattyWorker;
_workerStarter(message) {
message[0].startWorking(message[1]);
}
abstract class Boss {
ReceivePort response;
SendPort request;
Boss() {
response = new ReceivePort();
response.listen((message) {
if (message is SendPort) {
request = message;
speak(Status.REA... | part of ChattyWorker;
_manager(message) {
message[0].startWorking(message[1]);
}
abstract class Boss {
ReceivePort response;
SendPort request;
Boss() {
response = new ReceivePort();
response.listen((message) {
if (message is SendPort) {
request = message;
speak(Status.READY);
... | Revert "rename manager to workerStarter" | Revert "rename manager to workerStarter"
This reverts commit f6e51634a05181f837fef270cb0ef25580c18c4b.
| Dart | bsd-3-clause | StrykerKKD/ChattyWorker |
3f62feab2d77b2ba173eab41c72c162a2015f37d | tests/compiler/dart2js/serialization/compilation0_test.dart | tests/compiler/dart2js/serialization/compilation0_test.dart | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library dart2js.serialization.compilation1_test;
import 'compilation_test_helper.dart' as test;
import... | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library dart2js.serialization.compilation0_test;
import 'compilation_test_helper.dart' as test;
import... | Rename library name in test. | Rename library name in test.
Review URL: https://codereview.chromium.org/2126573002 .
| Dart | bsd-3-clause | dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,darti... |
845d32471c5dc92705a247b9737134953f4adeee | moor_generator/test/analyzer/runner/task_test.dart | moor_generator/test/analyzer/runner/task_test.dart | import 'package:moor_generator/src/analyzer/errors.dart';
import 'package:test/test.dart';
import '../utils.dart';
void main() {
group("reports error when an import can't be found", () {
test('in moor file', () async {
final state = TestState.withContent({
'foo|lib/a.moor': '''
import 'b.moor';
... | import 'package:moor_generator/src/analyzer/errors.dart';
import 'package:test/test.dart';
import '../utils.dart';
void main() {
group("reports error when an import can't be found", () {
test('in moor file', () async {
final state = TestState.withContent({
'foo|lib/a.moor': '''
import 'b.moor';
... | Add another missing analyzer tag to test | Add another missing analyzer tag to test
| Dart | mit | simolus3/moor,simolus3/moor,simolus3/drift,simolus3/drift,simolus3/moor,simolus3/drift,simolus3/moor,simolus3/moor,simolus3/drift,simolus3/drift,simolus3/drift,simolus3/moor,simolus3/moor,simolus3/drift |
44c8cac3ac4789936e5315bef9344b5ddbf001a0 | lib/src/transform_logger.dart | lib/src/transform_logger.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library barback.transform_logger;
import 'package:source_maps/span.dart';
/// Object used to report w... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library barback.transform_logger;
import 'package:source_maps/span.dart';
/// Object used to report w... | Use our own DiagnosticHandler for dart2js. | Use our own DiagnosticHandler for dart2js.
Instead of implementing SourceFileProvider and using dart2js's
built in DiagnosticHandler, we just provide our own
CompilerInputProvider and DiagnosticHandler functions. This avoids
implementing stuff in SourceFileProvider and, more importantly,
lets us handle missing source ... | Dart | bsd-3-clause | Aetet/barback,dart-lang/barback,dart-archive/barback,dart-lang/barback,dart-archive/barback,Aetet/barback |
586ea6cadf55e311736f8c8c2492459e979dce35 | _goldens/generator/bin/template_compiler_generator.dart | _goldens/generator/bin/template_compiler_generator.dart | import 'package:args/args.dart';
import 'package:build/build.dart';
import 'package:source_gen/source_gen.dart';
import 'package:angular/source_gen.dart';
import 'package:angular_compiler/angular_compiler.dart';
const String TEMPLATE_EXTENSION_PARAM = 'template_extension';
const String CODEGEN_MODE_PARAM = 'codegen_mo... | import 'package:build/build.dart';
import 'package:source_gen/source_gen.dart';
import 'package:angular/source_gen.dart';
import 'package:angular_compiler/angular_compiler.dart';
const String TEMPLATE_EXTENSION_PARAM = 'template_extension';
const String CODEGEN_MODE_PARAM = 'codegen_mode';
Builder templateBuilder(Bui... | Remove unused local var _argParser. | Remove unused local var _argParser.
PiperOrigin-RevId: 177630622
| Dart | mit | kevmoo/angular,kevmoo/angular,chalin/angular2,matanlurey/angular,chalin/angular2,matanlurey/angular,angulardart/angular,matanlurey/angular,kevmoo/angular,angulardart/angular,chalin/angular2,angulardart/angular |
20dade5ff5d0a910e724dedfb8fa5b9edd500325 | tests/standalone/io/sleep_test.dart | tests/standalone/io/sleep_test.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "dart:io";
test(int milliseconds) {
var watch = new Stopwatch();
watch.start();
sleep(new... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "dart:io";
test(int milliseconds) {
var watch = new Stopwatch();
watch.start();
sleep(new... | Make sleep test resilient to timer rounding issues | Make sleep test resilient to timer rounding issues
TBR=ager@google.com
Review URL: https://codereview.chromium.org//13718002
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@20953 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-... |
5ff19ad4ffc535ec6996dcda538091e7e69baaba | pkg/kernel/lib/transformations/setup_builtin_library.dart | pkg/kernel/lib/transformations/setup_builtin_library.dart | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library kernel.transformations.setup_builtin_library;
import '../ast.dart';
// The DartVM has a speci... | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library kernel.transformations.setup_builtin_library;
import '../ast.dart';
// The DartVM has a speci... | Allow main to be null for modular tranformation. | Allow main to be null for modular tranformation.
R=asgerf@google.com
Review-Url: https://codereview.chromium.org/2612873005 .
| Dart | bsd-3-clause | dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dar... |
9a62df57fae5e24ceee9eda4535a332ea570ec9c | tests/language/nnbd/resolution/question_question_lub_test.dart | tests/language/nnbd/resolution/question_question_lub_test.dart | // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// SharedOptions=--enable-experiment=non-nullable
// Test that `x ?? y` results in type LUB(x!, y)
voi... | // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// SharedOptions=--enable-experiment=non-nullable
// Test that `x ?? y` results in type LUB(x!, y)
voi... | Fix a test to get the analyzer nnbd bot to pass | Fix a test to get the analyzer nnbd bot to pass
Change-Id: I5892c245d4aa984c896471bf18cd71362958d0c6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138782
Reviewed-by: Konstantin Shcheglov <09e4d7516628963212bf4aace2f97603d2b706e4@google.com>
Commit-Queue: Brian Wilkerson <1f7641b6b14c52b9163524ab8d9aabff80... | Dart | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk |
2ccbf1e5378de9eed1519812c03f144f476328c8 | lib/list_tasks.dart | lib/list_tasks.dart | library list_tasks;
import 'dart:html';
import 'package:ddays/storageservice.dart' show loadFromStorage;
LIElement singleTaskElement(String tasksummary) {
LIElement li = new LIElement();
ParagraphElement p = new ParagraphElement();
p
..text = tasksummary
..classes.add('summarytext');
li
..classes.... | library list_tasks;
import 'dart:html';
import 'package:ddays/storageservice.dart' show loadFromStorage;
LIElement singleTaskElement(String tasksummary) {
LIElement li = new LIElement();
ParagraphElement p = new ParagraphElement();
p
..text = tasksummary
..classes.add('summarytext');
li
..classes.... | Change displayTasks to use taskContainer element. | Change displayTasks to use taskContainer element.
| Dart | bsd-3-clause | mswift42/ddays,mswift42/ddays |
90c29b3aa33d8383698f8cc23e163eeba584739b | exapmple/posttweet.dart | exapmple/posttweet.dart | import 'dart:io';
import 'package:twitter/twitter.dart';
main(){
var envVars = Platform.environment;
print(envVars['CONSUMER_KEY']);
print(envVars['CONSUMER_SECRET']);
print(envVars['ACCESS_TOKEN']);
print(envVars['ACCESS_TOKEN_SECRET']);
var map = {
"consumerKey": envVars['CONSUMER_KEY'],
"con... | import 'dart:io';
import 'package:twitter/twitter.dart';
main() {
var envVars = Platform.environment;
print(envVars['CONSUMER_KEY']);
print(envVars['CONSUMER_SECRET']);
print(envVars['ACCESS_TOKEN']);
print(envVars['ACCESS_TOKEN_SECRET']);
var map = {
"consumerKey": envVars['CONSUMER_KEY'],
"co... | Fix example according to filename | Fix example according to filename
| Dart | mit | sh4869/twitter.dart,sh4869/twitter.dart |
365822cf6f5aa69c7912ec3eebad658cda660606 | test/test_runner_reactables.dart | test/test_runner_reactables.dart | library frappe.test_runner;
import 'event_stream_test.dart' as eventStreamTest;
import 'property_test.dart' as propertyTest;
import 'constant_property_test.dart' as constantPropertyTest;
import 'stream_property_test.dart' as streamPropertyTest;
import 'computed_property_test.dart' as computedPropertyTest;
import 'coll... | library frappe.test_runner;
import 'event_stream_test.dart' as event_stream_test;
import 'property_test.dart' as property_test;
import 'constant_property_test.dart' as constant_property_test;
import 'stream_property_test.dart' as stream_property_test;
import 'computed_property_test.dart' as computed_property_test;
imp... | Use underscores for import aliases | Use underscores for import aliases
| Dart | mit | devoncarew/frappe,danschultz/frappe,Andersmholmgren/frappe,devoncarew/frappe,danschultz/frappe,Andersmholmgren/frappe |
f8a516b51a586cd4d55a4582a8e6cf2df8d7da88 | moor_generator/test/backends/build/generators/moor_generator_test.dart | moor_generator/test/backends/build/generators/moor_generator_test.dart | import 'dart:async';
import 'package:build/build.dart';
import 'package:build_test/build_test.dart';
import 'package:moor_generator/integrations/build.dart';
import 'package:test/test.dart';
void main() {
test('generator emits warning about wrong language version', () async {
final logs = StreamController<Strin... | import 'dart:async';
import 'package:build/build.dart';
import 'package:build_test/build_test.dart';
import 'package:moor_generator/integrations/build.dart';
import 'package:test/test.dart';
void main() {
test('generator emits warning about wrong language version', () async {
final logs = StreamController<Strin... | Use emitsThrough instead of emits | Use emitsThrough instead of emits
| Dart | mit | simolus3/moor,simolus3/moor,simolus3/moor,simolus3/moor,simolus3/drift,simolus3/drift,simolus3/moor,simolus3/drift,simolus3/drift,simolus3/moor,simolus3/drift,simolus3/drift,simolus3/moor,simolus3/drift |
e3afa9798736c509e913629dddf7326f7f43dbe7 | test/test_projects/hello_world/bin/main.dart | test/test_projects/hello_world/bin/main.dart | main() {
var s = "Hello!";
var l = [0, 1];
var m = {
"l": l,
"s": s,
new DateTime.now(): "today",
new DateTime.now().add(const Duration(days: 1)): "tomorrow",
true: true,
1: "one",
1.1: "one-point-one",
};
print("Hello, world!"); // BREAKPOINT1
}
| main() {
var s = "Hello!";
var l = [0, 1];
var m = {
"l": l,
"s": s,
new DateTime.now(): "today",
new DateTime.now().add(const Duration(days: 1)): "tomorrow",
true: true,
1: "one",
1.1: "one-point-one",
};
if (m[true]) {
print("Hello, world!"); // BREAKPOINT1
}
}
| Fix compile warning in Dart test project | Fix compile warning in Dart test project
| Dart | mit | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code |
1d4db51ff820cb3d5f8cc55068e64a9952b21932 | test/list_tasks_test.dart | test/list_tasks_test.dart |
import 'package:ddays/list_tasks.dart';
import 'package:test/test.dart';
import 'dart:html';
void main() {
test('sinlgeTaskElement returns a LIElement with correct p children', () {
LIElement st = singleTaskElement('task1');
expect(st.children[0].text, 'task1');
expect(st.classes.contains('singletask'),true);... |
import 'package:ddays/list_tasks.dart';
import 'package:test/test.dart';
import 'dart:html';
void main() {
test('sinlgeTaskElement returns a LIElement with correct p children', () {
LIElement st = singleTaskElement('task1');
expect(st.children[0].text, 'task1');
expect(st.classes.contains('singletask'),true);... | Add test for insertTask function | Add test for insertTask function
| Dart | bsd-3-clause | mswift42/ddays,mswift42/ddays |
d9929b404672af8b791332c87223f5c34445dbee | runtime/lib/invocation_mirror_patch.dart | runtime/lib/invocation_mirror_patch.dart | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class _InvocationMirror implements InvocationMirror {
static final int METHOD = 0;
static final int... | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class _InvocationMirror implements InvocationMirror {
static final int METHOD = 0;
static final int... | Fix throw statement in _InvocationMirror.invokeOn on VM's library. | Fix throw statement in _InvocationMirror.invokeOn on VM's library.
UnsupportedOperation was renamed to UnsupportedError.
R=fschneider@google.com
Review URL: https://codereview.chromium.org//11414183
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@15397 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-ar... |
14146f6edd0265a7e8e80bfb15a5ddbde76eff08 | bin/src/calc.dart | bin/src/calc.dart | library dart_coveralls.calc;
import 'dart:io';
import 'package:dart_coveralls/dart_coveralls.dart';
import 'command_line.dart';
class CalcPart extends Object with CommandLinePart {
final ArgParser parser;
CalcPart() : parser = _initializeParser();
static ArgParser _initializeParser() {
var _parser = new... | library dart_coveralls.calc;
import 'dart:io';
import 'package:dart_coveralls/dart_coveralls.dart';
import 'command_line.dart';
class CalcPart extends Object with CommandLinePart {
final ArgParser parser;
CalcPart() : parser = _initializeParser();
static ArgParser _initializeParser() {
var _parser = new... | Fix problem with instance of coverage result | Fix problem with instance of coverage result
| Dart | mit | duse-io/dart-coveralls,kevmoo/dart-coveralls,kevmoo/dart-coveralls,duse-io/dart-coveralls,block-forest/dart-coveralls,block-forest/dart-coveralls |
8749936957069bedb379a156fed4ee816bae9b9a | qr.dart | qr.dart | import "package:polymorphic_bot/plugin.dart";
export "package:polymorphic_bot/plugin.dart";
@PluginInstance()
Plugin plugin;
@BotInstance()
BotConnector bot;
@Command("qr", description: "Generate QR Codes", usage: "<input>")
qr(CommandEvent event) => event.transform((input) {
return shortenUrl("https://chart.google... | import "package:polymorphic_bot/plugin.dart";
export "package:polymorphic_bot/plugin.dart";
@PluginInstance()
Plugin plugin;
@BotInstance()
BotConnector bot;
@Command("qr", description: "Generate QR Codes", usage: "<input>")
qr(CommandEvent event) => event.transform((input) {
return shortenUrl("https://api.qrserver... | Use a different QR Generator API | Use a different QR Generator API | Dart | mit | PolymorphicBot/scripts |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.