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
Text
Text
use the changelog convention [ci skip]
c35a7d78ec2599b597296dc6749ca3d7ac434177
<ide><path>activerecord/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <del>* Fix creation of through association models when using collection=[] <del> on a hm:t association from an unsaved model. <add>* Fix creation of through association models when using `collection=[]` <add> on a `has_many :thro...
1
Text
Text
fix typo in rails autoloading guide
08145c251427acb5d17781159162af798163e955
<ide><path>guides/source/autoloading_and_reloading_constants.md <ide> $ bin/rails runner 'p UsersHelper' <ide> UsersHelper <ide> ``` <ide> <del>Autoload paths automatically pick any custom directories under `app`. For example, if your application has `app/presenters`, or `app/services`, etc., they are added to autoloa...
1
Javascript
Javascript
fix crash unmounting an empty portal
1fecba92307041e181ce425082d4d21ec8928728
<ide><path>packages/react-dom/src/__tests__/ReactDOMFiber-test.js <ide> describe('ReactDOMFiber', () => { <ide> expect(container.innerHTML).toBe('<div></div>'); <ide> }); <ide> <add> it('should unmount empty portal component wherever it appears', () => { <add> const portalContainer = document.createElement('...
2
Text
Text
replace html with html [ci skip]
ae755bc5179977b0ab105537c65e7831e47341d2
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> end <ide> <ide> There's a new choice for sanitizing HTML fragments in your applications. The <ide> venerable html-scanner approach is now officially being deprecated in favor of <del>[`Rails Html Sanitizer`](https://github.com/rails/rails-html-sanitizer). <add>...
1
Text
Text
fix example in doc
e02554412f36b1eb8ea59a58c41a9d2e8ddac13a
<ide><path>docs/templates/applications.md <ide> block4_pool_features = model.predict(x) <ide> from keras.applications.inception_v3 import InceptionV3 <ide> from keras.preprocessing import image <ide> from keras.models import Model <del>from keras.layers import Dense <add>from keras.layers import Dense, Lambda <add>from...
1
Java
Java
parse yogavalue from string. inverse of tostring()
e656adcaa8a4eda358f0a2b2bdf8a8f3b7eaabc7
<ide><path>ReactAndroid/src/main/java/com/facebook/yoga/YogaValue.java <ide> public class YogaValue { <ide> static final YogaValue UNDEFINED = new YogaValue(YogaConstants.UNDEFINED, YogaUnit.UNDEFINED); <ide> static final YogaValue ZERO = new YogaValue(0, YogaUnit.POINT); <add> static final YogaValue AUTO = new Yo...
1
Python
Python
add robust tests for exec_command()
2fbdd9903fc9bf6e1fe797e92c0157abd67850ce
<ide><path>numpy/distutils/tests/test_exec_command.py <add>import os <ide> import sys <ide> import StringIO <ide> <ide> def __exit__(self, exc_type, exc_value, traceback): <ide> self._stdout.flush() <ide> sys.stdout = self.old_stdout <ide> <add>class redirect_stderr(object): <add> """Context manage...
1
Javascript
Javascript
check zlib version for createdeflateraw
51898575ae2cc179699cc0c56cfc97ae22b235fc
<ide><path>test/parallel/test-zlib-failed-init.js <ide> const assert = require('assert'); <ide> const zlib = require('zlib'); <ide> <ide> // For raw deflate encoding, requests for 256-byte windows are rejected as <del>// invalid by zlib. <del>// (http://zlib.net/manual.html#Advanced) <del>assert.throws(() => { <del> ...
1
Ruby
Ruby
remove unncessary semicolon
31fb99680026fb285bc69f1641e3fbdbed09ee98
<ide><path>Library/Homebrew/cask/lib/hbc/cli/reinstall.rb <ide> def self.install_casks(cask_tokens, force, skip_cask_deps, require_sha) <ide> <ide> if cask.installed? <ide> # use copy of cask for uninstallation to avoid 'No such file or directory' bug <del> installed_cask = cask;...
1
PHP
PHP
fix issue with getting table instances
cd2d0a603c88e039c130cc310e6ef6ee1144be89
<ide><path>src/Console/Command/Task/TestTask.php <ide> public function generateConstructor($type, $fullClassName) { <ide> $pre = $construct = $post = ''; <ide> if ($type === 'table') { <ide> $className = str_replace('Table', '', $className); <del> $construct = "TableRegistry::get('{$className}', ['className' =...
2
Python
Python
add tests for some util functions
08636c9740b3103fd05c81791f43faeb29920305
<ide><path>test/test_utils.py <add># -*- coding: utf-8 -*- <add># Licensed to the Apache Software Foundation (ASF) under one or more§ <add># contributor license agreements. See the NOTICE file distributed with <add># this work for additional information regarding copyright ownership. <add># The ASF licenses this file ...
1
Go
Go
migrate some "info" tests to integration
ec4a34ae2f375cfadacaf95cb5ef93b7c5ca43d3
<ide><path>integration-cli/docker_cli_info_test.go <ide> package main <ide> import ( <ide> "encoding/json" <ide> "fmt" <del> "net" <ide> "strings" <ide> "testing" <ide> <del> "github.com/docker/docker/integration-cli/daemon" <del> testdaemon "github.com/docker/docker/testutil/daemon" <ide> "gotest.tools/assert" <...
4
Python
Python
fix lint errors
e4bf28fc63b958406c5700f413f037b2344b7f8a
<ide><path>official/transformer/v2/transformer_main.py <ide> def __init__(self, flags_obj): <ide> <ide> print("Running transformer with num_gpus =", num_gpus) <ide> if self.distribution_strategy: <del> print("For training, using distribution strategy: ", self.distribution_strategy) <add> print("For t...
1
Ruby
Ruby
fix symlink path
ef7a5cfa3acd85efc55b6aff97f55ddecb238b8b
<ide><path>Library/Homebrew/tap.rb <ide> def unlink_manpages <ide> return unless (path/"man").exist? <ide> (path/"man").find do |src| <ide> next if src.directory? <del> dst = HOMEBREW_PREFIX/src.relative_path_from(path) <add> dst = HOMEBREW_PREFIX/"share"/src.relative_path_from(path) <ide> ...
1
Text
Text
change "diga hola" for "salude"
33d14922dc0162c7b23cdeb6c76f714932865f4f
<ide><path>guide/spanish/certifications/responsive-web-design/basic-html-and-html5/say-hello-to-html-elements/index.md <ide> title: Say Hello to HTML Elements <ide> localeTitle: Diga hola a los elementos HTML <ide> --- <del>## Diga hola a los elementos HTML <add>## Salude a los elementos HTML <ide> <ide> Considere el ...
1
PHP
PHP
use use statement for internal classes
f18488f90574ae0010f46e703f3bab4c1862b099
<ide><path>src/TestSuite/TestCase.php <ide> use Cake\Core\App; <ide> use Cake\Core\Configure; <ide> use Cake\Datasource\ConnectionManager; <add>use Cake\ORM\Exception\MissingTableClassException; <ide> use Cake\ORM\TableRegistry; <ide> use Cake\Routing\Router; <ide> use Cake\Utility\Inflector; <ide> public function getM...
1
Javascript
Javascript
fix linting issues
a419d47ef8c457f80a6ee31fc362e68dadb2a9b3
<ide><path>src/main-process/atom-window.js <ide> class AtomWindow extends EventEmitter { <ide> if (this.shouldHideTitleBar()) options.frame = false <ide> this.browserWindow = new BrowserWindow(options) <ide> <del> <ide> if (this.atomApplication.projectSettings != null) { <ide> this.projectSettings = ...
2
Text
Text
remove changelog that is included in 7.0
a35a380c2cdc7fe032f927095545aee21a192f54
<ide><path>activesupport/CHANGELOG.md <del>* Fix `ActiveSupport::Duration.build` to support negative values. <ide> <del> The algorithm to collect the `parts` of the `ActiveSupport::Duration` <del> ignored the sign of the `value` and accumulated incorrect part values. This <del> impacted `ActiveSupport::Dura...
1
Ruby
Ruby
fix failing tests after merge
6545a68264682e8d0a0ee0e913fa98d92fef9428
<ide><path>actionmailer/lib/action_mailer/mail_helper.rb <ide> def block_format(text) <ide> <ide> # Access the mailer instance. <ide> def mailer #:nodoc: <del> @controller <add> @_controller <ide> end <ide> end <ide> end <ide><path>actionpack/lib/action_controller/metal/helpers.rb <ide> def all...
6
Ruby
Ruby
add docs and guards to `while_preventing_writes`
28468e43b0c54c49a4167177e9f6d6233269b2de
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb <ide> def prevent_writes=(prevent_writes) # :nodoc: <ide> # See `READ_QUERY` for the queries that are blocked by this <ide> # method. <ide> def while_preventing_writes(enabled = true) <add> unless ActiveRe...
2
Javascript
Javascript
add assertion for {{#each foo in bar}} syntax
aa2cbd87758f2408ba6e4b9e4cd0d3a86f62819c
<ide><path>packages/ember-template-compiler/lib/index.js <ide> import TransformEachIntoCollection from 'ember-template-compiler/plugins/transfo <ide> import TransformUnescapedInlineLinkTo from 'ember-template-compiler/plugins/transform-unescaped-inline-link-to'; <ide> import AssertNoViewAndControllerPaths from 'ember-t...
4
Javascript
Javascript
rename triangle.uvintersection to getuv
c48d55fc3a11004edb2a8837373f77661cc838b8
<ide><path>src/math/Triangle.js <del>import { Vector2 } from './Vector2.js'; <ide> import { Vector3 } from './Vector3.js'; <ide> <ide> /** <ide> Object.assign( Triangle, { <ide> <ide> }(), <ide> <del> uvIntersection: function () { <add> getUV: function () { <ide> <ide> var barycoord = new Vector3(); <del> var v...
3
Javascript
Javascript
fix listview to work with native animated.event
f8f70d22757ba3d2877954706d93efcc9c0fac3b
<ide><path>Libraries/CustomComponents/ListView/ListView.js <ide> var ListView = React.createClass({ <ide> } <ide> }, <ide> <add> getScrollableNode: function() { <add> if (this._scrollComponent && this._scrollComponent.getScrollableNode) { <add> return this._scrollComponent.getScrollableNode(); <add> ...
1
Go
Go
use "transfermanager" in godoc
587c474b57263e79f2b72bbc19fd67f86c30e495
<ide><path>distribution/xfer/transfer.go <ide> type transfer struct { <ide> // running remains open as long as the transfer is in progress. <ide> running chan struct{} <ide> // released stays open until all watchers release the transfer and <del> // the transfer is no longer tracked by the transfer manager. <add> //...
1
Python
Python
fix longdouble precision check
a5d002e2b969d59e1cea226361f7518921c289e0
<ide><path>numpy/core/tests/test_umath.py <ide> def check(x, rtol): <ide> x_series = np.logspace(-20, -3.001, 200) <ide> x_basic = np.logspace(-2.999, 0, 10, endpoint=False) <ide> <del> if glibc_older_than("2.19") and dtype is np.longcomplex: <add> if dtype is np.longcomplex: <ide> ...
1
Javascript
Javascript
update the hash to have default values
9b9554c47d61228facd3b1f081afd7af307e81f9
<ide><path>models/User.js <ide> var userSchema = new mongoose.Schema({ <ide> instagram: String, <ide> tokens: Array, <ide> challengesCompleted: { type: Array, default: [] }, <del> challengesHash: {}, <del> <add> challengesHash: { <add> 0: { <add> type: Number, <add> default: 0, <add> }, <add> ...
1
Text
Text
improve changelogs formatting [ci skip]
5deec016fe97c238073ea22b7cca9c796c68a0a5
<ide><path>actionview/CHANGELOG.md <ide> <ide> *Paul Seidemann* <ide> <del>* Ensure ActionView::Digestor.cache is correctly cleaned up when <del> combining recursive templates with ActionView::Resolver.caching = false <add>* Ensure `ActionView::Digestor.cache` is correctly cleaned up when <add> combinin...
3
Javascript
Javascript
fix loading from global folders on windows
055482c21e2df94446d9796949d1bb810e8331bf
<ide><path>lib/module.js <ide> Module._initPaths = function() { <ide> homeDir = process.env.HOME; <ide> } <ide> <del> var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')]; <add> // $PREFIX/lib/node, where $PREFIX is the root of the Node.js installation. <add> var prefixDir; <add> // proces...
1
Javascript
Javascript
fix variable name for non-rsa keys
ccc67765276687880000008b291f72cceb19db90
<ide><path>test/parallel/test-webcrypto-sign-verify-rsa.js <ide> async function testVerify({ <ide> noVerifyPublicKey, <ide> privateKey, <ide> hmacKey, <del> rsaKeys <add> ecdsaKeys <ide> ] = await Promise.all([ <ide> subtle.importKey( <ide> 'spki', <ide> async function testVerify({ <ide> ...
1
Text
Text
fix new version for match_alignments
71c2a3ab4747e466e77a0a590c9fed4d3b791f29
<ide><path>website/docs/api/matcher.md <ide> Find all token sequences matching the supplied patterns on the `Doc` or `Span`. <ide> | _keyword-only_ | ...
1
Javascript
Javascript
fix race condition in test-http-client-onerror
2413a4e99d548ac67c549fb699c6c2d209544e3a
<ide><path>test/gc/test-http-client-onerror.js <ide> console.log('We should do ' + todo + ' requests'); <ide> <ide> var http = require('http'); <ide> var server = http.createServer(serverHandler); <del>server.listen(PORT, getall); <add>server.listen(PORT, runTest); <ide> <ide> function getall() { <ide> if (count >=...
1
Java
Java
move coremodulespackage to use turboreactpackage
aa3fc0910a2dbc7562d474982289f390225101e7
<ide><path>ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java <ide> /** <ide> * Copyright (c) Facebook, Inc. and its affiliates. <ide> * <del> * This source code is licensed under the MIT license found in the <del> * LICENSE file in the root directory of this source tree. <add> * <p>This source cod...
1
Mixed
Javascript
add hasintl to failing test
a8979a605434b0a07395c9764caafef362f3875e
<ide><path>test/common/README.md <ide> Checks `hasCrypto` and `crypto` with fips. <ide> <ide> Checks if [internationalization] is supported. <ide> <add>### hasSmallICU <add>* return [&lt;Boolean>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) <add> <add>Checks `hasIntl` and `sm...
5
Ruby
Ruby
require missing association in test
f987609ad6afa4ddd3208621b28de9c2d6ee898e
<ide><path>activerecord/test/cases/associations/has_one_through_associations_test.rb <ide> require 'models/owner' <ide> require 'models/post' <ide> require 'models/comment' <add>require 'models/categorization' <ide> <ide> class HasOneThroughAssociationsTest < ActiveRecord::TestCase <ide> fixtures :member_types, :mem...
1
Javascript
Javascript
split cross-package types from implementation
376d5c1b5aa17724c5fea9412f8fcde14a7b23f1
<ide><path>packages/legacy-events/PluginModuleType.js <ide> * @flow <ide> */ <ide> <del>import type {Fiber} from 'react-reconciler/src/ReactFiber.old'; <add>import type {Fiber} from 'react-reconciler/src/ReactInternalTypes'; <ide> import type { <ide> DispatchConfig, <ide> ReactSyntheticEvent, <ide><path>packages...
69
PHP
PHP
use array_keys instead of array_flip
9be789d3714b5c48fac940729268c4eeae72cf40
<ide><path>lib/Cake/Routing/Route/CakeRoute.php <ide> protected function _writeUrl($params) { <ide> $lengths = array_map('strlen', $this->keys); <ide> $flipped = array_combine($this->keys, $lengths); <ide> arsort($flipped); <del> $keys = array_flip($flipped); <add> $keys = array_keys($flipped); <ide> <ide> f...
1
Go
Go
fix race in list
3536c09ceaa2d94a43a3a3228b096ba7a61f558d
<ide><path>volume/local/local.go <ide> type Root struct { <ide> // List lists all the volumes <ide> func (r *Root) List() ([]volume.Volume, error) { <ide> var ls []volume.Volume <add> r.m.Lock() <ide> for _, v := range r.volumes { <ide> ls = append(ls, v) <ide> } <add> r.m.Unlock() <ide> return ls, nil <ide> } <i...
1
Text
Text
use pbkdf2 in text
a65b0b90c96546a33b0c9d52c9c7024df201d6b1
<ide><path>doc/api/crypto.md <ide> password always creates the same key. The low iteration count and <ide> non-cryptographically secure hash algorithm allow passwords to be tested very <ide> rapidly. <ide> <del>In line with OpenSSL's recommendation to use pbkdf2 instead of <add>In line with OpenSSL's recommendation to...
1
Text
Text
fix a small typo in volume_inspect.md
a96be2930a64be88a5e8bf0e3b0283c657f73844
<ide><path>docs/reference/commandline/volume_inspect.md <ide> parent = "smn_cli" <ide> --help=false Print usage <ide> <ide> Returns information about a volume. By default, this command renders all results <del>in a JSON array. You can specify an alternate format to execute a given template <del>is execute...
1
PHP
PHP
remove debug code included in previous commit
3f1a49d1cf7e303857b76aa543ac96c7bc662818
<ide><path>cake/tests/cases/libs/model/behaviors/tree.test.php <ide> function testMoveToEnd() { <ide> $this->NumberTree->id = $data['NumberTree']['id']; <ide> $this->NumberTree->saveField('parent_id', null); <ide> //$this->NumberTree->setparent(null); <del> // Find the last parent node in the tree <add> // Fi...
1
PHP
PHP
add support for localization in authenticatesusers
e14199a3386f86af84efbad2d83ef62f851ebb5b
<ide><path>src/Illuminate/Foundation/Auth/AuthenticatesUsers.php <ide> protected function getCredentials(Request $request) <ide> */ <ide> protected function getFailedLoginMessage() <ide> { <del> return 'These credentials do not match our records.'; <add> return trans()->has('passwords.failed'...
1
Mixed
Ruby
drop support for the `server_addr` header
093a4cde26225f315bb3d7ccda3b7a8e329ae339
<ide><path>actionpack/CHANGELOG.md <add>* Drop support for the `SERVER_ADDR` header <add> <add> Following up https://github.com/rack/rack/pull/1573 and https://github.com/rails/rails/pull/42349 <add> <add> *Ricardo Díaz* <add> <ide> * Set session options when initializing a basic session. <ide> <ide> *Ga...
3
Ruby
Ruby
fix app generator
ad9bacb189e82816bf333cdbae329f199a171c9f
<ide><path>railties/environments/environment.rb <ide> # If you change this key, all old sessions will become invalid! <ide> config.action_controller.session = { <ide> :session_key => '_<%= app_name %>_session', <del> :secret => '<%= CGI::Session.generate_unique_id(app_name) %>' <add> :secret => ...
2
Go
Go
use a regex to match labels
bc709991b37270e87b84d0102366deff7e402531
<ide><path>daemon/logger/fluentd/fluentd.go <ide> func ValidateLogOpt(cfg map[string]string) error { <ide> case "env": <ide> case "env-regex": <ide> case "labels": <add> case "labels-regex": <ide> case "tag": <ide> case addressKey: <ide> case bufferLimitKey: <ide><path>daemon/logger/gcplogs/gcplogging.go <...
12
Python
Python
fix typo in documentation. toto -> to
041a901f324eea7e7ee04b0f7a563c7ed5c8a03a
<ide><path>transformers/tokenization_gpt2.py <ide> def _tokenize(self, text, add_prefix_space=False): <ide> """ Tokenize a string. <ide> Args: <ide> - add_prefix_space (boolean, default False): <del> Begin the sentence with at least one space toto get invariance to...
1
Ruby
Ruby
update ruby codegen to cleanup build folder.
0e316ec671617f5e7c1985b4b05cd0d45bcea403
<ide><path>scripts/cocoapods/__tests__/codegen_utils-test.rb <ide> require_relative "./test_utils/FinderMock.rb" <ide> require_relative "./test_utils/CodegenUtilsMock.rb" <ide> require_relative "./test_utils/CodegenScriptPhaseExtractorMock.rb" <add>require_relative "./test_utils/FileUtilsMock.rb" <ide> <ide> class Cod...
5
Ruby
Ruby
solve some warnings and a failing test
653acac069e66f53b791caa4838a1e25de905f31
<ide><path>actionpack/lib/action_controller/test_case.rb <ide> class TestSession < Rack::Session::Abstract::SessionHash #:nodoc: <ide> DEFAULT_OPTIONS = Rack::Session::Abstract::ID::DEFAULT_OPTIONS <ide> <ide> def initialize(session = {}) <add> @env, @by = nil, nil <ide> replace(session.stringify_ke...
2
Python
Python
fix typo discard_count -> discarded_count
2c28350d949c1964940546bcbdaacec049adeaed
<ide><path>celery/bin/celeryd.py <ide> def say(msg): <ide> <ide> if discard: <ide> discarded_count = discard_all() <del> what = discard_count > 1 and "messages" or "message" <add> what = discarded_count > 1 and "messages" or "message" <ide> say("discard: Erased %d %s from the queue.\n...
1
Javascript
Javascript
complete the request on timeout
fdf8e0f9889c4ee55c055f09aab57030314c6fde
<ide><path>src/ng/httpBackend.js <ide> function createHttpBackend($browser, createXhr, $browserDefer, callbacks, rawDoc <ide> <ide> xhr.onerror = requestError; <ide> xhr.onabort = requestError; <add> xhr.ontimeout = requestError; <ide> <ide> forEach(eventHandlers, function(value, key) { <ide> ...
2
Python
Python
use optionparser for win32 build script
bd8c4ce81340901cd7322f84cd1911581ce910dd
<ide><path>tools/win32build/build.py <ide> import subprocess <ide> import os <ide> import shutil <add>from os.path import join as pjoin, split as psplit, dirname <ide> <ide> PYEXECS = {"2.5" : "C:\python25\python.exe", <ide> "2.4" : "C:\python24\python2.4.exe"} <ide> def get_windist_exec(pyver): <ide> name...
1
Text
Text
add fix to change log
cfe5fa109a1b0073b2859154168c90658c859c24
<ide><path>laravel/documentation/changes.md <ide> ## Laravel 3.2.7 <ide> <ide> - Fix bug in Eloquent `to_array` method. <add>- Fix bug in displaying of generic error page. <ide> <ide> <a name="upgrade-3.2.7"></a> <ide> ### Upgrading From 3.2.6
1
Javascript
Javascript
fix crash with empty section headers
28b43aa05c7f98f3a2a0938f203ae4745040c9ca
<ide><path>Libraries/CustomComponents/ListView/ListView.js <ide> var ListView = React.createClass({ <ide> } <ide> <ide> if (renderSectionHeader) { <del> bodyComponents.push(React.cloneElement( <del> renderSectionHeader( <del> dataSource.getSectionHeaderData(sectionIdx), <del> ...
1
PHP
PHP
keyby() typehint
52cea7fb5f7f5e4704518b6a82b21a1e8ecb1cc9
<ide><path>src/Illuminate/Collections/Arr.php <ide> public static function join($array, $glue, $finalGlue = '') <ide> * Key an associative array by a field or using a callback. <ide> * <ide> * @param array $array <del> * @param callable|array|string <add> * @param callable|array|string $keyB...
1
Javascript
Javascript
add test for prop interceptors on sandbox
a37a0ad5f6880a133a2091bd8ac0092e3d1b7688
<ide><path>test/parallel/test-vm-global-property-interceptors.js <add>'use strict'; <add>require('../common'); <add>const assert = require('assert'); <add>const vm = require('vm'); <add> <add>const dSymbol = Symbol('d'); <add>const sandbox = { <add> a: 'a', <add> dSymbol <add>}; <add> <add>Object.defineProperties(san...
1
Javascript
Javascript
use require for nativemodules
bd2c57569b916750b3d61a4f122ee305974352fe
<ide><path>Libraries/TurboModule/TurboModuleRegistry.js <ide> <ide> 'use strict'; <ide> <del>import NativeModules from '../BatchedBridge/NativeModules'; <add>const NativeModules = require('../BatchedBridge/NativeModules'); <ide> import type {TurboModule} from './RCTExport'; <ide> import invariant from 'invariant'; <i...
1
PHP
PHP
fix cookie reading
5f5218f3b20cdb43a0680825ffc760e2965b4854
<ide><path>lib/Cake/Controller/Component/CookieComponent.php <ide> public function read($key = null) { <ide> return null; <ide> } <ide> <del> if (!empty($names[1])) { <add> if (!empty($names[1]) && is_array($this->_values[$this->name][$key])) { <ide> return Hash::get($this->_values[$this->name][$key], $names...
1
Text
Text
fix my fix😅
99deae9b7046a44cf3752bd320d1acc54ec7e89c
<ide><path>docs/tutorials/essentials/part-5-async-logic.md <ide> We only need to fetch the list of users once, and we want to do it right when th <ide> ```js title="index.js" <ide> // omit other imports <ide> <del>// highlight-next-line <add>// highlight-start <ide> import store from './app/store' <del>// highlight-ne...
1
Ruby
Ruby
add form_with to unify form_tag/form_for.
67f81cc72db625799465332b87343cc625f346ae
<ide><path>actionview/lib/action_view/helpers/form_helper.rb <ide> def apply_form_for_options!(record, object, options) #:nodoc: <ide> end <ide> private :apply_form_for_options! <ide> <add> # Creates a form tag based on mixing URLs, scopes, or models. <add> # <add> # # Using just a URL: <a...
2
Python
Python
add _2_24 to valid manylinux names
6e4e8b789e8d0fe4591d80a578ff21b388b1956d
<ide><path>tools/openblas_support.py <ide> def get_manylinux(arch): <ide> default = '2014' <ide> ret = os.environ.get("MB_ML_VER", default) <ide> # XXX For PEP 600 this can be a glibc version <del> assert ret in ('1', '2010', '2014'), f'invalid MB_ML_VER {ret}' <add> assert ret in ('1', '2010', '2...
1
Java
Java
join identical catch branches
a218bf40cde2998f7db041d87d85e605e1a880b4
<ide><path>spring-aop/src/main/java/org/springframework/aop/aspectj/AspectJAdviceParameterNameDiscoverer.java <ide> public String[] getParameterNames(Method method) { <ide> } <ide> } <ide> } <del> catch (AmbiguousBindingException ambigEx) { <del> if (this.raiseExceptions) { <del> throw ambigEx; <del> }...
5
Text
Text
add ing to list of users
85fcc2d5c7ff91359868a270c1fd6ad220078f25
<ide><path>README.md <ide> Currently **officially** using Airflow: <ide> * [FreshBooks](https://github.com/freshbooks) [[@DinoCow](https://github.com/DinoCow)] <ide> * [Holimetrix](http://holimetrix.com/) [[@thibault-ketterer](https://github.com/thibault-ketterer)] <ide> * [Handy](http://www.handy.com/careers/73115?gh_...
1
Javascript
Javascript
remove duplicate setpauseonexception call
937288aeabf0ad54dcff997f68b5df52bdad0432
<ide><path>lib/internal/debugger/inspect_repl.js <ide> function createRepl(inspector) { <ide> await Profiler.enable(); <ide> await Profiler.setSamplingInterval({ interval: 100 }); <ide> await Debugger.enable(); <del> await Debugger.setPauseOnExceptions({ state: 'none' }); <ide> await Debugger.setAsyn...
1
PHP
PHP
add beforeresolving method
61b4de9bc4693470d142395fdd475c5a0178aeb1
<ide><path>src/Illuminate/Container/Container.php <ide> protected function unresolvablePrimitive(ReflectionParameter $parameter) <ide> throw new BindingResolutionException($message); <ide> } <ide> <add> /** <add> * Register a new before resolving callback for all types. <add> * <add> * @para...
1
Ruby
Ruby
set the default log_level to info in all tests
6f08eeb6e8fe1082d5a427c0399c75ef8fcf380c
<ide><path>railties/test/isolation/abstract_unit.rb <ide> def make_basic_app <ide> app.secrets.secret_key_base = "3b7cd727ee24e8444053437c36cc66c4" <ide> app.config.session_store :cookie_store, key: "_myapp_session" <ide> app.config.active_support.deprecation = :log <add> app.config.log_level = :...
1
Javascript
Javascript
intialize start and end time as undefined in stats
6fa6720abcb3e6f07d29a5ba4bc4710bfc7b4f8d
<ide><path>lib/Stats.js <ide> class Stats { <ide> constructor(compilation) { <ide> this.compilation = compilation; <ide> this.hash = compilation.hash; <add> this.startTime = undefined; <add> this.endTime = undefined; <ide> } <ide> <ide> static filterWarnings(warnings, warningsFilter) {
1
PHP
PHP
add zip function to collection
118dede7e042dc1678fbfd4320471a6e0ffa1ecf
<ide><path>src/Illuminate/Support/Collection.php <ide> protected function valueRetriever($value) <ide> }; <ide> } <ide> <add> /** <add> * Zip the collection together with one or more arrays <add> * <add> * e.g. new Collection([1, 2, 3])->zip([4, 5, 6]); <add> * => [[1, 4], [2, 5], [3, 6]] <add> * <add> *...
2
PHP
PHP
fix remaining failing helper tests
b50bfe5ae54ae9566c6a4af85e162316b087d1b3
<ide><path>tests/TestCase/View/Helper/FlashHelperTest.php <ide> public function testFlashWithStack() <ide> */ <ide> public function testFlashWithPrefix() <ide> { <del> $this->View->request->params['prefix'] = 'Admin'; <add> $this->View->request = $this->View->request->withParam('prefix', 'Adm...
2
Text
Text
fix fixes from testing with check-all-the-errors
a43ab685966c758c6bb4284e9d9dddcd373b1abf
<ide><path>threejs/lessons/ru/threejs-lights.md <ide> scene.add(light.target); <ide> scene.add(helper); <ide> ``` <ide> <del>Угол конуса прожектора задается с помощью свойства [`angle`](Spotlight.angle) <add>Угол конуса прожектора задается с помощью свойства [`angle`](SpotLight.angle) <ide> в радианах. Мы будем испо...
14
Javascript
Javascript
add loaddocs android app to showcase
e59efc1f023e4c78c3973dcd2ed77385c6cc4261
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> { <ide> name: 'LoadDocs', <ide> icon: 'http://a2.mzstatic.com/us/r30/Purple3/v4/b5/ca/78/b5ca78ca-392d-6874-48bf-762293482d42/icon350x350.jpeg', <del> link: 'https://itunes.apple.com/us/app/loaddocs/id1041596066', <add> linkAppStor...
1
Ruby
Ruby
remove obsolete comment [skip ci]
3e04e03598b03f548e096d12b303041a17db2073
<ide><path>actionpack/lib/action_dispatch/testing/assertions/routing.rb <ide> def assert_generates(expected_path, options, defaults = {}, extras = {}, message <ide> else <ide> expected_path = "/#{expected_path}" unless expected_path.start_with?("/") <ide> end <del> # Load routes.rb if i...
1
Text
Text
fix laterpay link
5377bda9420b5806cfcfceddcfdfbedf5629f6ce
<ide><path>docs/topics/kickstarter-announcement.md <ide> Our platinum sponsors have each made a hugely substantial contribution to the fu <ide> Our gold sponsors include companies large and small. Many thanks for their significant funding of the project and their commitment to sustainable open-source development. <ide>...
1
Go
Go
fix tests in api_test.go
53a8229ce7f8d4d1dfb7a85a31ed25613a9f9813
<ide><path>api_test.go <ide> import ( <ide> "net/http/httptest" <ide> "os" <ide> "path" <add> "strings" <ide> "testing" <ide> "time" <ide> ) <ide> func TestGetAuth(t *testing.T) { <ide> if body == nil { <ide> t.Fatalf("No body received\n") <ide> } <del> if r.Code != http.StatusOK { <del> t.Fatalf("%d OK expec...
1
Go
Go
move isgittransport() to gitutils
d3d1aabcc68f65d40acbf1b3adc02d13997bb8e2
<ide><path>builder/remotecontext/git/gitutils.go <ide> func Clone(remoteURL string) (string, error) { <ide> func parseRemoteURL(remoteURL string) (gitRepo, error) { <ide> repo := gitRepo{} <ide> <del> if !urlutil.IsGitTransport(remoteURL) { <add> if !isGitTransport(remoteURL) { <ide> remoteURL = "https://" + remote...
4
Ruby
Ruby
remove versions module
5194d74c2142c5d0bd4671f2c5eddea821d58661
<ide><path>Library/Homebrew/utils/versions.rb <del># frozen_string_literal: true <del> <del>module Versions <del> module_function <del> <del> def current_formula_version(formula_name) <del> Formula[formula_name].version.to_s.to_f <del> rescue <del> nil <del> end <del> <del> def livecheck_formula(formula) <de...
1
Ruby
Ruby
use github api to get pr commits
415c36041a87ef59eab0c04f557f8f498d762b90
<ide><path>Library/Homebrew/dev-cmd/pr-pull.rb <ide> def autosquash!(original_commit, path: ".", args: nil) <ide> raise <ide> end <ide> <del> def cherry_pick_pr!(pr, args:, path: ".") <add> def cherry_pick_pr!(user, repo, pr, args:, path: ".") <ide> if args.dry_run? <ide> puts <<~EOS <ide> gi...
3
PHP
PHP
fix route bidnings
544faace7a605ab2dbf91365f4d46502194357f8
<ide><path>src/Illuminate/Routing/RouteDependencyResolverTrait.php <ide> protected function resolveClassMethodDependencies(array $parameters, $instance, <ide> /** <ide> * Resolve the given method's type-hinted dependencies. <ide> * <del> * @param array $parameters <add> * @param array $origina...
2
Ruby
Ruby
move runtime back to connection
304c49b1468ce71beb7e3ea0ca4c5add73a1534e
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb <ide> class AbstractAdapter <ide> include QueryCache <ide> include ActiveSupport::Callbacks <ide> <add> attr_accessor :runtime <ide> define_callbacks :checkout, :checkin <ide> <ide> def initialize(connection...
4
PHP
PHP
update auth test case
590872d3c6ec91d06fcc3c21e70a34d4de0be8a7
<ide><path>laravel/tests/cases/auth.test.php <ide> class AuthTest extends PHPUnit_Framework_TestCase { <ide> public function setUp() <ide> { <ide> $_SERVER['auth.login.stub'] = null; <add> $_SERVER['test.user.login'] = null; <add> $_SERVER['test.user.logout'] = null; <add> <ide> Cookie::$jar = array(); <ide> ...
1
Python
Python
fix compatibility comment regarding ordereddict
07ad0474c0cef8f8e88d299eca9dffbe6d01c10d
<ide><path>rest_framework/compat.py <ide> def unicode_to_repr(value): <ide> # OrderedDict only available in Python 2.7. <ide> # This will always be the case in Django 1.7 and above, as these versions <ide> # no longer support Python 2.6. <del># For Django <= 1.6 and Python 2.6 fall back to OrderedDict. <add># For Djang...
1
Javascript
Javascript
add more unit-tests for `primitives.js`
d70e07fb90715807f3585aa60edf631778e8ae6e
<ide><path>test/unit/primitives_spec.js <ide> /* globals expect, it, describe, beforeEach, Name, Dict, Ref, RefSet, Cmd, <del> jasmine, isDict, isRefsEqual */ <add> jasmine, isName, isCmd, isDict, isRef, isRefsEqual */ <ide> <ide> 'use strict'; <ide> <ide> describe('primitives', function() { <add>...
1
Javascript
Javascript
fix memory leak with https.request()
db5a8791fac4d7e088114488f9f5fda4c660ed5a
<ide><path>lib/_http_agent.js <ide> Agent.prototype.addRequest = function(req, options) { <ide> options = util._extend({}, options); <ide> options = util._extend(options, this.options); <ide> <add> if (!options.servername) { <add> options.servername = options.host; <add> const hostHeader = req.getHeader('ho...
2
Go
Go
record the error of removing volumes
49da0290309771891a2ea9238709bc5a248609c9
<ide><path>daemon/delete.go <ide> func (daemon *Daemon) ContainerRm(name string, config *ContainerRmConfig) error <ide> return fmt.Errorf("Cannot destroy container %s: %v", name, err) <ide> } <ide> <del> container.removeMountPoints(config.RemoveVolume) <add> if err := container.removeMountPoints(config.RemoveVolume...
1
Javascript
Javascript
use _loadasfile from _loadasdir
306c929000b385dee02dc3495caebd252a7b1307
<ide><path>packager/src/node-haste/DependencyGraph/ResolutionRequest.js <ide> class ResolutionRequest<TModule: Moduleish, TPackage: Packageish> { <ide> ): TModule { <ide> const packageJsonPath = path.join(potentialDirPath, 'package.json'); <ide> if (this._options.hasteFS.exists(packageJsonPath)) { <del> ...
1
Ruby
Ruby
improve format of git cask info --json output
0bfc6bd490d0ee12624c1c20f7b525bc1939a744
<ide><path>Library/Homebrew/cask/lib/hbc/artifact/abstract_flight_block.rb <ide> def uninstall_phase(**) <ide> abstract_phase(self.class.uninstall_dsl_key) <ide> end <ide> <add> def summarize <add> directives.keys.map(&:to_s).join(", ") <add> end <add> <ide> private <ide> <ide> ...
2
Python
Python
add function for xor gate
a662d96196d58c2415d6a6933fa78a59996cc3fa
<ide><path>boolean_algebra/xor_gate.py <add>""" <add>A XOR Gate is a logic gate in boolean algebra which results to 1 (True) if only one of <add>the two inputs is 1, and 0 (False) if an even number of inputs are 1. <add>Following is the truth table of a XOR Gate: <add> ------------------------------ <add> | Input...
1
Java
Java
add maybe.hide() marble diagram
e51cf16db0d9d100da09476aa0dab5b1c3c35de8
<ide><path>src/main/java/io/reactivex/Maybe.java <ide> public final Completable flatMapCompletable(final Function<? super T, ? extends <ide> <ide> /** <ide> * Hides the identity of this Maybe and its Disposable. <add> * <p> <add> * <img width="640" height="300" src="https://raw.github.com/wiki/Reactiv...
1
Mixed
Python
add optional `id` property to entityruler patterns
1e19f34e29c03dd2751804a437bbb7f62c50771c
<ide><path>.github/contributors/kabirkhan.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or project ...
3
Javascript
Javascript
update ext_blend_minmax handling for webgl 2.0
6065f4f7db0a744a05ac0dbd45d2511a6b73c6c2
<ide><path>src/renderers/webgl/WebGLExtensions.js <ide> function WebGLExtensions( gl ) { <ide> 'OES_element_index_uint', <ide> 'OES_standard_derivatives', <ide> 'EXT_frag_depth', <del> 'EXT_shader_texture_lod' ].indexOf( name ) >= 0 ) { <add> 'EXT_shader_texture_lod', <add> ...
2
PHP
PHP
use integer for plural rule calc
cee3aadd04e2fc6d6543f0bb8c3692aa645363dd
<ide><path>src/I18n/PluralRules.php <ide> class PluralRules <ide> * to the countable provided in $n. <ide> * <ide> * @param string $locale The locale to get the rule calculated for. <del> * @param int|float $n The number to apply the rules to. <add> * @param int $n The number to apply the rules t...
2
PHP
PHP
use chdir() instead of calling multiple commands
31cd0ff07d5a317eb8f3f729b97d168fe507e1bc
<ide><path>src/Shell/Task/PluginTask.php <ide> protected function _modifyAutoloader($plugin, $path) { <ide> } <ide> <ide> try { <del> $command = 'cd ' . escapeshellarg($path) . '; '; <del> $command .= 'php ' . escapeshellarg($composer) . ' dump-autoload'; <add> chdir($path); <add> $command = 'php ' . escap...
2
Javascript
Javascript
use null instead of [] for ops with no args
081866a184932cec784c221ce55914ec3a9a8bec
<ide><path>src/core/evaluator.js <ide> var PartialEvaluator = (function PartialEvaluatorClosure() { <ide> var name = args[0].name; <ide> if (imageCache.key === name) { <ide> operatorList.addOp(imageCache.fn, imageCache.args); <del> args = []; <add> ...
2
Python
Python
add a test for ticket
e74585da4b5519115995cbca915e69b48370a162
<ide><path>numpy/core/tests/test_einsum.py <ide> def test_einsum_misc(self): <ide> assert_equal(np.einsum('ijklm,ijn,ijn->',a,b,b), <ide> np.einsum('ijklm,ijn->',a,b)) <ide> <add> # Issue #2027, was a problem in the contiguous 3-argument <add> # inner loop implementation <...
1
Ruby
Ruby
reduce iterations for non-homogeneous collections
7c0dea18ce6593416b1242973b0695e06b64d657
<ide><path>actionview/lib/action_view/renderer/collection_renderer.rb <ide> def each_with_info <ide> end <ide> <ide> def render_collection_with_partial(collection, partial, context, block) <del> collection = build_collection_iterator(collection, partial, context) <add> collection = SameCollectionIter...
1
Ruby
Ruby
fix method name in update! error message [ci skip]
fcc83e47384b69ea33c7eeb3c15f350d6d8914b5
<ide><path>activerecord/lib/active_record/persistence.rb <ide> def update!(id = :all, attributes) <ide> if id.is_a?(Array) <ide> if id.any?(ActiveRecord::Base) <ide> raise ArgumentError, <del> "You are passing an array of ActiveRecord::Base instances to `update`. " \ <add> ...
1
Ruby
Ruby
warn people not to change boot.rb
9d88348e2ef367bcca612b2b5fba5e7189e2db20
<ide><path>railties/environments/boot.rb <add># Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rb <add> <ide> unless defined?(RAILS_ROOT) <ide> root_path = File.join(File.dirname(__FILE__), '..') <ide> unless RUBY_PLATFORM =~ /mswin32/
1
PHP
PHP
reduce discoverability of session cookie name
a7f2c060b2456d389aec9d7ddf127a2b8ff1bb82
<ide><path>config/session.php <ide> | <ide> */ <ide> <del> 'cookie' => 'laravel_session', <add> 'cookie' => env('SESSION_COOKIE', snake_case(env('APP_NAME', 'laravel')).'_session'), <ide> <ide> /* <ide> |--------------------------------------------------------------------------
1
Mixed
Ruby
add string#in_time_zone method
331a82a1c8ec25cd8df3297b434cbb7cc020207a
<ide><path>activesupport/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Add `String#in_time_zone` method to convert a string to an ActiveSupport::TimeWithZone. *Andrew White* <add> <ide> * Deprecate `ActiveSupport::BasicObject` in favor of `ActiveSupport::ProxyObject`. <ide> This class is used ...
4
Javascript
Javascript
do a hard reload if hot update can't be applied
3b1dbccaaf90aa05a0b25e4853e6b8d48da1deaf
<ide><path>Libraries/Core/InitializeCore.js <ide> require('./setUpSegmentFetcher'); <ide> if (__DEV__) { <ide> require('./checkNativeVersion'); <ide> require('./setUpDeveloperTools'); <add> <add> // This is used by the require.js polyfill for hot reloading. <add> // TODO(t9759686) Scan polyfills for dependencies,...
1
Text
Text
remove references to inactive guides. - fixes #571
e84fde145cbd6feae68d0b12fb164cf44fec42a7
<ide><path>README.md <ide> For new users, we recommend downloading the [Ember.js Starter Kit](https://githu <ide> <ide> We also recommend that you check out the [annotated Todos example](http://annotated-todos.strobeapp.com/), which shows you the best practices for architecting an MVC-based web application. You can al...
1
Mixed
Javascript
add docs for 'intentandroid'
2f32cccce782c46705826ae4d8990bc680539b0f
<ide><path>docs/KnownIssues.md <ide> There are known cases where the APIs could be made more consistent across iOS an <ide> <ide> - `<AndroidViewPager>` and `<ScrollView pagingEnabled={true}>` on iOS do a similar thing. We might want to unify them to `<ViewPager>`. <ide> - `alert()` needs Android support (once the Dia...
2