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 |
|---|---|---|---|---|---|---|---|---|---|
cb53591ccbb9b53ba730e64e761f14bfb89975a4 | tests/run/reload_ext_module.pyx | tests/run/reload_ext_module.pyx | # mode: run
# tag: pep489
import reload_ext_module
def test_reload(module):
"""
>>> module = test_reload(reload_ext_module)
>>> module is reload_ext_module # Py_mod_create enforces a singleton.
True
"""
return reload(module)
| Add reload(module) test that checks the current module singleton property. | Add reload(module) test that checks the current module singleton property.
| Cython | apache-2.0 | cython/cython,da-woods/cython,scoder/cython,cython/cython,da-woods/cython,scoder/cython,da-woods/cython,cython/cython,cython/cython,da-woods/cython,scoder/cython,scoder/cython | |
953c4ad31b5ca675d1e0aaa7de73d907db77417c | tests/run/cpp_move.pyx | tests/run/cpp_move.pyx | # mode: run
# tag: cpp, werror, cpp11
from libcpp cimport nullptr
from libcpp.memory cimport shared_ptr, make_shared
from libcpp.utility cimport move
from cython.operator cimport dereference
cdef extern from *:
"""
#include <string>
template<typename T> const char* move_helper(T&) { return "lvalue-ref"; ... | Add tests for std::move wrapper | Add tests for std::move wrapper
| Cython | apache-2.0 | da-woods/cython,scoder/cython,da-woods/cython,cython/cython,scoder/cython,cython/cython,cython/cython,cython/cython,scoder/cython,scoder/cython,da-woods/cython,da-woods/cython | |
49257123602bea7327aad532e6c21276deed3ed6 | tests/run/if_and_or.pyx | tests/run/if_and_or.pyx | # mode: run
# tag: if, and, or
def if_x(x):
"""
>>> if_x(0)
2
>>> if_x(1)
1
"""
if x:
return 1
else:
return 2
def if_not(x):
"""
>>> if_not(0)
1
>>> if_not(1)
2
"""
if not x:
return 1
else:
return 2
def if_and(a, b):
... | Add a dedicated test for and/or operators in a boolean context. | Add a dedicated test for and/or operators in a boolean context.
| Cython | apache-2.0 | scoder/cython,scoder/cython,cython/cython,da-woods/cython,scoder/cython,cython/cython,da-woods/cython,scoder/cython,cython/cython,da-woods/cython,cython/cython,da-woods/cython | |
a2671fa2256c7d4e479e58d4cad2d27bed9bb68c | tests/run/cpython_capi.pyx | tests/run/cpython_capi.pyx | # mode: run
# tag: c-api
from cpython cimport mem
def test_pymalloc():
"""
>>> test_pymalloc()
3
"""
cdef char* m2
cdef char* m = <char*> mem.PyMem_Malloc(20)
assert m
try:
m[0] = 1
m[1] = 2
m[2] = 3
m2 = <char*> mem.PyMem_Realloc(m, 10)
assert ... | Implement test for new PyMem_RawMalloc() functions. | Implement test for new PyMem_RawMalloc() functions.
| Cython | apache-2.0 | cython/cython,scoder/cython,cython/cython,scoder/cython,scoder/cython,da-woods/cython,da-woods/cython,cython/cython,da-woods/cython,scoder/cython,da-woods/cython,cython/cython | |
2232c1e010a14ccf7217bc3e0d7fee1c7b037013 | tests/compile/cpp_class_redefinition.pyx | tests/compile/cpp_class_redefinition.pyx | # tag: cpp
# mode: compile
cdef extern from "templates.h":
cdef cppclass TemplateTest1[T]:
TemplateTest1()
T value
int t
T getValue()
cdef cppclass TemplateTest1[T]
| Add unit test for commit 2de8934 | Add unit test for commit 2de8934
| Cython | apache-2.0 | dahebolangkuan/cython,madjar/cython,marscher/cython,mcanthony/cython,acrispin/cython,cython/cython,fabianrost84/cython,marscher/cython,marscher/cython,marscher/cython,hhsprings/cython,slonik-az/cython,ABcDexter/cython,mrGeen/cython,c-blake/cython,encukou/cython,marscher/cython,madjar/cython,fabianrost84/cython,cython/c... | |
77518b016e65871659be109583f52a88274c4a58 | tests/run/temps_corner1.pyx | tests/run/temps_corner1.pyx | __doc__ = """
>>> B().coeffs_bitsize()
[2]
"""
cdef class A:
def numerator(self):
return self
cdef int bitsize(A a):
return 1
coeffs = [A()]
class B:
def coeffs_bitsize(self):
r = [bitsize(c.numerator())+1 for c in coeffs]
return r
| Add corner case temp (de)allocation test. | Add corner case temp (de)allocation test.
This is as simple as I could get it.
| Cython | apache-2.0 | bhy/cython-haoyu,bhy/cython-haoyu,bhy/cython-haoyu,bhy/cython-haoyu | |
7d9fa9272dd4ad2dcd7fb7409a4ce47291458017 | tests/memoryview/numpy_memoryview_readonly.pyx | tests/memoryview/numpy_memoryview_readonly.pyx | # mode: run
# tag: readonly, const, numpy
import numpy as np
def new_array():
return np.arange(10).astype('float')
ARRAY = new_array()
cdef getmax(double[:] x):
"""Example code, should work with both
ro and rw memoryviews"""
cdef double max_val = -float('inf')
for val in x:
if val > max... | Add dedicated test file for read-only memory views. | Add dedicated test file for read-only memory views.
| Cython | apache-2.0 | scoder/cython,scoder/cython,da-woods/cython,cython/cython,da-woods/cython,da-woods/cython,da-woods/cython,scoder/cython,cython/cython,cython/cython,scoder/cython,cython/cython | |
969915634fdea4cebf9063bae3573ff2799acea7 | pydaspk.pxd | pydaspk.pxd | # -*- coding: utf-8 -*-
################################################################################
#
# PyDAS - A Python wrapper for several differential algebraic system solvers
#
# Copyright (c) 2010-2014 by Joshua W. Allen (jwallen@mit.edu)
# and Connie W. Gao (connieg@mit.edu)
#
# Permission is hereb... | Add PyDASPK wrapper file for DASPK solver required for sensitivity analysis. | Add PyDASPK wrapper file for DASPK solver required for sensitivity analysis.
| Cython | mit | pierrelb/RMG-Py,nyee/RMG-Py,chatelak/RMG-Py,enochd/RMG-Py,enochd/RMG-Py,pierrelb/RMG-Py,nyee/RMG-Py,nickvandewiele/RMG-Py,comocheng/RMG-Py,nickvandewiele/RMG-Py,chatelak/RMG-Py,comocheng/RMG-Py | |
b645c385a8fc6bb55fdee1c99745ef46b3181dfa | tests/run/knuth_man_or_boy_test.pyx | tests/run/knuth_man_or_boy_test.pyx | #
# Cython version of Knuth's "man or boy" test -- "It separates the man
# Algol 60 compilers from the boy Algol 60 compilers." Here's the
# original (from wikipedia):
#
# begin
# real procedure A (k, x1, x2, x3, x4, x5);
# value k; integer k;
# begin
# real procedure B;
# begin k:= k - 1;
# B:=... | Add Knuth's "man or boy" test. | Add Knuth's "man or boy" test.
| Cython | apache-2.0 | encukou/cython,hpfem/cython,bzzzz/cython,roxyboy/cython,achernet/cython,ChristopherHogan/cython,dahebolangkuan/cython,achernet/cython,cython/cython,achernet/cython,dahebolangkuan/cython,encukou/cython,acrispin/cython,fperez/cython,mcanthony/cython,andreasvc/cython,slonik-az/cython,JelleZijlstra/cython,roxyboy/cython,mc... | |
611d41ba37c909b540a5835873f9706aa37be9ed | statsmodels/nonparametric/fast_linbin.pyx | statsmodels/nonparametric/fast_linbin.pyx | #cython profile=True
"""
cython -a fast_linbin.pyx
gcc -shared -pthread -fPIC -fwrapv -O2 -Wall -fno-strict-aliasing -I/usr/include/python2.7 -I/usr/local/lib/python2.7/dist-packages/numpy/core/include/ -o fast_linbin.so fast_linbin.c
"""
cimport cython
cimport numpy as np
import numpy as np
ctypedef np.float64_t DOU... | Add Cython source for fast linbin | ENH: Add Cython source for fast linbin
| Cython | bsd-3-clause | Averroes/statsmodels,phobson/statsmodels,gef756/statsmodels,wdurhamh/statsmodels,huongttlan/statsmodels,alekz112/statsmodels,detrout/debian-statsmodels,cbmoore/statsmodels,YihaoLu/statsmodels,rgommers/statsmodels,nguyentu1602/statsmodels,alekz112/statsmodels,alekz112/statsmodels,phobson/statsmodels,bashtage/statsmodels... | |
83323b2d5196389e7b50add47c9d395443c86a0d | tests/compile/cpp_exceptions_T265.pyx | tests/compile/cpp_exceptions_T265.pyx | cdef void raise_py_error():
pass
cdef extern from "foo.h":
cdef int generic_error() except +
cdef int specified_error() except +MemoryError
cdef int dynamic_error() except +raise_py_error
def test_it():
generic_error()
specified_error()
dynamic_error()
| Test for cpp exception handling | Test for cpp exception handling
| Cython | apache-2.0 | ChristopherHogan/cython,da-woods/cython,rguillebert/CythonCTypesBackend,marscher/cython,JelleZijlstra/cython,encukou/cython,ChristopherHogan/cython,achernet/cython,slonik-az/cython,hhsprings/cython,encukou/cython,bzzzz/cython,fabianrost84/cython,mcanthony/cython,larsmans/cython,hhsprings/cython,da-woods/cython,ABcDexte... | |
db250dece215db6b257e3a7b6184a5497063ea0a | tests/compile/cpp_exceptions_T265.pyx | tests/compile/cpp_exceptions_T265.pyx | cdef void raise_py_error():
pass
cdef extern from "foo.h":
cdef int generic_error() except +
cdef int specified_error() except +MemoryError
cdef int dynamic_error() except +raise_py_error
def test_it():
generic_error()
specified_error()
dynamic_error()
| Test for cpp exception handling | Test for cpp exception handling
| Cython | apache-2.0 | bhy/cython-haoyu,bhy/cython-haoyu,bhy/cython-haoyu,bhy/cython-haoyu | |
de9050401929751af0af2d792ecf5390f4381fc1 | tests/memoryview/extension_type_memoryview.pyx | tests/memoryview/extension_type_memoryview.pyx | # mode: run
# tag: numpy
import numpy as np
cdef class ExtensionType(object):
cdef public int dummy
def __init__(self, n):
self.dummy = n
items = [ExtensionType(1), ExtensionType(2)]
cdef ExtensionType[:] view = np.array(items, dtype=ExtensionType)
def test_getitem():
"""
>>> test_getitem(... | Add test for memoryview of extension type | Add test for memoryview of extension type
A test for a bug fixed in commit 478b939a4c99a77c0863cfd.
v2: add commit link above
v3: # tag: instead of # tags:, drop cpp tag as it means something different
that I originally thought
There was a bug that produced C code where gcc emitted warnings:
extension_type_memor... | Cython | apache-2.0 | ABcDexter/cython,fperez/cython,hhsprings/cython,achernet/cython,madjar/cython,dahebolangkuan/cython,ABcDexter/cython,slonik-az/cython,marscher/cython,mcanthony/cython,fperez/cython,madjar/cython,madjar/cython,da-woods/cython,acrispin/cython,slonik-az/cython,hhsprings/cython,fperez/cython,dahebolangkuan/cython,fabianros... | |
8bfca4bbb9a8460be5a01bb96e605c0d7245ba66 | tests/run/knuth_man_or_boy_test.pyx | tests/run/knuth_man_or_boy_test.pyx | #
# Cython version of Knuth's "man or boy" test -- "It separates the man
# Algol 60 compilers from the boy Algol 60 compilers." Here's the
# original (from wikipedia):
#
# begin
# real procedure A (k, x1, x2, x3, x4, x5);
# value k; integer k;
# begin
# real procedure B;
# begin k:= k - 1;
# B:=... | Add Knuth's "man or boy" test. | Add Knuth's "man or boy" test.
| Cython | apache-2.0 | bhy/cython-haoyu,bhy/cython-haoyu,bhy/cython-haoyu,bhy/cython-haoyu | |
b6d7d623e822657f994809087ad6d9ba7d1d2567 | sky/packages/sky/lib/src/material/icon_button.dart | sky/packages/sky/lib/src/material/icon_button.dart | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:sky' as sky;
import 'package:sky/gestures.dart';
import 'package:sky/widgets.dart';
import 'icon.dart';
class IconButton extends Stateless... | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:sky' as sky;
import 'package:sky/gestures.dart';
import 'package:sky/widgets.dart';
import 'icon.dart';
class IconButton extends Stateless... | Make it fast to draw color icons | Make it fast to draw color icons
Instead of using a ColorFilter, plumb the information down to Icon and thereby
to Image.
| Dart | bsd-3-clause | mdakin/engine,krisgiesing/sky_engine,jamesr/flutter_engine,jamesr/sky_engine,lyceel/engine,Hixie/sky_engine,jamesr/flutter_engine,cdotstout/sky_engine,devoncarew/sky_engine,mdakin/engine,chinmaygarde/flutter_engine,aam/engine,jason-simmons/sky_engine,chinmaygarde/sky_engine,jamesr/flutter_engine,tvolkert/engine,mdakin/... |
a069b7f3d4df1459aaded8b8f95b91429499fcb6 | test/date_time_format_http_request_test.dart | test/date_time_format_http_request_test.dart | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// or details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* Test date formatting and parsing using locale data read via an http request
* to a server.
*/
... | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// or details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/**
* Test date formatting and parsing using locale data read via an http request
* to a server.
*/
... | Fix url location for http test | Fix url location for http test
| Dart | bsd-3-clause | astashov/intl,dart-lang/intl,astashov/intl |
128625ac483520fe2c1f93a6934a9bb0a5ae05cb | sky/sdk/lib/framework/painting/shadows.dart | sky/sdk/lib/framework/painting/shadows.dart | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:sky' as sky;
/// Helper class to build a Paint DrawLooper that adds shadows to the Paint's
/// operation.
class ShadowDrawLooperBuilder {
... | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:sky' as sky;
/// Helper class to build a Paint DrawLooper that adds shadows to the Paint's
/// operation.
class ShadowDrawLooperBuilder {
... | Fix crash in stocks2 app caused by unspecified PaintBits. | Fix crash in stocks2 app caused by unspecified PaintBits.
TBR=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1182613002.
| Dart | bsd-3-clause | jianglu/mojo,afandria/mojo,chinmaygarde/mojo,afandria/mojo,chinmaygarde/mojo,jianglu/mojo,chinmaygarde/mojo,afandria/mojo,afandria/mojo,afandria/mojo,jianglu/mojo,chinmaygarde/mojo,afandria/mojo,jianglu/mojo,chinmaygarde/mojo,afandria/mojo,chinmaygarde/mojo,chinmaygarde/mojo,jianglu/mojo,jianglu/mojo,chinmaygarde/mojo,... |
eeb594c0109ce09e73a9453d58a2c3c81bfda9cc | modules_dart/payload/hello_world/web/index.dart | modules_dart/payload/hello_world/web/index.dart | library hello_world.index;
import "package:angular2/bootstrap.dart" show AngularEntrypoint, bootstrap;
import "package:angular2/angular2.dart"
show Component, Directive, ElementRef, Injectable, Renderer;
@AngularEntrypoint("Hello World Entrypoint")
main() {
bootstrap(HelloCmp);
}
@Injectable()
class GreetingSe... | library hello_world.index;
import "package:angular2/bootstrap.dart" show AngularEntrypoint, bootstrap;
import "package:angular2/angular2.dart"
show Component, Directive, ElementRef, Injectable, Renderer;
@AngularEntrypoint("Hello World Entrypoint")
main() {
bootstrap(HelloCmp);
}
@Injectable()
class GreetingSe... | Fix runtime error in hello_world payload app | fix(dart/payload): Fix runtime error in hello_world payload app
The hello_world app used to measure Dart payload size was broken by a
change in
https://github.com/angular/angular/commit/7ae23adaff2990cf6022af9792c449730d451d1d.
This breakage does not materially affect the size of the generated code,
(before fix: 2988... | Dart | mit | souldreamer/angular,SekibOmazic/angular,alxhub/angular,ghetolay/angular,dejour/angular,sarunint/angular,souldreamer/angular,angular-indonesia/angular,matsko/angular,dejour/angular,shairez/angular,manekinekko/angular,sjtrimble/angular,kwalrath/angular,chajath/angular,gnomeontherun/angular,dydek/angular,diestrin/angular,... |
78fe63ea1ac63e1cdd63c7ef394ce9037daee561 | lib/keys.dart | lib/keys.dart | library keys;
import 'package:ctrl_alt_foo/shortcut.dart';
import 'package:ctrl_alt_foo/key_event_x.dart';
class Keys {
static List subscriptions = [];
static void shortcuts(Map shortcuts) {
shortcuts.forEach((key, callback) {
key.
split(new RegExp(r'\s*,\s*')).
forEach((k)=> new ShortC... | library keys;
import 'package:ctrl_alt_foo/shortcut.dart';
import 'package:ctrl_alt_foo/key_event_x.dart';
class Keys {
static int _lastKeyCode;
static set lastKeyCode(v) { _lastKeyCode = v; }
static get lastKeyCode {
print('Horrible hack. FIXME ASAP!!!!');
return _lastKeyCode;
}
static List subscr... | Support a giant hack to store last keyCode | Support a giant hack to store last keyCode
Until KeyEvent is fixed in Dart
| Dart | mit | eee-c/ctrl-alt-foo,eee-c/ctrl-alt-foo,eee-c/ctrl-alt-foo |
281716c6dfd8ad6194b29d7d3f1bb5136b430993 | runtime/tests/vm/dart/data_uri_spawn_test.dart | runtime/tests/vm/dart/data_uri_spawn_test.dart | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "dart:isolate";
import "package:unittest/unittest.dart";
Uri toDartDataUri(String source) {
r... | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "dart:isolate";
import "package:async_helper/async_helper.dart";
import "package:expect/expect.... | Migrate a VM test off the ancient deprecated unittest package. | Migrate a VM test off the ancient deprecated unittest package.
Change-Id: Id2d408b87bc40af75899fbe0922ba523cbde148c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/136022
Auto-Submit: Bob Nystrom <afede3a9ebedb865bee78398feff6fbe97068f17@google.com>
Reviewed-by: Leaf Petersen <9bef692239b5f624cec8e2cd5249ab1... | 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 |
d908f365e940cc30ddb309fd5ae0a91d8c700c11 | test/symbol_inspector/symbol_inspector_test.dart | test/symbol_inspector/symbol_inspector_test.dart | @TestOn('browser')
library angular2.test.symbol_inspector.symbol_inspector_test;
import 'dart:mirrors';
import 'symbol_inspector.dart';
import 'simple_library.dart';
import 'package:test/test.dart';
main() {
group('getSymbolsFromLibrary', () {
test('should extract symbols', () {
var simpleLib = reflectC... | @TestOn('browser && !js')
library angular2.test.symbol_inspector.symbol_inspector_test;
import 'dart:mirrors';
import 'symbol_inspector.dart';
import 'simple_library.dart';
import 'package:test/test.dart';
main() {
group('getSymbolsFromLibrary', () {
test('should extract symbols', () {
var simpleLib = r... | Mark another test as not working with dart2js | Mark another test as not working with dart2js
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=132199028
| Dart | mit | chalin/angular2,matanlurey/angular,kevmoo/angular,chalin/angular2,chalin/angular2,matanlurey/angular,kevmoo/angular,angulardart/angular,angulardart/angular,angulardart/angular,matanlurey/angular,kevmoo/angular |
dc192658382c20e6b255bbe9fd21a268caa2134b | tests/corelib/string_source_test.dart | tests/corelib/string_source_test.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test that different representations of the same string are all equal.
import "dart:convert";
impor... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test that different representations of the same string are all equal.
import "dart:convert";
impor... | Fix test to not assume that JSON.decode returns dynamic. | Fix test to not assume that JSON.decode returns dynamic.
It currently returns Object.
I have CL to make it do that again, but it's open for discussion.
Review URL: https://codereview.chromium.org//52353002
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@29527 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-l... |
862f46c3e80267c29e3d41447ce9d6d623b5ad44 | lib/mock/mock_window.dart | lib/mock/mock_window.dart | part of angular.mock;
@proxy
class MockWindow extends Mock implements Window {
final history = new MockHistory();
final location = new MockLocation();
final document = new MockDocument();
final onPopStateController = new dart_async.StreamController<PopStateEvent>();
final onHashChangeController = new dart_a... | part of angular.mock;
@proxy
class MockWindow extends Mock implements Window {
final history = new MockHistory();
final location = new MockLocation();
final document = new MockDocument();
final onPopStateController = new dart_async.StreamController<PopStateEvent>();
final onHashChangeController = new dart_a... | Fix unitialized variable in MockWindow. | fix(mock): Fix unitialized variable in MockWindow.
| Dart | mit | trinarytree/angular.dart,giovannicandido/angular.dart,trinarytree/angular.dart,rkirov/angular.dart,giovannicandido/angular.dart,hitesh97/angular.dart,SibuStephen/angular.dart,winstonewert/angular.dart,hitesh97/angular.dart,ronlobo/angular.dart,hitesh97/angular.dart,winstonewert/angular.dart,ronlobo/angular.dart,rkirov/... |
0f0f6deac944b25708720423992d921477fad74e | sky/sdk/lib/widgets/floating_action_button.dart | sky/sdk/lib/widgets/floating_action_button.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 'basic.dart';
import 'button_base.dart';
import 'ink_well.dart';
import 'material.dart';
import 'theme.dart';
// TODO(eseidel): This needs to chan... | // 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 'basic.dart';
import 'button_base.dart';
import 'ink_well.dart';
import 'material.dart';
import 'theme.dart';
// TODO(eseidel): This needs to chan... | Make FloatingActionButton respect the onPressed ctor arg. | Make FloatingActionButton respect the onPressed ctor arg.
BUG=
R=abarth@chromium.org
Review URL: https://codereview.chromium.org/1210923003.
| Dart | bsd-3-clause | jianglu/mojo,chinmaygarde/mojo,afandria/mojo,jianglu/mojo,chinmaygarde/mojo,chinmaygarde/mojo,jianglu/mojo,jianglu/mojo,chinmaygarde/mojo,jianglu/mojo,chinmaygarde/mojo,jianglu/mojo,afandria/mojo,chinmaygarde/mojo,afandria/mojo,jianglu/mojo,afandria/mojo,afandria/mojo,afandria/mojo,afandria/mojo,chinmaygarde/mojo,chinm... |
ee7c72f4daa6d1e2b2f1bb0bfe365096d913fb60 | packages/flutter/lib/src/material/icon_button.dart | packages/flutter/lib/src/material/icon_button.dart | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:sky' as sky;
import 'package:sky/gestures.dart';
import 'package:sky/widgets.dart';
import 'icon.dart';
class IconButton extends Stateless... | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:sky' as sky;
import 'package:sky/gestures.dart';
import 'package:sky/widgets.dart';
import 'icon.dart';
class IconButton extends Stateless... | Make it fast to draw color icons | Make it fast to draw color icons
Instead of using a ColorFilter, plumb the information down to Icon and thereby
to Image.
| Dart | bsd-3-clause | Hixie/flutter,tvolkert/flutter,tvolkert/flutter,cbracken/flutter,tvolkert/flutter,turnidge/flutter,flutter/flutter,cbracken/flutter,tvolkert/flutter,Hixie/flutter,tvolkert/flutter,tvolkert/flutter,cbracken/flutter,jason-simmons/flutter,turnidge/flutter,Hixie/flutter,cbracken/flutter,aghassemi/flutter,cbracken/flutter,f... |
52cb5d5731b6f759b4295f397ec63fdff92b0473 | lib/core/widgets/server_header.dart | lib/core/widgets/server_header.dart | import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import '../../features/activity/presentation/bloc/activity_bloc.dart';
import '../helpers/color_palette_helper.dart';
class ServerHeader extends StatelessWidget {
final String serverName;
final ActivityLoading... | import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import '../../features/activity/presentation/bloc/activity_bloc.dart';
import '../helpers/color_palette_helper.dart';
class ServerHeader extends StatelessWidget {
final String serverName;
final ActivityLoading... | Adjust server header padding to match dropdowns. | Adjust server header padding to match dropdowns.
Implements #45
| Dart | mit | wcomartin/PlexPy-Remote |
a76b7920fe91e3ed46bc84ea651a76148844c2bb | lib/src/bot/dumbbot.dart | lib/src/bot/dumbbot.dart | part of irc.bot;
class DumbBot extends Bot {
Client _client;
List<String> channels = [];
DumbBot(BotConfig config) {
_client = new Client(config);
_registerHandlers();
}
void _registerHandlers() {
whenReady((ReadyEvent event) => channels.forEach((chan) => event.join(chan)));
onMessage((Mes... | part of irc.bot;
class DumbBot extends Bot {
Client _client;
List<String> channels = [];
DumbBot(BotConfig config) {
_client = new Client(config);
_registerHandlers();
}
void _registerHandlers() {
register((ReadyEvent event) => channels.forEach((chan) => event.join(chan)));
register((Messa... | Fix Dumb Bot for the new Event System (it was left out) | Fix Dumb Bot for the new Event System (it was left out)
| Dart | mit | DirectMyFile/irc.dart,DirectMyFile/irc.dart |
f79216b0c209d7e8b05c343641b40edea3b3f118 | test/testtextmarker.dart | test/testtextmarker.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... | 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 tests for remaining span elements. | Add tests for remaining span elements.
| Dart | bsd-3-clause | mswift42/workmantrainer,mswift42/workmantrainer |
04f805ccd2e1f1683f1cd7b1b4134c83ead89f77 | tests/standalone/io/directory_list_pause_test.dart | tests/standalone/io/directory_list_pause_test.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
import "dart:async";
import "dart:io";
import "dart:isolate";
vo... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
import "dart:async";
import "dart:io";
import "dart:isolate";
vo... | Use directories with content, to avoid very large folder and flakyness. | Use directories with content, to avoid very large folder and flakyness.
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//16825003
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@24124 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-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dar... |
8ed0003a7d18fb31b5d7fe54c060f472b90d6f50 | tests/html/xhr_cross_origin_test.dart | tests/html/xhr_cross_origin_test.dart | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#library('XHRCrossOriginTest');
#import('../../lib/unittest/unittest.dart');
#import('../../lib/unittes... | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#library('XHRCrossOriginTest');
#import('../../pkg/unittest/unittest.dart');
#import('../../pkg/unittes... | Fix missed spot for move of unittest from lib to pkg. TBR=rnystrom | Fix missed spot for move of unittest from lib to pkg.
TBR=rnystrom
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@10689 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-... |
6de83eb5956e03946c5f66a6a2acc79250dda42b | lib/bot.dart | lib/bot.dart | /* Bot Abstraction */
library irc.bot;
import 'package:irc/irc.dart';
import 'dart:async';
import 'dart:io';
part 'src/bot/dumbbot.dart';
part "src/bot/commandbot.dart";
part 'src/bot/base.dart';
part 'src/bot/logbot.dart';
| /* Bot Abstraction */
library irc.bot;
import 'package:irc/irc.dart';
import 'dart:async';
import 'dart:io';
part 'src/bot/dumbbot.dart';
part 'src/bot/commandbot.dart';
part 'src/bot/base.dart';
part 'src/bot/logbot.dart';
| Use single quote for part/import statements | Use single quote for part/import statements
| Dart | mit | DirectMyFile/irc.dart,DirectMyFile/irc.dart |
58485d4a6293bdab64531cf8ad1e259f3aeea9b9 | packages/riverpod_cli/lib/src/migrate/version.dart | packages/riverpod_cli/lib/src/migrate/version.dart | import 'package:codemod/codemod.dart';
/// The latest version of riverpod that migrated code should be updated to
// TODO add a test that this version is up-to-date
const latestVersion = '1.0.0-dev.10';
/// Migrates the pubspec to the [latestVersion]
Stream<Patch> versionMigrationSuggestor(FileContext context) async*... | import 'package:codemod/codemod.dart';
/// The latest version of riverpod that migrated code should be updated to
// TODO add a test that this version is up-to-date
const latestVersion = '1.0.0';
/// Migrates the pubspec to the [latestVersion]
Stream<Patch> versionMigrationSuggestor(FileContext context) async* {
fi... | Make migration update to 1.0.0 | Make migration update to 1.0.0
| Dart | mit | rrousselGit/river_pod,rrousselGit/river_pod,rrousselGit/river_pod,rrousselGit/river_pod |
456221df6c3daa59b8462dc704d3f52b442dfba9 | jael_web/example/main.dart | jael_web/example/main.dart | import 'package:jael_web/jael_web.dart';
import 'package:jael_web/elements.dart';
part 'main.g.dart';
@Dsx(template: '''
<div>
<h1>Hello, Jael!</h1>
<i>Current time: {now}</i>
</div>
''')
class Hello extends Component with _HelloJaelTemplate {
DateTime get now => DateTime.now();
}
// Could also have been:
class... | import 'package:jael_web/jael_web.dart';
import 'package:jael_web/elements.dart';
part 'main.g.dart';
@Jael(template: '''
<div>
<h1>Hello, Jael!</h1>
<i>Current time: {{now}}</i>
</div>
''')
class Hello extends Component with _HelloJaelTemplate {
DateTime get now => DateTime.now();
}
// Could also have been:
cl... | Use Jael in example 1 | Use Jael in example 1
| Dart | mit | angel-dart/angel,angel-dart/angel,angel-dart/angel,angel-dart/angel,angel-dart/angel,angel-dart/angel,angel-dart/angel,angel-dart/angel |
443f6b91c58f8de84bb7226d514840b9fbd0ce09 | lib/src/filter/smooth.dart | lib/src/filter/smooth.dart | part of image;
/**
* Apply a smoothing convolution filter to the [src] image.
*
* [w] is the weight of the current pixel being filtered. If it's greater than
* 1.0, it will make the image sharper.
*/
Image smooth(Image src, num w) {
List<double> filter = [
1.0, 1.0, 1.0,
1.0, w, 1.0,
... | part of image;
/**
* Apply a smoothing convolution filter to the [src] image.
*
* [w] is the weight of the current pixel being filtered. If it's greater than
* 1.0, it will make the image sharper.
*/
Image smooth(Image src, num w) {
List<double> filter = [
1.0, 1.0, 1.0,
1.0, w.toDouble(), ... | Fix a Dart 2 runtime failure | Fix a Dart 2 runtime failure
| Dart | mit | brendan-duncan/image,brendan-duncan/image |
0beca9db53997ff91bc98f4c4bee5d60b36b9693 | test/test_projects/hello_world/lib/everything.dart | test/test_projects/hello_world/lib/everything.dart | // Before blank line
// After blank line
/// This is my class.
class MyClass {
/// This is my num field.
num myNumField;
/// This is my num getter.
num get myNumGetter => 1;
/// This is my num setter.
set myNumSetter(num value) {}
/// This is my class constructor.
MyClass();
/// This is my class... | // Before blank line
// After blank line
/// This is my class.
class MyClass {
/// This is my num field.
num myNumField;
/// This is my num getter.
num get myNumGetter => 1;
/// This is my num setter.
set myNumSetter(num value) {}
/// This is my class constructor.
MyClass();
/// This is my class... | Fix static error - Dart 2 symantics | Fix static error - Dart 2 symantics
| Dart | mit | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code |
9acea60501f55cb6401b41b3166343ed9384ecc0 | example/stdin_example.dart | example/stdin_example.dart | // Copyright (c) 2016, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
library markov.example;
import 'dart:convert';
import 'dart:io';
import 'package:markov/markov.dart';
main() async {
print("Provide source text by stdin. Fo... | // Copyright (c) 2016, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
library markov.example;
import 'dart:convert';
import 'dart:io';
import 'package:markov/markov.dart';
main() async {
print("Provide source text by stdin. Fo... | Remove dead commented out code. | Remove dead commented out code.
| Dart | bsd-3-clause | filiph/markov |
7efbf68e7bbceaed4d223c250a6260e68d62a7d9 | tests/language/deferred_closurize_load_library_test.dart | tests/language/deferred_closurize_load_library_test.dart | // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:expect/expect.dart';
import 'package:async_helper/async_helper.dart';
// This library ... | // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:expect/expect.dart';
import 'package:async_helper/async_helper.dart';
import "deferred... | Remove spurious comment in test. | dart2js: Remove spurious comment in test.
R=sigurdm@google.com
Review URL: https://codereview.chromium.org//632633002
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@40925 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-s... |
d7771e0b87c16812cc401648ff13043d881f6896 | src/test/test_projects/flutter_hello_world/lib/broken.dart | src/test/test_projects/flutter_hello_world/lib/broken.dart | import 'package:flutter/material.dart';
void main() => runApp(MyBrokenApp());
class MyBrokenApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(primarySwatch: Colors.blue),
home: MyBrokenHomePage(),
);
... | import 'dart:async';
import 'package:flutter/material.dart';
void main() => runApp(MyBrokenApp());
class MyBrokenApp extends StatefulWidget {
@override
_MyBrokenAppState createState() => _MyBrokenAppState();
}
class _MyBrokenAppState extends State<MyBrokenApp> {
bool shouldBeBroken = false;
@override
voi... | Fix a race in structured errors tests | Fix a race in structured errors tests
| Dart | mit | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code |
8b4b5073ac45c355ac04060918a6b40aa2a2d4a2 | lib/src/PhoneStrategy.dart | lib/src/PhoneStrategy.dart | enum HeadPhoneStrategy { none, pauseOnUnplug, pauseOnUnplugPlayOnPlug }
String describeHeadPhoneStrategy(HeadPhoneStrategy strategy) {
switch (strategy) {
case HeadPhoneStrategy.none:
return "none";
case HeadPhoneStrategy.pauseOnUnplug:
return "pauseOnUnplug";
case HeadPhoneStrategy.pauseOnUn... | enum HeadPhoneStrategy { none, pauseOnUnplug, pauseOnUnplugPlayOnPlug }
String describeHeadPhoneStrategy(HeadPhoneStrategy strategy) {
switch (strategy) {
case HeadPhoneStrategy.none:
return "none";
case HeadPhoneStrategy.pauseOnUnplug:
return "pauseOnUnplug";
case HeadPhoneStrategy.pauseOnUn... | Correct pub.dev static analysis issues | Correct pub.dev static analysis issues
| Dart | apache-2.0 | florent37/Flutter-AssetsAudioPlayer,florent37/Flutter-AssetsAudioPlayer,florent37/Flutter-AssetsAudioPlayer,florent37/Flutter-AssetsAudioPlayer,florent37/Flutter-AssetsAudioPlayer,florent37/Flutter-AssetsAudioPlayer |
c90533d108db4a784ba7ffcf0f845fcf5e3c931e | lib/src/commands/init.dart | lib/src/commands/init.dart | library ddrive.src.commands.init;
import 'package:unscripted/unscripted.dart';
import 'package:googleapis/drive/v2.dart' as drive;
import 'package:path/path.dart' as path;
import '../context.dart' as context;
class InitCommand {
@SubCommand(help: 'Gets the quota information about the current user')
init({ @Opt... | library ddrive.src.commands.init;
import 'package:unscripted/unscripted.dart';
import 'package:googleapis/drive/v2.dart' as drive;
import 'package:path/path.dart' as path;
import '../context.dart' as context;
class InitCommand {
@SubCommand(help: 'Initialize a Google Drive home directory')
init({ @Option(help:... | Refactor and clean up code | Refactor and clean up code
| Dart | bsd-3-clause | andresaraujo/ddrive |
ced0ceddd353c389bc4f305d8b635271ed081707 | pkg/analyzer/test/src/diagnostics/private_optional_parameter_test.dart | pkg/analyzer/test/src/diagnostics/private_optional_parameter_test.dart | // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:analyzer/src/error/codes.dart';
import 'package:test_reflective_loader/test_reflective_l... | // Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:analyzer/src/error/codes.dart';
import 'package:test_reflective_loader/test_reflective_l... | Rename an incorrectly named test class | Rename an incorrectly named test class
Change-Id: I40cdb290cea7beaffa68d5f21f1e340e7086a857
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138603
Reviewed-by: Konstantin Shcheglov <09e4d7516628963212bf4aace2f97603d2b706e4@google.com>
Commit-Queue: Brian Wilkerson <1f7641b6b14c52b9163524ab8d9aabff80176f21@go... | 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 |
9b7b0d463116a9b96f80bf4db9b0fc278045babd | tools/bots/add_fields.dart | tools/bots/add_fields.dart | import 'dart:io';
import 'dart:convert';
/// This script reads the JSON object from the file at args[0] and
/// adds data to it from the environment. Args[1] should be the timestamp
/// (as epoch seconds) of the current Git commit being tested.
void main(List<String> args) {
Map<String, dynamic> map = jsonDecode(Fi... | import 'dart:io';
import 'dart:convert';
/// This script reads the JSON object from the file at args[0] and
/// adds data to it from the environment. Args[1] should be the timestamp
/// (as epoch seconds) of the current Git commit being tested.
/// Args[2] should be the hash of the current Git commit under test.
void... | Add commit hash to results upload on builders | Add commit hash to results upload on builders
Change-Id: I395ea68d7c6f7f45d665279e3dbc0b4f60d3ac1c
Reviewed-on: https://dart-review.googlesource.com/74624
Reviewed-by: Martin Kustermann <a35dd5b79fac84b2bb3b026a16b8becc55af5961@google.com>
Reviewed-by: Jonas Termansen <092ec58085ae5e368bc39d18752740ff81a2d09c@google.c... | Dart | bsd-3-clause | dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dar... |
0652170bb0b55467393c73f01c7b5d71ec77a7cb | lib/src/file_data_reader.dart | lib/src/file_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 from local files, so it can't
* be run in the browser... | // 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 from local files, so it can't
* be run in the browser... | Rename File.readAsText to File.readAsString. There is no Text type in Dart and the methods return Strings. | Rename File.readAsText to File.readAsString. There is no Text type in Dart
and the methods return Strings.
R=sgjesse@google.com
BUG=
Review URL: https://codereview.chromium.org//11412033
git-svn-id: a8f079e7cfc3a289d8496d7b88aabbd5c45a3053@15011 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/intl,astashov/intl,astashov/intl |
63d75418b3e2cf9d3cab8705966c92c55cf89951 | lib/core/widgets/page_body.dart | lib/core/widgets/page_body.dart | import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import '../../features/settings/presentation/bloc/settings_bloc.dart';
import 'settings_not_loaded.dart';
class PageBody extends StatelessWidget {
final Widget child;
const PageBody({
Key? key,
required this.child,
... | import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import '../../features/settings/presentation/bloc/settings_bloc.dart';
import 'settings_not_loaded.dart';
class PageBody extends StatelessWidget {
final Widget child;
final bool loading;
const PageBody({
Key? key,
... | Add optional loading indicator to PageBody. | Add optional loading indicator to PageBody.
| Dart | mit | wcomartin/PlexPy-Remote |
4ede9ca9d28c7fbbbe5604d18d8d264bf57bb693 | test/test_all.dart | test/test_all.dart | library test.event_emitter;
import 'src/event_emitter_test.dart' as event_emitter_test;
import 'package:test/test.dart';
void main () {
group('[Event emitter]', event_emitter_test.main);
}
| library test.event_emitter;
import 'src/event_emitter_test.dart' as event_emitter_test;
import 'src/event_emitter_with_event_objects_test.dart' as event_objects_test;
import 'package:test/test.dart';
void main () {
group('[Event emitter]', event_emitter_test.main);
group('[Event emitter with objects]', event_... | Add event objects' tests to travis builds | Add event objects' tests to travis builds
| Dart | mit | eps90/event-emitter.dart,eps90/event-emitter.dart |
58b21f702886c38f3152cf298365b2ccd7c03b2e | lib/dartrocket.dart | lib/dartrocket.dart | library dartrocket;
import "dart:math";
import "dart:async";
import "dart:html" show Element,querySelector;
import "package:stagexl/stagexl.dart" as StageXL;
part "src/core/game.dart";
part "src/core/statemanager.dart";
part "src/core/state.dart";
part "src/core/background.dart";
part "src/core/text.dart";
part "sr... | library dartrocket;
import "dart:math";
import "dart:async";
import "dart:html" show Element,querySelector;
import "package:stagexl/stagexl.dart" as StageXL;
part "src/core/game.dart";
part "src/core/statemanager.dart";
part "src/core/state.dart";
part "src/core/background.dart";
part "src/core/text.dart";
part "sr... | Add new kind of sprites | Add new kind of sprites
| Dart | bsd-2-clause | StrykerKKD/dartrocket,StrykerKKD/dartrocket |
ce979fba35514ccb0d4d69b61cafa8b1601dbb0b | lib/src/value.dart | lib/src/value.dart | // Copyright 2016 Google Inc. Use of this source code is governed by an
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
import 'value/boolean.dart';
import 'value/identifier.dart';
import 'visitor/interface/value.dart';
import 'visitor/serialize.dart';
export '... | // Copyright 2016 Google Inc. Use of this source code is governed by an
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.
import 'value/boolean.dart';
import 'value/identifier.dart';
import 'visitor/interface/value.dart';
import 'visitor/serialize.dart';
export '... | Remove a TODO that's already been done. | Remove a TODO that's already been done.
| Dart | mit | sass/dart-sass,sass/dart-sass |
7ebb281c5cf5385fcdbafa9857075707f288ac9d | examples/game/lib/sprites.dart | 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 | turnidge/flutter,flutter/flutter,tvolkert/flutter,turnidge/flutter,cbracken/flutter,jason-simmons/flutter,cbracken/flutter,turnidge/flutter,Hixie/flutter,cbracken/flutter,cbracken/flutter,Hixie/flutter,aghassemi/flutter,Hixie/flutter,aghassemi/flutter,flutter/flutter,turnidge/flutter,tvolkert/flutter,Hixie/flutter,flut... |
7d0fe75337855ac881cd21e07ec1cd41b939252b | lib/main.dart | lib/main.dart | //This will be the style guide used for this project
//https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
final ucsdBackgrounndColor = const Color(0xFF182B49);
@override
Widget build(... | //This will be the style guide used for this project
//https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
final ucsdBackgroundColor = const Color(0xFF182B49);
@override
Widget build(... | Add appBar and blue theme | Add appBar and blue theme
| Dart | mit | UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/now-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/now-mobile |
8a18aef75e582a768972858e8bf03943c7e6f5eb | tests/utils/dart2js_test.dart | tests/utils/dart2js_test.dart | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test to ensure that dart2js is free of warnings.
// Test annotation to let the test framework know ... | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test to ensure that dart2js is free of warnings.
// Test annotation to let the test framework know ... | Revert "Use old import syntax." | Revert "Use old import syntax."
TBR=ahe@google.com
Review URL: https://codereview.chromium.org//11537007
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@15974 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/s... |
3eff84985bfeade18384cadb4a9d38bc2b91ec3b | lib/core/widgets/list_tile_group.dart | lib/core/widgets/list_tile_group.dart | import 'package:flutter/material.dart';
import 'heading.dart';
class ListTileGroup extends StatelessWidget {
final String? heading;
final List<Widget> listTiles;
const ListTileGroup({
Key? key,
this.heading,
required this.listTiles,
}) : super(key: key);
@override
Widget build(BuildContext c... | import 'package:flutter/material.dart';
import 'heading.dart';
class ListTileGroup extends StatelessWidget {
final String? heading;
final List<Widget> listTiles;
const ListTileGroup({
Key? key,
this.heading,
required this.listTiles,
}) : super(key: key);
@override
Widget build(BuildContext c... | Use 'if' to determine if Heading should display. | Use 'if' to determine if Heading should display.
| Dart | mit | wcomartin/PlexPy-Remote |
a27a58be630f898d1c57ab17708c23c70b13b9fe | test/reserved_names_test.dart | test/reserved_names_test.dart | #!/usr/bin/env 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 reserved_names_test;
import 'dart:mirrors' as mirrors;
import 'package:un... | #!/usr/bin/env 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 reserved_names_test;
import 'dart:mirrors' as mirrors;
import 'package:un... | Update test to work with mirrors for Dart 1.1 | Update test to work with mirrors for Dart 1.1
TBR=sigmund@google.com
Review URL: https://chromiumcodereview.appspot.com//123153002
| Dart | bsd-3-clause | dart-lang/protobuf,dart-lang/dart-protobuf,taisph/dart-protoc-plugin,dart-lang/protobuf,google/protobuf.dart,google/protobuf.dart,google/protobuf.dart,taisph/dart-protoc-plugin,dart-lang/dart-protobuf,dart-lang/protobuf,dart-lang/dart-protobuf,taisph/dart-protoc-plugin |
80ecd873441badb5da40f5e226381bdc2a8da076 | test/nested_binding_test.dart | test/nested_binding_test.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library polymer.test.nested_binding_test;
import 'dart:async';
import 'dart:html';
import 'package:pol... | // 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.test.nested_binding_test;
import 'dart:async';
import 'dart:html';
import 'package:pol... | Remove comprehension object, but return the list of scopes directly instead. | Remove comprehension object, but return the list of scopes directly instead.
This is to fix https://code.google.com/p/dart/issues/detail?id=18792:
creating a new list of scopes on every invocation to _convertValue was causing us to issue extra notifications, which in turn caused the bug with <select> in that bug.
R=j... | Dart | bsd-3-clause | dam0vm3nt/polymer-dart,ronlobo/polymer-dart,dart-archive/polymer-dart,dam0vm3nt/polymer-dart,jakemac53/polymer-dart,ronlobo/polymer-dart,meflyup/polymer-dart,jakemac53/polymer-dart,dart-archive/polymer-dart,meflyup/polymer-dart |
9d500c0df70b609ac06f4429114542cd559f5828 | web/aquatics.dart | web/aquatics.dart | library aquatics;
import 'dart:html' as html;
import 'dart:math';
import 'dart:async';
import 'package:stagexl/stagexl.dart';
part 'RandomPath.dart';
part 'Aquatic.dart';
void main() {
var canvas = html.query('#stage');
var stage = new Stage('myStage', canvas);
var renderLoop = new RenderLoop();
renderLoop.a... | library aquatics;
import 'dart:html' as html;
import 'dart:math';
import 'dart:async';
import 'package:stagexl/stagexl.dart';
part 'RandomPath.dart';
part 'Aquatic.dart';
void main() {
var canvas = html.query('#stage');
var stage = new Stage('myStage', canvas);
var renderLoop = new RenderLoop();
renderLoop.a... | Improve init parameters to center initial vectors | Improve init parameters to center initial vectors
| Dart | mit | astefanutti/aquadartics |
72663aa875c79ba416d68a45850907f99735154c | 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 '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... | Fix typo also in example | Fix typo also in example
| Dart | mit | petitparser/dart-petitparser |
6a11d9e69ea2068fc310556b1bc3855de04873b4 | lib/src/parser/hostmask.dart | lib/src/parser/hostmask.dart | part of irc.parser;
/**
* Represents a Hostmask that has been parsed
*/
class Hostmask {
static final HOSTMASK_REGEX = new RegExp("[!@]");
/**
* Nickname is Hostmask
*/
String nickname;
/**
* User's Identity
*/
String identity;
/**
* User's Hostname
*/
String hostname;
/**
* ... | part of irc.parser;
/**
* Represents a Hostmask that has been parsed
*/
class Hostmask {
static final HOSTMASK_REGEX = new RegExp("[!@]");
/**
* User's Nickname
*/
String nickname;
/**
* User's Identity
*/
String identity;
/**
* User's Hostname
*/
String hostname;
/**
* Creat... | Fix Typo in [Hostmask] documentation | Fix Typo in [Hostmask] documentation
| Dart | mit | DirectMyFile/irc.dart,DirectMyFile/irc.dart |
44a0af042c5de9f9a304ca384973c35d47e0a6bb | examples/raw/shadowed_box.dart | examples/raw/shadowed_box.dart | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:sky';
import 'package:sky/framework/app.dart';
import 'package:sky/framework/rendering/box.dart';
import 'package:sky/framework/rendering/fle... | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:sky';
import 'package:sky/framework/app.dart';
import 'package:sky/framework/rendering/box.dart';
import 'package:sky/framework/rendering/fle... | Add a proper material shadow the popup menu | Add a proper material shadow the popup menu
R=eseidel@chromium.org
Review URL: https://codereview.chromium.org/1172723002.
| Dart | bsd-3-clause | Hixie/flutter,tvolkert/flutter,cbracken/flutter,Hixie/flutter,aghassemi/flutter,turnidge/flutter,flutter/flutter,cbracken/flutter,tvolkert/flutter,turnidge/flutter,tvolkert/flutter,aghassemi/flutter,Hixie/flutter,cbracken/flutter,cbracken/flutter,Hixie/flutter,cbracken/flutter,Hixie/flutter,flutter/flutter,flutter/flut... |
0ec7fcca6b85ecfb4c8fb5daf5e2b85d5b1547c8 | lib/core/pages/status_page.dart | lib/core/pages/status_page.dart | import 'package:flutter/material.dart';
import 'package:quiver/strings.dart';
class StatusPage extends StatelessWidget {
final String message;
final String? suggestion;
final Widget? action;
final bool scrollable;
const StatusPage({
Key? key,
required this.message,
this.suggestion,
this.acti... | import 'package:flutter/material.dart';
import 'package:gap/gap.dart';
import 'package:quiver/strings.dart';
class StatusPage extends StatelessWidget {
final String message;
final String? suggestion;
final Widget? action;
final bool scrollable;
const StatusPage({
Key? key,
required this.message,
... | Update StatusPage to use Gap instead of SizedBox. | Update StatusPage to use Gap instead of SizedBox.
| Dart | mit | wcomartin/PlexPy-Remote |
d4fb874864d513485493a491eb92bb074fc07f61 | bin/tictactoe_api_messages.dart | bin/tictactoe_api_messages.dart | import 'package:endpoints/endpoints.dart';
import 'package:cloud_datastore/cloud_datastore.dart';
@ModelMetadata(const ScoreDesc())
class Score extends Model {
@ApiProperty(description: 'Datastore ID of the Score', variant: 'uint64')
int id;
@ApiProperty(description: 'Result of the game.')
String outcome;
... | import 'package:endpoints/endpoints.dart';
import 'package:cloud_datastore/cloud_datastore.dart';
@ModelMetadata(const ScoreDesc())
class Score extends Model {
@ApiProperty(description: 'Datastore ID of the Score', variant: 'uint64')
int id;
@ApiProperty(description: 'Result of the game.')
String outcome;
... | Add enum property for order | Add enum property for order
| Dart | apache-2.0 | Scarygami/appengine-vm-endpoints-tictactoe-dart,Scarygami/appengine-vm-endpoints-tictactoe-dart |
6453d338ba7f58bd1ae8c7d3d724a9eec527acd2 | web_app/trips_history/web/trips_ui.dart | web_app/trips_history/web/trips_ui.dart | import 'package:angular/angular.dart';
import 'package:angular/application_factory.dart';
import 'trips_history.dart';
@Controller(
selector: '[trips-history]',
publishAs: 'ctrl')
class TripsHistoryController {
List<Person> people = new List();
String personName;
String personColour;
void addPerson() ... | import 'package:angular/angular.dart';
import 'package:angular/application_factory.dart';
import 'trips_history.dart';
@Controller(
selector: '[trips-history]',
publishAs: 'ctrl')
class TripsHistoryController {
List<Person> people = new List();
String personName;
String personColour;
TripsHistoryContr... | Add some temporary example people | Add some temporary example people
| Dart | mit | brettcannon/trips-history,brettcannon/trips-history |
535cd251935a763a85f8b84669268fad39f123ef | lib/main.dart | lib/main.dart | import 'package:flutter/material.dart';
import './book-list.dart';
void main() => runApp(BuddyBible());
class BuddyBible extends StatelessWidget{
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Buddy Bible',
home: Home()
);
... | import 'package:flutter/material.dart';
import './book-list.dart';
void main() => runApp(BuddyBible());
class BuddyBible extends StatelessWidget{
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Buddy Bible',
home: Home()
);
... | Remove app bar and wrapper on book list page | Remove app bar and wrapper on book list page
| Dart | mit | jesstrux/buddybible,jesstrux/buddybible |
a1a7f30d0168bc9181f0aa300cbc9bfd7694572a | lib/dom/src/native_DOMWrapperBase.dart | lib/dom/src/native_DOMWrapperBase.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 DOMWrapperBase extends NativeFieldWrapperClass2 implements DOMType {
var dartObjectLocalStorage... | // 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 DOMWrapperBase extends NativeFieldWrapperClass1 implements DOMType {
var dartObjectLocalStorage... | Adjust native field wrapper field count. | Adjust native field wrapper field count.
See corresponding change in WebKit: http://codereview.chromium.org/9837116/.
R=antonm@chromium.org
Review URL: https://chromiumcodereview.appspot.com//9968004
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@6034 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,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,da... |
b80ae76f3d2dbf87e9062dd40de9f3a926f519a0 | lib/src/reassemble_handler.dart | lib/src/reassemble_handler.dart | import 'package:flutter/foundation.dart' show BindingBase;
import 'package:flutter/widgets.dart' show Element;
/// If you need your provider to be notified when 'Hot Reload' occurs,
/// use this class
///
/// '''dart
/// class MyChangeNotifier extends ChangeNotifier with ReassembleHandler {}
/// '''
abstract class Rea... | import 'package:flutter/foundation.dart' show BindingBase;
import 'package:flutter/widgets.dart' show Element;
/// If you need your provider to be notified when 'Hot Reload' occurs,
/// use this class
///
/// ```dart
/// class MyChangeNotifier extends ChangeNotifier with ReassembleHandler {}
/// ```
abstract class Rea... | Fix ReassembleHandler example in class docs | Fix ReassembleHandler example in class docs | Dart | mit | rrousselGit/provider,rrousselGit/provider |
b76e4101c740c8f258e278ecd6796fe3c8bea3a8 | lib/app/views/device_button.dart | lib/app/views/device_button.dart | import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../state.dart';
import 'device_avatar.dart';
import 'device_picker_dialog.dart';
class DeviceButton extends ConsumerWidget {
final double radius;
const DeviceButton({super.key, this.radius = 16});
@override... | import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../state.dart';
import 'device_avatar.dart';
import 'device_picker_dialog.dart';
class DeviceButton extends ConsumerWidget {
final double radius;
const DeviceButton({super.key, this.radius = 16});
@override... | Use USB icon for no device when in USB mode. | Use USB icon for no device when in USB mode.
| Dart | apache-2.0 | Yubico/yubioath-desktop,Yubico/yubioath-desktop,Yubico/yubioath-desktop,Yubico/yubioath-desktop,Yubico/yubioath-desktop |
7e2452994e7c57f13b416c9be5c738dbedd984e2 | lib/cleaners/package_cleaner.dart | lib/cleaners/package_cleaner.dart | library dartdoc_runner.cleaners.package_cleaner;
import 'dart:async';
import 'dart:io';
import 'package:dartdoc_runner/config.dart';
import 'package:dartdoc_runner/package.dart';
import 'package:logging/logging.dart';
var _logger = new Logger("package_cleaner");
class PackageCleaner {
final Config config;
Packa... | library dartdoc_runner.cleaners.package_cleaner;
import 'dart:async';
import 'dart:io';
import 'package:dartdoc_runner/config.dart';
import 'package:dartdoc_runner/package.dart';
import 'package:logging/logging.dart';
import 'package:yaml/yaml.dart' as yaml;
import 'package:dartdoc_runner/version.dart';
var _logger ... | Make sure we don't delete the packages dartdocs-generator depends on | Make sure we don't delete the packages dartdocs-generator depends on
| Dart | bsd-3-clause | astashov/dartdocorg,astashov/dartdoc-generator,astashov/dartdocorg,astashov/dartdoc-generator,astashov/dartdocs.org,astashov/dartdocorg,astashov/dartdocs.org,astashov/dartdoc-generator,astashov/dartdocs.org |
2fe4b05e6dcd75ab4728c3cedc7b3c55e4f578cf | examples/raw/spinning_image.dart | examples/raw/spinning_image.dart | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:sky';
double timeBase = null;
Image image;
void beginFrame(double timeStamp) {
if (timeBase == null) timeBase = timeStamp;
double delt... | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:sky';
double timeBase = null;
Image image = null;
void beginFrame(double timeStamp) {
if (timeBase == null) timeBase = timeStamp;
doub... | Refactor image handling in Sky to expose the loader and image as separate classes to Dart code. This makes it possible to avoid unnecessary paints, by only painting once when the image has loaded. Now that we've separated the loader and image classes, we can implement an image cache in Dart. | Refactor image handling in Sky to expose the loader and image as separate classes to Dart code. This makes it possible to avoid unnecessary paints, by only painting once when the image has loaded. Now that we've separated the loader and image classes, we can implement an image cache in Dart.
R=abarth@chromium.org, aba... | Dart | bsd-3-clause | cbracken/flutter,flutter/flutter,turnidge/flutter,cbracken/flutter,tvolkert/flutter,aghassemi/flutter,Hixie/flutter,jason-simmons/flutter,Hixie/flutter,aghassemi/flutter,jason-simmons/flutter,Hixie/flutter,tvolkert/flutter,tvolkert/flutter,cbracken/flutter,flutter/flutter,Hixie/flutter,jason-simmons/flutter,turnidge/fl... |
c914ed59322d3474b74aad05d4d4ac39a12de273 | lib/src/extension_set.dart | lib/src/extension_set.dart | import 'block_parser.dart';
import 'inline_parser.dart';
class ExtensionSet {
static ExtensionSet none = new ExtensionSet._([], []);
static ExtensionSet commonMark = new ExtensionSet._(
[const FencedCodeBlockSyntax()], [new InlineHtmlSyntax()]);
static ExtensionSet gitHub = new ExtensionSet._(
[con... | import 'block_parser.dart';
import 'inline_parser.dart';
class ExtensionSet {
static final ExtensionSet none = new ExtensionSet._([], []);
static final ExtensionSet commonMark = new ExtensionSet._(
[const FencedCodeBlockSyntax()], [new InlineHtmlSyntax()]);
static final ExtensionSet gitHub = new Extensio... | Make ExtensionSet static fields final | Make ExtensionSet static fields final
| Dart | bsd-3-clause | dart-lang/markdown,srawlins/dart-markdown,tomyeh/markd,dart-lang/markdown,tomyeh/markd,dpeek/dart-markdown,dpeek/dart-markdown,dart-lang/markdown,tomyeh/markd,srawlins/dart-markdown,srawlins/dart-markdown |
363b556e8cba7df0f4e1992e03dfbb1a7d312198 | lib/main/error_controller.dart | lib/main/error_controller.dart | part of main;
/// This controller is completely arbitrary. You can choose to set up
/// your environment however you like!
class ErrorController {
Future<Response> general(
Object exception,
StackTrace stack) {
print('<red>Uncaught error!\n$exception</red>');
return _errorTemplate(exception, stac... | part of main;
/// This controller is completely arbitrary. You can choose to set up
/// your environment however you like!
class ErrorController {
// lib/templates/error.chalk.html
static const errorTemplate = 'error';
Future<Response> general(
Object exception,
StackTrace stack) {
print('<red>U... | Set a constant for the error template to use in ErrorController | Set a constant for the error template to use in ErrorController
| Dart | mit | dart-bridge/bridge,dart-bridge/bridge |
6fb2b0a4a3500e7f8917649a99a3b881401406e4 | bin/async_await.dart | bin/async_await.dart | #!/usr/bin/env dart
import 'dart:io';
import 'package:analyzer/src/generated/error.dart';
import 'package:analyzer/src/generated/parser.dart';
import 'package:analyzer/src/generated/scanner.dart';
import 'package:async_await/src/error_collector.dart';
import 'package:async_await/src/xform.dart';
main(List<String> a... | #!/usr/bin/env dart
import 'dart:io';
import 'package:analyzer/src/generated/error.dart';
import 'package:analyzer/src/generated/parser.dart';
import 'package:analyzer/src/generated/scanner.dart';
import 'package:async_await/src/error_collector.dart';
import 'package:async_await/src/xform.dart';
main(List<String> a... | Fix typo in class name. | Fix typo in class name.
| Dart | bsd-3-clause | algobardo/async_await_transformer_deprecated,googlearchive/async_await_transformer_deprecated |
51bc5af5f8d878e70df42c95ec9bbff9d0816f79 | lib/dialog/generate_component.dart | lib/dialog/generate_component.dart | import 'package:angular2/core.dart';
import 'package:np8080/document/textdocument.dart';
import 'package:np8080/services/textprocessingservice.dart';
@Component(
selector: 'generate-dialog',
templateUrl: 'generate_component.html',
providers: const [TextProcessingService])
class GenerateDialogComponent {
... | import 'package:angular2/core.dart';
import 'package:np8080/document/textdocument.dart';
import 'package:np8080/services/textprocessingservice.dart';
@Component(
selector: 'generate-dialog',
templateUrl: 'generate_component.html',
providers: const [TextProcessingService])
class GenerateDialogComponent {
... | Reset dialog contents and save changes. | Reset dialog contents and save changes.
| Dart | bsd-3-clause | daftspaniel/np8080,daftspaniel/np8080 |
4f924e3fca7e31fec9acb7a37398ff0e04ebfa24 | tests/html/native_gc_test.dart | tests/html/native_gc_test.dart | #library('NativeGCTest');
#import('../../lib/unittest/unittest.dart');
#import('../../lib/unittest/html_config.dart');
#import('dart:html');
main() {
useHtmlConfiguration();
test('EventListener', () {
final int N = 1000000;
final int M = 1000;
var div;
for (int i = 0; i < M; ++i) {
... | #library('NativeGCTest');
#import('../../lib/unittest/unittest.dart');
#import('../../lib/unittest/html_config.dart');
#import('dart:html');
main() {
useHtmlConfiguration();
test('EventListener', () {
final int N = 1000000;
final int M = 1000;
var div;
for (int i = 0; i < M; ++i) {
... | Add test for garbage collected window event listeners issue. | Add test for garbage collected window event listeners issue.
R=antonm@google.com
Review URL: https://chromiumcodereview.appspot.com//10689120
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@9497 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dar... |
7ee106d428553c6b8cc183ffcaa032e3c2577f4c | lib/src/coveralls_endpoint.dart | lib/src/coveralls_endpoint.dart | library dart_coveralls.coveralls_endpoint;
import 'dart:async' show Future;
import 'dart:convert' show JSON;
import 'package:http/http.dart' show MultipartRequest, MultipartFile, Response;
import 'coveralls_entities.dart';
import 'log.dart';
class CoverallsEndpoint {
static const String COVERALLS_ADDRESS = "https... | library dart_coveralls.coveralls_endpoint;
import 'dart:async' show Future;
import 'dart:convert' show JSON;
import 'package:http/http.dart' show MultipartRequest, MultipartFile, Response;
import 'coveralls_entities.dart';
import 'log.dart';
class CoverallsEndpoint {
static const String COVERALLS_ADDRESS = "https... | Stop logging of HTML if status!=200 | Stop logging of HTML if status!=200
| Dart | mit | block-forest/dart-coveralls,duse-io/dart-coveralls,block-forest/dart-coveralls,duse-io/dart-coveralls |
87538ffd7eca3405d13e46dcf3a20dcdcde9761e | pkg/kernel/lib/target/flutter.dart | pkg/kernel/lib/target/flutter.dart | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library kernel.target.flutter;
import 'targets.dart';
import 'vm.dart' show VmTarget;
class FlutterTar... | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library kernel.target.flutter;
import 'targets.dart';
import 'vm.dart' show VmTarget;
class FlutterTar... | Add vmservice_sdk to target as it is needed in platform.dill to be included into app dill file for Flutter release gen_snapshot | Add vmservice_sdk to target as it is needed in platform.dill to be included into app dill file for Flutter release gen_snapshot
Bug:
Change-Id: I699768ef6f3a315d497bc65c7d713d0c538313ca
Reviewed-on: https://dart-review.googlesource.com/12783
Reviewed-by: Zach Anderson <9f8b31e960a68dade71618f1ff6da6e23a1edfc9@google.c... | Dart | bsd-3-clause | dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,da... |
f937241ac6f493c8e5474f9e564a31f7772ef8c9 | Chapter_07/web/initializer-prod.dart | Chapter_07/web/initializer-prod.dart | library app_initializer;
import 'package:angular/angular.dart';
import 'package:di/di.dart';
import 'package:di/static_injector.dart';
// Generated Files!
import 'di_factories_gen.dart' as di_factories_gen;
import 'ng_parser_gen.dart' as ng_parser_gen;
createInjector(List<Module> modules) {
di_factories_gen.main()... | library app_initializer;
import 'package:angular/angular.dart';
import 'package:di/di.dart';
import 'package:di/static_injector.dart';
// Generated Files!
import 'di_factories_gen.dart' as di_factories_gen;
import 'ng_parser_gen.dart' as ng_parser_gen;
createInjector(List<Module> modules) {
di_factories_gen.main()... | Update to the latest StaticParser | fix(static-injector): Update to the latest StaticParser
| Dart | mit | dart-archive/angular.dart.tutorial,dart-archive/angular.dart.tutorial,vicb/angular.dart.tutorial,dart-archive/angular.dart.tutorial,vicb/angular.dart.tutorial |
524368d32af0bef892a7e4fa4046a16951ff32d0 | lib/app/shortcuts.dart | lib/app/shortcuts.dart | import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
class CopyIntent extends Intent {
const CopyIntent();
}
class SearchIntent extends Intent {
const SearchIntent();
}
final globalShortcuts = {
LogicalKeySet(LogicalKeyboardKey.control, LogicalKeyboardKey.keyC):
const CopyInten... | import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
class CopyIntent extends Intent {
const CopyIntent();
}
class SearchIntent extends Intent {
const SearchIntent();
}
final ctrlOrCmd =
Platform.isMacOS ? LogicalKeyboardKey.meta : LogicalKeyboardKey.control;
fi... | Use CMD on Mac, Ctrl on rest. | Use CMD on Mac, Ctrl on rest.
| Dart | apache-2.0 | Yubico/yubioath-desktop,Yubico/yubioath-desktop,Yubico/yubioath-desktop,Yubico/yubioath-desktop,Yubico/yubioath-desktop |
f440f0b2b75c538fdbc15c9c57ff91ff646438a5 | lib/src/image_map.dart | lib/src/image_map.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.
part of flutter_sprites;
class ImageMap {
ImageMap(AssetBundle bundle) : _bundle = bundle;
final AssetBundle _bundle;
final Map<String, ui.Image> ... | // 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.
part of flutter_sprites;
class ImageMap {
ImageMap(AssetBundle bundle) : _bundle = bundle;
final AssetBundle _bundle;
final Map<String, ui.Image> ... | Update flutter_sprites now that ImageResource.first returns an ImageInfo | Update flutter_sprites now that ImageResource.first returns an ImageInfo
| Dart | bsd-3-clause | spritewidget/spritewidget,spritewidget/spritewidget,spritewidget/spritewidget |
381e451ba00f7e1ab14078d4f8bbbc8737385712 | lib/src/span_exception.dart | lib/src/span_exception.dart | // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library source_span.span_exception;
import 'span.dart';
/// A class for exceptions that have source s... | // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library source_span.span_exception;
import 'span.dart';
/// A class for exceptions that have source s... | Change "FormatException.position" to be named "offset". | Change "FormatException.position" to be named "offset".
Address comments on SpanFormatException changes.
R=nweiz@google.com
Committed: https://code.google.com/p/dart/source/detail?r=38373
Committed: https://code.google.com/p/dart/source/detail?r=38378
Review URL: https://codereview.chromium.org//396603003
git-svn... | Dart | bsd-3-clause | dart-lang/source_span |
63f2c2594f0abe13bf8c123475529e390dae99a8 | examples/stocks2/lib/stock_menu.dart | examples/stocks2/lib/stock_menu.dart | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:sky/widgets/checkbox.dart';
import 'package:sky/widgets/toggleable.dart';
import 'package:sky/widgets/popup_menu.dart';
import 'package:sk... | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:sky/widgets/checkbox.dart';
import 'package:sky/widgets/popup_menu.dart';
import 'package:sky/widgets/basic.dart';
import 'package:sky/fra... | Remove unneeded import and fix analyzer warnings | Remove unneeded import and fix analyzer warnings
R=ianh@google.com, hixie
Review URL: https://codereview.chromium.org/1190573002.
| Dart | bsd-3-clause | jason-simmons/flutter,aghassemi/flutter,tvolkert/flutter,tvolkert/flutter,Hixie/flutter,flutter/flutter,cbracken/flutter,aghassemi/flutter,jason-simmons/flutter,cbracken/flutter,tvolkert/flutter,cbracken/flutter,cbracken/flutter,Hixie/flutter,tvolkert/flutter,Hixie/flutter,turnidge/flutter,Hixie/flutter,cbracken/flutte... |
9371fd9fc8057201a6862e4a2726c8fffcea3afa | tests/language/vm/symbols_test.dart | tests/language/vm/symbols_test.dart | // Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:expect/expect.dart';
void main() {
print(const Symbol(null)); ... | // Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:expect/expect.dart';
void main() {
print(const Symbol(null)); //# 01: compile-time e... | Adjust vm test about the Symbol constructor | Adjust vm test about the Symbol constructor
The `Symbol` constructor has been changed to accept any string as the
actual argument (it used to require strings similar to the ones that we
can use with `#` to create a symbol literal). This CL change a vm test
such that it has the updated expectations.
Cf. https://github... | 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 |
300b223a64a63a26796d56331fc14292f1958ae3 | tests/language/private4_test.dart | tests/language/private4_test.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test that inlining in the compiler works with privacy.
import 'other_library.dart';
main() {
Exp... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test that inlining in the compiler works with privacy.
library private4_test;
import 'other_librar... | Add a library tag to allow running on DRT. | Add a library tag to allow running on DRT.
R=ngeoffray@google.com
Review URL: https://codereview.chromium.org//11859031
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@17280 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/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-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk... |
88ed56307634cf9e056f39d835d04757fce574d0 | lib/src/parser/base.dart | lib/src/parser/base.dart | part of irc.parser;
/**
* Base class for IRC Parsers
*
* ```
* var parser = new SomeIrcParser();
* var message = parser.convert(":some.server PRIVMSG #SomeChannel :Some Message");
* // Use Message Instance
* ```
*/
abstract class IrcParser extends Converter<String, Message> {
/**
* Creates the default Ir... | part of irc.parser;
/**
* Base class for IRC Parsers
*
* var parser = new SomeIrcParser();
* var message = parser.convert(":some.server PRIVMSG #SomeChannel :Some Message");
* // Use Message Instance
*/
abstract class IrcParser extends Converter<String, Message> {
/**
* Creates the default I... | Tweak Documentation to use spaces for the code highlighting | Tweak Documentation to use spaces for the code highlighting
| Dart | mit | DirectMyFile/irc.dart,DirectMyFile/irc.dart |
3d8d1240b9884ee9e7c0dbce0571fccb0a8e7576 | lib/core/api/tautulli_api/get_user.dart | lib/core/api/tautulli_api/get_user.dart | import 'package:meta/meta.dart';
import '../../../features/settings/presentation/bloc/settings_bloc.dart';
import 'connection_handler.dart';
abstract class GetUser {
Future<Map<String, dynamic>> call({
@required String tautulliId,
@required int userId,
@required SettingsBloc settingsBloc,
});
}
class... | import 'package:meta/meta.dart';
import '../../../features/settings/presentation/bloc/settings_bloc.dart';
import 'connection_handler.dart';
abstract class GetUser {
Future<Map<String, dynamic>> call({
@required String tautulliId,
@required int userId,
@required SettingsBloc settingsBloc,
});
}
class... | Set include last seen to true for get user. | Set include last seen to true for get user.
| Dart | mit | wcomartin/PlexPy-Remote |
485cb5a47383eec8dd092d5da99f0d98a76b6289 | lib/src/bot/base.dart | lib/src/bot/base.dart | part of irc.bot;
/**
* Base Class for Bots
*/
abstract class Bot {
Client client();
void connect() => client().connect();
void disconnect() => client().disconnect();
Channel channel(String name) => client().channel(name);
void register(handler) => client().register(handler);
void join(String channel... | part of irc.bot;
/**
* Base Class for Bots
*/
abstract class Bot {
Client client();
void connect() => client().connect();
void disconnect() => client().disconnect();
Channel channel(String name) => client().channel(name);
bool register(handler) => client().register(handler);
void join(String channel... | Fix Return Type for Bot.register(handler) | Fix Return Type for Bot.register(handler)
| Dart | mit | DirectMyFile/irc.dart,DirectMyFile/irc.dart |
9a6a69bcd1996b7eaf9117ffb8c65b269487b682 | lib/src/transform_logger.dart | lib/src/transform_logger.dart | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library barback.transform_logger;
import 'package:source_maps/span.dart';
/// Object used to report w... | // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library barback.transform_logger;
import 'package:source_maps/span.dart';
/// Object used to report w... | Support dart2js in pub serve. | Support dart2js in pub serve.
R=nweiz@google.com
Review URL: https://codereview.chromium.org//24886002
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@28231 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dart-archive/barback,dart-lang/barback,Aetet/barback,Aetet/barback,dart-lang/barback,dart-archive/barback |
e270ba41211e047a823c07762bfc9884b94a820a | lib/core/helpers/ip_address_helper.dart | lib/core/helpers/ip_address_helper.dart | import 'dart:io';
class IpAddressHelper {
/// Returns true if IP address is not a loopback, link local, or private IP
///
/// Throws a generic exception if [ipAddress] cannot be parsed
static bool isPublic(String ipAddress) {
final parsedAddress = InternetAddress.tryParse(ipAddress);
if (parsedAddress... | import 'dart:io';
class IpAddressHelper {
/// Returns true if IP address is not a loopback, link local, or private IP
///
/// Throws a generic exception if [ipAddress] cannot be parsed
static bool isPublic(String ipAddress) {
final parsedAddress = InternetAddress.tryParse(ipAddress);
if (parsedAddress... | Add helper function to parse IP from URL string. | Add helper function to parse IP from URL string.
| Dart | mit | wcomartin/PlexPy-Remote |
fc693153d1c79e8303abe05697a1d8458b0fef62 | 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... | Fix new test in checked mode | Fix new test in checked mode
It's also analyzer clean now.
R=vegorov@google.com
BUG=
Review-Url: https://codereview.chromium.org/2909883002 .
| Dart | bsd-3-clause | dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk... |
7584aafb4732deb0428e07376719ab4140c0cd84 | tests/isolate/isolate2_negative_test.dart | tests/isolate/isolate2_negative_test.dart | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program for testing that exceptions in other isolates bring down
// the program.
#library... | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program for testing that exceptions in other isolates bring down
// the program.
#library... | Fix negative test by not complicating it by using the unit test framework. | Fix negative test by not complicating it by using the unit test framework.
R=kasperl@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10828145
git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@10215 260f80e4-7a28-3924-810f-c04153c831b5
| Dart | bsd-3-clause | dartino/dart-sdk,dart-archive/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,dart-lang/sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lan... |
bca3e3c73883dd3fdeb1f86c9bece0aba921d09e | test/src/window_test.dart | test/src/window_test.dart | library webdriver_test.window;
import 'package:unittest/unittest.dart';
import 'package:webdriver/webdriver.dart';
void main() {
group('Window', () {
WebDriver driver;
setUp(() async {
driver = await WebDriver.createDriver(
desiredCapabilities: Capabilities.chrome);
});
tearDown(()... | library webdriver_test.window;
import 'package:unittest/unittest.dart';
import 'package:webdriver/webdriver.dart';
void main() {
group('Window', () {
WebDriver driver;
setUp(() async {
driver = await WebDriver.createDriver(
desiredCapabilities: Capabilities.chrome);
});
tearDown(()... | Add comment to maximize test to warn that it may fail in some cases. | Add comment to maximize test to warn that it may fail in some cases.
| Dart | apache-2.0 | google/webdriver.dart,staats-google/webdriver.dart,DrMarcII/webdriver.dart,staats-google/webdriver.dart,bwu-dart-contributing/webdriver.dart,DrMarcII/webdriver.dart,staats-google/webdriver.dart,DrMarcII/webdriver.dart,DrMarcII/webdriver.dart,google/webdriver.dart,bwu-dart-contributing/webdriver.dart,staats-google/webdr... |
b4d9486da10ceb4f5d5008028b1b1743469bbc4c | 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' as 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... | Fix error. import dart:json as json. | Fix error. import dart:json as json. | Dart | bsd-2-clause | distributed-dart/distributed_dart,distributed-dart/distributed_dart |
e151bd5bd669b8c7acbe3e2c6e6bfc7309692c29 | lib/ui/views/map/map.dart | lib/ui/views/map/map.dart | import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
class Map extends StatelessWidget {
GoogleMapController mapController;
final LatLng _center = const LatLng(45.521563, -122.677433);
void _onMapCreated(GoogleMapController controller) {
mapController = contr... | import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
class Map extends StatelessWidget {
GoogleMapController mapController;
final LatLng _center = const LatLng(32.8801,-117.2340);
void _onMapCreated(GoogleMapController controller) {
mapController = controller... | Set default coordinates to ucsd | Set default coordinates to ucsd
| Dart | mit | UCSD/now-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/now-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/campus-mobile |
a5c1421d4aa99a45abdf2a282ee468a74ca89290 | client/admin-dart/admin-dart/web/main.dart | client/admin-dart/admin-dart/web/main.dart | library debiki_admin;
import 'package:angular/angular.dart';
import 'package:perf_api/perf_api.dart';
import 'package:debiki_admin/debiki_admin_controller.dart';
import 'package:debiki_admin/component/view_topics_component.dart';
import 'package:debiki_admin/component/view_comments_component.dart';
import 'package:de... | library debiki_admin;
import 'package:angular/angular.dart';
import 'package:perf_api/perf_api.dart';
import 'package:debiki_admin/debiki_admin_controller.dart';
import 'package:debiki_admin/component/view_topics_component.dart';
import 'package:debiki_admin/component/view_comments_component.dart';
import 'package:de... | Remove @MirrorUsed, it breaks Javascript in Firefox | Remove @MirrorUsed, it breaks Javascript in Firefox
Apparently I haven't listed in `targets` all classes/things that I need to
list, so this error happens:
TypeError: Cannot call method 'gMP' of undefined
| Dart | agpl-3.0 | debiki/debiki-server-old,debiki/debiki-server-old,debiki/debiki-server-old,debiki/debiki-server-old |
448bf930cc10c1421e87102fab0beebe01af4727 | pkg/vm/testcases/transformations/ffi/finalizable_sync3.dart | pkg/vm/testcases/transformations/ffi/finalizable_sync3.dart | // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart=2.16
// ignore_for_file: unused_local_variable
import 'dart:ffi';
class MyFinalizable imple... | // Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart=2.16
import 'dart:ffi';
class MyFinalizable implements Finalizable {
int _internalValue = ... | Remove an unneeded ignore comment in vm package | Remove an unneeded ignore comment in vm package
Change-Id: I3b81e1d66c2100b8ed1834815f318cf39a8da305
Tested: This only impacts the analyzer's reporting of diagnostics, so I ran the analyzer over the code and verified that no new diagnostics were being reported.
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+... | 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 |
546940e22b47fa46ac7941e544042584c3a823d5 | web/pwa.dart | web/pwa.dart | import 'package:pwa/worker.dart';
import 'package:website/pwa/offline_urls.g.dart' as offline;
/// The Progressive Web Application's entry point.
void main() {
// The Worker handles the low-level code for initialization, fetch API
// routing and (later) messaging.
Worker worker = new Worker();
// The static a... | import 'package:pwa/worker.dart';
import 'package:website/pwa/offline_urls.g.dart' as offline;
/// The Progressive Web Application's entry point.
void main() {
// The Worker handles the low-level code for initialization, fetch API
// routing and (later) messaging.
new Worker()
// The static assets that need... | Use cascading methods off of first Worker() reference | Use cascading methods off of first Worker() reference [ci skip]
| Dart | mit | 4cm4k1/anthony-codes,4cm4k1/website,4cm4k1/anthony-codes,4cm4k1/website |
202655ebb67d05dbc34972e770de0d10d4824af9 | pkg/front_end/lib/src/fasta/scanner/scanner_main.dart | pkg/front_end/lib/src/fasta/scanner/scanner_main.dart | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE.md file.
library fasta.scanner.main;
import 'io.dart' show readBytesFromFileSync;
import '../scanner.dart' s... | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE.md file.
library fasta.scanner.main;
import 'io.dart' show readBytesFromFileSync;
import '../scanner.dart' s... | Add option for printing tokens produced by the scanner. | Add option for printing tokens produced by the scanner.
R=danrubel@google.com
Review-Url: https://codereview.chromium.org/2933533002 .
| Dart | bsd-3-clause | dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart... |
946925be58a21c681a1d12b3e865e586f6618126 | lib/src/ordering/nulls_last.dart | lib/src/ordering/nulls_last.dart | import '../../ordering.dart';
class NullsLastOrdering<T> extends Ordering<T> {
final Ordering<T> ordering;
const NullsLastOrdering(this.ordering);
@override
int compare(T a, T b) {
if (a == null && b == null) {
return 0;
} else if (a == null) {
return 1;
} else if (identical(b, null))... | import '../../ordering.dart';
class NullsLastOrdering<T> extends Ordering<T> {
final Ordering<T> ordering;
const NullsLastOrdering(this.ordering);
@override
int compare(T a, T b) {
if (a == null && b == null) {
return 0;
} else if (a == null) {
return 1;
} else if (b == null) {
... | Fix another issue from the cherry-picking. | Fix another issue from the cherry-picking.
| Dart | mit | renggli/dart-more,renggli/dart-more |
46248a7b9252b2458e45414b34daaa29151773cc | lib/src/common/request.dart | lib/src/common/request.dart | part of plugins.common;
class RequestManager {
Map<int, Completer> _requests = {};
final Random _rand = new Random();
void complete(int uid, String command, Map<dynamic, dynamic> data) {
var com = _requests[uid];
if (com == null)
throw new Exception("Attempt to complete an invalid request");
... | part of plugins.common;
class RequestManager {
Map<int, Completer> _requests = {};
final Random _rand = new Random();
void complete(int uid, String command, Map<dynamic, dynamic> data) {
var com = _requests[uid];
if (com == null)
throw new Exception("Attempt to complete an invalid request");
... | Remove the completer from the list | Remove the completer from the list | Dart | mit | samrg472/plugins.dart |
6e8f57f714faf25a0b8feb8107c1fd398e0035f7 | packages/lsp_server/bin/main.dart | packages/lsp_server/bin/main.dart | import 'dart:async';
import 'dart:io';
import 'package:args/args.dart';
import 'package:lsp_server/src/analysis_server.dart';
import 'package:lsp_server/src/channel.dart';
const _optionCandyDirectory = 'candy-path';
Future<void> main(List<String> arguments) async {
stderr.write('Starting LSP…');
final parser = ... | import 'dart:async';
import 'dart:io';
import 'package:args/args.dart';
import 'package:lsp_server/src/analysis_server.dart';
import 'package:lsp_server/src/channel.dart';
const _optionCandyDirectory = 'candy-path';
Future<void> main(List<String> arguments) async {
stderr.write('Starting LSP…');
final parser = ... | Improve debuggability if core package is not found | Improve debuggability if core package is not found
| Dart | mit | candy-lang/candy,candy-lang/candy,candy-lang/candy |
4bc75fb11ac61dc2bfb428ede7e1b6a903228e49 | lib/ui/reusable_widgets/linkify_with_catch.dart | lib/ui/reusable_widgets/linkify_with_catch.dart | import 'package:flutter/material.dart';
import 'package:flutter_linkify/flutter_linkify.dart';
import 'package:url_launcher/url_launcher.dart';
/*
Widget used to Linkify text and then ensure any invalid URLs are caught and
reported to user. This should be used in place of the Linkify widget.
*/
class LinkifyWithCatc... | import 'package:flutter/material.dart';
import 'package:flutter_linkify/flutter_linkify.dart';
import 'package:url_launcher/url_launcher.dart';
/*
Widget used to Linkify text and then ensure any invalid URLs are caught and
reported to user. This should be used in place of the Linkify widget.
*/
class LinkifyWithCatc... | Add default value to textAlign property | Add default value to textAlign property
| Dart | mit | UCSD/campus-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/campus-mobile,UCSD/now-mobile,UCSD/campus-mobile,UCSD/campus-mobile |
c19c1317658996cf4b3542a140bc88a4563e5301 | lib/src/flat_map_latest.dart | lib/src/flat_map_latest.dart | part of stream_transformers;
/// Similar to `FlatMap`, but instead of including events from all spawned
/// streams, only includes the ones from the latest stream. Think of this
/// as stream switching.
///
/// **Example:**
///
/// var controller = new StreamController();
/// var latest = controller.stream.tra... | part of stream_transformers;
/// Similar to `FlatMap`, but instead of including events from all spawned
/// streams, only includes the ones from the latest stream. Think of this
/// as stream switching.
///
/// **Example:**
///
/// var controller = new StreamController();
/// var latest = controller.stream.tra... | Change how FlatMapLatest cancels previous subscriptions | Change how FlatMapLatest cancels previous subscriptions
| Dart | mit | danschultz/stream_transformers,danschultz/stream_transformers,devoncarew/stream_transformers |
428deeb30ef3a9f068371455c98e3ddee5efa7b0 | sintr_worker/bin/workTarget/worker_isolate.dart | sintr_worker/bin/workTarget/worker_isolate.dart | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:isolate';
main(List<String> args, SendPort sendPort) {
ReceivePort receivePort = new Re... | // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:convert';
import 'dart:isolate';
main(List<String> args, SendPort sendPort) {
ReceivePo... | Replace compute target with a structure map function | Replace compute target with a structure map function
| Dart | apache-2.0 | lukechurch/sintr,lukechurch/sintr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.