content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Java
Java
customize diagram/javadocs for doonterminate()
747f97ed6fd67d25ee22600475d71ca74bf289a6
<ide><path>rxjava-core/src/main/java/rx/Observable.java <ide> public final void onNext(T args) { <ide> } <ide> <ide> /** <del> * Modifies an Observable so that it invokes an action when it calls {@code onCompleted} or {@code onError} <p> <del> * <img width="640" src="https://raw.github.com/wiki/Net...
1
PHP
PHP
add tests in an attempt to reproduce
18f68aaa36d72dbd91a5eccad790af45dbaebfaa
<ide><path>tests/TestCase/View/Helper/FormHelperTest.php <ide> public function testControlCheckbox() <ide> { <ide> $articles = TableRegistry::get('Articles'); <ide> $articles->schema()->addColumn('active', ['type' => 'boolean', 'default' => null]); <add> $article = $articles->newEntity(); <ad...
1
Text
Text
add examples for new explosion bot commands
f38aff4ec9a5022dad0f216e1b6cd74699b1d8a6
<ide><path>extra/DEVELOPER_DOCS/ExplosionBot.md <ide> To summon the robot, write a github comment on the issue/PR you wish to test. Th <ide> <ide> Some things to note: <ide> <del>* The `@explosion-bot please` must be the beginning of the command - you cannot add anything in front of this or else the robot won't know ...
1
Javascript
Javascript
add test for failed save in repl
8ea6844d265dbcd24e18fd98dc5f598f682d0edc
<ide><path>test/parallel/test-repl-.save.load.js <ide> putIn.write = function(data) { <ide> }; <ide> putIn.run(['.load ' + loadFile]); <ide> <add>// clear the REPL <add>putIn.run(['.clear']); <add> <add>// NUL (\0) is disallowed in filenames in UNIX-like operating systems and <add>// Windows so we can use that to test...
1
PHP
PHP
apply fixes from styleci
4994f37c782672bd9d32b6d4277f9613e14d8429
<ide><path>src/Illuminate/Contracts/Queue/Job.php <ide> public function maxTries(); <ide> * @return int|null <ide> */ <ide> public function timeout(); <del> <add> <ide> /** <ide> * Get the name of the queued job class. <ide> *
1
Javascript
Javascript
remove @author in comment
0dd467f297b2411bc59d8172ae727006baf9de2b
<ide><path>test/math/random-test.js <ide> var suite = vows.describe("d3.random"); <ide> * <ide> * More on RNG testing here: <ide> * @see http://www.johndcook.com/Beautiful_Testing_ch10.pdf <del> * <del> * @author Daniel Goldbach <ide> */ <ide> <ide> // Arbitrarily chosen parameters for the normal RNG
1
PHP
PHP
add test coverage for `label` key in radio options
ef930d3880127728c42de2330510357cb9c53b90
<ide><path>tests/TestCase/View/Widget/RadioWidgetTest.php <ide> public function testRenderComplex() <ide> $this->assertHtml($expected, $result); <ide> } <ide> <add> /** <add> * Test rendering inputs with label options <add> * <add> * @return void <add> */ <add> public function testRen...
1
Javascript
Javascript
run more flags in variant tests
7dfdff42af8e128326672608c9cf8980e289c423
<ide><path>packages/react-interactions/events/src/dom/__tests__/Input-test.internal.js <ide> describe('Input event responder', () => { <ide> ref.current.dispatchEvent( <ide> new Event('input', {bubbles: true, cancelable: true}), <ide> ); <del> expect(onChangeCalled).toBe(0); <del> expect(o...
2
Ruby
Ruby
switch `greedy` argument to a keyword
d45701cf9b6d369049053c675883b4178541f277
<ide><path>Library/Homebrew/cmd/outdated.rb <ide> def select_outdated(formulae_or_casks, args:) <ide> if formula_or_cask.is_a?(Formula) <ide> formula_or_cask.outdated?(fetch_head: args.fetch_HEAD?) <ide> else <del> formula_or_cask.outdated?(args.greedy?) <add> formula_or_cask.outdated?...
1
Go
Go
set more defaults
f73aadb2301d8033bed3fa137179e2b3ff5cb4ca
<ide><path>cmd/dockerd/config.go <ide> func installCommonConfigFlags(conf *config.Config, flags *pflag.FlagSet) error { <ide> flags.BoolVar(&conf.CriContainerd, "cri-containerd", false, "start containerd with cri") <ide> <ide> flags.IntVar(&conf.Mtu, "mtu", conf.Mtu, "Set the containers network MTU") <del> flags.Int...
3
Text
Text
fix style for some text
62d0d4e5d2f203d2c1694af363bce88cc1a5d483
<ide><path>docs/tutorial/5-relationships-and-hyperlinked-apis.md <ide> Unlike all our other API endpoints, we don't want to use JSON, but instead just <ide> <ide> The other thing we need to consider when creating the code highlight view is that there's no existing concrete generic view that we can use. We're not retu...
1
Go
Go
fix a race in pkg/discovery/memory
1f8fbbc0d830ad9a887d04a25152ea344688903b
<ide><path>pkg/discovery/memory/memory.go <ide> package memory <ide> <ide> import ( <add> "sync" <ide> "time" <ide> <ide> "github.com/docker/docker/pkg/discovery" <ide> ) <ide> <del>// Discovery implements a descovery backend that keeps <add>// Discovery implements a discovery backend that keeps <ide> // data in m...
1
Javascript
Javascript
add <page>/index.html url re-writes to next/router
90991f176c5043e8bed388dfe651b0a9e2d12f2f
<ide><path>lib/router/router.js <add>/* global __NEXT_DATA__ */ <add> <ide> import { parse, format } from 'url' <ide> import mitt from 'mitt' <ide> import shallowEquals from '../shallow-equals' <ide> export default class Router { <ide> // If url and as provided as an object representation, <ide> // we'll format...
1
Go
Go
privatize mountpath and zfspath
f5f7fee2ecc964314b2a7b910fda71a157c90f16
<ide><path>daemon/graphdriver/zfs/zfs.go <ide> func (d *Driver) cloneFilesystem(name, parentName string) error { <ide> return snapshot.Destroy(zfs.DestroyDeferDeletion) <ide> } <ide> <del>// ZfsPath returns the filesystem path for the id provided. <del>func (d *Driver) ZfsPath(id string) string { <add>func (d *Driver...
1
Ruby
Ruby
remove useless preloader classes
de40c45f2b7d4a2ba47d28e9a4967134e45df91f
<ide><path>activerecord/lib/active_record/associations/preloader.rb <ide> class Preloader #:nodoc: <ide> extend ActiveSupport::Autoload <ide> <ide> eager_autoload do <del> autoload :Association, "active_record/associations/preloader/association" <del> autoload :SingularAssociation, ...
10
Ruby
Ruby
add missing variable
727d8546217eadf22924ece4100b1bf40c9169c8
<ide><path>Library/Homebrew/cli/named_args.rb <ide> def load_formula_or_cask(name, only: nil, method: nil) <ide> if only != :formula <ide> begin <ide> return Cask::CaskLoader.load(name, config: Cask::Config.from_args(@parent)) <del> rescue Cask::CaskUnavailableError <add> ...
1
Text
Text
add missing determiner
3fdbb5550656711b5344e7e24bd8ae6fedc88d0f
<ide><path>docs/basics/Actions.md <ide> import { ADD_TODO, REMOVE_TODO } from '../actionTypes'; <ide> <ide> >##### Note on Boilerplate <ide> <del>>You don’t have to define action type constants in a separate file, or even to define them at all. For a small project, it might be easier to just use string literals for a...
1
PHP
PHP
use fqn in phpdocs
c75735eff4e1f0ac96ce8fd7dd46ef14415cf994
<ide><path>src/Illuminate/Container/Container.php <ide> public function singleton($abstract, $concrete = null) <ide> * Wrap a Closure such that it is shared. <ide> * <ide> * @param \Closure $closure <del> * @return Closure <add> * @return \Closure <ide> */ <ide> public function share(Closure $closure) <ide...
16
Text
Text
fix syntax in example
ada374f316579e55d5a350f4e9a1e5674af95106
<ide><path>docs/reference/builder.md <ide> it instead, as it enables setting any metadata you require, and can be viewed <ide> easily, for example with `docker inspect`. To set a label corresponding to the <ide> `MAINTAINER` field you could use: <ide> <del> LABEL maintainer "SvenDowideit@home.org.au" <add> LABEL...
1
Javascript
Javascript
write pending data of opposite side
14a8fb8bbe906b20ee393b67c1425773e0e0f7db
<ide><path>lib/tls.js <ide> CryptoStream.prototype._read = function read(size) { <ide> <ide> // Try writing pending data <ide> if (this._pending !== null) this._writePending(); <add> if (this._opposite._pending !== null) this._opposite._writePending(); <ide> <ide> if (bytesRead === 0) { <ide> // EOF when c...
2
Python
Python
fix typo in docs
b4da9c94739f9832115a84c0f22098c47f29e533
<ide><path>keras/layers/recurrent.py <ide> class LSTM(RNN): <ide> recurrent_dropout: Float between 0 and 1. <ide> Fraction of the units to drop for <ide> the linear transformation of the recurrent state. <del> return_sequences: Boolean. Whether to return the last output. <add> return_sequences: Bo...
1
Text
Text
make minor improvements to module.md
665330134cafb6d40e39d134f3bef03b09fbd9ae
<ide><path>doc/api/module.md <ide> added: <ide> should be fetched. <ide> <ide> The `error` instance should be passed as the second parameter to `findSourceMap` <del>in exceptional flows, e.g., when an overridden <add>in exceptional flows, such as when an overridden <ide> [`Error.prepareStackTrace(error, trace)`][] is ...
1
Javascript
Javascript
remove unnecessary object.userdata check
310491179af08eebbf245d0fd53a734fe13088eb
<ide><path>examples/js/exporters/GLTFExporter.js <ide> THREE.GLTFExporter.prototype = { <ide> */ <ide> function serializeUserData( object, gltfProperty ) { <ide> <del> if ( ! object.userData || Object.keys( object.userData ).length === 0 ) { <add> if ( Object.keys( object.userData ).length === 0 ) { <ide> <i...
1
Text
Text
fix typo in versioning docs
000db8df18930b142e6f9b65213ae70703e8bdb9
<ide><path>docs/api-guide/versioning.md <ide> Your client requests would now look like this: <ide> Host: example.com <ide> Accept: application/vnd.megacorp.bookings+json; version=1.0 <ide> <del>## URLParameterVersioning <add>## URLPathVersioning <ide> <ide> This scheme requires the client to specify the versi...
1
Ruby
Ruby
put the create_table block in a transaction
4fa2f10494260c0937ffe066aace09747e57d7c7
<ide><path>activerecord/test/cases/adapters/postgresql/json_test.rb <ide> class JsonDataType < ActiveRecord::Base <ide> def setup <ide> @connection = ActiveRecord::Base.connection <ide> begin <del> @connection.create_table('json_data_type') do |t| <del> t.json 'payload', :default => {} <add> ...
1
Javascript
Javascript
convert prerotations with builtin function
370b0e859821621b890b12bc8016b073d7a29789
<ide><path>examples/js/loaders/FBXLoader.js <ide> <ide> if ( 'PreRotation' in node.properties ) { <ide> <del> var preRotations = new THREE.Euler().setFromVector3( parseVector3( node.properties.PreRotation ).multiplyScalar( Math.PI / 180 ), 'ZYX' ); <add> var preRotations = new THREE.Euler().fromArray( node.p...
1
Javascript
Javascript
add missing semicolon i missed in #865
59cba3e9f72869620920102abaea511ae0ae4034
<ide><path>src/core/ReactComponent.js <ide> function validateExplicitKey(component) { <ide> message += ' It was passed a child from ' + childOwnerName + '.'; <ide> } <ide> <del> message += ' See http://fb.me/react-warning-keys for more information.' <add> message += ' See http://fb.me/react-warning-keys for mo...
1
Python
Python
fix tests for mssql after sqla 1.4 upgrade
baf50cddd86ac07f064c8cbd95efb22d038b3832
<ide><path>airflow/sensors/external_task.py <ide> def get_count(self, dttm_filter, session, states) -> int: <ide> """ <ide> TI = TaskInstance <ide> DR = DagRun <add> if not dttm_filter: <add> return 0 <add> <ide> if self.external_task_ids: <ide> count = ( <i...
1
Javascript
Javascript
fix multi-line input
b5175003bca45e23bd20d9559096dafda3e0ad7c
<ide><path>lib/repl.js <ide> function REPLServer(prompt, stream, eval_, useGlobal, ignoreUndefined) { <ide> displayErrors: false <ide> }); <ide> } catch (e) { <del> err = e; <ide> debug('parse error %j', code, e); <add> if (isRecoverableError(e)) <add> err = new Recoverable(e); ...
1
Java
Java
improve ellipsizemode prop
cd1a86db36a02d93c8e1adb03b3a5773b7ebceb0
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewProps.java <ide> public class ViewProps { <ide> public static final String LINE_HEIGHT = "lineHeight"; <ide> public static final String NEEDS_OFFSCREEN_ALPHA_COMPOSITING = "needsOffscreenAlphaCompositing"; <ide> public static final String NUMB...
3
Python
Python
fix model collation
24dfbb8a2853205c5fa27ac0657119a8c2699e39
<ide><path>spacy/cli/train.py <ide> def _collate_best_model(meta, output_path, components): <ide> best_dest = output_path / 'model-best' <ide> shutil.copytree(output_path / 'model-final', best_dest) <ide> for component, best_component_src in bests.items(): <del> shutil.rmtree(best_dir / component) <a...
1
Go
Go
fix race on reading endpoint data
5abef06a158b437a020d59ffdba740d19613852e
<ide><path>daemon/list.go <ide> import ( <ide> "github.com/docker/docker/pkg/graphdb" <ide> "github.com/docker/engine-api/types" <ide> "github.com/docker/engine-api/types/filters" <add> networktypes "github.com/docker/engine-api/types/network" <ide> "github.com/docker/go-connections/nat" <ide> ) <ide> <ide> func (...
1
Text
Text
add missing link in changelog
e12b9bedecf664277b327c4353ac6f8995126034
<ide><path>doc/changelogs/CHANGELOG_V7.md <ide> </tr> <ide> <tr> <ide> <td> <add><a href="#7.1.0">7.1.0</a><br/> <ide> <a href="#7.0.0">7.0.0</a><br/> <ide> </td> <ide> </tr>
1
Javascript
Javascript
remove overlooked slot | 0 defensive checks
9b12fad68dba3ea23ca4e5c3f8cd428f0a19ab88
<ide><path>editor/js/commands/SetMaterialColorCommand.js <ide> var SetMaterialColorCommand = function ( object, attributeName, newValue, slot ) <ide> <ide> this.object = object; <ide> this.attributeName = attributeName; <del> this.slot = slot | 0; <add> this.slot = slot; <ide> <ide> var material = this.editor.getO...
2
Javascript
Javascript
fix lint error
91b3b4608cdef5244e1c6dde86d8d8590acd14ae
<ide><path>lib/Parser.js <ide> Parser.prototype.walkExportNamedDeclaration = function walkExportNamedDeclaratio <ide> this.applyPluginsBailResult("export specifier", statement, specifier.local.name, name, specifierIndex); <ide> break; <ide> } <del> } <add> } <ide> } <ide> }; <ide>
1
PHP
PHP
import dispatcher contract
9c9f817372a644a2e233c3af543b2120fcfcf2d9
<ide><path>src/Illuminate/Foundation/Bus/DispatchesJobs.php <ide> namespace Illuminate\Foundation\Bus; <ide> <ide> use ArrayAccess; <add>use Illuminate\Contracts\Bus\Dispatcher; <ide> <ide> trait DispatchesJobs <ide> { <ide> trait DispatchesJobs <ide> */ <ide> protected function dispatch($job) <ide> { <d...
1
Ruby
Ruby
move version detection to version class
5fe7fdf1535eda627f74e0272b4bbf0618b9a498
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def abv <ide> out<<`/usr/bin/du -hd0 #{to_s} | cut -d"\t" -f1`.strip <ide> end <ide> <del> # attempts to retrieve the version component of this path, so generally <del> # you'll call it on tarballs or extracted tarball directories, if you add <del> # to thi...
3
PHP
PHP
implement outputtimezone in a few methods
a688b0422f5ec0336a53c42152a6cf2db8245b44
<ide><path>src/View/Helper/TimeHelper.php <ide> class TimeHelper extends Helper <ide> <ide> use StringTemplateTrait; <ide> <add> /** <add> * Config options <add> * <add> * @var array <add> */ <add> protected $_defaultConfig = [ <add> 'outputTimezone' => null <add> ]; <add> <add> ...
2
Ruby
Ruby
remove unused methods in `staged` module
b7cf925da84cbd5eeb5de4c94b917369d4f072fd
<ide><path>Library/Homebrew/cask/staged.rb <ide> <ide> module Cask <ide> module Staged <del> def info_plist_file(index = 0) <del> index = 0 if index == :first <del> index = 1 if index == :second <del> index = -1 if index == :last <del> @cask.artifacts.select { |a| a.is_a?(Artifact::App) }.at...
3
Java
Java
expose jms message listener container ids
1bc41bdf0f4f491259c2079de48a93ed1dfbe9eb
<ide><path>spring-jms/src/main/java/org/springframework/jms/config/JmsListenerEndpointRegistry.java <ide> import java.util.Collection; <ide> import java.util.Collections; <ide> import java.util.Map; <add>import java.util.Set; <ide> import java.util.concurrent.ConcurrentHashMap; <ide> import java.util.concurrent.atomic....
3
Java
Java
remove use of compositebytebuf in nettydatabuffer
e6893da9714cf557a36691dcefc8209bfff1e98d
<ide><path>spring-core/src/main/java/org/springframework/core/io/buffer/NettyDataBuffer.java <ide> /* <del> * Copyright 2002-2017 the original author or authors. <add> * Copyright 2002-2018 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may...
2
Javascript
Javascript
call resume() after setrawmode()
6822488c93ddc683061cfbeb6063ad140417a365
<ide><path>lib/readline.js <ide> function Interface(input, output, completer, terminal) { <ide> <ide> this.output = output; <ide> this.input = input; <del> input.resume(); <ide> <ide> // Check arity, 2 - for async, 1 for sync <ide> this.completer = completer.length === 2 ? completer : function(v, callback) {...
1
PHP
PHP
add doc blocks
46ce40b639a9e6d0ff42e41bbcbaec8164917e86
<ide><path>src/View/Input/Radio.php <ide> protected function _isDisabled($radio, $disabled) { <ide> return (!is_array($disabled) || in_array((string)$radio['value'], $disabled, !$isNumeric)); <ide> } <ide> <add>/** <add> * Renders a label element for a given radio button. <add> * <add> * In the future this might be...
1
Go
Go
add another symlink breakout test
1cd89729d59948a4bdc9d6c8a4ab01cedaeb193f
<ide><path>integration-cli/docker_cli_build_test.go <ide> func TestBuildExoticShellInterpolation(t *testing.T) { <ide> <ide> logDone("build - exotic shell interpolation") <ide> } <add> <add>func TestBuildSymlinkBreakout(t *testing.T) { <add> name := "testbuildsymlinkbreakout" <add> tmpdir, err := ioutil.TempDir("", n...
1
Go
Go
fix race between with event timer stopping early
b38cee9f9c79d1f12001348303b78462d99664ed
<ide><path>api/server/router/system/system_routes.go <ide> func (s *systemRouter) getEvents(ctx context.Context, w http.ResponseWriter, r * <ide> return err <ide> } <ide> <del> timer := time.NewTimer(0) <del> timer.Stop() <add> var timeout <-chan time.Time <ide> if until > 0 || untilNano > 0 { <ide> dur := time....
1
Text
Text
revise windows docker instructions
3faba5fbe264425ac6d15bdfdf3c5a72e25643cb
<ide><path>docs/installation/windows.md <ide> small ~24MB download, and boots in approximately 5s. <ide> <ide> ## Requirements <ide> <del>Your machine must be running Windows 7.1, 8/8.1 or newer to run Docker. Windows 10 is not currently supported. To find out what version of Windows you have: <add>Your machine must ...
1
Python
Python
add relu function
5e3eb12a7b78092cd6bc31892b76e5ef976ad462
<ide><path>maths/relu.py <add>""" <add>This script demonstrates the implementation of the ReLU function. <add> <add>It's a kind of activation function defined as the positive part of its argument in the context of neural network. <add>The function takes a vector of K real numbers as input and then argmax(x, 0). <add>Af...
1
Mixed
Javascript
remove fixturesdir from common module
f29992206807ca3c483301a88688f456cbcd3bf6
<ide><path>test/common/README.md <ide> Returns a new promise that will propagate `promise` resolution or rejection if <ide> that happens within the `timeoutMs` timespan, or rejects with `error` as <ide> a reason otherwise. <ide> <del>### fixturesDir <del>* [&lt;String>] <del> <del>Path to the 'fixtures' directory. <de...
2
PHP
PHP
remove dependency on htmlhelper
ec87bbc779bf96fa7df88a042d3360291532192c
<ide><path>Cake/Test/TestCase/View/Helper/PaginatorHelperTest.php <ide> use Cake\Network\Request; <ide> use Cake\Routing\Router; <ide> use Cake\TestSuite\TestCase; <del>use Cake\View\Helper\FormHelper; <del>use Cake\View\Helper\HtmlHelper; <del>use Cake\View\Helper\JsHelper; <ide> use Cake\View\Helper\PaginatorHelper; ...
2
Text
Text
add title of license to license file. fixes
d7117bc79235f23832cec04568cad8a808f82737
<ide><path>LICENSE.md <add>The MIT License (MIT) <ide> Copyright (c) 2013-2016 Nick Downie <ide> <ide> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limita...
1
PHP
PHP
get migration path from parent
ad981a10ee3b46fa08afc36e8dadb76a12df6486
<ide><path>src/Illuminate/Database/Console/Migrations/StatusCommand.php <ide> public function fire() <ide> */ <ide> protected function getAllMigrationFiles() <ide> { <del> return $this->migrator->getMigrationFiles($this->laravel['path.database'].'/migrations'); <add> return $this->migrator->getMigrationFiles($thi...
1
Javascript
Javascript
use arrow functions for callbacks
b3b5fc7c065c6aba1eca34a61dd085c2987a55f5
<ide><path>test/parallel/test-stream-pipe-flow.js <ide> const { Readable, Writable, PassThrough } = require('stream'); <ide> .pipe(new PassThrough({ objectMode: true, highWaterMark: 2 })) <ide> .pipe(new PassThrough({ objectMode: true, highWaterMark: 2 })); <ide> <del> pt.on('end', function() { <add> pt.on('...
1
Javascript
Javascript
use mongodb+srv url protocol
ed08ec088a138bfde86ccba29f4c933b28b18e4a
<ide><path>api-server/server/datasources.production.js <ide> var secrets = require('../../config/secrets'); <ide> module.exports = { <ide> db: { <ide> connector: 'mongodb', <add> protocol: 'mongodb+srv', <ide> connectionTimeout: 10000, <ide> url: secrets.db, <ide> useNewUrlParser: true,
1
Javascript
Javascript
fix node 0.12 tests
d5bd2782f71116e65fe3ff1ed150427e87c2dc97
<ide><path>src/test/locale/ar-ly.js <ide> test('no leading zeros in long date formats', function (assert) { <ide> <ide> // locale-specific <ide> test('ar-ly strict mode parsing works', function (assert) { <del> const m = moment().locale('ar-ly'); <del> const formattedDate = m.format('l'); <add> var m, formatt...
2
Text
Text
fix typo in repl.md
e5410322769482029aa07a41a1c06cc7586bad1b
<ide><path>doc/api/repl.md <ide> triggered with <kbd>Ctrl</kbd>+<kbd>R</kbd> to search backward and <ide> <kbd>Ctrl</kbd>+<kbd>S</kbd> to search <ide> forwards. <ide> <del>Duplicated history entires will be skipped. <add>Duplicated history entries will be skipped. <ide> <ide> Entries are accepted as soon as any key i...
1
Javascript
Javascript
use relative imports
aa76fcff3346304f4612868c15490d5872f43e43
<ide><path>packages/ember-glimmer/lib/index.js <del>export { default as Environment } from 'ember-glimmer/environment'; <add>export { default as Environment } from './environment'; <ide> export { default as template } from './template'; <ide><path>packages/ember-glimmer/lib/setup-registry.js <ide> import { privatize as...
63
Python
Python
set unique vector names in tests
139428c20f357f7d5b474c1b996e9a8a79f636ed
<ide><path>spacy/tests/regression/test_issue1501-2000.py <ide> def test_issue1799(): <ide> <ide> def test_issue1807(): <ide> """Test vocab.set_vector also adds the word to the vocab.""" <del> vocab = Vocab() <add> vocab = Vocab(vectors_name="test_issue1807") <ide> assert "hello" not in vocab <ide> vo...
3
Go
Go
run sleep instead of cat /bin/zero. fixes #737
fb86dcfb17444089aea31cdf6c9b09c4421731c7
<ide><path>container_test.go <ide> func TestKill(t *testing.T) { <ide> defer nuke(runtime) <ide> container, err := NewBuilder(runtime).Create(&Config{ <ide> Image: GetTestImage(runtime).ID, <del> Cmd: []string{"cat", "/dev/zero"}, <add> Cmd: []string{"sleep", "2"}, <ide> }, <ide> ) <ide> if err != nil { <i...
1
Javascript
Javascript
drop superfluous argument to sendreq
3b5ba8779730c21897c2f18f5daaec9bc5550951
<ide><path>src/ng/http.js <ide> function $HttpProvider() { <ide> } <ide> <ide> // send request <del> return sendReq(config, reqData, headers).then(transformResponse, transformResponse); <add> return sendReq(config, reqData).then(transformResponse, transformResponse); <ide> }; <ide> ...
1
Java
Java
fix package references
95fe5f90330ab4d17744d55ea647d36323c0af67
<ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/ResultActions.java <ide> * request. <ide> * <ide> * <p>See static factory methods in <del> * {@code org.springframework.test.web.server.result.MockMvcResultMatchers} <del> * {@code org.springframework.test.web.server.result.MockMvcResultHandle...
1
Javascript
Javascript
add failing tests for ember-cli/6026
3bac3e88ebcaa95f0ac5757f6b8b1b669d9cdd4a
<ide><path>node-tests/blueprints/route-test.js <ide> describe('Acceptance: ember generate and destroy route', function() { <ide> .to.not.contain('path: \':foo_id/show\'')); <ide> }); <ide> <add> it('route --reset-namespace', function() { <add> var args = ['route', 'parent/child', '--reset-namespace']; <a...
1
Ruby
Ruby
extract precision from datetime and time columns
4b38a99e7a5eccf06a856cbda8517eb6039ab433
<ide><path>activerecord/lib/active_record/connection_adapters/mysql_adapter.rb <ide> def find_type(field) <ide> <ide> def initialize_type_map(m) # :nodoc: <ide> super <del> m.register_type %r(datetime)i, Fields::DateTime.new <del> m.register_type %r(time)i, Fields::Time.new <add> ...
3
Text
Text
add article for react portals
4392455ff73202832c642321635ccde805ce58e5
<ide><path>guide/english/react/portals/index.md <add>--- <add>title: Portals <add>--- <add>## Portals <add> <add>Portals were introduced with React 16.0. Portal provides a mechanism for a component to render its children in a DOM node that is outside the DOM hierarchy of parent component. In other words, a component th...
1
Javascript
Javascript
fix package.json key
2996d9ddeddbe656da137b04ca956f7bd560dbf9
<ide><path>src/url-handler-registry.js <ide> const {Disposable} = require('event-kit') <ide> // automatically installing the package right away is not. <ide> // <ide> // Packages can register their desire to handle URLs via a special key in their <del>// `package.json` called "urlHandlers". The value of this key should...
1
PHP
PHP
add missing space
b150ec691074e99a23506e4c9a3c5d6e1792e5a8
<ide><path>src/Illuminate/Console/Scheduling/Event.php <ide> public function mutexName() <ide> /** <ide> * Set the mutex name resolver callback. <ide> * <del> * @param \Closure $callback <add> * @param \Closure $callback <ide> * @return $this <ide> */ <ide> public function createM...
1
Javascript
Javascript
upgrade amdplugin to es6
f22035d99a1da20f0bc92c4b6817855c45a226c3
<ide><path>lib/dependencies/AMDPlugin.js <ide> MIT License http://www.opensource.org/licenses/mit-license.php <ide> Author Tobias Koppers @sokra <ide> */ <del>var path = require("path"); <del>var AMDRequireDependency = require("./AMDRequireDependency"); <del>var AMDRequireItemDependency = require("./AMDRequireItemDep...
1
Javascript
Javascript
report error only when enabled
c2a0443486699d2ef68521fe743a255958609eb6
<ide><path>server/middlewares/error-reporter.js <ide> const log = debug('fcc:middlewares:error-reporter'); <ide> <ide> const isOpbeatDisabled = !opbeat.appId; <ide> export default function errrorReporter() { <del> if (process.env.NODE_ENV !== 'production') { <add> if (process.env.NODE_ENV !== 'production' && process...
1
Python
Python
add support for unique_together
c4b2a3262cc79383d6562cfc7e9af20135c8e0bf
<ide><path>django/db/backends/schema.py <ide> class BaseDatabaseSchemaEditor(object): <ide> <ide> # Overrideable SQL templates <ide> sql_create_table = "CREATE TABLE %(table)s (%(definition)s)" <add> sql_create_table_unique = "UNIQUE (%(columns)s)" <ide> sql_rename_table = "ALTER TABLE %(old_table)s REN...
3
Python
Python
fix tempfile failures on window
29a33301d7c90fb22e8ee6533195b0a7c203de91
<ide><path>numpy/core/tests/test_longdouble.py <ide> from __future__ import division, absolute_import, print_function <ide> <ide> import locale <del>from tempfile import NamedTemporaryFile <ide> <ide> import numpy as np <ide> from numpy.testing import ( <ide> run_module_suite, assert_, assert_equal, dec, assert_r...
1
PHP
PHP
improve docs for errortrap
3b048bff7405db49608b57c040b756e503c80dd0
<ide><path>src/Error/ErrorTrap.php <ide> class ErrorTrap <ide> } <ide> <ide> /** <del> * See the `Error` key in you `config/app.php` <del> * for details on the keys and their values. <add> * Configuration options. Generally these are defined in config/app.php <add> * <add> * - `errorLevel` ...
1
Javascript
Javascript
use jquery reference not sizzle
3b9057a18de31b838bd0dd25ea466993b62f9dd9
<ide><path>test/unit/selector.js <ide> asyncTest( "Iframe dispatch should not affect jQuery (#13936)", 1, function() { <ide> <ide> try { <ide> iframeDoc = this.contentDocument || this.contentWindow.document; <del> form = Sizzle( "#navigate", iframeDoc )[ 0 ]; <add> form = jQuery( "#navigate", iframeDoc )[ 0 ]...
1
Javascript
Javascript
remove unreferenced slideriosexample
049639cfdd001bf1b770d511bcc57d15f9c91cf5
<ide><path>Examples/UIExplorer/js/SliderIOSExample.js <del>/** <del> * Copyright (c) 2013-present, Facebook, Inc. <del> * All rights reserved. <del> * <del> * This source code is licensed under the BSD-style license found in the <del> * LICENSE file in the root directory of this source tree. An additional grant <del> *...
1
Mixed
Text
add japanese translated readme
38e5b71abbf3f04925beb0a81af69fd17476405c
<ide><path>README.md <ide> limitations under the License. <ide> <a href="https://github.com/huggingface/transformers/blob/main/README_zh-hans.md">简体中文</a> | <ide> <a href="https://github.com/huggingface/transformers/blob/main/README_zh-hant.md">繁體中文</a> | <ide> <a href="https://github.com/huggin...
7
PHP
PHP
fix lint error
4eb433522250ae5d0fb820e38de95a422ccb0242
<ide><path>tests/TestCase/View/Helper/HtmlHelperTest.php <ide> use Cake\View\Helper\HtmlHelper; <ide> use Cake\View\View; <ide> <del> <ide> /** <ide> * HtmlHelperTest class <ide> *
1
Ruby
Ruby
remove unused command_args
77728abbfc4c913ed91856e8c33d0911db0dc486
<ide><path>Library/Homebrew/cask/lib/hbc/utils.rb <ide> def self.gain_permissions_remove(path, command: SystemCommand) <ide> p.rmtree <ide> else <ide> command.run("/bin/rm", <del> args: command_args + ["-r", "-f", "--", p], <add> args: ["-r...
1
Go
Go
use mount to determine the cgroup mountpoint
f3e89fae287778cb8b7056e228170e0073c9a046
<ide><path>runtime.go <ide> func NewRuntime() (*Runtime, error) { <ide> log.Printf("WARNING: You are running linux kernel version %s, which might be unstable running docker. Please upgrade your kernel to 3.8.0.", k.String()) <ide> } <ide> <del> _, err1 := ioutil.ReadFile("/sys/fs/cgroup/memory/memory.limit_in_bytes...
2
PHP
PHP
add test for between validation rule
6fb604f43a5f2dbce928c704532fde291f313416
<ide><path>tests/Validation/ValidationValidatorTest.php <ide> public function testValidateBetween() <ide> $v = new Validator($trans, ['foo' => '123'], ['foo' => 'Numeric|Between:50,100']); <ide> $this->assertFalse($v->passes()); <ide> <add> // inclusive on min <add> $v = new Validator($tr...
1
Python
Python
simplify bidirectional test
7c5057b42c63337446dc4eb79c433a216520864d
<ide><path>tests/keras/layers/wrappers_test.py <ide> def test_Bidirectional(): <ide> model.compile(loss='mse', optimizer='sgd') <ide> model.fit(x, y, epochs=1, batch_size=1) <ide> <del> # test with functional API <del> inputs = Input((timesteps, dim)) <del> outputs = wrappers.Bidir...
1
PHP
PHP
fix falling test on windows
1c31727543b4708bae3178e504b1aadfb3b0af5b
<ide><path>tests/TestCase/Shell/PluginAssetsShellTest.php <ide> public function testSymlinkWhenVendorDirectoryExits() { <ide> $this->shell->symlink(); <ide> $path = WWW_ROOT . 'company' . DS . 'test_plugin_three'; <ide> $link = new \SplFileInfo($path); <del> $this->assertTrue($link->isLink()); <add> if (DIRECTO...
1
Ruby
Ruby
increase default max_iterations
b7a43604331fb8a7c8ba2b42d1caccb1d3eb97f9
<ide><path>Library/Homebrew/utils/curl.rb <ide> def http_status_ok?(status) <ide> # @return [Hash] A hash containing an array of response hashes and the body <ide> # content, if found. <ide> sig { params(output: String, max_iterations: Integer).returns(T::Hash[Symbol, T.untyped]) } <del> def parse_curl...
1
PHP
PHP
apply fixes from styleci
9111e0eaace063a96ff6321618bbf23e7267599e
<ide><path>src/Illuminate/Routing/UrlGenerator.php <ide> namespace Illuminate\Routing; <ide> <ide> use Closure; <del>use Illuminate\Support\Arr; <ide> use Illuminate\Support\Str; <ide> use Illuminate\Http\Request; <ide> use InvalidArgumentException; <ide> use Illuminate\Support\Traits\Macroable; <ide> use Illuminate\C...
1
Ruby
Ruby
extract the value casting to a method
2b60a6b664606b0b52851ff811231728b7c65032
<ide><path>activerecord/lib/active_record/connection_adapters/connection_specification.rb <ide> def connection_url_to_hash(url) # :nodoc: <ide> :port => config.port, <ide> :database => config.path.sub(%r{^/},""), <ide> :host => config.host } <add> <ide> ...
1
Mixed
Javascript
fix pbr material order
5e204c261f4dd697c0509ab903c6ef320c450618
<ide><path>threejs/lessons/resources/threejs-materials.js <ide> import {threejsLessonUtils} from './threejs-lesson-utils.js'; <ide> const material = new MatCtor({ <ide> color, <ide> roughness: r / (numRough - 1), <del> metalness: m / (numMetal - 1), <add> metalness: 1 - m /...
2
Text
Text
add docs for custom image loaders.
9afc0f58c4f3120a8e04b03d48973433f335324a
<ide><path>docs/api-reference/next/image.md <ide> description: Enable Image Optimization with the built-in Image component. <ide> <ide> | Version | Changes | <ide> | --------- | ------------------------ | <add>| `v10.0.5` | `loader` prop added. | <ide> | `v10.0.1` | `layout` prop added. | <i...
2
Text
Text
fix typo in http.server.requesttimout docs
8354ca5fc57765212b33e6aa7f8eebbc370939b3
<ide><path>doc/api/http.md <ide> the client. <ide> If the timeout expires, the server responds with status 408 without <ide> forwarding the request to the request listener and then closes the connection. <ide> <del>It must be set to a non-zero value (e.g. 120 seconds) to proctect against <add>It must be set to a non-z...
1
Ruby
Ruby
fix some typo in method names, variables
d745d62616bb2b309c0a805387dae2d4e1814d3f
<ide><path>activesupport/test/core_ext/numeric_ext_test.rb <ide> def test_chaining_duration_operations <ide> assert_equal @dtnow.advance(:days => 1).advance(:months => 2), @dtnow + 1.day + 2.months <ide> end <ide> <del> def test_duration_after_convertion_is_no_longer_accurate <add> def test_duration_after_conv...
4
Go
Go
address initial feedback from pr
de083400b8d7c2074d71a30a92e4f3c8bcd8bad8
<ide><path>docker/docker.go <ide> import ( <ide> ) <ide> <ide> func main() { <del> if selfPath := utils.SelfPath(); selfPath == "/sbin/init" || strings.Contains(selfPath, ".dockerinit") { <add> if selfPath := utils.SelfPath(); strings.Contains(selfPath, ".dockerinit") { <ide> // Running in init mode <ide> sysinit....
5
Go
Go
fix verbose for partial overlay id
2e0990f1655d151b741e7f7f78ac55e14398339f
<ide><path>api/server/router/network/network_routes.go <ide> func (n *networkRouter) getNetwork(ctx context.Context, w http.ResponseWriter, r <ide> // return the network. Skipped using isMatchingScope because it is true if the scope <ide> // is not set which would be case if the client API v1.30 <ide> if strings....
2
Javascript
Javascript
prefer double-quotes over single
b9ffc537e66eddc460b5f0d4f7fbdb1880eac96c
<ide><path>lib/buffer.js <ide> Buffer.prototype.readDoubleBE = function(offset, noAssert) { <ide> <ide> function checkInt(buffer, value, offset, ext, max, min) { <ide> if ((value % 1) !== 0 || value > max || value < min) <del> throw TypeError("value is out of bounds"); <add> throw TypeError('value is out of bo...
1
Text
Text
add caveat for network plugins in swarm mode
9ae64de6143451b0c3a3b2fe368b1c365b10e1a4
<ide><path>docs/extend/plugins_network.md <ide> LibNetwork, which shares plugin infrastructure with Engine. Effectively, network <ide> driver plugins are activated in the same way as other plugins, and use the same <ide> kind of protocol. <ide> <add>## Network driver plugins and swarm mode <add> <add>Docker 1.12 adds ...
1
Text
Text
remove outdated troubleshooting section
d6cc1d175534bc8659723f2e13df87d7f5974d2a
<ide><path>README.md <ide> React is [BSD licensed](./LICENSE). We also provide an additional [patent grant] <ide> React documentation is [Creative Commons licensed](./LICENSE-docs). <ide> <ide> Examples provided in this repository and in the documentation are [separately licensed](./LICENSE-examples). <del> <del>## Tr...
1
Go
Go
fix panic with unix socket
9d3ec7b39fcf178eaa9aa1482f0a85c257df4408
<ide><path>commands.go <ide> func (cli *DockerCli) hijack(method, path string, setRawTerminal bool, in io.Rea <ide> if in != nil { <ide> io.Copy(rwc, in) <ide> } <del> if err := rwc.(*net.TCPConn).CloseWrite(); err != nil { <del> utils.Debugf("Couldn't send EOF: %s\n", err) <add> if tcpc, ok := rwc.(*net.TCP...
1
PHP
PHP
remove reverse merged properties
d633532bfb392c9da8e8427d0d5fb708d4c32398
<ide><path>Cake/Test/TestCase/Utility/MergeVariablesTraitTest.php <ide> public function testMergeVarsWithBoolean() { <ide> $this->assertEquals(['test'], $object->hasBoolean); <ide> } <ide> <del>/** <del> * Test that merging reversed works. <del> * <del> * @return void <del> */ <del> public function testMergeVariabl...
2
Text
Text
add 16.5.1 changelog
7a5eecc07354b3aefc9abbf87df7f732a5160297
<ide><path>CHANGELOG.md <ide> <ide> </details> <ide> <add>## 16.5.1 (September 13, 2018) <add> <add>### React <add> <add>* Improve the warning when `React.forwardRef` receives an unexpected number of arguments. ([@andresroberto](https://github.com/andresroberto) in [#13636](https://github.com/facebook/react/issues/13...
1
PHP
PHP
remove unused method
aeac7a45b675810ea10bb419f402d89bdf938ece
<ide><path>src/Mailer/Message.php <ide> public function getBody(?string $type = null) <ide> return $this->message; <ide> } <ide> <del> /** <del> * Get generated message body. <del> * <del> * @param string|null $type Use MESSAGE_* constants or null to return the full message as array <del> ...
1
PHP
PHP
add missing params in docblocks
3ade2155a2af35964ee99f583f0a30d8ce70cb23
<ide><path>src/Illuminate/Database/PDO/Connection.php <ide> public function lastInsertId($name = null) <ide> /** <ide> * Create a new statement instance. <ide> * <del> * @param \PDOStatement <add> * @param \PDOStatement $stmt <ide> * @return \Doctrine\DBAL\Driver\PDO\Statement <ide> *...
4
Text
Text
add my weekly focus
c278224bea4c6239f5003953cc601b5af73353b7
<ide><path>docs/focus/2018-03-12.md <ide> - Teletype <ide> - Released [Teletype 0.10.0](https://github.com/atom/teletype/releases/tag/v0.10.0), introducing a streamlined view of your collaborators' avatars inside the editor ([atom/teletype#332](https://github.com/atom/teletype/issues/332)) <ide> - Tree-sitter <add> ...
1
Javascript
Javascript
remove debug code
609842b76cad3e31f29d1c7fe41c116a8d6da81c
<ide><path>pdf.js <ide> var CanvasGraphics = (function() { <ide> <ide> var fn = sh.get("Function"); <ide> fn = this.xref.fetchIfRef(fn); <del>/* <del> console.log("x0: "+ x0, "y0: "+ y0, "x1: "+ x1, "y1: "+ y1); <del> console.log("size: "+ fn.dict.get("Size")); <del> ...
1
PHP
PHP
remove useless full namespace
c6dde96902deee084eb0f42927278efe4dd0e205
<ide><path>src/Illuminate/Foundation/Providers/SimpleStructureServiceProvider.php <ide> <ide> use Illuminate\Support\ServiceProvider; <ide> <del>class SimpleStructureServiceProvider extends Illuminate\Support\ServiceProvider { <add>class SimpleStructureServiceProvider extends ServiceProvider { <ide> <ide> /** <ide>...
1
Mixed
Go
introduce sandbox entity
fd43ee13238c05266a2626a5281b699f78043a26
<ide><path>libnetwork/README.md <ide> There are many networking solutions available to suit a broad range of use-cases <ide> driverOptions := options.Generic{} <ide> genericOption := make(map[string]interface{}) <ide> genericOption[netlabel.GenericData] = driverOptions <del> err := contro...
54