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 proper link
fec2d82721bd1b143af00de54f11883876738186
<ide><path>README.md <ide> In order to ensure that the Laravel community is welcoming to all, please review <ide> <ide> ## Security Vulnerabilities <ide> <del>Please review [our security policy](SECURITY.md) on how to report security vulnerabilities. <add>Please review [our security policy](https://github.com/laravel...
1
Javascript
Javascript
avoid function call where possible
20347d51549bc7319ec3a44fe8b5fd25994df462
<ide><path>lib/internal/streams/utils.js <ide> function isReadableFinished(stream, strict) { <ide> <ide> function isReadable(stream) { <ide> if (stream && stream[kIsReadable] != null) return stream[kIsReadable]; <del> const r = isReadableNodeStream(stream); <ide> if (typeof stream?.readable !== 'boolean') return ...
1
PHP
PHP
remove php7 specific syntax
ced58b479cff986604e72753ea66518ec1fbc86c
<ide><path>src/Console/Command.php <ide> public function abort($code = self::CODE_ERROR) <ide> * @param \Cake\Console\ConsoleIo $io The ConsoleIo instance to use for the executed command. <ide> * @return int|null The exit code or null for success of the command. <ide> */ <del> public function executeC...
1
Python
Python
add regression test
7c1260e98c92d01192dd92534215da3f98f7684c
<ide><path>spacy/tests/regression/test_issue852.py <add># encoding: utf8 <add>from __future__ import unicode_literals <add> <add>import pytest <add> <add> <add>@pytest.mark.parametrize('text', ["au-delàs", "pair-programmâmes", <add> "terra-formées", "σ-compacts"]) <add>def test_issue852...
1
Ruby
Ruby
convert languagemodulerequirement test to spec
f33efbe7c46d4a148af00c83dff73c14717ed0d1
<ide><path>Library/Homebrew/test/language_module_requirement_spec.rb <add>require "requirements/language_module_requirement" <add> <add>describe LanguageModuleRequirement do <add> specify "unique dependencies are not equal" do <add> x = described_class.new(:node, "less") <add> y = described_class.new(:node, "cof...
3
Python
Python
fix typos in hiveoperator
457949d49f12cffcb3466ad44f4349bfd0c68f1c
<ide><path>airflow/operators/hive_operator.py <ide> class HiveOperator(BaseOperator): <ide> :param hive_cli_conn_id: reference to the Hive database <ide> :type hive_cli_conn_id: string <ide> :param hiveconf_jinja_translate: when True, hiveconf-type templating <del> ${var} gets translated into jina-ty...
1
Ruby
Ruby
fix schema leakage from dirty_test.rb
de24b8cb9c38a02b521d762d4b8eef11f6a78978
<ide><path>activerecord/test/cases/dirty_test.rb <ide> def test_field_named_field <ide> end <ide> ensure <ide> ActiveRecord::Base.connection.drop_table :testings rescue nil <add> ActiveRecord::Base.clear_cache! <ide> end <ide> end <ide>
1
Python
Python
add tests for lagfit with deg specified as list
84e0b6ec1b686b908eb2d8bba38337a13f02cb82
<ide><path>numpy/polynomial/tests/test_laguerre.py <ide> def f(x): <ide> assert_raises(TypeError, lag.lagfit, [1], [1, 2], 0) <ide> assert_raises(TypeError, lag.lagfit, [1], [1], 0, w=[[1]]) <ide> assert_raises(TypeError, lag.lagfit, [1], [1], 0, w=[1, 1]) <add> assert_raises(ValueError, ...
1
Javascript
Javascript
use a class for whatwg url[context]
14a91957f8bce2d614ec361f982aa56378f1c24e
<ide><path>lib/internal/url.js <ide> const util = require('util'); <ide> const { <ide> hexTable, <del> isHexTable, <del> StorageObject <add> isHexTable <ide> } = require('internal/querystring'); <ide> const binding = process.binding('url'); <ide> const context = Symbol('context'); <ide> class TupleOrigin { <ide> ...
1
Javascript
Javascript
add tabbarios.item on android
5e20b7bcfbefa9084ab6cdac9c24926ba8a64126
<ide><path>Libraries/Components/TabBarIOS/TabBarIOS.android.js <ide> * of patent rights can be found in the PATENTS file in the same directory. <ide> * <ide> * @providesModule TabBarIOS <add> * @flow <ide> */ <ide> <ide> 'use strict'; <ide> <del>var React = require('React'); <del>var View = require('View'); <del>...
1
Java
Java
fix links in javadoc
c7f44ff671fe13e8474316ebe074fdde8d413326
<ide><path>spring-beans/src/test/java/org/springframework/beans/factory/xml/DuplicateBeanIdTests.java <ide> * <ide> * @author Chris Beams <ide> * @since 3.1 <del> * @see org.springframework.beans.factory.xml.XmlBeanFactoryTests#testWithDuplicateName <del> * @see org.springframework.beans.factory.xml.XmlBeanFactoryTe...
9
Python
Python
add test for gufunc scalar case
b5c77332b0ef46d7373c92e71866a8885f375ddf
<ide><path>numpy/core/tests/test_ufunc.py <ide> def test_forced_sig(self): <ide> def test_inner1d(self): <ide> a = np.arange(6).reshape((2,3)) <ide> assert_array_equal(umt.inner1d(a,a), np.sum(a*a,axis=-1)) <add> a = np.arange(6) <add> assert_array_equal(umt.inner1d(a,a), np.sum(a*a)) ...
1
PHP
PHP
add integration test
f970b65732ed0688434b277d25afaf5c28b57021
<ide><path>tests/Redis/RedisConnectionTest.php <ide> public function connections() <ide> $prefixedPhpredis = new RedisManager(new Application, 'phpredis', [ <ide> 'cluster' => false, <ide> 'default' => [ <del> 'host' => $host, <del> 'port...
1
Text
Text
remove errors within a challenge solution
c201e415647c9e2a993cacb1aeb1df5a7978b142
<ide><path>guide/arabic/certifications/coding-interview-prep/algorithms/inventory-update/index.md <ide> localeTitle: تحديث المخزون <ide> // A helper method to return the index of a specified product (undefined if not found) <ide> var getProductIndex = function (name) { <ide> for (var i = 0...
6
Text
Text
add changelog entry for [ci skip]
2a90d60c941deb4ba31fa7bcfd5ebee1b536c963
<ide><path>activerecord/CHANGELOG.md <add>* Alias `ActiveRecord::Relation#left_joins` to <add> `ActiveRecord::Relation#left_outer_joins`. <add> <add> *Takashi Kokubun* <add> <ide> * Use advisory locking to raise a ConcurrentMigrationError instead of <ide> attempting to migrate when another migration is cu...
1
Javascript
Javascript
fix one last alias case
149fe898645e45e499b2b1acf31095b9c859599a
<ide><path>packages/ember-metal/lib/mixin.js <ide> function applyMixin(obj, mixins, partial) { <ide> } else { <ide> while (desc && desc instanceof Alias) { <ide> var altKey = desc.methodName; <del> if (descs[altKey]) { <add> if (descs[altKey] || values[altKey]) { <ide> value = ...
1
Ruby
Ruby
add outdated_versions tests
d47df68cbd03fb621825d12a531f91938571ec04
<ide><path>Library/Homebrew/test/test_formula.rb <ide> def test_pour_bottle_dsl <ide> assert f_true.pour_bottle? <ide> end <ide> end <add> <add>class OutdatedVersionsTests < Homebrew::TestCase <add> attr_reader :outdated_prefix, :same_prefix, :greater_prefix, :head_prefix <add> attr_reader :f <add> <add> def s...
1
Ruby
Ruby
pass strings to factory
a6777838d44c66fa6c5051af3b43cd6e596a502b
<ide><path>Library/Homebrew/formula.rb <ide> class << self <ide> end <ide> <ide> def self.installed <del> HOMEBREW_CELLAR.children.map{ |rack| factory(rack.basename) rescue nil }.compact <add> # `rescue nil` is here to skip kegs with no corresponding formulae <add> HOMEBREW_CELLAR.children.map{ |rack| fac...
1
Go
Go
change integration test to use variable
ce1059973a4a46acc272a8c0fea521c96e628ba7
<ide><path>integration-cli/docker_cli_network_unix_test.go <ide> func (s *DockerNetworkSuite) TestDockerNetworkHostModeUngracefulDaemonRestart(c <ide> c.Assert(err, checker.IsNil, check.Commentf(out)) <ide> <ide> // verfiy container has finished starting before killing daemon <del> err = s.d.waitRun(fmt.Sprintf("...
1
PHP
PHP
add nullcontext class
15ac7ff83aeefde80468d5b7060dbca6fcc293e9
<ide><path>src/View/Form/NullContext.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and license information, please s...
1
Javascript
Javascript
remove deprecated code strings
234adb8748aa4adbb510e9e5e8e006388b3b7d0b
<ide><path>packages/one-dark-ui/lib/main.js <ide> module.exports = { <ide> atom.config.observe(`${themeName}.tabCloseButton`, setTabCloseButton); <ide> atom.config.observe(`${themeName}.hideDockButtons`, setHideDockButtons); <ide> atom.config.observe(`${themeName}.stickyHeaders`, setStickyHeaders); <del> <d...
4
Go
Go
improve warnings when image digest pinning fails
44855dff42a4adbf73a4d286e27963da2112f563
<ide><path>daemon/cluster/services.go <ide> func (c *Cluster) CreateService(s types.ServiceSpec, encodedAuth string) (*apity <ide> digestImage, err := c.imageWithDigestString(ctx, ctnr.Image, authConfig) <ide> if err != nil { <ide> logrus.Warnf("unable to pin image %s to digest: %s", ctnr.Image, err.Error()) ...
1
Javascript
Javascript
fix the openext call
d9b39323cf01273e240cccbf0dab024416856e55
<ide><path>src/git-repository-async.js <ide> export default class GitRepositoryAsync { <ide> this.emitter = new Emitter() <ide> this.subscriptions = new CompositeDisposable() <ide> this.pathStatusCache = {} <del> this.repoPromise = Git.Repository.openExt(_path) <add> this.repoPromise = Git.Repository....
1
PHP
PHP
add greeting option to simplemessage notification
cef70172b02f20b38281b3360069a951df2baedc
<ide><path>src/Illuminate/Notifications/Messages/SimpleMessage.php <ide> class SimpleMessage <ide> */ <ide> public $subject; <ide> <add> /** <add> * Greeting at the beginning of the notification. <add> * If null, a greeting depending on the level will be displayed. <add> * <add> * @var stri...
3
Java
Java
increase sleep time in scheduledataitests
9a6ec1b4b5a2e39841b44b466b1e9986700d4325
<ide><path>src/test/java/org/springframework/scheduling/annotation/ScheduledAndTransactionalAnnotationIntegrationTests.java <ide> public void succeedsWhenSubclassProxyAndScheduledMethodNotPresentOnInterface() t <ide> ctx.register(Config.class, SubclassProxyTxConfig.class, RepoConfigA.class); <ide> ctx.refresh(); <i...
1
Python
Python
add code for keras nli example
de32b6e5b8a090727c7238eedb1ac29c0a4bf521
<ide><path>examples/nli/__main__.py <add>from __future__ import division, unicode_literals, print_function <add>import spacy <add> <add>import plac <add>from pathlib import Path <add> <add>from spacy_hook import get_embeddings, get_word_ids <add>from spacy_hook import create_similarity_pipeline <add> <add> <add>def tra...
3
Javascript
Javascript
isolate cache leaks from subsequent tests
04ae4e5b47fbc015b5de3dd660bce7b1904e2268
<ide><path>test/helpers/testabilityPatch.js <ide> afterEach(function() { <ide> } else { <ide> dump('LEAK', key, angular.toJson(value)); <ide> } <add> delete expando.data[key]; <ide> }); <ide> }); <ide> if (count) {
1
Text
Text
add version meta for ssl_cert_dir/file
d2de2ad846d80503c524e138c97e2f4078ab926e
<ide><path>doc/api/cli.md <ide> If the [`--openssl-config`][] command line option is used, the environment <ide> variable is ignored. <ide> <ide> ### `SSL_CERT_DIR=dir` <add><!-- YAML <add>added: REPLACEME <add>--> <ide> <ide> If `--use-openssl-ca` is enabled, this overrides and sets OpenSSL's directory <ide> contain...
1
Javascript
Javascript
make camera optional
fbf6a820de0a9a6407d471b6634e336a7845b9a2
<ide><path>threejs/lessons/resources/threejs-lesson-utils.js <ide> window.threejsLessonUtils = { <ide> const aspect = 1; <ide> const zNear = 0.1; <ide> const zFar = 50; <del> const camera = new THREE.PerspectiveCamera(targetFOVDeg, aspect, zNear, zFar); <add> let camera = new THREE.PerspectiveCamera(t...
1
Text
Text
add more information to head tag in 38 line
e279dbd9f4b42d1d6b667dd47ce43082f9d01454
<ide><path>guide/english/html/index.md <ide> In HTML tags come in pairs, as seen above. The first tag in a pair is called the <ide> <ide> html: The root element of an HTML page <ide> <del>head: This element contains meta information about the document <add>head: The element contains meta information about the documen...
1
PHP
PHP
remove empty foreign key test
87d8dd706e727048157f9f708cd23c93b27e5aad
<ide><path>lib/Cake/Database/Schema/Table.php <ide> public function column($name) { <ide> * - `type` The type of index being added. <ide> * - `columns` The columns in the index. <ide> * <add> * @TODO implement foreign keys. <ide> * @param string $name The name of the index. <ide> * @param array $attrs The attribut...
2
Java
Java
add extra logging in the bridge exception handling
4ad852c1376e268456cd6dcd0d240dd75d780df4
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactContext.java <ide> import android.os.Bundle; <ide> import android.view.LayoutInflater; <ide> import androidx.annotation.Nullable; <add>import com.facebook.common.logging.FLog; <ide> import com.facebook.infer.annotation.Assertions; <ide> import com.fac...
1
Python
Python
update tf backend
1ccad186fd950b77dab771686200fc4a23bc0c2c
<ide><path>keras/backend/tensorflow_backend.py <ide> def switch(condition, then_expression, else_expression): <ide> then_expression: TensorFlow operation. <ide> else_expression: TensorFlow operation. <ide> """ <del> x_shape = copy.copy(then_expression.get_shape()) <ide> if condition.dtype != ...
1
Javascript
Javascript
fix conflicting real imports and type imports
cbcd459d19865175b17bdf60b76d3da838f62a47
<ide><path>lib/Compilation.js <ide> const { getRuntimeKey } = require("./util/runtime"); <ide> /** @typedef {import("./Dependency").ReferencedExport} ReferencedExport */ <ide> /** @typedef {import("./DependencyTemplate")} DependencyTemplate */ <ide> /** @typedef {import("./Entrypoint").EntryOptions} EntryOptions */ <de...
20
Text
Text
update package.json field definitions
e6b1d74b8dd17698c5a7a000bfe6b20e02820907
<ide><path>doc/api/packages.md <ide> The following fields in `package.json` files are used in Node.js: <ide> <ide> * [`"name"`][] - Relevant when using named imports within a package. Also used <ide> by package managers as the name of the package. <add>* [`"main"`][] - The default module when loading the package, if...
1
Ruby
Ruby
fix typo in doco
12686ad417c40274f1da439c5cb7484aefde8b8c
<ide><path>Library/Homebrew/cmd/fetch.rb <ide> #: If `--HEAD` or `--devel` is passed, fetch that version instead of the <ide> #: stable version. <ide> #: <del>#: If `-v` is passed, do a verbose VCS checkout, if the URL represents a CVS. <add>#: If `-v` is passed, do a verbose VCS checkout, if the URL repres...
1
PHP
PHP
add assertion for number of results
426937bc759686775bd5dafbbb40faa5ad5b491c
<ide><path>tests/TestCase/ORM/MarshallerTest.php <ide> public function testMergeManyExistQueryFails() <ide> $marshall = new Marshaller($comments); <ide> $result = $marshall->mergeMany($entities, $data); <ide> <add> $this->assertCount(3, $result); <ide> $this->assertEquals('Changed 1', $r...
1
Javascript
Javascript
fix global leaks
92789b16e594f806dbdaee1a65c1d8440b96fc65
<ide><path>lib/net.js <ide> Server.prototype._rejectPending = function() { <ide> // Accept and close the waiting clients one at a time. <ide> // Single threaded programming ftw. <ide> while (true) { <del> peerInfo = accept(this.fd); <add> var peerInfo = accept(this.fd); <ide> if (!peerInfo) return; <ide...
30
PHP
PHP
fix errors when validateunique is used with scope
28462cab25c13ece7bf82bf65caa1a98d30e1c1f
<ide><path>src/ORM/Table.php <ide> public function patchEntities($entities, array $data, array $options = []) <ide> * the data to be validated. <ide> * <ide> * @param mixed $value The value of column to be checked for uniqueness <del> * @param array $options The options array, optionally containing t...
2
Javascript
Javascript
use ports proxied by saucelabs
df17a2c7495cea22f803d1e2e22329712a7fd25a
<ide><path>lib/grunt/utils.js <ide> module.exports = { <ide> stream: options && options.stream <ide> }; <ide> <del> args.push('--port=' + this.lastParallelTaskPort); <add> args.push('--port=' + this.sauceLabsAvailablePorts.pop()); <ide> <ide> if (args.indexOf('test:e2e') !== -1 && grunt.option('e2...
1
Javascript
Javascript
add common.platformtimeout() to dgram test
d3195615c0d11301b48f56413a26ca4d5d05f109
<ide><path>test/parallel/test-dgram-send-empty-buffer.js <ide> 'use strict'; <del>var common = require('../common'); <del> <del>var dgram = require('dgram'); <del>var client, timer, buf; <add>const common = require('../common'); <add>const dgram = require('dgram'); <ide> <ide> if (process.platform === 'darwin') { <ide...
1
PHP
PHP
update integrationtestcase tests to use httpserver
b1adcab2cae3669c24256a7c55303d028bdb9329
<ide><path>src/TestSuite/IntegrationTestCase.php <ide> public function controllerSpy($event, $controller = null) <ide> $this->_viewName = $viewFile; <ide> } <ide> if ($this->_retainFlashMessages) { <del> $this->_flashMessages = $controller->request->session()->read...
3
Javascript
Javascript
remove polyfill for helio
6f91e54fcd8b9413643cd9fe064cb492f6a14a26
<ide><path>examples/js/vr/HelioWebXRPolyfill.js <ide> <ide> if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) { <ide> <add> if ('isSessionSupported' in navigator.xr) { <add> return; <add> } <add> <ide> console.log( "Helio WebXR Polyfill (Lumin 0.97.0)" ); <ide> <ide> const isHelio96 = na...
1
Javascript
Javascript
close dumb terminals on control+c
a5edceea0416ad911ffdbc9b6a93eb3630d1a550
<ide><path>lib/readline.js <ide> function _ttyWriteDumb(s, key) { <ide> // This readline instance is finished <ide> this.close(); <ide> } <add> <add> return; <ide> } <ide> <ide> switch (key.name) {
1
Text
Text
fix typo for 'fundations'
0c4b2728c8c399c3bbcd210149b044f360bb9439
<ide><path>docs/_posts/2014-07-28-community-roundup-20.md <ide> At the last [JSConf.us](http://2014.jsconf.us/), Vjeux talked about the design d <ide> <ide> ## Live Editing <ide> <del>The best feature of React is that it provides fundations to implement concepts that were otherwise extremely hard to like server-side ...
1
Ruby
Ruby
add big sur
8d29e79f7eb4c6169fd6b0ec2149a7bcf51be45b
<ide><path>Library/Homebrew/os/mac/version.rb <ide> module OS <ide> module Mac <ide> class Version < ::Version <ide> SYMBOLS = { <add> big_sur: "10.16", <ide> catalina: "10.15", <ide> mojave: "10.14", <ide> high_sierra: "10.13",
1
Python
Python
fix the test so it works with 2.5
6f764a1d3ea038f037129f8eba19e7fff8abf56c
<ide><path>libcloud/test/compute/test_ec2.py <ide> def test_instantiate_driver_valid_datacenters(self): <ide> datacenters.remove('nimbus') <ide> <ide> for datacenter in datacenters: <del> EC2NodeDriver(*EC2_PARAMS, datacenter=datacenter) <add> EC2NodeDriver(*EC2_PARAMS, **{'datace...
1
Ruby
Ruby
fix wrong `force` keyword
1bfd2ac0e2613b0f5ceb0d5da16c9ff512b5dd4d
<ide><path>Library/Homebrew/cmd/fetch.rb <ide> def fetch <ide> else <ide> cask = formula_or_cask <ide> <del> options = { <del> force: args.force?, <del> quarantine: args.quarantine?, <del> }.compact <add> quarantine = args.quarantine? <add> quarantine = ...
1
Javascript
Javascript
improve test stability
32a9b205aad6d6ab8e47b7fbbee946e8bb75a88d
<ide><path>test/ProgressPlugin.test.js <ide> "use strict"; <ide> <add>require("./helpers/warmup-webpack"); <add> <ide> const _ = require("lodash"); <ide> const path = require("path"); <ide> const { createFsFromVolume, Volume } = require("memfs"); <ide><path>test/configCases/externals/concatenated-module/test.filter.js...
2
Text
Text
add additional reference links
b1a89d7aaac7b4eb4e93c973cd263040cf41c5f6
<ide><path>docs/FAQ.md <ide> It’s generally suggested that selectors are defined alongside reducers and exp <ide> - [Stack Overflow: How to structure Redux components/containers](http://stackoverflow.com/questions/32634320/how-to-structure-redux-components-containers/32921576) <ide> - [Redux Best Practices](https://med...
1
Go
Go
add isprivate method for networkmode
080ca8619172b020c7da29b46f2fe4c939bb47ca
<ide><path>daemon/container.go <ide> func (container *Container) buildHostnameAndHostsFiles(IP string) error { <ide> <ide> func (container *Container) allocateNetwork() error { <ide> mode := container.hostConfig.NetworkMode <del> if container.Config.NetworkDisabled || mode.IsContainer() || mode.IsHost() || mode.IsNon...
2
Ruby
Ruby
remove unnecessary string evals from doctor
d9c586e201b6d5ebfd7ccfe466808a2214494c0f
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_access_usr_local <ide> end <ide> <ide> %w{include etc lib lib/pkgconfig share}.each do |d| <del> class_eval <<-EOS, __FILE__, __LINE__ + 1 <del> def check_access_#{d.sub("/", "_")} <del> if (dir = HOMEBREW_PREFIX+'#{d}').exist? && !dir.writable_real? <...
1
PHP
PHP
remove unneeded method call
7fc5c93f454148bae6b1e8c2b731fd3f6b01aa03
<ide><path>src/Core/PluginCollection.php <ide> protected function loadConfig(): void <ide> */ <ide> public function findPath(string $name): string <ide> { <del> $this->loadConfig(); <del> <ide> $path = Configure::read('plugins.' . $name); <ide> if ($path) { <ide> return $...
1
Python
Python
add a deprecated flag to a size
5f2925d4739ab43906f8a1c4f8105e5f96f50347
<ide><path>libcloud/compute/drivers/gce.py <ide> def _to_node(self, node): <ide> extra['tags_fingerprint'] = node['tags']['fingerprint'] <ide> extra['scheduling'] = node.get('scheduling', {}) <ide> <add> if (machine_type.get('deprecated')): <add> extra['deprecated'] = True <add> <ide>...
1
Javascript
Javascript
remove other copy functions
ea7d602a0619ba2b12d81f09e2472d455f004e36
<ide><path>examples/js/lines/LineSegmentsGeometry.js <ide> THREE.LineSegmentsGeometry.prototype = Object.assign( Object.create( THREE.Insta <ide> <ide> // todo <ide> <del> }, <del> <del> clone: function () { <del> <del> // todo <del> <del> }, <del> <del> copy: function ( /* source */ ) { <del> <del> // todo <del>...
3
Ruby
Ruby
handle renames on update
6b0927944aca1b11eec90659b11390a1575c7ff1
<ide><path>Library/Homebrew/cmd/update.rb <ide> require "cmd/tap" <ide> require "formula_versions" <add>require "migrator" <add>require "formulary" <ide> <ide> module Homebrew <ide> def update <ide> def update <ide> <ide> # automatically tap any migrated formulae's new tap <ide> report.select_formula(:D).ea...
1
Ruby
Ruby
allow range#=== and range#cover? on range
0fcb921a65e615c301450d7820b03473acd53898
<ide><path>activesupport/lib/active_support/core_ext/range.rb <ide> # frozen_string_literal: true <ide> <ide> require "active_support/core_ext/range/conversions" <del>require "active_support/core_ext/range/include_range" <add>require "active_support/core_ext/range/compare_range" <ide> require "active_support/core_ext/...
3
Text
Text
add missing space in test/readme.md
aa76ce943b618c3b6d5b86c89f69aa4817ca783d
<ide><path>test/README.md <ide> On how to run tests in this directory, see <ide> |addons |Yes |Tests for [addon](https://nodejs.org/api/addons.html) functionality along with some tests that require an addon to function properly.| <ide> |cctest |Yes |C++ test that is run as...
1
Text
Text
replace instance of var with let
7d90b9a1796dc758b61402740975e9f5d2992ea3
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/global-scope-and-functions.md <ide> function fun1() { <ide> // Only change code above this line <ide> <ide> function fun2() { <del> var output = ""; <add> let output = ""; <ide> if (typeof myGlobal != "undefined"...
1
PHP
PHP
restore error handlers
111db16ca6bce5cd0089c760d14e161c6230a2ee
<ide><path>lib/Cake/Core/Configure.php <ide> public static function bootstrap($boot = true) { <ide> if (!include APP . 'Config' . DS . 'bootstrap.php') { <ide> trigger_error(__d('cake_dev', "Can't find application bootstrap file. Please create %sbootstrap.php, and make sure it is readable by PHP.", APP . 'Config...
1
PHP
PHP
add support for predis client options
a83dcabd2ec37359bd728faa36b9282be478c8f1
<ide><path>src/Illuminate/Redis/Database.php <ide> protected function createAggregateClient(array $servers) <ide> { <ide> $servers = array_except($servers, array('cluster')); <ide> <del> return array('default' => new Client(array_values($servers))); <add> $options = $this->getClientOptions($servers); <add> <add> ...
1
Java
Java
remove assertion on number of resource locations
4df05d1f98ade553c085ebd811f806c77f090a7d
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/ResourceHandlerRegistration.java <ide> protected String[] getPathPatterns() { <ide> * Returns a {@link ResourceHttpRequestHandler} instance. <ide> */ <ide> protected ResourceHttpRequestHandler getRequestHandler() { <del> Asse...
2
Javascript
Javascript
remove extra slash when redirecting to client
92d7ae172596317da64cb93c32cc3c8641e54668
<ide><path>api-server/src/server/boot/challenge.js <ide> import { fixCompletedChallengeItem } from '../../common/utils'; <ide> import { getChallenges } from '../utils/get-curriculum'; <ide> import { <ide> getRedirectParams, <del> getRedirectBase, <del> normalizeParams <add> normalizeParams, <add> getPrefixedLandi...
4
Javascript
Javascript
fix deprecation message for limitchunkcountplugin
d88605dcbd7a67d2e7737d10e31714a11a48ca76
<ide><path>lib/optimize/LimitChunkCountPlugin.js <ide> class LimitChunkCountPlugin { <ide> } <ide> <ide> // merge the chunks <del> if (a.integrate(b, "limit")) { <add> if (chunkGraph.canChunksBeIntegrated(a, b)) { <add> chunkGraph.integrateChunks(a, b); <ide> compilation.chunks.delet...
1
Python
Python
add percpu to export module
2f2b84b6bd75a53095ab3cd22ceaf70e34367a5c
<ide><path>glances/exports/glances_export.py <ide> def exit(self): <ide> <ide> def plugins_to_export(self): <ide> """Return the list of plugins to export""" <del> return ['cpu', 'load', 'mem', 'memswap', 'network', 'diskio', 'fs', 'processcount'] <add> return ['cpu', 'percpu', 'load', 'mem', ...
2
Javascript
Javascript
add umd module test with marked
a63af1fd642c7f2e700dcf80320f6297e6f9c7a5
<ide><path>test/fixtures/snapshot/check-marked.js <add>'use strict'; <add> <add>let marked; <add>if (process.env.NODE_TEST_USE_SNAPSHOT === 'true') { <add> console.error('NODE_TEST_USE_SNAPSHOT true'); <add> marked = globalThis.marked; <add>} else { <add> console.error('NODE_TEST_USE_SNAPSHOT false'); <add> marked ...
3
Python
Python
remove useless strings from translation
d3a36c58b845259233f30737b900826412624a81
<ide><path>glances/plugins/glances_now.py <ide> def msg_curse(self, args=None): <ide> <ide> # Build the string message <ide> # 23 is the padding for the process list <del> msg = _("{0:23}").format(self.stats) <add> msg = '{0:23}'.format(self.stats) <ide> ret.append(self.curse_add_...
2
Python
Python
use consistent docstring format
4d83eba0b9cfa6beecd4dddeaba5040aa5a7b4f0
<ide><path>libcloud/compute/drivers/cloudstack.py <ide> <ide> <ide> class CloudStackNode(Node): <del> "Subclass of Node so we can expose our extension methods." <add> """ <add> Subclass of Node so we can expose our extension methods. <add> """ <ide> <ide> def ex_allocate_public_ip(self): <del> ...
1
Text
Text
remove erroneous entrypoint note
f44d78b47838204b85204711d014b7f4cf7826ec
<ide><path>docs/reference/builder.md <ide> sys 0m 0.03s <ide> > `ENTRYPOINT [ "echo", "$HOME" ]` will not do variable substitution on `$HOME`. <ide> > If you want shell processing then either use the *shell* form or execute <ide> > a shell directly, for example: `ENTRYPOINT [ "sh", "-c", "echo $HOME" ]`. <del>> Variabl...
1
Text
Text
react devtools 4.10.0 -> 4.10.1
3a8c04e3b234d8f54b35fa07796f4db8311bcbbd
<ide><path>packages/react-devtools/CHANGELOG.md <ide> <ide> ## 4.10.1 (November 12, 2020) <ide> #### Bugfix <del>* Fixed invalid internal work tag mappings ([bvaughn](https://github.com/bvaughn) in [#20380](https://github.com/facebook/react/pull/20380)) <add>* Fixed invalid internal work tag mappings ([bvaughn](https:...
1
Python
Python
implement like_num getter for french (via )
bb5c6314029cc598b667542579fad347044422e9
<ide><path>spacy/lang/fr/__init__.py <ide> from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS, TOKEN_MATCH <ide> from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_INFIXES <ide> from .stop_words import STOP_WORDS <add>from .lex_attrs import LEX_ATTRS <ide> from .lemmatizer import LOOKUP <ide> from .syntax_itera...
2
Javascript
Javascript
replace __definegetter__ with defineproperty
8636af10129e822d8ae928ef3470a4dff9c4192a
<ide><path>lib/net.js <ide> Socket.prototype._getpeername = function() { <ide> return this._peername; <ide> }; <ide> <del>Socket.prototype.__defineGetter__('bytesRead', function() { <add>function protoGetter(name, callback) { <add> Object.defineProperty(Socket.prototype, name, { <add> configurable: false, <add> ...
1
Java
Java
improve limit handling in stringdecoder
a741ae422b75e330dac655718ad91e0067a2caeb
<ide><path>spring-core/src/main/java/org/springframework/core/codec/StringDecoder.java <ide> /* <del> * Copyright 2002-2019 the original author or authors. <add> * Copyright 2002-2020 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may not u...
2
Java
Java
resolve remaining nullability warnings
47a7475898fc918e2f945206e3364bdaab2bb39f
<ide><path>spring-aop/src/main/java/org/springframework/aop/target/CommonsPool2TargetSource.java <ide> /* <del> * Copyright 2002-2016 the original author or authors. <add> * Copyright 2002-2017 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you...
11
Python
Python
fix typo in the 'issubclass' docstring
6114f1c963ad011d276701967864f339e8e45ae0
<ide><path>numpy/core/numerictypes.py <ide> def issubclass_(arg1, arg2): <ide> Determine if a class is a subclass of a second class. <ide> <ide> `issubclass_` is equivalent to the Python built-in ``issubclass``, <del> except that it returns False instead of raising a TypeError is one <add> except that it...
1
Javascript
Javascript
add jsdoc comments to pdfoutlineview
f4dbc994836467dfe9725d733b60baeaa3c13e81
<ide><path>web/pdf_outline_view.js <ide> <ide> 'use strict'; <ide> <add>/** <add> * @typedef {Object} PDFOutlineViewOptions <add> * @property {HTMLDivElement} container - The viewer element. <add> * @property {Array} outline - An array of outline objects. <add> * @property {IPDFLinkService} linkService - The navigati...
1
Java
Java
fix typo on mergedannotations
860ec44c5096d16bedeef45a4e29b1156f44b4b9
<ide><path>spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotations.java <ide> import org.springframework.lang.Nullable; <ide> <ide> /** <del> * Provides access to a collection of merged annotations, usually obtained from <del> * a from a source such as a {@link Class} or {@link Method}. Each me...
1
PHP
PHP
fix issue with duplicate prefixes
c3f17c24f39e683d0032429e50ad193a878f88b4
<ide><path>lib/Cake/Model/Datasource/Database/Postgres.php <ide> public function getSequence($table, $field = 'id') { <ide> * <ide> * @param mixed $table A string or model class representing the table to be truncated <ide> * @param boolean $reset true for resetting the sequence, false to leave it as is. <del> * ...
1
Javascript
Javascript
add needs to controllers
8f6000057475dc0011bebc61d0539146986bc9b2
<ide><path>packages/ember-routing/lib/ext/controller.js <ide> var get = Ember.get; <ide> <ide> Ember.ControllerMixin.reopen({ <add> concatenatedProperties: ['needs'], <add> needs: [], <add> <add> init: function() { <add> this._super.apply(this, arguments); <add> <add> // Structure asserts to still do verifica...
2
Javascript
Javascript
add $exceptionhandler service
8ddee9bb25ade2bbe7d57db6353b29867606c184
<ide><path>src/services.js <ide> angularService("$log", function($window){ <ide> }; <ide> }, {inject:['$window']}); <ide> <add>angularService('$exceptionHandler', function($log){ <add> return function(e) { <add> $log.error(e); <add> }; <add>}, {inject:['$log']}); <add> <ide> angularService("$hover", function(br...
2
Python
Python
fix typo in np.fill_diagonal docstring example
34449614e34065e4599787095b90928dc22afb14
<ide><path>numpy/lib/index_tricks.py <ide> def fill_diagonal(a, val, wrap=False): <ide> [0, 0, 0], <ide> [0, 0, 4]]) <ide> <del> # tall matrices no wrap <add> The wrap option affects only tall matrices: <add> <add> >>> # tall matrices no wrap <ide> >>> a = np.zeros((5, 3),int) <ide> ...
1
Ruby
Ruby
define paths as expecting pathname or string
e29b2caee03a2749c976e08ab99bfc137747e535
<ide><path>Library/Homebrew/service.rb <ide> def root_dir(path = nil) <ide> when String, Pathname <ide> @root_dir = path.to_s <ide> else <del> raise TypeError, "Service#root_dir expects a String" <add> raise TypeError, "Service#root_dir expects a String or Pathname" <ide> end <id...
1
Javascript
Javascript
remove old warning
7a0674cd1a646a95e2f2139d420539051aa85a7c
<ide><path>src/renderers/webgl/WebGLTextures.js <ide> function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, <ide> <ide> extensions.get( 'EXT_color_buffer_float' ); <ide> <del> } else if ( internalFormat === _gl.RGB16F || internalFormat === _gl.RGB32F ) { <del> <del> console.warn( 'THR...
1
Text
Text
add guides for system testing
62c7d983848726bb9a512d687d2765c1dd78fe8d
<ide><path>guides/source/testing.md <ide> This guide covers built-in mechanisms in Rails for testing your application. <ide> After reading this guide, you will know: <ide> <ide> * Rails testing terminology. <del>* How to write unit, functional, and integration tests for your application. <add>* How to write unit, func...
1
Python
Python
add list_nodes and create_node tests
8bc7efab5d9646a9190ca6190639dc0b92a11001
<ide><path>libcloud/compute/drivers/maxihost.py <ide> def create_node(self, name, size, image, location, <ide> error_message = exc.message.get('error_messages', '') <ide> raise ValueError('Failed to create node: %s' % (error_message)) <ide> <del> return res.object <add> return sel...
2
PHP
PHP
simplify a regex a bit
37e3b579a97dd6fdcefa27cf92374315c6438f53
<ide><path>src/Database/SqlDialectTrait.php <ide> public function quoteIdentifier($identifier) { <ide> return $this->_startQuote . $identifier . $this->_endQuote; <ide> } <ide> <del> if (preg_match('/^[\w-]+(?:\.[^ \*]*)*$/', $identifier)) { // string.string <add> if (preg_match('/^[\w-]+\.[^ \*]*$/', $identifi...
1
Java
Java
fix testaotprocessortests on ms windows
3f288eea1761590671c4c8dc8fadcc4c09e50fb5
<ide><path>spring-test/src/test/java/org/springframework/test/context/aot/TestAotProcessorTests.java <ide> private static List<String> findFiles(Path outputPath) throws IOException { <ide> .map(Path::toAbsolutePath) <ide> .map(Path::toString) <ide> .map(path -> path.substring(prefixLength)) <add> .map(pa...
1
Ruby
Ruby
avoid a hash lookup
27be777888cfefc6667c1d3b4c284cf1d0b67208
<ide><path>activerecord/lib/active_record/associations.rb <ide> def construct(parent, associations, joins, row) <ide> construct(parent, association, joins, row) <ide> end <ide> when Hash <del> associations.keys.sort{|a,b|a.to_s<=>b.to_s}.each do |na...
1
Javascript
Javascript
fix remaining linter issues
6c46cf924355d0735123c6c932552271930b69b8
<ide><path>spec/atom-environment-spec.js <ide> describe('AtomEnvironment', () => { <ide> a + 1 // eslint-disable-line no-undef <ide> } catch (e) { <ide> error = e <del> window.onerror.call(window, e.toString(), 'abc', 2, 3, e) <add> window.onerror(e.toString(), 'abc', 2, 3,...
8
Java
Java
accept predicate instead of handlertypepredicate
86c861516d55c69bae0150271c1a10d40afa726e
<ide><path>spring-web/src/main/java/org/springframework/web/method/HandlerTypePredicate.java <ide> import org.springframework.util.StringUtils; <ide> <ide> /** <del> * A {@code Predicate} to match request handling component types based on the <del> * following selectors: <add> * A {@code Predicate} to match request ha...
8
Ruby
Ruby
add test for skip_before_filter with condition
8da819eef5f11cc016ffa9ad747421ee50be32fa
<ide><path>actionpack/test/controller/filters_test.rb <ide> class ConditionalOptionsFilter < ConditionalFilterController <ide> before_filter :clean_up_tmp, :if => Proc.new { |c| false } <ide> end <ide> <add> class ConditionalOptionsSkipFilter < ConditionalFilterController <add> before_filter :ensure_login <a...
1
PHP
PHP
remove "experimental" tag from dic related classes
7951860e65300daf7787754c9a3857031c6ba725
<ide><path>src/Core/Container.php <ide> * Dependency Injection container <ide> * <ide> * Based on the container out of League\Container <del> * <del> * @experimental This class' interface is not stable and may change <del> * in future minor releases. <ide> */ <ide> class Container extends LeagueContainer implemen...
4
Javascript
Javascript
show component stack in proptypes warnings
378c879a6a65afe18acacb8e2a6fe6ea323974df
<ide><path>src/isomorphic/ReactDebugTool.js <ide> var ReactDebugTool = { <ide> checkDebugID(debugID); <ide> emitEvent('onSetOwner', debugID, ownerDebugID); <ide> }, <add> onSetParent(debugID, parentDebugID) { <add> checkDebugID(debugID); <add> emitEvent('onSetParent', debugID, parentDebugID); <add> },...
13
Ruby
Ruby
preserve link status on reinstall/upgrade
7ec05052003ecf6142d94aeaa62f4b4bd84a569d
<ide><path>Library/Homebrew/cmd/reinstall.rb <ide> def reinstall <ide> def reinstall_formula(f) <ide> if f.opt_prefix.directory? <ide> keg = Keg.new(f.opt_prefix.resolved_path) <add> keg_was_linked = keg.linked? <ide> backup keg <ide> end <ide> <ide> def reinstall_formula(f) <ide> fi.bui...
4
Python
Python
convert stored tracebacks to strings
5f09ce1469721a8ca38bfdffad8ffd42b2494025
<ide><path>celery/execute.py <ide> from functools import partial as curry <ide> from datetime import datetime, timedelta <ide> from multiprocessing import get_logger <add>import sys <ide> import traceback <ide> import inspect <ide> <ide> def apply(task, args, kwargs, **options): <ide> try: <ide> ret_value ...
2
PHP
PHP
add phar to list
f647a24b918648c2b8a17c122b855bc0b2bf5b86
<ide><path>src/Illuminate/Validation/Concerns/ValidatesAttributes.php <ide> protected function shouldBlockPhpUpload($value, $parameters) <ide> } <ide> <ide> $phpExtensions = [ <del> 'php', 'php3', 'php4', 'php5', 'phtml', <add> 'php', 'php3', 'php4', 'php5', 'phtml', 'phar' <ide> ...
1
Go
Go
provide more information when testtop tests fail
3ac90aeed5a6bdfe22af48eca1519fb186dc66cb
<ide><path>integration-cli/docker_cli_top_test.go <ide> func TestTopNonPrivileged(t *testing.T) { <ide> out, _, err = runCommandWithOutput(topCmd) <ide> errorOut(err, t, fmt.Sprintf("failed to run top: %v %v", out, err)) <ide> <add> topCmd = exec.Command(dockerBinary, "top", cleanedContainerID) <add> out2, _, err2 :...
1
Go
Go
return better errors from exec
f078f75bf25353720f28f9f1ea180374fe205302
<ide><path>api/server/exec.go <ide> func (s *Server) postContainerExecStart(version version.Version, w http.Response <ide> return err <ide> } <ide> var ( <del> execName = vars["name"] <del> stdin io.ReadCloser <del> stdout io.Writer <del> stderr io.Writer <add> execName = vars["name"] <...
2
Text
Text
redirect docs.brew.sh/linux to homebrew on linux
deffe8d403ff092c04b92094635eb8006c8f3bdf
<ide><path>docs/Homebrew-on-Linux.md <ide> title: Homebrew on Linux <ide> logo: https://brew.sh/assets/img/linuxbrew.png <ide> image: https://brew.sh/assets/img/linuxbrew.png <ide> redirect_from: <add> - /linux <ide> - /Linux <ide> - /Linuxbrew <ide> ---
1
Python
Python
fix 2/3 problems for training
d108534dc289f4f1342194be8cc0151bad769153
<ide><path>spacy/en/__init__.py <ide> from __future__ import unicode_literals, print_function <ide> <ide> from os import path <add>from pathlib import Path <ide> <ide> from ..util import match_best_version <ide> from ..util import get_data_path <ide> <ide> from .language_data import * <ide> <add>try: <add> bases...
1