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 |
|---|---|---|---|---|---|---|---|---|---|
8b9858821d6ee88edaedc9b553ab01685b25a416 | test/package_graph/many_parallel_transformers_test.dart | test/package_graph/many_parallel_transformers_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.
library barback.test.package_graph.transform_test;
import 'package:barback/src/utils.dart';
import 'pa... | // 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.package_graph.transform_test;
import 'package:barback/src/utils.dart';
import 'pa... | Increase barback scheduled_test timeout for many_parallel_transformers test. | Increase barback scheduled_test timeout for many_parallel_transformers test.
BUG=dartbug.com/15483
Review URL: https://codereview.chromium.org//102433007
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@30978 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | Aetet/barback,Aetet/barback,dart-archive/barback,dart-lang/barback,dart-archive/barback,dart-lang/barback |
ca76841b4388ecabed257f14cd2dab0e59ead868 | test/transformer/fails_to_load_a_transform_with_a_syntax_error_test.dart | 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: a962b240025cf0577aa172e20f49ccb159ba6be1@33507 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | maxwellpeterson-wf/pub,dart-lang/pub,cjkao/dart-pub,computmaxer/pub,dart-lang/pub |
880bae409feaa3ee59f95cb16f118c4d1d2dc90e | Language/Expressions/Property_Extraction/Anonymous_Constructor_Extraction/not_class_t01.dart | Language/Expressions/Property_Extraction/Anonymous_Constructor_Extraction/not_class_t01.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.
*/
/**
* @assertion Evaluation of a property extraction i of the form new T#
* proceeds as follows... | /*
* 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.
*/
/**
* @assertion Evaluation of a property extraction i of the form new T#
* proceeds as follows... | Test fixed. Don't try instantiate enum | Test fixed. Don't try instantiate enum
| Dart | bsd-3-clause | dart-lang/co19,dart-lang/co19,dart-lang/co19 |
828cb5a264f350687b231eb34c84fcebe784eab1 | angular_components/lib/utils/browser/window/new_window_opener.dart | angular_components/lib/utils/browser/window/new_window_opener.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';
/// Utility class to allow opening a URL i... | // 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';
/// Utility class to allow opening a URL i... | Update all components to use ref="noopener noreferrer" for target="_blank" links. | Update all components to use ref="noopener noreferrer" for target="_blank" links.
https://www.owasp.org/index.php/Reverse_Tabnabbing
PiperOrigin-RevId: 249578192
| Dart | bsd-3-clause | angulardart/angular_components,angulardart/angular_components,angulardart/angular_components |
ee02deac63a85fb8c2e1638346363e89e1a41746 | lib/src/interval/length.dart | lib/src/interval/length.dart | import 'interval.dart';
extension LengthIntervalNumExtension on Interval<num> {
/// Returns the length an [Interval] as [int].
///
/// Returns `0` if the interval is empty or `1` if the interval contains a
/// single value. Throws an [ArgumentError] if one of the bounds is unbound
/// (infinite).
int toIn... | import 'interval.dart';
extension LengthIntervalNumExtension on Interval<num> {
/// Returns the length an [Interval] as [int].
///
/// Returns `0` if the interval is empty or `1` if the interval contains a
/// single value. Throws an [ArgumentError] if one of the bounds is unbounded
/// (infinite).
int to... | Improve comments and code clarity for Interval.toDoubleLength() and Interval.toIntLength(). | Improve comments and code clarity for Interval.toDoubleLength() and Interval.toIntLength().
| Dart | mit | renggli/dart-more,renggli/dart-more |
9df061524ffc9d483c1536805748246b4aeeebf5 | tests/language_2/control_flow_collections/await_for_null_test.dart | tests/language_2/control_flow_collections/await_for_null_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=control-flow-collections,spread-collections
// Test that a null s... | // 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=control-flow-collections,spread-collections
// Test that a null s... | Update expected error NoSuchMethodError --> Error | [tests] Update expected error NoSuchMethodError --> Error
Most (all?) implementations now throw ArgumentError since the
StreamIterator constructor no longer accepts null but the actual
type is not specified.
https://dart-review.googlesource.com/c/sdk/+/98001.
Change-Id: I10a24a67aa7353552c56d435ef206a2bc4f842fa
Revie... | Dart | bsd-3-clause | dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-... |
4c6865d7d84ab891bd256c2537be81003f99cf88 | utils/pub/command_list.dart | utils/pub/command_list.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.
/** Handles the `list` pub command. */
void commandList(PubOptions options, List<String> args) {
// T... | // 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.
/** Handles the `list` pub command. */
void commandList(PubOptions options, List<String> args) {
// T... | Sort packages by name before listing them. | Sort packages by name before listing them.
Review URL: https://chromiumcodereview.appspot.com//10191027
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@6978 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/d... |
cb4c51cbbe697f7a9d256e6f9727d695d6ca4f00 | lib/src/runner/vm/catch_isolate_errors.dart | lib/src/runner/vm/catch_isolate_errors.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 'dart:async';
import 'dart:isolate';
import 'package:stack_trace/stack_trace.dart';
/// Captur... | // 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 'dart:async';
import 'dart:isolate';
import 'package:stack_trace/stack_trace.dart';
/// Captur... | Fix some typos in comments | Fix some typos in comments
| Dart | bsd-3-clause | grouma/test,grouma/test,kevmoo/test,kevmoo/test,kevmoo/test,grouma/test,iglherme/Guttiest,iglherme/Guttiest,iglherme/Guttiest |
ce494e791024936b30911bde38d6979fd458aece | tests/language/inference/dynamic_nullable_test.dart | tests/language/inference/dynamic_nullable_test.dart | // Copyright (c) 2020, 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";
// Tests that inference can solve for T? ~ dynamic or void.
clas... | Add test for inference solving T? = dynamic. | Add test for inference solving T? = dynamic.
See https://github.com/dart-lang/language/issues/1035
Change-Id: Ieb258a020d8212f5488cc3d73978b8132223353d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151760
Commit-Queue: Lasse R.H. Nielsen <80295e4ef244a07779f93eaa95d582bad8e316a5@google.com>
Reviewed-by: L... | 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 | |
2ac31bcf2262fb9d7bf5632ace530d9b7f83a57c | tests/html/typed_arrays_range_checks_test.dart | tests/html/typed_arrays_range_checks_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.
#library('TypedArraysRangeCheckTest');
#import('../../lib/unittest/unittest.dart');
#import('../../lib/... | Add a test for out of range access of typed arrays. | Add a test for out of range access of typed arrays.
R=podivilov@chromium.org,sra@google.com
Review URL: https://chromiumcodereview.appspot.com//10391087
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@7578 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/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,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-s... | |
b933596b88d72bb1c28ea7e476f443a21a7b3ee3 | test/reentry_issue.dart | test/reentry_issue.dart | import "package:dartredisclient/redis_client.dart";
main() {
print("main():");
RedisClient client = new RedisClient();
client.flushall();
client.info.then((info) {
client.close();
});
} | Add small test case to repro weird behavior | Add small test case to repro weird behavior
| Dart | bsd-2-clause | dartist/redis_client,dartist/redis_client | |
20a3b119aa7324963d2a8b54fba700917fdcf3d3 | test/memory_test.dart | test/memory_test.dart | import 'package:test/test.dart';
import 'package:minic/memory.dart';
void main() {
group('[MemoryBlock]:', () {
test('setValue converts values before insertion', () {
var memory = new MemoryBlock(8);
memory.setValue(0, NumberType.uint8, 1.0);
expect(memory.getValue(0, NumberType.uint8), equals... | import 'package:test/test.dart';
import 'package:minic/memory.dart';
void main() {
group('[MemoryBlock]:', () {
test('setValue converts values before insertion', () {
var memory = new MemoryBlock(8);
memory.setValue(0, NumberType.uint8, 1.0);
expect(memory.getValue(0, NumberType.uint8), equals... | Add MemoryBlock test using big endian ordering | Add MemoryBlock test using big endian ordering
| Dart | mit | elaru/minic |
b16e402fb932cf690aecc3bde376e23c97ef7e69 | pkg/analyzer/lib/src/summary2/package_bundle_reader.dart | pkg/analyzer/lib/src/summary2/package_bundle_reader.dart | // Copyright (c) 2020, 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.
export 'package:analyzer/src/summary/idl.dart' show PackageBundle;
| Prepare for replacing PackageBundle with PackageBundleReader. | Prepare for replacing PackageBundle with PackageBundleReader.
There are clients in google3 that import package:analyzer/src/summary/idl.dart
to use PackageBundle. We cannot make changes to idl.dart, so this
CL introduces a new file that we can change, and in the binary format CL
we will replace the exported PackageBun... | 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 | |
81789efadef44d2592ea13cb1ff593531faff7fb | test/task_test.dart | test/task_test.dart | import 'package:ds/Task.dart';
import 'package:test/test.dart';
void main() {
test('Task gets initialized correctly', () {
var t1 = new Task('task1');
expect(t1.summary, 'task1');
expect(t1.contents.length, 0);
expect(t1.scheduled, null);
expect(t1.categories.length, 0);
});
} | Check Tasks get initialized correctly. | Check Tasks get initialized correctly.
| Dart | mit | mswift42/ds,mswift42/ds | |
fe24f8e572ea7dde63f0dbf10240d64c31d4176b | solutions/uri/1006/1006.dart | solutions/uri/1006/1006.dart | import 'dart:io';
void main() {
double a = double.parse(stdin.readLineSync() ?? '');
double b = double.parse(stdin.readLineSync() ?? '');
double c = double.parse(stdin.readLineSync() ?? '');
double media = (a * 2.0 + b * 3.0 + c * 5.0) / 10.0;
print("MEDIA = ${media.toStringAsFixed(1)}");
}
| Solve Average 2 in dart | Solve Average 2 in dart
| Dart | mit | deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr... | |
92ff078db1b2fe4de0dc00f68eb5f484fbc90ae9 | tests/language_2/vm/exactness/future_or_regression_34238_test.dart | tests/language_2/vm/exactness/future_or_regression_34238_test.dart | import 'dart:async';
class A {
FutureOr<int> x;
}
Future<int> foo() async => 42;
main() {
var a = new A();
a.x = 33;
a.x = null;
a.x = foo();
}
| Add missing regression test for dartbug.com/34238 | [VM] Add missing regression test for dartbug.com/34238
Issue https://github.com/dart-lang/sdk/issues/34238
Change-Id: If4ee2e09cd6764dd3dd7f88dfc3d007989f68eb5
Reviewed-on: https://dart-review.googlesource.com/71245
Reviewed-by: Martin Kustermann <a35dd5b79fac84b2bb3b026a16b8becc55af5961@google.com>
Commit-Queue: Mar... | Dart | bsd-3-clause | dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-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,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-... | |
f8d7c703690f7bb57d02027ef024fd0bb378b2ad | test/benchmark.dart | test/benchmark.dart | library benchmark;
import "dart:io";
import "package:badger/parser.dart";
int benchmark(Function function, [int warmup = 5, int milliseconds = 1000]) {
var count = 0;
var elapsed = 0;
var watch = new Stopwatch();
while (warmup-- > 0) {
function();
}
watch.start();
while (elapsed < milliseconds) {
... | Add code to identify the slowest parses. | Add code to identify the slowest parses.
| Dart | mit | badger-lang/badger | |
da0524cd054082bb016193cf167865fd6aeb5631 | lib/src/server/hooks.dart | lib/src/server/hooks.dart | part of github.server;
class HookMiddleware {
final StreamController<HookEvent> _eventController = new StreamController<HookEvent>();
Stream<HookEvent> get onEvent => _eventController.stream;
void handleHookRequest(HttpRequest request) {
if (request.method != "POST") {
request.response.write("O... | part of github.server;
class HookMiddleware {
final StreamController<HookEvent> _eventController = new StreamController<HookEvent>();
Stream<HookEvent> get onEvent => _eventController.stream;
void handleHookRequest(HttpRequest request) {
if (request.method != "POST") {
request.response.write("O... | Change HookServer to only hook on with /hook | Change HookServer to only hook on with /hook
| Dart | mit | kasperpeulen/github.dart,marcojakob/github.dart,kasperpeulen/github.dart,bwu-dart-contributing/github.dart,bwu-dart-contributing/github.dart,marcojakob/github.dart,marcojakob/github.dart,kasperpeulen/github.dart,marcojakob/github.dart,bwu-dart-contributing/github.dart,bwu-dart-contributing/github.dart,kasperpeulen/gith... |
0b78ac7f3875695edcd4bd82a248d25074c83492 | tests/language_2/vm/smi_widening_test.dart | tests/language_2/vm/smi_widening_test.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.
// VMOptions=--deterministic --optimization-counter-threshold=102 --enable-inlining-annotations --optim... | Add regression test for buildbot flakiness due to smi-widening optimization in VM | [VM] Add regression test for buildbot flakiness due to smi-widening optimization in VM
The added test in this CL causes code to be optimized with _Smi's and
eliminated field guards. Field guards were eliminated due to usage of Smi ops,
which get removed due to the WidenSmiToInt32 optimization.
A use of the code with ... | 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-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,... | |
204dde75bf086c5e9f5666286d5a538362e78fa2 | lib/src/client.dart | lib/src/client.dart | library twitter.client;
import 'dart:async';
import 'dart:convert';
import 'package:http/http.dart' as http;
import 'package:oauth/oauth.dart' as oauth;
class Client extends oauth.Client {
Client(oauth.Tokens tokens)
: super(tokens);
@override
Future<http.Response> get(url, {Map<String,String> headers, body, ... | Create Client class which extends oauth.Client | Create Client class which extends oauth.Client
| Dart | mit | sh4869/twitter.dart,sh4869/twitter.dart | |
b1120dbe3635a291d2747141890dc94320f727d9 | infrastructure/bin/tools/gc_tasks.dart | infrastructure/bin/tools/gc_tasks.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.
// This tool cleans task objects from the project's datastore
import 'dart:io';
import 'dart:async';
... | Add tool to cleanup tasks | Add tool to cleanup tasks
| Dart | mit | lukechurch/sintr_live,lukechurch/sintr_live,lukechurch/sintr_live | |
0c797cce701c34046aa0ffcf1dcf93b750f3e398 | test/core/annotation_src_spec.dart | test/core/annotation_src_spec.dart | library annotation_src_spec;
import 'package:angular/core/annotation_src.dart';
import 'dart:mirrors';
import '../_specs.dart';
var _SYMBOL_NAME = new RegExp('"([^@]*).*"');
_getName(VariableMirror v) => _SYMBOL_NAME.firstMatch(v.simpleName.toString()).group(1);
Map<String, dynamic> variables(x) {
Map variables = ... | Verify clone does the right thing | test(annotation_src): Verify clone does the right thing
| Dart | mit | rkirov/angular.dart,winstonewert/angular.dart,SibuStephen/angular.dart,ronlobo/angular.dart,giovannicandido/angular.dart,hitesh97/angular.dart,hitesh97/angular.dart,winstonewert/angular.dart,giovannicandido/angular.dart,giovannicandido/angular.dart,trinarytree/angular.dart,SibuStephen/angular.dart,hitesh97/angular.dart... | |
f2da4b2010ae1754eac6bdae2620035c3801a02e | tests/language/src/ClosuresWithComplexParamsTest.dart | tests/language/src/ClosuresWithComplexParamsTest.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.
// Tests for parsing closures with complex parameter types.
main() {
test1();
test2();
test3();
... | Test with difficult to parse formal parameters. | Test with difficult to parse formal parameters.
BUG=
TEST=
Review URL: http://codereview.chromium.org//8343049
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@866 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/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,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-s... | |
edbfe46e259ba17babb49b0141d390a5162dbdfb | lib/core/device_info/device_info.dart | lib/core/device_info/device_info.dart | import 'dart:io';
import 'package:device_info_plus/device_info_plus.dart';
abstract class DeviceInfo {
/// The end-user-visible name for the device.
Future<String?> get model;
/// Returns `'ios'` if platform is iOS, otherwise returns `'android'`
Future<String> get platform;
/// A unique identifier for the... | Add DeviceInfo class to get model, platform, etc. | Add DeviceInfo class to get model, platform, etc.
| Dart | mit | wcomartin/PlexPy-Remote | |
6836cf98f361fea0f4ee5c075a043bd4cd691d4f | errors_warnings_study/bin/to_denorm_format.dart | errors_warnings_study/bin/to_denorm_format.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.
// This tool takes a time_to_fix file and emits summary information in a format
// that is easier to re... | Add tool to export timings | Add tool to export timings
| Dart | bsd-3-clause | lukechurch/dart-uxr,lukechurch/dart-uxr | |
c52b6fb9e8d6e62f3ba1d138121d0cf2c381f9d7 | packages/unit/test/engine/rect_test_disabled.dart | packages/unit/test/engine/rect_test_disabled.dart | import 'dart:sky';
import 'package:test/test.dart';
void main() {
test("rect accessors", () {
Rect r = new Rect.fromLTRB(1.0, 3.0, 5.0, 7.0);
expect(r.left, equals(1.0));
expect(r.top, equals(3.0));
expect(r.right, equals(5.0));
expect(r.bottom, equals(7.0));
});
test("rect created by width... | Fix Rect intersection; add test | Fix Rect intersection; add test
| Dart | bsd-3-clause | jason-simmons/flutter,Hixie/flutter,flutter/flutter,flutter/flutter,flutter/flutter,Hixie/flutter,cbracken/flutter,tvolkert/flutter,Hixie/flutter,cbracken/flutter,turnidge/flutter,tvolkert/flutter,cbracken/flutter,cbracken/flutter,aghassemi/flutter,tvolkert/flutter,turnidge/flutter,Hixie/flutter,aghassemi/flutter,Hixie... | |
036d5bbce4081eb2f63abcde6b5ef3c7b2233183 | tests/compiler/dart2js/inference/side_effects/out_of_order.dart | tests/compiler/dart2js/inference/side_effects/out_of_order.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.
// None of these methods have any side effects, but using [Selector] count to
// order side-effects com... | Add test for inadequate side-effects computation | Add test for inadequate side-effects computation
Change-Id: Ia4b192490f6b21a6f5201751ba05b50dd493efaf
Reviewed-on: https://dart-review.googlesource.com/21720
Reviewed-by: Sigmund Cherem <beaea8fd7d2a56555046ba4f362c8a93e3938576@google.com>
| Dart | bsd-3-clause | dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-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,dar... | |
36df126c2c1dd043b04e6cb3430f044ec265f95d | _tests/test/regression/1358_rebind_injector_test.dart | _tests/test/regression/1358_rebind_injector_test.dart | @TestOn('browser')
import 'package:angular/angular.dart';
import 'package:test/test.dart';
import '1358_rebind_injector_test.template.dart' as ng;
void main() {
ng.initReflector();
ReflectiveInjector parentInjector;
setUp(() {
parentInjector = ReflectiveInjector.resolveAndCreate([
new ClassProvider(... | Add a test for a customer use-case. | test(Core): Add a test for a customer use-case.
Closes #1361
PiperOrigin-RevId: 198746556
| Dart | mit | chalin/angular2,chalin/angular2,angulardart/angular,matanlurey/angular,chalin/angular2,angulardart/angular,matanlurey/angular,matanlurey/angular,angulardart/angular | |
c6dc82e82fe300ddd67c6b1686fc214d74fbb403 | tests/async/nested_awaited_arguments.dart | tests/async/nested_awaited_arguments.dart | f(s) {
return new Future(() => print(s));
}
g(x, y, z) {}
test1() async {
g(print('a'),
print('b'),
g(print('1'), await f('2'), print('3')));
}
test2() async {
g(print('a'),
g(print('1'), await f('2'), print('3')),
print('b'));
}
test3() async {
g(print('a'),
g(print('1'), awai... | Add a test for nested await argument subexpressions. | Add a test for nested await argument subexpressions.
| Dart | bsd-3-clause | googlearchive/async_await_transformer_deprecated,algobardo/async_await_transformer_deprecated | |
c123e91ddde0e745265ae02a80990a422c8f71a5 | runtime/tests/dart/src/DirectoryTest.dart | runtime/tests/dart/src/DirectoryTest.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.
//
// Directory listing test.
class DirectoryTest {
static void testListing() {
bool listedSometh... | Add simple directory listing test. | Add simple directory listing test.
For now, just test that we list something and that no errors occur.
R=sgjesse@google.com
BUG=
TEST=
Review URL: http://codereview.chromium.org//8222006
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@299 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,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,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,da... | |
373ce999004e033d4ec2e90c26dff65183eb8489 | Chapter_06/server_simple_get_and_put.dart | Chapter_06/server_simple_get_and_put.dart | import 'dart:io';
import 'package:http_server/http_server.dart' show VirtualDirectory;
final String PATH_TO_WEB_CONTENT = "web";
void main() {
HttpServer.bind(InternetAddress.LOOPBACK_IP_V4, 3031).then((HttpServer server) {
print("Serving at ${server.address}:${server.port}");
final root = Platform.script.r... | Add simple HTTP server implementation in support of Chap. 6 exercises | Add simple HTTP server implementation in support of Chap. 6 exercises
| Dart | mit | dart-archive/angular.dart.tutorial,vicb/angular.dart.tutorial,dart-archive/angular.dart.tutorial,dart-archive/angular.dart.tutorial,vicb/angular.dart.tutorial | |
69cc4eb4890f4845687febc8fa0f2c57a0e5a518 | lib/decorator/prop_map.dart | lib/decorator/prop_map.dart | library prop_map;
import 'dart:collection';
class PropMap extends MapBase<String, Object> {
final _src = {};
Object operator [](String key) => _src[key];
operator []=(String key, Object value) => _src[key] = value;
Iterable<String> get keys => _src.keys;
Object remove(String key) => _src.remove(key);
voi... | Create class that mimic a map to handle properties | Create class that mimic a map to handle properties
| Dart | mit | sawatani/ACRA-Viewer,sawatani/ACRA-Viewer | |
f1b7dff0c7d28bce8afe781a523294f0e092cd51 | sdk/lib/framework/app.dart | sdk/lib/framework/app.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 'layout2.dart';
import 'dart:sky' as sky;
class AppView {
RenderView _renderView;
void _beginFrame(double timeStamp) {
RenderNode.flushLa... | // 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 'layout2.dart';
import 'dart:sky' as sky;
class AppView {
AppView(RenderBox root) {
sky.view.setEventCallback(_handleEvent);
sky.view.s... | Rearrange AppView so that the constructor is first. | Rearrange AppView so that the constructor is first.
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1154403002
| Dart | bsd-3-clause | qiankunshe/sky_engine,zhangxq5012/sky_engine,lyceel/engine,devoncarew/sky_engine,iansf/sky_engine,flutter/engine,chinmaygarde/flutter_engine,lyceel/engine,iansf/sky_engine,flutter/engine,devoncarew/engine,zhangxq5012/sky_engine,qiankunshe/sky_engine,devoncarew/engine,Hixie/sky_engine,lyceel/engine,flutter/engine,rmacna... |
eb1924d786aae87d54784b7c03f8e8feb6d41662 | test/type_matcher_test.dart | test/type_matcher_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.
import 'package:matcher/matcher.dart';
import 'package:test/test.dart' show test, group;
import 'test_... | Add tests for all isXYZ matchers | test: Add tests for all isXYZ matchers
| Dart | bsd-3-clause | dart-lang/matcher | |
c1d1e3e6dda2529e7e3452253ca9dd1b18d6f1a9 | tests/language/src/ConstOptionalArgsNegativeTest.dart | tests/language/src/ConstOptionalArgsNegativeTest.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.
// Check that const objects (including literals) are immutable.
// should be 'const {}'
invalid([var p ... | Check constness of default args | Check constness of default args
BUG= http://code.google.com/p/dart/issues/detail?id=635
Review URL: http://codereview.chromium.org//8772070
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@2051 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/... | |
3e750a7e7920b3e9863656932a1a25006a73f8bc | tests/language_2/vm/unreachable_code_test.dart | tests/language_2/vm/unreachable_code_test.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.
// Verifies that VM is able to handle certain cases of unreachable code.
// VMOptions=--no_background_... | Add test for certain cases of unreachable code | [vm] Add test for certain cases of unreachable code
This is the follow-up for https://github.com/dart-lang/sdk/commit/1d10e037ef9e69424f4fce998b4857648a96e740.
Change-Id: Ifd35acb08904d34010ede0fe609076424d146374
Reviewed-on: https://dart-review.googlesource.com/c/81331
Commit-Queue: Alexander Markov <239e774fd29abc1... | Dart | bsd-3-clause | dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/... | |
b3d67c1b1f98d1cba40db8806a3575627e1fa35e | tests/standalone/io/http_reuse_server_port_test.dart | tests/standalone/io/http_reuse_server_port_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.
//
// VMOptions=
// VMOptions=--short_socket_read
// VMOptions=--short_socket_write
// VMOptions=--short... | Add test for reusing the port of a server socket, after the server's close future is completed. | Add test for reusing the port of a server socket, after the server's close future is completed.
BUG=
R=kustermann@google.com
Review URL: https://codereview.chromium.org//19653004
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@25257 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dar... | |
4c35141c60d2108f20de6cce2610c7cca947f695 | web/solver/msrand.dart | web/solver/msrand.dart | // Copyright 2014 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 solver.msrand;
import "dart:math";
class MSRandom implements Random {
int _seed;
MSRandom(this._seed);
int _rand() {
_seed = (_seed ... | Add the MS random number generator. | Add the MS random number generator.
| Dart | bsd-3-clause | abarth/freecell,abarth/freecell | |
9f308faa71667d8a8e0c7c0bdf9777224f36d4bd | pkg/analyzer/lib/src/lint/options_rule_validator.dart | pkg/analyzer/lib/src/lint/options_rule_validator.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:analyzer/analyzer.dart';
import 'package:analyzer/plugin/options.dart';
import 'package... | Add file missed in last commit (TBR) | Add file missed in last commit (TBR)
Review-Url: https://codereview.chromium.org/2562223002 .
| Dart | bsd-3-clause | dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/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,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-s... | |
53acb6be3a6680902f021cdd005c885eed4eca15 | lib/src/core/EventEmitter.dart | lib/src/core/EventEmitter.dart | part of ThreeD;
class EventEmitterEvent {
String type;
String message;
var content;
EventEmitterEvent({this.type, this.message, this.content});
}
class EventEmitter {
var listeners;
EventEmitter() : listeners = {};
addEventListener( type, listener ) {
if ( listeners[ type ] == null ) {
listeners[ ... | part of ThreeD;
class EventEmitterEvent {
String type;
String message;
var content;
EventEmitterEvent({this.type, this.message, this.content});
}
class EventEmitter {
var listeners;
EventEmitter() : listeners = {};
addEventListener( type, listener ) {
if ( listeners[ type ] == null ) {
listeners[ ... | Fix tabs on closing brace. | Fix tabs on closing brace.
| Dart | mit | brason/three.dart,brason/three.dart,hirosuke999/three.dart,threeDart/three.dart,hirosuke999/three.dart,threeDart/three.dart,james-storey/three.dart,threeDart/three.dart,hirosuke999/three.dart,james-storey/three.dart,brason/three.dart |
80fc4d54e5246a1b63384fe26d72278f8c090b16 | tests/language_2/nnbd/static_errors/use_nnbd_sdk_test.dart | tests/language_2/nnbd/static_errors/use_nnbd_sdk_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.
import "package:expect/expect.dart";
// SharedOptions=--enable-experiment=non-nullable
void main() {
}
... | Add a NNBD test that needs NNBD migrated SDK. | Add a NNBD test that needs NNBD migrated SDK.
I tested it locally by updating `SharedOptions` to include not only
`--enable-experiment=non-nullable`, but also the forced path to NNBD
SDK: `--dart-sdk=/Users/scheglov/Applications/dart-sdk-NNBD`.
This will fail for now, I will accept current bot failures.
Change-Id: I... | Dart | bsd-3-clause | dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,da... | |
622129b1e5df457cd09dd09568609176c0d70dcd | bin/testing.dart | bin/testing.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.md file.
import "package:testing/src/run_tests.dart" as run_tests;
main(List<String> arguments) => run_tests.... | Add entrypoint to make benefit pub run. | Add entrypoint to make benefit pub run.
R=karlklose@google.com
Review URL: https://codereview.chromium.org/2428903002 .
| Dart | bsd-3-clause | peter-ahe-google/testing | |
ea9f78fcc08ec967846a075d31c0bda81006e2d0 | tests/compiler/dart2js_native/native_field_optimization_test.dart | tests/compiler/dart2js_native/native_field_optimization_test.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 "dart:_js_helper";
import "package:expect/expect.dart";
// Test that compiler is cautious with ... | Test for limited optimizations on native fields | Test for limited optimizations on native fields
This captures some of the current status on how optimizations interact with native fields.
R=herhut@google.com
Review URL: https://codereview.chromium.org//1031073002
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@44783 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-ar... | |
f69020ddf7dff8cc13c2d137bcd3e60e80439e2c | test/build/includes_dart_files_from_dependencies_in_debug_test.dart | test/build/includes_dart_files_from_dependencies_in_debug_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:scheduled_test/scheduled_test.dart';
import '../descriptor.dart' as d;
import '../test... | Test that .dart files are copied to packages/ in debug mode. | Test that .dart files are copied to packages/ in debug mode.
BUG=https://code.google.com/p/dart/issues/detail?id=16567
R=nweiz@google.com
Review URL: https://codereview.chromium.org//149213009
git-svn-id: a962b240025cf0577aa172e20f49ccb159ba6be1@32566 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | maxwellpeterson-wf/pub,computmaxer/pub,dart-lang/pub,dart-lang/pub,cjkao/dart-pub | |
89b2bd9c8e10750c99364c01fcf3cc8be0f185dc | _tests/test/regression/browser/b_133253211_null_node_index_test.dart | _tests/test/regression/browser/b_133253211_null_node_index_test.dart | /// This regression test demonstrates why `View.injectorGet()` must null-check
/// the `nodeIndex` argument, a rare and complex case that requires a number of
/// conditions to be met.
///
/// (1) Create a component whose template contains a top-level view container;
/// this ensures the view container has a null p... | Add regression test for null `nodeIndex` argument passed to `View.injectorGet()` | Add regression test for null `nodeIndex` argument passed to `View.injectorGet()`
This demonstrates why `View.injectorGet()` must null-check the `nodeIndex`
argument, a rare and complex case that requires a number of conditions to be
met.
(1) Create a component whose template contains a top-level view container;
t... | Dart | mit | angulardart/angular,angulardart/angular,matanlurey/angular,matanlurey/angular,matanlurey/angular,angulardart/angular | |
14ede5da9f46480ec2152597d49b7738bfbe18f7 | sintr_common/lib/pubsub_utils.dart | sintr_common/lib/pubsub_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.
library sintr_common.pubsub_utils;
import 'dart:async';
import 'package:gcloud/pubsub.dart';
import "... | Add library to get a topic creating it if necessary | Add library to get a topic creating it if necessary
| Dart | apache-2.0 | lukechurch/sintr,lukechurch/sintr | |
cc574e5db65750ee480af9c88f9424e383cd2946 | tests/html/custom/regress_194523002_test.dart | tests/html/custom/regress_194523002_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.
// Regression test for CL 194523002.
library js_custom_test;
import 'package:unittest/unittest.dart';... | Add regression test for CL 194523002 | Add regression test for CL 194523002
BUG=
R=floitsch@google.com
Review URL: https://codereview.chromium.org//214443002
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@34470 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-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,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/s... | |
f5326262aef05055b1b976f852e8e4a3a0db8c0a | test/span_test.dart | test/span_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.
import 'dart:convert';
import 'package:source_span/source_span.dart';
import 'package:test/test.dart';
... | Add test to validate SourceSpan values for nodes | Add test to validate SourceSpan values for nodes
Preparing for https://github.com/dart-lang/yaml/issues/51
| Dart | mit | dart-lang/yaml | |
deb90d7932d6c2cea2a6f9a63feaf1b4b78d35cb | lib/src/utils.dart | lib/src/utils.dart | // Copyright (c) 2014, the Liquid 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 liquid.utils;
class AssertionFailure {
final String message;
const AssertionFailure(this... | Add functions for runtime checking | Add functions for runtime checking
| Dart | bsd-2-clause | localvoid/liquid,localvoid/liquid | |
f32a17031cc32239a62907fc91e957a18bcbfa9d | example/sensor.dart | example/sensor.dart | // Copyright (c) 2020, 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.
// Example of retrieving a sensor using the Sensor API.
// C++ implementation can be found here:
// ht... | Add trivial example of usage | Add trivial example of usage
| Dart | bsd-3-clause | timsneath/win32,timsneath/win32,timsneath/win32 | |
1da09e73571e562ee8f5dae5efb4ac5dc5241ac0 | moor/test/integration_tests/insert_integration_test.dart | moor/test/integration_tests/insert_integration_test.dart | import 'package:moor/moor.dart';
import 'package:moor_ffi/moor_ffi.dart';
@TestOn('vm')
import 'package:test/test.dart';
import '../data/tables/todos.dart';
void main() {
TodoDb db;
setUp(() {
db = TodoDb(VmDatabase.memory());
});
test('insertOnConflictUpdate', () async {
await db.into(db.categories... | Add small integration test for generated upserts | Add small integration test for generated upserts
| Dart | mit | simolus3/drift,simolus3/drift,simolus3/moor,simolus3/drift,simolus3/drift,simolus3/moor,simolus3/moor,simolus3/drift,simolus3/drift,simolus3/moor,simolus3/moor,simolus3/moor,simolus3/drift,simolus3/moor | |
ce0741bf89e582157ffa97177a365638968848b0 | lib/src/utility/string_to_uint8list.dart | lib/src/utility/string_to_uint8list.dart | import 'dart:convert' show UTF8;
import 'dart:typed_data' show Uint8List;
final _padding = [
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
];
Uint8List stringToUint8List(String value) =>
new Uint8List.fromList(
(UTF8.encode(value).toList()
..addAll... | Add the stringtoUint8List utility function | Add the stringtoUint8List utility function
| Dart | mit | axross/before-run | |
ad51922677658f9731ffe31e090a245df04b4fb8 | tests/language/src/ParserQuirksTest.dart | tests/language/src/ParserQuirksTest.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 a Dart implementation doesn't turn dynamic errors into
// compilation errors.
f(x) {}
cl... | Test that expose a few quirks in the Dart VM parser. | Test that expose a few quirks in the Dart VM parser.
Review URL: https://chromiumcodereview.appspot.com//9205003
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@6783 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/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-archive/dart-sdk,dar... | |
92cff9b7963d637283056407809b852725b2bef9 | tests/html/htmloptionscollection_test.dart | tests/html/htmloptionscollection_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.
#library('HTMLOptionsCollectionTest');
#import('../../lib/unittest/unittest.dart');
#import('../../lib/... | Add a simple test for HTMLOptionsCollection. | Add a simple test for HTMLOptionsCollection.
R=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10636002
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@8978 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,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,dartin... | |
becf615d11ec703ddafdbb1f2abc460f8a06ad20 | tests/language/constructor/missing_initializer_test.dart | tests/language/constructor/missing_initializer_test.dart | // Copyright (c) 2020, 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 it is an error for a class with no generative constructors to
// have a final instance var... | Add test for missing initializer on final instance variable | Add test for missing initializer on final instance variable
Add a test where a class that has no generative constructors
declares an instance variable which is final and has no initializing
expression. With https://github.com/dart-lang/language/pull/1130 this
is an error, and that error is expected by the test. Also t... | 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 | |
2baf67574211c661902852dada018e2cea9faf36 | tests/language_2/subtyping_static/future_or_subtype_test.dart | tests/language_2/subtyping_static/future_or_subtype_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.
import 'dart:async';
import 'package:expect/expect.dart';
class A implements Future<Future<A>> {
@ov... | Add test demonstrating that FutureOr<A> <: FutureOr<B> =/=> A <: B. | Add test demonstrating that FutureOr<A> <: FutureOr<B> =/=> A <: B.
Change-Id: Iedc60b57f80e77784e54b8d5ed9076c5016edd2f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121653
Commit-Queue: Mayank Patke <e0355b78204b67a55a952941c68c8f1b40235938@google.com>
Reviewed-by: Leaf Petersen <9bef692239b5f624cec8e2cd... | Dart | bsd-3-clause | dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-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,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/... | |
3aea757c101279e2a03788b579b0eb17729e6d4b | test/serve/native_watch_replaced_file_test.dart | test/serve/native_watch_replaced_file_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 'dart:async';
import 'dart:io';
import 'package:path/path.dart' as p;
imp... | Test that safe saves are picked up by pub serve. | Test that safe saves are picked up by pub serve.
BUG=https://code.google.com/p/dart/issues/detail?id=21402
R=nweiz@google.com
Review URL: https://codereview.chromium.org//870703003
git-svn-id: a962b240025cf0577aa172e20f49ccb159ba6be1@43082 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | cjkao/dart-pub,computmaxer/pub,maxwellpeterson-wf/pub,dart-lang/pub,dart-lang/pub | |
48a1c126cf5b5563921b7838f91a7030b867feab | sort/selection_sort/dart/selection_sort.dart | sort/selection_sort/dart/selection_sort.dart | /// Selection Sort the input list
void selectionSort(List<int> items) {
// Iterate through the array, knowing left-of-i is sorted and looking
// for the lowest to-the-right element to place at the end of left
for (int i = 0; i < items.length - 1; i++) {
int lowestIndex = i;
for (int j = i + 1; j < i... | Add Dart implementation of Selection Sort | Add Dart implementation of Selection Sort
| Dart | cc0-1.0 | ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovs... | |
0f47af56578d7e2ebd403b801727af088e1e7247 | tests/language/src/ConstructorNamedArgumentsTest.dart | tests/language/src/ConstructorNamedArgumentsTest.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.
// Dart test program for default constructors.
String message;
foo() {
message += 'foo';
return 1;... | Support named parameters for super initializers and redirections. | Support named parameters for super initializers and redirections.
Review URL: https://chromiumcodereview.appspot.com//9454014
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@4606 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/... | |
82fc834632e03ecc2e538e65675106f9fcc82f81 | tests/language/function_subtype_typearg5_test.dart | tests/language/function_subtype_typearg5_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.
// Check function subtyping of type arguments. These cases use typedefs as type
// arguments, and the t... | Add language test with nested function typedef with two references to argument | Add language test with nested function typedef with two references to argument
R=sigmund@google.com
Review URL: https://codereview.chromium.org/2297783002 .
| 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,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/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-lang/sdk,d... | |
682e5ee592c369f2ee374d0af7a2b588f325775f | tool/generator/test/generator_neutrality_test.dart | tool/generator/test/generator_neutrality_test.dart | import 'dart:ffi';
import 'package:ffi/ffi.dart';
import 'package:test/test.dart';
import 'package:win32/win32.dart';
// This test prevents CI from failing on other platforms (GitHub Actions fails
// unless at least one test is run successfully.)
void main() {
test('Neutral test to give non-Windows platforms someth... | Add platform-independent test to fix Ubuntu flake | Add platform-independent test to fix Ubuntu flake
| Dart | bsd-3-clause | timsneath/win32,timsneath/win32,timsneath/win32 | |
784f3e0b48fea6cabafd18c622e3e877bdf8a0b9 | _tests/test/core/change_detection/expect_no_changes_dev_mode_test.dart | _tests/test/core/change_detection/expect_no_changes_dev_mode_test.dart | import 'package:angular_test/angular_test.dart';
import 'package:test/test.dart';
import 'package:angular/angular.dart';
import 'expect_no_changes_dev_mode_test.template.dart' as ng_generated;
void main() {
ng_generated.initReflector();
test('should throw during change detection', () async {
final testBed = ... | Add a test that shows that "expression has changed" works. | test(Core): Add a test that shows that "expression has changed" works.
PiperOrigin-RevId: 183892699
| Dart | mit | chalin/angular2,matanlurey/angular,angulardart/angular,kevmoo/angular,matanlurey/angular,kevmoo/angular,angulardart/angular,chalin/angular2,chalin/angular2,matanlurey/angular,kevmoo/angular,angulardart/angular | |
f5f536351df0d18a7dbc7fde83fba352bc2b22ca | tests/language/mul_recipr_test.dart | tests/language/mul_recipr_test.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 test program checking that optimizations are not too aggresive and
// incorrect:
// - (a * (1.0 ... | Add check that no aggressive & incorrect optimizations is done. | Add check that no aggressive & incorrect optimizations is done.
R=sra@google.com
Review URL: https://codereview.chromium.org//1033873003
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@44746 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dartino/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,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sd... | |
ba2d4180c3869a7de3dac407587b05c625bd399c | bin/compute_floating_setup.dart | bin/compute_floating_setup.dart | /// Computes what the probability should be set for each wheel if
/// there are five of them and success is 3+ successful wheels.
library compute_floating_setup;
import 'dart:math';
void main() {
for (int i = 0; i <= 100; i++) {
final p = i / 100;
print('$p, ${computeTotalProbability(p)}');
}
}
double co... | Add computation for a floating point wheel | Add computation for a floating point wheel
Instead of slot reels (with a finite amount of Xs and Os), we are now using “wheels of fortune”. These can have any probability of success. We use them in a row of five, and we want to know what the probability is of them landing on a success with at least a 3:2 advantage.
| Dart | mit | filiph/slot_machine,filiph/slot_machine | |
8e5a73ede97769a93e770b83a9a0351654c45028 | _tests/test/common/forms/ng_control_repeated_test.dart | _tests/test/common/forms/ng_control_repeated_test.dart | @Tags(const ['codegen'])
@TestOn('browser')
import 'dart:async';
import 'package:angular_test/angular_test.dart';
import 'package:test/test.dart';
import 'package:angular/angular.dart';
void main() {
tearDown(disposeAnyRunningTest);
// Regression test for https://github.com/dart-lang/angular2/issues/164.
test(... | @Tags(const ['codegen'])
@TestOn('browser')
import 'dart:async';
import 'package:angular_test/angular_test.dart';
import 'package:test/test.dart';
import 'package:angular/angular.dart';
void main() {
tearDown(disposeAnyRunningTest);
// Regression test for https://github.com/dart-lang/angular2/issues/164.
test(... | Replace FORM_DIRECTIVES with formDirectives in one of the tests, this seems to work. | Replace FORM_DIRECTIVES with formDirectives in one of the tests, this seems to
work.
PiperOrigin-RevId: 163141550
| Dart | mit | kevmoo/angular,kevmoo/angular,matanlurey/angular,angulardart/angular,chalin/angular2,chalin/angular2,chalin/angular2,matanlurey/angular,angulardart/angular,matanlurey/angular,kevmoo/angular,angulardart/angular |
33f58d5b69481010cce7d4e8ba9497523e4d2277 | tests/compiler/dart2js/end_to_end/dump_info_test.dart | tests/compiler/dart2js/end_to_end/dump_info_test.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.
// Test that dump-info has no effect on the compiler output.
import 'dart:io';
import 'package:path/p... | Add dump-info end to end test | Add dump-info end to end test
This test gives the same coverage we are getting from the mist-dump-info bots
today.
Change-Id: Ie6f7f8eba9b5de5c3983d9066aa29709ae4200a4
Reviewed-on: https://dart-review.googlesource.com/63541
Reviewed-by: Johnni Winther <0f64ef784d57ffb064b634040f9eeba0d33d0be4@google.com>
| 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,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lan... | |
cf2daf486f9707bebe1b2769c85a7589c583be01 | tests/language_2/redirecting_factory_upcast_test.dart | tests/language_2/redirecting_factory_upcast_test.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.
class A implements B {
var x;
A(Object this.x);
}
class B {
factory B(String s) = A;
}
main() {... | Test of dynamic argument type check for redirecting factories. | Test of dynamic argument type check for redirecting factories.
Verify that dynamic type checks are inserted to check arguments to
redirecting factories against the redirector, even when they would
be valid arguments to the redirectee.
Closes https://github.com/dart-lang/sdk/issues/31590
Change-Id: Ic439fd1e125ae8ae1... | Dart | bsd-3-clause | dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,da... | |
5dee6d868d55da354135652c542abdfb98f39c6d | lib/dartivity_cache.dart | lib/dartivity_cache.dart | /*
* Package : dartivity_database
* Author : S. Hamblett <steve.hamblett@linux.com>
* Date : 05/011/2015
* Copyright : S.Hamblett 2015
*/
part of dartivity_database;
class DartivityCache {
/// The cache
Map<String, dynamic> _cache;
DartivityCache() {
_cache = new Map<String, dynamic>();
}
/// ... | Add the general purpose cache | Add the general purpose cache
| Dart | apache-2.0 | shamblett/dartivity_database | |
177f960ef09c3129d7825b48bea74f6f379cb869 | lib/more.dart | lib/more.dart | /// More Dart — Literally.
export 'package:more/async.dart';
export 'package:more/cache.dart';
export 'package:more/char_matcher.dart';
export 'package:more/collection.dart';
export 'package:more/hash.dart';
export 'package:more/iterable.dart';
export 'package:more/math.dart';
export 'package:more/number.dart';
export ... | Create a parent package that imports all extensions at once. | Create a parent package that imports all extensions at once.
| Dart | mit | renggli/dart-more,renggli/dart-more | |
c8e6df9512a9a232a9fbff15595402d9b4922276 | tests/language/constant_type_literal_test.dart | tests/language/constant_type_literal_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.
// Test for type literals as compile-time constants.
class C<T> {
void m() {
const List lst = co... | Add const type literal test. | Add const type literal test.
BUG=
R=karlklose@google.com
Review URL: https://codereview.chromium.org//25535009
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@28794 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-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-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,... | |
d15f7ad649fecb0b61f44e3fb14d2556d14d4129 | infrastructure/lib/in_memory_shuffler.dart | infrastructure/lib/in_memory_shuffler.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.
// This file is responsible for accepting the results of a map oepration
// and structuring it ready to... | Add an in memory shuffler | Add an in memory shuffler
| Dart | mit | lukechurch/sintr_live,lukechurch/sintr_live,lukechurch/sintr_live | |
a57316f7e05891b1ce0858a935282cd01711e5bd | lib/src/service/rule_service.dart | lib/src/service/rule_service.dart | import 'dart:async';
import 'package:angular/angular.dart';
import 'package:http/http.dart';
import '../data_model/create_user_request.pb.dart';
import '../data_model/rule.pb.dart';
/// A class to interact with the Rules Builder server.
@Injectable()
class RuleService {
/// The base URL of the Rules Builder server... | Add rule service in client to interact with rule server | Add rule service in client to interact with rule server
| Dart | apache-2.0 | googleinterns/dv360-excel-plugin,googleinterns/dv360-excel-plugin | |
fbc2abdb6677be1ba0fb6ae29b9d379ad0ceeb0d | test/path_resolver_test.dart | test/path_resolver_test.dart | // Copyright 2015 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... | Add test for path resolution | Add test for path resolution
| Dart | apache-2.0 | google/dart-scissors,google/dart-scissors,google/dart-scissors,google/dart-scissors | |
c7be5d9d35c207189e6b206194c4d2deb9770814 | tests/compiler/dart2js/sourcemaps/translate_dart2js_stacktrace.dart | tests/compiler/dart2js/sourcemaps/translate_dart2js_stacktrace.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 'dart:io';
import 'package:args/args.dart';
import 'package:http/http.dart' as http;
import 'pac... | Test tool: translate dart2js stacktrace | Test tool: translate dart2js stacktrace
This is a first stab at an internal tool that can translate a dart2js
stacktrace to a "dart stacktrace".
First use figuring out a stacktrace in observatory which was done like
this:
dart translate_dart2js_stacktrace.dart http://localhost:9999/main.dart.js.map
<then copy paste ... | Dart | bsd-3-clause | dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-s... | |
3291ecfbc9c480fb3d59272ee6021123eaaedbaf | tests/compiler/dart2js_native/dispatch_property_initialization_test.dart | tests/compiler/dart2js_native/dispatch_property_initialization_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.
// Test for initialization of dispatchPropertyName.
import "package:expect/expect.dart";
import 'dart:... | Add another test for initializing dispatchPropertyName that runs outside the browser | Add another test for initializing dispatchPropertyName that runs outside the browser
R=johnniwinther@google.com
BUG=
Review URL: https://codereview.chromium.org/2359023002 .
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-... | |
90e352f3a35577850fbeda403e6bc507bb72a07a | tests/compiler/dart2js/list_tracer_typed_data_length_test.dart | tests/compiler/dart2js/list_tracer_typed_data_length_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:expect/expect.dart';
import "package:async_helper/async_helper.dart";
import 'package:c... | Add a test for inferring the length of typed data lists. | Add a test for inferring the length of typed data lists.
BUG=
R=floitsch@google.com
Review URL: https://codereview.chromium.org//424663003
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@38722 260f80e4-7a28-3924-810f-c04153c831b5
| 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,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,da... | |
7606d9ad6f850af146fbf24a305339e3761d6846 | lib/core/helpers/ip_address_helper.dart | lib/core/helpers/ip_address_helper.dart | import 'dart:io';
class IpAddressHelper {
/// Returns true if IP address is not a loopback, link local, or private IP
///
/// Throws a generic exception if [ipAddress] cannot be parsed
static bool isPublic(String ipAddress) {
final parsedAddress = InternetAddress.tryParse(ipAddress);
if (parsedAddress... | Create helper to detect public IP addresses. | Create helper to detect public IP addresses.
| Dart | mit | wcomartin/PlexPy-Remote | |
baf216d700e21551c5f6cfb816b4f0c9d243ae47 | test/test_furi_op.dart | test/test_furi_op.dart | import "package:unittest/unittest.dart";
import "package:furi/furi.dart";
class STest extends ToStringOp {
String call() => "my calculated string";
}
void main(){
group( "basic Op extension", (){
test( "ToStringOp", (){
expect( new STest()(), equals("my calculated string") );
});
});
} | Add some Op tests, and some more docs. | Add some Op tests, and some more docs.
| Dart | mit | Nanonid/furi | |
b4f6abbbc90e3f28985bc50c8b8b12ffecb3bc0c | solutions/uri/1003/1003.dart | solutions/uri/1003/1003.dart | import 'dart:io';
void main() {
int a = int.parse(stdin.readLineSync() ?? '');
int b = int.parse(stdin.readLineSync() ?? '');
int soma = a + b;
print("SOMA = $soma");
}
| Solve Simple Sum in dart | Solve Simple Sum in dart
| Dart | mit | deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr... | |
8ef89c1525f40fb2398f4c94e060f16dd4a2e8e2 | solutions/uri/1009/1009.dart | solutions/uri/1009/1009.dart | import 'dart:io';
void main() {
String _ = stdin.readLineSync() ?? '';
double a = double.parse(stdin.readLineSync() ?? '');
double b = double.parse(stdin.readLineSync() ?? '');
double salary = a + b * 0.15 * 100 / 100;
print("TOTAL = R\$ ${salary.toStringAsFixed(2)}");
}
| Solve Salary with Bonus in dart | Solve Salary with Bonus in dart
| Dart | mit | deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr... | |
2d92a26cca388b4b4aa217e9ad3e67696d52413b | tests/language/null_aware/prefix_not_shortening_test.dart | tests/language/null_aware/prefix_not_shortening_test.dart | // Copyright (c) 2020, 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 C {
C e() => this;
C operator -() => this;
C operator ~() => this;
}
void main() {
final... | Test error for -e and ~e when e is potentially nullable | Test error for -e and ~e when e is potentially nullable
This verifies that the operators `unary-` and `~` do not participate
in null-shorting. Cf. https://github.com/dart-lang/language/issues/1081.
Change-Id: Iba446724f00c1c4aaedb4be4425e69fb52cdb5c9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/166627
Re... | 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 | |
36b2520ca94bab4b85730450d15e3fd2fb6bb0bd | tests/language_2/nnbd/static_errors/subtype_of_never_test.dart | tests/language_2/nnbd/static_errors/subtype_of_never_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 it is an error for a class to extend, i... | Add a test of creating a subtype of Never | Add a test of creating a subtype of Never
Change-Id: I9d28868667667cca5eb122e33226b21850b062bd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/101067
Reviewed-by: Konstantin Shcheglov <09e4d7516628963212bf4aace2f97603d2b706e4@google.com>
Reviewed-by: Paul Berry <72d414e3a99fb120308437779d51667bcc0984eb@googl... | 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-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lan... | |
84b6b9a6dbc797df2d58e0f9a3cc356b2c839680 | lib/core/helpers/value_helper.dart | lib/core/helpers/value_helper.dart | import 'package:meta/meta.dart';
import 'package:quiver/strings.dart';
enum CastType {
bool,
int,
double,
string,
}
class ValueHelper {
/// Casts [value] to specified [CastType].
///
/// If casting fails returns null.
/// If nullEmptyString is true returns null when item is empty string.
static dyna... | Create helper for casting value to type. | Create helper for casting value to type.
| Dart | mit | wcomartin/PlexPy-Remote | |
b46be9ae407c6c7adfbb691ccdf775d8634806ec | lib/model/a11y/active_item_directive.dart | lib/model/a11y/active_item_directive.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' as dom;
import 'package:angular/angular.dart';
import 'package:js/js_util.dart' as ... | Create a ActiveItemDirective that will replace the ActiveItemMixin. | Create a ActiveItemDirective that will replace the ActiveItemMixin.
This allows more performant code when lists aren't using the active logic, which seems to be a good amount of the instances, and allows for lists to work better on mobile when they don't use this logic. Anything that has a mouseover, mouseenter, or mo... | Dart | bsd-3-clause | angulardart/angular_components,angulardart/angular_components,angulardart/angular_components | |
779f469b7923b574ea9d6bebbc9e3eab09de9641 | mono_repo/test/travis_integration_test.dart | mono_repo/test/travis_integration_test.dart | @TestOn('!windows')
import 'package:mono_repo/src/package_config.dart';
import 'package:term_glyph/term_glyph.dart' as glyph;
import 'package:test/test.dart';
import 'package:test_descriptor/test_descriptor.dart' as d;
import 'package:test_process/test_process.dart';
import 'shared.dart';
void main() {
glyph.ascii... | Validate the output and behavior of the travis shell script | Validate the output and behavior of the travis shell script
| Dart | bsd-3-clause | google/mono_repo.dart,google/mono_repo.dart | |
4048546485dd99f23d55397f8d99f7c20ef2fa0d | bin/tictac_test.dart | bin/tictac_test.dart | import 'dart:async';
import 'package:tictac/util.dart';
main(){
var exitCodes = [];
var files = findTestFiles();
for(final test in files){
exitCodes.add(startProcess([test]));
}
Future.wait(exitCodes).then((codes){
for(int i=0; i< codes.length; i++){
if(codes[i] != 0){
print('Error runn... | Add tictac test command to run all tests in test dir. | Add tictac test command to run all tests in test dir.
| Dart | bsd-3-clause | NanoSN/tictac,NanoSN/tictac | |
1eef8bb909b7433aaa695928ab4410913909e993 | tests/compiler/dart2js_native/fake_thing_2_test.dart | tests/compiler/dart2js_native/fake_thing_2_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:_js_helper";
import "package:expect/expect.dart";
// Test that native objects cannot acci... | Add version of fake_thing_test that is expected to passes. | Add version of fake_thing_test that is expected to passes.
BUG=
R=karlklose@google.com
Review URL: https://codereview.chromium.org//516923002
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@39900 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,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,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,da... | |
0733c1f6b1942262d3a7ab6a7b7319baadc93799 | tests/lib/async/regress46319_test.dart | tests/lib/async/regress46319_test.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.
// Regression test for https://github.com/dart-lang/sdk/issues/46319.
import 'dart:async';
void main(... | Add unspecified nullability regression test | [ddc] Add unspecified nullability regression test
Change-Id: If82ef47aac1d67c5f6db636522ed0ef7de180f8d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/203121
Reviewed-by: Mark Zhou <654f5fe0c4ca6c799b0e735dcf3fc1c389f35bf9@google.com>
Reviewed-by: Sigmund Cherem <beaea8fd7d2a56555046ba4f362c8a93e3938576@goog... | 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 | |
4907874f7b442f27ea77d99085bc58e65193cdc5 | lib/core/widgets/icon_card.dart | lib/core/widgets/icon_card.dart | import 'package:flutter/material.dart';
import 'package:websafe_svg/websafe_svg.dart';
class IconCard extends StatelessWidget {
final String assetPath;
final Color backgroundColor;
final Widget details;
const IconCard({
Key key,
@required this.assetPath,
this.backgroundColor,
this.details,
}... | Create icon card global widget. | Create icon card global widget.
| Dart | mit | wcomartin/PlexPy-Remote | |
d5fdc2e20ac744096ba84c19c908bbc064ff04a1 | lib/src/remove_doc_tags.dart | lib/src/remove_doc_tags.dart | /// Returns [code] with filtered out doc tag comment lines.
String removeDocTags(String code) =>
code.split('\n').where(_isNotDocTagComment).join('\n');
final _docTags = ['#docregion', '#enddocregion', '#docplaster'];
final _commentPrefixes = ['//', '<--'];
/// Returns true if [line] is a not a comment line with ... | Add logic to remove doc tag comments from the examples code. | Add logic to remove doc tag comments from the examples code.
| Dart | mit | dart-archive/dart-doc-syncer | |
42366657305426230b925b856dff313204368914 | visitor/lib/inventory_internal_iterator.dart | visitor/lib/inventory_internal_iterator.dart | library inventory;
App app(name, {price: 0}) => new App(name)..netPrice = price;
Mobile mobile([name]) => new Mobile()..name = name;
Tablet tablet([name]) => new Tablet()..name = name;
Laptop laptop([name]) => new Laptop()..name = name;
abstract class Inventory {
String name;
Inventory(this.name);
double netPr... | Add internal iterator node (for visitors) | Add internal iterator node (for visitors)
It is currently an exact copy of the regular inventory node structure
| Dart | mit | eee-c/design-patterns-in-dart,eee-c/design-patterns-in-dart,eee-c/design-patterns-in-dart | |
e0fc6df9a31d71b12df01fa1ab71eabebb3dd9d5 | examples/fn2/container.dart | examples/fn2/container.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' as sky;
import 'package:sky/framework/fn2.dart';
class ContainerApp extends App {
UINode build() {
return new EventListenerNode(
... | Mark fn2's EventListenerNode work for PointerEvent | Mark fn2's EventListenerNode work for PointerEvent
Prevously we listened for events on the document and then walked up the
component hierarchy looking for EventListenerNodes. Now we do something similar
by hooking the event dispatching logic in the AppView.
R=eseidel@chromium.org
Review URL: https://codereview.chrom... | Dart | bsd-3-clause | flutter/flutter,flutter/flutter,tvolkert/flutter,flutter/flutter,tvolkert/flutter,cbracken/flutter,cbracken/flutter,cbracken/flutter,cbracken/flutter,jason-simmons/flutter,Hixie/flutter,Hixie/flutter,flutter/flutter,turnidge/flutter,tvolkert/flutter,tvolkert/flutter,flutter/flutter,Hixie/flutter,turnidge/flutter,tvolke... | |
fa8ba53b521d7d2c6953ece3f4764076a75847d6 | tools/bots/extend_results.dart | tools/bots/extend_results.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.
// Add fields with data about the test run and the commit tested, and
// with the result on the last bu... | Add a script that appends fields with previous results to result data | [infra] Add a script that appends fields with previous results to result data
Change-Id: I19ea044308744c16caee47f4755a18fc19990c77
Reviewed-on: https://dart-review.googlesource.com/c/94544
Reviewed-by: Jonas Termansen <092ec58085ae5e368bc39d18752740ff81a2d09c@google.com>
| Dart | bsd-3-clause | dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/s... | |
fc0564b280a7da0a33b7021f29feccf590be66ac | test/base/documentable_test.dart | test/base/documentable_test.dart | import 'package:test/test.dart';
import 'package:aqueduct/aqueduct.dart';
main() {
test("APIResponse empty schema", () {
var response = new APIResponse()
..statusCode = 200;
expect(response.asMap()["schema"], isNull);
});
} | Add test for null schema | Add test for null schema
| Dart | bsd-2-clause | stablekernel/aqueduct,stablekernel/aqueduct,stablekernel/aqueduct | |
483a61638d3993a0970e24d8d1bff7776cc8deeb | lib/core/requirements/tautulli_version.dart | lib/core/requirements/tautulli_version.dart | import 'package:version/version.dart';
class MinimumVersion {
/// Minimum Tautulli version required for Tautulli Remote to function.
static Version tautulliServer = Version(2, 6, 6);
}
| Add minimum server version requirement. | Add minimum server version requirement.
| Dart | mit | wcomartin/PlexPy-Remote | |
b7eeacfc24dd8b926988b17c32d04a887156e1c3 | tools/bots/post_results_to_pubsub.dart | tools/bots/post_results_to_pubsub.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.
// Post results from Dart continuous integration testers to Cloud Pub/Sub.
import 'dart:convert';
impo... | Add script to publish results.json to Cloud Pub/Sub | [infra] Add script to publish results.json to Cloud Pub/Sub
Change-Id: I0f04c749710e4882330d3e2fb09a4123264f3009
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/111321
Reviewed-by: Alexander Thomas <29642742b6693024c89de8232f2e2542cf7eedf7@google.com>
| Dart | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dar... | |
961baa9ede35a33eebcb4a01a6bc8dacd1ff4d6b | tool/zone_dump.dart | tool/zone_dump.dart | /// Print Location details
import 'dart:io';
import 'package:args/args.dart';
import 'package:timezone/standalone.dart';
import 'package:timezone/timezone.dart';
void main(List<String> arguments) {
// Parse CLI arguments
final parser = new ArgParser()
..addOption('source', abbr: 'd', defaultsTo: 'packages/timezo... | Add script to dump location data | Add script to dump location data
| Dart | bsd-2-clause | localvoid/timezone,srawlins/timezone,srawlins/timezone,localvoid/timezone,srawlins/timezone | |
6ccb0387735e30f4a00c7e3bf08f8a8b60295134 | test/core/view/view_child_regression_test.dart | test/core/view/view_child_regression_test.dart | import 'package:angular2/angular2.dart';
import 'package:angular_test/angular_test.dart';
import 'package:test/test.dart';
void main() {
test('$ViewChild#nativeElement should be accessible', () async {
final fixture = await new NgTestBed<ViewChildTest>().create();
await fixture.update((component) {
exp... | Add a regression test for accessing @ViewChild->ElementRef. | test(ViewChild): Add a regression test for accessing @ViewChild->ElementRef.
We had a rollback due to using identical(foo.runtimeType, otherType) that would have been caught if we had at least one dart2js test executing this code branch. I'd like this to be the first one.
# Only impacting blaze test //third_party/dar... | Dart | mit | matanlurey/angular,matanlurey/angular,angulardart/angular,kevmoo/angular,kevmoo/angular,chalin/angular2,chalin/angular2,kevmoo/angular,matanlurey/angular,angulardart/angular,chalin/angular2,angulardart/angular | |
28466841e369f859b5f5f1375ce8ee53d524e26f | test/transformers/flat_map_test.dart | test/transformers/flat_map_test.dart | library buffer_when_test;
import 'dart:async';
import 'package:guinness/guinness.dart';
import 'package:frappe/src/transformers.dart';
import 'util.dart';
void main() => describe("FlatMap", () {
StreamController controller;
Map<int, StreamController> spawnedControllers;
beforeEach(() {
controller = new Str... | Add flat map transformer tests | Add flat map transformer tests
| Dart | mit | danschultz/frappe,devoncarew/frappe,danschultz/frappe,Andersmholmgren/frappe,Andersmholmgren/frappe,devoncarew/frappe | |
f9481c503a3da3aba7de5bc71af114086d514cb2 | angular_test/test/frontend/stabilizer_test.dart | angular_test/test/frontend/stabilizer_test.dart | @TestOn('browser')
import 'dart:async';
import 'package:test/test.dart';
import 'package:angular/angular.dart';
import 'package:angular_test/angular_test.dart';
import 'package:angular_test/src/errors/will_never_stabilize.dart';
import 'stabilizer_test.template.dart' as template;
void main() {
test('should throw e... | Add regression test for a test bed failing to stabilize | Add regression test for a test bed failing to stabilize
The test bed should be throwing an error if the test bed gets stuck in an
infinite, asynchronous change detection loop, but currently just hangs.
PiperOrigin-RevId: 277105349
| Dart | mit | angulardart/angular,angulardart/angular,angulardart/angular |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.