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 |
|---|---|---|---|---|---|---|---|---|---|
4593f92a221a3fc6a3fe682f38d55c0dbcc03fc2 | lib/core/widgets/failure_alert_dialog.dart | lib/core/widgets/failure_alert_dialog.dart | // @dart=2.9
import 'package:flutter/material.dart';
import '../../features/help/presentation/pages/help_page.dart';
import '../error/failure.dart';
import '../helpers/failure_mapper_helper.dart';
Future<void> showFailureAlertDialog({
@required BuildContext context,
@required Failure failure,
bool showHelp = f... | // @dart=2.9
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import '../../features/help/presentation/pages/help_page.dart';
import '../../translations/locale_keys.g.dart';
import '../error/failure.dart';
import '../helpers/failure_mapper_helper.dart';
Future<void> ... | Update failure alert dialog with translation keys. | Update failure alert dialog with translation keys.
| Dart | mit | wcomartin/PlexPy-Remote |
a6784c145ab0e02352d5cca746804e86d8198963 | lib/list_tasks.dart | lib/list_tasks.dart | library list_tasks;
import 'dart:html';
import 'package:ddays/storageservice.dart' show loadFromStorage;
LIElement singleTaskElement(String tasksummary) {
LIElement li = new LIElement();
ParagraphElement p = new ParagraphElement();
p
..text = tasksummary
..classes.add('summarytext');
li
..classes.... | library list_tasks;
import 'dart:html';
import 'package:ddays/storageservice.dart' show loadFromStorage;
LIElement singleTaskElement(String tasksummary) {
LIElement li = new LIElement();
ParagraphElement p = new ParagraphElement();
p
..text = tasksummary
..classes.add('summarytext');
li
..classes.... | Fix typo in classes.add ... | Fix typo in classes.add ...
| Dart | bsd-3-clause | mswift42/ddays,mswift42/ddays |
f3173651f70983a453705bc5a0742fb5367fb6a6 | test/global/binstubs/missing_script_test.dart | test/global/binstubs/missing_script_test.dart | // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:scheduled_test/scheduled_stream.dart';
import '../../../lib/src/exit_codes.dart' as ex... | // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:path/path.dart' as p;
import '../../descriptor.dart' as d;
import '../../test_pub.dart... | Fix binstub test on windows. | Fix binstub test on windows.
R=nweiz@google.com
Review URL: https://codereview.chromium.org//586843002
git-svn-id: a962b240025cf0577aa172e20f49ccb159ba6be1@40518 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | computmaxer/pub,dart-lang/pub,dart-lang/pub,cjkao/dart-pub,maxwellpeterson-wf/pub |
2e529a521c1e5f21a4353d0fee0c6284b8d075e8 | lib/src/context.dart | lib/src/context.dart | // Copyright (c) 2014, the Liquid project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
part of liquid;
/// [Context] that is used to propagate information through Virtual DOM.
///
/// [Com... | // Copyright (c) 2014, the Liquid project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
part of liquid;
/// [Context] that is used to propagate information through Virtual DOM.
///
/// [Com... | Fix comment in Context class | Fix comment in Context class
| Dart | bsd-2-clause | localvoid/liquid,localvoid/liquid |
acfe5b1191940531c2b21948115ca0e0a846d22e | roguekit.dart | roguekit.dart | #library('roguekit');
#import('dart:html', prefix: 'html');
#import('content.dart');
#import('engine.dart');
#import('ui.dart');
#import('util.dart');
main() {
final content = createContent();
final terminal = new DomTerminal(100, 40, html.document.query('#terminal'));
final keyboard = new Keyboard(html.docum... | #library('roguekit');
#import('dart:html', prefix: 'html');
#import('content.dart');
#import('engine.dart');
#import('ui.dart');
#import('util.dart');
main() {
final content = createContent();
final terminal = new DomTerminal(100, 40, html.document.query('#terminal'));
final keyboard = new Keyboard(html.docum... | Add temp code for going straight to game. | Add temp code for going straight to game. | Dart | mit | silky/hauberk,silky/hauberk,maetl/hauberk,felixvolz/hauberk,felixvolz/hauberk,asimy/hauberk,asimy/hauberk |
850553e5c89bf11c4373abf56e5168b2b92174a9 | lib/app_layout/material_persistent_drawer.dart | lib/app_layout/material_persistent_drawer.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/content/deferred_content_awar... | // 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/content/deferred_content_awar... | 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 |
8c2706ea7a6ca64f83a9e534b4a153f87a5f0ff4 | lib/src/reflected_type.dart | lib/src/reflected_type.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 polymer.src.reflected_type;
// These are used by _getReflectedTypeWorkaround, see http://dartb... | // 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 polymer.src.reflected_type;
// These are used by _getReflectedTypeWorkaround, see http://dartb... | Remove use of deprecated mirror API from code that only runs against dart2js. | Remove use of deprecated mirror API from code that only runs against dart2js.
R=ahe@google.com, jmesserly@google.com
Review URL: https://codereview.chromium.org//105453004
git-svn-id: 0aa7e0b98478d6ef7145d04e8154f8ab2209deba@30902 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | ronlobo/polymer-dart,jakemac53/polymer-dart,meflyup/polymer-dart,jakemac53/polymer-dart,dam0vm3nt/polymer-dart,meflyup/polymer-dart,dart-archive/polymer-dart,ronlobo/polymer-dart,dam0vm3nt/polymer-dart,dart-archive/polymer-dart |
4866857f3eb43d34985265a87cbe13e2abc0611a | lib/src/core/linker/element_ref.dart | lib/src/core/linker/element_ref.dart | /// A wrapper around a native element inside of a View.
///
/// An `ElementRef` is backed by a render-specific element. In the browser, this
/// is usually a DOM element.
// Note: We don't expose things like `Injector`, `ViewContainer`, ... here, i.e.
// users have to ask for what they need. With that, we can build bet... | /// A wrapper around a native element inside of a View.
///
/// An `ElementRef` is backed by a render-specific element. In the browser, this
/// is usually a DOM element.
// Note: We don't expose things like `Injector`, `ViewContainer`, ... here, i.e.
// users have to ask for what they need. With that, we can build bet... | Make nativeElement final. doc(ElementRef): cleanup. | Make nativeElement final.
doc(ElementRef): cleanup.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=153537946
| Dart | mit | angulardart/angular,matanlurey/angular,chalin/angular2,angulardart/angular,chalin/angular2,kevmoo/angular,chalin/angular2,angulardart/angular,matanlurey/angular,matanlurey/angular,kevmoo/angular,kevmoo/angular |
749303984de20e60c36067fc2d1351988c399017 | lib/sample_api.dart | lib/sample_api.dart | library sample_api;
import 'dart:async';
import 'dart:io';
import 'package:rpc/rpc.dart';
final List<String> names = ['Joe', 'John', 'Doe', 'Dohn'];
class StringResponse {
String response;
StringResponse(this.response);
}
@ApiClass(name: 'sample', version: 'v1')
class SampleApi {
@ApiMethod(method: 'GET', pa... | library sample_api;
import 'dart:async';
import 'dart:io';
import 'package:rpc/rpc.dart';
final List<String> names = ['Joe', 'John', 'Doe', 'Dohn'];
class StringResponse {
String response;
StringResponse(this.response);
}
@ApiClass(name: 'sample', version: 'v1')
class SampleApi {
@ApiMethod(method: 'GET', pa... | Add hello api method with completer and delay | Add hello api method with completer and delay
| Dart | bsd-3-clause | xdgimf/dart_sample_redstone_shelf_rpc |
935103fd0f25bf768226b25414077fa572105dc5 | pkg/dart2js_tools/bin/lookup_name.dart | pkg/dart2js_tools/bin/lookup_name.dart | import 'dart:io';
import 'dart:convert';
import 'package:source_maps/source_maps.dart';
main(List<String> args) {
if (args.length < 2) {
print('usage: read.dart <source-map-file> <name>');
exit(1);
}
var sourcemapFile = new File.fromUri(Uri.base.resolve(args[0]));
if (!sourcemapFile.existsSync()) {
... | import 'dart:io';
import 'dart:convert';
import 'package:source_maps/source_maps.dart';
import 'package:dart2js_tools/src/dart2js_mapping.dart';
main(List<String> args) {
if (args.length < 2) {
print('usage: read.dart <source-map-file> <name>');
exit(1);
}
var name = args[1];
var sourcemapFile = new F... | Update lookup-name tool to use the dart2js_mapping implementation. | Update lookup-name tool to use the dart2js_mapping implementation.
Note: the current implementation broke when we changed the encoding.
Change-Id: I48d9e5fedad3f3be85fc1e73dd5dd091bb7278b0
Reviewed-on: https://dart-review.googlesource.com/c/84881
Commit-Queue: Sigmund Cherem <beaea8fd7d2a56555046ba4f362c8a93e3938576@g... | Dart | bsd-3-clause | dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-la... |
04db7aa0ea9e07323a2f7c6f18a19cbf78ef0e0e | server/bin/verify_sanity.dart | server/bin/verify_sanity.dart | import 'dart:io' as io;
import 'package:flutter_tools/src/device.dart';
import 'package:flutter_tools/src/doctor.dart';
import 'package:flutter_tools/src/base/context.dart';
import 'package:flutter_tools/src/base/logger.dart';
// import 'package:flutter_tools/src/commands/run.dart';
// import 'package:flutter_tools/sr... | import 'dart:io' as io;
import 'package:flutter_tools/src/android/android_sdk.dart';
import 'package:flutter_tools/src/device.dart';
import 'package:flutter_tools/src/doctor.dart';
import 'package:flutter_tools/src/base/context.dart';
import 'package:flutter_tools/src/base/logger.dart';
// import 'package:flutter_tool... | Add Android SDK to the context | Add Android SDK to the context
| Dart | bsd-3-clause | dart-archive/flit,dart-archive/flit,dart-archive/flit,dart-archive/flit,dart-archive/flit,dart-archive/flit |
a54b956c2aa1cb34f0106432b27638d15ac2e8e8 | lib/src/csvextractor.dart | lib/src/csvextractor.dart | part of eventsourcing;
QueryHandler csvExtractor(
QueryHandler sub, String array, String field, List<String> columns) {
final String columnSeperator = "\\|";
final String rowSeperator = "\\\$";
return (Map<String, dynamic> data, QueriableConnection db) async {
final Map result = await sub(new Map.from(d... | part of eventsourcing;
QueryHandler csvExtractor(
QueryHandler sub, String array, String field, List<String> columns) {
final String columnSeperator = "|";
final String rowSeperator = "\$";
return (Map<String, dynamic> data, QueriableConnection db) async {
final Map result = await sub(new Map.from(data)... | Fix escaping of CSV parts | Fix escaping of CSV parts
| Dart | mit | launix-de/dart-eventsourcing |
87ca0d21668614b8ac97413c2730f82a47f1e713 | lib/core/device_info/device_info.dart | lib/core/device_info/device_info.dart | import 'package:device_info_plus/device_info_plus.dart';
abstract class DeviceInfo {
/// The end-user-visible name for the device.
Future<String> get model;
/// A unique identifier for the device.
Future<String> get uniqueId;
}
class DeviceInfoImpl implements DeviceInfo {
final DeviceInfoPlugin deviceInfoP... | import 'package:device_info_plus/device_info_plus.dart';
import 'dart:io' show Platform;
abstract class DeviceInfo {
/// The end-user-visible name for the device.
Future<String> get model;
/// A unique identifier for the device.
Future<String> get uniqueId;
}
class DeviceInfoImpl implements DeviceInfo {
fi... | Add iOS support in device info check. | Add iOS support in device info check.
| Dart | mit | wcomartin/PlexPy-Remote |
1839f6375b0d2feb15d262d18c1ecb5f4840b5af | tests/standalone/regress_29695_test.dart | tests/standalone/regress_29695_test.dart | // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
// Test that type tests are not misoptimized.
// VMOptions=--optimization-counter-threshold=1000 --op... | // 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.
//
// Test that type tests are not misoptimized.
// VMOptions=--optimization-counter-threshold=1000 --op... | Revert "Fix misoptimization of 'is' test" | Revert "Fix misoptimization of 'is' test"
R=johnniwinther@google.com
BUG=
This reverts commits fc693153d1c79e8303abe05697a1d8458b0fef62
and b7797ac45fe6d58d5dae6c4db3094afb1dfaa4bc, code review at
https://codereview.chromium.org/2904543002. Revert is due to
an AOT failure.
Review-Url: https://codereview.chromium.org... | Dart | bsd-3-clause | dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/... |
a49984d27aa9425ed59b5fb508de28dec5f945cf | example/lib/placeholder_example.dart | example/lib/placeholder_example.dart | import 'package:flutter/material.dart';
import 'package:snapping_sheet/snapping_sheet.dart';
class PlaceholderSnapSheetExample extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Placeholder example'),
),
body: Snappin... | import 'package:flutter/material.dart';
import 'package:snapping_sheet/snapping_sheet.dart';
class PlaceholderSnapSheetExample extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Placeholder example'),
),
body: Snappin... | Revert placeholder example to use hight fit again | Revert placeholder example to use hight fit again
| Dart | mit | AdamJonsson/snapping_sheet,AdamJonsson/snapping_sheet,AdamJonsson/snapping_sheet,AdamJonsson/snapping_sheet |
228c285de2afdc45193a9049cf6bf33c9b853f5e | lib/isolate/timer.dart | lib/isolate/timer.dart | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
abstract class Timer {
/**
* Creates a new timer. The [callback] callback is invoked after
* [m... | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
abstract class Timer {
/**
* Creates a new timer. The [callback] callback is invoked after
* [m... | Add warning for future maintainers of Timer. | Add warning for future maintainers of Timer.
Review URL: https://codereview.chromium.org//11108007
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@13616 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lan... |
14d0785abc012f32656ae2057d03f4c08888b5d0 | tests/isolate/package_root_test.dart | tests/isolate/package_root_test.dart | // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:io';
import 'dart:isolate';
const SPAWN_PACKAGE_ROOT = "otherPackageRoot";
void main([ar... | // 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:io';
import 'dart:isolate';
final SPAWN_PACKAGE_ROOT = Uri.parse("otherPackageRoot");
vo... | Fix test in checked mode. | Fix test in checked mode.
BUG=
Review URL: https://codereview.chromium.org//592013002
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@40536 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,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,dart-archive/dart-sdk,dart-archive/dart-sdk... |
4f8ab1d36c5a83e8a03fcf76cd0a910505542a29 | test/devices_test.dart | test/devices_test.dart | @TestOn('windows')
import 'dart:ffi';
import 'package:ffi/ffi.dart';
import 'package:test/test.dart';
import 'package:win32/win32.dart';
void main() {
test('Volume management API', () {
final volumeNamePtr =
allocate<Uint16>(count: MAX_PATH).cast<Utf16>().cast<Utf16>();
final hFindVolume = FindFir... | @TestOn('windows')
import 'dart:ffi';
import 'package:ffi/ffi.dart';
import 'package:test/test.dart';
import 'package:win32/win32.dart';
void main() {
test('Volume management API', () {
final volumeNamePtr =
allocate<Uint16>(count: MAX_PATH).cast<Utf16>().cast<Utf16>();
final hFindVolume = FindFir... | Use raw string for legibility | Use raw string for legibility
| Dart | bsd-3-clause | timsneath/win32,timsneath/win32,timsneath/win32 |
6a430db5c7c5497715d43b8a52878548fbfe8ddc | tests/standalone/verified_mem_test.dart | tests/standalone/verified_mem_test.dart | // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
// Test write barrier verification mode.
// VMOptions=--verified_mem --verify_before_gc --verify_afte... | // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
// Test write barrier verification mode.
// VMOptions=--verify_before_gc --verify_after_gc --old_gen_... | Remove verified-mem option from test as it is being deprecated. | Remove verified-mem option from test as it is being deprecated.
Review URL: https://codereview.chromium.org/1891493002 .
| Dart | bsd-3-clause | dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,darti... |
5e620babaa9af1470e872ae241ada648756563da | test/storageservice_test.dart | test/storageservice_test.dart |
import 'package:ddays/storageservice.dart';
import 'package:test/test.dart'; |
import 'package:ddays/storageservice.dart';
import 'package:test/test.dart';
import 'dart:html';
import 'dart:convert';
void initStorage() {
window.localStorage[STORAGE_KEY] = JSON.encode([]);
}
void main() {
test(' | Add initstorage function for tests | Add initstorage function for tests
| Dart | bsd-3-clause | mswift42/ddays,mswift42/ddays |
91e39cc76589b15542b0219576755f3035fe2603 | 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 'dart:mirrors';
import 'package:crypto/crypto.dart';
import 'package:http/http.dart' as LibHttp;
import 'package:path/path.dart' as LibPath;
import 'package:logging/logging.dart';
import 'package:oauth2/oauth2... | library pin;
import 'dart:async';
import 'dart:collection';
import 'dart:convert';
import 'dart:io';
import 'dart:mirrors';
import 'package:crypto/crypto.dart';
import 'package:http/http.dart' as LibHttp;
import 'package:path/path.dart' as LibPath;
import 'package:logging/logging.dart';
import 'package:oauth2/oauth2... | Fix part code file name. | Fix part code file name.
| 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 |
2b58cbd4535a79181a4708aea0fff3638f6a6b2f | app/resources/notifications_resource.dart | app/resources/notifications_resource.dart | part of app;
/**
* Notification resource.
*/
@Injectable()
class NotificationsResource {
final Api _api;
NotificationsResource(this._api);
/**
* Returns all (or unread only) notifications for actually logged in user.
*/
Future<List<Notification>> readAll([bool unreadOnly = false]) {
var params = ... | part of app;
/**
* Notification resource.
*/
@Injectable()
class NotificationsResource {
final Api _api;
NotificationsResource(this._api);
/**
* Returns all (or unread only) notifications for currently logged user.
*/
Future<List<Notification>> readAll([bool unreadOnly = false]) {
var params = un... | Add update method for single notification | Add update method for single notification
| Dart | bsd-3-clause | kytarovy-zpevnik/frontend,kytarovy-zpevnik/frontend,kytarovy-zpevnik/frontend,kytarovy-zpevnik/frontend |
f9acd4cfddc5d67c08ef2c038d742aa79b3a6399 | lib/xml/utils/type.dart | lib/xml/utils/type.dart | part of xml;
/// Enum of the different XML Node types.
class XmlNodeType {
static const ELEMENT = const XmlNodeType._('ELEMENT');
static const ATTRIBUTE = const XmlNodeType._('ATTRIBUTE');
static const TEXT = const XmlNodeType._('TEXT');
static const CDATA = const XmlNodeType._('CDATA');
static const PROCES... | part of xml;
/// Enum of the different XML Node types.
enum XmlNodeType {
ELEMENT,
ATTRIBUTE,
TEXT,
CDATA,
PROCESSING,
COMMENT,
DOCUMENT,
DOCUMENT_FRAGMENT,
DOCUMENT_TYPE
}
| Make the XmlNodeType an enum | Make the XmlNodeType an enum
| Dart | mit | renggli/dart-xml |
129d6d778dfe8fd86fa92d3d1246abbb2fb18a07 | public/scripts/Views.Comics.dart | public/scripts/Views.Comics.dart | #library('Collection View for My Comic Book Collection');
#import('https://raw.github.com/eee-c/hipster-mvc/master/HipsterView.dart');
class Comics extends HipsterView {
Comics([collection, el]):
super(collection:collection, el:el);
post_initialize() {
_subscribeEvents();
_attachUiHandlers();
}
... | #library('Collection View for My Comic Book Collection');
#import('https://raw.github.com/eee-c/hipster-mvc/master/HipsterView.dart');
class Comics extends HipsterView {
Comics([collection, el]):
super(collection:collection, el:el);
post_initialize() {
_subscribeEvents();
_attachUiHandlers();
}
... | Update for new concat syntax | Update for new concat syntax
| Dart | mit | eee-c/dart-comics,eee-c/dart-comics,eee-c/dart-comics |
a8d2639c9215d932aab5dac73df0842a33454495 | lib/src/qr_image.dart | lib/src/qr_image.dart | import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:qr/qr.dart';
import 'qr_painter.dart';
class QrImage extends StatelessWidget {
QrImage({
@required String data,
this.size,
this.padding = const EdgeInsets.all(10.0),
this.backgroundColor,
Color foreg... | import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:qr/qr.dart';
import 'qr_painter.dart';
class QrImage extends StatelessWidget {
QrImage({
@required String data,
this.size,
this.padding = const EdgeInsets.all(10.0),
this.backgroundColor,
Color foreg... | Add automatic widget size determination when no size property is provided. | Add automatic widget size determination when no size property is provided.
| Dart | bsd-3-clause | lukef/qr.flutter,lukef/qr.flutter,lukef/qr.flutter,theyakka/qr.flutter,theyakka/qr.flutter,theyakka/qr.flutter,lukef/qr.flutter,theyakka/qr.flutter |
d2b1027171a5d37cf40099994b2a9795a743a92a | lib/storageservice.dart | lib/storageservice.dart | library storageservice;
import 'dart:html';
import 'dart:convert';
final String STORAGE_KEY = 'ddays';
// add an item to a given List, then save
// this list in localStorage with the key 'STORAGE_KEY'.
void saveToStorage(storedlist, item) {
storedlist.add(item);
window.localStorage[STORAGE_KEY] = JSON.encode(sto... | library storageservice;
import 'dart:html';
import 'dart:convert';
final String STORAGE_KEY = 'ddays';
List tasklist = [];
// add an item to a given List, then save
// this list in localStorage with the key 'STORAGE_KEY'.
void saveToStorage(item) {
tasklist.add(item);
window.localStorage[STORAGE_KEY] = JSON.enc... | Add reference to global tasklist. | Add reference to global tasklist.
| Dart | bsd-3-clause | mswift42/ddays,mswift42/ddays |
0ef793aa060caf2e0d5deb567da6f2c92ffbaae1 | lib/core/widgets/bullet_item.dart | lib/core/widgets/bullet_item.dart | import 'package:flutter/material.dart';
class BulletItem extends StatelessWidget {
final String text;
const BulletItem(this.text, {Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.only(
left: 10,
),
chi... | import 'package:flutter/material.dart';
class BulletItem extends StatelessWidget {
final String text;
final double fontSize;
const BulletItem(
this.text, {
Key key,
this.fontSize = 14,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: co... | Allow font size for BulletItem. | Allow font size for BulletItem.
| Dart | mit | wcomartin/PlexPy-Remote |
2f98364ad77a0f57564148f856d4fcdaeb7c064d | src/Server/bin/askthecrowdsserver.dart | src/Server/bin/askthecrowdsserver.dart | import 'dart:io';
import "controllers/HomeController.dart";
import "controllers/ApiController.dart";
typedef bool Handler(HttpRequest request);
void main() {
String connectionStringRedis = "127.0.0.1:6379/0";
HttpServer.bind(InternetAddress.ANY_IP_V4, 80).then((HttpServer server) {
foobar breaking ... | import 'dart:io';
import "controllers/HomeController.dart";
import "controllers/ApiController.dart";
typedef bool Handler(HttpRequest request);
void main() {
String connectionStringRedis = "127.0.0.1:6379/0";
HttpServer.bind(InternetAddress.ANY_IP_V4, 80).then((HttpServer server) {
var routeTable =... | Revert "breaking the build on purpose" | Revert "breaking the build on purpose"
This reverts commit b294e5ffb1fd96119a6f5c0b139a3639e4b8a29e.
| Dart | mit | MaxHorstmann/AskTheCrowds,MaxHorstmann/AskTheCrowds,MaxHorstmann/AskTheCrowds,MaxHorstmann/AskTheCrowds |
c0ca8ef636df8cc2c5e01b67b4ebf189bcdfdb8d | tool/grind.dart | tool/grind.dart | library polymorphic.grind;
import "dart:io";
import "package:grinder/grinder.dart";
import "package:yaml/yaml.dart";
void main(List<String> args) {
task("clean", defaultClean);
task("package", package);
task("build", null, ["clean", "package"]);
task("test", test);
task("ci", null, ["test", "build"]);
... | library polymorphic.grind;
import "dart:io";
import "package:grinder/grinder.dart";
import "package:yaml/yaml.dart";
void main(List<String> args) {
task("clean", defaultClean);
task("package", package);
task("build", null, ["clean", "package"]);
task("test", test);
task("ci", null, ["test", "build"]);
... | Use some dart2js flags to improve compiled output. | Use some dart2js flags to improve compiled output. | Dart | mit | PolymorphicBot/PolymorphicBot |
e1dacc83be5eca22f94a5538fbed257a2980e497 | lib/quiz_request_sink.dart | lib/quiz_request_sink.dart | part of quiz;
// RequestSunk is one of the base classes in the Aqueduct pipeline
class QuizRequestSink extends RequestSink {
// Configuration loaded by Dart library safe_config also from Stable|Kernel
static String ConfigurationKey = "QuizRequestSink.Configuration";
final Logger log = new Logger('QuizRequestSink... | part of quiz;
// RequestSunk is one of the base classes in the Aqueduct pipeline
class QuizRequestSink extends RequestSink {
// Configuration loaded by Dart library safe_config also from Stable|Kernel
static String ConfigurationKey = "QuizRequestSink.Configuration";
final Logger log = new Logger('QuizRequestSink... | Replace deprecated ManagedDataModel.fromPackageContainingType() by ManagedDataModel.fromCurrentMirrorSystem(). | Replace deprecated ManagedDataModel.fromPackageContainingType() by ManagedDataModel.fromCurrentMirrorSystem().
| Dart | mit | woopla/angueduct,woopla/angueduct |
6994b11ca110ef969577fc4fa600f5b53c339f58 | lib/src/iterable/math.dart | lib/src/iterable/math.dart | library more.iterable.math;
import 'dart:collection' show IterableBase;
import 'package:more/src/iterable/fold.dart';
/// Returns an iterable over the fibonacci sequence starting with [f0] and
/// [f1]. The default sequence is indefinitely long and by default starts
/// with 0, 1, 1, 2, 3, 5, 8, 13, ...
Iterable<int... | library more.iterable.math;
import 'package:more/src/iterable/fold.dart';
/// Returns an iterable over the fibonacci sequence starting with [f0] and
/// [f1]. The default sequence is indefinitely long and by default starts
/// with 0, 1, 1, 2, 3, 5, 8, 13, ...
Iterable<int> fibonacci([int f0 = 0, int f1 = 1]) {
ret... | Simplify the implementation of the digits iterable. | Simplify the implementation of the digits iterable.
| Dart | mit | renggli/dart-more,renggli/dart-more |
a24c60213597f2057ec55616550897fb2752890f | pkg/dartdev/test/commands/help_test.dart | pkg/dartdev/test/commands/help_test.dart | // Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:test/test.dart';
import '../utils.dart';
void main() {
group('help', help);
}
void ... | // Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:args/command_runner.dart';
import 'package:dartdev/dartdev.dart';
import 'package:test/t... | Add some additional tests to test the commands that are currently passing the help <verb> == <verb> --help assertion. | Add some additional tests to test the commands that are currently passing the help <verb> == <verb> --help assertion.
Bug: https://github.com/dart-lang/sdk/issues/41041
Change-Id: I440c76fc84d0d222d8d996c622c711c31b13e948
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/140144
Reviewed-by: Devon Carew <e99649... | 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 |
cb2e8ba0c49eb16171164209c4f041ae1fe72c60 | lib/features/history/presentation/bloc/user_history_event.dart | lib/features/history/presentation/bloc/user_history_event.dart | part of 'user_history_bloc.dart';
abstract class UserHistoryEvent extends Equatable {
const UserHistoryEvent();
@override
List<Object> get props => [];
}
class UserHistoryFetched extends UserHistoryEvent {
final String tautulliId;
final bool? grouping;
final bool? includeActivity;
final String? user;
... | part of 'user_history_bloc.dart';
abstract class UserHistoryEvent extends Equatable {
const UserHistoryEvent();
@override
List<Object> get props => [];
}
class UserHistoryFetched extends UserHistoryEvent {
final String tautulliId;
final bool? grouping;
final bool? includeActivity;
final String? user;
... | Make userId required for UserHistoryFetched event. | Make userId required for UserHistoryFetched event.
| Dart | mit | wcomartin/PlexPy-Remote |
91b8a6bf57959e5ffaf3659c87acc6def50396a8 | test/bootstrap_spec.dart | test/bootstrap_spec.dart | library bootstrap_spec;
import '_specs.dart';
void main() {
describe('bootstrap', () {
BodyElement body = window.document.querySelector('body');
it('should default to whole page', () {
body.innerHtml = '<div>{{"works"}}</div>';
ngBootstrap();
expect(body.innerHtml).toEqual('<div>works</di... | library bootstrap_spec;
import '_specs.dart';
void main() {
describe('bootstrap', () {
setBody(String html) {
var body = window.document.querySelector('body');
body.setInnerHtml(html, treeSanitizer: new NullTreeSanitizer());
return $(body);
}
it('should default to whole page', () {
... | Use JQuery in the bootstrap test | test(bootstrap): Use JQuery in the bootstrap test
| Dart | mit | hitesh97/angular.dart,ronlobo/angular.dart,rkirov/angular.dart,hitesh97/angular.dart,giovannicandido/angular.dart,trinarytree/angular.dart,winstonewert/angular.dart,trinarytree/angular.dart,trinarytree/angular.dart,rkirov/angular.dart,rkirov/angular.dart,trinarytree/angular.dart,hitesh97/angular.dart,hitesh97/angular.d... |
886fc9de89b807a2eae2bda4e2cd3daade3c4773 | lib/features/settings/presentation/widgets/servers_group.dart | lib/features/settings/presentation/widgets/servers_group.dart | import 'package:flutter/material.dart';
import 'package:websafe_svg/websafe_svg.dart';
import '../../../../core/widgets/list_tile_group.dart';
import '../pages/server_settings_page.dart';
import 'settings_list_tile.dart';
class ServersGroup extends StatelessWidget {
const ServersGroup({Key? key}) : super(key: key);... | import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:websafe_svg/websafe_svg.dart';
import '../../../../core/widgets/list_tile_group.dart';
import '../bloc/settings_bloc.dart';
import '../pages/server_settings_page.dart';
import 'settings_list_tile.dart';
class Serv... | Build ListTiles from loaded servers. | Build ListTiles from loaded servers.
| Dart | mit | wcomartin/PlexPy-Remote |
bc6bf348fa7201ffb7b0be4c8bb170935ac2dc0f | test/list_tasks_test.dart | test/list_tasks_test.dart |
import 'package:ddays/list_tasks.dart';
import 'package:test/test.dart';
import 'dart:html';
void main() {
test('sinlgeTaskElement returns a LIElement with correct p children', () {
LIElement st = singleTaskElement('task1');
expect(st.children[0].text, 'task1');
expect(st.classes.contains('singletask'),true);... |
import 'package:ddays/list_tasks.dart';
import 'package:test/test.dart';
import 'dart:html';
void main() {
test('sinlgeTaskElement returns a LIElement with correct p children', () {
LIElement st = singleTaskElement('task1');
expect(st.children[0].text, 'task1');
expect(st.classes.contains('singletask'),true);... | Check editTaskElement returns a LIElement. | Check editTaskElement returns a LIElement.
| Dart | bsd-3-clause | mswift42/ddays,mswift42/ddays |
e7835acea7bf927737258a503c34d18a150a2e89 | lib/src/model/table.dart | lib/src/model/table.dart | part of dherkin_core;
class GherkinTable extends IterableBase {
final String _SPACER = "\t\t ";
List<String> _columnNames = [];
List<Map> _table = [];
Iterator get iterator => _table.iterator;
int get length => _table.length;
bool get empty => _table.isEmpty;
List<String> get names => _columnNames... | part of dherkin_core;
class GherkinTable extends IterableBase {
final String _SPACER = "\t\t ";
List<String> _columnNames = [];
List<Map> _table = [];
Iterator get iterator => _table.iterator;
int get length => _table.length;
bool get empty => _table.isEmpty;
List<String> get names => _columnNames... | Fix crash in checked mode because of wrong output type. | Fix crash in checked mode because of wrong output type.
| Dart | bsd-2-clause | dkornishev/dherkin |
1439a62970436dc9d63ff67e1543c15b3f42dc4d | tests/compiler/dart2js_extra/regress/4492_test.dart | tests/compiler/dart2js_extra/regress/4492_test.dart | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
class A {
x(p1, p2) {
print(p1 * p2);
if (p1 * p2 == 12... | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
class A {
x(p1, p2) {
print(p1 * p2);
if (p1 * p2 == 12... | Change regression test now that String does have operator*. | Change regression test now that String does have operator*.
It still doesn't work for string arguments, but that's a type/argument error.
Review URL: https://codereview.chromium.org//173543002
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@32845 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/da... |
9a9bc2624935423c299405a93111e7744934b16c | test/test_all.dart | test/test_all.dart | library test.event_emitter;
import 'event_emitter_test.dart' as event_emitter_test;
import 'event_emitter_with_event_objects_test.dart' as event_objects_test;
import 'event_handlers_as_classes_test.dart' as event_handlers_test;
import 'package:test/test.dart';
void main () {
group('[Event emitter]', event_emitter... | library test.event_emitter;
import './event_emitter_test.dart' as event_emitter_test;
import './event_emitter_with_event_objects_test.dart' as event_objects_test;
import './event_handlers_as_classes_test.dart' as event_handlers_test;
import 'package:test/test.dart';
void main () {
group('[Event emitter]', event_e... | Change format of importing test packages | Change format of importing test packages
| Dart | mit | eps90/event-emitter.dart,eps90/event-emitter.dart |
9e09a79ccc167f7aaa8a3749929a771a7b55f193 | lib/features/settings/presentation/widgets/server_setup_instructions.dart | lib/features/settings/presentation/widgets/server_setup_instructions.dart | import 'package:flutter/material.dart';
import '../../../../core/widgets/bullet_item.dart';
class ServerSetupInstructions extends StatelessWidget {
final bool showWarning;
final double fontSize;
const ServerSetupInstructions({
Key key,
this.showWarning = true,
this.fontSize = 14,
}) : super(key: ... | import 'package:flutter/material.dart';
import '../../../../core/widgets/text_list.dart';
class ServerSetupInstructions extends StatelessWidget {
final bool showWarning;
final double fontSize;
const ServerSetupInstructions({
Key key,
this.showWarning = true,
this.fontSize = 14,
}) : super(key: ke... | Update setup instructions to use TextList widget. | Update setup instructions to use TextList widget.
| Dart | mit | wcomartin/PlexPy-Remote |
7d9e7f72517a2724bd19bfa7bb6167842510ebff | example/common.dart | example/common.dart | import "dart:html";
void init(String script, {void onReady()}) {
var stopwatch = new Stopwatch();
if (onReady != null) {
document.onReadyStateChange.listen((event) {
if (document.readyState == ReadyState.COMPLETE) {
stopwatch.stop();
print("Document Finished Loading in ${stopwatch.elap... | import "dart:html";
void init(String script, {void onReady()}) {
var stopwatch = new Stopwatch();
if (onReady != null) {
document.onReadyStateChange.listen((event) {
if (document.readyState == ReadyState.COMPLETE) {
stopwatch.stop();
print("Document Finished Loading in ${stopwatch.elap... | Tweak Query String Stuff for Demos | Tweak Query String Stuff for Demos
| Dart | mit | bwu-dart-contributing/github.dart,bwu-dart-contributing/github.dart,kasperpeulen/github.dart,kasperpeulen/github.dart,marcojakob/github.dart,marcojakob/github.dart,bwu-dart-contributing/github.dart,marcojakob/github.dart,bwu-dart-contributing/github.dart,kasperpeulen/github.dart,marcojakob/github.dart,kasperpeulen/gith... |
a6367d7866833ac037fbdefcdbcbee4def86e326 | dart/tests/Speedtest.dart | dart/tests/Speedtest.dart | import 'dart:html';
import '../DiffMatchPatch.dart';
// Compile with:
// dart2js --out=Speedtest.dart.js Speedtest.dart
void launch(Event e) {
HtmlElement input1 = document.getElementById('text1');
HtmlElement input2 = document.getElementById('text2');
String text1 = input1.text;
String text2 = input2.text;
... | import 'dart:html';
import '../DiffMatchPatch.dart';
// Compile with:
// dart2js -O4 --out=Speedtest.dart.js Speedtest.dart
void launch(Event e) {
HtmlElement input1 = document.getElementById('text1');
HtmlElement input2 = document.getElementById('text2');
String text1 = input1.text;
String text2 = input2.tex... | Add -O4 flag that changes speedtest from 31 seconds to 0.9 seconds. | Add -O4 flag that changes speedtest from 31 seconds to 0.9 seconds.
| Dart | apache-2.0 | google/diff-match-patch,google/diff-match-patch,google/diff-match-patch,google/diff-match-patch,google/diff-match-patch,google/diff-match-patch,google/diff-match-patch,google/diff-match-patch |
69f83732d98c7c30f865d412323e741d1e413471 | 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:convert';
import 'dart:io';
import 'dart:typed_... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library byte_stream;
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'dart:typed_... | Use BytesBuilder in pkg:http, when accumulating binary data. | Use BytesBuilder in pkg:http, when accumulating binary data.
This should speed up the library significant.
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//47923022
git-svn-id: a0fc6a377c96b9059f80895148836233a16d98be@29739 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/http,dart-lang/http,donny-dont/http,dart-lang/http,dart-lang/http,dart-lang/http,kasperpeulen/http,dart-lang/http,dart-lang/http,dart-lang/http |
53149f1557d9848ddca4ffbdf28cf06ecbbef21b | exec/lib/instrinsics.dart | exec/lib/instrinsics.dart | sub(x, y) => x - y;
add(x, y) => x + y;
div(x, y) => x / y;
mod(x, y) => x % y;
mul(x, y) => x * y;
not(x) => !x;
rpc_proxy(name, arguments) {
}
| sub(x, y) => x - y;
add(x, y) => x + y;
div(x, y) => x / y;
mod(x, y) => x % y;
mul(x, y) => x * y;
not(x) => !x;
lt(x, y) => x < y;
gt(x, y) => x > y;
lteq(x, y) => x <= y;
gteq(x, y) => x >= y;
eq(x, y) => x == y;
rpc_proxy(name, arguments) {
}
| Add conditional intrinsics to exec | Add conditional intrinsics to exec
| Dart | mit | lukechurch/iclc2016,lukechurch/iclc2016,lukechurch/iclc2016,lukechurch/iclc2016 |
5efe4e2b077577c50be32b1a300884fc09cab11b | lib/features/onesignal/presentation/pages/onesignal_data_privacy.dart | lib/features/onesignal/presentation/pages/onesignal_data_privacy.dart | import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:gap/gap.dart';
import '../../../../core/widgets/list_tile_group.dart';
import '../../../../core/widgets/page_body.dart';
import '../../../../translations/locale_keys.g.dart';
import '../widgets/onesignal_... | import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:gap/gap.dart';
import '../../../../core/widgets/list_tile_group.dart';
import '../../../../core/widgets/page_body.dart';
import '../../../../translations/locale_keys.g.dart';
import '../widgets/onesignal_... | Allow OneSignal toggle to be hidden. | Allow OneSignal toggle to be hidden.
| Dart | mit | wcomartin/PlexPy-Remote |
ef43a6a8221e11f00b029727491fdeff01c70cec | lib/distributed_dart.dart | lib/distributed_dart.dart | library distributed_dart;
import 'dart:io';
import 'dart:async';
import 'dart:isolate';
import 'dart:json';
import 'dart:typeddata';
part 'src/dart_import/util/characters.dart';
//part 'src/dart_import/dart_code.dart';
part 'src/dart_import/scanner.dart';
part 'src/network/network.dart';
// logging mechanism instad ... | library distributed_dart;
import 'dart:io';
import 'dart:async';
import 'dart:isolate';
import 'dart:json';
import 'dart:typeddata';
part 'src/dart_import/util/characters.dart';
//part 'src/dart_import/dart_code.dart';
part 'src/dart_import/scanner.dart';
part 'src/network/network.dart';
// logging mechanism instad ... | Use writeln instead of manual newline insert. | Use writeln instead of manual newline insert.
| Dart | bsd-2-clause | distributed-dart/distributed_dart,distributed-dart/distributed_dart |
7f510ba3560f5cc0fa4e5cfbf7995cc574f38fd2 | lib/src/testing/checked_mode.dart | lib/src/testing/checked_mode.dart | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | Throw StateError explicitly instead of using assert. Document thrown exception. | Throw StateError explicitly instead of using assert. Document thrown exception.
| Dart | apache-2.0 | matgray/quiver_iterables,EmmanuelOga/quiver-dart,QuiverDart/quiver_optional,QuiverDart/quiver_strings,trinarytree/quiver-dart,matgray/quiver_iterables,QuiverDart/quiver_io,QuiverDart/quiver_iterables,googlearchive/quiver_strings,googlearchive/quiver_check,QuiverDart/quiver_hashcode,QuiverDart/quiver_optional,QuiverDart... |
4d1b98e1cf924c2ebfb4809eb381268ed1fdb89c | lib/src/nodes/component.dart | lib/src/nodes/component.dart | // Copyright (c) 2014, the VDom project authors. Please see the AUTHORS file for
// details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
part of vdom.internal;
abstract class ComponentBase {
/// Fast check to detect if the Component is ch... | // Copyright (c) 2014, the VDom project authors. Please see the AUTHORS file for
// details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
part of vdom.internal;
abstract class ComponentBase {
/// Fast check to detect if the Component is ch... | Rearrange arguments in DelegatingComponent constructor | Rearrange arguments in DelegatingComponent constructor
| Dart | bsd-2-clause | localvoid/vdom,localvoid/vdom |
e3b0bc7973756d76d07e7bfecaeb97b2dd0f6764 | lib/src/preconditions.dart | lib/src/preconditions.dart | part of dart_commons;
/**
* Checks a [value] against a [Matcher] and throws a [PreconditionError] value is not valid.
*
* The default message in the [PreconditionError] details the nature of the validation failure,
* but can be optionally overridden with an custom [message] if desired.
*/
checkThat(value, Matc... | part of dart_commons;
/**
* Checks a [value] against a [Matcher] and throws a [PreconditionError] value is not valid.
*
* The default message in the [PreconditionError] details the nature of the validation failure,
* but can be optionally overridden with an custom [message] if desired.
*/
checkThat(value, Matc... | Fix for MatchState acting weird | Fix for MatchState acting weird
| Dart | apache-2.0 | jimsimon/dart_commons |
368015654c09af4db06e116ccf5f4f6a2861b6b4 | lib/src/util/progress.dart | lib/src/util/progress.dart | part of devtools.util;
class ProgressBar {
final int width;
final int complete;
int current = 0;
ProgressBar({int width, this.complete: 100}) : this.width = width != null ? width : stdout.terminalColumns;
void update(int progress) {
if (progress == current) {
return;
}
curre... | part of devtools.util;
class ProgressBar {
final int complete;
int current = 0;
ProgressBar({this.complete: 100});
void update(int progress) {
if (progress == current) {
return;
}
current = progress;
if (current == 0) {
stdout.write("");
}
var ratio... | Make the Progress Bar auto-resize. | Make the Progress Bar auto-resize.
| Dart | mit | DirectMyFile/devtools,DirectMyFile/devtools |
92d4f77033dcee4c0b9213c2099dd6a35208a0df | lib/core/helpers/string_format_helper.dart | lib/core/helpers/string_format_helper.dart | /// Helper functions to manipulate string.
class StringFormatHelper {
/// Capitalizes the first letter of a string.
///
/// Throws an [ArgumentError] if string is null.
static String capitalize(String string) {
if (string == null) {
throw ArgumentError("string: $string");
}
if (string.isEmpty... | /// Helper functions to manipulate string.
class StringFormatHelper {
/// Capitalizes the first letter of a string.
///
/// Throws an [ArgumentError] if string is null.
static String capitalize(String string) {
if (string == null) {
throw ArgumentError("string: $string");
}
if (string.isEmpty... | Add function to mask a sensitive string. | Add function to mask a sensitive string.
| Dart | mit | wcomartin/PlexPy-Remote |
2106c09314b28ce573a8f2ba3dfc1cb9786ba0de | bin/elevator.dart | bin/elevator.dart | import 'dart:io';
import 'dart:json' as JSON;
main() {
var port = int.parse(Platform.environment['PORT']);
HttpServer.bind('0.0.0.0', port).then((HttpServer server) {
print('Server started on port: ${port}');
server.listen((HttpRequest request) {
var resp = JSON.stringify({
'Dart on Heroku': ... | import 'dart:io';
import 'dart:json' as JSON;
main() {
var port = int.parse(Platform.environment['PORT']);
HttpServer.bind('0.0.0.0', port).then((HttpServer server) {
print('Server started on port: ${port}');
server.listen((HttpRequest request) {
var resp = JSON.stringify({
'Name': 'Eric Taix... | Test the full continuous build chain (Drone.io + Heroku) | Test the full continuous build chain (Drone.io + Heroku)
| Dart | apache-2.0 | eric-taix/elevator,eric-taix/elevator |
42e000f2300055a0c8a7587e279e4b660ad4c981 | lib/features/settings/presentation/widgets/more_group.dart | lib/features/settings/presentation/widgets/more_group.dart | import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import '../../../../core/package_information/package_information.dart';
import '../../../../core/widgets/list_tile_group.dart';
import 'settings_list_tile.dart';
class MoreGroup extends StatelessWidget {
const M... | import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import '../../../../core/package_information/package_information.dart';
import '../../../../core/widgets/list_tile_group.dart';
import 'settings_list_tile.dart';
class MoreGroup extends StatelessWidget {
const M... | Change icon for OneSignal Data Privacy. | Change icon for OneSignal Data Privacy.
| Dart | mit | wcomartin/PlexPy-Remote |
3e6769999d3e7494708b45e8bed9b5b789ead0e0 | lib/features/changelog/presentation/pages/changelog_page.dart | lib/features/changelog/presentation/pages/changelog_page.dart | import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import '../../../../translations/locale_keys.g.dart';
import '../../data/datasource/changelog_data_source.dart';
import '../widgets/changelog_item.dart';
class ChangelogPage extends StatelessWidget {
const ChangelogPa... | import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import '../../../../translations/locale_keys.g.dart';
import '../../../donate/presentation/pages/donate_page.dart';
import '../../data/datasource/changelog... | Add donate button to Changelog. | Add donate button to Changelog.
| Dart | mit | wcomartin/PlexPy-Remote |
ee46d19fecc97b9d925e13264603e91987c5255e | sdk/lib/_internal/pub/test/transformer/fails_to_load_a_transform_with_an_import_error_test.dart | sdk/lib/_internal/pub/test/transformer/fails_to_load_a_transform_with_an_import_error_test.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library pub_tests;
import 'package:scheduled_test/scheduled_test.dart';
import '../descriptor.dart'... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS d.file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library pub_tests;
import 'package:scheduled_test/scheduled_test.dart';
import '../descriptor.dart'... | Update pub test with "Uncaught Error: " prefix on output. | Update pub test with "Uncaught Error: " prefix on output.
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//439783002
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@38857 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,darti... |
8c369f3aac31215a22c38925fbd4cbafa0fbab80 | 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.
Review URL: https://codereview.chromium.org//12021008
git-svn-id: a0fc6a377c96b9059f80895148836233a16d98be@17821 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | donny-dont/http,dart-lang/http,dart-lang/http,dart-lang/http,dart-lang/http,dart-lang/http,dart-lang/http,dart-lang/http,dart-lang/http,kasperpeulen/http |
a9ebf72d8c4dc464731a473786aa013b7898810c | lib/src/generate_gh_pages.dart | lib/src/generate_gh_pages.dart | import 'dart:async';
import 'dart:io';
import 'package:logging/logging.dart';
import 'package:path/path.dart' as p;
import 'runner.dart' as Process; // TODO(chalin) tmp name to avoid code changes
import 'options.dart';
import 'util.dart';
final Logger _logger = new Logger('generate_gh_pages');
/// Returns the path ... | import 'dart:async';
import 'dart:io';
import 'package:logging/logging.dart';
import 'package:path/path.dart' as p;
import 'runner.dart' as Process; // TODO(chalin) tmp name to avoid code changes
import 'options.dart';
import 'util.dart';
final Logger _logger = new Logger('generate_gh_pages');
/// Returns the path ... | Support setting <base href> even when set dynamically | Support setting <base href> even when set dynamically
| Dart | mit | dart-archive/dart-doc-syncer |
43fa0b541bc096abd2f073f8b1df1fb51ca34118 | angular/lib/src/core/linker/component_resolver.dart | angular/lib/src/core/linker/component_resolver.dart | import 'package:angular/src/runtime.dart';
import 'package:angular/src/di/reflector.dart' as reflector;
import 'package:meta/meta.dart';
import 'component_factory.dart' show ComponentFactory;
/// Transitional API: Returns a [ComponentFactory] for [typeOrFactory].
///
/// If [typeOrFactory] is already a [ComponentFact... | import 'package:angular/src/runtime.dart';
import 'package:angular/src/di/reflector.dart' as reflector;
import 'package:meta/meta.dart';
import 'component_factory.dart' show ComponentFactory;
/// Transitional API: Returns a [ComponentFactory] for [typeOrFactory].
///
/// If [typeOrFactory] is already a [ComponentFact... | Drop <T> type in typeToFactory. | fix(Internal): Drop <T> type in typeToFactory.
It can never work, because [typeToFactory] doesn't often get a <T> type that is correct.
PiperOrigin-RevId: 190963426
| Dart | mit | angulardart/angular,matanlurey/angular,angulardart/angular,chalin/angular2,chalin/angular2,matanlurey/angular,matanlurey/angular,chalin/angular2,angulardart/angular |
6d18ad920ddb6ca63e0701de9ca03dc09f6eef72 | test/test_mirror.dart | test/test_mirror.dart | #library("objectory_mirror_requirements_test");
#import("domain_model.dart");
#import("dart:mirrors");
// Possibility to use mirrors currently blocked by lack of VariableMirror.type implementation
// Full support required: For example in class Article we have to reflect on comments as a List of Comment.
// class Ar... | #library("objectory_mirror_requirements_test");
#import("domain_model.dart");
#import("dart:mirrors");
// Possibility to use mirrors currently blocked by lack of VariableMirror.type implementation
// Full support required: For example in class Article we have to reflect on comments as a List of Comment.
// class Ar... | Test current situation with mirror | Test current situation with mirror
| Dart | mit | vadimtsushko/objectory,vadimtsushko/objectory |
52f96888793b540eb657f4bd5c91063131e15d8e | tests/html/track_element_constructor_test.dart | tests/html/track_element_constructor_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.
// A regression test for dart2js generating illegal JavaScript code
// dynamically in non-csp mode. Th... | // 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.
// A regression test for dart2js generating illegal JavaScript code
// dynamically in non-csp mode. Th... | Use unittest to avoid timeouts on Dartium. | Use unittest to avoid timeouts on Dartium.
Review URL: https://codereview.chromium.org//15053007
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@22788 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | 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,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lan... |
77770f09f06cc6da63312747419ab8d9a7123c37 | server/server.dart | server/server.dart | import 'package:force/force_serverside.dart';
void main() {
ForceServer fs = new ForceServer(clientFiles: "../client/web/",
startPage: "index.html");
fs.setupConsoleLog();
fs.on("add", (receiver, sender) {
sender.send("update",
receiver.json["data"] == "" ? {"data":"Hello World!"} :
{... | import 'package:force/force_serverside.dart';
void main() {
ForceServer fs = new ForceServer(clientFiles: "../client/build/web/",
startPage: "index.html");
fs.setupConsoleLog();
fs.on("add", (receiver, sender) {
sender.send("update",
receiver.json["data"] == "" ? {"data":"Hello World!"} :
... | Set build path as target | Set build path as target
| Dart | bsd-3-clause | DartVoid/Force-Hello |
a764be10cbeed745a70e0c72c4876e34b7217ab9 | test/tests/archive_test.dart | test/tests/archive_test.dart | import 'dart:typed_data';
import 'package:archive/archive.dart';
import 'package:test/test.dart';
void main() {
group('archive', () {
test('replace existing file', () {
final archive = Archive();
archive.addFile(ArchiveFile("a", 1, Uint8List.fromList([0])));
archive.addFile(ArchiveFi... | import 'dart:typed_data';
import 'package:archive/archive.dart';
import 'package:test/test.dart';
void main() {
group('archive', () {
test('replace existing file', () {
final archive = Archive();
archive.addFile(ArchiveFile("a", 1, Uint8List.fromList([0])));
archive.addFile(ArchiveFi... | Add non-ascii ArchiveFile name to test | Add non-ascii ArchiveFile name to test
| Dart | mit | brendan-duncan/archive,brendan-duncan/archive |
7d3983177fb0a159e900367b766d2d71d493406c | lib/src/async/helpers.dart | lib/src/async/helpers.dart | part of alpha.async;
Future<List<dynamic>> where(List<dynamic> input, bool filter(dynamic it)) {
var completer = new Completer();
var elements = [];
new Stream.fromIterable(input)
.where(filter)
.listen(elements.add)
.onDone(() => completer.complete(elements));
return completer.future;
}
| part of alpha.async;
Future<List<dynamic>> where(List<dynamic> input, bool filter(dynamic it)) {
var completer = new Completer();
var elements = [];
new Stream.fromIterable(input)
.where(filter)
.listen(elements.add)
.onDone(() => completer.complete(elements));
return completer.future;
}
... | Add an Asynchronous Function Execution | Add an Asynchronous Function Execution
| Dart | mit | DirectCodeGraveyard/alpha,DirectCodeGraveyard/alpha |
5b32058f203e05a728d7d0f69f36ed42f8c3b3ad | lib/app_component.dart | lib/app_component.dart | import 'package:angular2/core.dart';
import 'package:path/path.dart' as path;
// Every Angular application has at least one component: the root component, named AppComponent here.
// Components are the basic building blocks of Angular applications. A component controls a portion of the screen—a view—through its associ... | import 'package:angular2/core.dart';
import 'package:path/path.dart' as path;
import 'dart:html';
import 'dart:convert';
// Every Angular application has at least one component: the root component, named AppComponent here.
// Components are the basic building blocks of Angular applications. A component controls a port... | Load questions as objects from Aqueduct to Angular. | Load questions as objects from Aqueduct to Angular.
| Dart | mit | woopla/angueduct,woopla/angueduct |
84c428b91faecacb258e6c6dc9289ef3e9c18cb9 | angular_router/test/url_test.dart | angular_router/test/url_test.dart | // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@TestOn('vm')
import 'package:test/test.dart';
import 'package:angular_router/src/url.dart';
void main... | // 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.
import 'package:test/test.dart';
import 'package:angular_router/src/url.dart';
void main() {
group('... | Migrate VM tests to Web | Migrate VM tests to Web
We will soon enforce that vm tests have dependencies that declare support for the vm platform. These tests transitively depend on web only targets, thus we must migrate them to web tests. There will be a minor performance impact because of this change. If you would like to revert the change, pl... | Dart | mit | angulardart/angular,kevmoo/angular,angulardart/angular,matanlurey/angular,matanlurey/angular,chalin/angular2,chalin/angular2,chalin/angular2,angulardart/angular,kevmoo/angular,kevmoo/angular,matanlurey/angular |
2442b5313fef9e3448eda18af20406bb7f64bf61 | examples/widgets-fn/widgets_app.dart | examples/widgets-fn/widgets_app.dart | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import '../../framework/fn.dart';
import '../../framework/components/button.dart';
class WidgetsApp extends App {
Node build() {
return new Button(... | // 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 '../../framework/fn.dart';
import '../../framework/components/button.dart';
import '../../framework/components/popup_menu.dart';
import '../../fram... | Add a basic popup menu widget | Add a basic popup menu widget
Currently this widget is demoed in widgets-fn, but I'll move it into stocks-fn
soon.
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1017873002
| Dart | bsd-3-clause | Hixie/flutter,cbracken/flutter,cbracken/flutter,cbracken/flutter,aghassemi/flutter,cbracken/flutter,cbracken/flutter,tvolkert/flutter,jason-simmons/flutter,turnidge/flutter,flutter/flutter,cbracken/flutter,flutter/flutter,cbracken/flutter,Hixie/flutter,flutter/flutter,jason-simmons/flutter,tvolkert/flutter,tvolkert/flu... |
328e45c0b1fe71c61337f180660cdf7d6e4a5c52 | petitparser/example/calc.dart | petitparser/example/calc.dart | /// Calculator from the tutorial.
library petitparser.example.calc;
import 'package:petitparser/petitparser.dart';
void main(List<String> arguments) {
final number = digit().plus().flatten().trim().map(int.parse);
final term = undefined();
final prod = undefined();
final prim = undefined();
final start = te... | /// Calculator from the tutorial.
library petitparser.example.calc;
import 'dart:math';
import 'package:petitparser/petitparser.dart';
Parser buildParser() {
final builder = ExpressionBuilder();
builder.group()
..primitive((pattern('+-').optional() &
digit().plus() &
(char('.') & digit... | Use the expression builder in the example. | Use the expression builder in the example.
| Dart | mit | petitparser/dart-petitparser |
6acc102b67cd55976fc75df073e513f91737df64 | test/testtextmarker.dart | test/testtextmarker.dart | import 'package:unittest/unittest.dart';
import 'package:workmantrainer/textmarker.dart';
| import 'package:unittest/unittest.dart';
import 'package:workmantrainer/textmarker.dart';
void main() {
test('check initialisation of TextMarker Class works.', () {
var tm = new TextMarker('some text',0,2,"CORRECT");
expect(tm.targettext, 'some text');
expect(tm.startposition,0);
expect(tm.endpositio... | Add test for Class initialisation. | Add test for Class initialisation.
| Dart | bsd-3-clause | mswift42/workmantrainer,mswift42/workmantrainer |
a51197194f934b1741a2ca9c0913cbc4cd63b39e | tests/language/constructor/missing_initializer_test.dart | tests/language/constructor/missing_initializer_test.dart | // Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test that it is an error for a class with no generative constructors to
// have a final instance var... | // Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test that it is an error for a class with no generative constructors to
// have a final instance var... | Fix test for abstract field, not impelemnetd by the mixin application. | Fix test for abstract field, not impelemnetd by the mixin application.
Change-Id: I1d12a70a82a859d57516948672ed6a931904ae7a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161626
Reviewed-by: Brian Wilkerson <1f7641b6b14c52b9163524ab8d9aabff80176f21@google.com>
Reviewed-by: Leaf Petersen <9bef692239b5f624cec... | 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 |
3fe8f7220e95c4a75170783948781818f0f9e084 | test/contexts/html_test.dart | test/contexts/html_test.dart | @TestOn('browser')
library quark.test.contexts.html;
import 'package:test/test.dart';
import 'package:quark/integration.dart';
import 'package:quark/contexts/html.dart';
import '../mock_runner.dart';
import 'dart:html';
import 'dart:async';
class HtmlContextIntegrationTest = IntegrationTest with HtmlContext;
main() ... | @TestOn('browser')
library quark.test.contexts.html;
import 'package:test/test.dart';
import 'package:quark/integration.dart';
import 'package:quark/contexts/html.dart';
import '../mock_runner.dart';
import 'dart:html';
import 'dart:async';
class HtmlContextIntegrationTest = IntegrationTest with HtmlContext;
main() ... | Clean up context test given new async test mocking | Clean up context test given new async test mocking
| Dart | mit | emilniklas/quark,emilniklas/quark,emilniklas/quark |
c9b8e53a1286ba3e6bbe0e9ce2fc4eba1e0a6511 | 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 int size;
final double s... | // 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 int size;
final double s... | Remove keyword this from constructor | Remove keyword this from constructor
| Dart | bsd-3-clause | mswift42/colorful |
99d460c8e73e1113007dd3fb2108ca5c2bc52df2 | tools/proto-dart-plugin/src/main/resources/types.template.dart | tools/proto-dart-plugin/src/main/resources/types.template.dart | // Generated by Spine Proto Dart Gradle plugin.
//
// https://github.com/SpineEventEngine/base
//
// Do NOT edit this file manually.
//
import "package:protobuf/protobuf.dart";
// @import@
Map<String, BuilderInfo> typeUrlToInfo = {
// @type-to-info@
};
Map<GeneratedMessage, String> defaultToTypeUrl = {
// @me... | // Generated by Spine Proto Dart Gradle plugin.
//
// https://github.com/SpineEventEngine/base
//
// Do NOT edit this file manually.
//
import "package:protobuf/protobuf.dart";
// @import@
Map<String, BuilderInfo> _typeUrlToInfo = {
// @type-to-info@
};
Map<GeneratedMessage, String> _defaultToTypeUrl = {
// @m... | Make generated Dart type registry more useful | Make generated Dart type registry more useful
| Dart | apache-2.0 | SpineEventEngine/base,SpineEventEngine/base,SpineEventEngine/base |
8c13c9d4ea9aee75b19ae78cc716977acc5168c0 | example/runme.dart | example/runme.dart | import 'dart:io';
import 'dart:async';
// example websocket server
// listens on ws://dart.dyndns.dk:15000
main(){
listen(HttpServer server){
print("listening for new connection");
var sc = new StreamController();
sc.stream
.transform(new WebSocketTransformer())
.listen((WebSocket w... | import 'dart:io';
import 'dart:async';
// example websocket server
// listens on ws://dart.dyndns.dk:15000
main(){
listen(HttpServer server){
print("listening for new connection");
var sc = new StreamController();
sc.stream
.transform(new WebSocketTransformer())
.listen((WebSocket w... | Send method changed to add in WebSocket | Send method changed to add in WebSocket
| Dart | bsd-2-clause | distributed-dart/distributed_dart,distributed-dart/distributed_dart |
f9b91f056e52f907638b6c0ea93dcd284a072fb7 | tests/language/src/PrivateFactoryResolutionNegativeTest.dart | tests/language/src/PrivateFactoryResolutionNegativeTest.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.
class PrivateFactoryResolutionTest {
static testMain() {
new TypeError._uninstantiable();
}
}
... | // 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.
class PrivateFactoryResolutionNegativeTest {
static testMain() {
new TypeError._uninstantiable()... | Improve frog error reporting when providing too few or too many arguments. | Improve frog error reporting when providing too few or too many arguments.
This is a partial re-landing of r3720, but without getting rid of the
duplicate errors and warnings.
R=floitsch@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//9264069
git-svn-id: c93d8a2297af3b929165606efe145742a53... | Dart | bsd-3-clause | dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-ar... |
991dc2ed61424eb732c4f57d670419efbbb42c1a | angular/lib/src/transform/stylesheet_compiler/transformer.dart | angular/lib/src/transform/stylesheet_compiler/transformer.dart | import 'dart:async';
import 'package:build/build.dart';
import 'package:angular/src/transform/common/names.dart';
import 'package:angular_compiler/angular_compiler.dart';
import 'processor.dart';
Builder stylesheetCompiler(BuilderOptions options) {
final flags = new CompilerFlags.parseRaw(
options.config, co... | import 'dart:async';
import 'package:build/build.dart';
import 'package:angular/src/transform/common/names.dart';
import 'package:angular_compiler/angular_compiler.dart';
import 'processor.dart';
Builder stylesheetCompiler(BuilderOptions options) {
final flags = new CompilerFlags.parseRaw(
options.config,
... | Use trailing commas for DSLs, and make something const. | refactor(Compiler): Use trailing commas for DSLs, and make something const.
PiperOrigin-RevId: 177529991
| Dart | mit | kevmoo/angular,chalin/angular2,matanlurey/angular,angulardart/angular,matanlurey/angular,kevmoo/angular,angulardart/angular,matanlurey/angular,kevmoo/angular,chalin/angular2,chalin/angular2,angulardart/angular |
71a488bdeab7bb0a5cca80a819f87c35b974652e | web/customer/main.dart | web/customer/main.dart | import "package:bitesize_screencasts/customer/customer.dart";
import "package:intl/intl.dart";
import "dart:html";
final wealthFormatter = new NumberFormat("###,###,###", "en_US");
void main () {
Customer bruceWillis = new Customer("Bruce", "Willis", 59, 25000000);
Customer johnMcClane = new Customer("John", "M... | import "package:bitesize_screencasts/customer/customer.dart";
import "package:intl/intl.dart";
import "dart:html";
final wealthFormatter = new NumberFormat("###,###,###", "en_US");
Customer bruceWillis = new Customer("Bruce", "Willis", 59, 25000000);
Customer johnMcClane = new Customer("John", "McClane", 32, 40000);... | Refactor customer merge click handler to be its own method | Refactor customer merge click handler to be its own method
| Dart | bsd-3-clause | NicholasTuck/dart_bitesize_screencasts |
545d8c4ac73ea64ac079d40337f4b450458049be | lib/src/http_request_data_reader.dart | lib/src/http_request_data_reader.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.
/**
* This contains a reader that accesses data using the HttpRequest
* facility, and thus works only... | // 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.
/**
* This contains a reader that accesses data using the HttpRequest
* facility, and thus works only... | Add a timeout on HttpRequestDataReader | Add a timeout on HttpRequestDataReader
BUG=
R=efortuna@google.com
Review URL: https://codereview.chromium.org//347963004
git-svn-id: a8f079e7cfc3a289d8496d7b88aabbd5c45a3053@37711 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/intl,astashov/intl,astashov/intl |
cee6b627a2c824953cbb1c2c10f95fca37c8f248 | example/string.dart | example/string.dart | // Copyright (c) 2015 Justin Andresen. All rights reserved.
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
library toml.example.string;
import 'package:toml/toml.dart';
var toml = '''
[table]
[[table.array]]
key = "Hello, World!"
''';
vo... | // Copyright (c) 2015 Justin Andresen. All rights reserved.
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
library toml.example.string;
import 'package:toml/decoder.dart';
var toml = '''
[table]
[[table.array]]
key = "Hello, World!"
''';
... | Use new `decoder` library in examples. | Use new `decoder` library in examples.
| Dart | mit | just95/toml.dart,just95/toml.dart |
50858fdd7abca36e350b12c9793da60c166b244d | sky/examples/game/lib/sprites.dart | sky/examples/game/lib/sprites.dart | library sprites;
import 'dart:sky';
import 'dart:math' as Math;
import 'package:vector_math/vector_math_64.dart';
import 'package:sky/framework/app.dart';
import 'package:sky/framework/rendering/box.dart';
import 'package:sky/framework/rendering/node.dart';
import 'package:sky/framework/scheduler.dart' as scheduler;
i... | library sprites;
import 'dart:sky';
import 'dart:math' as Math;
import 'package:vector_math/vector_math_64.dart';
import 'package:sky/framework/app.dart';
import 'package:sky/framework/rendering/box.dart';
import 'package:sky/framework/rendering/object.dart';
import 'package:sky/framework/scheduler.dart' as scheduler;... | Fix examples/game to work after Hixie's grand rename. | Fix examples/game to work after Hixie's grand rename.
TBR=viktorl@google.com
Review URL: https://codereview.chromium.org/1158273009
| Dart | bsd-3-clause | chinmaygarde/mojo,afandria/mojo,afandria/mojo,jianglu/mojo,afandria/mojo,jianglu/mojo,afandria/mojo,jianglu/mojo,jianglu/mojo,jianglu/mojo,afandria/mojo,afandria/mojo,afandria/mojo,jianglu/mojo,jianglu/mojo,chinmaygarde/mojo,chinmaygarde/mojo,chinmaygarde/mojo,afandria/mojo,chinmaygarde/mojo,chinmaygarde/mojo,chinmayga... |
96c8bdd8d6fa4b831e34370a77e1e9e4d868d2de | lib/resource_request.dart | lib/resource_request.dart | part of monadart;
class ResourceRequest {
final HttpRequest request;
HttpResponse get response => request.response;
Map<String, String> pathParameters = null;
Map<dynamic, dynamic> context = null;
ResourceRequest(HttpRequest req) : request = req {
}
} | part of monadart;
class ResourceRequest {
final HttpRequest request;
HttpResponse get response => request.response;
Map<String, String> pathParameters = null;
Map<dynamic, dynamic> context = new Map();
ResourceRequest(this.request) {
}
} | Fix to ResourceRequest, cleaned up init | Fix to ResourceRequest, cleaned up init
| Dart | bsd-2-clause | stablekernel/aqueduct,stablekernel/aqueduct,stablekernel/aqueduct |
0c0c53e95d9b714abc85e6827666cc6d32e0f22a | 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. 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: a962b240025cf0577aa172e20f49ccb159ba6be1@7112 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | cjkao/dart-pub,computmaxer/pub,dart-lang/pub,maxwellpeterson-wf/pub,dart-lang/pub |
2534e5f087b91613f86f5b9ba03dbdf383149e34 | lib/src/permutations/settings.dart | lib/src/permutations/settings.dart | // Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | // Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | Introduce default locale setting for permutations transformer | Introduce default locale setting for permutations transformer | Dart | apache-2.0 | google/dart-scissors,google/dart-scissors,google/dart-scissors,google/dart-scissors |
eb894327824d96d6bddfb763b36259df7aa580c9 | lib/runtime/json.dart | lib/runtime/json.dart | part of streamy.runtime;
final _observableJsonCodec = new JsonCodec.withReviver(_observableReviver);
/// Parses JSON into [Observable] lists and maps.
dynamic jsonParse(String json) {
return _observableJsonCodec.decode(json);
}
_observableReviver(dynamic key, dynamic value) {
if (value is Observable) {
retur... | part of streamy.runtime;
final _observableJsonCodec = new JsonCodec.withReviver(_observableReviver);
/// Parses JSON into [Observable] lists and maps.
dynamic jsonParse(String json) {
return _observableJsonCodec.decode(json);
}
_observableReviver(dynamic key, dynamic value) {
if (value is List) {
return new ... | Remove unnecessary observable wrapping logic | Remove unnecessary observable wrapping logic
| Dart | apache-2.0 | srawlins/streamy-dart,google/streamy-dart,google/streamy-dart,ronlobo/streamy-dart,srawlins/streamy-dart,srawlins/streamy-dart,srawlins/streamy-dart,google/streamy-dart,ronlobo/streamy-dart,google/streamy-dart,ronlobo/streamy-dart,ronlobo/streamy-dart |
30cdd203cc57d83ecb636022ccdae9813c2c86dc | lib/sample_api.dart | lib/sample_api.dart | library sample_api;
import 'dart:async';
import 'dart:io';
import 'package:rpc/rpc.dart';
final List<String> names = ['Joe', 'John', 'Doe', 'Dohn'];
class StringResponse {
String response;
StringResponse(this.response);
}
@ApiClass(name: 'sample', version: 'v1')
class SampleApi {
@ApiMethod(method: 'GET', pa... | library sample_api;
import 'dart:async';
import 'dart:io';
import 'package:rpc/rpc.dart';
final List<String> names = ['Joe', 'John', 'Doe', 'Dohn'];
class StringResponse {
String response;
StringResponse(this.response);
}
@ApiClass(name: 'sample', version: 'v1')
class SampleApi {
@ApiMethod(method: 'GET', pa... | Add hello api method without async | Add hello api method without async
| Dart | bsd-3-clause | xdgimf/dart_sample_redstone_shelf_rpc |
b98ca4ffae08b59f3ea434a76f9f9b3357a5c440 | test/parser_tests.dart | test/parser_tests.dart | library parser_tests;
import 'package:irc/parser.dart';
import 'package:unittest/unittest.dart';
main() {
group("Hostmask", () {
var inputs = {
"samrg472!~deathcraz@I.got.g-lined.cu.cc": (it) {
if (it.nickname != "samrg472") {
throw new Exception("nickname: ${it.nickname}");
}
... | library parser_tests;
import 'package:irc/parser.dart';
import 'package:unittest/unittest.dart';
typedef dynamic InputChecker<T>(T value);
main() {
group("Hostmask", () {
var inputs = <String, InputChecker<Hostmask>>{
"samrg472!~deathcraz@I.got.g-lined.cu.cc": (it) {
if (it.nickname != "samrg472"... | Add Test for Message IRC Parser | Add Test for Message IRC Parser
| Dart | mit | DirectMyFile/irc.dart,DirectMyFile/irc.dart |
54ac1bf24fd22d7b3a208f3eabdeba5903857d20 | bin/sync_all.dart | bin/sync_all.dart | import 'dart:async';
import 'dart_doc_syncer.dart' as syncer;
final examplesToSync = <List<String>>[
<String>[
'public/docs/_examples/template-syntax/dart',
'https://github.com/angular-examples/template-syntax'
]
];
/// Syncs all angular.io example applications.
Future main(List<String> args) async {
f... | import 'dart:async';
import 'dart_doc_syncer.dart' as syncer;
final examplesToSync = <List<String>>[
<String>[
'public/docs/_examples/template-syntax/dart',
'git@github.com:angular-examples/template-syntax.git'
]
];
/// Syncs all angular.io example applications.
Future main(List<String> args) async {
f... | Use ssh for github repositories. | Use ssh for github repositories.
| Dart | mit | dart-archive/dart-doc-syncer |
a98cf4612f0e57e00a0f4f29f812a37ff7c83a2d | lib/ui/notices/notices_card.dart | lib/ui/notices/notices_card.dart | import 'package:campus_mobile_experimental/app_styles.dart';
import 'package:campus_mobile_experimental/core/models/notices.dart';
import 'package:campus_mobile_experimental/ui/common/image_loader.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
class NoticesCard extends ... | import 'package:campus_mobile_experimental/app_styles.dart';
import 'package:campus_mobile_experimental/core/models/notices.dart';
import 'package:campus_mobile_experimental/ui/common/image_loader.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
class NoticesCard extends ... | Add description to Notices banner | Add description to Notices banner
| Dart | mit | UCSD/campus-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/now-mobile |
7803b799a6c2eee7300476dce83591a81252b814 | lib/colorful.dart | lib/colorful.dart | // Copyright (c) 2015, <Martin Haesler>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
/// The colorful library.
library colorful;
class Color {
int _r;
int _g;
int _b;
Color(this._r, this._g, this._b);
} | // Copyright (c) 2015, <Martin Haesler>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
/// The colorful library.
library colorful;
class Color {
int _r;
int _g;
int _b;
Color(this._r, this._g, this._b);
get r => _r;
get g => _g;... | Add getter methods for r, g, b; | Add getter methods for r, g, b;
| Dart | bsd-3-clause | mswift42/colorful |
32e3a52e8451669679035180ae9e4e4ffceef457 | lib/storageservice.dart | lib/storageservice.dart | library storageservice;
import 'dart:html';
import 'dart:convert';
final String STORAGE_KEY = 'ddays';
List tasklist = [];
// add an item to a given List, then save
// this list in localStorage with the key 'STORAGE_KEY'.
void saveToStorage(item) {
tasklist.add(item);
window.localStorage[STORAGE_KEY] = JSON.enc... | library storageservice;
import 'dart:html';
import 'dart:convert';
final String STORAGE_KEY = 'ddays';
List tasklist = [];
// add an item to a given List, then save
// this list in localStorage with the key 'STORAGE_KEY'.
void saveToStorage(item) {
tasklist.add(item);
window.localStorage[STORAGE_KEY] = JSON.enc... | Use tasklist global in loadFromStorage function. | Use tasklist global in loadFromStorage function.
| Dart | bsd-3-clause | mswift42/ddays,mswift42/ddays |
aa0d0b1fe553466d11637de7f91ff9fa989fee0e | lib/textmarker.dart | lib/textmarker.dart | library textmarker;
import 'dart:html';
class TextMarker {
String targettext;
int startposition;
int endposition;
String textState; // were characters from start to end position typed correctly.
TextMarker(this.targettext,this.startposition, this.endposition,this.textState);
SpanElement textSpan(in... | library textmarker;
import 'dart:html';
class TextMarker {
String targettext;
int startposition;
int endposition;
String textState; // were characters from start to end position typed correctly.
TextMarker(this.targettext,this.startposition, this.endposition,this.textState);
SpanElement textSpan(St... | Use initialised start and endpositions. | Use initialised start and endpositions.
| Dart | bsd-3-clause | mswift42/workmantrainer,mswift42/workmantrainer |
515c24e2d10167c12035a501f2d3a645b70b1e58 | test/test_dump_render_tree.dart | test/test_dump_render_tree.dart | library test_dump_render_tree;
import 'dart:io';
import 'package:unittest/unittest.dart';
void main() {
testRun();
}
void testCore(Configuration config) {
configure(config);
groupSep = ' - ';
testRun();
}
void testRun() {
final browserTests = ['test/tests_browser.html'];
group('DumpRenderTree', () {
... | library test_dump_render_tree;
import 'dart:io';
import 'package:unittest/unittest.dart';
void main() {
testRun();
}
void testCore(Configuration config) {
unittestConfiguration = config;
groupSep = ' - ';
testRun();
}
void testRun() {
final browserTests = ['test/tests_browser.html'];
group('DumpRenderT... | Update unit test configuration setting. | Update unit test configuration setting.
| Dart | mit | dartist/stats.dart,dartist/stats.dart |
e1917b727e6fc06bbc91cc662f1d2adec0cb14bd | lib/material_select/display_name.dart | lib/material_select/display_name.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/model/ui/display_name.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/model/ui/display_name.dart';
... | Fix uses_bottom_as_dynamic ("fuzzy arrow") errors for material_select. | Fix uses_bottom_as_dynamic ("fuzzy arrow") errors for material_select.
Using dynamic as bottom will become an error in Dart 2.0. https://github.com/dart-lang/sdk/issues/29630
PiperOrigin-RevId: 182020806
| Dart | bsd-3-clause | angulardart/angular_components,angulardart/angular_components,angulardart/angular_components |
1ca557929a5d24d18ce650902073863cc84ccb31 | sky/unit/test/widget/date_picker_test.dart | sky/unit/test/widget/date_picker_test.dart | import 'package:sky/widgets.dart';
import 'package:test/test.dart';
import 'build_utils.dart';
void main() {
test('Can select a day', () {
WidgetTester tester = new WidgetTester();
DateTime currentValue;
Widget builder() {
return new Block([
new DatePicker(
selectedDate: new Da... | import 'package:sky/widgets.dart';
import 'package:test/test.dart';
import 'build_utils.dart';
void main() {
test('Can select a day', () {
WidgetTester tester = new WidgetTester();
DateTime currentValue;
Widget builder() {
return new Block([
new DatePicker(
selectedDate: new Da... | Test year selection for date picker | Test year selection for date picker | Dart | bsd-3-clause | aam/engine,cdotstout/sky_engine,rmacnak-google/engine,mxia/engine,jamesr/flutter_engine,rmacnak-google/engine,iansf/sky_engine,tvolkert/engine,mdakin/engine,rmacnak-google/engine,afandria/sky_engine,devoncarew/engine,devoncarew/engine,tvolkert/engine,jamesr/flutter_engine,flutter/engine,jamesr/sky_engine,chinmaygarde/f... |
9447db144ec796673cd4aecbf0f89fa9c724e652 | tests/corelib/error_stack_trace2_test.dart | tests/corelib/error_stack_trace2_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";
var cyclicStatic = cyclicStatic + 1;
cyclicInitialization() {
... | // 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";
class A {
get foo => cyclicStatic;
}
var a = new A();
var cycl... | Make cyclic error init more complicated to avoid static warnings. | Make cyclic error init more complicated to avoid static warnings.
Review URL: https://codereview.chromium.org//18433003
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@24728 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,darti... |
d7856d19620b8c525e2f6d3425287cfda17caf55 | lib/src/objects/Game.dart | lib/src/objects/Game.dart | part of discord;
/// A game.
class Game extends _BaseObj {
/// The game name.
String name;
/// The game type. 0 if not streamed, 1 if being streamed.
int type;
/// The game URL, if provided.
String url;
Game._new(Client client, Map<String, dynamic> data) : super(client) {
this.name = data['name'];... | part of discord;
/// A game.
class Game {
/// The game name.
String name;
/// The game type. 0 if not streamed, 1 if being streamed.
int type;
/// The game URL, if provided.
String url;
/// Makes a new game object.
Game(this.name, {this.type: 0, this.url});
Game._new(Client client, Map<String, dy... | Support for discord's latest feature | Support for discord's latest feature
| Dart | mit | Hackzzila/nyx,Hackzzila/Discord-Dart,Hackzzila/nyx,Hackzzila/Discord-Dart |
a60b5799fb2e65dd77298060e2174eb6b16f97c1 | lib/streamy.dart | lib/streamy.dart | /// Runtime library used by all generated APIs.
library streamy.runtime;
import 'dart:async';
import 'dart:json';
import 'dart:mirrors';
import 'package:meta/meta.dart';
import 'package:fixnum/fixnum.dart';
import 'package:streamy/collections.dart';
part 'runtime/entity/base.dart';
part 'runtime/entity/empty.dart';
... | /// Runtime library used by all generated APIs.
library streamy.runtime;
import 'dart:async';
import 'dart:json';
import 'package:meta/meta.dart';
import 'package:fixnum/fixnum.dart';
import 'package:streamy/collections.dart';
part 'runtime/entity/base.dart';
part 'runtime/entity/empty.dart';
part 'runtime/entity/ra... | Remove dependency on dart:mirrors from Streamy runtime. | Remove dependency on dart:mirrors from Streamy runtime.
| Dart | apache-2.0 | srawlins/streamy-dart,srawlins/streamy-dart,google/streamy-dart,google/streamy-dart,srawlins/streamy-dart,google/streamy-dart,ronlobo/streamy-dart,ronlobo/streamy-dart,google/streamy-dart,srawlins/streamy-dart,ronlobo/streamy-dart,ronlobo/streamy-dart |
bd532a69901955d245b01083d72b97f67c9c1bb1 | pkg/analyzer/lib/src/generated/utilities_general.dart | pkg/analyzer/lib/src/generated/utilities_general.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.
// This code was auto-generated, is not intended to be edited, and is subject to
// significant change.... | // 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.
// This code was auto-generated, is not intended to be edited, and is subject to
// significant change.... | Correct or pause previous TimeCounters. | Correct or pause previous TimeCounters.
R=brianwilkerson@google.com, jwren@google.com
BUG=
Review URL: https://codereview.chromium.org//225183020
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@34809 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,darti... |
76b615b80d24fcceb87e602626a163e829cb2995 | tests/modular/issue38703/main.dart | tests/modular/issue38703/main.dart | import 'others.dart';
import 'package:expect/expect.dart';
const Map<Key, String> m = {someKey: "PASSED"};
main() {
Expect.equals(m[someKey], "PASSED");
}
| import 'others.dart';
import 'package:expect/expect.dart';
const Map<Key, String> m = {someKey: "PASSED"};
main() {
Expect.equals("PASSED", m[someKey]);
}
| Fix expected and actual ordering | [test] Fix expected and actual ordering
Not a big deal but I was confused for longer than I would like to
admit because the failure message labels the "expected" and "actual"
values as such.
Change-Id: I433d263b873286a54725b7a2a0ba536dd29aae47
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/262664
Reviewed-... | 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 |
1ad3a0719f2b469d5a4e2cb2383b1214ec13391f | test/cli_util_test.dart | test/cli_util_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 'package:cli_util/cli_util.dart';
import 'package:unittest/unittest.dart';
void defineTests() {... | // 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:cli_util/cli_util.dart';
import 'package:unittest/unittest.dart';
void defineTests() {... | Test that getSdkDir() finds the SDK without CLI args. | Test that getSdkDir() finds the SDK without CLI args. | Dart | bsd-3-clause | dart-lang/cli_util |
c66b7fd37d5c5fd73a8d58d1f482a457e5e061ef | moor/test/expressions/in_expression_test.dart | moor/test/expressions/in_expression_test.dart | import 'package:test/test.dart';
import 'package:moor/moor.dart';
import '../data/tables/todos.dart';
import '../data/utils/expect_generated.dart';
void main() {
final db = TodoDb();
const innerExpression =
CustomExpression<String>('name', precedence: Precedence.primary);
group('values', () {
test('i... | import 'package:test/test.dart';
import 'package:moor/moor.dart';
import '../data/tables/todos.dart';
import '../data/utils/expect_generated.dart';
void main() {
final db = TodoDb();
const innerExpression =
CustomExpression<String>('name', precedence: Precedence.primary);
group('values', () {
test('i... | Test that isInQuery writes inner tables | Test that isInQuery writes inner tables
| Dart | mit | simolus3/drift,simolus3/drift,simolus3/moor,simolus3/drift,simolus3/moor,simolus3/moor,simolus3/moor,simolus3/moor,simolus3/drift,simolus3/moor,simolus3/drift,simolus3/moor,simolus3/drift,simolus3/drift |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.