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
Javascript
Javascript
use string instead of regexp in split()
0fdb67be9f7b973db68d397121bf80959a60836c
<ide><path>test/parallel/test-http-outgoing-first-chunk-singlebyte-encoding.js <ide> for (const enc of ['utf8', 'utf16le', 'latin1', 'UTF-8']) { <ide> const headerEnd = received.indexOf('\r\n\r\n', 'utf8'); <ide> assert.notStrictEqual(headerEnd, -1); <ide> <del> const header = received.toString('utf8'...
3
Javascript
Javascript
remove compatibly mode for node.buffer
d2b1bca5d9aefc059479bd3073461e16f759c6e5
<ide><path>lib/WebpackOptionsDefaulter.js <ide> function WebpackOptionsDefaulter() { <ide> this.set("node.console", false); <ide> this.set("node.process", true); <ide> this.set("node.global", true); <del> // TODO: add this in next major version <del> // this.set("node.Buffer", true); <add> this.set("node.Buffer", tr...
7
Text
Text
add backticks around method names
25f5d0913dbc627ab18bd16f95a757b1d083b9e3
<ide><path>activerecord/CHANGELOG.md <ide> <ide> *Ryuta Kamizono* <ide> <del>* Add the touch option to ActiveRecord#increment! and decrement!. <add>* Add the touch option to `#increment!` and `#decrement!`. <ide> <ide> *Hiroaki Izu* <ide>
1
Go
Go
add a test for warning on empty continuation lines
b47b375cb8bb0dca7ee0ebfa093bfc163ad867fb
<ide><path>builder/dockerfile/builder.go <ide> func (b *Builder) build(source builder.Source, dockerfile *parser.Result) (*buil <ide> return nil, errors.Errorf("failed to reach build target %s in Dockerfile", b.options.Target) <ide> } <ide> <add> dockerfile.PrintWarnings(b.Stderr) <ide> b.buildArgs.WarnOnUnusedBui...
4
Go
Go
remove package pkg/ulimit, use go-units instead
83237aab2b9430a88790467867505cc9a5147f3e
<ide><path>api/server/router/build/build_routes.go <ide> import ( <ide> "github.com/docker/docker/pkg/ioutils" <ide> "github.com/docker/docker/pkg/progress" <ide> "github.com/docker/docker/pkg/streamformatter" <del> "github.com/docker/docker/pkg/ulimit" <ide> "github.com/docker/docker/reference" <ide> "github.com/...
9
Javascript
Javascript
allow falsy values in url parameters
4909d1d39d61d6945a0820a5a7276c1e657ba262
<ide><path>src/ngResource/resource.js <ide> angular.module('ngResource', ['ng']). <ide> <ide> params = params || {}; <ide> forEach(this.urlParams, function(_, urlParam){ <del> if (val = (params[urlParam] || self.defaults[urlParam])) { <add> val = params.hasOwnProperty(urlParam) ? para...
2
Ruby
Ruby
improve minimum macos version audit for casks
09a2ccdf24d717650751368e5665107e2af8169f
<ide><path>Library/Homebrew/cask/audit.rb <ide> def check_livecheck_min_os <ide> return if item.blank? <ide> <ide> min_os = item.elements["sparkle:minimumSystemVersion"]&.text <add> min_os = "11" if min_os == "10.16" <ide> return if min_os.blank? <ide> <ide> begin <ide> def check_livechec...
1
PHP
PHP
fix typing and phpcs errors
6bef1ceca8ccbcbf8ccd38619f58655cc85231ae
<ide><path>src/Error/Middleware/ErrorHandlerMiddleware.php <ide> public function __construct($errorHandler = []) <ide> * <ide> * @param \Psr\Http\Message\ServerRequestInterface $request The request. <ide> * @param \Psr\Http\Server\RequestHandlerInterface $handler The request handler. <del> * @return ...
2
Javascript
Javascript
remove unnecessary comment
847400afdeb92f8b0f509d884b77a9116661c2cb
<ide><path>test/configCases/hash-length/output-filename/webpack.config.js <ide> var webpack = require("../../../../"); <ide> /** @type {import("../../../../").Configuration[]} */ <del>/** @type {import("../../../../").Configuration[]} */ <ide> module.exports = [ <ide> { <ide> name: "hash with length in publicPath",
1
PHP
PHP
fix failing test
9c658699757163bf5e58f04239ffa7383e4e6d58
<ide><path>tests/TestCase/Network/Http/ClientTest.php <ide> public function testGetSimpleWithHeadersAndCookies() <ide> $headers = [ <ide> 'User-Agent' => 'Cake', <ide> 'Connection' => 'close', <del> 'Content-Type' => 'application/json', <add> 'Content-Type' => 'appl...
1
Python
Python
improve ner per type scoring
925a852bb6450e16a23346e97a1813fc0fcb22a0
<ide><path>spacy/scorer.py <ide> def score(self, doc, gold, verbose=False, punct_labels=("p", "punct")): <ide> else: <ide> cand_deps.add((gold_i, gold_head, token.dep_.lower())) <ide> if "-" not in [token[-1] for token in gold.orig_annot]: <add> # Find all NER labe...
3
Ruby
Ruby
add documentation for timewithzone methods
f42c0893112e4411f9f1469c019e41968bcbe0e5
<ide><path>activesupport/lib/active_support/time_with_zone.rb <ide> def localtime <ide> # Returns true if the the current time is within Daylight Savings Time for the <ide> # specified time zone. <ide> # <del> # Time.zone = 'Eastern Time (US & Canada)' # => 'Eastern Time (US & Canada)' <del> # ...
1
Python
Python
add type annotations for perceiver
16399d6197224adafc58ff4fa5ee645d64972973
<ide><path>src/transformers/models/perceiver/modeling_perceiver.py <ide> from dataclasses import dataclass <ide> from functools import reduce <ide> from operator import __add__ <del>from typing import Any, Callable, Mapping, Optional, Tuple <add>from typing import Any, Callable, Dict, Mapping, Optional, Tuple, Union <i...
1
Ruby
Ruby
adjust standard built type
a5c4eb2d3eae9e2fd7b7f0fd431fe763688af82b
<ide><path>Library/Homebrew/formula.rb <ide> def inspect <ide> end <ide> <ide> # Standard parameters for CMake builds. <del> # Using Build Type "None" tells cmake to use our CFLAGS,etc. settings. <del> # Setting it to Release would ignore our flags. <ide> # Setting CMAKE_FIND_FRAMEWORK to "LAST" tells CMake to...
1
PHP
PHP
remove comment bloat from response class
0dd06ad31408b3a7d7cfa487cf4f48d66f1a4a32
<ide><path>system/response.php <ide> public static function make($content, $status = 200) <ide> */ <ide> public static function prepare($response) <ide> { <del> // If the response is a Redirect instance, grab the Response. The Redirect class <del> // manages a Response instance internally. <ide> if ($response i...
1
Go
Go
show experimental flags and subcommands if enabled
d67aa065ef9f295949ed507fc3d67f29fd56fcdb
<ide><path>cmd/docker/docker.go <ide> func dockerPreRun(opts *cliflags.ClientOptions) { <ide> func hideUnsupportedFeatures(cmd *cobra.Command, clientVersion string, hasExperimental bool) { <ide> cmd.Flags().VisitAll(func(f *pflag.Flag) { <ide> // hide experimental flags <del> if _, ok := f.Annotations["experimental...
1
Javascript
Javascript
remove dead code
4d177cafd5943d3d7937945abfe392716f237d73
<ide><path>packages/ember-htmlbars/lib/system/shadow-root.js <del>import { internal } from "htmlbars-runtime"; <del> <del>/** @private <del> A ShadowRoot represents a new root scope. However, it <del> is not a render tree root. <del>*/ <del> <del>function ShadowRoot(layoutMorph, layoutTemplate, contentScope, contentT...
1
Javascript
Javascript
simplify "testtimeout" option
b26628a2bb20abae0e0515394efdd621452267b1
<ide><path>test/data/testrunner.js <ide> var oldStart = window.start, <ide> <ide> // Max time for stop() and asyncTest() until it aborts test <ide> // and start()'s the next test. <del>QUnit.config.testTimeout = 20 * 1000; // 20 seconds <add>QUnit.config.testTimeout = 2e4; // 20 seconds <ide> <ide> // Enforce an "exp...
1
Ruby
Ruby
update 10.11 clang
212d0b82fd33d6520d2639ee6c994eb224623b5a
<ide><path>Library/Homebrew/os/mac/xcode.rb <ide> def installed? <ide> <ide> def latest_version <ide> case MacOS.version <del> when "10.11" then "700.0.59.1" <add> when "10.11" then "700.0.65" <ide> when "10.10" then "602.0.53" <ide> when "10.9" then "600.0.57" <ide> ...
1
Text
Text
warn users about non-ascii paths on build
c134ff24f44ca523566bd38aa2d49f0dce7401aa
<ide><path>BUILDING.md <ide> Prerequisites: <ide> * **Optional** (to build the MSI): the [WiX Toolset v3.11](http://wixtoolset.org/releases/) <ide> and the [Wix Toolset Visual Studio 2017 Extension](https://marketplace.visualstudio.com/items?itemName=RobMensching.WixToolsetVisualStudio2017Extension). <ide> <del>If t...
1
Text
Text
fix typo in changelog.md
b837bd279232d7d8f105e5413161a2bf29231d8a
<ide><path>CHANGELOG.md <ide> release. <ide> <tr> <ide> <td valign="top"> <ide> <b><a href="doc/changelogs/CHANGELOG_V7.md#7.9.0">7.9.0</a></b><br/> <del><a href="doc/changelogs/CHANGELOG_V7.md#7.8.0<">7.8.0<</a><br/> <add><a href="doc/changelogs/CHANGELOG_V7.md#7.8.0">7.8.0</a><br/> <ide> <a href="doc/changelogs/C...
1
Ruby
Ruby
add helper class for python virtualenvs
2783adec4a906c8fb5c45aa1305b1460b5bc8a5b
<ide><path>Library/Homebrew/language/python.rb <ide> require "utils" <add>require "language/python_virtualenv_constants" <ide> <ide> module Language <ide> module Python <ide> def self.setup_install_args(prefix) <ide> def self.package_available?(python, module_name) <ide> quiet_system python, "-c", "import ...
2
Text
Text
specify correct extension for text layouts
1f48de101bce1b63e0b250c371a17fb4e851e457
<ide><path>guides/source/layouts_and_rendering.md <ide> service requests that are expecting something other than proper HTML. <ide> <ide> NOTE: By default, if you use the `:plain` option, the text is rendered without <ide> using the current layout. If you want Rails to put the text into the current <del>layout, you ne...
1
PHP
PHP
fix failing tests on windows
8cfb90fc06c3166f89ffe0e23c30d49a6453fac2
<ide><path>tests/Integration/Mail/RenderingMailWithLocaleTest.php <ide> public function testMailableRendersInDefaultLocale() <ide> { <ide> $mail = new RenderedTestMail; <ide> <del> $this->assertStringContainsString("name\n", $mail->render()); <add> $this->assertStringContainsString('name'.PHP...
1
Javascript
Javascript
fix assert.strictequal argument order
5ad4c44e90b8195e45f7bd293cd06765f1e47953
<ide><path>test/parallel/test-fs-read-stream.js <ide> const rangeFile = fixtures.path('x.txt'); <ide> <ide> file.on('open', common.mustCall(function(fd) { <ide> file.length = 0; <del> assert.strictEqual('number', typeof fd); <add> assert.strictEqual(typeof fd, 'number'); <ide> assert.strictEqual(file.b...
1
PHP
PHP
remove useless line break
9da1c65818fa2c6542272f8cb7e52b540284c718
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function whereHas($relation, Closure $callback, $operator = '>=', $count <ide> return $this->has($relation, $operator, $count, 'and', $callback); <ide> } <ide> <del> <ide> /** <ide> * Add a relationship count condition to the query with where c...
1
PHP
PHP
fix deprecation warning
30a47becbb875d4600aa08cad9683702e4faf34a
<ide><path>src/View/Helper.php <ide> public function __get($name) <ide> if (isset($removed[$name])) { <ide> $method = $removed[$name]; <ide> deprecationWarning(sprintf( <del> 'Helper::$%s is removed. Use $view->%s() instead.', <add> 'Helper::$%s is deprecate...
1
PHP
PHP
update image() docs
5b9d69fcc8e75dde3aff7e655ede66b1f273166b
<ide><path>lib/Cake/View/Helper/HtmlHelper.php <ide> public function getCrumbList($options = array()) { <ide> } <ide> <ide> /** <del> * Creates a formatted IMG element. If `$options['url']` is provided, an image link will be <del> * generated with the link pointed at `$options['url']`. If `$options['fullBase']` is pr...
1
Go
Go
skip layers+base images
540c8e9b201cfcf46cf9d2c05d42c492edda4117
<ide><path>image/rootfs.go <ide> package image <ide> <del>import "github.com/docker/docker/layer" <add>import ( <add> "runtime" <add> <add> "github.com/Sirupsen/logrus" <add> "github.com/docker/docker/layer" <add>) <ide> <ide> // TypeLayers is used for RootFS.Type for filesystems organized into layers. <ide> const Ty...
1
Ruby
Ruby
fix a test failure when svn is not installed
7c6d2c95f6055dce5a946d985cf4248166ec5513
<ide><path>Library/Homebrew/test/utils/svn_spec.rb <ide> end <ide> <ide> it "returns svn version if svn available" do <del> expect(described_class.svn_available?).to be_truthy <add> if File.executable? "/usr/bin/svn" <add> expect(described_class.svn_available?).to be_truthy <add> else <ad...
1
Python
Python
add text preprocessing test
7f85541785da1183796d1d5fc6494f938ea77b5b
<ide><path>tests/keras/preprocessing/test_text.py <add>from keras.preprocessing.text import Tokenizer, one_hot <add>import pytest <add>import numpy as np <add> <add> <add>def test_one_hot(): <add> text = 'The cat sat on the mat.' <add> encoded = one_hot(text, 5) <add> assert len(encoded) == 6 <add> assert n...
1
Python
Python
fix syntax highlighting for numpy.flatnonzero
bcec9c338946a0285262921ab1da5847462021c3
<ide><path>numpy/core/numeric.py <ide> def flatnonzero(a): <ide> """ <ide> Return indices that are non-zero in the flattened version of a. <ide> <del> This is equivalent to np.nonzero(np.ravel(a))[0]. <add> This is equivalent to ``np.nonzero(np.ravel(a))[0]``. <ide> <ide> Parameters <ide> ------...
1
Text
Text
add history information for corepack
913c125e98802b8de062b97da64f7292d7d3f7ad
<ide><path>doc/api/corepack.md <ide> <ide> <!-- type=misc --> <ide> <add><!-- YAML <add>added: <add> - v16.9.0 <add> - v14.19.0 <add>--> <add> <ide> > Stability: 1 - Experimental <ide> <ide> _[Corepack][]_ is an experimental tool to help with
1
Javascript
Javascript
add __dev__ around textinput prop check
508cc06565c1a2ab6ec88dbb8d40d3a2962c198c
<ide><path>Libraries/Components/TextInput/TextInput.js <ide> const TextInput = React.createClass({ <ide> var props = Object.assign({}, this.props); <ide> props.style = [styles.input, this.props.style]; <ide> if (!props.multiline) { <del> for (var propKey in onlyMultiline) { <del> if (props[propK...
1
Ruby
Ruby
fix multiple execution of python do ... end blocks
e143c3a799b531d6b3793f7bb677652f418d7a46
<ide><path>Library/Homebrew/python_helper.rb <ide> def python_helper(options={:allowed_major_versions => [2, 3]}, &block) <ide> if !filtered_python_reqs.map{ |fpr| fpr.binary }.include?(py.binary) && <ide> py.satisfied? && <ide> options[:allowed_major_versions].include?(py.version.major) && <del> ...
1
PHP
PHP
fix more sqlserver tests and phpcs
edb19f8173c317d5ef14ddcb3858f5181b2896bb
<ide><path>tests/TestCase/Database/QueryTest.php <ide> public function testTupleComparisonValuesAreBeingBoundCorrectly() <ide> */ <ide> public function testTupleComparisonTypesCanBeOmitted() <ide> { <add> $this->skipIf( <add> $this->connection->getDriver() instanceof Sqlserver, <add> ...
3
Text
Text
fix an sni mistyped as sns
9dcc7c578ee28af3d4b215731eccb3a56e04e12c
<ide><path>doc/api/tls.md <ide> added: v0.5.3 <ide> `cert`, `ca`, etc). <ide> <ide> The `server.addContext()` method adds a secure context that will be used if <del>the client request's SNS hostname matches the supplied `hostname` (or wildcard). <add>the client request's SNI hostname matches the supplied `hostname` ...
1
Python
Python
use twine to upload to pypi
75ff754517c30df043de906b0a6fb0e1777570b7
<ide><path>setup.py <ide> def get_package_data(package): <ide> if os.system("pip freeze | grep wheel"): <ide> print("wheel not installed.\nUse `pip install wheel`.\nExiting.") <ide> sys.exit() <del> os.system("python setup.py sdist upload") <del> os.system("python setup.py bdist_wheel upload")...
1
PHP
PHP
allow meta data from response building
73de18e32a7d04ed61c1a37b724732a23aad259c
<ide><path>src/Illuminate/Http/Resources/Json/PaginatedResourceResponse.php <ide> public function toResponse($request) <ide> $this->resource->resolve($request), <ide> array_merge_recursive( <ide> $this->paginationInformation($request), <del> $this->...
4
Ruby
Ruby
check authentication scheme in basic auth
a7a377ff3950078c44049031315b3b9a96c19bcf
<ide><path>actionpack/lib/action_controller/metal/http_authentication.rb <ide> def user_name_and_password(request) <ide> end <ide> <ide> def decode_credentials(request) <del> ::Base64.decode64(request.authorization.split(' ', 2).last || '') <add> scheme, param = request.authorization.split(' ...
2
Go
Go
use bool instead of string for flags
ab96da8eb2c81a90e5c081da26ee49c3af2f1ca5
<ide><path>api.go <ide> func getImages(srv *Server, w http.ResponseWriter, r *http.Request) error { <ide> return err <ide> } <ide> <del> viz := r.Form.Get("viz") <del> if viz == "1" { <add> viz := r.Form.Get("viz") == "1" <add> if viz { <ide> file, rwc, err := hijackServer(w) <ide> if file != nil { <ide> def...
2
Mixed
Javascript
return this from incomingmessage#destroy()
ff6535a4331d611bf0d205ee23d88e100dce92b2
<ide><path>doc/api/http.md <ide> const req = http.request({ <ide> ### `message.destroy([error])` <ide> <!-- YAML <ide> added: v0.3.0 <add>changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/32789 <add> description: The function returns `this` for consistency with other Readable ...
3
PHP
PHP
fix incorrect test cases
6105714d77fb646a879576aef2af6a53c3bca351
<ide><path>tests/TestCase/Cache/Engine/XcacheEngineTest.php <ide> public function testConfig() <ide> 'prefix' => 'cake_', <ide> 'duration' => 3600, <ide> 'probability' => 100, <add> 'groups' => [], <ide> ]; <ide> $this->assertTrue(isset($config['PHP_AUTH_US...
1
Ruby
Ruby
move show_detailed_exceptions? to rescue module
5bcd119b8d9bb6d88c949956de1ce13c2673b877
<ide><path>actionpack/lib/action_controller/metal.rb <ide> def dispatch(name, request) #:nodoc: <ide> @_request = request <ide> @_env = request.env <ide> @_env['action_controller.instance'] = self <del> @_env['action_dispatch.show_detailed_exceptions'] = show_detailed_exceptions? <ide> proc...
4
Python
Python
add aws_conn_id to dynamodbtos3operator
5769defb2ac1bf7ea36a8a9ee9c26cfe515fba70
<ide><path>airflow/providers/amazon/aws/transfers/dynamodb_to_s3.py <ide> def _convert_item_to_json_bytes(item: Dict[str, Any]) -> bytes: <ide> return (json.dumps(item) + '\n').encode('utf-8') <ide> <ide> <del>def _upload_file_to_s3(file_obj: IO, bucket_name: str, s3_key_prefix: str) -> None: <del> s3_client =...
2
Python
Python
add test for chinese tokenization
4d124baf8f4706c6060d446b38f07c4258a91d97
<ide><path>tests/tokenization_test.py <ide> def test_full_tokenizer(self): <ide> self.assertListEqual( <ide> tokenizer.convert_tokens_to_ids(tokens), [7, 4, 5, 10, 8, 9]) <ide> <add> def test_chinese(self): <add> tokenizer = tokenization.BasicTokenizer() <add> <add> self.assert...
1
PHP
PHP
provide notification callback with swift message
5de1d43c72b1f9d6161def6a6c343c9bf663fbac
<ide><path>src/Illuminate/Notifications/Channels/MailChannel.php <ide> protected function buildMessage($mailMessage, $notifiable, $notification, $messa <ide> if (! is_null($message->priority)) { <ide> $mailMessage->setPriority($message->priority); <ide> } <add> <add> $this->runCallbac...
3
Text
Text
remove link to edgeapi [ci skip]
529cebe22fb363385c00c8da833a74ba4aeaee03
<ide><path>guides/source/configuring.md <ide> application. Accepts a valid week day symbol (e.g. `:monday`). <ide> you don't want shown in the logs, such as passwords or credit card <ide> numbers. By default, Rails filters out passwords by adding `Rails.application.config.filter_parameters += [:password]` in `config/in...
1
Ruby
Ruby
use 6.1 on mavericks.""
e5e206f4f1c6735e8b9ce0c8378e76ba56141d64
<ide><path>Library/Homebrew/os/mac/xcode.rb <ide> def latest_version <ide> when "10.6" then "3.2.6" <ide> when "10.7" then "4.6.3" <ide> when "10.8" then "5.1.1" <del> when "10.9" then "6.0.1" <add> when "10.9" then "6.1" <ide> when "10.10" then "6.1" <ide> els...
1
Text
Text
add tensorboard instruction to slim's readme.md
0b279c7a0967ab149454e672f61e3a7413351b01
<ide><path>slim/README.md <ide> and/or multiple CPUs, either synchrononously or asynchronously. <ide> See [model_deploy](https://github.com/tensorflow/models/blob/master/slim/deployment/model_deploy.py) <ide> for details. <ide> <add>### TensorBoard <add> <add>To visualize the losses and other metrics during training, ...
1
Go
Go
add test coverage for devicemapper driver.go
6b3dd02bb8068fd9f1d35e75db95d0650a1d3123
<ide><path>devmapper/driver.go <ide> type Driver struct { <ide> } <ide> <ide> func Init(home string) (graphdriver.Driver, error) { <del> deviceSet, err := NewDeviceSet(home); <add> deviceSet, err := NewDeviceSet(home) <ide> if err != nil { <ide> return nil, err <ide> } <ide> func (d *Driver) Size(id string) (int64...
2
Javascript
Javascript
remove three prefixes
6404d18493e9d75bd12bf5f7ae787d0ea51dac2b
<ide><path>src/renderers/WebGLRenderer.js <ide> function WebGLRenderer( parameters ) { <ide> <ide> _projScreenMatrix = new Matrix4(), <ide> <del> _vector3 = new THREE.Vector3(), <del> _matrix4 = new THREE.Matrix4(), _matrix42 = new THREE.Matrix4(), <add> _vector3 = new Vector3(), <add> _matrix4 = new Matrix4(), ...
1
Javascript
Javascript
utilize `map` and `set` in `property_events`
56183a1c248bd60a3ec3f92c8fefa0ddf4e423fe
<ide><path>packages/ember-metal/lib/property_events.js <del>import { guidFor, symbol } from 'ember-utils'; <add>import { symbol } from 'ember-utils'; <ide> import { <ide> descriptorFor, <ide> peekMeta <ide> function notifyPropertyChange(obj, keyName, _meta) { <ide> } <ide> } <ide> <del>let DID_SEEN; <add>let DID...
1
Javascript
Javascript
update open graph and twitter meta
c21af106bb9bdd4b868e143ac2981c586633f50e
<ide><path>client/src/head/meta.js <ide> import React from 'react'; <ide> <ide> const meta = [ <add> <meta content='freeCodeCamp.org' name='og:title' />, <add> <meta <add> content={ <add> 'Learn to code. Build projects. Earn certifications.' + <add> 'Since 2015, 40,000 graduates have gotten jobs at tech...
1
PHP
PHP
remove outdated information
0860444e37099f1de9a7634b3d743092ba4537d8
<ide><path>src/Shell/TestShell.php <ide> public function outputWarning() { <ide> $this->err(''); <ide> $this->err('TestShell has been removed and replaced with <info>phpunit</info>.'); <ide> $this->err(''); <del> $this->err('To run your application tests run <info>phpunit --stderr</info>'); <del> $this->err('To...
1
Text
Text
remove minor contradiction in debugger doc
98f9b5df1268a9473bf36a48373fc2b3792b3dd0
<ide><path>doc/api/debugger.md <ide> <ide> <!-- type=misc --> <ide> <del>Node.js includes a full-featured out-of-process debugging utility accessible <del>via a simple [TCP-based protocol][] and built-in debugging client. To use it, <del>start Node.js with the `debug` argument followed by the path to the script to <d...
1
Python
Python
add `isupper` examples
91d1c1ebd26d3269c45051d61bf24efb8db0678e
<ide><path>numpy/core/defchararray.py <ide> def istitle(a): <ide> @array_function_dispatch(_unary_op_dispatcher) <ide> def isupper(a): <ide> """ <del> Returns true for each element if all cased characters in the <add> Return true for each element if all cased characters in the <ide> string are uppercase a...
1
Javascript
Javascript
fire a tick immediately on start
55759258fdb5e01a2d42c6a1101d687f0c5ce01c
<ide><path>d3.js <ide> function d3_transition(groups, id) { <ide> <ide> delay <= elapsed ? start() : d3.timer(start, delay, then); <ide> <del> function start() { <add> function start(elapsed) { <ide> if (lock.active > id) return stop(); <ide> lock.active = id; <ide> <ide> function d3_...
3
PHP
PHP
add tests for uri object being correct
1dae2c13947cd226d896eaa889ee7ee7b8cc4463
<ide><path>tests/TestCase/Network/RequestTest.php <ide> public function testEnvironmentDetection($name, $env, $expected) <ide> $this->_loadEnvironment($env); <ide> <ide> $request = Request::createFromGlobals(); <del> $this->assertEquals($expected['url'], $request->url, "url error"); <del> ...
1
Python
Python
remove references to airflow.contrib in tests
6486abc31f5c35f17b0e816aa4e5803282b10f30
<ide><path>tests/providers/google/cloud/hooks/test_natural_language.py <ide> class TestCloudNaturalLanguageHook(unittest.TestCase): <ide> def setUp(self): <ide> with mock.patch( <del> "airflow.contrib.hooks." "gcp_api_base_hook.CloudBaseHook.__init__", <add> "airflow.providers.google.c...
3
Javascript
Javascript
fix intermittent blank page on fast zoom
d85e38d629cf740a3bd2ad978f1a832f47d2bfeb
<ide><path>src/api.js <ide> var InternalRenderTask = (function InternalRenderTaskClosure() { <ide> cancel: function InternalRenderTask_cancel() { <ide> this.running = false; <ide> this.cancelled = true; <del> this.callback(); <add> this.callback('cancelled'); <ide> }, <ide> <ide> oper...
2
Java
Java
use the annotation meta data in problem reporting
1a7ec7daf29e15a45c9bf5382ca4c080c53b5af8
<ide><path>org.springframework.context/src/main/java/org/springframework/context/annotation/ConfigurationClass.java <ide> private class FinalConfigurationProblem extends Problem { <ide> <ide> public FinalConfigurationProblem() { <ide> super(String.format("@Configuration class '%s' may not be final. Remove the fin...
1
Ruby
Ruby
find inverse associations with plural names
1c7275a0ba05aaa27e5999eaa10b698d890fa157
<ide><path>activerecord/lib/active_record/reflection.rb <ide> def inverse_name <ide> <ide> # returns either +nil+ or the inverse association name that it finds. <ide> def automatic_inverse_of <del> if can_find_inverse_of_automatically?(self) <del> inverse_name = ActiveSupport::Infle...
2
Text
Text
update changelog to fix wrong extension
aa9b64790be6b367b07858f0d5dd2b22da011350
<ide><path>activerecord/CHANGELOG.md <ide> <ide> 3) boot rails. <ide> RAILS_ENV=production bundle exec rails server <del> => use db/schema_cache.db <add> => use db/schema_cache.dump <ide> <ide> 4) If you remove clear dumped cache, execute rake task. <ide> RAILS_ENV=production bundle ...
1
Text
Text
fix typo in path.md
0fd73696a5bc324adcddad6953ab8984b3d30937
<ide><path>doc/api/path.md <ide> On Windows systems only, returns an equivalent [namespace-prefixed path][] for <ide> the given `path`. If `path` is not a string, `path` will be returned without <ide> modifications. <ide> <del>This method is meaningful only on Windows system. On POSIX systems, the <add>This method is ...
1
PHP
PHP
fix empty morph to relationship
7dca817417ef3db4812814b61e480563bb45cf0d
<ide><path>src/Illuminate/Database/Eloquent/Relations/MorphTo.php <ide> public function __construct(Builder $query, Model $parent, $foreignKey, $otherKe <ide> parent::__construct($query, $parent, $foreignKey, $otherKey, $relation); <ide> } <ide> <add> /** <add> * Get the results of the relationship. <add> * <add>...
2
Python
Python
fix transfoxlmodel loading
e7cfc46fc1150535b8248c4584c24cccfc73c9e0
<ide><path>pytorch_pretrained_bert/modeling_transfo_xl.py <ide> def load(module, prefix=''): <ide> for name, child in module._modules.items(): <ide> if child is not None: <ide> load(child, prefix + name + '.') <del> load(model, prefix='') <add> <add> start_p...
1
Javascript
Javascript
curse ye, linter
067ba9812e5c8554ce9291ccd37011d7dd948cf8
<ide><path>script/lib/run-apm-install.js <ide> module.exports = function (packagePath, stderrOnly) { <ide> childProcess.execFileSync( <ide> CONFIG.getApmBinPath(), <ide> ['--loglevel=error', 'install'], <del> {env: installEnv, cwd: packagePath, stdio: ['inherit', stderrOnly ? 'pipe' : 'inherit', 'inherit']...
1
Ruby
Ruby
specify channel name as an attribute
792fe4b29ce76089672c0741370b10d03a7f076a
<ide><path>lib/action_cable/channel/base.rb <ide> class Base <ide> <ide> attr_reader :params <ide> <add> class_attribute :channel_name <add> <ide> class << self <ide> def matches?(identifier) <ide> raise "Please implement #{name}#matches? method" <ide><path>lib/action_cable/server.r...
2
Text
Text
update broken link in 'why react' article
14cb99c9aa6cdd8748d16690b13a89dece2a041f
<ide><path>docs/_posts/2013-06-05-why-react.md <ide> to render views, which we see as an advantage over templates for a few reasons: <ide> **no manual string concatenation** and therefore less surface area for XSS <ide> vulnerabilities. <ide> <del>We've also created [JSX](http://facebook.github.io/react/docs/synta...
1
Ruby
Ruby
handle tab in token authentication header
d5a0d71037921320210ab719921c9ba621b98ec2
<ide><path>actionpack/lib/action_controller/metal/http_authentication.rb <ide> def opaque(secret_key) <ide> # <ide> # RewriteRule ^(.*)$ dispatch.fcgi [E=X-HTTP_AUTHORIZATION:%{HTTP:Authorization},QSA,L] <ide> module Token <del> TOKEN_REGEX = /^Token / <add> TOKEN_REGEX = /^Token\s+/ <ide> ...
2
Ruby
Ruby
fix frozen string bug
c6cb20a768eba296396b8c7879434cde3916cdef
<ide><path>Library/Homebrew/exceptions.rb <ide> def initialize(flags, bottled: true) <ide> require_text = "requires" <ide> end <ide> <del> message = <<~EOS <add> message = +<<~EOS <ide> The following #{flag_text}: <ide> #{flags.join(", ")} <ide> #{require_text} building tools, but n...
2
Text
Text
update releaser list in readme.md
ac08249971d9cbb2c9afb6375e10882aa421efc7
<ide><path>README.md <ide> GPG keys used to sign Node.js releases: <ide> `4ED778F539E3634C779C87C6D7062848A1AB005C` <ide> * **Colin Ihrig** &lt;cjihrig@gmail.com&gt; <ide> `94AE36675C464D64BAFA68DD7434390BDBE9B9C5` <del>* **Evan Lucas** &lt;evanlucas@me.com&gt; <del>`B9AE9905FFD7803F25714661B63B535A4C206CA9` <del>* **G...
1
PHP
PHP
add missing call to guard for pusher
4d9e85fc4f320fce3c7c386368e00405efb46d3e
<ide><path>src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php <ide> public function auth($request) <ide> * @param mixed $result <ide> * @return mixed <ide> */ <del> public function validAuthenticationResponse($request, $result) <add> public function validAuthenticationResponse($reques...
1
PHP
PHP
add option to configure mailgun transporter scheme
4ecd97bcf7e996e35b7672c69e3974b8e233bb1b
<ide><path>config/services.php <ide> 'domain' => env('MAILGUN_DOMAIN'), <ide> 'secret' => env('MAILGUN_SECRET'), <ide> 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), <add> 'scheme' => 'https', <ide> ], <ide> <ide> 'postmark' => [
1
Python
Python
remove unused import
a8e88bc4c8e06754dec7d3a1711a5c85853ad07c
<ide><path>t/unit/app/test_defaults.py <ide> import sys <ide> from importlib import import_module <ide> <del>from case import mock <del> <ide> from celery.app.defaults import (_OLD_DEFAULTS, _OLD_SETTING_KEYS, <ide> _TO_NEW_KEY, _TO_OLD_KEY, DEFAULTS, <ide> ...
1
Javascript
Javascript
return empty string for non-numbers
4b1913c5ecac75e60e7a0de831100b6961d5d294
<ide><path>src/filters.js <ide> angularFilter.currency = function(amount, currencySymbol){ <ide> var DECIMAL_SEP = '.'; <ide> <ide> angularFilter.number = function(number, fractionSize) { <del> if (isNaN(number) || !isFinite(number)) return ''; <ide> var formats = this.$service('$locale').NUMBER_FORMATS; <ide> re...
2
Text
Text
edit stability text for clarity and style
3d7ada34e4ad0f87e9b46209b6749e7304001ca0
<ide><path>doc/api/documentation.md <ide> is a high priority, and will not be broken unless absolutely necessary. <ide> <ide> ```txt <ide> Stability: 3 - Locked <del>Only fixes related to security, performance, or bug fixes will be accepted. <add>Only bug fixes, security fixes, and performance improvements will be acc...
1
PHP
PHP
use define syntax
9a6c3df7a03a1382e2878919b9d1523dfe3ae5e3
<ide><path>database/factories/ModelFactory.php <ide> | <ide> */ <ide> <del>$factory['App\User'] = function ($faker) { <add>$factory->define('App\User', function ($faker) { <ide> return [ <ide> 'name' => $faker->name, <ide> 'email' => $faker->email, <ide> 'password' => str_random(10), <ide> ...
1
Ruby
Ruby
extract formats_regexp as a method
6c8ea8338584da0891ab29e0c35b5ed22e526ee2
<ide><path>actionpack/lib/action_view/renderer/abstract_renderer.rb <ide> def render <ide> # the lookup context to take this new format into account. <ide> def wrap_formats(value) <ide> return yield unless value.is_a?(String) <del> @@formats_regexp ||= /\.(#{Mime::SET.symbols.join('|')})$/ <ide> <de...
1
Text
Text
modify link for hub and registry
aedf95e640fe362bbf59516ffa77d8bc1629d507
<ide><path>docs/reference/api/hub_registry_spec.md <ide> parent="smn_hub_ref" <ide> # The Docker Hub and the Registry v1 <ide> <ide> This API is deprecated as of 1.7. To view the old version, see the [go <del>here](hub_registry_spec.md) in <add>here](https://docs.docker.com/v1.7/docker/reference/api/hub_registry_spec/...
1
Ruby
Ruby
fix bottle reference
c5bfc932a6f74adcf303e66d88cf814d176318c7
<ide><path>Library/Homebrew/cleanup.rb <ide> def self.cleanup_cache <ide> f.version > version <ide> end <ide> <del> if file_is_stale || ARGV.switch?("s") && !f.installed? || bottle_file_outdated?(f, file) <add> if file_is_stale || ARGV.switch?("s") && !f.installed? || Utils::Bottles::fi...
1
PHP
PHP
support closures as values
b3b6f5b1f0797f6c2b43502dda5837e7f245cd54
<ide><path>src/Illuminate/Foundation/Console/AboutCommand.php <ide> protected function displayDetail($data) <ide> foreach ($data as $detail) { <ide> [$label, $value] = $detail; <ide> <del> $this->components->twoColumnDetail($label, $value); <add> $this->compone...
1
Java
Java
fix jetty websocket test failures
48875dc44fc019350a3b02bd9d04ade583021523
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/server/jetty/JettyRequestUpgradeStrategy.java <ide> <ide> package org.springframework.web.socket.server.jetty; <ide> <del>import java.lang.reflect.Method; <ide> import java.lang.reflect.UndeclaredThrowableException; <ide> import java.security.Pr...
2
Ruby
Ruby
give respond_to? a symbol
e6f9468e221999e5ea8342f8e72578e1f0a0ec09
<ide><path>activesupport/lib/active_support/number_helper/number_to_currency_converter.rb <ide> def is_negative?(number) <ide> end <ide> <ide> def absolute_value(number) <del> number.respond_to?("abs") ? number.abs : number.sub(/\A-/, '') <add> number.respond_to?(:abs) ? number.abs : ...
1
Ruby
Ruby
make `deprecate` work for non-exists methods
59ff1ba30d9f4d34b4d478104cc3f453e553c67a
<ide><path>activesupport/lib/active_support/deprecation/method_wrappers.rb <ide> def deprecate_methods(target_module, *method_names) <ide> options = method_names.extract_options! <ide> deprecator = options.delete(:deprecator) || self <ide> method_names += options.keys <add> mod = Module.n...
2
Java
Java
ignore path parameters in request mappings
5b1165b1029263ff0020562da95bd30380f303e4
<ide><path>spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java <ide> protected String determineEncoding(HttpServletRequest request) { <ide> * @return the updated URI string <ide> */ <ide> public String removeSemicolonContent(String requestUri) { <del> if (this.removeSemicolonContent) { <del> ...
8
Javascript
Javascript
add tests for progress
70d68bcd0af923fdbae4cbacfaf1878adb1597b7
<ide><path>test/ProgressPlugin.test.js <ide> const captureStdio = require("./helpers/captureStdio"); <ide> <ide> let webpack; <ide> <add>const createMultiCompiler = (progressOptions, configOptions) => { <add> const compiler = webpack( <add> Object.assign( <add> [ <add> { <add> context: path.join(__dirname, ...
1
Ruby
Ruby
replace regexp global in #url_for
19e9e67f95aa2f173e73ba11b22370c31b922103
<ide><path>actionpack/lib/action_dispatch/http/url.rb <ide> def url_for(options = {}) <ide> params.reject! { |_,v| v.to_param.nil? } <ide> <ide> result = build_host_url(options) <del> if options[:trailing_slash] && !path.ends_with?('/') <del> result << path.sub(/(\?|\z)/) { "/" ...
2
Text
Text
add example of using paginator in a view
dae6d093988ef2830e715d17ad6a0b9f715bfeba
<ide><path>docs/api-guide/pagination.md <ide> We can do this using the `object_serializer_class` attribute on the inner `Meta` <ide> class Meta: <ide> object_serializer_class = UserSerializer <ide> <del> queryset = User.objects.all() <del> paginator = Paginator(queryset, 20) <del> page = p...
1
PHP
PHP
remove coding standards ignores
4a9186829c972a4245d7c45bf69b4be9261b2501
<ide><path>src/View/Helper/UrlHelper.php <ide> public function assetTimestamp($path) <ide> ); <ide> $webrootPath = WWW_ROOT . str_replace('/', DIRECTORY_SEPARATOR, $filepath); <ide> if (file_exists($webrootPath)) { <del> //@codingStandardsIgnoreStart <ide> ...
1
Python
Python
fix openstack v3 authentication
eb497fa92287623fcc81413ae4775543b7ff8e71
<ide><path>libcloud/common/openstack.py <ide> class OpenStackBaseConnection(ConnectionUserAndKey): <ide> ex_force_base_url must also be provided. <ide> :type ex_force_auth_token: ``str`` <ide> <add> :param token_scope: Whether to scope a token to a "project", a <add> ...
3
Python
Python
fix doc of seterrcall. issue
f304b48296f679e5605210fc19f36fa43e569927
<ide><path>numpy/core/numeric.py <ide> def seterrcall(func): <ide> Function to call upon floating-point errors ('call'-mode) or <ide> object whose 'write' method is used to log such message ('log'-mode). <ide> <del> The call function takes two arguments. The first is the <del> type of err...
1
PHP
PHP
add "logs" driver to the `about` command
c9483ef91971b366003a4d3ee48c9dd6d35f5d4e
<ide><path>src/Illuminate/Foundation/Console/AboutCommand.php <ide> protected function gatherApplicationInformation() <ide> 'Views' => $this->hasPhpFiles($this->laravel->storagePath('framework/views')) ? '<fg=green;options=bold>CACHED</>' : '<fg=yellow;options=bold>NOT CACHED</>', <ide> ]); <ide> <...
1
Javascript
Javascript
fix links for open in colab
06bc347c9795149b89b803e4909cce9a803b3907
<ide><path>docs/source/_static/js/custom.js <ide> function addColabLink() { <ide> const pageName = parts[parts.length - 1].split(".")[0]; <ide> <ide> if (hasNotebook.includes(pageName)) { <add> const baseURL = "https://colab.research.google.com/github/huggingface/notebooks/blob/master/transformers_doc/"...
1
Ruby
Ruby
fix various bugs with console arguments
cdd6d9b53ad68ac9de0a5d9293aa9ab445a901b2
<ide><path>railties/lib/rails/commands.rb <ide> <ide> when 'console' <ide> require 'rails/commands/console' <add> options = Rails::Console.parse_arguments(ARGV) <add> <add> # RAILS_ENV needs to be set before config/application is required <add> ENV['RAILS_ENV'] = options[:environment] if options[:environment] <ad...
5
Text
Text
add "designing state" section
3e6efd5fce0d06f18ec2b1cfc601baa3f7ccf39e
<ide><path>docs/tutorials/fundamentals/part-3-state-reducers-actions.md <ide> import { DetailedExplanation } from '../../components/DetailedExplanation' <ide> <ide> # Redux Fundamentals, Part 3: State, Reducers, and Actions <ide> <del>**TODO** Write this <add>:::tip What You'll Learn <add> <add>- How to define state ...
1
PHP
PHP
add empty string if remote_addr not exists
ccbd3ac25d22c3de0ab0446fb8e613a3769497c0
<ide><path>src/Http/ServerRequest.php <ide> public function clientIp() <ide> } <ide> } <ide> <del> return $this->getEnv('REMOTE_ADDR'); <add> return $this->getEnv('REMOTE_ADDR', ''); <ide> } <ide> <ide> /**
1
Go
Go
increase the coverage of pkg/streamformatter
956c5b61cea9e476847b9d2231ac66d3ec85f018
<ide><path>pkg/streamformatter/streamformatter_test.go <ide> package streamformatter <ide> <ide> import ( <add> "bytes" <ide> "encoding/json" <ide> "errors" <ide> "strings" <ide> func TestRawProgressFormatterFormatStatus(t *testing.T) { <ide> <ide> func TestRawProgressFormatterFormatProgress(t *testing.T) { <ide> ...
1
Java
Java
add error propagation now that we use throwable
87e308ad16e0e9649efa773f5056f373c7b95336
<ide><path>rxjava-core/src/main/java/rx/util/Exceptions.java <ide> private Exceptions() { <ide> } <ide> <ide> public static RuntimeException propagate(Throwable t) { <add> /** <add> * The return type of RuntimeException is a trick for code to be like this: <add> * <add> * throw ...
1