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 |
|---|---|---|---|---|---|---|---|---|---|
68eb2bcbd8e7e7912c9f788ab4d1c25c94650538 | lib/main.dart | lib/main.dart | import 'package:flutter/material.dart';
void main() {
runApp(new FriendlychatApp());
}
class FriendlychatApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: "FriendlyChat",
home: new ChatScreen(),
);
}
}
class ChatScreen extends Stat... | import 'package:flutter/material.dart';
void main() {
runApp(new FriendlychatApp());
}
class FriendlychatApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: "FriendlyChat",
home: new ChatScreen(),
);
}
}
class ChatScreen extends Stat... | Prepare for adding the button to the right to enable sending the message | Prepare for adding the button to the right to enable sending the message
| Dart | apache-2.0 | grahammkelly/new_flutter_app,grahammkelly/new_flutter_app |
61900c81318f98b0fd45a04f8a3be1f56cc8b3ca | dart/server.dart | dart/server.dart | import 'dart:io';
import 'dart:convert' show JSON;
main() {
var 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: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'] ?? '';
... | Fix some types, better way of interpolating values | Fix some types, better way of interpolating values
| 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 |
772e909575b368865a0d326e9a02fe17d1b8745d | lib/core/helpers/string_mapper_helper.dart | lib/core/helpers/string_mapper_helper.dart | class StringMapperHelper {
static String mapStatIdToTitle(String statId) {
switch (statId) {
case ('top_tv'):
return 'Most Watched TV Shows';
case ('popular_tv'):
return 'Most Popular TV Shows';
case ('top_movies'):
return 'Most Watched Movies';
case ('popular_movie... | import '../../features/graphs/domain/entities/series_data.dart';
class StringMapperHelper {
static String mapStatIdToTitle(String statId) {
switch (statId) {
case ('top_tv'):
return 'Most Watched TV Shows';
case ('popular_tv'):
return 'Most Popular TV Shows';
case ('top_movies')... | Add title mapper for graph series type. | Add title mapper for graph series type.
| Dart | mit | wcomartin/PlexPy-Remote |
fbee9a5fb9af1429e2a3d786dc4f854e018b2893 | lib/src/command_list.dart | lib/src/command_list.dart | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/** Handles the `list` pub command. */
void commandList(PubOptions options, List<String> args) {
// T... | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/** Handles the `list` pub command. */
void commandList(PubOptions options, List<String> args) {
// T... | Sort packages by name before listing them. | Sort packages by name before listing them.
Review URL: https://chromiumcodereview.appspot.com//10191027
git-svn-id: a962b240025cf0577aa172e20f49ccb159ba6be1@6978 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | computmaxer/pub,dart-lang/pub,cjkao/dart-pub,dart-lang/pub,maxwellpeterson-wf/pub |
0bd9f954e0e1dd7faeed92d7378d612bcda80122 | lib/src/util/streams.dart | lib/src/util/streams.dart | part of devtools.util;
class StringTrimmer implements StreamTransformer<String, String> {
@override
Stream<String> bind(Stream<String> stream) =>
stream.map((value) => value.trim());
}
class StringSplitter implements StreamTransformer<String, List<String>> {
final Pattern by;
StringSplitter({this.b... | part of devtools.util;
class StringTrimmer implements StreamTransformer<String, String> {
@override
Stream<String> bind(Stream<String> stream) =>
stream.map((value) => value.trim());
}
class StringSplitter implements StreamTransformer<String, List<String>> {
final Pattern by;
StringSplitter({this.b... | Rename 'Matching' transformer to 'StringsMatching' | Rename 'Matching' transformer to 'StringsMatching'
| Dart | mit | DirectMyFile/devtools,DirectMyFile/devtools |
726b72771e9b91ff6db5458d07706b536a0fc0f6 | tests/lib/async/zone_empty_description2_test.dart | tests/lib/async/zone_empty_description2_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 'package:async_helper/async_helper.dart';
import 'dart:asyn... | // 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 'package:async_helper/async_helper.dart';
import 'dart:asyn... | Make the root zone's schduleMicrotask and create[Periodic]Timer bind the callback. | Make the root zone's schduleMicrotask and create[Periodic]Timer bind the callback.
BUG= http://dartbug.com/15232
R=floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=30708
Review URL: https://codereview.chromium.org//87283003
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@30711 260f... | Dart | bsd-3-clause | dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-... |
90773cba822ef6cb878d566657c2c9689e1bacb2 | lib/core/widgets/poster_card.dart | lib/core/widgets/poster_card.dart | import 'dart:ui';
import 'package:flutter/material.dart';
import 'poster_chooser.dart';
class PosterCard extends StatelessWidget {
final dynamic item;
final Widget details;
const PosterCard({
Key key,
@required this.item,
@required this.details,
}) : super(key: key);
@override
Widget build(... | import 'dart:ui';
import 'package:flutter/material.dart';
import 'poster_chooser.dart';
class PosterCard extends StatelessWidget {
final dynamic item;
final Widget details;
const PosterCard({
Key key,
@required this.item,
@required this.details,
}) : super(key: key);
@override
Widget build(... | Allow poster card to load if no url is provided. | Allow poster card to load if no url is provided.
| Dart | mit | wcomartin/PlexPy-Remote |
3ec7f2cfe57989d7e69bbf4db4adcd984b160f02 | test/test_projects/hello_world/test/basic_test.dart | test/test_projects/hello_world/test/basic_test.dart | import "package:test/test.dart";
void main() {
group("String", () {
test(".split() splits the string on the delimiter", () {
var string = "foo,bar,baz";
expect(string.split(","), equals(["foo", "bar", "baz"]));
});
test(".split() splits the string on the delimiter 2", () {
expect("foo,... | import "package:test/test.dart";
void main() {
group("String", () {
test(".split() splits the string on the delimiter", () {
var string = "foo,bar,baz"; // BREAKPOINT1
expect(string.split(","), equals(["foo", "bar", "baz"]));
});
test(".split() splits the string on the delimiter 2", () {
... | Add breakpoint marker for Dart tests | Add breakpoint marker for Dart tests
| Dart | mit | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code |
80c4a9baa42cb5bb00295503b35cc66f74d40686 | ui/lib/login_service.dart | ui/lib/login_service.dart | import 'dart:async';
import 'dart:convert';
import 'dart:html';
import 'package:angular/angular.dart';
import 'package:http/browser_client.dart';
@Injectable()
class LoginService {
BrowserClient _http;
LoginService(this._http);
Future<String> login(String email, String password) async {
try {
Map bo... | import 'dart:async';
import 'dart:convert';
import 'dart:html';
import 'package:angular/angular.dart';
import 'package:http/browser_client.dart';
@Injectable()
class LoginService {
BrowserClient _http;
LoginService(this._http);
Future<String> login(String email, String password) async {
try {
Map bo... | Call /api/sessions/logout to log out | Call /api/sessions/logout to log out
| Dart | apache-2.0 | gitpods/gitpods,gitpods/gitpods,gitpods/gitpods,gitpods/gitpods |
a825e7eb8486dee8390fc678d43c1576662f344c | LibTest/isolate/Isolate/spawnUri_A05_t04_isolate.dart | LibTest/isolate/Isolate/spawnUri_A05_t04_isolate.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.
*/
/**
* @author a.semenov@unipro.ru
*/
import "dart:isolate";
import "dart:async";
import "Isolat... | /*
* 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.
*/
/**
* @author a.semenov@unipro.ru
*/
import "dart:isolate";
import "dart:async";
import "Isolat... | Test fixed to not to be racy | Test fixed to not to be racy
| Dart | bsd-3-clause | dart-lang/co19,dart-lang/co19,dart-lang/co19 |
96398f47bbcb48711c606c65b403354273c3a316 | utils/pub/command_list.dart | utils/pub/command_list.dart | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* Handles the `list` pub command. This is mostly just used so we can pull
* some basic data out o... | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* Handles the `list` pub command. This is mostly just used so we can pull
* some basic data out o... | Sort packages before listing them. | Sort packages before listing them.
Review URL: https://chromiumcodereview.appspot.com//10137015
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@7112 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-... |
05f3bc28238d7568f9bb68e2d88068ebc924e056 | runtime/observatory/tests/service/get_isolate_after_out_of_memory_error_test.dart | runtime/observatory/tests/service/get_isolate_after_out_of_memory_error_test.dart | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// VMOptions=--error_on_bad_type --error_on_bad_override
import 'package:observatory/service_io.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.
// VMOptions=--error_on_bad_type --error_on_bad_override
import 'package:observatory/service_io.dart';
... | Make OutOfMemory test work on 32 bit machines. | Make OutOfMemory test work on 32 bit machines.
R=rmacnak@google.com
Review URL: https://codereview.chromium.org/2080383003 .
| Dart | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archiv... |
a636a3c5a278e6f7158c6fc99a7834f0c46b17b9 | tests/lib/async/stream_iterator_double_cancel_test.dart | tests/lib/async/stream_iterator_double_cancel_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:async";
import "package:expect/expect.dart";
import "package:async_helper/async_helper.dar... | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "dart:async";
import "package:expect/expect.dart";
import "package:async_helper/async_helper.dar... | Change timer delay to 0 to make jsshell happy. | Change timer delay to 0 to make jsshell happy.
BUG=
R=karlklose@google.com
Review URL: https://codereview.chromium.org//903433002
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@43464 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/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-archive/dart-sdk,dartino/... |
624c3db644f4a99136f862bf1b946920ddfd62fc | lib/src/cancelable_future.dart | lib/src/cancelable_future.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library barback.cancelable_future;
import 'dart:async';
/// A wrapper for [Future] that can be cancel... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library barback.cancelable_future;
import 'dart:async';
/// A wrapper for [Future] that can be cancel... | Add second argument to Future error handlers. | Add second argument to Future error handlers.
R=lrn@google.com, nweiz@google.com
Review URL: https://codereview.chromium.org//25027004
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@28510 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/barback,dart-lang/barback,Aetet/barback,dart-archive/barback,Aetet/barback,dart-lang/barback |
04b97467247e011de15dabc1353ca3698122b759 | widgets/lib/spark_menu_item/spark_menu_item.dart | widgets/lib/spark_menu_item/spark_menu_item.dart | // Copyright (c) 2013, Google Inc. Please see the AUTHORS file for details.
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
library spark_widgets.menu_item;
import 'package:polymer/polymer.dart';
import '../common/spark_widget.dart';
// Po... | // Copyright (c) 2013, Google Inc. Please see the AUTHORS file for details.
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
library spark_widgets.menu_item;
import 'package:polymer/polymer.dart';
import '../common/spark_widget.dart';
// Po... | Set an attribute at a more correct time | Set an attribute at a more correct time
| Dart | bsd-3-clause | valmzetvn/chromedeveditor,2947721120/chromedeveditor,hxddh/chromedeveditor,ussuri/chromedeveditor,beaufortfrancois/chromedeveditor,devoncarew/spark,googlearchive/chromedeveditor,valmzetvn/chromedeveditor,modulexcite/chromedeveditor,b0dh1sattva/chromedeveditor,hxddh/chromedeveditor,googlearchive/chromedeveditor,29477211... |
9398a21de500b99686ac5f041740d601f252e691 | web/deck/rank.dart | web/deck/rank.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.
part of freecell.deck;
class Rank {
static get all => [
new Rank(1),
new Rank(2),
new Rank(3),
new Rank(4),
new Rank(5),
new Ra... | // 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.
part of freecell.deck;
class Rank {
static get all => [
new Rank(1),
new Rank(2),
new Rank(3),
new Rank(4),
new Rank(5),
new Ra... | Remove infinite recursion and add Rank==. | Remove infinite recursion and add Rank==.
| Dart | bsd-3-clause | abarth/freecell,abarth/freecell |
97e9f55ad53e9fb52c5f90bfb0ac893212423e16 | ide/app/lib/git/constants.dart | ide/app/lib/git/constants.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 git.constants;
const String REFS_HEADS = 'refs/heads/';
const String REFS_REMOTE_HEADS = 'refs/remotes/origin... | // 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 git.constants;
const String LOGS_DIR = '.git/logs/';
const String REFS_HEADS = 'refs/heads/';
const String RE... | Add constant for log directory. | Add constant for log directory.
| Dart | bsd-3-clause | hxddh/chromedeveditor,vivalaralstin/chromedeveditor,valmzetvn/chromedeveditor,modulexcite/chromedeveditor,vivalaralstin/chromedeveditor,devoncarew/spark,2947721120/choredev,2947721120/choredev,b0dh1sattva/chromedeveditor,devoncarew/spark,2947721120/chromedeveditor,hxddh/chromedeveditor,googlearchive/chromedeveditor,dev... |
6b184fc187e434af23cd05bdcd828e94b8b7bfee | lib/source_maps.dart | lib/source_maps.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 to create and parse source maps.
///
/// Create a source map using [SourceMapBuilder]. For ... | // 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 to create and parse source maps.
///
/// Create a source map using [SourceMapBuilder]. For ... | Correct markdown in library dartdoc | Correct markdown in library dartdoc
This dartdoc has "code" examples that are not rendered as code. This change fixes that. | Dart | bsd-3-clause | dart-lang/source_maps |
fe4cc0f38c96bcb5eb743346cb04353bc9e9f70b | 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(... | Change default style to flat | Change default style to flat
| Dart | bsd-3-clause | vivalaralstin/chromedeveditor,2947721120/chromedeveditor,beaufortfrancois/chromedeveditor,googlearchive/chromedeveditor,beaufortfrancois/chromedeveditor,ussuri/chromedeveditor,2947721120/chromedeveditor,2947721120/chromedeveditor,vivalaralstin/chromedeveditor,2947721120/choredev,vivalaralstin/chromedeveditor,yikaraman/... |
43ce5bba4690024faa3beae33654c10dbdd2fa1a | lib/collection.dart | lib/collection.dart | library more.collection;
export 'src/collection/bimap.dart' show BiMap, BiMapExtension;
export 'src/collection/bitlist.dart' show BitList, BitListExtension;
export 'src/collection/double_range.dart'
show DoubleRange, DoubleRangeExtension;
export 'src/collection/integer_range.dart'
show IntegerRange, IntegerRan... | library more.collection;
export 'src/collection/bimap.dart' show BiMap, BiMapExtension;
export 'src/collection/bitlist.dart' show BitList, BitListExtension;
export 'src/collection/double_range.dart'
show DoubleRange, DoubleRangeExtension;
export 'src/collection/integer_range.dart'
show IntegerRange, IntegerRan... | Hide multimap again, not a good idea to expose. | Hide multimap again, not a good idea to expose.
| Dart | mit | renggli/dart-more,renggli/dart-more |
e03972acee2d2fc457c041a4e2fb3c157a674c2d | bin/server.dart | bin/server.dart | // Copyright (c) 2016 P.Y. Laligand
import 'dart:io' show Platform;
import 'dart:async' show runZoned;
import 'package:shelf/shelf.dart' as shelf;
import 'package:shelf/shelf_io.dart' as io;
import 'package:shelf_route/shelf_route.dart';
void main() {
var portEnv = Platform.environment['PORT'];
var port = portEn... | // Copyright (c) 2016 P.Y. Laligand
import 'dart:io' show Platform;
import 'dart:async' show runZoned;
import 'package:shelf/shelf.dart' as shelf;
import 'package:shelf/shelf_io.dart' as io;
import 'package:shelf_route/shelf_route.dart';
void main() {
var portEnv = Platform.environment['PORT'];
var port = portEn... | Use POST for the /trials endpoint | Use POST for the /trials endpoint
| Dart | mit | pylaligand/destiny-slack-bot,pylaligand/destiny-slack-bot |
82887696617af9a750bae5f516baaaf187d60b4e | packages/flutter/lib/src/material/icon_theme_data.dart | packages/flutter/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 | flutter/flutter,jason-simmons/flutter,Hixie/flutter,flutter/flutter,Hixie/flutter,turnidge/flutter,aghassemi/flutter,Hixie/flutter,aghassemi/flutter,cbracken/flutter,tvolkert/flutter,turnidge/flutter,cbracken/flutter,tvolkert/flutter,cbracken/flutter,cbracken/flutter,flutter/flutter,cbracken/flutter,tvolkert/flutter,fl... |
78138a66e3e4702eec92d50a5d6bb7c65de03c10 | src/lib/pin/utility/time.dart | src/lib/pin/utility/time.dart | part of pin;
class PinTime {
static int getTime() {
return (new DateTime.now()).millisecondsSinceEpoch;
}
} | part of pin;
class PinTime {
static int getTime() {
return (new DateTime.now()).millisecondsSinceEpoch;
}
static String formatRFC2616(DateTime date) {
return HttpDate.format(date);
}
} | Add RFC2616 date formatting function. | Add RFC2616 date formatting function.
| 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 |
f69dd219f73ec83d3e6324d1f45d1be7e3def493 | tests/language/src/NonParameterizedFactoryTest.dart | tests/language/src/NonParameterizedFactoryTest.dart | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
interface Interface<T> factory Factory {
Interface();
Interface.withArg(T value);
}
// A factory m... | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
interface Interface<T> factory Factory {
Interface();
Interface.withArg(T value);
}
class Factory ... | Revert various changes to Link factories. | Revert various changes to Link factories.
Also, hack/work around bugs in VM and Frog to get LinkFactory to work.
Review URL: http://codereview.chromium.org//8566003
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@1504 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dartino/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,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,da... |
a39fb8d58577ac5a29c1839df76d3836bbb2cf00 | pkg/barback/test/transformer/catch_asset_not_found.dart | pkg/barback/test/transformer/catch_asset_not_found.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library barback.test.transformer.bad;
import 'dart:async';
import 'package:barback/barback.dart';
imp... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library barback.test.transformer.catch_asset_not_found;
import 'dart:async';
import 'package:barback/... | Fix an analyzer warning in barback. | Fix an analyzer warning in barback.
R=rnystrom@google.com
BUG=
Review URL: https://codereview.chromium.org//196573013
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@33678 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-... |
7b3560a9d21acf781c8e6bd4e4a430521d21f862 | tool/build.dart | tool/build.dart | library build;
import 'dart:async';
import "dart:io";
import "package:grinder/grinder.dart";
import 'package:yaml/yaml.dart';
part 'docgen.dart';
part 'utils.dart';
part 'version.dart';
part 'analyze.dart';
part 'config.dart';
void main(List<String> args) {
init();
task("docs", createDocGenTask(".", out_dir: p... | #!/usr/bin/env dart
library build;
import 'dart:async';
import "dart:io";
import "package:grinder/grinder.dart";
import 'package:yaml/yaml.dart';
part 'docgen.dart';
part 'utils.dart';
part 'version.dart';
part 'analyze.dart';
part 'config.dart';
void main(List<String> args) {
init();
task("docs", createDocGe... | Fix Bug in Build System | Fix Bug in Build System
| Dart | mit | DirectMyFile/devtools,DirectMyFile/devtools |
f6d1c30e1cd40d73bef58b32e7246f92a04b0940 | src/lib/pin/pin.dart | src/lib/pin/pin.dart | library pin;
import 'dart:async';
import 'dart:collection';
import 'dart:convert';
import 'dart:io';
import 'package:http/http.dart' as LibHttp;
import 'package:path/path.dart' as LibPath;
import 'package:logging/logging.dart';
import 'package:oauth2/oauth2.dart' as OAuth2;
import 'package:google_oauth2_client/googl... | library pin;
import 'dart:async';
import 'dart:collection';
import 'dart:convert';
import 'dart:io';
import 'package:http/http.dart' as LibHttp;
import 'package:path/path.dart' as LibPath;
import 'package:logging/logging.dart';
import 'package:oauth2/oauth2.dart' as OAuth2;
import 'package:google_oauth2_client/googl... | Add google drive schema classes into lib. | Add google drive schema classes into lib.
| 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 |
894bfa33877edee96e9d8e24fbd2acbb8287d591 | ide/web/lib/services/services_bootstrap.dart | ide/web/lib/services/services_bootstrap.dart | // Copyright (c) 2014, Google Inc. Please see the AUTHORS file for details.
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
library spark.services_bootstrap;
/**
* Uncomment one of the 2 exports below to switch between the isolate and
* si... | // Copyright (c) 2014, Google Inc. Please see the AUTHORS file for details.
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
library spark.services_bootstrap;
/**
* Uncomment one of the 2 exports below to switch between the isolate and
* si... | Switch back to isolate implementation. | Switch back to isolate implementation.
| Dart | bsd-3-clause | yikaraman/chromedeveditor,2947721120/choredev,hxddh/chromedeveditor,b0dh1sattva/chromedeveditor,hxddh/chromedeveditor,modulexcite/chromedeveditor,valmzetvn/chromedeveditor,beaufortfrancois/chromedeveditor,2947721120/chromedeveditor,b0dh1sattva/chromedeveditor,googlearchive/chromedeveditor,2947721120/choredev,beaufortfr... |
a02d5178ea6b51d516a12f99c1f3301c524a0821 | lib/list_tasks.dart | lib/list_tasks.dart | library list_tasks;
import 'dart:html';
import 'package:ddays/storageservice.dart' show loadFromStorage, tasklist;
LIElement singletask(String tasksummary) {
LIElement li = new LIElement();
ParagraphElement p = new ParagraphElement();
p
..text = tasksummary
..classes.add('summarytext');
li
..class... | library list_tasks;
import 'dart:html';
import 'package:ddays/storageservice.dart' show loadFromStorage;
LIElement singletask(String tasksummary) {
LIElement li = new LIElement();
ParagraphElement p = new ParagraphElement();
p
..text = tasksummary
..classes.add('summarytext');
li
..classes.add('si... | Load stored tasks on load | Load stored tasks on load
| Dart | bsd-3-clause | mswift42/ddays,mswift42/ddays |
0969c36e9140bf6767efa27468d4b53746a609b3 | lib/barback.dart | lib/barback.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library barback;
import 'dart:async';
import 'dart:io';
export 'src/asset.dart';
export 'src/asset_id... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library barback;
export 'src/asset.dart';
export 'src/asset_id.dart';
export 'src/asset_provider.dart'... | Remove unneeded imports to fix broken bots. | Remove unneeded imports to fix broken bots.
Review URL: https://codereview.chromium.org//17511007
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@24258 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/barback,dart-lang/barback,Aetet/barback,Aetet/barback,dart-lang/barback,dart-archive/barback |
d493b79ca3781188d7d4329fc5542021f6443de1 | lib/api/api.dart | lib/api/api.dart | import 'package:bridge/http.dart';
import 'package:bridge/tether.dart';
/// Controllers
import 'pages_controller.dart';
/// This is the entry point for the client side application.
/// It's where tether calls and HTTP routes are delegated to controllers.
///
/// Note that the same controller instance will be used for... | import 'package:bridge/http.dart';
import 'package:bridge/tether.dart';
/// Controllers
import 'pages_controller.dart';
/// This is the entry point for the client side application.
/// It's where tether calls and HTTP routes are delegated to controllers.
///
/// Note that the same controller instance will be used for... | Change to new route builder syntax | Change to new route builder syntax
| Dart | mit | dart-bridge/bridge,dart-bridge/bridge |
11b9fd20517ec59379105e965766e5173745fae1 | server.dart | server.dart | import "dart:io";
import "package:http_server/http_server.dart" show VirtualDirectory;
final HTTP_ROOT_PATH = Platform.script.resolve('web').toFilePath();
final HOST = InternetAddress.LOOPBACK_IP_V4;
final PORT = 4567;
VirtualDirectory virDir;
void directoryHandler(dir, request) {
var indexUri = new Uri.file(dir.p... | import "dart:io";
import "package:http_server/http_server.dart" show VirtualDirectory;
final HOST = InternetAddress.LOOPBACK_IP_V4;
final PORT = 4567;
void handleError(error) {
print("Problems: $error");
}
void main() {
VirtualDirectory virDir = new VirtualDirectory('web');
HttpServer.bind(HOST, PORT).then(... | Simplify initialisation of VirtualDirectory object and serving index.html file. | Simplify initialisation of VirtualDirectory object and serving index.html file.
| Dart | mit | graphicbeacon/Simple-User-Authentication-With-Dart-AngularJS,graphicbeacon/Simple-User-Authentication-With-Dart-AngularJS,graphicbeacon/Simple-User-Authentication-With-Dart-AngularJS |
b7e81c798a65dc6aad81843815c8dbe3d2fc1653 | examples/lib/solid_color_box.dart | examples/lib/solid_color_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 'dart:sky';
import 'package:sky/framework/rendering/box.dart';
class RenderSolidColorBox extends RenderDecoratedBox {
final Size desiredSize;
... | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:sky';
import 'package:sky/framework/rendering/box.dart';
class RenderSolidColorBox extends RenderDecoratedBox {
final Size desiredSize;
... | Split getIntrinsicDimensions into four pieces | Split getIntrinsicDimensions into four pieces
This CL splits getIntrinsicDimensions into getMinIntrinsicWidth,
getMaxIntrinsicWidth, getMinIntrinsicHeight, and getMaxIntrinsicHeight so that
we can properly shrink-wrap the stocks app menu. This CL just contains the
refactoring. The use in stocks app will come in a late... | Dart | bsd-3-clause | Hixie/flutter,turnidge/flutter,aghassemi/flutter,flutter/flutter,cbracken/flutter,cbracken/flutter,cbracken/flutter,tvolkert/flutter,cbracken/flutter,Hixie/flutter,tvolkert/flutter,cbracken/flutter,tvolkert/flutter,tvolkert/flutter,Hixie/flutter,flutter/flutter,aghassemi/flutter,Hixie/flutter,flutter/flutter,jason-simm... |
6867db8333304cd8070df89b65da176eefa37747 | src/test/test_projects/flutter_hello_world/test/broken_test.dart | src/test/test_projects/flutter_hello_world/test/broken_test.dart | import 'package:flutter_test/flutter_test.dart';
import '../lib/main.dart' as hello_world;
// This comment is extracted by the test and compared to a text representation
// built from the tree provider in the test. It must be maintained to match
// the results from teh tests below.
// == EXPECTED RESULTS ==
// test/b... | import 'package:flutter_test/flutter_test.dart';
import '../lib/main.dart' as hello_world;
// This comment is extracted by the test and compared to a text representation
// built from the tree provider in the test. It must be maintained to match
// the results from teh tests below.
// == EXPECTED RESULTS ==
// test/b... | Fix test from tree-test changes | Fix test from tree-test changes
| Dart | mit | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code |
0a180db63cd5ce5240a830770624c6443ce9b914 | lib/src/utf16.dart | lib/src/utf16.dart | // utf16.dart
// Extension methods to fill some gaps in the default Dart FFI implementation
// of Utf16
import 'dart:ffi';
import 'package:ffi/ffi.dart';
extension Utf16Conversion on Pointer<Utf16> {
String unpackString(int maxLength) {
final pathData = cast<Uint16>().asTypedList(maxLength);
return String... | // utf16.dart
// Extension methods to fill some gaps in the default Dart FFI implementation
// of Utf16
import 'dart:ffi';
import 'package:ffi/ffi.dart';
extension Utf16Conversion on Pointer<Utf16> {
String unpackString(int maxLength) {
final pathData = cast<Uint16>().asTypedList(maxLength);
var stringLe... | Allow for truncated strings to be returned | Allow for truncated strings to be returned
| Dart | bsd-3-clause | timsneath/win32,timsneath/win32,timsneath/win32 |
7719d48a4582b37e6946ebb0bb4aca19d4dcfcb3 | 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:scalarlist';
import 'utils.d... | // 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:scalarlist';
import 'utils.d... | Use the dart:async Stream API thoroughly in Pub. | Use the dart:async Stream API thoroughly in Pub.
This was originally submitted as r17822, and rolled back in r17867. There are no
changes, but in preparation for the dart:io Stream changes we're applying this
with the intent to mark Windows tests as failing.
BUG=7807
Review URL: https://codereview.chromium.org//1208... | Dart | bsd-3-clause | 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,dart-lang/http |
8820e641251e89236efb0b733785ad99e1b9f54a | lib/src/parser/base.dart | lib/src/parser/base.dart | part of irc.parser;
/**
* Base class for IRC Parsers
*
* ```
* var parser = new SomeIrcParser();
* var message = parser.convert(":some.server PRIVMSG #SomeChannel :Some Message");
* // Use Message Instance
* ```
*/
abstract class IrcParser extends Converter<String, Message> {
/**
* Parses [line] as an IRC... | part of irc.parser;
/**
* Base class for IRC Parsers
*
* ```
* var parser = new SomeIrcParser();
* var message = parser.convert(":some.server PRIVMSG #SomeChannel :Some Message");
* // Use Message Instance
* ```
*/
abstract class IrcParser extends Converter<String, Message> {
/**
* Creates the default ... | Add a factory constructor to create the default parser in IrcParser | Add a factory constructor to create the default parser in IrcParser
| Dart | mit | DirectMyFile/irc.dart,DirectMyFile/irc.dart |
6369dcdab1a86e23ff2325d1c471baa364e41165 | test/end2end_test.dart | test/end2end_test.dart | import 'dart:io';
import 'package:pana/pana.dart';
import 'package:test/test.dart';
void main() {
void expectGoldenSummary(Summary summary) {
Map actualMap = summary.toJson();
actualMap['sdkVersion'] = '[MASKED]';
String actual = prettyJson(actualMap);
String goldenPath =
'test/end2end/${su... | import 'dart:io';
import 'package:pana/pana.dart';
import 'package:test/test.dart';
void main() {
void expectGoldenSummary(Summary summary) {
Map actualMap = summary.toJson();
actualMap['sdkVersion'] = '[MASKED]';
String actual = prettyJson(actualMap);
String goldenPath =
'test/end2end/${su... | Increase timeout of e2e test | Increase timeout of e2e test
| Dart | bsd-3-clause | kevmoo/pana.dart,dart-lang/pana |
ce8d0653da88b25a13d837c2f1a396412bf6ea18 | runtime/observatory/web/main.dart | runtime/observatory/web/main.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:html';
import 'package:logging/logging.dart';
import 'package:observatory/elements.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:html';
import 'package:logging/logging.dart';
import 'package:observatory/elements.dart';
... | Improve async stack traces in Observatory | Improve async stack traces in Observatory
BUG=
R=rmacnak@google.com
Review URL: https://codereview.chromium.org/2333923007 .
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dar... |
afcd02214d99f74623e6cdffe2f23ae4d172b60d | lib/features/settings/presentation/widgets/registration_exit_dialog.dart | lib/features/settings/presentation/widgets/registration_exit_dialog.dart | import 'package:flutter/material.dart';
class RegistrationExitDialog extends StatelessWidget {
const RegistrationExitDialog({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return AlertDialog(
title: const Text('Are you sure you want to exit?'),
content:
co... | import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import '../bloc/registration_headers_bloc.dart';
class RegistrationExitDialog extends StatelessWidget {
const RegistrationExitDialog({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return ... | Clear current custom headers on registration exit. | Clear current custom headers on registration exit.
| Dart | mit | wcomartin/PlexPy-Remote |
1281e2a7f1b98badd163f69d31e220822c7ea710 | lib/core/services/cards_service.dart | lib/core/services/cards_service.dart | import 'package:campus_mobile_experimental/core/models/cards_model.dart';
import 'package:campus_mobile_experimental/core/services/networking.dart';
class CardsService {
final String cardListEndpoint =
'https://ucsd-its-wts-dev.s3-us-west-1.amazonaws.com/replatform/v1/cardActivationControl.json';
bool _isLoa... | import 'package:campus_mobile_experimental/core/models/cards_model.dart';
import 'package:campus_mobile_experimental/core/services/networking.dart';
class CardsService {
final String cardListEndpoint =
'https://ucsd-its-wts.s3-us-west-2.amazonaws.com/replatform/v1/cardActivationControl.json';
bool _isLoading... | Update card activation control endpoint | Update card activation control endpoint
| Dart | mit | UCSD/now-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile |
d6a27117e6b1968cc5e9184748f747ac05c9c072 | location_platform_interface/test/location_platform_interface_test.dart | location_platform_interface/test/location_platform_interface_test.dart | // Copyright 2019 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:flutter_test/flutter_test.dart';
import 'package:location_platform_interface/location_platform_interface.dart';
import 'package:mockito/mo... | // Copyright 2019 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:flutter_test/flutter_test.dart';
import 'package:location_platform_interface/location_platform_interface.dart';
import 'package:mockito/mo... | Fix order-dependent tests in location_platform_interface | Fix order-dependent tests in location_platform_interface
The '$MethodChannelLocation is the default instance' test depended on
being the first test, before any of the other tests clobbered the
`LocationPlatform.instance` singleton.
Ensure that tests restore the original `LocationPlatform.instance`
value.
Fixes https... | Dart | mit | Lyokone/flutterlocation,Lyokone/flutterlocation,Lyokone/flutterlocation,Lyokone/flutterlocation,Lyokone/flutterlocation,Lyokone/flutterlocation,Lyokone/flutterlocation,Lyokone/flutterlocation |
a6a8120b4b76f95d22744cb2cf7344d25e9cf048 | src/client.dart | src/client.dart | /**
* Client.
* This should be loaded by the client html page.
*
* Connect to server via websocket and handle push messages from server.
*/
#import('dart:html');
#import('dart:io');
#import('dart:json');
class PresendartClient {
bool _sync;
Socket _socket;
void connect() {
String host = document.quer... | /**
* Client.
* This should be loaded by the client html page.
*
* Connect to server via websocket and handle push messages from server.
*/
#import('dart:html');
#import('dart:json');
class PresendartClient {
bool _sync;
WebSocket _ws;
PresendartClient() {
_sync = false;
}
void connect() {
S... | Use WebSocket from dart:html instead of dart:io | Use WebSocket from dart:html instead of dart:io
| Dart | mit | imperialists/presen.dart |
4c32cddef89eeaa9aa1a5f07b65508a246c7ef61 | tests/ffi/regress_37100_test.dart | tests/ffi/regress_37100_test.dart | // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:ffi';
import "package:expect/expect.dart";
import 'dylib_utils.dart';
class EVP_MD exte... | // 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.
//
// SharedObjects=ffi_test_functions
import 'dart:ffi';
import "package:expect/expect.dart";
import... | Fix ffi trampoline class finalization - fix test on android | [vm/ffi] Fix ffi trampoline class finalization - fix test on android
Change-Id: I4389667701de45827e093305bdda8443520abe54
Cq-Include-Trybots: luci.dart.try:vm-ffi-android-debug-arm-try, app-kernel-linux-debug-x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/103844
Commit-Queue: Daco Harkes <930cbae0ca... | Dart | bsd-3-clause | dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lan... |
76aaf4319537fafc913c7cec8b1fba85dd97af3b | angular_components/lib/stop_propagation/stop_propagation.dart | angular_components/lib/stop_propagation/stop_propagation.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';
import 'dart:html';
import 'package:angular/angular.dart';
import 'package:angula... | // 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';
import 'dart:html';
import 'package:angular/angular.dart';
import 'package:angula... | Rename a local variable name to a more accurate reflection of its purpose. | Rename a local variable name to a more accurate reflection of its purpose.
PiperOrigin-RevId: 221846360
| Dart | bsd-3-clause | angulardart/angular_components,angulardart/angular_components,angulardart/angular_components |
f6be33ba2d9b7da0d525026d2ee9e91df3ba9037 | lib/wc/envy_div.dart | lib/wc/envy_div.dart | @HtmlImport('envy_div.html')
library envy_element;
import 'package:polymer/polymer.dart';
import 'package:envy/envy.dart';
@CustomTag("envy-div")
class EnvyDiv extends PolymerElement {
String spec;
EnvySceneGraph sceneGraph = new EnvySceneGraph();
EnvyDiv.created() : super.created() {
//print("Envy div CR... | @HtmlImport('envy_div.html')
library envy_element;
import 'package:polymer/polymer.dart';
import 'package:envy/envy.dart';
@CustomTag("envy-div")
class EnvyDiv extends PolymerElement {
String spec;
final EnvySceneGraph _sceneGraph = new EnvySceneGraph();
EnvyDiv.created() : super.created() {
//print("Envy... | Make envy-div scene graph private and add getter | Make envy-div scene graph private and add getter
| Dart | mit | cooler-king/envy,cooler-king/envy |
3b98b1d5dc5f553bd2b35d3b0fcdd818afd281c7 | pkg/front_end/test/utils/io_utils.dart | pkg/front_end/test/utils/io_utils.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.md file.
import 'dart:io' show Directory, File, Platform, Process, ProcessResult;
String computeRepoDir() {
... | // 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.md file.
import 'dart:io' show Directory, File, Platform, Process, ProcessResult;
import 'package:_fe_analyze... | Use 'packageConfig' instead of 'script' in an internal tool | [cfe] Use 'packageConfig' instead of 'script' in an internal tool
Change-Id: Ibcad91ddbaeb5b466c09a55c2be31f2a705d895f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/210461
Reviewed-by: Jens Johansen <05223a3c6bdf76af6f84755eae231abeebcf4530@google.com>
Commit-Queue: Dmitry Stefantsov <95a4b7e39916a54bd6477... | 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 |
e5b0ac868e080e529aae6f84b360fd0d9a65758a | example/test/false_and_null_test.dart | example/test/false_and_null_test.dart | import 'dart:html';
import 'package:react/react.dart' as react;
import 'package:react/react_dom.dart' as react_dom;
import 'package:react/react_client.dart';
class _Component extends react.Component {
render() {
return props['returnValue'];
}
}
var component = react.registerComponent(() => new _Component());... | import 'dart:html';
import 'package:react/react.dart' as react;
import 'package:react/react_dom.dart' as react_dom;
import 'package:react/react_client.dart';
class _Component extends react.Component {
render() {
if (props['hardCodedNullReturn'] == true) {
return null;
}
return props['returnValue'... | Fix test for null return value | Fix test for null return value
| Dart | bsd-2-clause | cleandart/react-dart,cleandart/react-dart,cleandart/react-dart,cleandart/react-dart |
355c91b319f1f6862cb734f150a0b386dc96390c | lib/src/common/request.dart | lib/src/common/request.dart | part of plugins.common;
class RequestManager {
Map<int, Completer> _requests = {};
final Random _rand = new Random();
void complete(int uid, String command, Map<dynamic, dynamic> data) {
var com = _requests[uid];
if (com == null)
throw new Exception("Attempt to complete an invalid request");
... | part of plugins.common;
class RequestManager {
Map<int, Completer> _requests = {};
final Random _rand = new Random();
void complete(int uid, String command, Map<dynamic, dynamic> data) {
var com = _requests[uid];
if (com == null)
throw new Exception("Attempt to complete an invalid request");
... | Increase max int generated for UID's | Increase max int generated for UID's | Dart | mit | samrg472/plugins.dart |
a202b189beaf735f9b75e4355f07d6f6a570b06e | lib/src/rate_limiter.dart | lib/src/rate_limiter.dart | import 'dart:async';
import 'package:angel_framework/angel_framework.dart';
import 'package:angel_security/angel_security.dart';
import 'rate_limiting_window.dart';
/// A base class that facilitates rate limiting API's or endpoints,
/// typically to prevent spam and abuse.
///
/// The rate limiter operates under the a... | import 'dart:async';
import 'package:angel_framework/angel_framework.dart';
import 'package:angel_security/angel_security.dart';
import 'rate_limiting_window.dart';
/// A base class that facilitates rate limiting API's or endpoints,
/// typically to prevent spam and abuse.
///
/// The rate limiter operates under the a... | Use points instead of request count | Use points instead of request count
| Dart | mit | angel-dart/angel,angel-dart/angel,angel-dart/angel,angel-dart/angel,angel-dart/angel,angel-dart/angel,angel-dart/angel,angel-dart/angel |
7e21818fd985f342ddf6ae3988c324f630075ea3 | lib/process_system.dart | lib/process_system.dart | library process_system;
import "dart:io" show Process, ProcessResult, SYSTEM_ENCODING;
import "dart:convert" show Encoding;
import "dart:async" show Future;
class ProcessSystem {
const ProcessSystem();
ProcessResult runProcessSync(String executable, List<String> arguments,
{String workingDirectory, Map<Str... | library process_system;
import "dart:io" show Process, ProcessResult, SYSTEM_ENCODING;
import "dart:convert" show Encoding;
import "dart:async" show Future;
class ProcessSystem {
const ProcessSystem();
ProcessResult runProcessSync(String executable, List<String> arguments,
{String workingDirectory, Map<Str... | Fix return type on ProcessSystem | Fix return type on ProcessSystem
| Dart | mit | duse-io/dart-coveralls,block-forest/dart-coveralls,kevmoo/dart-coveralls,duse-io/dart-coveralls,block-forest/dart-coveralls,kevmoo/dart-coveralls |
59212a0764008116673561ddb34202f4a8ad2a3f | src/test/test_projects/hello_world/test/discovery_test.dart | src/test/test_projects/hello_world/test/discovery_test.dart | import "package:test/test.dart";
// This comment is extracted by the test and compared to a text representation
// built from the tree provider in the test. It must be maintained to match
// the results from the tests below.
// == EXPECTED RESULTS ==
// test/discovery_test.dart (unknown.svg)
// group 1 (unknown.sv... | import "package:test/test.dart";
// This comment is extracted by the test and compared to a text representation
// built from the tree provider in the test. It must be maintained to match
// the results from the tests below.
// == EXPECTED RESULTS ==
// test/discovery_test.dart Unknown
// group 1 Unknown
// ... | Fix expectations of discovery test | Fix expectations of discovery test
| Dart | mit | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code |
f9ba1a0623ebdc18fb793376f61aa48179604e0f | lib/src/persistent/application_revision_file_storage.dart | lib/src/persistent/application_revision_file_storage.dart | import 'dart:async' show Future, Stream;
import 'package:gcloud/storage.dart' show ObjectMetadata, Storage;
import 'package:googleapis_auth/auth_io.dart' show clientViaServiceAccount, ServiceAccountCredentials;
import 'package:http/http.dart' show Client;
import 'package:meta/meta.dart';
import '../entity/application_r... | import 'dart:async' show Future, Stream;
import 'package:archive/archive.dart';
import 'package:gcloud/storage.dart' show ObjectMetadata, Storage;
import 'package:googleapis_auth/auth_io.dart' show clientViaServiceAccount, ServiceAccountCredentials;
import 'package:http/http.dart' show Client;
import 'package:meta/meta... | Modify the Application revision file storage | [WIP] Modify the Application revision file storage
| Dart | mit | axross/before-run |
dbbf423e7ff7c1d697ef22729c5fb4faa5c5df44 | sdk/lib/_internal/compiler/implementation/filenames.dart | sdk/lib/_internal/compiler/implementation/filenames.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 filenames;
import 'dart:io';
// For information about how to convert Windows file names to UR... | // 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 filenames;
import 'dart:io';
// For information about how to convert Windows file names to UR... | Fix bad rewrite of boolean expression | Fix bad rewrite of boolean expression
Review URL: https://codereview.chromium.org//20020003
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@25402 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,da... |
4bf3c80778a0c3d6a05f2c4350439451f3ee3cc8 | lib/logging_utils.dart | lib/logging_utils.dart | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:logging/logging.dart' as logging;
logging.Logger _logger;
info(String message) => _lo... | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:logging/logging.dart' as logging;
logging.Logger _logger;
info(String message, [int l... | Add support for indentation levels | Add support for indentation levels
| Dart | mit | lukechurch/sintr_live_common |
cef56cd7c7cd17a242148ca6e1d755b8d9a6114a | lib/src/protobuf/mixins/map_mixin.dart | lib/src/protobuf/mixins/map_mixin.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 protobuf.mixins.map;
import "package:protobuf/protobuf.dart" show BuilderInfo;
/// A PbMapMix... | // 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 protobuf.mixins.map;
import "package:protobuf/protobuf.dart" show BuilderInfo;
/// A PbMapMix... | Fix strong mode warning in PbMapMixin | Fix strong mode warning in PbMapMixin
| Dart | bsd-3-clause | google/protobuf.dart,dart-lang/dart-protobuf,google/protobuf.dart,dart-lang/protobuf,dart-lang/protobuf,google/protobuf.dart,dart-lang/dart-protobuf,dart-lang/protobuf,dart-lang/dart-protobuf |
d2ba28e379a3cb39a2240b79c45a30a4e94bf71a | lib/colorful.dart | lib/colorful.dart | // Copyright (c) 2015, <Martin Haesler>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
/// The colorful library.
library colorful;
import 'package:color/color.dart';
import 'dart:math';
class ColorPalette {
final double saturation;
final... | // Copyright (c) 2015, <Martin Haesler>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
/// The colorful library.
library colorful;
import 'package:color/color.dart';
import 'dart:math';
class ColorPalette {
final double saturation;
final... | Add constructor for SoftPalette subclass. | Add constructor for SoftPalette subclass.
| Dart | bsd-3-clause | mswift42/colorful |
442739c007d5ef54efa37a5a74ea1c934229585c | lib/highlighted_text/highlighted_value.dart | lib/highlighted_text/highlighted_value.dart | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:angular/angular.dart';
import 'package:angular_components/highlighted_text/highlighted_... | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:angular/angular.dart';
import 'package:angular_components/highlighted_text/highlighted_... | Remove visibility.all from @Component annotations. This is potentially BREAKING change. | Remove visibility.all from @Component annotations. This is potentially BREAKING
change.
Please review carefully. Breakage will only be caught if the code is covered by
tests. Reject this change if you believe it breaks you.
If the component needs to be injected anywhere in the app, you can get a
runtime exception aft... | Dart | bsd-3-clause | angulardart/angular_components,angulardart/angular_components,angulardart/angular_components |
15611020ccb81e96aaa25737a0dffa448b2e0098 | front_end/dart_tests/dart_support_test.dart | front_end/dart_tests/dart_support_test.dart | /// Test the dart support functions standalone.
// TODO(alanknight): How do we test things that only run in the context of
// devtools?
@JS()
library dart_support_test;
@TestOn('chrome')
import 'package:test/test.dart';
import 'package:js/js.dart';
import 'dart:html';
import 'dart:async';
import 'dart:developer';
@... | /// Test the dart support functions standalone.
// TODO(alanknight): How do we test things that only run in the context of
// devtools?
@JS()
library dart_support_test;
@TestOn('chrome')
import 'package:test/test.dart';
import 'package:js/js.dart';
import 'dart:html';
import 'dart:async';
@JS()
external String $dar... | Remove unused import of dart:developer in test | Remove unused import of dart:developer in test
| Dart | bsd-3-clause | dart-archive/devtools-frontend,dart-archive/devtools-frontend,dart-archive/devtools-frontend,dart-archive/devtools-frontend,dart-archive/devtools-frontend,dart-archive/devtools-frontend |
64a619f0328a1e1510574c05c40705803e462e95 | utils/dartdoc/interact.dart | utils/dartdoc/interact.dart | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/** Provides client-side behavior for generated docs. */
#library('interact');
#import('../../client/h... | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/** Provides client-side behavior for generated docs. */
#library('interact');
#import('dart:html');
... | Use right path to html lib. | Use right path to html lib.
Review URL: http://codereview.chromium.org//8726038
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@1899 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lan... |
d5aa68ebf7f13e2d0c54eb79b0a7a37b749ece29 | lib/core/helpers/connection_address_helper.dart | lib/core/helpers/connection_address_helper.dart | /// Helper functions for manipulating a connection address.
abstract class ConnectionAddressHelper {
/// Parses a connection address into seperate components.
///
/// Extracts a [protocol] and [domain] to construct a URL.
/// Extracts a [user] and [password] for basic auth.
Map<String, dynamic> parse(String c... | /// Helper functions for manipulating a connection address.
abstract class ConnectionAddressHelper {
/// Parses a connection address into seperate components.
///
/// Extracts a [protocol] and [domain] to construct a URL.
/// Extracts a [user] and [password] for basic auth.
Map<String, dynamic> parse(String c... | Handle null secondary connection on update. | Handle null secondary connection on update.
| Dart | mit | wcomartin/PlexPy-Remote |
8cbd4dac6ee156c724c46eb64268fa30dda0e8ae | lib/src/outputs/png_output.dart | lib/src/outputs/png_output.dart | part of stitch.outputs;
class PngOutput extends Output {
String get extension => ".png";
@override
Asset renderSprites(List<Sprite> sprites, Asset primaryInput) {
var size = sprites.map((sprite) => sprite.bounds)
.reduce((Rectangle value, Rectangle current) => value.boundingBox(current)) as Rectangl... | part of stitch.outputs;
class PngOutput extends Output {
String get extension => ".png";
@override
Asset renderSprites(List<Sprite> sprites, Asset primaryInput) {
var size = sprites.map((sprite) => sprite.bounds)
.reduce((Rectangle value, Rectangle current) => value.boundingBox(current)) as Rectangl... | Disable alpha blending to preserve opacity of original sprites | Disable alpha blending to preserve opacity of original sprites
If the original sprite has transparency, alpha blending will change the level of
transparency when it's combined into the sprite sheet. The original transparency
needs to be preserved.
Closes #14
| Dart | mit | danschultz/stitch |
fec1614eb0bec1a63a9ba383677557c5dd26a9f3 | lib/task.dart | lib/task.dart | library task;
import 'dart:convert';
import 'package:ddays/taskcategory.dart' show TaskCategory;
class TaskNote {
String notebody;
TaskNote(this.notebody);
}
class Task {
String summary;
List<TaskNote> tasknotes = [];
DateTime scheduled;
int timestamp;
bool done;
Set<TaskCategory> taskcategories = ... | library task;
import 'dart:convert';
import 'package:uuid/uuid.dart';
import 'package:ddays/taskcategory.dart' show TaskCategory;
class TaskNote {
String notebody;
TaskNote(this.notebody);
}
class Task {
String summary;
List<TaskNote> tasknotes = [];
DateTime scheduled;
Uuid uuid;
bool done;
Set<Ta... | Use uuid.v4 instead of timestamp. | Use uuid.v4 instead of timestamp.
| Dart | bsd-3-clause | mswift42/ddays,mswift42/ddays |
315e17586d0dba3b9bfd23af369570273d61ec7a | lib/src/validation/server/input_validator.dart | lib/src/validation/server/input_validator.dart | part of bridge.validation;
abstract class InputValidator<T> extends InputBase<T> {
final Input<T> _input;
final Validator _validator;
InputValidator(this._validator, this._input);
Map<String, String> get filters;
Future validate() async {
await _validator.validateAll(_input, filters);
}
@override... | part of bridge.validation;
abstract class InputValidator<T> extends InputBase<T> {
Input<T> _input;
Validator _validator;
$inject(validator, input) {
_validator = validator;
_input = input;
}
Map<String, String> get filters;
Future validate() async {
await _validator.validateAll(_input, filt... | Use the new $inject method on InputValidator | Use the new $inject method on InputValidator
| Dart | mit | dart-bridge/framework,dart-bridge/framework |
d94887d20a9b985593ae2566bc100345a4700021 | example/stats.dart | example/stats.dart | import "package:osx/osx.dart";
void main() {
say("Battery is at ${Battery.getLevel()}%");
}
| import "package:osx/osx.dart";
void main() {
say("Battery is at ${Battery.getLevel()}%");
say("There are ${Applications.list().length} apps installed");
}
| Add More to Stats Example | Add More to Stats Example
| Dart | mit | DirectMyFile/osx.dart |
bb72f94e0e09d4723f4917b0a62eccdc07d27b43 | lib/src/service/authentication_service.dart | lib/src/service/authentication_service.dart | import 'dart:async';
import 'dart:io';
import 'package:meta/meta.dart';
import '../entity/user.dart';
import '../repository/session_repository.dart';
import '../repository/user_repository.dart';
import '../request_exception.dart';
final RegExp _headerValueRegExp = new RegExp(r'^token [a-z0-9]{64}$');
class Authentica... | import 'dart:async';
import 'dart:io';
import 'package:meta/meta.dart';
import '../entity/user.dart';
import '../repository/session_repository.dart';
import '../repository/user_repository.dart';
import '../request_exception.dart';
final RegExp _headerValueRegExp = new RegExp(r'^token [a-z0-9]{64}$');
class Authentica... | Remove unneeded line in the authentication service | Remove unneeded line in the authentication service
| Dart | mit | axross/before-run |
8826857324f91a7f99703be7d0176f3a05414349 | tests/language/checked_setter3_test.dart | tests/language/checked_setter3_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";
bool get inCheckedMode {
try {
String a = 42;
} catch (e)... | // 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";
bool get inCheckedMode {
try {
var i = 42;
String a = i... | Add static type warning annotation to make the test pass on analyzer. | Add static type warning annotation to make the test pass on analyzer.
Review URL: https://codereview.chromium.org//61883003
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@29978 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-... |
fad6188d4162ab0cfb57f18ce7c03e8c33d6d670 | web/demo.dart | web/demo.dart | import 'dart:async';
import 'dart:math' as math;
import 'package:angular/application_factory.dart';
import 'package:angular/angular.dart';
import 'package:di/di.dart';
import 'package:varxa_ui/varxa_ui.dart';
void main() {
applicationFactory()
.addModule(new VarxaUiModule())
.addModule(new DemoModule()).run();
}... | import 'dart:async';
import 'dart:math' as math;
import 'package:angular/application_factory.dart';
import 'package:angular/angular.dart';
import 'package:di/di.dart';
import 'package:varxa_ui/varxa_ui.dart';
void main() {
applicationFactory()
.addModule(new DemoModule()).run();
}
class DemoModule extends Module ... | Install module instead of adding two to app factory. | Install module instead of adding two to app factory.
| Dart | mit | bgourlie/varxa-button,bgourlie/varxa-button |
bd6ffc0d852021e878069d9f0fb3cc8061f3b9f5 | widgets/lib/spark_toolbar/spark_toolbar.dart | widgets/lib/spark_toolbar/spark_toolbar.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.toolbar;
import 'package:polymer/polymer.dart';
import '../common/spark_widget.dart';
@Custom... | // 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.toolbar;
import 'package:polymer/polymer.dart';
import '../common/spark_widget.dart';
@Custom... | Add 'none' back for spark toolbar assert | Add 'none' back for spark toolbar assert
| Dart | bsd-3-clause | devoncarew/spark,yikaraman/chromedeveditor,googlearchive/chromedeveditor,valmzetvn/chromedeveditor,vivalaralstin/chromedeveditor,hxddh/chromedeveditor,yikaraman/chromedeveditor,2947721120/chromedeveditor,beaufortfrancois/chromedeveditor,hxddh/chromedeveditor,beaufortfrancois/chromedeveditor,googlearchive/chromedevedito... |
500d71d820de77aa64aac8a2a175ccf06a1b8ca5 | lib/app/src/metadata.dart | lib/app/src/metadata.dart | part of app;
Slugify _slugify = new Slugify();
class Metadata {
String title;
String description;
List<String> keywords = [];
DateTime updatedDate;
OpenGraph openGraph;
String get slug => _slugify.slugify(title);
Metadata.fromMap(Map json) {
title = json['title'];
description = json['descriptio... | part of app;
Slugify _slugify = new Slugify();
class Metadata {
String title;
String description;
List<String> keywords = [];
DateTime updatedDate;
OpenGraph openGraph;
String get slug => _slugify.slugify(title);
Metadata.fromMap(Map json) {
title = json['title'];
description = json['descriptio... | Fix og image meta data | Fix og image meta data
| Dart | mit | Pacane/blog,Pacane/blog |
d78a1a94dfc842c764dc202294af5d9439758027 | web/aquatics.dart | web/aquatics.dart | library aquatics;
import 'dart:html' as html;
import 'dart:math';
import 'dart:async';
import 'package:stagexl/stagexl.dart';
part 'RandomPath.dart';
part 'Aquatic.dart';
void main() {
var canvas = html.query('#stage');
var stage = new Stage('myStage', canvas);
var renderLoop = new RenderLoop();
renderLoop.a... | library aquatics;
import 'dart:html' as html;
import 'dart:math';
import 'dart:async';
import 'package:stagexl/stagexl.dart';
part 'RandomPath.dart';
part 'Aquatic.dart';
void main() {
var canvas = html.querySelector('#stage');
var stage = new Stage('myStage', canvas);
var renderLoop = new RenderLoop();
rend... | Remove use of deprecated query method from Browser API | Remove use of deprecated query method from Browser API
| Dart | mit | astefanutti/aquadartics |
0154bf220921e1c7409976634be37f2eb7bd4b9a | lib/src/board.dart | lib/src/board.dart | part of tilebasedwordsearch;
@observable
class Board {
static const NumRecentWords = 10;
final List<String> recentWords = new List<String>();
final Map<String, int> words = new Map<String, int>();
final List<int> letterBonusTiles = new List<int>(3);
final BoardConfig config;
List selectedPositions = [];
... | part of tilebasedwordsearch;
@observable
class Board {
static const NumRecentWords = 10;
final List<String> recentWords = new List<String>();
final Map<String, int> words = new Map<String, int>();
final List<int> letterBonusTiles = new List<int>(3);
final BoardConfig config;
List selectedPositions = [];
... | Fix order of recent words | Fix order of recent words
| Dart | bsd-3-clause | sethladd/tilebasedwordsearch,sethladd/tilebasedwordsearch,sethladd/tilebasedwordsearch,sethladd/tilebasedwordsearch |
fd6049ec3425a29a074104230d6a5443738b4644 | lib/core/helpers/data_unit_format_helper.dart | lib/core/helpers/data_unit_format_helper.dart | import 'package:filesize/filesize.dart';
class DataUnitFormatHelper {
static String prettyFilesize(int bytes) {
return filesize(bytes, 1);
}
}
| import 'package:filesize/filesize.dart';
class DataUnitFormatHelper {
static String prettyFilesize(int bytes) {
return filesize(bytes, 1);
}
static String bitrate(int kiloBitsPerSecond) {
if (kiloBitsPerSecond < 1000) {
return '$kiloBitsPerSecond Kbps';
}
return '${kiloBitsPerSecond / 100... | Add bitrate data unit helper. | Add bitrate data unit helper.
| Dart | mit | wcomartin/PlexPy-Remote |
8285ab1f37440e0d80f6fa901925f8299ec1ca97 | bin/day4.dart | bin/day4.dart | import 'dart:convert';
import 'dart:math';
import 'package:crypto/crypto.dart';
void main() {
var secretKey = 'ckczppom';
print('Part one: ${partOne(secretKey) ?? 'No MD5 hash found.'}');
}
int partOne(String secretKey) {
var hash;
print('Calculating...');
for (var i = 0; i < pow(10, secretKey.length) - 1; ... | import 'dart:convert';
import 'dart:math';
import 'package:crypto/crypto.dart';
/// Shows the solutions to both puzzles.
void main() {
var secretKey = 'ckczppom';
print('Part one: ${partOne(secretKey) ?? 'No MD5 hash found.'}');
print('Part two: ${partTwo(secretKey) ?? 'No MD5 hash found.'}');
}
/// Returns the... | Add solution to part 2 day 4 and optimizations | Add solution to part 2 day 4 and optimizations
| Dart | apache-2.0 | raphalvessa/advent-of-code,raphbot/advent-of-code |
f76831f7f2534f53d4f58a70618fbfb734f5a494 | lib/src/extensions/hstring_array.dart | lib/src/extensions/hstring_array.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.
// Extension method to convert HSTRING arrays to List<String>
import 'dart:ffi';
import '../api-ms-wi... | // 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.
// Extension method to convert HSTRING arrays to List<String>
import 'dart:ffi';
import '../api-ms-wi... | Add documentation to the extension method | Add documentation to the extension method
| Dart | bsd-3-clause | timsneath/win32,timsneath/win32,timsneath/win32 |
ba68ebaab6d28825ad8fd080d461b33583a4dc35 | tool/metadata/winmd_caveats.dart | tool/metadata/winmd_caveats.dart | const winmdGenerated = [
'advapi32',
'api-ms-win-core-winrt-l1-1-0',
// 'api-ms-win-core-winrt-string-l1-1-0',
// 'api-ms-win-ro-typeresolution-l1-1-0',
'bthprops',
'comctl32',
'comdlg32',
'dbghelp',
'dxva2',
'gdi32',
'kernel32',
'kernelbase',
'ole32',
'oleaut32',
'powrprof',
'rometadata... | const winmdGenerated = [
'advapi32',
'api-ms-win-core-winrt-l1-1-0',
// 'api-ms-win-core-winrt-string-l1-1-0',
// 'api-ms-win-ro-typeresolution-l1-1-0',
'bthprops',
'comctl32',
'comdlg32',
'dbghelp',
'dxva2',
'gdi32',
'kernel32',
'kernelbase',
'ole32',
'oleaut32',
'powrprof',
'rometadata... | Add comment about blocked issue | Add comment about blocked issue
| Dart | bsd-3-clause | timsneath/win32,timsneath/win32,timsneath/win32 |
935a049d072e84e6dc06929cd84f3344081df489 | lib/dom/src/native_DOMPublic.dart | lib/dom/src/native_DOMPublic.dart | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// This API is exploratory.
spawnDomFunction(Function topLevelFunction) => _Utils.spawnDomFunctionImpl(... | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// This API is exploratory.
spawnDomFunction(Function topLevelFunction) => _Utils.spawnDomFunctionImpl(... | Migrate to testRunner from layoutTestController. | Migrate to testRunner from layoutTestController.
TBR=podivilov@chromium.org
Review URL: https://chromiumcodereview.appspot.com//10826304
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@10651 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,da... |
c54d1a542e7634a80f43c92564d8cb2d6906f726 | ide/web/lib/services/services_bootstrap.dart | ide/web/lib/services/services_bootstrap.dart | // Copyright (c) 2014, Google Inc. Please see the AUTHORS file for details.
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
library spark.services_bootstrap;
/**
* Uncomment one of the 2 exports below to switch between the isolate and
* si... | // Copyright (c) 2014, Google Inc. Please see the AUTHORS file for details.
// All rights reserved. Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
library spark.services_bootstrap;
/**
* Uncomment one of the 2 exports below to switch between the isolate and
* si... | Switch to use analyzer on dom thread (for debugging) | Switch to use analyzer on dom thread (for debugging)
| Dart | bsd-3-clause | beaufortfrancois/chromedeveditor,modulexcite/chromedeveditor,hxddh/chromedeveditor,2947721120/choredev,vivalaralstin/chromedeveditor,ussuri/chromedeveditor,yikaraman/chromedeveditor,beaufortfrancois/chromedeveditor,b0dh1sattva/chromedeveditor,b0dh1sattva/chromedeveditor,vivalaralstin/chromedeveditor,2947721120/choredev... |
ec55cce6faa4ad5a93845830eec1fbcef49d33ac | web/main.dart | web/main.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.
import 'dart:html';
import 'package:ddays/nav_menu.dart';
import 'package:ddays/reverser.dart';
import 'package:route_hierarchical/client.dart';
void main() {
... | // 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.
import 'dart:html';
import 'package:ddays/nav_menu.dart';
import 'package:route_hierarchical/client.dart';
void main() {
initNavMenu();
// Webapps need ro... | Add initNavMenu, remove reverser lib. | Add initNavMenu, remove reverser lib.
| Dart | bsd-3-clause | mswift42/ddays,mswift42/ddays |
ff372d3aa834dd566f43329d152c0d31f1486153 | LanguageFeatures/nnbd/future_flattening_A01_t10.dart | LanguageFeatures/nnbd/future_flattening_A01_t10.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.
*/
/**
* @assertion The flatten function is modified as follows:
*
* [flatten(T)] is defined by c... | /*
* 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.
*/
/**
* @assertion The flatten function is modified as follows:
*
* [flatten(T)] is defined by c... | Return an expected type from the test | Return an expected type from the test
| Dart | bsd-3-clause | dart-lang/co19,dart-lang/co19,dart-lang/co19 |
4b716d311a57fddf0ad4335a832826bd4f0baa1b | lib/theme.dart | lib/theme.dart | import 'package:flutter/material.dart';
class AppTheme {
static ThemeData get lightTheme => ThemeData(
brightness: Brightness.light,
);
static ThemeData get darkTheme => ThemeData(
brightness: Brightness.dark,
colorScheme:
ColorScheme.fromSwatch(brightness: Brightness.dar... | import 'package:flutter/material.dart';
const primaryGreen = Color(0xffa8c86c);
class AppTheme {
static ThemeData get lightTheme => ThemeData(
brightness: Brightness.light,
);
static ThemeData get darkTheme => ThemeData(
brightness: Brightness.dark,
colorScheme:
ColorSch... | Set main green color for more widgets. | Set main green color for more widgets.
| Dart | apache-2.0 | Yubico/yubioath-desktop,Yubico/yubioath-desktop,Yubico/yubioath-desktop,Yubico/yubioath-desktop,Yubico/yubioath-desktop |
69eaa5cadffa4a01e1df22688271381d73d8352d | 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, this._... | 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,
... | Use a more strict style for trailing commas | Use a more strict style for trailing commas
| Dart | apache-2.0 | google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin |
9ebf446eaaefb8fa891418bf9989ff6a46e408f6 | tests/language/generic_function_typedef_test.dart | tests/language/generic_function_typedef_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 for a function type test that cannot be eliminated at compile time.
import "package:expect... | // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test for a function type test that cannot be eliminated at compile time.
import "package:expect... | Fix copyright year in test. | Fix copyright year in test.
Review-Url: https://codereview.chromium.org/2850473002 .
| Dart | bsd-3-clause | dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dar... |
37518182b203bc6d9e218ac78a8ed0b6d6a097ec | bin/redstone_server.dart | bin/redstone_server.dart | // Copyright (c) 2015, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
library redstone.server;
import 'package:rpc/rpc.dart';
import 'package:redstone/redstone.dart' as app;
import 'package:shelf_rpc/shelf_rpc.dart' as shelf_rpc;... | // Copyright (c) 2015, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
library redstone.server;
import 'package:rpc/rpc.dart';
import 'package:redstone/redstone.dart' as app;
import 'package:shelf_rpc/shelf_rpc.dart' as shelf_rpc;... | Disable redstone default error page | Disable redstone default error page
| Dart | bsd-3-clause | xdgimf/dart_sample_redstone_shelf_rpc |
2ec31a80aa8a7a7dd15cce2fa3ce12ea8e27db53 | google_pay/lib/src/google_pay.dart | google_pay/lib/src/google_pay.dart | part of '../google_pay.dart';
class GooglePay {
final GooglePayPlatform _googlePayPlatform;
Future _initializationFuture;
Map<String, dynamic> _paymentProfile;
GooglePay({@required String paymentProfileAsset})
: _googlePayPlatform = GooglePayMobileChannel() {
_initializationFuture = _initializeClie... | part of '../google_pay.dart';
class GooglePay {
final GooglePayPlatform _googlePayPlatform;
Future _initializationFuture;
Map<String, dynamic> _paymentProfile;
GooglePay(
{@required String paymentProfileAsset,
Future<Map<String, dynamic>> profileLoader(String value) =
_defaultProfileLoa... | Allow injecting dependencies to handle loading configuration profiles differently, and enable config tests | Allow injecting dependencies to handle loading configuration profiles differently, and enable config tests
| Dart | apache-2.0 | google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin,google-pay/flutter-plugin |
79b5a6b8e4e0735d103a13bf660c9470438abd86 | lib/protobuf.dart | lib/protobuf.dart | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library protobuf;
import 'dart:async';
import 'dart:collection';
import 'dart:convert';
import 'dart:m... | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library protobuf;
import 'dart:async';
import 'dart:collection';
import 'dart:convert' show JSON;
impo... | Add show JSON to convert import | Add show JSON to convert import
| Dart | bsd-3-clause | dart-lang/protobuf,google/protobuf.dart,collinjackson/dart-protobuf,dart-lang/dart-protobuf,google/protobuf.dart,dart-lang/protobuf,dart-lang/protobuf,dart-lang/dart-protobuf,dart-lang/dart-protobuf,google/protobuf.dart |
88c4ddf6bde36547465696dd7e6ab9a2338ac736 | sky/examples/fn/widgets/floating_action_button.dart | sky/examples/fn/widgets/floating_action_button.dart | part of widgets;
class FloatingActionButton extends StyleComponent {
static final Style _style = new Style('''
position: absolute;
display: flex;
justify-content: center;
align-items: center;
bottom: 16px;
right: 16px;
width: 56px;
height: 56px;
background-color: #F44336;
colo... | part of widgets;
class FloatingActionButton extends StyleComponent {
// TODO(rafaelw): Ganesh has problems with box shadows
// box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
static final Style _style = new Style('''
position: absolute;
display: flex;
justify-content: center;
... | Remove box shadow on floating action button until ganesh fixes its bug | Remove box shadow on floating action button until ganesh fixes its bug
TBR=abarth
Review URL: https://codereview.chromium.org/975203002
| Dart | bsd-3-clause | jianglu/mojo,afandria/mojo,afandria/mojo,chinmaygarde/mojo,collinjackson/mojo,chinmaygarde/mojo,chinmaygarde/mojo,jianglu/mojo,chinmaygarde/mojo,collinjackson/mojo,afandria/mojo,collinjackson/mojo,collinjackson/mojo,afandria/mojo,chinmaygarde/mojo,jianglu/mojo,jianglu/mojo,afandria/mojo,afandria/mojo,jianglu/mojo,jiang... |
52e4b37df17d0a19043e7da2ecdb2a9aecc4e00a | tests/compiler/dart2js_extra/super_call_test.dart | tests/compiler/dart2js_extra/super_call_test.dart | class A {
foo() => "A.foo${baz()}";
baz() => "A.baz";
hest(String s, int i) => "$s$i";
}
class B extends A {
foo() => "B.foo${super.foo()}";
baz() => "B.baz";
hest(s, i) => "B.hest${super.hest(s, i)}";
}
main() {
B b = new B();
Expect.equals("B.fooA.fooB.baz", b.foo());
Expect.equals("B.hestfisk42",... | // 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 A {
foo() => "A.foo${baz()}";
baz() => "A.baz";
hest(String s, int i) => "$s$i";
}
class B... | Add missing header and copyright to test. | Add missing header and copyright to test.
BUG=
Review URL: https://codereview.chromium.org//12606005
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@19770 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,da... |
50f3a6c9607167a55450ff7da421eafedfde1eba | tests/language_2/constants_2018/constant_type_literal_test.dart | tests/language_2/constants_2018/constant_type_literal_test.dart | // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// SharedOptions=--enable-experiment=constant-update-2018
// Tests that non-deferred type literals are... | // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// SharedOptions=--enable-experiment=constant-update-2018
// Tests that non-deferred type literals are... | Make deferred imports part of the corresponding tests. | [gardening] Make deferred imports part of the corresponding tests.
See https://github.com/dart-lang/sdk/issues/36418 for more info.
Change-Id: I5e26b295699c52db2e542330c23f8ec3095d78e9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98840
Reviewed-by: Stevie Strickland <cce218d042444252b7ac446d60910fca77325... | Dart | bsd-3-clause | dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dar... |
391f5bb995763760b6633a5048aed6a1577d5153 | tool/uncomment_test_section_in_pubspec.dart | tool/uncomment_test_section_in_pubspec.dart | library polymer.tool.uncomment_test_section_in_pubspec;
import 'dart:io';
import 'package:path/path.dart';
main() {
var path = relative(
join(dirname(dirname(Platform.script.path.substring(1))), 'pubspec.yaml'));
print('uncomment_test_section_in_pubspec: processing $path');
var pubspec = new File(path);
... | library polymer.tool.uncomment_test_section_in_pubspec;
import 'dart:io';
import 'package:path/path.dart';
main() {
var scriptPath = Platform.script.path;
if (context.style.name == 'windows') scriptPath = scriptPath.substring(1);
var path = join(dirname(dirname(scriptPath)), 'pubspec.yaml');
print('uncomment... | Remove relative path, but do special check for windows | Remove relative path, but do special check for windows
| Dart | bsd-3-clause | ronlobo/polymer-dart,ronlobo/polymer-dart,dam0vm3nt/polymer-dart,jakemac53/polymer-dart,meflyup/polymer-dart,dam0vm3nt/polymer-dart,meflyup/polymer-dart,dart-archive/polymer-dart,jakemac53/polymer-dart,dart-archive/polymer-dart |
015a97003b7bf3aeb997947308af656940c5aefe | corelib/src/string_buffer.dart | corelib/src/string_buffer.dart | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* The StringBuffer class is useful for concatenating strings
* efficiently. Only on a call to [to... | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* The StringBuffer class is useful for concatenating strings
* efficiently. Only on a call to [to... | Add addCharCode to StringBuffer interface. Already implemented by all implementations. | Add addCharCode to StringBuffer interface. Already implemented by all implementations.
R=floitsch@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10092009
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@6577 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,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,da... |
2eaa551860c408971c5754bb78f49925a5679fc5 | sdk/lib/_internal/compiler/implementation/filenames.dart | sdk/lib/_internal/compiler/implementation/filenames.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 filenames;
import 'dart:io';
// For information about how to convert Windows file names to UR... | // 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 filenames;
import 'dart:io' show Platform;
// For information about how to convert Windows fi... | Remove used of deprecated File.fullPathSync. | Remove used of deprecated File.fullPathSync.
BUG=
Review URL: https://codereview.chromium.org//50523003
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@29444 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino... |
c980a7fb55eb4e583876d671d4f19ee9524d464f | 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.... | Revert overridden applyAuthorStyles for now for explicitness and experiments | Revert overridden applyAuthorStyles for now for explicitness and experiments
| Dart | bsd-3-clause | devoncarew/spark,yikaraman/chromedeveditor,b0dh1sattva/chromedeveditor,vivalaralstin/chromedeveditor,devoncarew/spark,hxddh/chromedeveditor,valmzetvn/chromedeveditor,ussuri/chromedeveditor,beaufortfrancois/chromedeveditor,2947721120/choredev,hxddh/chromedeveditor,valmzetvn/chromedeveditor,2947721120/choredev,modulexcit... |
5233745eaabae57bea6492608c909639cd9817b0 | integration_tests/flutter_libs/test_driver/integration.dart | integration_tests/flutter_libs/test_driver/integration.dart | import 'dart:ffi';
import 'dart:io';
import 'package:flutter_driver/driver_extension.dart';
import 'package:test/test.dart';
import 'package:sqlite3/sqlite3.dart';
import 'package:sqlite3/src/ffi/ffi.dart' show char, Utf8Utils, PointerUtils;
import 'package:sqlite3/open.dart';
typedef _sqlite3_compileoption_get_nativ... | import 'dart:ffi';
import 'dart:io';
import 'package:flutter_driver/driver_extension.dart';
import 'package:test/test.dart';
import 'package:sqlite3/sqlite3.dart';
import 'package:sqlite3/src/ffi/ffi.dart' show char, Utf8Utils, PointerUtils;
import 'package:sqlite3/open.dart';
typedef _sqlite3_compileoption_get_nativ... | Fix infinite loop in test | Fix infinite loop in test
| Dart | mit | simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart |
8978f9d1a03680b9ca3418dab888a0f57c115da1 | lib/fnx_rest.dart | lib/fnx_rest.dart | // Copyright (c) 2016, Tomucha. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
/// Support for doing something awesome.
///
/// More dartdocs go here.
library fnx_rest;
import 'dart:async';
import 'package:http/browser_client.dart' as http;
i... | // Copyright (c) 2016, Tomucha. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
/// Support for doing something awesome.
///
/// More dartdocs go here.
library fnx_rest;
import 'dart:async';
import 'package:http/browser_client.dart' as http;
i... | FIX HttpClient.put should call correct method | FIX HttpClient.put should call correct method
| Dart | bsd-3-clause | fnx-io/fnx_rest |
dce793881f2a88dd11743ef108a1a336e45a8d28 | test/customer/customer_location_test.dart | test/customer/customer_location_test.dart | import "package:bitesize_screencasts/customer/customer.dart";
import "package:bitesize_screencasts/customer/customer_location_parser.dart";
import "package:unittest/unittest.dart";
import "dart:html";
void main() {
group("Customer Location Tests", () {
test("Customer Location Parser should parse customer enti... | import "package:bitesize_screencasts/customer/customer.dart";
import "package:bitesize_screencasts/customer/customer_location_parser.dart";
import "package:unittest/unittest.dart";
import "dart:html";
import 'package:unittest/html_config.dart';
import 'package:unittest/html_enhanced_config.dart';
void main() {
useH... | Add html configuration for customer location test | Add html configuration for customer location test
| Dart | bsd-3-clause | NicholasTuck/dart_bitesize_screencasts |
19cfd812dc315b58478cd9e2dda93a8bde0bf445 | lib/arpoador.dart | lib/arpoador.dart | library arpoador;
import 'dart:io';
import 'dart:typed_data';
class Momentum {
static listen({port: 8777, address: "127.0.0.1",
handler(socket)}) {
var server = new ServerSocket(address, port);
while (true) {
server.spawnAccept(handler);
}
}
static handle(socket, fn(req, res)) {
v... | library arpoador;
import 'dart:io';
import 'dart:typed_data';
class Momentum {
/// For now, the handler callback should be a static method or function.
/// It seems that instance methods don't work as handler callbacks yet.
static listen({port: 8777, address: "127.0.0.1",
handler(socket)}) {
var ser... | Document the listen method a little. | Document the listen method a little.
| Dart | bsd-2-clause | jpedrosa/arpoador,jpedrosa/arpoador,jpedrosa/arpoador |
2b8c160a1f6919b8e91190efeb0b6aa4031a3f12 | src/test/test_projects/manual_testing/lib/tokens.dart | src/test/test_projects/manual_testing/lib/tokens.dart | class lowercase {}
class UPPERCASE {}
class MyClass {
void method1() => print('Called method1!');
void Method2() => print('Called method2!');
void get() => print('Called get()!');
void set() => print('Called set()!');
String? _foo;
String? get foo => _foo;
set foo(String? value) => _foo = value;
}
voi... | class lowercase {}
class UPPERCASE {}
class MyClass {
void method1() => print('Called method1!');
void Method2() => print('Called method2!');
void get() => print('Called get()!');
void set() => print('Called set()!');
String? _foo;
String? get foo => _foo;
set foo(String? value) => _foo = value;
}
voi... | Fix analysis error in manual testing file | Fix analysis error in manual testing file
| Dart | mit | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code |
100d500b451e31f6c098951fe363e9b2d2b880eb | tests/language_2/extension_methods/static_extension_setter_getter_assignability_error_test.dart | tests/language_2/extension_methods/static_extension_setter_getter_assignability_error_test.dart | // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// SharedOptions=--enable-experiment=extension-methods
// It is an error to have a setter and a getter... | // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// SharedOptions=--enable-experiment=extension-methods
// It is an error to have a setter and a getter... | Update test expectations to match analyzer behavior | Update test expectations to match analyzer behavior
Change-Id: Ifd0528af3099086aee517813e64656dc1eaa2bdd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/113205
Reviewed-by: Paul Berry <72d414e3a99fb120308437779d51667bcc0984eb@google.com>
Commit-Queue: Brian Wilkerson <1f7641b6b14c52b9163524ab8d9aabff80176f21... | Dart | bsd-3-clause | dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,d... |
9e8d05e06255e6742a7a1890db2eb9831559e22d | lib/resource.dart | lib/resource.dart | typedef HttpRequest HttpRequestFactory();
typedef void HttpClientResponseCallback(HttpRequest request);
class Resource {
String url;
final HttpRequestFactory httpRequestFactory;
Resource(String url, [HttpRequestFactory httpRequestFactory = null])
: url = url,
httpRequestFactory = (httpRequestFactory != n... | typedef HttpRequest HttpRequestFactory();
typedef void HttpClientResponseCallback(HttpRequest request);
class Resource {
String url;
final HttpRequestFactory httpRequestFactory;
Resource(String url, [HttpRequestFactory httpRequestFactory = null])
: url = url,
httpRequestFactory = (httpRequestFactory != n... | Call .send() on HttpRequest to fire it off | Call .send() on HttpRequest to fire it off
| Dart | bsd-2-clause | sqs/sunrise |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.