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
Python
Python
fix missing message in validationerror
ccf3c508bd6750073ea3bbaefff567b92880df73
<ide><path>rest_framework/authtoken/serializers.py <ide> def validate(self, attrs): <ide> if user: <ide> if not user.is_active: <ide> msg = _('User account is disabled.') <del> raise serializers.ValidationError() <add> raise serialize...
1
Mixed
Javascript
add highwatermark option for connect
58682d823acb0e566f16d1d8b33b83dfebf3aa5d
<ide><path>doc/api/https.md <ide> Global instance of [`https.Agent`][] for all HTTPS client requests. <ide> <!-- YAML <ide> added: v0.3.6 <ide> changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/32786 <add> description: The `highWaterMark` option is accepted now. <ide> - vers...
5
Python
Python
fix invalid parameter types used in `dtype`
a5beccfa3574f4fcb1b6030737b728e65803791f
<ide><path>numpy/array_api/_typing.py <ide> "PyCapsule", <ide> ] <ide> <del>from typing import Any, Literal, Sequence, Type, Union <add>import sys <add>from typing import Any, Literal, Sequence, Type, Union, TYPE_CHECKING <ide> <del>from . import ( <del> Array, <add>from . import Array <add>from numpy import (...
1
Text
Text
add changelog entry
f945178a601f18c2c649fd925ca069da8c0f1547
<ide><path>railties/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Rake test:uncommitted finds git directory in ancestors *Nicolas Despres* <add> <ide> * Add dummy app Rake tasks when --skip-test-unit and --dummy-path is passed to the plugin generator. <ide> Fix #8121 <ide>
1
Javascript
Javascript
add displayname to nested render warnings []
28f50c8a78cffc0b0e9d60e4a7c77cc14a8e80c7
<ide><path>src/browser/ui/ReactMount.js <ide> var ReactMount = { <ide> // verify that that's the case. <ide> warning( <ide> ReactCurrentOwner.current == null, <del> '_renderNewRootComponent(): Render methods should be a pure function ' + <del> 'of props and state; triggering nested component upd...
2
Javascript
Javascript
remove unneeded comment task
8704c58fc4fff2d2ae2ccec23c0951d37667904c
<ide><path>test/parallel/test-http-url.parse-only-support-http-https-protocol.js <ide> assert.throws(function() { <ide> return true; <ide> } <ide> }); <del> <del>//TODO do I need to test url.parse(notPrococol.example.com)?
1
Text
Text
add v3.1.0-beta.5 to changelog
66c39c2f1888c6533f0d807d7f4804ec2bfbcb65
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.1.0-beta.5 (March 12, 2018) <add>- [#15601](https://github.com/emberjs/ember.js/pull/15601) [BUGFIX] Ensure Mixin.prototype.toString does not return constructor code <add>- [#16326](https://github.com/emberjs/ember.js/pull/16326) [BUGFIX] Expanded synta...
1
Text
Text
add a shell completion doc
36e961ad985325f3087317f42b56266189936c75
<ide><path>docs/README.md <ide> - [Installation](Installation.md) <ide> - [Frequently Asked Questions](FAQ.md) <ide> - [Common Issues](Common-Issues.md) <add>- [`brew` Shell Completion](Shell-Completion.md) <ide> <ide> - [Tips and Tricks](Tips-N'-Tricks.md) <ide> - [Bottles (binary packages)](Bottles.md) <ide><path>do...
2
PHP
PHP
fix minore typo
01e398030bd894fb5c8996a6a9dd3d60794d1a74
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php <ide> protected function addCastAttributesToArray(array $attributes, array $mutatedAtt <ide> ); <ide> <ide> // If the attribute cast was a date or a datetime, we will serialize the date as <del> // a string. This ...
1
PHP
PHP
add global callback handler
188c99485dc3954be93c6c5e0f509d9cbe2ab13d
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php <ide> public function isRelation($key) <ide> */ <ide> protected function violatedLazyLoading($key) <ide> { <add> if (isset(static::$violatedLazyLoadingCallback)) { <add> call_user_func(static::$violatedLazyLoadingCallb...
3
Go
Go
fix wildcard expansion after slash in filename
309056648c8263aca388e679179464e59a9f52c8
<ide><path>builder/dockerfile/internals.go <ide> func (b *Builder) calcCopyInfo(cmdName, origPath string, allowLocalDecompression <ide> return copyInfos, nil <ide> } <ide> <del>func containsWildcards(name string) bool { <del> for i := 0; i < len(name); i++ { <del> ch := name[i] <del> if ch == '\\' { <del> i++ <de...
4
Javascript
Javascript
increase code coverage of source_text_module.js
6c2f78e7048ed0383ce6f66322913dab0dd7b387
<ide><path>test/parallel/test-vm-module-basic.js <ide> const util = require('util'); <ide> ); <ide> assert.strictEqual(util.inspect(m, { depth: -1 }), '[SourceTextModule]'); <ide> } <add> <add>// Check dependencies getter returns same object every time <add>{ <add> const m = new SourceTextModule(''); <add> const ...
1
Javascript
Javascript
add code example for emberarray.filter
1787f810d530e2707f68526f192668fbec873ce5
<ide><path>packages/@ember/-internals/runtime/lib/mixins/array.js <ide> const ArrayMixin = Mixin.create(Enumerable, { <ide> mapBy, <ide> <ide> /** <del> Returns an array with all of the items in the enumeration that the passed <del> function returns true for. This method corresponds to `filter()` defined in ...
1
Javascript
Javascript
reduce run time for test-benchmark-http
daead5a76731c9201daa32a146c2e89f3d522670
<ide><path>test/sequential/test-benchmark-http.js <ide> const env = Object.assign({}, process.env, <ide> <ide> const child = fork(runjs, ['--set', 'benchmarker=test-double', <ide> '--set', 'c=1', <add> '--set', 'chunkedEnc=true', <ide> '--...
1
Python
Python
escape hyperlink urls on lookup
fe840a34ff79f6fd996219ff8325b5f07cc3f62b
<ide><path>rest_framework/relations.py <ide> def to_internal_value(self, data): <ide> if data.startswith(prefix): <ide> data = '/' + data[len(prefix):] <ide> <del> data = uri_to_iri(data) <add> data = uri_to_iri(parse.unquote(data)) <ide> <ide> try: <ide> ...
2
Text
Text
remove placholder text
6d9d0c992e682fa4398bd2114a8eeb6a676c57ed
<ide><path>curriculum/challenges/english/01-responsive-web-design/applied-visual-design/make-motion-more-natural-using-a-bezier-curve.english.md <ide> Change value of the <code>animation-timing-function</code> of the element with t <ide> ```yml <ide> tests: <ide> - text: 'The value of the <code>animation-timing-funct...
1
Python
Python
add multiple http statuses
6bd25c09a642dea9918bd85a3c40671fbb8feb2d
<ide><path>rest_framework/status.py <ide> def is_server_error(code): <ide> HTTP_205_RESET_CONTENT = 205 <ide> HTTP_206_PARTIAL_CONTENT = 206 <ide> HTTP_207_MULTI_STATUS = 207 <add>HTTP_208_ALREADY_REPORTED = 208 <add>HTTP_226_IM_USED = 226 <ide> HTTP_300_MULTIPLE_CHOICES = 300 <ide> HTTP_301_MOVED_PERMANENTLY = 301 <id...
1
Text
Text
fix minor capitalzation typo
25be6dc0279cc0348bbc7743a85c712f74dbf897
<ide><path>CHANGELOG.md <ide> Each of these changes will continue to work as before with a new warning until t <ide> <ide> * Upgrade Commoner so `require` statements are no longer relativized when passing through the transformer. This was a feature needed when building React, but doesn't translate well for other consu...
1
Ruby
Ruby
implement equality for `bindparam`
d36a769234911c8374e09069eb054d4c60eb1b99
<ide><path>lib/arel/nodes/bind_param.rb <ide> module Arel <ide> module Nodes <ide> class BindParam < Node <add> def ==(other) <add> other.is_a?(BindParam) <add> end <ide> end <ide> end <ide> end <ide><path>test/nodes/test_bind_param.rb <add>require 'helper' <add> <add>module Arel <add> mod...
2
Python
Python
add pdf task + full dmg build for paver script
bc70602d5fb6adcf3cfe19883aeac72ef015d3ae
<ide><path>pavement.py <ide> def html(options): <ide> HTML_DESTDIR.rmtree() <ide> builtdocs.copytree(HTML_DESTDIR) <ide> <add>def _latex_paths(): <add> """look up the options that determine where all of the files are.""" <add> opts = options <add> docroot = paver.path.path(opts.get('docroot', 'docs'))...
1
Text
Text
fix misplaced entries in test/common doc
52491529ba940faa6d69b20bb5fe89ae3b3e137c
<ide><path>test/common/README.md <ide> Tests whether `name`, `expected`, and `code` are part of a raised warning. If <ide> an expected warning does not have a code then `common.noWarnCode` can be used <ide> to indicate this. <ide> <del>### noWarnCode <del>See `common.expectWarning()` for usage. <del> <ide> ### fileExi...
1
PHP
PHP
correct all the assert orders
ed5b3dec0fee149be88a2826b34778866cab6725
<ide><path>tests/TestCase/Utility/InflectorTest.php <ide> public function tearDown() <ide> */ <ide> public function testInflectingSingulars() <ide> { <del> $this->assertEquals(Inflector::singularize('categorias'), 'categoria'); <del> $this->assertEquals(Inflector::singularize('menus'), 'menu'...
1
Text
Text
capitalize headings to match style guidelines
d49a3abc019732c35c2f1fdc7687572ddd168dd8
<ide><path>guides/source/action_cable_overview.md <ide> connections as you have workers. The default worker pool size is set to 4, so <ide> that means you have to make at least 4 database connections available. <ide> You can change that in `config/database.yml` through the `pool` attribute. <ide> <del>### Client-side ...
41
Text
Text
update russian translation
bbb4de225ceea393e6b8d0dc439738f09c7a0ef2
<ide><path>guide/russian/php/composer/index.md <ide> localeTitle: Composer <ide> --- <ide> ## Composer <ide> <del>Composer - менеджер пакетов прикладного уровня для языка программирования PHP что обеспечивает стандартный формат для управления зависимостями в программном обеспечении и необходимыми библиотеками. Вы испо...
1
Ruby
Ruby
fix key names in abstract_controller_test.rb
f94d715ad5064947e06f6185a314ccebd3f6475f
<ide><path>actionview/test/actionpack/abstract/abstract_controller_test.rb <ide> def _prefixes <ide> <ide> def render(options = {}) <ide> if options.is_a?(String) <del> options = { _template_name: options } <add> options = { action: options } <ide> end <ide> super <ide> ...
1
Python
Python
use default tf layout i.e. 'channels_first'
1fec906ab0b047546fffd5ae4d67a688eac7158b
<ide><path>examples/mnist_acgan.py <ide> import numpy as np <ide> <ide> np.random.seed(1337) <del> <del>K.set_image_data_format('channels_first') <del> <ide> num_classes = 10 <ide> <ide> <ide> def build_generator(latent_size): <ide> # we will map a pair of (z, L), where z is a latent vector and L is a <del> #...
1
Text
Text
fix spelling and punctuation
4e9cfa940428c4a0258ae5630174769e1a5f8595
<ide><path>guide/english/blockchain/types/index.md <ide> Example : Bitcoin, Ethereum, Litecoin <ide> <ide> In this type of blockchain the problem of the private blockchain is solved. The issue of sole autonomy by vesting the power in the hands of an individual is tackeled by making more than one person in charge. <ide...
1
Ruby
Ruby
remove unused variable
ea84b0c6183949750f0801db50d22e58d62ec024
<ide><path>activesupport/lib/active_support/core_ext/date_and_time/calculations.rb <ide> def end_of_month <ide> # Returns a new date/time representing the end of the year. <ide> # DateTime objects will have a time set to 23:59:59. <ide> def end_of_year <del> result = change(:month => 12).end_of_month <...
1
Ruby
Ruby
convert preflight test to spec
451e7c3aebf77be1d353712d202e2e915b8962f0
<add><path>Library/Homebrew/cask/spec/cask/dsl/preflight_spec.rb <del><path>Library/Homebrew/cask/test/cask/dsl/preflight_test.rb <del>require "test_helper" <add>require "spec_helper" <ide> <ide> describe Hbc::DSL::Preflight do <ide> let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/basic-cask...
1
Javascript
Javascript
fix typo in reactdomfiberentry
15d3f2852f589bc20d3679089c59ae9eb4d365d1
<ide><path>src/renderers/dom/fiber/ReactDOMFiberEntry.js <ide> var ReactDOMFiber = { <ide> callback: ?Function, <ide> ) { <ide> if (ReactFeatureFlags.disableNewFiberFeatures) { <del> // Top-level check occurs here instead of inside child reconciler because <add> // Top-level check occurs here instea...
1
Java
Java
remove use of cast where avoidable
9277b470404ce1dce790fa82e684c9d8220940e7
<ide><path>spring-web/src/main/java/org/springframework/web/server/handler/ExceptionHandlingWebHandler.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"); <...
2
PHP
PHP
apply fixes from styleci
d0ed106a5d5ecebaf7ded27153d630222284422a
<ide><path>tests/Integration/Routing/FluentRoutingTest.php <ide> public function test_middleware_run_when_registered_as_array_or_params() <ide> } <ide> } <ide> <del> <ide> class Middleware <ide> { <ide> public function handle($request, $next)
1
Ruby
Ruby
destructure use_react_native! parameters and doc
79a37e5a88e179090ade7145a453a46719c87b3f
<ide><path>scripts/react_native_pods.rb <ide> <ide> $START_TIME = Time.now.to_i <ide> <del>def use_react_native! (options={}) <add># Function that setup all the react native dependencies <add>#  <add># Parameters <add># - path: path to react_native installation. <add># - fabric_enabled: whether fabric should be enabl...
1
PHP
PHP
unskip required attribute tests for input()
450d3c172d46c5ed8562e28dacce7e82a9cd44b0
<ide><path>src/View/Helper/FormHelper.php <ide> public function inputs($fields = null, $blacklist = null, $options = array()) { <ide> * - `type` - Force the type of widget you want. e.g. `type => 'select'` <ide> * - `label` - Either a string label, or an array of options for the label. See FormHelper::label(). <ide> ...
2
Ruby
Ruby
replace compound `unless` with equivalent `if`
02c207a9ec6ccec1899cf8428a05bb2682235f90
<ide><path>Library/Homebrew/extend/git_repository.rb <ide> def git? <ide> # Gets the URL of the Git origin remote. <ide> sig { returns(T.nilable(String)) } <ide> def git_origin <del> return unless git? && Utils::Git.available? <add> return if !git? || !Utils::Git.available? <ide> <ide> Utils.popen_read...
2
Text
Text
fix another typo in docker-build man page
f0c9818eba0a9220766b020612f3b1d63c7d9c80
<ide><path>docs/man/docker-build.1.md <ide> no hard rules here but it is best to give the names consideration. <ide> <ide> The **-t**/**--tag** flag is used to rename an image. Here are some examples: <ide> <del>Though it is not a good practice, image names can be arbtrary: <add>Though it is not a good practice, imag...
1
PHP
PHP
fix cs warnings in function docblocks
5f51f3aa09fef91cb51e043f12309ca0a90ad1e7
<ide><path>src/Collection/functions.php <ide> <ide> if (!function_exists('collection')) { <ide> /** <del> * Returns a new Cake\Collection\Collection object wrapping the passed argument <add> * Returns a new Cake\Collection\Collection object wrapping the passed argument. <ide> * <del> * @param \Tra...
3
Go
Go
add testcase with api/errors/errors_test.go
f157b54606899057360be60ec0e4826d8382c12b
<ide><path>api/errors/errors_test.go <add>package errors <add> <add>import ( <add> "fmt" <add> "github.com/stretchr/testify/assert" <add> "net/http" <add> "testing" <add>) <add> <add>func newError(errorname string) error { <add> <add> return fmt.Errorf("test%v", errorname) <add>} <add> <add>func TestErrors(t *testing.T...
1
Javascript
Javascript
implement new error handling
8272c225b12eb08f60d41791c68f3f1a28caec20
<ide><path>lib/internal/errors.js <ide> const kCode = Symbol('code'); <ide> const kInfo = Symbol('info'); <ide> const messages = new Map(); <add>const codes = {}; <ide> <ide> var green = ''; <ide> var red = ''; <ide> function makeNodeError(Base) { <ide> }; <ide> } <ide> <add>function makeNodeErrorWithCode(Base, key...
1
Go
Go
fix errors due changed sockrequest signature
27fccdbabb277e29488de88f9af2e7b83af93132
<ide><path>integration-cli/docker_api_exec_resize_test.go <ide> package main <ide> <ide> import ( <add> "net/http" <ide> "os/exec" <ide> "strings" <ide> "testing" <ide> func TestExecResizeApiHeightWidthNoInt(t *testing.T) { <ide> cleanedContainerID := strings.TrimSpace(out) <ide> <ide> endpoint := "/exec/" + cle...
2
PHP
PHP
add ttr option to beanstalk config
9bf9c2eb42a0095d8dd9898ec8daa17ce7707702
<ide><path>app/config/queue.php <ide> 'driver' => 'beanstalkd', <ide> 'host' => 'localhost', <ide> 'queue' => 'default', <add> 'ttr' => 60, <ide> ), <ide> <ide> 'sqs' => array(
1
Python
Python
fix typos in portuguese stop words
c2d48974bc49aa58719f878ae643cefe73f3dcf5
<ide><path>spacy/pt/stop_words.py <ide> <ide> <ide> STOP_WORDS = set(""" <del>à às acerca adeus agora ainda algmas algo algumas alguns ali além ambos ano <add>à às acerca adeus agora ainda algo algumas alguns ali além ambos ano <ide> anos antes ao aos apenas apoio apontar após aquela aquelas aquele aqueles aqui <ide>...
1
Go
Go
implement docker port with standalone client lib
eeee2eae8671ce05d863aadf289a0695ac62629b
<ide><path>api/client/port.go <ide> package client <ide> <ide> import ( <del> "encoding/json" <ide> "fmt" <ide> "strings" <ide> <ide> func (cli *DockerCli) CmdPort(args ...string) error { <ide> <ide> cmd.ParseFlags(args, true) <ide> <del> serverResp, err := cli.call("GET", "/containers/"+cmd.Arg(0)+"/json", nil,...
1
Python
Python
remove unused names from __all__ in arrayprint
6471522ba64c7d165606f9aabaacf808dedb8c3c
<ide><path>numpy/core/arrayprint.py <ide> <ide> $Id: arrayprint.py,v 1.9 2005/09/13 13:58:44 teoliphant Exp $ <ide> """ <del>__all__ = ["set_summary", "summary_off", "set_precision", "set_line_width", <del> "array2string"] <add>__all__ = ["array2string", "set_printoptions", "get_printoptions"] <ide> <ide> #...
1
Ruby
Ruby
fix a couple of git-related checks
9f4f23a7f44c152b876e7e045521b3ebca8ed7dc
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_multiple_volumes <ide> end <ide> <ide> def check_for_git <del> git = `/usr/bin/which git`.chomp <del> if git.empty? <add> unless system "/usr/bin/which -s git" <ide> puts <<-EOS.undent <ide> "Git" was not found in your path. <ide> <ide> def ch...
1
Ruby
Ruby
log the exception from the threadconsumer
4531ba74938985bd2343b27d1a30d099d5975b02
<ide><path>railties/lib/rails/queueing.rb <ide> def initialize(queue) <ide> def start <ide> @thread = Thread.new do <ide> while job = @queue.pop <del> job.run <add> begin <add> job.run <add> rescue Exception => e <add> Rails.logger.error...
2
Text
Text
fix broken link in docs
a0ffa346c0371c6f2fd7c5ae7e9f5a26e36bfc76
<ide><path>website/docs/usage/saving-loading.md <ide> docs = list(doc_bin.get_docs(nlp.vocab)) <ide> <ide> If `store_user_data` is set to `True`, the `Doc.user_data` will be serialized as <ide> well, which includes the values of <del>[extension attributes](/processing-pipelines#custom-components-attributes) (if <add>[...
1
PHP
PHP
add exists as alias to has
42255bedff7637bcf3c2ee1b60c613ef3cbf8888
<ide><path>src/Illuminate/Http/Concerns/InteractsWithInput.php <ide> public function bearerToken() <ide> } <ide> } <ide> <add> /** <add> * Determine if the request contains a given input item key. <add> * <add> * @param string|array $key <add> * @return bool <add> */ <add> publi...
1
PHP
PHP
use the new google fonts api
c64061629eeb328e79d842051fa3506843c306cf
<ide><path>resources/views/welcome.blade.php <ide> <title>Laravel</title> <ide> <ide> <!-- Fonts --> <del> <link href="https://fonts.googleapis.com/css?family=Nunito:400,600,700" rel="stylesheet"> <add> <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=s...
1
Javascript
Javascript
add missing whitespace
d7fde5fcb12ba0bcb8061ad349e22f3513cd6ec6
<ide><path>src/ngMock/angular-mocks.js <ide> angular.mock = {}; <ide> * that there are several helper methods available which can be used in tests. <ide> */ <ide> angular.mock.$BrowserProvider = function() { <del> this.$get = function(){ <add> this.$get = function() { <ide> return new angular.mock.$Browser(); <...
1
Javascript
Javascript
add regression test for proxy as vm context
f9ea52e5ebebf4ad7058ff1d950c63ae18a7a3da
<ide><path>test/parallel/test-vm-context.js <ide> assert.throws(function() { <ide> }, function(err) { <ide> return /expected-filename.js:33:130/.test(err.stack); <ide> }, 'Expected appearance of proper offset in Error stack'); <add> <add>// https://github.com/nodejs/node/issues/6158 <add>ctx = new Proxy({}, {}); <add...
1
Python
Python
remove todos and update docstrings
1e0363290e71a3383c5fbdce3d1fecea5bf107df
<ide><path>spacy/language.py <ide> def remove_pipe(self, name: str) -> Tuple[str, Callable[[Doc], Doc]]: <ide> <ide> def disable_pipe(self, name: str) -> None: <ide> """Disable a pipeline component. The component will still exist on <del> the nlp object, but it won't be run as part of the pipeline. ...
1
Text
Text
add link to @troydemonbreun’s contribution
36734f4d374aefe64d93db0d30d8cb437a6a7970
<ide><path>CHANGELOG.md <ide> <ide> ### React <ide> - Add error codes to production invariants, with links to the view the full error text. ([@keyanzhang](https://github.com/keyanzhang) in [#6948](https://github.com/facebook/react/pull/6948)) <del>- Include component stack information in PropType validation warnings. ...
1
Javascript
Javascript
remove closest fallback
63a2d027f4e6d6412a4ea309fb9d4dc2c47c39ef
<ide><path>src/js/player.js <ide> class Player extends Component { <ide> <ide> // If language is not set, get the closest lang attribute <ide> if (!options.language) { <del> if (typeof tag.closest === 'function') { <del> const closest = tag.closest('[lang]'); <add> const closest = tag.closest(...
1
Javascript
Javascript
remove use strict from grunt
72aada0a156881db8ad530a7543d58ea90e51e84
<ide><path>grunt.js <ide> /*jshint node: true */ <ide> /*global config:true, task:true, process:true*/ <ide> <del>"use strict"; <del> <ide> var child_process = require("child_process"); <ide> <ide> module.exports = function( grunt ) {
1
Python
Python
remove another generator
10a6b61250f55dae30aabe9fc1463781bdcee64d
<ide><path>numpy/core/tests/test_multiarray.py <ide> def testip_types(self): <ide> tests = [] <ide> for val in [-100,0,15]: <ide> for types in N.sctypes.itervalues(): <del> tests.extend((self.tst_basic,x.copy().astype(T),T,mask,val) <del> for T in t...
1
Text
Text
add tip for the important jsx convention
0ae09f4c70bd83483b242f3712a206d34da45bbc
<ide><path>docs/docs/getting-started.md <ide> React.renderComponent( <ide> document.getElementById('example') <ide> ); <ide> ``` <add>> ```/** @jsx React.DOM */``` is must, or jsx would not convert. <add> <ide> Then reference it from `helloworld.html`: <ide> <ide> ```html{10}
1
PHP
PHP
fix a styling issue
841a28067b03979603e41dd80729cb8581a91e95
<ide><path>src/Illuminate/Database/Schema/Builder.php <ide> <ide> use Closure; <ide> use LogicException; <add>use RuntimeException; <ide> use Doctrine\DBAL\Types\Type; <ide> use Illuminate\Database\Connection; <del>use RuntimeException; <ide> <ide> class Builder <ide> {
1
Javascript
Javascript
fix a comment of the player's loadedmetadata event
ca2f5a3caeea9052bd84dda1bdd619430b7bdd1c
<ide><path>src/js/player.js <ide> const TECH_EVENTS_RETRIGGER = [ <ide> * @type {EventTarget~Event} <ide> */ <ide> /** <del> * Retrigger the `stalled` event that was triggered by the {@link Tech}. <add> * Retrigger the `loadedmetadata` event that was triggered by the {@link Tech}. <ide> * <ide> * @pri...
1
Python
Python
remove forgotten debug print
7a661682c1d8209fe17daba26ed0cddc2cb5edf3
<ide><path>doc/sphinxext/docscrape_sphinx.py <ide> def _str_member_list(self, name): <ide> out += self._str_indent(desc, n_indent) <ide> out += [hdr] <ide> out += [''] <del> print "\n".join(out) <ide> return out <ide> <ide> def _str_section(self, n...
1
Python
Python
fix regression in np.ma.load in gh-10055
8671dc0dd968d33d99ad1a9c6ce7a29e84dff953
<ide><path>numpy/ma/core.py <ide> def load(F): <ide> """ <ide> if not hasattr(F, 'readline'): <ide> with open(F, 'r') as F: <del> pickle.load(F) <add> return pickle.load(F) <ide> else: <del> pickle.load(F) <add> return pickle.load(F) <ide> <ide> <ide> def loads(...
1
Python
Python
use the short path for tpuclusterresolver
9e23bab8b97e82d0dd253620673633eed44a2473
<ide><path>official/mnist/mnist_tpu.py <ide> def main(argv): <ide> tpu_grpc_url = FLAGS.master <ide> else: <ide> tpu_cluster_resolver = ( <del> tf.contrib.cluster_resolver.python.training.TPUClusterResolver( <add> tf.contrib.cluster_resolver.TPUClusterResolver( <ide> tpu_names=[FLAGS...
1
Ruby
Ruby
flag any desc that starts with the formula name
a2e2553bd82ca130931072353a167be5d9e87a20
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_desc <ide> problem "Description shouldn't start with an indefinite article (#{$1})" <ide> end <ide> <del> if desc =~ /^#{formula.name} is\s/i <add> if desc =~ /^#{formula.name}\s/i <ide> problem "Description shouldn't include the formula na...
1
Javascript
Javascript
use internal/errors.js in module.require
b21715403bc5e229c4171ed996e337526daeadf6
<ide><path>lib/module.js <ide> Module.prototype.load = function(filename) { <ide> <ide> // Loads a module at the given file path. Returns that module's <ide> // `exports` property. <del>Module.prototype.require = function(path) { <del> assert(path, 'missing path'); <del> assert(typeof path === 'string', 'path must b...
3
Python
Python
add mqtt output in json format
63f0375362c7437a1d924a6831815c2764f75362
<ide><path>glances/exports/glances_mqtt.py <ide> <ide> import socket <ide> import string <add>import json <ide> <ide> from glances.logger import logger <ide> from glances.exports.glances_export import GlancesExport <ide> def __init__(self, config=None, args=None): <ide> # Load the MQTT configuration file <ide...
1
Text
Text
set demo script to 'use strict' for embeddedapp
48bcbecf8ca802610e24f46fc851be1dcc5f36b1
<ide><path>docs/EmbeddedApp.md <ide> $ touch index.ios.js <ide> Copy & paste following starter code for **index.ios.js**. <ide> <ide> ``` <del>var React = require('react-native'); <add>'use strict'; <ide> <add>var React = require('react-native'); <ide> var { <ide> Text, <ide> View
1
Python
Python
add broadcast commands for start/stop actors
66adb569261574e4a5f27bfaef4e6643725febf3
<ide><path>celery/app/control.py <ide> def registered(self, *taskinfoitems): <ide> <ide> def ping(self): <ide> return self._request('ping') <del> <add> <ide> def active_queues(self): <ide> return self._request('active_queues') <ide> <ide> def conf(self): <ide> return self._requ...
4
Text
Text
fix errors in web streams doc
2be596604ac13a4dd68eb9cc38e54f2df438dd97
<ide><path>doc/api/webstreams.md <ide> added: v16.5.0 <ide> * `preventAbort` {boolean} When `true`, errors in this `ReadableStream` <ide> will not cause `transform.writable` to be aborted. <ide> * `preventCancel` {boolean} When `true`, errors in the destination <del> `transform.writable` is not cause this `R...
1
Text
Text
fix version references
32c7c3244ab6c84747ca055a244f111c8390c29c
<ide><path>threejs/lessons/fr/threejs-fundamentals.md <ide> Tout d'abord, chargeons three.js : <ide> <ide> ```html <ide> <script type="module"> <del>import * as THREE from './resources/threejs/r114/build/three.module.js'; <add>import * as THREE from './resources/threejs/r119/build/three.module.js'; <ide> </script> <id...
4
Mixed
Ruby
add +capitalize+ option to inflector.humanize
c61544c7818f109c132fcad9db73d43216417535
<ide><path>activesupport/CHANGELOG.md <add>* Add `capitalize` option to Inflector.humanize, so strings can be humanized without being capitalized: <add> <add> 'employee_salary'.humanize # => "Employee salary" <add> 'employee_salary'.humanize(capitalize: false) # => "employee salary" <...
7
Ruby
Ruby
use minitest/mock instead of mocha
84854d9d05c10b091a03767359c3c6ccf4450f26
<ide><path>actioncable/test/channel/base_test.rb <ide> # frozen_string_literal: true <ide> <ide> require "test_helper" <add>require "minitest/mock" <ide> require "stubs/test_connection" <ide> require "stubs/room" <ide> <ide> def rm_rf <ide> events << ActiveSupport::Notifications::Event.new(*args) <ide> ...
8
Javascript
Javascript
condense the duration.fn a little bit
b8eb4db499e679e3502d16c49b4ad2658681ed31
<ide><path>moment.js <ide> } <ide> <ide> return output; <del> } <del> }; <add> }, <ide> <del> moment.duration.fn.lang = moment.fn.lang; <add> lang : moment.fn.lang <add> }; <ide> <ide> function makeDurationGetter(name) { <ide> moment.duration.fn[name]...
1
Python
Python
fix typo in unit tests
b97dbab998640479e8ba0dfbe8fa1759908195df
<ide><path>spacy/tests/tokenizer/test_whitespace.py <ide> def test_tokenizer_splits_double_space(tokenizer, text): <ide> <ide> <ide> @pytest.mark.parametrize("text", ["lorem ipsum "]) <del>def test_tokenizer_handles_double_trainling_ws(tokenizer, text): <add>def test_tokenizer_handles_double_trailing_ws(tokenizer, t...
1
Text
Text
add link to section
094b2ae9ba2db28254bb09207a58bd9730ff097d
<ide><path>README.md <ide> import the keys: <ide> $ gpg --keyserver hkps://keys.openpgp.org --recv-keys DD8F2338BAE7501E3DD5AC78C273792F7D83545D <ide> ``` <ide> <del>See the bottom of this README for a full script to import active release keys. <add>See [Release keys](#release-keys) for a script to import active relea...
1
Mixed
Python
tensorflow qa example
e3cb7a0b60890cdc0b62c7f3f7ffe87cb6b3f799
<ide><path>examples/tensorflow/question-answering/README.md <ide> <!--- <del>Copyright 2020 The HuggingFace Team. All rights reserved. <add>Copyright 2021 The HuggingFace Team. All rights reserved. <ide> <ide> Licensed under the Apache License, Version 2.0 (the "License"); <ide> you may not use this file except in com...
4
Javascript
Javascript
do proper path-filtering for status
73cb867ccd3f734cbd4fa6aec682c32c164710dc
<ide><path>src/git-repository-async.js <ide> export default class GitRepositoryAsync { <ide> // Returns a {Promise} which resolves to a {Boolean} that's true if the `path` <ide> // is modified. <ide> isPathModified (_path) { <del> return this._filterStatusesByPath(_path) <add> return this._getStatus([_path]...
1
Ruby
Ruby
remove the functionality introduce in 28d3390
cb45ee344d5ec6974b78dc593e4eaef2101e3d42
<ide><path>activerecord/lib/active_record/associations.rb <ide> def association_accessor_methods(reflection, association_proxy_class) <ide> <ide> association = instance_variable_get(ivar) if instance_variable_defined?(ivar) <ide> <del> if association.nil? || !association.loaded? || force_reload...
3
Ruby
Ruby
handle explicit version dsl
a9a62972bdce95a2b94db1be2e732480d88e17eb
<ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb <ide> def bump_formula_pr <ide> new_tag = ARGV.value("tag") <ide> new_revision = ARGV.value("revision") <ide> new_mirror = ARGV.value("mirror") <add> forced_version = ARGV.value("version") <ide> new_url_hash = if new_url && new_hash <ide> t...
1
PHP
PHP
remove unneeded nullstorage
c9838a73a6590aab49104014cf290673052b7741
<ide><path>src/Auth/Storage/NullStorage.php <del><?php <del>/** <del> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <del> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <del> * <del> * Licensed under The MIT License <del> * For full copyright and license information, pleas...
1
Mixed
Javascript
fix some nits in perf_hooks
0a4c69a5c5e8ba93b7c9f67d08ef6c859eb1f86a
<ide><path>doc/api/perf_hooks.md <ide> Returns a list of `PerformanceEntry` objects in chronological order <ide> with respect to `performanceEntry.startTime` whose `performanceEntry.entryType` <ide> is equal to `type`. <ide> <del>## monitorEventLoopDelay([options]) <add>## perf_hooks.monitorEventLoopDelay([options]) <...
2
Text
Text
add extra step for reporter pre-approval
deb9f5eff0958940af28d67228c0382b19cdb1dc
<ide><path>doc/contributing/security-release-process.md <ide> The current security stewards are documented in the main Node.js <ide> the date in the slug so that it will move to the top of the blog list.) <ide> * (Consider using a [Vulnerability Score System](https://www.first.org/cvss/calculator/3.1) <ide> t...
1
PHP
PHP
use an early return to remove a layer of nesting
bc8ab57e0dad6f384d5fa918a233c2dae9c27fbd
<ide><path>src/View/Helper/SessionHelper.php <ide> public function error() { <ide> * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/session.html#SessionHelper::flash <ide> */ <ide> public function flash($key = 'flash', $attrs = array()) { <del> $out = false; <ide> <del> if (Session::check('Message.' ...
1
Ruby
Ruby
restore formula unless read only run
39f000c6ab7cffe661549aec1d3651502b339957
<ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb <ide> def bump_formula_pr <ide> ] <ide> end <ide> <del> old_contents = File.read(formula.path) unless args.dry_run? <add> read_only_run = args.dry_run? && !args.write? <add> old_contents = File.read(formula.path) unless read_only_run <ide> <ide...
1
Python
Python
set filename to none for memmaps of unnamed files
5f1e731fa5a2d3bca239662c27288b0b8b3588e7
<ide><path>numpy/core/memmap.py <ide> def __new__(subtype, filename, dtype=uint8, mode='r+', offset=0, <ide> <ide> if isinstance(filename, basestring): <ide> self.filename = os.path.abspath(filename) <del> elif hasattr(filename, "name"): <add> # py3 returns int for TemporaryFile().nam...
2
Javascript
Javascript
simplify logic of testing buffer equality
7dd5e824be53e222af63cc86e89b7ab7f841901c
<ide><path>lib/assert.js <ide> 'use strict'; <ide> <ide> // UTILITY <add>const compare = process.binding('buffer').compare; <ide> const util = require('util'); <ide> const pSlice = Array.prototype.slice; <ide> <ide> function _deepEqual(actual, expected, strict) { <ide> if (actual === expected) { <ide> return tr...
1
Ruby
Ruby
fix typo on instance variable get call
423f3b8dc1b659be43cf1990d8c6b405e2904c2f
<ide><path>activerecord/lib/active_record/persistence.rb <ide> def reload(options = nil) <ide> @attributes.update(fresh_object.instance_variable_get('@attributes')) <ide> <ide> @column_types = self.class.column_types <del> @column_types_override = fresh_object.instance_variable_get('@column...
1
Text
Text
improve russian translation
c87eb4026b94060f1a426adae0f9b451f7ce498e
<ide><path>curriculum/challenges/russian/05-apis-and-microservices/basic-node-and-express/serve-static-assets.russian.md <ide> forumTopicId: 301518 <ide> localeTitle: Служить статическим активам <ide> --- <ide> <del>## Description <add>## Описание <ide> <section id='description'> <del>HTML-сервер обычно имеет один или...
1
Python
Python
fix the __getattr__ method in batchencoding
9f5d5a531d769d07403f59661884e254f8420afe
<ide><path>src/transformers/tokenization_utils.py <ide> def __getitem__(self, item: Union[int, str]) -> EncodingFast: <ide> ) <ide> <ide> def __getattr__(self, item: str): <del> return self.data[item] <add> try: <add> return self.data[item] <add> except KeyError: <add> ...
1
Ruby
Ruby
require deprecate_disable module in formulary
f387c7f0b24d83bebe0fc38cc0d3f74af1fd8e85
<ide><path>Library/Homebrew/formulary.rb <ide> def self.convert_to_string_or_symbol(string) <ide> end <ide> <ide> def self.convert_to_deprecate_disable_reason_string_or_symbol(string) <add> require "deprecate_disable" <ide> return string unless DeprecateDisable::DEPRECATE_DISABLE_REASONS.keys.map(&:to_s).in...
1
Python
Python
add tests for cexp
b8c51d63eebec920164e54b7ea3b4a6d3cd1139b
<ide><path>numpy/core/tests/test_umath_complex.py <ide> def assert_almost_equal_spec(x, y): <ide> else: <ide> assert_almost_equal(x, y) <ide> <add>class TestCexp(object): <add> def test_simple(self): <add> check = check_complex_value <add> f = np.exp <add> <add> yield check, f, 1, ...
1
Javascript
Javascript
add missing "else" keyword
a57ec27fc6ba95f69b9ca75ea62b8e87e1b3a0ed
<ide><path>src/renderers/webgl/WebGLRenderLists.js <ide> function reversePainterSortStable( a, b ) { <ide> <ide> return a.renderOrder - b.renderOrder; <ide> <del> } if ( a.z !== b.z ) { <add> } else if ( a.z !== b.z ) { <ide> <ide> return b.z - a.z; <ide>
1
Ruby
Ruby
add exception to example (closes )
9b2ea172d72563c677e40156ba53aaaef6ed2294
<ide><path>activerecord/lib/active_record/migration.rb <ide> class IrreversibleMigration < ActiveRecordError#:nodoc: <ide> # <ide> # def self.down <ide> # # not much we can do to restore deleted data <add> # raise IrreversibleMigration <ide> # end <ide> # end <ide> #
1
PHP
PHP
fix a docblock
802f42fe8d3b6a106251ce53a3d41845d980a253
<ide><path>src/Illuminate/Auth/RequestGuard.php <ide> class RequestGuard implements Guard <ide> * Create a new authentication guard. <ide> * <ide> * @param callable $callback <del> * @param \Symfony\Component\HttpFoundation\Request $request <add> * @param \Illuminate\Http\Request $request <...
1
Python
Python
fix identation problems in docs
631070e57b4d6b9eb543a28cc3662affde8f4f48
<ide><path>libcloud/compute/drivers/gce.py <ide> def ex_create_multiple_nodes( <ide> :type description: ``str`` or ``None`` <ide> <ide> :keyword ex_can_ip_forward: Set to ``True`` to allow this node to <del> send/receive non-matching src/dst packets. <add> ...
1
Java
Java
do simple clean-up
60b72d721dc2f02279ff360d4ea1de98ae62d986
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/config/YamlProcessor.java <ide> private boolean process(MatchCallback callback, Yaml yaml, Resource resource) { <ide> if (logger.isDebugEnabled()) { <ide> logger.debug("Loading from YAML: " + resource); <ide> } <del> Reader reader = new...
3
Python
Python
remove obsolete testf77mismatch
416d3b3069b6a829673a68464b4eab768c1b90d2
<ide><path>numpy/linalg/tests/test_build.py <del>from subprocess import PIPE, Popen <del>import sys <del>import re <del>import pytest <del> <del>from numpy.linalg import lapack_lite <del>from numpy.testing import assert_ <del> <del> <del>class FindDependenciesLdd: <del> <del> def __init__(self): <del> self.cm...
1
Ruby
Ruby
remove special 1.9 version of excerpt helper
b8eec5ac33d6f421fe5a2c757794ed2e4965f81d
<ide><path>actionpack/lib/action_view/helpers/text_helper.rb <ide> def highlight(text, phrases, *args) <ide> end <ide> end <ide> <del> # Extracts an excerpt from +text+ that matches the first instance of +phrase+. <del> # The <tt>:radius</tt> option expands the excerpt on each side of the f...
1
PHP
PHP
fix uniquestrict for keyless collections
ca3146d72fab9f06a24e197f556654780c93dead
<ide><path>src/Illuminate/Support/Collection.php <ide> public function transform(callable $callback) <ide> */ <ide> public function unique($key = null, $strict = false) <ide> { <del> if (is_null($key)) { <del> return new static(array_unique($this->items, SORT_REGULAR)); <del> } <de...
1
Python
Python
remove unused variables in src
71f94a8a1c89577ec4482b3e5600fbcdfb3dd1a8
<ide><path>src/transformers/data/metrics/__init__.py <ide> from sklearn.metrics import matthews_corrcoef, f1_score <ide> <ide> _has_sklearn = True <del>except (AttributeError, ImportError) as e: <add>except (AttributeError, ImportError): <ide> _has_sklearn = False <ide> <ide> <ide><path>src/transformers/...
7
Python
Python
fix numericaltype hierarchy in code doc
caab62bce506dc8aaaec1df8c85af8785bcef020
<ide><path>numpy/core/numerictypes.py <ide> generic <ide> +-> bool_ (kind=b) <ide> +-> number <del> | integer <del> | signedinteger (intxx) (kind=i) <del> | byte <del> | short <del> | intc <del> | intp ...
1