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
c21a4bbc397144655d09c278c1ac635762dc3fd2
drift/test/types/blob_test.dart
drift/test/types/blob_test.dart
import 'dart:convert'; import 'package:drift/drift.dart'; import 'package:test/test.dart'; void main() { test('maps without transormation', () { const type = BlobType(); final data = Uint8List.fromList(List.generate(256, (i) => i)); expect(type.mapToSqlVariable(data), data); expect(type.mapFromData...
import 'dart:convert'; import 'package:drift/drift.dart'; import 'package:test/test.dart'; void main() { test('maps without transformation', () { const type = BlobType(); final data = Uint8List.fromList(List.generate(256, (i) => i)); expect(type.mapToSqlVariable(data), data); expect(type.mapFromDat...
Test for blob by string
Test for blob by string
Dart
mit
simolus3/moor,simolus3/moor,simolus3/drift,simolus3/drift,simolus3/moor,simolus3/drift,simolus3/moor,simolus3/drift,simolus3/moor,simolus3/moor,simolus3/drift,simolus3/drift,simolus3/moor,simolus3/drift
c90b34c9bdffb74041267048dccf6b13485b496f
lib/model/ui/has_factory.dart
lib/model/ui/has_factory.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 separate from has_renderer so it doesn't add in the angular // dependency and so '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 separate from has_renderer.dart so it doesn't add the angular // dependency and transit...
Clarify file comment about angular dependency.
Clarify file comment about angular dependency. Based on feedback from external sync https://github.com/dart-lang/angular_components/pull/203 PiperOrigin-RevId: 179729861
Dart
bsd-3-clause
angulardart/angular_components,angulardart/angular_components,angulardart/angular_components
f907210d209991f4bc880aeb2bb4e480fa1d4914
lib/behaviors/base_component_behaviors.dart
lib/behaviors/base_component_behaviors.dart
part of nest_ui; class BaseComponentBehaviors { Component component; BaseComponentBehaviors(this.component) {} // Show-hide behaviors // hide() => this.dom_element.style.display="none"; show() => this.dom_element.style.display=""; toggleDisplay() => _toggle( [show, hide], this.dom_element.styl...
part of nest_ui; class BaseComponentBehaviors { Component component; BaseComponentBehaviors(this.component) {} // Show-hide behaviors // hide() => this.dom_element.style.display="none"; show() => this.dom_element.style.display=""; toggleDisplay() => _toggle( [show, hide], this.dom_element.styl...
Add disabling/enabling behavior into BaseComponentBehavior class
Add disabling/enabling behavior into BaseComponentBehavior class
Dart
mit
snitko/dartifact
75b4720c1d8d9e42897dd172b01307cf9a6cc8a7
widgets/lib/common/spark_widget.dart
widgets/lib/common/spark_widget.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; import 'dart:html'; import 'package:polymer/polymer.dart'; bool IS_DART2JS = identical(1, 1....
// 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; import 'dart:html'; import 'package:polymer/polymer.dart'; bool IS_DART2JS = identical(1, 1....
Remove overridden applyAuthorStyles (obsoleted in Chrome M34)
Remove overridden applyAuthorStyles (obsoleted in Chrome M34)
Dart
bsd-3-clause
valmzetvn/chromedeveditor,2947721120/choredev,valmzetvn/chromedeveditor,vivalaralstin/chromedeveditor,devoncarew/spark,2947721120/choredev,beaufortfrancois/chromedeveditor,hxddh/chromedeveditor,hxddh/chromedeveditor,beaufortfrancois/chromedeveditor,vivalaralstin/chromedeveditor,vivalaralstin/chromedeveditor,googlearchi...
10814e619d2a3a870e1d188dcbfe78f428011dbf
lib/models/position.dart
lib/models/position.dart
class Position { Position._({ this.longitude, this.latitude, this.accuracy, this.altitude, this.altitudeAccuracy, this.heading, this.speed, this.speedAccuracy }); final double latitude; final double longitude; final double altitude; final double accuracy; final double alt...
/// Contains detail location information. class Position { Position._({ this.longitude, this.latitude, this.accuracy, this.altitude, this.heading, this.speed, this.speedAccuracy }); /// Gets or sets the location latitude. final double latitude; /// Gets or sets the location longi...
Add documentation to the Position class
Add documentation to the Position class
Dart
mit
Baseflow/flutter-geolocator,Baseflow/flutter-geolocator,Baseflow/flutter-geolocator,Baseflow/flutter-geolocator
f9dd3e3a77e4d86ea8e3e3aa495fc0798f34936a
lib/textmarker.dart
lib/textmarker.dart
library textmarker; import 'dart:html'; class TextMarker { String targettext; int startposition; int endposition; String textState; // were characters from start to end position typed correctly. TextMarker(this.targettext,this.startposition, this.endposition,this.textState); SpanElement textSpan(in...
library textmarker; import 'dart:html'; class TextMarker { String targettext; int startposition; int endposition; String textState; // were characters from start to end position typed correctly. TextMarker(this.targettext,this.startposition, this.endposition,this.textState); SpanElement textSpan(in...
Add span functions for different textstates.
Add span functions for different textstates.
Dart
bsd-3-clause
mswift42/workmantrainer,mswift42/workmantrainer
0a90ed8193ae8b97f338f407854892b78441cc3c
lib/testing/dynamic_entity.dart
lib/testing/dynamic_entity.dart
part of streamy.testing; class DynamicEntity extends RawEntity { DynamicEntity() : super(); DynamicEntity.fromMap(Map data) { data.forEach((key, value) { this[key] = toObservable(value); }); } noSuchMethod(Invocation invocation) { var memberName = MirrorSystem.getName(invocation.memberName...
part of streamy.testing; class DynamicEntity extends RawEntity { DynamicEntity() : super(); DynamicEntity.fromMap(Map data) { data.forEach((key, value) { this[key] = toObservable(value); }); } noSuchMethod(Invocation invocation) { var memberName = MirrorSystem.getName(invocation.memberName...
Remove obsolete namedArguments workaround in DynamicEntity
Remove obsolete namedArguments workaround in DynamicEntity
Dart
apache-2.0
ronlobo/streamy-dart,ronlobo/streamy-dart,google/streamy-dart,srawlins/streamy-dart,google/streamy-dart,ronlobo/streamy-dart,google/streamy-dart,srawlins/streamy-dart,srawlins/streamy-dart,srawlins/streamy-dart,ronlobo/streamy-dart,google/streamy-dart
1a50dfb7c0a6a38b75fdf683147d4650c7e63d86
test/core/game_test.dart
test/core/game_test.dart
part of test.core; gameTest() { group("Game constructor", () { Game game; setUp((){ game = new Game(); }); tearDown((){ game = null; }); test("Instance of", () { expect(game.canvas, new isInstanceOf<CanvasElement>()); expect(game.stage, new isInstanceOf<StageXL.Stage>...
part of test.core; gameTest() { group("Game constructor", () { Game game; setUp((){ game = new Game(); }); tearDown((){ game = null; }); test("Instance of", () { expect(game.canvas, new isInstanceOf<CanvasElement>()); expect(game.stage, new isInstanceOf<StageXL.Stage>...
Add full screen test and more details to default settings test.
Add full screen test and more details to default settings test.
Dart
bsd-2-clause
StrykerKKD/dartrocket,StrykerKKD/dartrocket
a4b21f2698ab5703731c5b73a8cfa7cecaace4e0
web/tableau/tableau.dart
web/tableau/tableau.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 freecell.tableau; import '../deck/deck.dart'; part 'pile.dart'; part 'column.dart'; part 'cell.dart'; part 'tower.dart'; const int kNumberOfCol...
// 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 freecell.tableau; import '../deck/deck.dart'; part 'pile.dart'; part 'column.dart'; part 'cell.dart'; part 'tower.dart'; const int kNumberOfCol...
Add a getter to tell when you've wone
Add a getter to tell when you've wone
Dart
bsd-3-clause
abarth/freecell,abarth/freecell
54bb40d6ac976ef666bfa150202e9230c6cf3ddf
lib/runtime/entity/util.dart
lib/runtime/entity/util.dart
part of streamy.runtime; /// Produces an entity from a given JSON map typedef Entity EntityFactory(Map json); /// Information about a type generated from a discovery document class TypeInfo { final EntityFactory _ef; TypeInfo(this._ef); Entity fromJson(Map json) => this._ef(json); } /// A sentinel value which ...
part of streamy.runtime; /// Produces an entity from a given JSON map typedef Entity EntityFactory(Map json); /// Information about a type generated from a discovery document class TypeInfo { final EntityFactory _ef; TypeInfo(this._ef); Entity fromJson(Map json) => this._ef(json); } /// A sentinel value which ...
Add missing containsKey to _ErrorEntity
Add missing containsKey to _ErrorEntity
Dart
apache-2.0
ronlobo/streamy-dart,srawlins/streamy-dart,google/streamy-dart,google/streamy-dart,google/streamy-dart,srawlins/streamy-dart,ronlobo/streamy-dart,srawlins/streamy-dart,google/streamy-dart,ronlobo/streamy-dart,ronlobo/streamy-dart,srawlins/streamy-dart
95d79c48c14a70362e9370be4021f28a84ddc008
examples/dart/console_example/main.dart
examples/dart/console_example/main.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:mojo_application'; import 'dart:mojo_bindings'; import 'dart:mojo_core'; import 'package:mojo/services/console/public/interfaces/console.moj...
// 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:async'; import 'dart:mojo_application'; import 'dart:mojo_bindings'; import 'dart:mojo_core'; import 'package:mojo/services/console/public/i...
Use await syntax in the console example.
Use await syntax in the console example. BUG=none R=zra@google.com Review URL: https://codereview.chromium.org/896873003
Dart
bsd-3-clause
chinmaygarde/mojo,chinmaygarde/mojo,chinmaygarde/mojo,collinjackson/mojo,collinjackson/mojo,afandria/mojo,jianglu/mojo,jianglu/mojo,jianglu/mojo,jianglu/mojo,collinjackson/mojo,afandria/mojo,jianglu/mojo,collinjackson/mojo,jianglu/mojo,chinmaygarde/mojo,jianglu/mojo,afandria/mojo,afandria/mojo,chinmaygarde/mojo,chinmay...
d0e409e89c803943953a4252a775a963da5b3d93
tests/language/field_optimization3_test.dart
tests/language/field_optimization3_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. // Dart test program to test type-based optimization on fields. class A { int a = 0; int b = 0; ...
// 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 to test type-based optimization on fields. class A { var a = 0; var b = 0; ...
Fix type annotation error in test.
Fix type annotation error in test. R=floitsch@google.com BUG= TEST= Review URL: https://chromiumcodereview.appspot.com//10693163 git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@9592 260f80e4-7a28-3924-810f-c04153c831b5
Dart
bsd-3-clause
dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-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-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dartino...
f748465867a41cf5660ce1d80588cf6edeee3349
runtime/lib/function.dart
runtime/lib/function.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. class _Closure implements Function { bool operator ==(other) native "Closure_equals"; int get has...
// 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. class _Closure implements Function { bool operator ==(other) native "Closure_equals"; int get has...
Fix for regression in content shell tests (see b/36131545)
Fix for regression in content shell tests (see b/36131545) Renamed public fields in class _Closure to make them private fields, these fields were added to ensure that the offset of _Closure fields matched up in Dart and C++ (definition of closure object in raw_object.h). R=regis@google.com, rmacnak@google.com Review...
Dart
bsd-3-clause
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-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-ar...
0eaea765b6b621c6d4b0c3070526c828d1af8836
lib/src/client/commits.dart
lib/src/client/commits.dart
part of github.client; class Commit { final GitHub github; @ApiName("html_url") String url; String sha; @ApiName("commit/message") String message; User author; User committer; @ApiName("stats/additions") int additionsCount; @ApiName("stats/deletions") int deletionsCount; @ApiNa...
part of github.client; class Commit { final GitHub github; @ApiName("html_url") String url; String sha; @ApiName("commit/message") String message; User author; User committer; @ApiName("stats/additions") int additionsCount; @ApiName("stats/deletions") int deletionsCount; @ApiNa...
Add Committer and Author Emails
Add Committer and Author Emails
Dart
mit
kasperpeulen/github.dart,bwu-dart-contributing/github.dart,marcojakob/github.dart,kasperpeulen/github.dart,kasperpeulen/github.dart,bwu-dart-contributing/github.dart,marcojakob/github.dart,kasperpeulen/github.dart,bwu-dart-contributing/github.dart,marcojakob/github.dart,marcojakob/github.dart,bwu-dart-contributing/gith...
f38818c707b50d022bfd7b5255c5b1879c0ece0c
lib/valorzhong_bones.dart
lib/valorzhong_bones.dart
library valorzhong_bones; import 'dart:math' as Math; import 'package:stagexl/stagexl.dart'; import 'package:valorzhong_injector/valorzhong_injector.dart'; part 'src/application.dart'; part 'src/screen.dart'; part 'src/utils/color_helper.dart'; part 'src/controls/component.dart'; part 'src/controls/container.dart'...
library valorzhong_bones; import 'dart:math' as Math; import 'package:stagexl/stagexl.dart'; import 'package:valorzhong_injector/valorzhong_injector.dart'; part 'src/application.dart'; part 'src/screen.dart'; part 'src/utils/color_helper.dart'; part 'src/controls/component.dart'; part 'src/controls/container.dart'...
Add helper function for string named 'capitalize '
Add helper function for string named 'capitalize '
Dart
bsd-2-clause
games/bones
7b638798e7c3dd3dd7a2f8d8efe0b44a7e9434b3
src/lib/pin/utility/logger.dart
src/lib/pin/utility/logger.dart
part of pin; class PinLogger { static Logger _logger; static File _file; static Logger get instance { if (_logger == null) { int now = PinTime.getTime(); _file = new File('logs/system-${now}.log'); _logger = Logger.root; _logger.level = Level.FINE; _logger.onRecord.listen(_pri...
part of pin; class PinLogger { static Logger _logger; static File _file; static Logger get instance { if (_logger == null) { int now = PinTime.getTime(); _file = new File('logs/system-${now}.log'); _logger = Logger.root; _logger.level = Level.FINE; _logger.onRecord.listen(_pri...
Handle log to file exception.
Handle log to file exception.
Dart
mit
agreatfool/Cart,agreatfool/Cart,agreatfool/Cart,agreatfool/Cart,agreatfool/Cart,agreatfool/Cart,agreatfool/Cart,agreatfool/Cart,agreatfool/Cart,agreatfool/Cart,agreatfool/Cart,agreatfool/Cart,agreatfool/Cart,agreatfool/Cart,agreatfool/Cart,agreatfool/Cart,agreatfool/Cart,agreatfool/Cart
08122257c9123c10158201ce1b7da580d5597718
lib/core/helpers/translation_helper.dart
lib/core/helpers/translation_helper.dart
import 'dart:ui'; import 'package:easy_localization/easy_localization.dart'; import '../../translations/locale_keys.g.dart'; class TranslationHelper { static List<Locale> supportedLocales() { return [ const Locale('de'), const Locale('el'), const Locale('en'), const Locale('es'), ...
import 'dart:ui'; import 'package:easy_localization/easy_localization.dart'; import '../../translations/locale_keys.g.dart'; class TranslationHelper { static List<Locale> supportedLocales() { return [ const Locale('de'), const Locale('el'), const Locale('en'), const Locale('es'), ...
Fix Swedish translations not being implemented.
Fix Swedish translations not being implemented.
Dart
mit
wcomartin/PlexPy-Remote
a2708a188f2bba4a59d48a9c8315cb7268c865cd
lib/runtime/entity/dynamic.dart
lib/runtime/entity/dynamic.dart
part of streamy.runtime; class DynamicEntity extends RawEntity { DynamicEntity() : super(); DynamicEntity.fromMap(Map data) { data.forEach((key, value) { this[key] = value; }); } noSuchMethod(Invocation invocation) { var memberName = MirrorSystem.getName(invocation.memberName); if (inv...
part of streamy.runtime; class DynamicEntity extends RawEntity { DynamicEntity() : super(); DynamicEntity.fromMap(Map data) { data.forEach((key, value) { this[key] = value; }); } noSuchMethod(Invocation invocation) { var memberName = MirrorSystem.getName(invocation.memberName); if (inv...
Throw NoSuchMethodError if the caller requests a nonexistent member
Throw NoSuchMethodError if the caller requests a nonexistent member Angular--and potentially other callers--expect that when a method such as containsKey is called on a DynamicEntity, that the object will throw NoSuchMethodError. DynamicEntity, on the other hand, wants to ensure that no one stashes a completion in a D...
Dart
apache-2.0
google/streamy-dart,srawlins/streamy-dart,srawlins/streamy-dart,ronlobo/streamy-dart,ronlobo/streamy-dart,google/streamy-dart,ronlobo/streamy-dart,google/streamy-dart,srawlins/streamy-dart,ronlobo/streamy-dart,srawlins/streamy-dart,google/streamy-dart
b2d9765a5a24bdbbc4c67d1780a06586578fc816
tests/standalone/src/io/ProcessStartExceptionTest.dart
tests/standalone/src/io/ProcessStartExceptionTest.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. // // Process test program to test process communication. #import("dart:io"); class ProcessStartExcept...
// 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. // // Process test program to test process communication. #import("dart:io"); class ProcessStartExcept...
Print the actual error message on failure in the ProcessStartException test.
Print the actual error message on failure in the ProcessStartException test. R=iposva@google.com,sgjesse@google.com BUG= TEST= Review URL: https://chromiumcodereview.appspot.com//9856020 git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@5842 260f80e4-7a28-3924-810f-c04153c831b5
Dart
bsd-3-clause
dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/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,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dar...
b47fc791902c56841bcb5b8063f1b115af08fc01
pkg/http/lib/src/byte_stream.dart
pkg/http/lib/src/byte_stream.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 byte_stream; import 'dart:async'; import 'dart:convert'; import 'dart:io'; import 'dart:typed_...
// 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 byte_stream; import 'dart:async'; import 'dart:convert'; import 'dart:io'; import 'dart:typed_...
Use BytesBuilder in pkg:http, when accumulating binary data.
Use BytesBuilder in pkg:http, when accumulating binary data. This should speed up the library significant. BUG= R=sgjesse@google.com Review URL: https://codereview.chromium.org//47923022 git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@29739 260f80e4-7a28-3924-810f-c04153c831b5
Dart
bsd-3-clause
dart-lang/sdk,dart-lang/sdk,dartino/dart-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,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-ar...
0e10ecfec350e55140a63dcb14ae45f45e1c7f34
lib/src/redux_connector/generator.dart
lib/src/redux_connector/generator.dart
String Function() generator() { int nextId = 0; String prefix = ''; return () { if (++nextId >= 0x3FFFFFFFFFFFFFFF) { nextId = 0; prefix = '\$' + prefix; } return prefix + nextId.toString(); }; }
String Function() generator() { int nextId = 0; String prefix = ''; return () { /// fix '0x3FFFFFFFFFFFFFFF' can't be represented exactly in JavaScript. if (++nextId >= 0x3FFFFFFF) { nextId = 0; prefix = '\$' + prefix; } return prefix + nextId.toString(); }; }
Fix '0x3FFFFFFFFFFFFFFF' can't be represented exactly in JavaScript.
Fix '0x3FFFFFFFFFFFFFFF' can't be represented exactly in JavaScript.
Dart
apache-2.0
alibaba/fish-redux
b0230021efbff42d5dfd3aaf527a01751518b1de
lib/src/exceptions.dart
lib/src/exceptions.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 vm_service_client.exceptions; import 'error.dart'; import 'sentinel.dart'; /// An exception t...
// 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 vm_service_client.exceptions; import 'error.dart'; import 'sentinel.dart'; import 'service_ver...
Fix some bugs in the previous CL.
Fix some bugs in the previous CL. R=kevmoo@google.com Review URL: https://codereview.chromium.org//1494803004 .
Dart
bsd-3-clause
dart-archive/vm_service_client
ea4e977f5e85ae345f6e21baee2c35c37e04b8ff
lib/src/identification/model/stay_point.dart
lib/src/identification/model/stay_point.dart
import 'coordinate.dart'; import 'location.dart'; class StayPoint extends Coordinate { LocationDegrees latitude; LocationDegrees longitude; DateTime arrival; DateTime departure; List<Location> locationsInvolved; StayPoint({this.latitude, this.longitude, thi...
import 'coordinate.dart'; import 'location.dart'; class StayPoint extends Coordinate { DateTime arrival; DateTime departure; List<Location> locationsInvolved; StayPoint({latitude, longitude, this.arrival, this.departure, this.locationsInvolved}) ...
Fix issue with StayPoint class inheritance
Fix issue with StayPoint class inheritance
Dart
mit
yeradis/stay_points.dart,yeradis/stay_points.dart
cd39bc2135e1af90da8e7d493da03e53ba3b0daf
lib/src/credentials.dart
lib/src/credentials.dart
library credentials; /** * A class describing OAuth credentials except for client credentials. */ class Credentials { final String _token; final String _tokenSecret; Credentials(this._token, this._tokenSecret); factory Credentials.fromMap(Map<String, String> parameters) { if (!parameters.containsKey('...
library credentials; import 'dart:convert'; /** * A class describing OAuth credentials except for client credential */ class Credentials { final String _token; final String _tokenSecret; Credentials(this._token, this._tokenSecret); factory Credentials.fromMap(Map<String, String> parameters) { if (!pa...
Add JSON convertion for Credentials
Add JSON convertion for Credentials
Dart
bsd-3-clause
kumar8600/dart-oauth1
91704fb99d4571201b28fdb3e70e6927016b2e76
tests/language/operator5_test.dart
tests/language/operator5_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. class A { operator ==(other) => 1; operator <(other) => null; operator <=(other) => 499; operat...
// 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 A { operator ==(other) => 1; operator <(other) => null; operator <=(other) => 499; operat...
Fix VM tests by removing test that was not enabled before my commit in any case.
Fix VM tests by removing test that was not enabled before my commit in any case. I enabled the test and updated it with the new equality semantics that the VM does not implement yet. I don't think the test adds much value. R=floitsch@google.com BUG= TEST= Review URL: https://chromiumcodereview.appspot.com//10699074 ...
Dart
bsd-3-clause
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-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-ar...
9d716bb61fc0561d3b6ba8ef9bd5911261562c9d
lib/src/utils.dart
lib/src/utils.dart
library oauth.utils; import 'dart:async'; import 'dart:io'; import 'dart:math'; Future get async => new Future.delayed(const Duration(milliseconds: 0), () => null); RandomAccessFile _randomFile; bool _haveWarned = false; List<int> getRandomBytes(int count) { if(!Platform.isWi...
library oauth.utils; import 'dart:async'; import 'dart:math'; Future get async => new Future.delayed(const Duration(milliseconds: 0), () => null); Random randomSource; bool _haveWarned = false; List<int> getRandomBytes(int count) { if (randomSource == null) { randomSo...
Use Random.secure() for random bytes
Use Random.secure() for random bytes
Dart
mit
oshepherd/oauth.dart
41d018890c5a681c478a12e965909f5c614073fc
example/hellodistributedworld.dart
example/hellodistributedworld.dart
import 'dart:isolate'; main(){ port.receive((msg,reply){ print("hellodistributedworld received: ${msg['msg']}"); msg['reply'].send("OK: ${msg['msg']}"); }); }
import 'dart:isolate'; import "package:distributed_dart/distributed_dart.dart"; main(){ port.receive((msg,reply){ print("hellodistributedworld received: ${msg['msg']}"); msg['reply'].send("OK: ${msg['msg']}"); }); }
Make the example a little bit more complicated
Make the example a little bit more complicated Added not necessary dependency to distributed_dart to test dependencies check.
Dart
bsd-2-clause
distributed-dart/distributed_dart,distributed-dart/distributed_dart
d56098f1d4774aac346c5c96596301b371dfebfa
pkg/analysis_server/lib/src/services/correction/dart/add_static.dart
pkg/analysis_server/lib/src/services/correction/dart/add_static.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:analysis_server/src/services/correction/dart/abstract_producer.dart'; import 'package:an...
// 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:analysis_server/src/services/correction/dart/abstract_producer.dart'; import 'package:an...
Fix an npe in AddStatic when the field declaration cannot be found
Fix an npe in AddStatic when the field declaration cannot be found I wasn't able to find a test case that reproduced the bug. Fixes: https://github.com/Dart-Code/Dart-Code/issues/3205 Change-Id: Ie45c76ef7ed18755ccc576ad9aa39ff35055233e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192281 Reviewed-by: Kon...
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
a5c9c86f2301c1e45642ad31e8c32d22b9c93cc8
lib/src/entities/address.dart
lib/src/entities/address.dart
class Address { String name; String mailAddress; const Address([this.mailAddress, this.name]); /// Generates an address that must conform to RFC 5322. /// For example, `name <foo@domain.com>`, `<foo@domain.com>` /// and `foo.domain.com`. @override String toString() { var fromName = name ?? ''; ...
class Address { String name; String mailAddress; Address([this.mailAddress, this.name]); /// Generates an address that must conform to RFC 5322. /// For example, `name <foo@domain.com>`, `<foo@domain.com>` /// and `foo.domain.com`. @override String toString() { var fromName = name ?? ''; // To...
Address cannot be const as name and mailAddress are not final
fix: Address cannot be const as name and mailAddress are not final `name` and `mailAddress` cannot be declared final in minor library version changes.
Dart
mit
kaisellgren/mailer
3029ce2fb701f6ff1ffb38b91a4fb4e24cde9b61
example/tree.dart
example/tree.dart
import "package:legit/legit.dart"; void main() { var git = new GitClient(); git.listTree("HEAD").then((files) { print(files.map((it) => it.path).join("\n")); }); }
import "package:legit/legit.dart"; void main() { var git = new GitClient(); git.listTree("HEAD").then((files) { print(files.map((it) => it.path + " (" + it.blob + ")").join("\n")); }); }
Add Blob to Tree Example
Add Blob to Tree Example
Dart
mit
DirectMyFile/legit
8c3c4cf2a6347fb7dbc71a9a1cb685f902d048f5
lib/src/components/fnx_buttons.dart
lib/src/components/fnx_buttons.dart
import 'package:angular2/angular2.dart'; import 'package:fnx_ui/src/util/ui.dart' as ui; import 'dart:html'; import 'package:fnx_ui/fnx_ui.dart'; import 'package:fnx_ui/src/validator.dart'; @Component( selector: 'fnx-submit-bar', template: r''' <div class="buttonbar"> <a *ngIf="back" href="#" class="btn " (c...
import 'package:angular2/angular2.dart'; import 'package:fnx_ui/src/util/ui.dart' as ui; import 'dart:html'; import 'package:fnx_ui/fnx_ui.dart'; import 'package:fnx_ui/src/validator.dart'; @Component( selector: 'fnx-submit-bar', template: r''' <div class="buttonbar"> <a *ngIf="back" href="#" class="btn " (c...
FIX fnx-submit-bar: make FnxForm dependency optional
FIX fnx-submit-bar: make FnxForm dependency optional So angluar won't complain while trying to instantiate fnx-submit-bar. Fail with more explanatory message, instructing the user how to fix it.
Dart
bsd-3-clause
fnx-io/fnx_ui,fnx-io/fnx_ui,fnx-io/fnx_ui,fnx-io/fnx_ui
260f2d7ac95f9215c4d36066c5f40710349e79fd
angular_components/lib/src/material_tree/material_tree_expand_state.dart
angular_components/lib/src/material_tree/material_tree_expand_state.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:async'; /// Represents the state of expansion of an option in a material tree. /// /// If...
// 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:async'; /// Represents the state of expansion of an option in a material tree. /// /// If...
Make a private field final.
Make a private field final. PiperOrigin-RevId: 252820617
Dart
bsd-3-clause
angulardart/angular_components,angulardart/angular_components,angulardart/angular_components
24445ca8dfb7b530634c8b71d80992d502d19da4
lib/irc.dart
lib/irc.dart
library irc; import 'dart:io'; import 'dart:async'; import 'dart:convert'; import 'package:irc_message/irc_message.dart' as IRCParser; import 'package:event_bus/event_bus.dart' show EventType, EventBus; export "bot/bot.dart"; part 'client.dart'; //part 'bot.dart'; part 'events.dart'; part 'types.dart'; part 'colors...
library irc; import 'dart:io'; import 'dart:async'; import 'dart:convert'; import 'package:irc_message/irc_message.dart' as IRCParser; import 'package:event_bus/event_bus.dart' show EventType, EventBus; export "bot/bot.dart"; part 'client.dart'; part 'events.dart'; part 'types.dart'; part 'colors.dart';
Remove a Commented out line of code
Remove a Commented out line of code
Dart
mit
DirectMyFile/irc.dart,DirectMyFile/irc.dart
b1447e6e126c4c49fa53e3b650afa2c3f2a2dba5
example/msgbox.dart
example/msgbox.dart
import 'package:win32/win32.dart'; void main() { final result = MessageBox( NULL, TEXT('Resource not available\nDo you want to try again?'), TEXT('Account Details'), MB_ICONWARNING | MB_CANCELTRYCONTINUE | MB_DEFBUTTON2); switch (result) { case IDCANCEL: print('Cancel pressed'); ...
import 'package:win32/win32.dart'; void main() { final result = MessageBox( NULL, TEXT('This is not really an error, but we are pretending for the sake ' 'of this test.\n\nResource error.\nDo you want to try again?'), TEXT('Dart MessageBox Test'), MB_ICONWARNING | // Warning ...
Clarify that this isn't a real error
Clarify that this isn't a real error
Dart
bsd-3-clause
timsneath/win32,timsneath/win32,timsneath/win32
5dad26307cd6dd8f26dcb5fe3198c43f40c7ecbe
lib/features/graphs/domain/entities/graph_state.dart
lib/features/graphs/domain/entities/graph_state.dart
import 'package:equatable/equatable.dart'; import 'package:meta/meta.dart'; import '../../../../core/error/failure.dart'; import 'graph_data.dart'; enum GraphCurrentState { inProgress, failure, success, } class GraphState extends Equatable { final GraphData graphData; final GraphCurrentState graphCurrentSt...
import 'package:equatable/equatable.dart'; import 'package:meta/meta.dart'; import '../../../../core/error/failure.dart'; import 'graph_data.dart'; enum GraphCurrentState { inProgress, failure, success, } enum GraphType { playsByDate, playsByDayOfWeek, playsByHourOfDay, } class GraphState extends Equata...
Add GraphType enum to GraphState.
Add GraphType enum to GraphState.
Dart
mit
wcomartin/PlexPy-Remote
a271c402c671c869c8bb11358cce6a8031cb9b72
lib/app_component.dart
lib/app_component.dart
// Copyright (c) 2017. 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_forms/angular_forms.dart'; @Component( selector: 'my-app', template: ''' <h1>{{title}}</h1> <h2>{{he...
// Copyright (c) 2017. 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_forms/angular_forms.dart'; @Component( selector: 'my-app', templateUrl: 'app_component.html', directive...
Split template into own file
Split template into own file
Dart
mit
Firexion/Tour-of-Heroes,Firexion/Tour-of-Heroes
7f617ee654bb09c7668ee9295d695c3d2dd06d9b
lib/features/media/data/datasources/metadata_data_source.dart
lib/features/media/data/datasources/metadata_data_source.dart
import 'package:meta/meta.dart'; import '../../../../core/api/tautulli_api.dart'; import '../../domain/entities/metadata_item.dart'; import '../models/metadata_item_model.dart'; abstract class MetadataDataSource { Future<MetadataItem> getMetadata({ @required String tautulliId, int ratingKey, int syncId,...
import 'package:meta/meta.dart'; import '../../../../core/api/tautulli_api.dart'; import '../../../../core/error/exception.dart'; import '../../domain/entities/metadata_item.dart'; import '../models/metadata_item_model.dart'; abstract class MetadataDataSource { Future<MetadataItem> getMetadata({ @required Strin...
Throw exception on empty Metadata.
Throw exception on empty Metadata.
Dart
mit
wcomartin/PlexPy-Remote
c388b1532403863d1b5c48dca37f8d519ed3ccb1
lib/features/media/presentation/widgets/media_albums_tab.dart
lib/features/media/presentation/widgets/media_albums_tab.dart
import 'package:flutter/material.dart'; import '../../../../core/widgets/grid_image_item.dart'; import '../../domain/entities/media_item.dart'; import '../../domain/entities/metadata_item.dart'; import '../pages/media_item_page.dart'; class MediaAlbumsTab extends StatelessWidget { final MediaItem item; final List...
import 'package:flutter/material.dart'; import '../../../../core/widgets/grid_image_item.dart'; import '../../domain/entities/media_item.dart'; import '../../domain/entities/metadata_item.dart'; import '../pages/media_item_page.dart'; class MediaAlbumsTab extends StatelessWidget { final MediaItem item; final List...
Make albums 3 across on media details page.
Make albums 3 across on media details page.
Dart
mit
wcomartin/PlexPy-Remote
21c3ec1df94c6decb96bcb38d152e8f3b275f539
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, 7); expect(t1.categories....
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, 7); expect(t1.categories....
Add tests for categoryBackground method.
Add tests for categoryBackground method.
Dart
mit
mswift42/ds,mswift42/ds
5c660b471c394d7d143d10ebf575a460fbf2b583
memento/lib/velvet_fog_machine.dart
memento/lib/velvet_fog_machine.dart
library velvet_fog_machine; import 'dart:math'; // The "Originator" class VelvetFogMachine { // The Memento Playing _nowPlaying; // Set the state void play(String title, String album, [double time = 0.0]) { print("Playing $title // $album @ ${time.toStringAsFixed(2)}"); _nowPlaying = new Playing(titl...
library velvet_fog_machine; import 'dart:math'; final rand = new Random(1); // The "Originator" class VelvetFogMachine { Song currentSong; double currentTime; // Set the state void play(String title, String album, [double time = 0.0]) { _play(new Song(title, album), time); } void _play(Song s, doubl...
Improve memento example w/ more realistic originator structure
Improve memento example w/ more realistic originator structure
Dart
mit
eee-c/design-patterns-in-dart,eee-c/design-patterns-in-dart,eee-c/design-patterns-in-dart
f3572206391de5b78aa8eab90df887179006f3ae
lib/core/widgets/page_body.dart
lib/core/widgets/page_body.dart
import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import '../../features/settings/presentation/bloc/settings_bloc.dart'; import 'settings_not_loaded.dart'; class PageBody extends StatelessWidget { final Widget child; final bool loading; const PageBody({ Key? key, ...
import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import '../../features/settings/presentation/bloc/settings_bloc.dart'; import 'settings_not_loaded.dart'; class PageBody extends StatelessWidget { final Widget child; final bool loading; const PageBody({ Key? key, ...
Move progress indicator above child in stack.
Move progress indicator above child in stack.
Dart
mit
wcomartin/PlexPy-Remote
777b5a02de204b4fe05c03fb8502f3dbba42a0c0
lib/core/widgets/heading.dart
lib/core/widgets/heading.dart
import 'package:flutter/material.dart'; class Heading extends StatelessWidget { final String text; const Heading({ super.key, required this.text, }); @override Widget build(BuildContext context) { return Text( text, style: TextStyle( fontWeight: FontWeight.bold, font...
import 'package:flutter/material.dart'; class Heading extends StatelessWidget { final String text; final Color? color; const Heading({ super.key, required this.text, this.color, }); @override Widget build(BuildContext context) { return Text( text, style: TextStyle( fon...
Add color support for Heading.
Add color support for Heading.
Dart
mit
wcomartin/PlexPy-Remote
e7c373bb7c8f0f92300a4590d92897a188d11b72
lib/task.dart
lib/task.dart
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=null]) { this.timestamp = new DateTime.now().milli...
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=null]) { this.timestamp = new DateTime.now().milli...
Add serialisation method for class instance
Add serialisation method for class instance
Dart
bsd-3-clause
mswift42/ddays,mswift42/ddays
41fa72ef11799676526593694801cda3954d4ff6
tests/lib_2/isolate/string_from_environment_default_value_test.dart
tests/lib_2/isolate/string_from_environment_default_value_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=--enable-isolate-groups // VMOptions=--no-enable-isolate-groups import "dart:isolate"; i...
// 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=--enable-isolate-groups // VMOptions=--no-enable-isolate-groups import "dart:isolate"; i...
Adjust test for new default values of .fromEnvironment
Adjust test for new default values of .fromEnvironment Breaking change #40678 mandates new default values for String.fromEnvironment, this CL adjusts the expectations of a test accordingly. Change-Id: Ib8a26005673d07c67f65708fc9c4ae7b17421670 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/139811 Reviewed-b...
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
d4bfa553366a666dd204827578d9f1c7a9379cc8
lib/json_serial/json_annotation.dart
lib/json_serial/json_annotation.dart
library source_gen.json_serial.annotation; class JsonSerializable { const JsonSerializable(); }
/// This is kept as a seperate library from the generator intentionally to /// minimize transitive dependencies of types that are annotated as /// serializable. library source_gen.json_serial.annotation; class JsonSerializable { const JsonSerializable(); }
Add doc comment about why the annotation library is separate from the generator library
Add doc comment about why the annotation library is separate from the generator library
Dart
bsd-3-clause
davidmorgan/source_gen,tayloranderson-wf/source_gen,dart-lang/source_gen,tayloranderson-wf/source_gen,a14n/source_gen.dart,dart-lang/source_gen,a14n/source_gen.dart
2b7ff6dfaba9723ee1fa467554b8c2fd4b42ae29
tests/language/vm/precompiled_static_initializer_test.dart
tests/language/vm/precompiled_static_initializer_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 optimizations with static fields with precompilation. // VMOptions=--noopt --inlining-hotness=0 ...
// 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 optimizations with static fields with precompilation. // VMOptions=--inlining-hotness=0 import ...
Fix test by removing the --noopt flag from the test file.
Fix test by removing the --noopt flag from the test file. Not all platforms (ia32) support --noopt, and test.py --noopt will run the test with this option anyway. TBR=rmacnak@google.com BUG= Review URL: https://codereview.chromium.org/1497213002 .
Dart
bsd-3-clause
dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/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,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino...
17d7fc17447c18be7a080a7371394d3c39ff8755
lib/src/byte_stream.dart
lib/src/byte_stream.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 byte_stream; import 'dart:async'; import 'dart:io'; import 'dart:typeddata'; import 'utils.da...
// 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 byte_stream; import 'dart:async'; import 'dart:io'; import 'dart:typeddata'; import 'utils.da...
Add Iterable.fold (and Stream.fold) which replace `reduce`.
Add Iterable.fold (and Stream.fold) which replace `reduce`. For now this is just a copy. In a next step we will change the behavior of `reduce`. BUG= http://dartbug.com/9536 Review URL: https://codereview.chromium.org//13548002 git-svn-id: a0fc6a377c96b9059f80895148836233a16d98be@20978 260f80e4-7a28-3924-810f-c0415...
Dart
bsd-3-clause
dart-lang/http,dart-lang/http,dart-lang/http,dart-lang/http,dart-lang/http,kasperpeulen/http,dart-lang/http,dart-lang/http,donny-dont/http,dart-lang/http
d65be2eccd129f0886df37df29ececcdef9e0a58
lib/src/uri_builder.dart
lib/src/uri_builder.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 uri.builder; import 'package:quiver/strings.dart' show emptyToNull; /** * A mutable holder f...
// 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 uri.builder; import 'package:quiver/strings.dart' show emptyToNull, nullToEmpty; /** * A mut...
Fix the UriBuilder fix for 1.5
Fix the UriBuilder fix for 1.5
Dart
bsd-3-clause
Andersmholmgren/uri.dart,bwu-dart-contributing/uri.dart,google/uri.dart
208fcdb3df7bf2f8fa693baa89281162de767345
_tests/test/regression/1620_generic_function_member_test.dart
_tests/test/regression/1620_generic_function_member_test.dart
@TestOn('browser') import 'package:angular/angular.dart'; import 'package:angular_test/angular_test.dart'; import 'package:test/test.dart'; import '1620_generic_function_member_test.template.dart'; void main() { tearDown(disposeAnyRunningTest); test('generic function member should return normally', () async { ...
@TestOn('browser') import 'package:angular/angular.dart'; import 'package:angular_test/angular_test.dart'; import 'package:test/test.dart'; import '1620_generic_function_member_test.template.dart' as ng; void main() { tearDown(disposeAnyRunningTest); test('generic function member should return normally', () asyn...
Use ng prefix for generated import.
Use ng prefix for generated import. Hoping this will fix analysis error on travis. PiperOrigin-RevId: 214804749
Dart
mit
angulardart/angular,chalin/angular2,chalin/angular2,angulardart/angular,chalin/angular2,matanlurey/angular,matanlurey/angular,angulardart/angular,matanlurey/angular
c4e413f8cc37f416e97445f58a710a15405567d8
tool/hop_runner.dart
tool/hop_runner.dart
library hop_runner; import 'package:hop/hop.dart'; import 'package:hop/hop_tasks.dart'; void main(args) { var paths = ['lib/mongo_dart.dart','example/blog.dart']; //etc etc etc addTask('analyze_libs', createAnalyzerTask(paths)); addTask('docs',createDartDocTask(['lib/mongo_dart.dart'], linkApi: true, exclude...
library hop_runner; import 'package:hop/hop.dart'; import 'package:hop/hop_tasks.dart'; void main(args) { var paths = ['lib/mongo_dart.dart','example/blog.dart']; //etc etc etc addTask('analyze_libs', createAnalyzerTask(paths)); // addTask('docs',createDartDocTask(['lib/mongo_dart.dart'], linkApi: true, exclu...
Remove doc generation (breaking in current dart release)
Remove doc generation (breaking in current dart release)
Dart
mit
rajmaniar/mongo_dart,vadimtsushko/mongo_dart,mongo-dart/mongo_dart
7034ef959375d6667b4174387e92c31bb6158bca
lib/core/widgets/list_tile_group.dart
lib/core/widgets/list_tile_group.dart
import 'package:flutter/material.dart'; import 'heading.dart'; class ListTileGroup extends StatelessWidget { final String? heading; final List<Widget> listTiles; const ListTileGroup({ Key? key, this.heading, required this.listTiles, }) : super(key: key); @override Widget build(BuildContext c...
import 'package:flutter/material.dart'; import 'heading.dart'; class ListTileGroup extends StatelessWidget { final String? heading; final List<Widget> listTiles; const ListTileGroup({ Key? key, this.heading, required this.listTiles, }) : super(key: key); @override Widget build(BuildContext c...
Fix padding code for ListTileGroup.
Fix padding code for ListTileGroup.
Dart
mit
wcomartin/PlexPy-Remote
57abb5907954bc17429a44ea86c9fa8d7ced92df
lib/transformers/date_time.dart
lib/transformers/date_time.dart
library dartson.transformers.DateTime; import 'package:dartson/type_transformer.dart'; /// A simple DateTime transformer which uses the toString() method. class DateTimeParser extends TypeTransformer<DateTime> { DateTime decode(dynamic value) => DateTime.parse(value); dynamic encode(DateTime value) => value.toStr...
library dartson.transformers.DateTime; import 'package:dartson/type_transformer.dart'; /// A simple DateTime transformer which uses the toString() method. class DateTimeParser extends TypeTransformer<DateTime> { DateTime decode(dynamic value) => DateTime.parse(value); dynamic encode(DateTime value) => value.toUtc...
Switch to ISO 8601 with Z-notation
Switch to ISO 8601 with Z-notation ISO8601 with Z-notation is what's the most commonly used format for representing Dates in JSON (at least it's what's used in all browser's Javascript default JSON serializers).
Dart
mit
eredo/dartson,frickt/dartson,gerald24/dartson,frickt/dartson,rightisleft/dartson,gerald24/dartson,gerald24/dartson,rightisleft/dartson,eredo/dartson
a69ccfdff5cef7977d74d753b431f29ec5edadf1
tool/grind.dart
tool/grind.dart
library polymorphic.grind; import "package:grinder/grinder.dart"; void main(List<String> args) { task("clean", defaultClean); task("package", package); task("build", null, ["clean", "package"]); task("test", test); task("ci", null, ["test", "build"]); startGrinder(args); } test(GrinderContext context)...
library polymorphic.grind; import "dart:io"; import "package:grinder/grinder.dart"; import "package:yaml/yaml.dart"; void main(List<String> args) { task("clean", defaultClean); task("package", package); task("build", null, ["clean", "package"]); task("test", test); task("ci", null, ["test", "build"]); ...
Add 'compiled' and 'version' tags to compiled script.
Add 'compiled' and 'version' tags to compiled script.
Dart
mit
PolymorphicBot/PolymorphicBot
9cea1d37c561bdc652918b9ed79ef872c0895239
protoc_plugin/lib/testing/mixins.dart
protoc_plugin/lib/testing/mixins.dart
// @dart=2.12 abstract class Mixin1 { String get overriddenString => 'mixin1'; String get interfaceString; set interfaceString(String string); bool hasInterfaceString(); } abstract class Mixin2 { String get overriddenString => 'mixin2'; bool hasOverriddenHasMethod() => false; } abstract class Mixin3 {}...
abstract class Mixin1 { String get overriddenString => 'mixin1'; String get interfaceString; set interfaceString(String string); bool hasInterfaceString(); } abstract class Mixin2 { String get overriddenString => 'mixin2'; bool hasOverriddenHasMethod() => false; } abstract class Mixin3 {}
Drop dart version from a file
Drop dart version from a file
Dart
bsd-3-clause
dart-lang/dart-protobuf,dart-lang/protobuf,dart-lang/dart-protobuf,google/protobuf.dart,dart-lang/protobuf,google/protobuf.dart,dart-lang/protobuf,google/protobuf.dart,dart-lang/dart-protobuf
106212b86c676afa86c05c367fac0181d9da7d15
angular/lib/angular.dart
angular/lib/angular.dart
/// The primary library for the [AngularDart web framework][AngularDart]. /// /// Import this library as follows: /// /// ``` /// import 'package:angular/angular.dart'; /// ``` /// /// For help using this library, see the AngularDart documentation: /// /// * [AngularDart guide][] /// * [AngularDart cheat sheet][cheatsh...
/// The primary library for the [AngularDart web framework][AngularDart]. /// /// Import this library as follows: /// /// ``` /// import 'package:angular/angular.dart'; /// ``` /// /// For help using this library, see the AngularDart documentation: /// /// * [AngularDart guide][] /// * [AngularDart cheat sheet][cheatsh...
Remove the stub "bootstrap" method from AngularDart.
Remove the stub "bootstrap" method from AngularDart. ... and "hide bootstrap" from client code, it is no longer needed. PiperOrigin-RevId: 191307697
Dart
mit
angulardart/angular,matanlurey/angular,angulardart/angular,chalin/angular2,chalin/angular2,chalin/angular2,angulardart/angular,matanlurey/angular,matanlurey/angular
f32b32343d0fd01379db5e9fc7bcf374d0aee8ca
examples/stocks/lib/stock_menu.dart
examples/stocks/lib/stock_menu.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 'package:sky/framework/components/popup_menu.dart'; import 'package:sky/framework/fn.dart'; import 'package:sky/framework/theme/view-configuration....
// 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 'package:sky/framework/components/popup_menu.dart'; import 'package:sky/framework/fn.dart'; import 'package:sky/framework/theme/view_configuration....
Rename view-configuration to view_configuration to make analyzer happy.
Rename view-configuration to view_configuration to make analyzer happy. Analyzer was complaining about '-' not being an allowed character in dart file names. R=jamesr@chromium.org
Dart
bsd-3-clause
cbracken/flutter,cbracken/flutter,jason-simmons/flutter,turnidge/flutter,flutter/flutter,turnidge/flutter,aghassemi/flutter,tvolkert/flutter,cbracken/flutter,tvolkert/flutter,cbracken/flutter,Hixie/flutter,aghassemi/flutter,tvolkert/flutter,flutter/flutter,Hixie/flutter,Hixie/flutter,Hixie/flutter,cbracken/flutter,Hixi...
e6fa3b00be8ec11b5d61fd129d4e1bb2194096a1
web/main.dart
web/main.dart
import 'dart:html'; import 'package:game_loop/game_loop.dart'; import 'package:asset_pack/asset_pack.dart'; import 'package:tilebasedwordsearch/dictionary.dart'; import 'package:tilebasedwordsearch/game.dart'; CanvasElement _canvasElement; GameLoop _gameLoop; AssetManager assetManager = new AssetManager(); Dictionary ...
import 'dart:html'; import 'package:game_loop/game_loop.dart'; import 'package:asset_pack/asset_pack.dart'; import 'package:tilebasedwordsearch/dictionary.dart'; import 'package:tilebasedwordsearch/game.dart'; CanvasElement _canvasElement; GameLoop _gameLoop; AssetManager assetManager = new AssetManager(); Dictionary ...
Debug log for touch events.
Debug log for touch events. Signed-off-by: John McCutchan <a51dda7c7ff50b61eaea0444371f4a6a9301e501@johnmccutchan.com>
Dart
bsd-3-clause
sethladd/tilebasedwordsearch,sethladd/tilebasedwordsearch,sethladd/tilebasedwordsearch,sethladd/tilebasedwordsearch
4281bb7f6574a120f4e13d7f0ffdca7f6c272d10
lib/src/components/layout/fnx_form.dart
lib/src/components/layout/fnx_form.dart
// Copyright (c) 2016, <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. import 'package:angular2/core.dart'; import 'package:logging/logging.dart'; import 'package:angular2/common.dart'; import 'package:fnx_ui/src/util/ui.dart' as ui...
// Copyright (c) 2016, <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. import 'package:angular2/core.dart'; import 'package:logging/logging.dart'; import 'package:angular2/common.dart'; import 'package:fnx_ui/src/util/ui.dart' as ui...
FIX properly annotate output event emitter
FIX properly annotate output event emitter
Dart
bsd-3-clause
fnx-io/fnx_ui,fnx-io/fnx_ui,fnx-io/fnx_ui,fnx-io/fnx_ui
a59710e033f4648ff8d82bbd88979e811e2ac3f6
dart/server.dart
dart/server.dart
import 'dart:io'; import 'dart:convert' show JSON; main() { int port = 3000; HttpServer.bind('localhost', port).then((HttpServer server) { print('Server started on port: $port'); server.listen((HttpRequest request) { String str = request.uri.queryParameters['str'] ?? ''; ...
import 'dart:convert' show JSON; import 'dart:io'; main() { int port = 3000; HttpServer.bind('localhost', port).then((HttpServer server) { print('Server started on port: $port'); server.listen((HttpRequest request) { String str = request.uri.queryParameters['str'] ?? ''; ...
Use more method chaining for cleaner code
Use more method chaining for cleaner code
Dart
mit
melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services,melonmanchan/left-pad-services
78238061c9025eb841831b5b3fe9b3eb811717a9
test/breath_test.dart
test/breath_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 unittest.breath_test; import 'dart:async'; import 'package:unittest/unittest.dart'; void mai...
// 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 unittest.breath_test; import 'dart:async'; import 'package:unittest/unittest.dart'; void mai...
Make the unittest's breath test a bit more resilient against timing issue.
Make the unittest's breath test a bit more resilient against timing issue. BUG= R=kustermann@google.com, sgjesse@google.com Review URL: https://codereview.chromium.org//734023002 git-svn-id: b889c0189f1adfea19efba192a3d7a5b889e4120@41774 260f80e4-7a28-3924-810f-c04153c831b5
Dart
bsd-3-clause
iglherme/Guttiest,d2m/test,grouma/test,grouma/test,Pacane/test,iglherme/Guttiest,apwilson/test,kevmoo/test,grouma/test,Pacane/test,apwilson/test,d2m/test,greglittlefield-wf/test,d2m/test,apwilson/test,kevmoo/test,iglherme/Guttiest,greglittlefield-wf/test,kevmoo/test,greglittlefield-wf/test
53b2f42423c046f275152c86d4e0c0b5ac6a5c63
lib/icon_data.dart
lib/icon_data.dart
library font_awesome_flutter; import 'package:flutter/widgets.dart'; class IconDataBrands extends IconData { const IconDataBrands(int codePoint) : super( codePoint, fontFamily: 'FontAwesomeBrands', fontPackage: 'font_awesome_flutter', ); } class IconDataSolid extends Ico...
library font_awesome_flutter; import 'package:flutter/widgets.dart'; class IconDataBrands extends IconData { const IconDataBrands(int codePoint) : super( codePoint, fontFamily: 'FontAwesomeBrands', fontPackage: 'font_awesome_flutter', ); } class IconDataSolid extends Ico...
Comment out pro-only light icons
Comment out pro-only light icons
Dart
mit
brianegan/font_awesome_flutter,brianegan/font_awesome_flutter,brianegan/font_awesome_flutter
fc613081fe52edef55ef94c293db4a678236b98d
lib/src/scene.dart
lib/src/scene.dart
import 'package:flutter/widgets.dart'; abstract class Scene { String get title; Future<void> setUp() async {} Widget build(); }
import 'package:flutter/widgets.dart'; abstract class Scene { /// This Scene's name in the [StagerApp]'s list of scenes. String get title; /// Used to configure this Scene's dependencies. /// /// Analogous to StatefulWidget's `initState`, this is called once at app /// launch. Future<void> setUp() async...
Add doc comments to Scene
Add doc comments to Scene
Dart
mit
bryanoltman/stager,bryanoltman/stager,bryanoltman/stager,bryanoltman/stager,bryanoltman/stager,bryanoltman/stager
f92349fceafe0ff9ecf3c9dcd77d0b436b45a3e1
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<Game> _g...
Add web server game class
Add web server game class
Dart
mit
Mixolyde/dartbasejeff,Mixolyde/dartbasejeff
5b0e037a6da0974cbe79eda9dd9691970d82035d
widgets/lib/spark_button/spark_button.dart
widgets/lib/spark_button/spark_button.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.button; import 'package:polymer/polymer.dart'; import '../common/spark_widget.dart'; // TODO(...
// 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.button; import 'package:polymer/polymer.dart'; import '../common/spark_widget.dart'; // TODO(...
Switch to a more standard place to handle/set initial attribute values
Switch to a more standard place to handle/set initial attribute values
Dart
bsd-3-clause
ussuri/chromedeveditor,googlearchive/chromedeveditor,b0dh1sattva/chromedeveditor,2947721120/choredev,vivalaralstin/chromedeveditor,2947721120/choredev,b0dh1sattva/chromedeveditor,2947721120/choredev,valmzetvn/chromedeveditor,beaufortfrancois/chromedeveditor,vivalaralstin/chromedeveditor,valmzetvn/chromedeveditor,vivala...
9806ed0ae133837da7c04d44450564080cb532ac
web/chronos.dart
web/chronos.dart
import 'package:angular/angular.dart'; @MirrorsUsed(override: '*') import 'dart:mirrors'; import '../lib/chronos.dart'; @NgController( selector: "[timesheet]", publishAs: 'ctrl' ) class TimesheetController { Timesheet timesheet = new Timesheet(); String hours = "1"; String description = ""; String cl...
import 'package:angular/angular.dart'; @MirrorsUsed(override: '*') import 'dart:mirrors'; import '../lib/chronos.dart'; @NgController( selector: "[timesheet]", publishAs: 'ctrl' ) class TimesheetController { Timesheet timesheet = new Timesheet(); String hours = "1"; String description = ""; String cl...
Handle durations longer than one hour.
Handle durations longer than one hour.
Dart
mit
MarkBennett/chronos
30c4cb00b8e33f44ec32e4774eb86e88605ad1c0
pkg/analyzer/test/src/diagnostics/part_of_different_library_test.dart
pkg/analyzer/test/src/diagnostics/part_of_different_library_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:analyzer/src/error/codes.dart'; import 'package:test_reflective_loader/test_reflective_l...
// 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:analyzer/src/error/codes.dart'; import 'package:test_reflective_loader/test_reflective_l...
Add a few more tests for PART_OF_DIFFERENT_LIBRARY.
Add a few more tests for PART_OF_DIFFERENT_LIBRARY. Change-Id: I685874502d49e4a6b4164bb25cf449423659514a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/265180 Reviewed-by: Brian Wilkerson <1f7641b6b14c52b9163524ab8d9aabff80176f21@google.com> Commit-Queue: Konstantin Shcheglov <09e4d7516628963212bf4aace2f976...
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
4f079e2c8e5baa4401aeeec53780b605ddbb6f06
test/date_time_format_http_request_test.dart
test/date_time_format_http_request_test.dart
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // or 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 date formatting and parsing using locale data read via an http request * to a server. */ ...
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // or 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 date formatting and parsing using locale data read via an http request * to a server. */ ...
Create generated tests inside the build directory
Create generated tests inside the build directory Patch Set 1 is a revert of r18295. Review URL: https://codereview.chromium.org//12223074 git-svn-id: a8f079e7cfc3a289d8496d7b88aabbd5c45a3053@18802 260f80e4-7a28-3924-810f-c04153c831b5
Dart
bsd-3-clause
astashov/intl,astashov/intl,dart-lang/intl
252ac3f3b00796195c959eb9d4d21ea50844e952
lib/src/whois.dart
lib/src/whois.dart
part of irc; class WhoisBuilder { static final List<String> FIELDS = [ "nickname", "realname", "hostname", "username", "away_message", "away", "channels", "op_in", "voice_in", "server_name", "server_info", "idle", "idle_time", "server_operator" ]; final St...
part of irc; class WhoisBuilder { final String nickname; String username; String realname; String hostname; String away_message; List<String> channels = []; List<String> voice_in = []; List<String> op_in = []; String server_name; String server_info; bool idle; int idle_time; bool server_opera...
Remove field names storage and use introspection instead.
WhoisBuilder: Remove field names storage and use introspection instead.
Dart
mit
DirectMyFile/irc.dart,DirectMyFile/irc.dart
4016ac6ab9b70d07fb8469c1cfcea224d64a795b
petitparser/lib/src/reflection/iterable.dart
petitparser/lib/src/reflection/iterable.dart
import '../core/parser.dart'; /// Returns a lazy iterable over all parsers reachable from a [root]. /// /// For example, the following code prints the two parsers of the /// defined grammar: /// /// final parser = range('0', '9').star(); /// allParser(parser).forEach((each) { /// print(each); /// });...
import '../core/parser.dart'; /// Returns a lazy iterable over all parsers reachable from a [root]. /// /// For example, the following code prints the two parsers of the /// defined grammar: /// /// final parser = range('0', '9').star(); /// allParser(parser).forEach((each) { /// print(each); /// });...
Optimize the iteration over parser graphs by creating a native iterator.
Optimize the iteration over parser graphs by creating a native iterator.
Dart
mit
petitparser/dart-petitparser
f6f055bb34dbcb35ba7ff270960da0295b8679a5
example/hello/main.g.dart
example/hello/main.g.dart
// GENERATED CODE - DO NOT MODIFY BY HAND // 2015-03-17T09:43:06.033Z part of uix.example.hello.main; // ************************************************************************** // Generator: UixGenerator // Target: class Main // ************************************************************************** Main creat...
// GENERATED CODE - DO NOT MODIFY BY HAND // 2015-03-17T12:16:22.111Z part of uix.example.hello.main; // ************************************************************************** // Generator: UixGenerator // Target: class Main // ************************************************************************** Main creat...
Add link to "Snake Game" example
Add link to "Snake Game" example
Dart
bsd-2-clause
localvoid/uix,localvoid/uix
6817f45324bb28460497132df6c6a482d88725e1
runtime/lib/profiler.dart
runtime/lib/profiler.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 "dart:_internal"; patch class UserTag { /* patch */ factory UserTag(String label) { retur...
// 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 "dart:_internal"; patch class UserTag { /* patch */ factory UserTag(String label) { retur...
Fix return value for makeCurrent
Fix return value for makeCurrent BUG= Review URL: https://codereview.chromium.org//279913002 git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@35979 260f80e4-7a28-3924-810f-c04153c831b5
Dart
bsd-3-clause
dart-archive/dart-sdk,dart-lang/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-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,d...
d0a1ba04e21b7f936965fb99948048545a79ba62
moor/tool/run_tests.dart
moor/tool/run_tests.dart
import 'dart:io'; /// Runs all test files individually. /// /// For some reason, coverage collection times out when running them all at once /// with null safety enabled, so this is what we have to do now. Future<void> main() async { final directory = Directory('test'); var hadFailures = false; await for (final...
import 'dart:io'; /// Runs all test files individually. /// /// For some reason, coverage collection times out when running them all at once /// with null safety enabled, so this is what we have to do now. Future<void> main() async { final directory = Directory('test'); var hadFailures = false; await for (final...
Use right Dart binary for tests, ugh
Use right Dart binary for tests, ugh
Dart
mit
simolus3/drift,simolus3/moor,simolus3/drift,simolus3/moor,simolus3/moor,simolus3/drift,simolus3/drift,simolus3/drift,simolus3/moor,simolus3/moor,simolus3/moor,simolus3/drift,simolus3/moor,simolus3/drift
f4872cdd671cd673b43defe788fd293f65c44c8b
examples/stocks-fn/stocklist.dart
examples/stocks-fn/stocklist.dart
part of stocksapp; class Stocklist extends FixedHeightScrollable { String query; List<Stock> stocks; Stocklist({ Object key, this.stocks, this.query }) : super(key: key, scrollCurve: new BoundedScrollCurve(minOffset: 0.0)); List<Node> buildItems(int start, int count) { return stocks ....
part of stocksapp; class Stocklist extends FixedHeightScrollable { String query; List<Stock> stocks; Stocklist({ Object key, this.stocks, this.query }) : super(key: key, scrollCurve: new OverscrollCurve()); List<Node> buildItems(int start, int count) { return stocks .skip(start) ...
Implement an OverscrollCurve for Scrollable
Implement an OverscrollCurve for Scrollable When using OverscrollCurve, we continue to scroll beyond the top of the scrollable area but the scroll delta is reduced by 2x. A future CL will add an animation at gesturescrollend to relax back to scroll position 0.0. R=eseidel@chromium.org Review URL: https://codereview....
Dart
bsd-3-clause
Hixie/flutter,cbracken/flutter,Hixie/flutter,Hixie/flutter,tvolkert/flutter,cbracken/flutter,tvolkert/flutter,Hixie/flutter,aghassemi/flutter,jason-simmons/flutter,flutter/flutter,tvolkert/flutter,aghassemi/flutter,flutter/flutter,flutter/flutter,turnidge/flutter,jason-simmons/flutter,cbracken/flutter,flutter/flutter,H...
03d0a3c520a7b65fce905a7da56c07a71a759f77
lib/src/view/helpers.dart
lib/src/view/helpers.dart
part of bridge.view; ViewResponse view(String templateName, {String withScript, List<String> withScripts}) { var scripts = <String>[]; if (withScript != null) scripts.add(withScript); if (withScripts != null) scripts.addAll(withScripts); return new ViewResponse(templateName, scripts); }
part of bridge.view; ViewResponse template(String templateName, {String withScript, List<String> withScripts}) { var scripts = <String>[]; if (withScript != null) scripts.add(withScript); if (withScripts != null) scripts.addAll(withScripts); return new ViewResponse(templateName, scripts); }
Change view helper to template
Change view helper to template
Dart
mit
ronlobo/framework,ronlobo/framework,ronlobo/framework,dart-bridge/framework,dart-bridge/framework
d03afe02cf60411e76c36236f589f75a86070470
lib/src/source_gen/common/references.dart
lib/src/source_gen/common/references.dart
import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/type.dart'; import 'package:code_builder/code_builder.dart'; ReferenceBuilder toBuilder(DartType type, List<ImportElement> imports) => reference(type.name, _importFrom(type, imports)) .toTyped(_coerceTypeArgs(type, i...
import 'package:analyzer/dart/element/element.dart'; import 'package:analyzer/dart/element/type.dart'; import 'package:code_builder/code_builder.dart'; ReferenceBuilder toBuilder(DartType type, List<ImportElement> imports) => reference(type.name, _importFrom(type, imports)) .toTyped(_coerceTypeArgs(type, i...
Replace manual searching through imports/exports with LibraryElement.exportNamespace.
SourceGen: Replace manual searching through imports/exports with LibraryElement.exportNamespace. The analyzer already determines which elements are visible from a library, and exposes that information via the namespace, so we don't need to do a recursive search ourselves. ------------- Created by MOE: https://github....
Dart
mit
chalin/angular2,matanlurey/angular,matanlurey/angular,kevmoo/angular,angulardart/angular,matanlurey/angular,chalin/angular2,angulardart/angular,kevmoo/angular,kevmoo/angular,angulardart/angular,chalin/angular2
211426601d58054dd6311813111ee3a8e16eabe3
packages/flutter/lib/animation/forces.dart
packages/flutter/lib/animation/forces.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 'package:newton/newton.dart'; import 'package:sky/animation/direction.dart'; // Base class for creating Simulations for the animation Timeline. ab...
// 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 'package:newton/newton.dart'; import 'package:sky/animation/direction.dart'; // Base class for creating Simulations for the animation Timeline. ab...
Adjust the SpringForce tolerance, used by Drawer and Dismissable.
Adjust the SpringForce tolerance, used by Drawer and Dismissable. They settle much faster after you fling them now.
Dart
bsd-3-clause
Hixie/flutter,tvolkert/flutter,cbracken/flutter,cbracken/flutter,Hixie/flutter,flutter/flutter,aghassemi/flutter,turnidge/flutter,Hixie/flutter,Hixie/flutter,cbracken/flutter,flutter/flutter,Hixie/flutter,tvolkert/flutter,Hixie/flutter,flutter/flutter,aghassemi/flutter,tvolkert/flutter,turnidge/flutter,jason-simmons/fl...
bc68bc57299a687c282a4cbf8291e0868ba09a54
examples/stocks2/lib/stock_app.dart
examples/stocks2/lib/stock_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 'package:sky/widgets/basic.dart'; import 'package:sky/widgets/navigator.dart'; import 'package:sky/widgets/widget.dart'; import 'stock_home.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 'package:sky/rendering/box.dart'; import 'package:sky/widgets/basic.dart'; import 'package:sky/widgets/navigator.dart'; import 'package:sky/widgets...
Enable render view override for stocks app to enable testing
Enable render view override for stocks app to enable testing This fixes the test TBR=abarth Review URL: https://codereview.chromium.org/1192533002.
Dart
bsd-3-clause
xunmengfeng/engine,zhangxq5012/sky_engine,afandria/sky_engine,aam/engine,mpcomplete/engine,xunmengfeng/engine,lyceel/engine,tvolkert/engine,zhangxq5012/sky_engine,mpcomplete/engine,mpcomplete/engine,Hixie/sky_engine,TribeMedia/sky_engine,jamesr/sky_engine,jamesr/flutter_engine,chinmaygarde/flutter_engine,aam/engine,aam...
40e7ecbf711e4aeecb29b157a9be68ffa6aaa98d
examples/stocks2/lib/stock_app.dart
examples/stocks2/lib/stock_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 'package:sky/widgets/basic.dart'; import 'package:sky/widgets/navigator.dart'; import 'package:sky/widgets/widget.dart'; import 'stock_home.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 'package:sky/rendering/box.dart'; import 'package:sky/widgets/basic.dart'; import 'package:sky/widgets/navigator.dart'; import 'package:sky/widgets...
Enable render view override for stocks app to enable testing
Enable render view override for stocks app to enable testing This fixes the test TBR=abarth Review URL: https://codereview.chromium.org/1192533002.
Dart
bsd-3-clause
Hixie/flutter,aghassemi/flutter,cbracken/flutter,tvolkert/flutter,jason-simmons/flutter,flutter/flutter,turnidge/flutter,Hixie/flutter,flutter/flutter,tvolkert/flutter,aghassemi/flutter,flutter/flutter,aghassemi/flutter,Hixie/flutter,turnidge/flutter,Hixie/flutter,turnidge/flutter,tvolkert/flutter,cbracken/flutter,cbra...
9b49d5932bf695e537ac835e0e3069bd44cffbf2
tests/standalone/io/platform_test.dart
tests/standalone/io/platform_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("dart:io"); main() { Expect.isTrue(Platform.numberOfProcessors > 0); var os = Platform.ope...
// 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("dart:io"); main() { Expect.isTrue(Platform.numberOfProcessors > 0); var os = Platform.ope...
Add "android" as an expected OS target.
Add "android" as an expected OS target. Enables this test to pass when run on Android. BUG= Review URL: https://chromiumcodereview.appspot.com//10828231 git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@10590 260f80e4-7a28-3924-810f-c04153c831b5
Dart
bsd-3-clause
dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/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-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-...
931abb1f135583ee9407090a0225d791f2148915
tests/language/switch_this_test.dart
tests/language/switch_this_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 comparison of this and a constant. class Foo { static final C1 = const Foo('C1'); static 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. // Test comparison of this and a constant. class Foo { static final C1 = const Foo('C1'); static f...
Make field final in const class.
Make field final in const class. TBR=ager@google.com Review URL: https://chromiumcodereview.appspot.com//10446011 git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@7947 260f80e4-7a28-3924-810f-c04153c831b5
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,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/...
2a6766b4f99f0cc05d4894f014c488f5ea0c3b0a
lib/src/common/metadata.dart
lib/src/common/metadata.dart
part of kafka.common; /// Represents single node in a Kafka cluster. class Broker { /// Unique ID of this broker within cluster. final int id; /// Host name or IP address of this broker. final String host; /// Port number of this broker. final int port; static final Map<String, Broker> _instances = ne...
part of kafka.common; /// Represents single node in a Kafka cluster. class Broker { /// Unique ID of this broker within cluster. final int id; /// Host name or IP address of this broker. final String host; /// Port number of this broker. final int port; static final Map<String, Broker> _instances = ne...
Fix for hasCode to be a getter instead of regular method in TopicPartition
Fix for hasCode to be a getter instead of regular method in TopicPartition
Dart
bsd-2-clause
dart-kafka/kafka,dart-drivers/kafka,pulyaevskiy/dart-kafka,dart-drivers/kafka,pulyaevskiy/dart-kafka,dart-kafka/kafka
fdce791c1facc4da7f6e9f6329a56b93113c54ba
angular_components/lib/material_tab/tab_button.dart
angular_components/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...
Change TabButton to be OnPush as it is used in an OnPush context, and there is no reason why it can't be OnPush.
Change TabButton to be OnPush as it is used in an OnPush context, and there is no reason why it can't be OnPush. PiperOrigin-RevId: 242756270
Dart
bsd-3-clause
angulardart/angular_components,angulardart/angular_components,angulardart/angular_components
ef162ad2feffe346f69f4e1ead44ff2b59d4f7a3
test_reflectable/tool/link_reflectable.dart
test_reflectable/tool/link_reflectable.dart
/// Creates a symlink to the reflectable package next to this package. import "dart:io"; void main(List<String> args) { String projectRoot = args[0]; // If projectRoot is relative we want to make it absolute, so the link // will be to an absolute location. Uri currentPathUri = new Uri.file(Directory.current.pa...
/// Creates a symlink to the reflectable package next to this package. import "dart:io"; void main(List<String> args) { String projectRoot = args[0]; // If projectRoot is relative we want to make it absolute, so the link // will be to an absolute location. Uri currentPathUri = new Uri.file(Directory.current.pa...
Add diagnostic to see if the target of the created link exists.
Add diagnostic to see if the target of the created link exists. BUG= R=eernst@google.com Review URL: https://codereview.chromium.org/1216213002.
Dart
bsd-3-clause
luisvt/reflectable,google/reflectable.dart,jakemac53/reflectable,luisvt/reflectable,jakemac53/reflectable,google/reflectable.dart,bwu-dart-contributing/reflectable,bwu-dart-contributing/reflectable
52b93be89f33ba10f9ce78ea9bd0daa50e59fcc5
test/task_test.dart
test/task_test.dart
import 'package:ddays/task.dart'; import "package:test/test.dart"; void main() { test('task gets initialised correctly', () { var t1 = new Task('task1',null); expect(t1.summary, 'task1'); var t2 = new Task('task2', new DateTime(2015,1,1)); expect(t2.scheduled.month, 1); }); test('addNote should...
import 'package:ddays/task.dart'; import "package:test/test.dart"; void main() { test('task gets initialised correctly', () { var t1 = new Task('task1',null); expect(t1.summary, 'task1'); var t2 = new Task('task2', new DateTime(2015,1,1)); expect(t2.scheduled.month, 1); }); test('addNote should...
Refactor test for addNote function.
Refactor test for addNote function.
Dart
bsd-3-clause
mswift42/ddays,mswift42/ddays
f72a8059eabc342235490ad986fa180230307278
tests/standalone/verified_mem_test.dart
tests/standalone/verified_mem_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. // // Test write barrier verification mode. // VMOptions=--verified_mem --verify_before_gc --verify_afte...
// 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. // // Test write barrier verification mode. // VMOptions=--verified_mem --verify_before_gc --verify_afte...
Decrease size of test of write barrier verification.
Decrease size of test of write barrier verification. It was close to timing out on Linux, and failing on Windows, likely due to OOM. TBR=iposva@google.com Review URL: https://codereview.chromium.org//723893002 git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@41702 260f80e4-7a28-3924-810f-c04153c831b5
Dart
bsd-3-clause
dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/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,d...
602d2e01b80f07a4012c095e86c7bc85fcb088e3
tool/config.dart
tool/config.dart
part of hop_runner; Map<String, dynamic> config; Directory get tool_dir => new File.fromUri(Platform.script).parent.absolute; Directory get root_dir => tool_dir.parent; Map<String, dynamic> load_config() => loadYaml(new File("${tool_dir.path}/build.yaml").readAsStringSync()); Map<String, dynamic> variables = { "t...
part of hop_runner; Map<String, dynamic> config; Directory get tool_dir => new File.fromUri(Platform.script).parent.absolute; Directory get root_dir => tool_dir.parent; Map<String, dynamic> load_config() { var it = loadYaml(new File("${tool_dir.path}/build.yaml").readAsStringSync()); if (it.containsKey("variable...
Add Variables Support in Configuration
Build: Add Variables Support in Configuration
Dart
mit
DirectMyFile/irc.dart,DirectMyFile/irc.dart
bb13335efc8c6ffc5080fa6dedbd0b5557b477e0
lib/src/generation.dart
lib/src/generation.dart
part of darwin; class Generation<T extends Phenotype> { List<T> members = new List<T>(); /** * Filters the generation to phenotypes that are similar to [ph] as defined * by their Hamming distance being less than [radius]. * * This _includes_ the original [ph] (Because [ph]'s Hamming distance to ...
part of darwin; class Generation<T extends Phenotype> { List<T> members = new List<T>(); /** * Filters the generation to phenotypes that are similar to [ph] as defined * by their Hamming distance being less than [radius]. * * This _includes_ the original [ph] (Because [ph]'s Hamming distance to ...
Add best phenotype to Generation as a field
Add best phenotype to Generation as a field
Dart
mit
filiph/darwin
251b5fab6a9ee5463a76e0641e5a3d0fd6693a38
sdk/lib/ffi/struct.dart
sdk/lib/ffi/struct.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. part of dart.ffi; /// This class is extended to define structs. /// /// Fields in a struct, annotated ...
// 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. part of dart.ffi; /// This class is extended to define structs. /// /// Fields in a struct, annotated ...
Fix spelling in ffi documentation
[vm/ffi] Fix spelling in ffi documentation Fix spelling nit (it's -> its). Closes https://github.com/dart-lang/sdk/pull/43483 https://github.com/dart-lang/sdk/pull/43483 GitOrigin-RevId: 5bc63e70f3846b131ea25dcdb81c6a66929f995b Change-Id: I13d3a42896412d1111e9b9882911ade8bb7623a1 Reviewed-on: https://dart-review.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
bfa7489a8f9860141c0069e7433c6cbab86f1506
sky/packages/sky/lib/src/material/icon_theme_data.dart
sky/packages/sky/lib/src/material/icon_theme_data.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. enum IconThemeColor { white, black } class IconThemeData { const IconThemeData({ this.color }); final IconThemeColor color; bool operator ==(dynam...
// 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. enum IconThemeColor { white, black } class IconThemeData { const IconThemeData({ this.color }); final IconThemeColor color; bool operator ==(dynam...
Fix a type mismatch in IconThemeData.operator==
Fix a type mismatch in IconThemeData.operator==
Dart
bsd-3-clause
aam/engine,jamesr/sky_engine,krisgiesing/sky_engine,cdotstout/sky_engine,tvolkert/engine,mpcomplete/engine,mpcomplete/flutter_engine,jamesr/flutter_engine,flutter/engine,lyceel/engine,flutter/engine,mxia/engine,mpcomplete/engine,mxia/engine,jason-simmons/flutter_engine,chinmaygarde/sky_engine,tvolkert/engine,jason-simm...
86c2f2ec6c6b2a28bddaa97fb46ad0b09dd084a1
lib/src/components/datepicker_component.dart
lib/src/components/datepicker_component.dart
import 'dart:html'; import 'package:angular2/core.dart'; import 'package:intl/intl.dart'; @Component( selector: 'datepicker', templateUrl: 'datepicker_component.html', styleUrls: const['datepicker_component.css'] ) class DatepickerComponent implements OnInit{ @Input() String componentId; String datepicker...
import 'dart:html'; import 'package:angular2/core.dart'; import 'package:intl/intl.dart'; import 'day_component.dart'; @Component( selector: 'datepicker', templateUrl: 'datepicker_component.html', styleUrls: const['datepicker_component.css'], directives: const[DayComponent] ) class DatepickerComponent impleme...
Add click listener to day module.
Add click listener to day module.
Dart
bsd-3-clause
shinzenkoru/dart_bootstrap_datepicker,shinzenkoru/dart_bootstrap_datepicker,shinzenkoru/dart_bootstrap_datepicker
945388c96eb0cc9262fef935b38517850a42875e
lib/src/xml/dtd/external_id.dart
lib/src/xml/dtd/external_id.dart
import '../enums/attribute_type.dart'; import '../utils/token.dart'; /// Immutable external ID . class DtdExternalId { DtdExternalId.public(String this.publicId, XmlAttributeType this.publicIdType, this.systemId, this.systemIdType); DtdExternalId.system(this.systemId, this.systemIdType) : publicId = n...
import '../enums/attribute_type.dart'; import '../utils/token.dart'; /// Immutable external ID. class DtdExternalId { DtdExternalId.public(String this.publicId, XmlAttributeType this.publicIdType, this.systemId, this.systemIdType); DtdExternalId.system(this.systemId, this.systemIdType) : publicId = nu...
Fix comment of External ID.
Fix comment of External ID.
Dart
mit
renggli/dart-xml
4f1ee80d254a69fe149831c0a369bbaac8639b9c
bin/sync_all.dart
bin/sync_all.dart
import 'dart:async'; import 'dart_doc_syncer.dart' as syncer; final examplesToSync = <List<String>>[ <String>[ 'public/docs/_examples/template-syntax/dart', 'git@github.com:angular-examples/template-syntax.git' ] ]; /// Syncs all angular.io example applications. Future main(List<String> args) async { f...
import 'dart:async'; import 'package:dart_doc_syncer/documentation_updater.dart'; /// Syncs all angular.io example applications. Future main() async { for (List<String> example in _examplesToSync) { try { final documentation = new DocumentationUpdater(); await documentation.updateRepository(example[...
Add more repositories to sync.
Add more repositories to sync.
Dart
mit
dart-archive/dart-doc-syncer
14f7ce7a50583f1805e30865307e52645af3030b
lib/src/util.dart
lib/src/util.dart
part of stream_transformers; Stream _bindStream({Stream like, StreamSubscription onListen(EventSink sink), onCancel()}) { StreamSubscription subscription; StreamController controller; controller = _createControllerLikeStream( stream: like, onListen: () => subscription = onListen(controller), o...
part of stream_transformers; Stream _bindStream({Stream like, StreamSubscription onListen(EventSink sink), onCancel(), bool sync: false}) { StreamSubscription subscription; StreamController controller; controller = _createControllerLikeStream( stream: like, sync: sync, onListen: () => subscrip...
Allow creation of sync streams from internal stream factories
Allow creation of sync streams from internal stream factories
Dart
mit
danschultz/stream_transformers,danschultz/stream_transformers,devoncarew/stream_transformers
e14568cf83adc05e4c7dfe281fa369c653b01b77
pkg/lookup_map/test/version_check_test.dart
pkg/lookup_map/test/version_check_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:io'; import 'dart:mirrors'; import 'package:lookup_map/lookup_map.dart'; // accessed via m...
// 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 'dart:mirrors'; import 'package:lookup_map/lookup_map.dart'; // accessed via m...
Fix conversion from Uri to File in test, to use File.fromUri().
Fix conversion from Uri to File in test, to use File.fromUri(). BUG= R=wibling@google.com Review URL: https://codereview.chromium.org//1333313002 .
Dart
bsd-3-clause
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-archive/dart-sdk,dartino/dart-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-lang/sdk...
a38ffcc06978bb95685834bb07619eca67400d29
tests/standalone/verified_mem_test.dart
tests/standalone/verified_mem_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. // // Test write barrier verification mode. // VMOptions=--verified_mem --verify_before_gc --verify_afte...
// 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. // // Test write barrier verification mode. // VMOptions=--verified_mem --verify_before_gc --verify_afte...
Reduce live size of test of write barrier verification.
Reduce live size of test of write barrier verification. TBR=iposva@google.com Review URL: https://codereview.chromium.org//726453002 git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@41703 260f80e4-7a28-3924-810f-c04153c831b5
Dart
bsd-3-clause
dartino/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-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/s...
2f40c42d50452c15c8728eee642034f1f94a9788
test/core/parser/generated_getter_setter_spec.dart
test/core/parser/generated_getter_setter_spec.dart
library generated_getter_setter_spec; import '../../_specs.dart'; import 'parser_spec.dart' as parser_spec; import 'generated_getter_setter.dart'; main() { describe('hybrid getter-setter', () { beforeEach(module((Module module) { module.type(Parser, implementedBy: DynamicParser); module.type(Closure...
library generated_getter_setter_spec; import '../../_specs.dart'; import 'parser_spec.dart' as parser_spec; import 'generated_getter_setter.dart'; main() { describe('hybrid getter-setter', () { beforeEach(module((Module module) { module.type(Parser, implementedBy: DynamicParser); module.type(Closure...
Enable parser tests using the generated hybrid parser.
chore(parser): Enable parser tests using the generated hybrid parser.
Dart
mit
SibuStephen/angular.dart,giovannicandido/angular.dart,hitesh97/angular.dart,winstonewert/angular.dart,ronlobo/angular.dart,rkirov/angular.dart,ronlobo/angular.dart,ronlobo/angular.dart,hitesh97/angular.dart,giovannicandido/angular.dart,giovannicandido/angular.dart,winstonewert/angular.dart,winstonewert/angular.dart,tri...
778b0c25190c93aa851f4b8f28a4cb6cac5b15f4
dartbase_console_client/lib/dartbase_console_client.dart
dartbase_console_client/lib/dartbase_console_client.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. /// The dartbase_console_client library. library dartbase_console_client; import 'package:console/console.dart'; import 'package:dartbase_server/gamelogic.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. /// The dartbase_console_client library. library dartbase_console_client; import 'package:console/console.dart'; import 'package:dartbase_server/gamelogic.dart'...
Add print part, remove print methods
Add print part, remove print methods
Dart
mit
Mixolyde/dartbasejeff,Mixolyde/dartbasejeff
afb30ec567b6ea7fb6e80400bf9db17c8c546845
pay/lib/src/widgets/google_pay_button_widget.dart
pay/lib/src/widgets/google_pay_button_widget.dart
part of '../../pay.dart'; typedef PayGestureTapCallback = void Function(Pay client); class GooglePayButtonWidget extends StatelessWidget { final Pay _googlePayClient; final GooglePayButton _googlePayButton; final Widget _childOnError; final Widget _loadingIndicator; GooglePayButtonWidget._( Key key, ...
part of '../../pay.dart'; typedef PayGestureTapCallback = void Function(Pay client); class GooglePayButtonWidget extends StatelessWidget { final Pay _googlePayClient; final GooglePayButton _googlePayButton; final Widget _childOnError; final Widget _loadingIndicator; GooglePayButtonWidget._( Key key, ...
Remove sizing opinion on the widget
Remove sizing opinion on the widget
Dart
apache-2.0
google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin
9fdfd913b7f41b04580735e4e02fd71b45df0ea7
sky/packages/sky/lib/src/rendering/statistics_box.dart
sky/packages/sky/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
jamesr/flutter_engine,mxia/engine,jamesr/sky_engine,mpcomplete/engine,mpcomplete/flutter_engine,abarth/sky_engine,mxia/engine,jason-simmons/sky_engine,jason-simmons/flutter_engine,tvolkert/engine,cdotstout/sky_engine,devoncarew/engine,lyceel/engine,tvolkert/engine,krisgiesing/sky_engine,chinmaygarde/flutter_engine,devo...
041c4e0cecaf48a25947114944ef5584b3d90a94
tests/standalone/io/directory_list_pause_test.dart
tests/standalone/io/directory_list_pause_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 "dart:async"; import "dart:io"; import "dart:isolate"; vo...
// 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 "dart:async"; import "dart:io"; import "dart:isolate"; vo...
Increase number of files created, to avoid flakyness on linux.
Increase number of files created, to avoid flakyness on linux. BUG= Review URL: https://codereview.chromium.org//17232003 git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@24084 260f80e4-7a28-3924-810f-c04153c831b5
Dart
bsd-3-clause
dart-archive/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,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dar...