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
use useascallable instead of is_callable
b7c4b1c1acf973b2cc50f1a7c2a7190d91623a06
<ide><path>src/Illuminate/Support/Collection.php <ide> public function contains($key, $value = null) <ide> }); <ide> } <ide> <del> if (is_callable($key)) <add> if ($this->useAsCallable($key)) <ide> { <ide> return ! is_null($this->first($key)); <ide> }
1
PHP
PHP
remove unused variable
8a3810c6b6f4549105341b91485eed748d760768
<ide><path>tests/Auth/AuthEloquentUserProviderTest.php <ide> public function testRetrieveTokenWithBadIdentifierReturnsNull() <ide> public function testRetrievingWithOnlyPasswordCredentialReturnsNull() <ide> { <ide> $provider = $this->getProviderMock(); <del> $mock = m::mock(stdClass::class); <ide...
3
Text
Text
add missing link to missing podspec
f134de532aa3b61c1ff8703a9225480fe6c9f37f
<ide><path>docs/IntegrationWithExistingApps.md <ide> target 'NumberTileGame' do <ide> ] <ide> # Explicitly include Yoga if you are using RN >= 0.42.0 <ide> pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga' <add> <add> # Third party deps podspec link <add> pod 'DoubleConversion', :podspec =>...
1
Javascript
Javascript
keep bound view classes in separate modules
00258675329766e7be1712fc49dd976ed5028e6e
<ide><path>packages/ember-htmlbars/lib/helpers/if_unless.js <ide> import shouldDisplay from "ember-views/streams/should_display"; <ide> import { read } from "ember-metal/streams/utils"; <ide> import { get } from "ember-metal/property_get"; <ide> import { isStream } from "ember-metal/streams/utils"; <del>import { BoundI...
6
Go
Go
add simple tool to test the deviceset commands
2b1dc8a8a3b99e6edbdf2cc71bf5461d81b9c354
<ide><path>devmapper/docker-device-tool/device_tool.go <add>package main <add> <add>import ( <add> "fmt" <add> "github.com/dotcloud/docker/devmapper" <add> "os" <add>) <add> <add>func usage() { <add> fmt.Printf("Usage: %s [snap new-id base-id] | [remove id] | [mount id mountpoint]\n", os.Args[0]) <add> os.Exit(1) <add>...
1
Java
Java
avoid warnings in tests
dedbbf0a7908c33a27e717ff3ffbc46848ff9b02
<ide><path>spring-context/src/test/java/org/springframework/context/annotation/Gh29105Tests.java <ide> * <ide> * @author Stephane Nicoll <ide> */ <del>public class Gh29105Tests { <add>class Gh29105Tests { <ide> <ide> @Test <ide> void beanProviderWithParentContextReuseOrder() { <ide> void beanProviderWithParentCon...
1
Java
Java
delete unused imports in spring-test
1d57a15e40d0e9aef3b5421dceb3209f1710b754
<ide><path>spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone/AsyncTests.java <ide> <ide> import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.asyncDispatch; <ide> import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; <del>imp...
1
Javascript
Javascript
rewrite mergekeysets to be o(n) instead of o(n^3)
1efb14bcf6a5702febefdce5bcd34c70a44d5fce
<ide><path>src/addons/transitions/ReactTransitionKeySet.js <ide> <ide> var ReactChildren = require('ReactChildren'); <ide> <del>var MERGE_KEY_SETS_TAIL_SENTINEL = {}; <del> <ide> var ReactTransitionKeySet = { <ide> /** <ide> * Given `this.props.children`, return an object mapping key to child. Just <ide> var Rea...
1
Ruby
Ruby
remove explicit self
ac687d3b5f3654d8eaea8d4b8fc86905ef0a9f36
<ide><path>Library/Homebrew/tab.rb <ide> def self.for_keg keg <ide> path = keg.join(FILENAME) <ide> <ide> if path.exist? <del> self.from_file(path) <add> from_file(path) <ide> else <del> self.dummy_tab <add> dummy_tab <ide> end <ide> end <ide>
1
Text
Text
add gibson fahnestock to tsc
049f7d8af7212afee936363ed9cb900292da80a4
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> **Franziska Hinkelmann** &lt;franziska.hinkelmann@gmail.com&gt; (she/her) <ide> * [Fishrock123](https://github.com/Fishrock123) - <ide> **Jeremiah Senkpiel** &lt;fishrock123@rocketmail.com&gt; <add>* [gibfahn](https:/...
1
Python
Python
remember changes from remote control commands
8d76a7b968185de71d85c24e3338b1b0f5d781ab
<ide><path>celery/worker/consumer.py <ide> def __init__(self, c, send_events=None, **kwargs): <ide> c.event_dispatcher = None <ide> <ide> def start(self, c): <del> # Flush events sent while connection was down. <add> # flush events sent while connection was down. <ide> prev = c.event_...
1
Text
Text
remove end of line whitespace from bb87c16
a5034444299412c96cc286cf84a15077c8be425e
<ide><path>guides/source/getting_started.md <ide> styling for it afterwards. <ide> <ide> ### Laying down the ground work <ide> <del>Firstly, you need a place within the application to create a new article. A <del>great place for that would be at `/articles/new`. With the route already <del>defined, requests can now...
1
Javascript
Javascript
fix optimization bailout for hmr dependencies
b58393fce05c39329428bb5547451edfbd10cded
<ide><path>lib/HotModuleReplacementPlugin.js <ide> const ModuleHotDeclineDependency = require("./dependencies/ModuleHotDeclineDepen <ide> const HotModuleReplacementRuntimeModule = require("./hmr/HotModuleReplacementRuntimeModule"); <ide> const JavascriptParser = require("./javascript/JavascriptParser"); <ide> const { <...
2
Javascript
Javascript
use plain ascii for license
94f4c176ee76b6615a1efd1df4d9ecb308eac142
<ide><path>generators/license.js <ide> // ========================================================================== <ide> // Project: Ember - JavaScript Application Framework <del>// Copyright: ©2011-2013 Tilde Inc. and contributors <del>// Portions ©2006-2011 Strobe Inc. <del>// Portions ©2008...
1
Ruby
Ruby
rearrange npm release process again
71df60e921a784fb01729e98fa9636a4b6862d72
<ide><path>tasks/release.rb <ide> <ide> directory "pkg" <ide> <add># This "npm-ifies" the current version number <add># With npm, versions such as "5.0.0.rc1" or "5.0.0.beta1.1" are not compliant with its <add># versioning system, so they must be transformed to "5.0.0-rc1" and "5.0.0-beta1-1" respectively. <add> <add...
1
PHP
PHP
update debugger to reflect correct file name
9a4efafcd7bafc89ac2f4997c4e0113f9e578bd3
<ide><path>src/Error/Debugger.php <ide> public static function checkSecurityKeys(): void <ide> $salt = Security::getSalt(); <ide> if ($salt === '__SALT__' || strlen($salt) < 32) { <ide> trigger_error( <del> 'Please change the value of `Security.salt` in `ROOT/config/app.php` '...
1
Python
Python
fix mypy issues in ``airflow/jobs``
2d092021d7749e985062fb94f90c5a6415022d62
<ide><path>airflow/jobs/base_job.py <ide> from airflow.configuration import conf <ide> from airflow.exceptions import AirflowException <ide> from airflow.executors.executor_loader import ExecutorLoader <del>from airflow.models import DagRun <ide> from airflow.models.base import ID_LEN, Base <add>from airflow.models.dag...
1
Go
Go
fix typo in api/types/time/timestamp.go
2859ce6a577a9eac2c1610b76c156a5eb06cee83
<ide><path>api/types/time/timestamp.go <ide> func ParseTimestamps(value string, def int64) (int64, int64, error) { <ide> if err != nil { <ide> return s, n, err <ide> } <del> // should already be in nanoseconds but just in case convert n to nanoseonds <add> // should already be in nanoseconds but just in case conver...
1
Java
Java
add html rendering integration test
971ca6beb8be8a12cc3e9197f5b46d78ad89f3c6
<ide><path>spring-web-reactive/src/test/java/org/springframework/web/reactive/method/annotation/RequestMappingIntegrationTests.java <ide> import java.nio.ByteBuffer; <ide> import java.util.ArrayList; <ide> import java.util.Arrays; <add>import java.util.Collections; <ide> import java.util.List; <ide> import java.util.co...
1
Text
Text
add missing comma
2555f5974a19f6ce3af14df2e7fa6cb2f275a7d3
<ide><path>src/Database/README.md <ide> directly in the options array: <ide> use Cake\Database\Connection; <ide> <ide> $connection = new Connection([ <del> 'driver' => 'Cake\Database\Driver\Sqlite' <add> 'driver' => 'Cake\Database\Driver\Sqlite', <ide> 'database' => '/path/to/file.db' <ide> ]); <ide> ```
1
Python
Python
fix matcher tests
f6e587b1c76fe141dcce72d8cdf7a88a766f8def
<ide><path>spacy/tests/matcher/test_matcher_bugfixes.py <ide> def test_overlap_issue118(EN): <ide> ) <ide> <ide> assert len(list(doc.ents)) == 0 <del> matches = matcher(doc) <add> matches = [(ent_type, start, end) for ent_id, ent_type, start, end in matcher(doc)] <ide> assert matches == [(ORG, 9,...
1
Text
Text
add resource type
487bf5dd4cbeb2ad03c11ade8a03525eb2e7ed91
<ide><path>guide/english/php/php-data-types/index.md <ide> $herbie = new Car(); <ide> echo $herbie->model; <ide> ?> <ide> ``` <add> <add>### PHP Resource <add> <add>A resource is a special variable, holding a reference to an external resource. Resources are created and used by special functions. See the [official PHP d...
1
Python
Python
update resnet to run with tf r0.12 api. (#833)
22036b6f44efeb648fe2b2b4551f2b982edf0f5f
<ide><path>resnet/cifar_input.py <ide> def build_input(dataset, data_path, batch_size, mode): <ide> else: <ide> image = tf.image.resize_image_with_crop_or_pad( <ide> image, image_size, image_size) <del> image = tf.image.per_image_whitening(image) <add> image = tf.image.per_image_standardization(imag...
3
Javascript
Javascript
use spread notation instead of object.assign
4ea2c1c192f21f786e7ceac91a73e78044c6838d
<ide><path>lib/internal/console/constructor.js <ide> Console.prototype.table = function(tabularData, properties) { <ide> const final = (k, v) => this.log(cliTable(k, v)); <ide> <ide> const inspect = (v) => { <del> const opt = { depth: 0, maxArrayLength: 3 }; <del> if (v !== null && typeof v === 'object' && <...
1
Text
Text
update my collab entry
b3c6d281d7be393dc09456fbef2f677f696c42d2
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> * [devnexen](https://github.com/devnexen) - <ide> **David Carlier** &lt;devnexen@gmail.com&gt; <ide> * [devsnek](https://github.com/devsnek) - <del>**Gus Caplan** &lt;me@gus.host&gt; (he/him) <add>**Gus Caplan** &lt;me@gus...
1
Ruby
Ruby
convert postflight test to spec
e7c943b561cc9c0bfc1d0923783e5dbf729bc076
<add><path>Library/Homebrew/cask/spec/cask/dsl/postflight_spec.rb <del><path>Library/Homebrew/cask/test/cask/dsl/postflight_test.rb <del>require "test_helper" <add>require "spec_helper" <ide> <ide> describe Hbc::DSL::Postflight do <ide> let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/basic-c...
3
Text
Text
add v3.24.0-beta.3 to changelog
5364bed35d44777a9c671906619f0cda1d5b75cd
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.24.0-beta.3 (December 21, 2020) <add> <add>- [#19280](https://github.com/emberjs/ember.js/pull/19280) [BUGFIX] Ensure aliases cause recompute of a computed property when used with `@each` in the dependent keys of that property <add> <ide> ### v3.24.0-be...
1
Text
Text
fix typo in readme bach examples
fa1aa81f2623cbb3243ba67b0fb5a862851d8eda
<ide><path>README.md <ide> python run_squad.py \ <ide> --init_checkpoint $BERT_PYTORCH_DIR/pytorch_model.bin \ <ide> --do_train \ <ide> --do_predict \ <del> --do_lower_case <add> --do_lower_case \ <ide> --train_file $SQUAD_DIR/train-v1.1.json \ <ide> --predict_file $SQUAD_DIR/dev-v1.1.json \ <ide> --train...
1
Javascript
Javascript
increase enoughtestmem to 1.75 gb
53f4ac2774fa8aa1e964cf5fb660bcc72433e0b9
<ide><path>test/common/index.js <ide> exports.isFreeBSD = process.platform === 'freebsd'; <ide> exports.isLinux = process.platform === 'linux'; <ide> exports.isOSX = process.platform === 'darwin'; <ide> <del>exports.enoughTestMem = os.totalmem() > 0x40000000; /* 1 Gb */ <add>exports.enoughTestMem = os.totalmem() > 0x7...
1
Go
Go
add die event
a41384ad7312a21fd8fe429637c8d6b5c883fa2a
<ide><path>container.go <ide> func (container *Container) monitor() { <ide> } <ide> } <ide> utils.Debugf("Process finished") <del> <add> if container.runtime != nil && container.runtime.srv != nil { <add> container.runtime.srv.LogEvent("die", container.ShortID()) <add> } <ide> exitCode := -1 <ide> if container.c...
1
Go
Go
update manifest format for push
bcc0a343bb9c75443238e614e4c2da5f707aef8d
<ide><path>graph/manifest.go <ide> func (s *TagStore) CmdManifest(job *engine.Job) engine.Status { <ide> if !exists { <ide> return job.Errorf("Tag does not exist for %s: %s", name, tag) <ide> } <del> tarsums := make([]string, 0, 4) <ide> layersSeen := make(map[string]bool) <ide> <ide> layer, err := s.graph.Get(l...
1
Javascript
Javascript
return error object for compiler dependency errors
ecd02195a29beaceff47eaf639b525a19c89c4de
<ide><path>lib/MultiCompiler.js <ide> module.exports = class MultiCompiler extends Tapable { <ide> errors.unshift("Circular dependency found in compiler dependencies."); <ide> } <ide> if(errors.length > 0) { <del> callback(errors.join("\n")); <add> const message = errors.join("\n"); <add> callback(new Erro...
2
PHP
PHP
add missing arguments names to params
d69f639488c1a0389fd1999fda564a4591364d15
<ide><path>src/Illuminate/Auth/Guard.php <ide> public function getDispatcher() <ide> /** <ide> * Set the event dispatcher instance. <ide> * <del> * @param \Illuminate\Contracts\Events\Dispatcher <add> * @param \Illuminate\Contracts\Events\Dispatcher $events <ide> * @return void <ide> */ <ide> public func...
17
Java
Java
remove hard crash when root view is reused
dc74975c5faad1a5f4d3685679394308ca8f6b24
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java <ide> protected synchronized final void addRootViewGroup( <ide> ViewGroup view, <ide> ThemedReactContext themedContext) { <ide> if (view.getId() != View.NO_ID) { <del> themedContext.handleException( <...
1
Text
Text
create standard vendor policies
1e021ff5715ade80310a04895da414a897529d7a
<ide><path>VENDORING.md <add># Vendoring policies <add> <add>This document outlines recommended Vendoring policies for Docker repositories. <add>(Example, libnetwork is a Docker repo and logrus is not.) <add> <add>## Vendoring using tags <add> <add>Commit ID based vendoring provides little/no information about the upda...
1
Javascript
Javascript
add test for https server close event
210e65a017d05e7382d0be5a6e4d271d1d95bbd1
<ide><path>test/parallel/test-https-close.js <add>'use strict'; <add>const common = require('../common'); <add>const fs = require('fs'); <add> <add>if (!common.hasCrypto) { <add> console.log('1..0 # Skipped: missing crypto'); <add> return; <add>} <add>const https = require('https'); <add> <add>const options = { <add>...
1
Python
Python
simplify identity initializer with zero padding
6096ded90df902e1f8a21f666748a03100d140c0
<ide><path>keras/initializers.py <ide> def __call__(self, shape, dtype=None): <ide> raise ValueError( <ide> 'Identity matrix initializer can only be used for 2D matrices.') <ide> <del> if shape[0] == shape[1]: <del> return self.gain * np.identity(shape[0]) <del> eli...
1
Javascript
Javascript
replace magic numbers by constants
c86fe511f4924ebbf7291fd938e5cd952199145b
<ide><path>lib/internal/constants.js <ide> <ide> module.exports = { <ide> // Alphabet chars. <del> CHAR_UPPERCASE_A: 65, /*A*/ <del> CHAR_LOWERCASE_A: 97, /*a*/ <del> CHAR_UPPERCASE_Z: 90, /*Z*/ <del> CHAR_LOWERCASE_Z: 122, /*z*/ <add> CHAR_UPPERCASE_A: 65, /* A */ <add> CHAR_LOWERCASE_A: 97, /* a */ <add> CH...
2
Javascript
Javascript
add missing files
4a5723f83b80c2625b881a96df75efa4f4062a75
<ide><path>angularFiles.js <ide> var angularFiles = { <ide> 'test/auto/*.js', <ide> 'test/ng/**/*.js', <ide> 'test/ngAnimate/*.js', <add> 'test/ngMessageFormat/*.js', <ide> 'test/ngMessages/*.js', <ide> 'test/ngCookies/*.js', <ide> 'test/ngResource/*.js', <ide> var angularFiles = { <ide> ...
4
Python
Python
fix spelling mistake in version module gen
a70c4833629dcacddcdca118f45fc95e3dd4739d
<ide><path>setup.py <ide> def svn_version(): <ide> def write_version_py(filename='numpy/version.py'): <ide> cnt = """ <ide> # THIS FILE IS GENERATED FROM NUMPY SETUP.PY <del>Short_version='%(version)s' <add>short_version='%(version)s' <ide> version='%(version)s' <ide> release=%(isrelease)s <ide>
1
Javascript
Javascript
prevent mousemove spam
b7cc2a8a4c6e329322cc182447b7052850ed48ff
<ide><path>src/js/player.js <ide> vjs.Player.prototype.userActive = function(bool){ <ide> }; <ide> <ide> vjs.Player.prototype.listenForUserActivity = function(){ <del> var onMouseActivity, onMouseDown, mouseInProgress, onMouseUp, <del> activityCheck, inactivityTimeout; <add> var onActivity, onMouseMove, onMouse...
1
Go
Go
add some more fields in docker service inspect -p
4c9e21b674046e8a3819cfbbb96f471bd280fba5
<ide><path>api/client/service/inspect.go <ide> import ( <ide> "github.com/docker/docker/pkg/ioutils" <ide> apiclient "github.com/docker/engine-api/client" <ide> "github.com/docker/engine-api/types/swarm" <add> "github.com/docker/go-units" <ide> "github.com/spf13/cobra" <ide> ) <ide> <ide> func printService(out io....
1
Go
Go
use local variable err instead of a outer one
a0804e8e118510dc49e7e74273a323e99c097a3d
<ide><path>api/server/server.go <ide> func getContainersTop(eng *engine.Engine, version version.Version, w http.Respon <ide> } <ide> <ide> func getContainersJSON(eng *engine.Engine, version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error { <del> var err error <del> if err = parse...
1
Javascript
Javascript
add transformexample to uiexplorerlist.ios.js
43ca8a0da41bd804329c056d6c5ac7cea931d5e4
<ide><path>Examples/UIExplorer/UIExplorerList.ios.js <ide> var APIS = [ <ide> require('./RCTRootViewIOSExample'), <ide> require('./StatusBarIOSExample'), <ide> require('./TimerExample'), <add> require('./TransformExample'), <ide> require('./VibrationIOSExample'), <ide> require('./XHRExample.ios'), <ide> re...
1
Javascript
Javascript
fix dom width retrieval
b5fdfca9dc1304a9844e13ab5955dad5640c489b
<ide><path>examples/js/controls/OrbitControls.js <ide> THREE.OrbitControls = function ( object, domElement ) { <ide> // half of the fov is center to top of screen <ide> targetDistance *= Math.tan( (scope.object.fov/2) * Math.PI / 180.0 ); <ide> // we actually don't use screenWidth, since perspective camera is ...
1
Javascript
Javascript
remove minified tests from grunt test task
44953cf99b4911bfff64e588ce275675e06261be
<ide><path>Gruntfile.js <ide> module.exports = function(grunt) { <ide> // Development watch task. Doing the minimum required. <ide> grunt.registerTask('dev', ['jshint', 'less', 'browserify', 'karma:chrome']); <ide> <add> // Tests. <add> // We want to run things a little differently if it's coming from Travis vs ...
4
PHP
PHP
update typehints for event manager
f5e1257493e46a3b631ce8a383b839673fa7774f
<ide><path>src/Event/Event.php <ide> public function getName(): string <ide> /** <ide> * Returns the subject of this event <ide> * <del> * @return object <add> * @return object|null <ide> */ <ide> public function getSubject() <ide> { <ide><path>src/Event/EventManager.php <ide> */ <id...
4
PHP
PHP
add testcase from oauth wiki for hmac-sha1
6323936af95d5ec9aab73a251218f5d80a49ee3b
<ide><path>lib/Cake/Network/Http/Auth/Oauth.php <ide> protected function _plaintext($request, $credentials) { <ide> * @param array $credentials <ide> */ <ide> protected function _hmacSha1($request, $credentials) { <add> $nonce = isset($credentials['nonce']) ? $credentials['nonce'] : uniqid(); <add> $timestamp = is...
2
Python
Python
use cached_property from kombu.utils
951bbd9605170933a70489db3cd248a83ec596b7
<ide><path>celery/app/__init__.py <ide> <ide> from inspect import getargspec <ide> <add>from kombu.utils import cached_property <add> <ide> from celery import registry <ide> from celery.app import base <del>from celery.utils import cached_property, instantiate <add>from celery.utils import instantiate <ide> from cele...
11
Mixed
Ruby
fix error message documentation
80f46653e2353a40a7175cbd6030dcf60916d6cd
<ide><path>activesupport/lib/active_support/ordered_options.rb <ide> module ActiveSupport <ide> # To raise an exception when the value is blank, append a <ide> # bang to the key name, like: <ide> # <del> # h.dog! # => raises KeyError: key not found: :dog <add> # h.dog! # => raises KeyError: :dog is blank <i...
2
Javascript
Javascript
fix proxy inspection
a32cbe159749c645bf2da6b2af46f9b732b416e0
<ide><path>lib/internal/util/inspect.js <ide> function formatValue(ctx, value, recurseTimes, typedArray) { <ide> return ctx.stylize('null', 'null'); <ide> } <ide> <add> // Memorize the context for custom inspection on proxies. <add> const context = value; <add> // Always check for proxies to prevent side effe...
2
PHP
PHP
fix deprecation warnings in authcomponent tests
52c751cb22cddbf3b614cd824cc1cad0036470ff
<ide><path>src/Controller/Component/AuthComponent.php <ide> public function authorizationProvider() <ide> */ <ide> protected function _getUrlToRedirectBackTo() <ide> { <del> $urlToRedirectBackTo = $this->request->here(false); <add> $urlToRedirectBackTo = $this->request->getRequestTarget(); <i...
3
Ruby
Ruby
update arg names in docs and signature
b2d94dc897f25083cddb994c9b981834d9df6fd0
<ide><path>Library/Homebrew/formula.rb <ide> def extract_macho_slice_from(file, arch = Hardware::CPU.arch) <ide> end <ide> private :extract_macho_slice_from <ide> <del> # Generate shell completions for a formula for bash, zsh, and fish, using the formula's binary. <add> # Generate shell completions for a formula...
1
Javascript
Javascript
fix code style
dc87b9108857ea1a56319cca424bd1580628b6b3
<ide><path>src/core/InstancedBufferGeometry.js <ide> InstancedBufferGeometry.prototype = Object.assign( Object.create( BufferGeometry <ide> <ide> }, <ide> <del> toJSON: function(){ <add> toJSON: function () { <add> <ide> var data = BufferGeometry.prototype.toJSON.call( this ); <ide> <ide> data.maxInstancedCount...
1
PHP
PHP
remove unneeded annotation
15da42fdedfefc612b886293a8807acdd9db47c2
<ide><path>src/View/Helper/UrlHelper.php <ide> public function build($url = null, array $options = []): string <ide> ]; <ide> $options += $defaults; <ide> <del> /** @var string $url */ <ide> $url = Router::url($url, $options['fullBase']); <ide> if ($options['escape']) { <ide> ...
1
Javascript
Javascript
add tests for validatenumber/validatestring
6914b3798c6c4cc6b2f64a206674505b4b5adf80
<ide><path>test/parallel/test-validators.js <ide> const { <ide> validateArray, <ide> validateBoolean, <ide> validateInteger, <add> validateNumber, <ide> validateObject, <add> validateString, <ide> } = require('internal/validators'); <ide> const { MAX_SAFE_INTEGER, MIN_SAFE_INTEGER } = Number; <ide> const outO...
1
Python
Python
fix a typo in a comment
e18e7441700db0ff2fd8f51901aa416c63e35cbc
<ide><path>numpy/core/tests/test_shape_base.py <ide> def test_concatenate_sloppy0(): <ide> assert_array_equal(concatenate((r4, r3), 10), r4 + r3) <ide> finally: <ide> warnings.filters.pop(0) <del> # Confurm DepractionWarning raised <add> # Confirm DepractionWarning raised <ide> warnings.si...
1
Python
Python
fix non-determanistic default bug. closes
bde725541359de1fef785801fc5dad98e70a8e2f
<ide><path>rest_framework/serializers.py <ide> def get_fields(self): <ide> elif getattr(unique_constraint_field, 'auto_now', None): <ide> default = timezone.now <ide> elif unique_constraint_field.has_default(): <del> default = model_field.default <add> ...
1
Mixed
Ruby
constrain sequence search classid
0110d7b714a6ecc810a38ef5a27b66ec321995e5
<ide><path>activerecord/CHANGELOG.md <ide> <ide> *Matthew Draper* <ide> <add>* `pk_and_sequence_for` now ensures that only the pg_depend entries <add> pointing to pg_class, and thus only sequence objects, are considered. <add> <add> *Josh Williams* <add> <ide> * `where.not` adds `references` for `includ...
3
PHP
PHP
fix testsuite for php5.5
b611b3bc168ec650219418f16c2054125f17ce9d
<ide><path>tests/TestCase/Database/Driver/SqliteTest.php <ide> <ide> use Cake\Database\Driver\Sqlite; <ide> use Cake\TestSuite\TestCase; <del>use \PDO; <add>use PDO; <ide> <ide> /** <ide> * Tests Sqlite driver <ide> public static function schemaValueProvider() <ide> public function testSchemaValue($input, $expec...
6
Text
Text
add v3.28.8 to changelog
703b9ca2653a6b479a762b30dca1a33eaa13d8ab
<ide><path>CHANGELOG.md <ide> - [#19542](https://github.com/emberjs/ember.js/pull/19542) [BUGFIX] Fix initializer test blueprints <ide> - [#19589](https://github.com/emberjs/ember.js/pull/19589) [BUGFIX] Don’t include type-tests in build output <ide> <add>## v3.28.8 (December 2, 2021) <add> <add>- [#19868](https://git...
1
Javascript
Javascript
add tests to deferred mixin
7be8024dcd65c3c8a49f06df0a6452c1641a4d14
<ide><path>packages/ember-runtime/tests/mixins/deferred_test.js <ide> test("can resolve deferred", function() { <ide> }); <ide> <ide> Ember.run(function() { <del> deferred.resolve(); <add> deferred.resolve(deferred); <ide> }); <ide> <ide> equal(count, 1, "was fulfilled"); <ide> test("can resolve with th...
1
Go
Go
remove duplicate call to net.parseip
b180de55caa382fd6ced4488d68392edd1d34da0
<ide><path>opts/ip.go <ide> func (o *IpOpt) Set(val string) error { <ide> if ip == nil { <ide> return fmt.Errorf("%s is not an ip address", val) <ide> } <del> (*o.IP) = net.ParseIP(val) <add> *o.IP = ip <ide> return nil <ide> } <ide> <ide> func (o *IpOpt) String() string { <del> return (*o.IP).String() <add> retu...
1
Text
Text
add missing ipam options to api docs
d69fce79f94b807ccb0f2f64c47881ee8fc31250
<ide><path>docs/reference/api/docker_remote_api_v1.21.md <ide> Content-Type: application/json <ide> <ide> { <ide> "Name":"isolated_nw", <add> "CheckDuplicate":true, <ide> "Driver":"bridge", <ide> "IPAM":{ <add> "Driver": "default", <ide> "Config":[ <ide> { <ide> "Subnet":"172.20.0.0/16", <i...
5
Text
Text
improve livecheck docs
fb29dec0de185c8154c602612e4638d3b878a33f
<ide><path>docs/Brew-Livecheck.md <ide> When livecheck isn't given instructions for how to check for upstream versions, <ide> 1. If a strategy can be applied, use it to check for new versions. <ide> 1. Return the newest version (or an error if versions could not be found at any available URLs). <ide> <del>It's sometim...
1
Text
Text
remove extra word
0ced0efec5a68548725baca6095bb2166cfc5fad
<ide><path>docs/tutorials/fundamentals/part-5-ui-and-react.md <ide> We now have a working todo app! Our app creates a store, passes the store to the <ide> <ide> Try implementing the rest of the missing UI features on your own! Here's a list of the things you'll need to add: <ide> <del>- In `<TodoListItem>` component,...
1
Javascript
Javascript
prevent unwanted references
0af5454b19a3cf15fe126e9e767b961de3046713
<ide><path>src/core/EventDispatcher.js <ide> Object.assign( EventDispatcher.prototype, { <ide> <ide> } <ide> <add> event.target = null; <add> <ide> } <ide> <ide> }
1
PHP
PHP
remove extra whitespace
d0726a34d1bc9174e713f7e249fb0d9334e60bbd
<ide><path>config/logging.php <ide> ], <ide> <ide> 'papertrail' => [ <del> 'driver' => 'monolog', <add> 'driver' => 'monolog', <ide> 'level' => 'debug', <ide> 'handler' => SyslogUdpHandler::class, <ide> 'handler_with' => [
1
Python
Python
clarify error message
1529c9c438ccc5c8f0168ebb4ae45fcf382b3c2f
<ide><path>keras/models.py <ide> def model_from_config(config, custom_objects={}): <ide> from keras.utils.layer_utils import layer_from_config <ide> if isinstance(config, list): <del> raise Exception('model_fom_config expects a dictionary.' <del> 'To load an old-style config use th...
1
PHP
PHP
use early return
c4f8f492731756ca53a13e656af7f9f2e3574396
<ide><path>src/Illuminate/Console/Scheduling/Event.php <ide> public function emailOutputTo($addresses) <ide> /** <ide> * E-mail the results of the scheduled operation only when it produces output. <ide> * <del> * @param array|mixed $addresses <add> * @param array|mixed $addresses <ide> * @...
1
Javascript
Javascript
move reactfibererrordialog rn fork into rn itself
c45c2c3a261ab5a2878c36d9f49de531ef69a121
<ide><path>packages/react-native-renderer/src/__mocks__/react-native/Libraries/ReactPrivate/ReactFiberErrorDialog.js <add>/** <add> * Copyright (c) Facebook, Inc. and its affiliates. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source...
4
Javascript
Javascript
use nicer es6 syntax for get/set on cps
0f66c76d5c2453a06f001c1089510de8da8d22ae
<ide><path>packages/ember-metal/lib/computed_macros.js <ide> export function readOnly(dependentKey) { <ide> */ <ide> export function defaultTo(defaultPath) { <ide> return computed({ <del> get: function(key) { <add> get(key) { <ide> Ember.deprecate('Usage of Ember.computed.defaultTo is deprecated, use `Emb...
10
Text
Text
convert all tabs into spaces
20d347a806baa0dd481b31a7f847386574882d5b
<ide><path>docs/api-guide/authentication.md <ide> If the `.authenticate_header()` method is not overridden, the authentication sch <ide> <ide> The following example will authenticate any incoming request as the user given by the username in a custom request header named 'X-USERNAME'. <ide> <del> from django.contrib.a...
6
Ruby
Ruby
use double quotes
15b858ccc4de1e76e8251c69b5f1a30af223d3c3
<ide><path>Library/Homebrew/cask/spec/formatter_spec.rb <ide> describe "::columns" do <ide> let(:input) { <ide> [ <del> 'aa', <del> 'bbb', <del> 'ccc', <del> 'dd' <add> "aa", <add> "bbb", <add> "ccc", <add> "dd", <ide> ] <ide> } <ide> sub...
1
Python
Python
replace deprecated param from docstrings
3b41bb45e6e25c1482847e30793c2413b386589b
<ide><path>airflow/models/dag.py <ide> class DAG(LoggingMixin): <ide> accessible in templates, namespaced under `params`. These <ide> params can be overridden at the task level. <ide> :type params: dict <del> :param concurrency: the number of task instances allowed to run <add> :param max_acti...
1
Javascript
Javascript
add strict parsing test for es-do
aaeb5e6a3b1d85d5c300d3e5be4ba74259b43416
<ide><path>src/test/locale/es-do.js <ide> test('weeks year starting sunday formatted', function (assert) { <ide> <ide> test('test short months proper', function (assert) { <ide> var str = '02-ago-2016'; // "02-ago-2016" <del> assert.equal(moment(str, 'DD-MMM-YYYY').month(), '7', '02-ago-2016 month should be 7')...
1
Javascript
Javascript
add promise api test for appendfile()
0d9500daedbb61770359c34383a8d4784bcabd56
<ide><path>test/parallel/test-fs-append-file.js <ide> const join = require('path').join; <ide> <ide> const tmpdir = require('../common/tmpdir'); <ide> <del>const filename = join(tmpdir.path, 'append.txt'); <del> <ide> const currentFileData = 'ABCD'; <ide> <ide> const n = 220; <ide> let ncallbacks = 0; <ide> <ide> t...
1
PHP
PHP
add class alias for engines
05fcedc95972b9d34bca37f3b5a3b5d36784ad98
<ide><path>config/bootstrap.php <ide> <ide> // Compatibility aliases. These will be removed for the first RC release. <ide> class_alias('Cake\Error\Debugger', 'Cake\Utility\Debugger'); <add>class_alias('Cake\Core\Configure\Engine\PhpConfig', 'Cake\Configure\Engine\PhpConfig'); <add>class_alias('Cake\Core\Configure\Eng...
1
PHP
PHP
update the passwords facade constants
d297faf5e17b5ec8a705354eba5ac710454f792c
<ide><path>src/Illuminate/Support/Facades/Password.php <ide> class Password extends Facade { <ide> * <ide> * @var int <ide> */ <del> const REMINDER_SENT = 'reminders.sent'; <add> const REMINDER_SENT = 'passwords.sent'; <ide> <ide> /** <ide> * Constant representing a successfully reset password. <ide> * <ide...
1
Ruby
Ruby
handle name@v.v formulae
ab203a749f050486bd174fc7e29bd2a246333b80
<ide><path>Library/Homebrew/cmd/search.rb <ide> def search <ide> end <ide> <ide> if $stdout.tty? <del> metacharacters = %w[\\ | ( ) [ ] { } ^ $ * + ? .] <add> metacharacters = %w[\\ | ( ) [ ] { } ^ $ * + ?] <ide> bad_regex = metacharacters.any? do |char| <ide> ARGV.any? do |arg| <ide> ...
1
Javascript
Javascript
change browser build to umd
27bde0dd3f5823098a961bdcad32e4ec221636c5
<ide><path>webpack.config.js <ide> if (process.env.NODE_ENV === 'production') { <ide> ); <ide> } <ide> <add>var reactExternal = { <add> root: 'React', <add> commonjs2: 'react', <add> commonjs: 'react', <add> amd: 'react' <add>}; <add> <ide> module.exports = { <ide> externals: { <del> 'react': 'React', <del>...
1
PHP
PHP
fix additional issues with saveall()
fbba3621b5e522d1c7f7fe4c175a3298871469de
<ide><path>lib/Cake/Model/Behavior/TranslateBehavior.php <ide> public function beforeValidate(Model $model) { <ide> /** <ide> * beforeSave callback. <ide> * <add> * Copies data into the runtime property when `$options['validate']` is <add> * disabled. Or the runtime data hasn't been set yet. <add> * <ide> * @param ...
2
Text
Text
add issue and pull request templates
81e35b5a2956604a6a3b9bb795a74a342702cc12
<ide><path>.github/ISSUE_TEMPLATE.md <add>_Thanks for wanting to report an issue you've found in Node.js. Please delete <add>this text and fill in the template below. If unsure about something, just do as <add>best as you're able._ <add> <add>_Note that it will be much easier for us to fix the issue if a test case that...
2
Javascript
Javascript
add two test cases for querystring
dd2e13556020cea3daae2278bec4e9870578384b
<ide><path>test/parallel/test-querystring.js <ide> assert.strictEqual( <ide> Object.keys(qs.parse('a=1&b=1&c=1', null, null, { maxKeys: 1 })).length, <ide> 1); <ide> <add>// Test limiting with a case that starts from `&` <add>assert.strictEqual( <add> Object.keys(qs.parse('&a', null, null, { maxKeys: 1 }))....
1
Ruby
Ruby
save a hash allocation per request
dde91e9bf5ab246f0f684b40288b272f4ba9a699
<ide><path>railties/lib/rails/engine.rb <ide> def endpoint <ide> def call(env) <ide> env.merge!(env_config) <ide> if env['SCRIPT_NAME'] <del> env.merge! "ROUTES_#{routes.object_id}_SCRIPT_NAME" => env['SCRIPT_NAME'].dup <add> env["ROUTES_#{routes.object_id}_SCRIPT_NAME"] = env['SCRIPT_NAME...
1
Javascript
Javascript
improve function inspection
d0667e814e8be53d329a9c7f4849996c192395c9
<ide><path>lib/internal/util/inspect.js <ide> const { <ide> } = require('internal/errors'); <ide> <ide> const { <add> isAsyncFunction, <add> isGeneratorFunction, <ide> isAnyArrayBuffer, <ide> isArrayBuffer, <ide> isArgumentsObject, <ide> function formatRaw(ctx, value, recurseTimes, typedArray) { <ide> ...
7
Javascript
Javascript
reverse animation with negative timescale
3dd811eebcfcf244bd916f8b5684adbc144c2f3a
<ide><path>src/extras/animation/Animation.js <ide> THREE.Animation.prototype.update = (function(){ <ide> <ide> var duration = this.data.length; <ide> <del> if ( this.loop === true && this.currentTime > duration ) { <add> if ( this.currentTime > duration || this.currentTime < 0 ) { <ide> <del> this.currentTime ...
1
Python
Python
fix test-crypto-fips.js under shared openssl
2454aa0f1fdd41486268f711a6ad53756350f608
<ide><path>configure.py <ide> def without_ssl_error(option): <ide> if options.openssl_no_asm and options.shared_openssl: <ide> error('--openssl-no-asm is incompatible with --shared-openssl') <ide> <del> if options.openssl_is_fips and not options.shared_openssl: <add> if options.openssl_is_fips: <ide> o['de...
1
PHP
PHP
fix cs errors
50d7ebf0173bab8f87a27f0b82608adcbf3a6d18
<ide><path>tests/TestCase/View/Helper/FormHelperTest.php <ide> public function testSelectCheckboxMultipleOverrideName() { <ide> $expected = array( <ide> 'input' => array('type' => 'hidden', 'name' => 'fish', 'value' => ''), <ide> array('div' => array('class' => 'checkbox')), <del> array('label' => array('for...
1
Text
Text
improve changelog entry
cbe1bc29722ddeda12d8652c409cea156ddb85a3
<ide><path>activerecord/CHANGELOG.md <del>* Create indexes inline in CREATE TABLE for MySQL <add>* Create indexes inline in CREATE TABLE for MySQL. <ide> <ide> This is important, because adding an index on a temporary table after it has been created <ide> would commit the transaction. <del> It also allo...
1
PHP
PHP
fix most of the fixture tests
98780c8e449500272cfb93a9925a5101913a376b
<ide><path>lib/Cake/Test/TestCase/TestSuite/TestFixtureTest.php <ide> <?php <ide> /** <del> * TestFixture file <del> * <del> * PHP 5 <del> * <ide> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> <ide> * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) <ide>...
2
Mixed
Javascript
accept stores as an object of prop key to store
603ca22b19562c41104cb7e4052d68cee4add72f
<ide><path>README.md <ide> import { <ide> <ide> // but you can write this part anyhow you like: <ide> <del>const initialState = { counter: 0 }; <add>const initialState = 0; <ide> <del>function increment({ counter }) { <del> return { counter: counter + 1 }; <add>function increment(counter) { <add> return counter + ...
7
Ruby
Ruby
prefer class << self; def over def self
f9caa5a6dd99275aa9400ab64813a850a26a0386
<ide><path>railties/lib/rails/generators.rb <ide> module Generators <ide> } <ide> } <ide> <del> def self.configure!(config) #:nodoc: <del> api_only! if config.api_only <del> no_color! unless config.colorize_logging <del> aliases.deep_merge! config.aliases <del> options.deep_merge! conf...
1
PHP
PHP
simplify disk change
bc50a9b10097e66b59f0dfcabc6e100b8fedc760
<ide><path>src/Illuminate/Log/LogManager.php <ide> public function __construct($app) <ide> */ <ide> public function build(array $config) <ide> { <add> unset($this->channels['ondemand']); <add> <ide> return $this->get('ondemand', $config); <ide> } <ide> <ide> public function getChannels(...
1
Javascript
Javascript
use iso getters to check the iso setters
ba9cdfea2972aad3613a66548c848b10347a15fd
<ide><path>src/test/moment/getters_setters.js <ide> test('setters programatic with weeks ISO', function (assert) { <ide> a.set('isoWeek', 49); <ide> a.set('isoWeekday', 4); <ide> <del> assert.equal(a.weekYear(), 2001, 'weekYear'); <del> assert.equal(a.week(), 49, 'week'); <del> assert.equal(a.day(), 4...
1
Text
Text
fix typo on `componentwillreceiveprops`
c07d1cef36bac46e5ae4bc73709b4928b372cf0b
<ide><path>guide/english/react/life-cycle-methods-of-a-component/index.md <ide> d. `componentDidMount()` <ide> <ide> ## Updating: <ide> <del>a. `componentWillRecieveProps()` <add>a. `componentWillReceiveProps()` <ide> <ide> b. `shouldComponentUpdate()` <ide>
1
Javascript
Javascript
fix toggle button in example
6df103591e470ae8632eadea3d9bc7e82608e4e5
<ide><path>src/ngAnimate/module.js <ide> * <div ng-show="bool" class="fade"> <ide> * Show and hide me <ide> * </div> <del> * <button ng-click="bool=true">Toggle</button> <add> * <button ng-click="bool=!bool">Toggle</button> <ide> * <ide> * <style> <ide> * .fade.ng-hide {
1
Mixed
Text
fix more type inconsistencies
5f32024055adc2f908c582d933259f9fcf5db423
<ide><path>doc/api/assert.md <ide> added: v0.1.21 <ide> * `actual` {any} <ide> * `expected` {any} <ide> * `message` {any} <del>* `operator` {String} <add>* `operator` {string} <ide> <ide> Throws an `AssertionError`. If `message` is falsy, the error message is set as <ide> the values of `actual` and `expected` separate...
20
Text
Text
update meta naming inconsistencies
17898b0ffc0d249fb22ec74b3076a1c2932d534f
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/613297a923965e0703b64796.md <ide> dashedName: step-2 <ide> <ide> # --description-- <ide> <del>You may be familiar with the `meta` tag already; it is used to specify information about the page, such as the title...
3
Javascript
Javascript
add multiline spec
95b216f2345589aa36ea6801babb27bd6526a226
<ide><path>spec/workspace-spec.js <ide> i = /test/; #FIXME\ <ide> expect(results[0].replacements).toBe(6) <ide> }) <ide> }) <add> <add> it('uses the multiline flag when searching', () => { <add> const filePath = path.join(projectDir, 'sample.js') <add> fs.copyFileSync(path.joi...
1