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
PHP
PHP
trigger an event when authentication is throttled
eefb41ef2c2606b2e88adf33e7e43a135346be8c
<ide><path>src/Illuminate/Auth/Events/Lockout.php <add><?php <add> <add>namespace Illuminate\Auth\Events; <add> <add>use Illuminate\Http\Request; <add> <add>class Lockout <add>{ <add> /** <add> * The throttled request. <add> * <add> * @var \Illuminate\Http\Request <add> */ <add> public $request; <...
3
Javascript
Javascript
add unit test for face3
0e886bf700f880b25f956eda49150fb8c384e5aa
<ide><path>test/unit/core/Face3.js <add>/** <add> * @author simonThiele / https://github.com/simonThiele <add> */ <add> <add>module( "Face3" ); <add> <add>test( "copy", function() { <add> var instance = new THREE.Face3(0, 1, 2, new THREE.Vector3(0, 1, 0), new THREE.Color(0.25, 0.5, 0.75), 2); <add> var copiedInstance =...
1
Python
Python
fix bug in deserialization of convolutional layers
3b76158c490f32e20df1f100ef7308ab000b20e0
<ide><path>keras/layers/convolutional.py <ide> def __init__(self, nb_filter, stack_size, nb_row, nb_col, <ide> super(Convolution2D, self).__init__() <ide> self.init = initializations.get(init) <ide> self.activation = activations.get(activation) <del> self.subsample = subsample <add> ...
1
PHP
PHP
improve code to avoid accessing session
65c8ce3963668aa18093778e29fdcaebc27b4814
<ide><path>src/Auth/Storage/SessionStorage.php <ide> class SessionStorage implements StorageInterface <ide> /** <ide> * User record. <ide> * <del> * @var array <add> * Stores user record array if fetched from session or false if session <add> * does not have user record. <add> * <add> ...
2
Ruby
Ruby
find patch nodes nested inside blocks
ffb1cc8e19abf6da810470d4ce266ab05fe69115
<ide><path>Library/Homebrew/rubocops/patches.rb <ide> def audit_formula(node, _class_node, _parent_class_node, body) <ide> patch_problems(url_string) <ide> end <ide> <del> inline_patches = find_method_calls_by_name(body, :patch) <add> inline_patches = find_every_method_call_by_n...
2
Javascript
Javascript
fix potential permanent deopt
e374e44a8a1bed599379fdcf4b5fe142c5e5187d
<ide><path>lib/events.js <ide> EventEmitter.prototype.prependListener = <ide> }; <ide> <ide> function onceWrapper() { <del> this.target.removeListener(this.type, this.wrapFn); <ide> if (!this.fired) { <add> this.target.removeListener(this.type, this.wrapFn); <ide> this.fired = true; <del> this.listene...
1
PHP
PHP
add new matching logic and add tests
0e5cf92fdbc71086a54aa28317b402cdb3ddeb8b
<ide><path>src/Routing/RouteBuilder.php <ide> public function applyMiddleware(...$names) <ide> * Apply a set of middleware to a group <ide> * <ide> * @param string $name Name of the middleware group <del> * @param array $names Names of the middleware <add> * @param array $middlewareNames Names of...
5
Go
Go
replace custom waiting code with a waitgroup
33286589291a56fe0a4728f8b45ad3feb5494226
<ide><path>graph/push.go <ide> import ( <ide> "io/ioutil" <ide> "os" <ide> "path" <add> "sync" <ide> <ide> log "github.com/Sirupsen/logrus" <ide> "github.com/docker/docker/engine" <ide> func (s *TagStore) pushRepository(r *registry.Session, out io.Writer, repoInfo * <ide> if tag == "" { <ide> nTag = len(localR...
1
Javascript
Javascript
fix weight accumulation
9e625f42488260f19d7a1af768b0312bfdc17e6c
<ide><path>examples/js/postprocessing/MSAAPass.js <ide> THREE.MSAAPass.prototype = { <ide> <ide> // this accumulation strategy is used to prevent decimation at low bit depths with lots of samples. <ide> this.uniforms[ "scale" ].value = weight; <del> weight *= 0.5; <add> weight = 1.0 / (i+1); <ide...
1
Text
Text
add model cards for finbert.
11d8bcc9d7c98cf4aedbb75ee799c1639f0839ea
<ide><path>model_cards/TurkuNLP/bert-base-finnish-cased-v1/README.md <add>--- <add>language: finnish <add>--- <add> <add>## Quickstart <add> <add>**Release 1.0** (November 25, 2019) <add> <add>Download the models here: <add> <add>* Cased Finnish BERT Base: [bert-base-finnish-cased-v1.zip](http://dl.turkunlp.org/finbert...
2
PHP
PHP
use readline in console when supported
916d9921621fb7b278b28a7f2e35d9dc0b412dfe
<ide><path>lib/Cake/Console/ConsoleInput.php <ide> class ConsoleInput { <ide> * @var resource <ide> */ <ide> protected $_input; <add>/** <add> * Can this instance use readline? <add> * Two conditions must be met: <add> * 1. Readline support must be enabled. <add> * 2. Handle we are attached to must be stdin. <add> *...
1
Python
Python
enable token match
62443d495a877ecadcdbe28e368a2a70adc79728
<ide><path>spacy/lang/id/__init__.py <ide> <ide> from .stop_words import STOP_WORDS <ide> from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_PREFIXES, TOKENIZER_INFIXES <del>from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS <add>from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS, TOKEN_MATCH <ide> from .n...
1
Python
Python
improve computation of scaled companion matrices
0650d04078666997c3dac3beec6fe872dca797dd
<ide><path>numpy/polynomial/hermite.py <ide> def hermcompanion(c): <ide> <ide> n = len(c) - 1 <ide> mat = np.zeros((n, n), dtype=c.dtype) <del> scl = np.hstack((1., np.sqrt(2.*np.arange(1, n)))) <del> scl = np.multiply.accumulate(scl) <add> scl = np.hstack((1., 1./np.sqrt(2.*np.arange(n - 1, 0, -1))))...
2
Javascript
Javascript
use forced tests
009772cb20bed0d5fb192b39fac48a2a84b03ad2
<ide><path>test/ConfigTestCases.test.js <ide> "use strict"; <ide> <del>/* globals describe it */ <del>require("should"); <add>/* globals describe expect it fit */ <ide> const path = require("path"); <ide> const fs = require("fs"); <ide> const vm = require("vm"); <ide> const mkdirp = require("mkdirp"); <del>const Test ...
2
PHP
PHP
fix typo and move below other where methods
77c577a4ac1c431c6012d24e6c64cdc59e9e9327
<ide><path>src/Illuminate/Testing/Fluent/Concerns/Matching.php <ide> <ide> trait Matching <ide> { <del> /** <del> * Assets that all values exist and match their expected values. <del> * <del> * @param string $key <del> * @param array|string $expected <del> * <del> * @return $this <del>...
1
Java
Java
combine refcount tests
9e353ffe8c8fcb11585c824eeed93728f769cb06
<ide><path>src/test/java/rx/RefCountTests.java <del>/** <del> * Copyright 2014 Netflix, Inc. <del> * <del> * Licensed under the Apache License, Version 2.0 (the "License"); <del> * you may not use this file except in compliance with the License. <del> * You may obtain a copy of the License at <del> * <del> * http://w...
2
Ruby
Ruby
add xcode 2.5 compiler
b31f6c0099e344253bf5dfb8bc1202d7b4c70f83
<ide><path>Library/Homebrew/os/mac.rb <ide> def preferred_arch <ide> end <ide> <ide> STANDARD_COMPILERS = { <add> "2.5" => { :gcc_40_build => 5370 }, <ide> "3.1.4" => { :gcc_40_build => 5493, :gcc_42_build => 5577 }, <ide> "3.2.6" => { :gcc_40_build => 5494, :gcc_42_build => 5666, :llvm_buil...
1
Text
Text
update v5.4 changelog
7f7eb7cd089e72743702e02c278b2bf532d650b6
<ide><path>CHANGELOG-5.4.md <ide> # Release Notes for 5.4.x <ide> <add>## [Unreleased] <add> <add>### Changed <add>- Renamed `MakeAuthCommand` to `AuthMakeCommand` ([#20216](https://github.com/laravel/framework/pull/20216)) <add>- Don't use `asset()` helper inside `mix()` ([#20197](https://github.com/laravel/framework...
1
PHP
PHP
remove stub response
4e924ff45ab92e2cfae56b649b784a8cc57b9e45
<ide><path>src/TestSuite/Stub/Response.php <del><?php <del>/** <del> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <del> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <del> * <del> * Licensed under The MIT License <del> * For full copyright and license information, plea...
1
Java
Java
add websocketclient for undertow
b4b7b163d1197caa338ea17c026ee862526b0ef5
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/socket/adapter/UndertowWebSocketHandlerAdapter.java <ide> import io.undertow.websockets.core.CloseMessage; <ide> import io.undertow.websockets.core.WebSocketChannel; <ide> import io.undertow.websockets.spi.WebSocketHttpExchange; <add> <ide> i...
4
Ruby
Ruby
convert two hash lookups into one
25ed6627ddac95a95f1d58d3202518544cebdd35
<ide><path>actionview/lib/action_view/helpers/tag_helper.rb <ide> module TagHelper <ide> visible).to_set <ide> <ide> BOOLEAN_ATTRIBUTES.merge(BOOLEAN_ATTRIBUTES.map(&:to_sym)) <add> BOOLEAN_ATTRIBUTES.freeze <ide> <del> TAG_PREFIXES = ["aria", "data", :aria, :data].to_set...
1
Javascript
Javascript
apply automatic lint fixes for _inspect.js
ea47bd2137eb5d2b8887748a237c11cb5d5a9897
<ide><path>lib/internal/inspector/_inspect.js <ide> class NodeInspector { <ide> <ide> print(text, appendNewline = false) { <ide> this.clearLine(); <del> this.stdout.write(appendNewline ? `${text}\n` : text); <add> this.stdout.write(appendNewline ? `${text}\n` : text); <ide> } <ide> <del> #stdioBuffers...
1
Javascript
Javascript
improve angular.widget docs
e09a78438f9c4a43aec6fefed9efd58a0b4060de
<ide><path>src/widgets.js <ide> * @name angular.widget <ide> * @description <ide> * <del> * Widgets are custom DOM elements. An angular widget can be either a custom <del> * attribute that modifies an existing DOM elements or an entirely new DOM element. <add> * An angular widget can be either a custom attribute th...
1
Text
Text
add extends for derived classes
fd964de1b7df1d97b228b1196ecbc312e162ea8f
<ide><path>doc/api/fs.md <ide> value is determined by the `options.encoding` passed to [`fs.readdir()`][] or <ide> added: v0.5.8 <ide> --> <ide> <add>* Extends {EventEmitter} <add> <ide> A successful call to [`fs.watch()`][] method will return a new `fs.FSWatcher` <ide> object. <ide> <del>All `fs.FSWatcher` objects a...
1
Mixed
Text
fix typos and improve the documentation
6345f31fbfb4a683f98a3d13dc73c20533d0e0b7
<ide><path>activerecord/test/cases/connection_management_test.rb <ide> def test_connections_closed_if_exception_and_explicitly_not_test <ide> assert ActiveRecord::Base.connection_handler.active_connections? <ide> end <ide> <del> test "proxy is polite to it's body and responds to it" do <add> te...
11
Javascript
Javascript
fix jsdoc type expressions
332e935048d161764046b43fe6599e1db2afc3b6
<ide><path>src/Angular.js <ide> function reverseParams(iteratorFn) { <ide> * the number string gets longer over time, and it can also overflow, where as the nextId <ide> * will grow much slower, it is a string, and it will never overflow. <ide> * <del> * @returns an unique alpha-numeric string <add> * @returns {stri...
15
Javascript
Javascript
set the tabindex on the input element
408070e9138a8ee4cc2b30b8a16583058072e4d0
<ide><path>src/text-editor-component.js <ide> class TextEditorComponent { <ide> style, <ide> attributes, <ide> dataset, <del> tabIndex: this.tabIndex, <add> tabIndex: -1, <ide> on: {mousewheel: this.didMouseWheel} <ide> }, <ide> $.div( <ide> class TextEditorComp...
1
Javascript
Javascript
remove redundant condition
180a997da5fffa619a468eec2f391cdd75aa06dc
<ide><path>src/ajax/jsonp.js <ide> jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) { <ide> rjsonp.test( data ); <ide> <ide> // Handle iff the expected data type is "jsonp" or we have a parameter to set <del> if ( s.dataTypes[ 0 ] === "jsonp" || hasCallback && <del> ( replaceInUrl || rep...
1
Javascript
Javascript
fix coding style in make.js
855b96990c7c3d9db73cb4cc60686461637ac1be
<ide><path>make.js <ide> var DEFINES = { <ide> target.all = function() { <ide> // Don't do anything by default <ide> echo('Please specify a target. Available targets:'); <del> for (var t in target) <del> if (t !== 'all') echo(' ' + t); <add> for (var t in target) { <add> if (t !== 'all') { <add> echo(...
1
Ruby
Ruby
remove dead code
7da98d0a590d74027e6595da8a85ea3b4195c51c
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def constraint_args(constraint, request) <ide> class Mapping #:nodoc: <ide> IGNORE_OPTIONS = [:to, :as, :via, :on, :constraints, :defaults, :only, :except, :anchor, :shallow, :shallow_path, :shallow_prefix, :format] <ide> ANCHOR_CHA...
1
Javascript
Javascript
fix serviceworker call on http
769cb49c309354429bd5161485c547fd3c7d9a40
<ide><path>lib/router/router.js <ide> if (typeof window !== 'undefined' && typeof navigator.serviceWorker !== 'undefin <ide> registration.unregister() <ide> }) <ide> }) <add> .catch(() => {}) <ide> } <ide> <ide> export default class Router {
1
PHP
PHP
fix present count
505957ad634e8d107507755075c8d41805c28098
<ide><path>src/Illuminate/Validation/Validator.php <ide> protected function getPresentCount($attributes) <ide> <ide> foreach ($attributes as $key) <ide> { <del> if ( ! is_null(array_get($this->data, $key, null)) || ! is_null(array_get($this->files, $key, null))) <add> if (array_get($this->data, $key) || array_...
1
Go
Go
avoid recursive rlock
bd4f66c8f1f6ad4a2f228a957f293bc157e13d9c
<ide><path>daemon/cluster/tasks.go <ide> import ( <ide> <ide> // GetTasks returns a list of tasks matching the filter options. <ide> func (c *Cluster) GetTasks(options apitypes.TaskListOptions) ([]types.Task, error) { <del> c.mu.RLock() <del> defer c.mu.RUnlock() <add> var r *swarmapi.ListTasksResponse <ide> <del> st...
1
Text
Text
add other values of the target attribute
d2c2fa0ce61046b5aae2f7f9566dc7dbd661dc2e
<ide><path>guide/english/html/attributes/links/index.md <ide> You use an anchor element/tag `<a>` to define your link, which also needs a dest <ide> ```html <ide> <a href="url">Link Text</a> <ide> ``` <add> <add>The target attribute can be used to tell the browser where to open the link. If you'd like your link to ope...
1
Javascript
Javascript
fix morphblendmesh setanimationfps()
0ffea7b8f2a80eff8e8c4d90880b8c75e01a40f5
<ide><path>src/extras/objects/MorphBlendMesh.js <ide> THREE.MorphBlendMesh.prototype.createAnimation = function ( name, start, end, fp <ide> <ide> var animation = { <ide> <del> startFrame: start, <del> endFrame: end, <add> start: start, <add> end: end, <ide> <ide> length: end - start + 1, <ide> <ide> THREE.M...
1
PHP
PHP
append to helper instead
222e5c62c7a013bd4cb0c749bfea69f0988943bd
<ide><path>src/Illuminate/Support/Facades/Config.php <ide> */ <ide> class Config extends Facade { <ide> <del> /** <del> * Assign high numeric IDs to a config item to force appending. <del> * <del> * @param array $array <del> * @return array <del> */ <del> public static function append(array $array) <del> { <de...
2
PHP
PHP
add insert into ... select support
9b15e82aa904828af7ae9a608328ff84a4e8bcda
<ide><path>lib/Cake/Model/Datasource/Database/Expression/ValuesExpression.php <ide> */ <ide> namespace Cake\Model\Datasource\Database\Expression; <ide> <add>use Cake\Error; <ide> use Cake\Model\Datasource\Database\Expression; <ide> use Cake\Model\Datasource\Database\Query; <ide> use \Countable; <ide> class ValuesExpr...
3
Text
Text
add watson to collaborators
3dfce5cdad554d2eabd001a4a917efa143739711
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> **Vse Mozhet Byt** &lt;vsemozhetbyt@gmail.com&gt; (he/him) <ide> * [watilde](https://github.com/watilde) - <ide> **Daijiro Wachi** &lt;daijiro.wachi@gmail.com&gt; (he/him) <add>* [watson](https://github.com/watson) - ...
1
Ruby
Ruby
allow on_os blocks
1f8ebf5d20f81aea87b95710a2841134dbfa4a32
<ide><path>Library/Homebrew/extend/os/linux/resource.rb <add># frozen_string_literal: true <add> <add>class Resource <add> undef on_linux <add> <add> def on_linux(&_block) <add> yield <add> end <add>end <ide><path>Library/Homebrew/extend/os/mac/resource.rb <add># frozen_string_literal: true <add> <add>class Resou...
7
Java
Java
add missing license headers
9315ec4176017d6ee44f38ec9947c337eff4f4bf
<ide><path>src/main/java/io/reactivex/internal/operators/flowable/FlowableJoin.java <add>/** <add> * Copyright 2016 Netflix, Inc. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in <add> * compliance with the License. You may obtain a copy of the License ...
3
Text
Text
add note about promise polyfill
7cab0a05934512c90b9dfc7ea6d95935125b4077
<ide><path>README.md <ide> Check out webpack's quick [**Get Started**](https://webpack.js.org/get-started/) <ide> ### Browser Compatibility <ide> <ide> Webpack supports all browsers that are [ES5-compliant](http://kangax.github.io/compat-table/es5/) (IE8 and below are not supported). <add>webpack also needs `Promise` ...
1
Python
Python
fix regression in pr .
b89ed2f338a5810ee785c3fd20c0fe057d3d4612
<ide><path>celery/canvas.py <ide> from celery.local import try_import <ide> from celery.result import GroupResult, allow_join_result <ide> from celery.utils import abstract <add>from celery.utils.collections import ChainMap <ide> from celery.utils.functional import _regen <ide> from celery.utils.functional import chunk...
1
Javascript
Javascript
improve test coverage and fix minor issues found
f5b4a0fa3c933ac443b66cfa3e0198f4f342a410
<ide><path>src/core/core.animations.js <ide> export default class Animations { <ide> animatedProps.set(prop, Object.assign({}, animDefaults, cfg)); <ide> } else if (prop === key) { <ide> // Single property targetting config wins over multi-targetting. <del> animatedProps.set(prop, Object.assign({}, an...
8
Java
Java
add missing license headers
421f98e5a189dc60b4bc6f35523c78cb7731d345
<ide><path>src/main/java/io/reactivex/observers/LambdaConsumerIntrospection.java <add>/** <add> * Copyright (c) 2016-present, RxJava Contributors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in <add> * compliance with the License. You may obtain a cop...
4
Javascript
Javascript
update current route upon $route instantiation
308598795af75c33a966ecb3124f4a640d72458d
<ide><path>src/ngRoute/route.js <ide> function $RouteProvider(){ <ide> } <ide> }; <ide> <del> updateRoute(); <ide> $rootScope.$on('$locationChangeSuccess', updateRoute); <ide> <ide> return $route; <ide><path>test/ngRoute/routeSpec.js <ide> describe('$route', function() { <ide> var...
2
Python
Python
improve test_long_str and add documentation
235d957a427bc2f18642475a9c65063cf0580d6c
<ide><path>numpy/lib/tests/test_format.py <ide> def test_roundtrip(): <ide> yield assert_array_equal, arr, arr2 <ide> <ide> def test_long_str(): <del> long_str_arr = np.ones(1, dtype=np.dtype((str, format.BUFFER_SIZE+1))) <add> # check items larger than internal buffer size, gh-4027 <add> long_str_arr...
1
Javascript
Javascript
reduce memory retention when streaming small files
e3a47025ac0c8e89b73b91b137bb70f6b2f3d73a
<ide><path>lib/internal/fs/streams.js <ide> const util = require('util'); <ide> const kMinPoolSpace = 128; <ide> <ide> let pool; <add>// It can happen that we expect to read a large chunk of data, and reserve <add>// a large chunk of the pool accordingly, but the read() call only filled <add>// a portion of it. If a c...
2
Text
Text
add opensuse command line to pre-requisites
4314e0b9b51b719cc86ae1b0f70e8b306ad8ff8f
<ide><path>README.md <ide> Prerequisites <ide> - **Windows**: [Visual Studio](http://www.visualstudio.com/downloads/download-visual-studio-vs#d-express-windows-8) <ide> - **Ubuntu**: `sudo apt-get install build-essential` <ide> - **Fedora**: `sudo yum groupinstall "Development Tools"` <add> - **OpenSUSE**: `sudo zyp...
1
PHP
PHP
remove useless methods and make in_array typehint
93ae9b92a721792927f553c47a95ece2e6e9896b
<ide><path>src/Utility/Text.php <ide> public static function truncate($text, $length = 100, array $options = []) <ide> preg_match_all('/(<\/?([\w+]+)[^>]*>)?([^<>]*)/', $text, $tags, PREG_SET_ORDER); <ide> foreach ($tags as $tag) { <ide> $contentLength = 0; <del> i...
1
Javascript
Javascript
continue normalizing fixtures use
9a5c3cf185c6e9c4fb9264cf8e61a74a5d697ff9
<ide><path>test/async-hooks/test-graph.tls-write.js <ide> if (!common.hasIPv6) <ide> <ide> const initHooks = require('./init-hooks'); <ide> const verifyGraph = require('./verify-graph'); <del>const fs = require('fs'); <ide> const tls = require('tls'); <del>const path = require('path'); <add>const fixtures = require('....
24
Ruby
Ruby
require redis 4+ in action cable
7559957ba20570a5c561cfdd1161142d82eca6c2
<ide><path>actioncable/lib/action_cable/subscription_adapter/redis.rb <ide> # frozen_string_literal: true <ide> <del>gem "redis", ">= 3", "< 5" <add>gem "redis", ">= 4", "< 6" <ide> require "redis" <ide> <ide> require "active_support/core_ext/hash/except" <ide> def initialize(adapter, event_loop) <ide> <ide> ...
1
Javascript
Javascript
update code style
97c9defb42634425cfa5e5795b846c62f9a784c2
<ide><path>editor/js/Menubar.Add.js <ide> Menubar.Add = function ( editor ) { <ide> // OrthographicCamera <ide> <ide> var option = new UI.Row(); <del> option.setClass('option'); <del> option.setTextContent(strings.getKey('menubar/add/orthographiccamera')); <del> option.onClick(function(){ <add> option.setClass( 'opt...
3
Javascript
Javascript
fix finished typo
21bd6679ce150e193cacd4b1b6585928224f255a
<ide><path>lib/internal/streams/end-of-stream.js <ide> function eos(stream, opts, callback) { <ide> }; <ide> <ide> let writableFinished = stream.writableFinished || <del> (rState && rState.finished); <add> (wState && wState.finished); <ide> const onfinish = () => { <ide> writable = false; <ide> wri...
2
Text
Text
correct the command to install grunt
1c3567e2cf31999c12279ff07adbf996c1cceb63
<ide><path>CONTRIBUTING.md <ide> If you are submitting a bug, please create a [jsfiddle](http://jsfiddle.net/) de <ide> Contributing <ide> ============ <ide> <del>To contribute, fork the library and install grunt. <add>To contribute, fork the library and install grunt and dependencies. <ide> <del> npm install grun...
1
Javascript
Javascript
add deprecation notice to swipeablelistview
99471f87b944b26bbdaa0fb0881db91c1118b741
<ide><path>Libraries/react-native/react-native-implementation.js <ide> const invariant = require('fbjs/lib/invariant'); <ide> <ide> let showedListViewDeprecation = false; <add>let showedSwipeableListViewDeprecation = false; <ide> <ide> // Export React, plus some native additions. <ide> module.exports = { <ide> module...
1
Javascript
Javascript
remove unused import
4e6d6d206c596d96bf4335f1bb64e8e57513ea65
<ide><path>packages/next-polyfill-nomodule/src/index.js <ide> import 'core-js/features/array/from' <ide> import 'core-js/features/array/includes' <ide> import 'core-js/features/array/iterator' <ide> import 'core-js/features/array/of' <del>import 'core-js/features/array/species' <ide> import 'core-js/features/function/h...
1
Python
Python
fix conn_type parsing from uris
7d0a95d4b78e95eb528e51eca71baf14fe03b43c
<ide><path>airflow/models.py <ide> def __init__( <ide> schema=None, port=None, extra=None, <ide> uri=None): <ide> self.conn_id = conn_id <del> self.conn_type = conn_type <ide> if uri: <ide> self.parse_from_uri(uri) <ide> else: <add> self.conn...
1
Javascript
Javascript
address flaky worker test
f93a19b428ffb80f1b5bf918744983f9a25bdced
<ide><path>test/parallel/test-worker-message-port-transfer-closed.js <ide> testSingle(port1, port2); <ide> port2.close(common.mustCall(testBothClosed)); <ide> testBothClosed(); <ide> <del>setTimeout(common.mustNotCall('The communication channel is still open'), <del> common.platformTimeout(1000)).unref(); <a...
1
Go
Go
remove unnescessary conversions (unconvert)
7c40c0a9227089a7e3ee7c23c2bc0685ed133391
<ide><path>integration-cli/daemon/daemon.go <ide> func (d *Daemon) CheckActiveContainerCount(c *testing.T) (interface{}, string) { <ide> if len(strings.TrimSpace(out)) == 0 { <ide> return 0, "" <ide> } <del> return len(strings.Split(strings.TrimSpace(out), "\n")), fmt.Sprintf("output: %q", string(out)) <add> return...
22
Python
Python
add algorithm for newton's law of gravitation
660d2bb66c8ca03e2225090b5c638ffb0fd14a60
<ide><path>physics/newtons_law_of_gravitation.py <add>""" <add>Title : Finding the value of either Gravitational Force, one of the masses or distance <add>provided that the other three parameters are given. <add> <add>Description : Newton's Law of Universal Gravitation explains the presence of force of <add>attraction ...
1
Python
Python
fix broken test
72c25dd9717a6c69967734a9dddf13f800e60843
<ide><path>libcloud/test/compute/test_ec2.py <ide> def test_list_sizes(self): <ide> self.assertTrue('m2.4xlarge' in ids) <ide> <ide> if region_name == 'us-east-1': <del> self.assertEqual(len(sizes), 29) <add> self.assertEqual(len(sizes), 30) <ide> s...
1
Python
Python
fix syntax error, add a comment
1d0b2eeeb710ecbf3f65a34df3c38170a78a5216
<ide><path>libcloud/dns/drivers/gandi.py <ide> def delete_zone(self, zone): <ide> return res.object <ide> <ide> def _to_record(self, record, zone): <del> extras = {'ttl': record['ttl']} <add> extra = {'ttl': record['ttl']} <ide> value = record['value'] <ide> if record['type'] ...
1
Text
Text
add tip for comment keyboard shortcut.
91add57a9c9f6886675b34c706b161d38d510f51
<ide><path>guide/english/html/comments-in-html/index.md <ide> It is a good practice to add comments to your code, especially when working with <ide> <ide> Comments are started with `<!--` and ended with `-->`, and can span multiple lines. They can contain code or text, and won't appear on the front-end of the website ...
1
PHP
PHP
fix incorrect radio selection with falsey values
0f0b5e7668e9cf8160efea26b9f0e84b35fa3262
<ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php <ide> public function testRadio() { <ide> ); <ide> $this->assertTags($result, $expected); <ide> <del> $result = $this->Form->radio('Model.field', array('1' => 'Yes', '0' => 'No'), array('value' => '1')); <del> $expected = array( <del> 'fieldset' => a...
2
Ruby
Ruby
remove dead code
a8d0084c692af41b63c39fb956f3d5ce5516121f
<ide><path>actionpack/lib/action_controller/base.rb <ide> def _protected_ivars # :nodoc: <ide> PROTECTED_IVARS <ide> end <ide> <del> def self.protected_instance_variables <del> PROTECTED_IVARS <del> end <del> <ide> ActiveSupport.run_load_hooks(:action_controller, self) <ide> end <ide> end
1
Ruby
Ruby
add help message for uconv
d4e3fb45cbcab862fa8fd023a9955d5be5058d75
<ide><path>Library/Homebrew/missing_formula.rb <ide> def blacklisted_reason(name) <ide> cargo is part of the rust formula: <ide> brew install rust <ide> EOS <add> when "uconv" then <<~EOS <add> uconv is part of the icu4c formula: <add> brew install icu4c <add> ...
1
Ruby
Ruby
move blackbox to the boneyard
b7060ebc438acb84664cf91c5bba7e60c1961566
<ide><path>Library/Homebrew/tap_migrations.rb <ide> 'denyhosts' => 'homebrew/boneyard', <ide> 'ipopt' => 'homebrew/science', <ide> 'qfits' => 'homebrew/boneyard', <add> 'blackbox' => 'homebrew/boneyard', <ide> }
1
PHP
PHP
change method order
f51a59e7e18262874a4af20634da34430100876f
<ide><path>src/Illuminate/Queue/SyncQueue.php <ide> protected function resolveJob($payload) <ide> } <ide> <ide> /** <del> * Handle the failed job. <add> * Raise the after queue job event. <ide> * <ide> * @param \Illuminate\Contracts\Queue\Job $job <del> * @return array <add> * @retu...
1
Ruby
Ruby
apply suggestions from code review
759708fae7dd3c9e5867ae42be34631dfe535964
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit <ide> style_results = Style.check_style_json(style_files, options) if style_files <ide> # load licenses <ide> spdx = HOMEBREW_LIBRARY_PATH/"data/spdx.json" <del> spdx_data = File.open(spdx, "r") do |file| <del> JSON.parse(file.read) <del> ...
2
Go
Go
fix error message on firewalld init
38b5c7266a14c34624bba532cb74d8b2ae46c726
<ide><path>daemon/networkdriver/bridge/driver.go <ide> func InitDriver(config *Config) error { <ide> } <ide> <ide> if config.EnableIptables { <del> iptables.FirewalldInit() <add> if err := iptables.FirewalldInit(); err != nil { <add> logrus.Debugf("Error initializing firewalld: %v", err) <add> } <ide> } <ide> ...
3
Javascript
Javascript
update flakey unoptimized image test
06d2380937ad7597a8d7cce2f57d444f733ae79c
<ide><path>test/integration/image-component/unoptimized/test/index.test.js <ide> function runTests() { <ide> await browser.elementById('eager-image').getAttribute('srcset') <ide> ).toBeNull() <ide> <del> await browser.eval( <del> `document.getElementById("internal-image").scrollIntoView({behavior: "s...
1
Java
Java
fix race when flushing messages
28174744a74e08cc974a54041e304dc4aafa5334
<ide><path>spring-websocket/src/main/java/org/springframework/web/messaging/stomp/support/StompRelayPubSubMessageHandler.java <ide> import java.util.concurrent.BlockingQueue; <ide> import java.util.concurrent.ConcurrentHashMap; <ide> import java.util.concurrent.LinkedBlockingQueue; <del>import java.util.concurrent.atom...
1
PHP
PHP
remove the 'line indented incorrectly' phpcs error
cb42b056ac7aac9f166dd3d9e5cd35ade3e513c0
<ide><path>lib/Cake/Model/Datasource/DboSource.php <ide> public function prepareFields(Model $Model, $queryData) { <ide> if (empty($queryData['fields'])) { <ide> $queryData['fields'] = $this->fields($Model); <ide> <del> // hasMany relationships need the $Model primary key. <ide> } elseif (!empty($Model->hasMan...
1
Javascript
Javascript
prevent collision in project name with hash
e0db9777ba3a571c6595da8da0210b7caa221cbe
<ide><path>src/config.js <ide> const { <ide> const Color = require('./color') <ide> const ScopedPropertyStore = require('scoped-property-store') <ide> const ScopeDescriptor = require('./scope-descriptor') <add>const crypto = require('crypto') <ide> <ide> // Essential: Used to access all of Atom's configuration details...
1
Javascript
Javascript
fix perf suite broken by descriptor change
5158a022dfd83a0dc9c3148bd3ed997716940392
<ide><path>perf/tests/todolist-add.js <ide> exports.defer = true; <ide> exports.setup = function(){ <ide> /*global*/_rootNode = document.createElement('div'); <ide> document.body.appendChild(_rootNode); <del> /*global*/_app = todolist.App({ fakeDataCount: 333 }); <del> React.renderComponent(_app, _rootNode); <add...
3
Text
Text
add a readme for benchmark tests
329103540c87becb0d9ee07478b0704f4d90af74
<ide><path>benchmark/README.md <add># Node.js core benchmark tests <add> <add>This folder contains benchmark tests to measure the performance for certain <add>Node.js APIs. <add> <add>## How to run tests <add> <add>There are two ways to run benchmark tests: <add> <add>1. Run all tests of a given type, for example, buff...
1
Ruby
Ruby
fix display of build error options
c2d23838d087b06487c4735f8b4183f0ba1a05f7
<ide><path>Library/Homebrew/utils/analytics.rb <ide> def report_build_error(exception) <ide> return if exception.formula.tap.private? <ide> <ide> action = exception.formula.full_name <del> if (options = exception.options) <add> if (options = exception.options&.to_a&.join(" ")) <ide> ...
1
Javascript
Javascript
fix babel only regexp on windows
6b1bc4ad74310558b86d57186ce28eebf705a7a8
<ide><path>setupBabel.js <ide> const BABEL_ENABLED_PATHS = [ <ide> */ <ide> function buildRegExps(basePath, dirPaths) { <ide> return dirPaths.map(folderPath => <del> new RegExp(`^${escapeRegExp(path.resolve(basePath, folderPath))}`) <add> // Babel `only` option works with forward slashes in the RegExp so repla...
1
Python
Python
switch params and example
e774e3a69eeb9a811a22e73ff87267e8bf4f9027
<ide><path>flask/helpers.py <ide> def send_file(filename_or_fp, mimetype=None, as_attachment=False, <ide> def safe_join(directory, filename): <ide> """Safely join `directory` and `filename`. <ide> <del> :param directory: the base directory. <del> :param filename: the untrusted filename relative to that direc...
1
Javascript
Javascript
add errorutils to global variables
76af5f916303d7906ea522076c965292145a1370
<ide><path>packages/eslint-config-react-native-community/index.js <ide> module.exports = { <ide> clearTimeout: false, <ide> console: false, <ide> document: false, <add> ErrorUtils: false, <ide> escape: false, <ide> Event: false, <ide> EventTarget: false,
1
Ruby
Ruby
find sequences with pg schemas properly
055c6fb010417f7e5f8596a63075fc86ff35c54a
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb <ide> def reset_pk_sequence!(table, pk = nil, sequence = nil) #:nodoc: <ide> end <ide> <ide> if pk && sequence <del> quoted_sequence = quote_column_name(sequence) <del> <add> quoted_sequence = quote_ta...
1
Text
Text
update verbiage on guide faq
786e7643ff5f8e4bdb552e9bf60b8b975ba012c9
<ide><path>docs/index.md <ide> Read our [How to Contribute to Open Source Guide](https://github.com/freeCodeCam <ide> <ide> ### Where are the Guide articles (guide.freecodecamp.org)? <ide> <del>We have permanently sunset the general guide articles, in favour of high quality tutorials on freeCodeCamp news. The challen...
1
PHP
PHP
add stub class for curl adapter
a18fd54b501487253b5d3e2913df5a3c999de51e
<ide><path>src/Http/Client.php <ide> use Cake\Core\Exception\Exception; <ide> use Cake\Core\InstanceConfigTrait; <ide> use Cake\Http\Client\AdapterInterface; <add>use Cake\Http\Client\Adapter\Curl; <ide> use Cake\Http\Client\Adapter\Stream; <ide> use Cake\Http\Client\Request; <ide> use Cake\Http\Cookie\CookieCollection...
2
Text
Text
simplify worker_threads.md text
b5fdb9e65ae99732a40b09456ba1c8db18431ee6
<ide><path>doc/api/worker_threads.md <ide> const worker = require('worker_threads'); <ide> ``` <ide> <ide> Workers (threads) are useful for performing CPU-intensive JavaScript operations. <del>They will not help much with I/O-intensive work. Node.js’s built-in asynchronous <del>I/O operations are more efficient than W...
1
Go
Go
use ioctls to create bridge
885056b2439a1a978be2b7df02c6c04c82694d94
<ide><path>libnetwork/drivers/bridge/setup_device.go <ide> package bridge <ide> <ide> import ( <del> log "github.com/Sirupsen/logrus" <ide> "github.com/docker/docker/pkg/parsers/kernel" <del> "github.com/docker/libnetwork/netutils" <del> "github.com/docker/libnetwork/types" <add> bri "github.com/docker/libcontainer/n...
1
Text
Text
add beta installation instruction
418cc210fab3a49820ac2781c184397a4c8a02f4
<ide><path>readme.md <ide> Next.js is a minimalistic framework for server-rendered React applications. <ide> <ide> Install it: <ide> <add>#### Beta <add> <add>The beta has support for the latest version of React (v16) and is actively being developed upon. <add> <add>```bash <add>npm install next@beta react react-dom ...
1
Go
Go
replace uses of deprecated iserr...notfound()
919726b5dbf7f063f82eac2f5384966fc7271710
<ide><path>client/checkpoint_list_test.go <ide> func TestCheckpointListContainerNotFound(t *testing.T) { <ide> } <ide> <ide> _, err := client.CheckpointList(context.Background(), "unknown", types.CheckpointListOptions{}) <del> if err == nil || !IsErrContainerNotFound(err) { <add> if err == nil || !IsErrNotFound(err)...
8
Text
Text
use json instead of coffeescript in code block
def2001eb626515c39b09d0c48ba9827a2e58ace
<ide><path>docs/your-first-package.md <ide> Now we need to convert the selected text to ascii art. To do this we will use <ide> the [figlet node module](https://npmjs.org/package/figlet) from NPM. Open <ide> _package.json_ add the latest version of figlet to the dependencies: <ide> <del>```coffeescript <add>```json <i...
1
Text
Text
update github url for vim syntax plugin
adaed9b6f7204d00a2153323f26d747583027cc8
<ide><path>contrib/syntax/vim/README.md <ide> Installation <ide> With [pathogen](https://github.com/tpope/vim-pathogen), the usual way... <ide> <ide> With [Vundle](https://github.com/gmarik/Vundle.vim) <del> <del> Plugin 'docker/docker' , {'rtp': '/contrib/syntax/vim/'} <add> <add> Plugin 'moby/moby' , {'rtp':...
1
Ruby
Ruby
run railties tests in parallel, default to 2 cores
265f13495fb326bd2e6a5bc9cae7e297e42893d0
<ide><path>activesupport/lib/active_support/testing/isolation.rb <ide> def method_missing(name, *args) <ide> end <ide> <ide> module Isolation <add> require 'thread' <add> <add> class ParallelEach <add> include Enumerable <add> <add> # default to 2 cores <add> CORES = ENV['TEST_CO...
2
Ruby
Ruby
clarify example of the test [ci skip]
f54060916fbb5450cceedaf7187e8e6bed5d44a3
<ide><path>actionpack/lib/action_dispatch/testing/test_process.rb <ide> module TestProcess <ide> module FixtureFile <ide> # Shortcut for <tt>Rack::Test::UploadedFile.new(File.join(ActionDispatch::IntegrationTest.fixture_path, path), type)</tt>: <ide> # <del> # post :change_avatar, avatar: fixture...
1
Javascript
Javascript
ignore any pending data when worker is terminated
8d15ecb14b8b5fb451907b79ad369118325a255c
<ide><path>src/display/api.js <ide> var WorkerTransport = (function WorkerTransportClosure() { <ide> }, this); <ide> <ide> messageHandler.on('commonobj', function transportObj(data) { <add> if (this.destroyed) { <add> return; // Ignore any pending requests if the worker was terminated. <add...
1
PHP
PHP
remove empty comments
aaefef40a55f85296756c7348f9d42518d492015
<ide><path>tests/TestCase/Filesystem/FileTest.php <ide> public function baseNameValueProvider() <ide> ['نام فارسی.txt', null, true], <ide> ['/نام.txt', null, true], <ide> ['/نام فارسی.txt', null, true], <del> // <ide> ['folder/نام.txt', 'txt', false], <ide> ...
1
Javascript
Javascript
add types and fix incorrect loc type
b93225a6a120a4155c118a0c1a5f4b0823863c41
<ide><path>lib/Dependency.js <ide> const DependencyReference = require("./dependencies/DependencyReference"); <ide> */ <ide> <ide> /** @typedef {Object} SourcePosition <del> * @property {number} column <ide> * @property {number} line <add> * @property {number=} column <ide> */ <ide> <ide> /** @typedef {Object} ...
4
Javascript
Javascript
add a util function for tostring'ing objects
f9b99cdc0cacbeb6d6105cdc9ff0af9395bcf873
<ide><path>packages/ember-metal/lib/utils.js <ide> export function tryInvoke(obj, methodName, args) { <ide> // TYPING & ARRAY MESSAGING <ide> // <ide> <del>var toString = Object.prototype.toString; <add>var objectToString = Object.prototype.toString; <ide> <ide> /** <ide> Forces the passed object to be part of an a...
2
Python
Python
enable task run setting to be able reinitialise
2ba2753304461c2db46a7734ef5944e9a4d1e2b5
<ide><path>airflow/settings.py <ide> SQL_ALCHEMY_CONN: Optional[str] = None <ide> PLUGINS_FOLDER: Optional[str] = None <ide> LOGGING_CLASS_PATH: Optional[str] = None <add>DONOT_MODIFY_HANDLERS: Optional[bool] = None <ide> DAGS_FOLDER: str = os.path.expanduser(conf.get('core', 'DAGS_FOLDER')) <ide> <ide> engine: Option...
1
Python
Python
fix md5 for windows
b190b1fa53426581ac6db9711b3fe24ddc42be63
<ide><path>test/test.py <ide> def verifyPDFs(manifestList): <ide> for item in manifestList: <ide> f = item['file'] <ide> if os.access(f, os.R_OK): <del> fileMd5 = hashlib.md5(open(f).read()).hexdigest() <add> fileMd5 = hashlib.md5(open(f, 'rb').read()).hexdigest() <ide> ...
1
Javascript
Javascript
add currentview property to ember.containerview
00b8940af1c948dd1974be184e022269a87a461d
<ide><path>packages/ember-views/lib/views/container_view.js <ide> var childViewsProperty = Ember.computed(function() { <ide> And the `Ember.View` instance stored in `aContainer.aView` will be removed from `aContainer`'s <ide> `childViews` array. <ide> <del> <ide> ## Templates and Layout <ide> A `template`, `te...
2
Python
Python
prepare tools/specialize_node_d.py for python 3
7468c56742a726e18b0b6583d0ce9c6b50f2bce0
<ide><path>tools/specialize_node_d.py <ide> <ide> if len(sys.argv) != 5: <ide> print("usage: specialize_node_d.py outfile src/node.d flavor arch") <del> sys.exit(2); <add> sys.exit(2) <ide> <del>outfile = file(sys.argv[1], 'w'); <del>infile = file(sys.argv[2], 'r'); <del>flavor = sys.argv[3]; <del>arch = sys.argv...
1
Javascript
Javascript
handle empty cert in checkserverindentity
f1810ed1b86cbbe5560a96839f5320b4be6ec5f7
<ide><path>lib/tls.js <ide> exports.checkServerIdentity = function checkServerIdentity(host, cert) { <ide> host, <ide> ips.join(', ')); <ide> } <del> } else { <add> } else if (cert.subject) { <ide> // Transform hostname to canonical form <ide> if (!/\....
2