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
fix some indentation and change some typo
d93ad2c00b9410bb6489a04fc8cb202d08556e9f
<ide><path>guide/english/cplusplus/if-else-statement/index.md <ide> else <ide> //Program to check whether number entered by user is positive or negative <ide> #include <iostream> <ide> using namespace std; <add> <ide> int main() <ide> { <ide> int no; <ide> cout << "Enter a number: " << endl; <del> <ide> cin >> ...
1
Ruby
Ruby
add debug output to install name machinery
f458fa9e9aafe01c86054209b5f7da3f80cf9501
<ide><path>Library/Homebrew/keg_fix_install_names.rb <ide> def relocate_install_names old_prefix, new_prefix, old_cellar, new_cellar, optio <ide> end <ide> <ide> def change_dylib_id(id, file) <add> puts "Changing dylib ID in #{file} to #{id}" if ARGV.debug? <ide> install_name_tool("-id", id, file) <ide> e...
1
Javascript
Javascript
use shell mode for windows support
30c35abb44bdc6da4c0093f4cd144e8af5313cfb
<ide><path>bin/webpack.js <ide> function runCommand(command, options) { <ide> const cp = require("child_process"); <ide> return new Promise((resolve, reject) => { <ide> const executedCommand = cp.spawn(command, options, { <del> stdio: "inherit" <add> stdio: "inherit", <add> shell: true <ide> }); <ide> <ide...
1
PHP
PHP
add ssl context options to socket
5dc186bbb9fe4bb68a47b569514008ff7b33a77f
<ide><path>src/Network/Socket.php <ide> public function connect() <ide> $scheme = $this->_config['protocol'] . '://'; <ide> } <ide> <add> $this->_setSslContext($this->_config['host']); <ide> if (!empty($this->_config['context'])) { <ide> $context = stream_context_create($...
2
Python
Python
fix tok2vec for empty batches
cf5b46b63e91b9a2881c3a7d52bb9d2856c809f2
<ide><path>spacy/pipeline/tok2vec.py <ide> def predict(self, docs: Iterable[Doc]): <ide> <ide> DOCS: https://spacy.io/api/tok2vec#predict <ide> """ <add> if not any(len(doc) for doc in docs): <add> # Handle cases where there are no tokens in any docs. <add> width = self.mod...
2
Text
Text
update changelog for 1.5.0-beta.3
1a13d839f301e2e0f7e6dd6f64b673e18d6423a2
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### Ember 1.5.0-beta.3 (March 1, 2014) <add> <add>* [BUGFIX] PromiseProxyMixin reset isFulfilled and isRejected. <add>* Use documentElement instead of body for ember-extension detection. <add>* Many documentation updates. <ide> <ide> ### Ember 1.5.0-beta.2 (F...
1
Text
Text
add v4.6.0 to changelog
6dbd66eaa82fafcbc443f4f00403deeb7c6f5230
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del>### v4.6.0-beta.2 (June 27, 2022) <add>### v4.6.0 (July 25, 2022) <ide> <ide> - [#20125](https://github.com/emberjs/ember.js/pull/20125) [BUGFIX] Replace deprecated substr() method with substring() method. <del>- [#20120](https://github.com/emberjs/ember.js/p...
1
Text
Text
add language-text to build list
3b309792a531fb809d29c6742de956f50b3acec5
<ide><path>docs/build-instructions/build-status.md <ide> | [Sass](https://github.com/atom/language-sass) | [![macOS Build Status](https://travis-ci.org/atom/language-sass.svg?branch=master)](https://travis-ci.org/atom/language-sass) | [![Windows Build Status](https://ci.appveyor.com/api/projects/status/g7p16vainm4iuoot...
1
PHP
PHP
add exit status to workstopping event.
ea3b5e5300be3824cee30dfa9608d27d8432addf
<ide><path>src/Illuminate/Queue/Events/WorkerStopping.php <ide> <ide> class WorkerStopping <ide> { <del> // <add> /** <add> * The exit status. <add> * <add> * @var int <add> */ <add> public $status; <add> <add> /** <add> * Create a new event instance. <add> * <add> * @param int...
2
Text
Text
remove stub information from a guide article
44445fec7225cac66040db17960a92e95a4e9d08
<ide><path>guide/english/mathematics/exponents-basic-rules/index.md <ide> title: Exponents Basic Rules <ide> --- <ide> ## Exponents Basic Rules <ide> <del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/mathematics/exponents-basic-rules/index.md' target='_blank' rel='nofollow'>Hel...
1
PHP
PHP
fix phpdocs for json resources
227c71b3011740987fab7cf317312bbfb02b562c
<ide><path>src/Illuminate/Http/Resources/Json/JsonResource.php <ide> public function resolve($request = null) <ide> * Transform the resource into an array. <ide> * <ide> * @param \Illuminate\Http\Request $request <del> * @return array <add> * @return array|\Illuminate\Contracts\Support\Arrayabl...
2
Ruby
Ruby
remove all sudo references from ci build script
a4c32897585dde2b939b269f23ea537393e6fc0b
<ide><path>ci/ci_build.rb <ide> def rake(*tasks) <ide> puts "[CruiseControl] Rails build" <ide> build_results = {} <ide> <del># Install rubygems-update, so 'gem update --system' in cruise_config.rb auto-installs it on next build. <del># This is how you can auto-update rubygems without logging in to CI system <del>ruby...
1
Python
Python
authorize last version of tokenizer
21b3922e35529dfbf9213365d7d37756a59f8e0e
<ide><path>scripts/check_tokenizers.py <add>from collections import Counter <add>import datasets <add>import transformers <add>from transformers.convert_slow_tokenizer import SLOW_TO_FAST_CONVERTERS <add> <add>from transformers.utils import logging <add> <add>logging.set_verbosity_info() <add> <add>TOKENIZER_CLASSES = ...
18
Text
Text
provide an example to fs.stat()
c03df4c75d7ca9688865701b553e3843f80fda52
<ide><path>doc/api/fs.md <ide> error raised if the file is not available. <ide> To check if a file exists without manipulating it afterwards, [`fs.access()`] <ide> is recommended. <ide> <add>For example, given the following folder structure: <add> <add>```fundamental <add>- txtDir <add>-- file.txt <add>- app.js <add>`...
1
Text
Text
change tab to spaces
c8915c07160f3286d8d7d9c1258739cee067e054
<ide><path>docs/api-guide/status-codes.md <ide> The 4xx class of status code is intended for cases in which the client seems to <ide> HTTP_428_PRECONDITION_REQUIRED <ide> HTTP_429_TOO_MANY_REQUESTS <ide> HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE <del> HTTP_451_UNAVAILABLE_FOR_LEGAL_REASONS <add> HTTP_451_...
1
PHP
PHP
fix a styling issue
12e82c5155687082dc5c444e0438f59d2fc901b9
<ide><path>tests/Database/DatabaseSchemaBlueprintIntegrationTest.php <ide> public function testChangingColumnWithCollationWorks() <ide> 'DROP TABLE users', <ide> 'CREATE TABLE users (age INTEGER NOT NULL COLLATE RTRIM)', <ide> 'INSERT INTO users (age) SELECT age FROM __temp__users', ...
1
Text
Text
add changelogs for readline
d9c3a27565fd6c2d9e756d61ea0d2df420d2c2ba
<ide><path>doc/api/readline.md <ide> the current position of the cursor down. <ide> ## readline.createInterface(options) <ide> <!-- YAML <ide> added: v0.1.98 <add>changes: <add> - version: v6.3.0 <add> pr-url: https://github.com/nodejs/node/pull/7125 <add> description: The `prompt` option is supported now. <add>...
1
PHP
PHP
apply fixes from styleci
77227bd9f53ac0b6ad07e9007582443e8767f612
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public static function unsetConnectionResolver() <ide> public function getTable() <ide> { <ide> if (! isset($this->table)) { <del> $this->setTable(str_replace( <del> '\\', '', Str::snake(Str::plural(class_basename($this))) <del...
1
Javascript
Javascript
replace common.fixtures with fixtures module
beb5226c296492e214346ada70a736195dcab699
<ide><path>test/parallel/test-https-agent-sockets-leak.js <ide> const common = require('../common'); <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> <del>const fs = require('fs'); <ide> const https = require('https'); <ide> const assert = require('assert'); <add>const fixtures = require('../c...
1
PHP
PHP
fix const docblock indentation
f78a1310d63e17c59a647fd19c6335dacc056441
<ide><path>src/Console/ConsoleIo.php <ide> class ConsoleIo <ide> protected $_in; <ide> <ide> /** <del> * Output constant making verbose shells. <del> * <del> * @var int <del> */ <add> * Output constant making verbose shells. <add> * <add> * @var int <add> */ <ide> const VERBOSE = 2; <ide> ...
20
Javascript
Javascript
update snapshots for improved error format
59c141d8592d55173e453530fe838b88caf8e974
<ide><path>test/Validation.test.js <ide> describe("Validation", () => { <ide> expect(msg).toMatchInlineSnapshot(` <ide> "Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. <ide> - configuration.output.ecmaVersion should be one of these: ...
1
Text
Text
fix quotes and ruby old hashes
1010f9382b81f5f3a02009126271ac0cbde4bc59
<ide><path>guides/source/association_basics.md <ide> If you want to make sure that, upon insertion, all of the records in the <ide> persisted association are distinct (so that you can be sure that when you <ide> inspect the association that you will never find duplicate records), you should <ide> add a unique index on ...
1
Javascript
Javascript
add textual output to benchmark runner
42992032da507f5460b4aeee684316b5a5af45f3
<ide><path>benchmarks/benchmark-runner.js <ide> export default async function (benchmarkPaths) { <ide> datasets: [{label: key, fill: false, data: data.points}] <ide> } <ide> }) <add> <add> const textualOutput = `${key}:\n` + data.points.map((p) => ` (${p.x}, ${p.y})`).join('\n') <a...
1
Text
Text
fix trailing whitespace
a4470c42765004825ed6c09ae434dfd7dd969d1e
<ide><path>docs/api-guide/authentication.md <ide> Note that if deploying to [Apache using mod_wsgi][mod_wsgi_official], the author <ide> <ide> If you are deploying to Apache, and using any non-session based authentication, you will need to explicitly configure mod_wsgi to pass the required headers through to the appli...
1
PHP
PHP
fix typos and grammar
167ae78b87cc6b270be7067d2b7efaca511bf88a
<ide><path>src/Core/Retry/CommandRetry.php <ide> /** <ide> * Allows any action to be retried in case of an exception. <ide> * <del> * This class can be parametrized with an strategy, which will be followed <add> * This class can be parametrized with a strategy, which will be followed <ide> * to determine whether or ...
4
Python
Python
add missing tags to el/es/pt tag maps
46250f60acdcdb847780789ed3a715639c67c9fa
<ide><path>spacy/lang/el/tag_map.py <ide> from __future__ import unicode_literals <ide> <ide> from ...symbols import POS, PUNCT, SYM, ADJ, CCONJ, SCONJ, NUM, DET, ADV, ADP, X, VERB <del>from ...symbols import NOUN, PROPN, PART, INTJ, PRON <add>from ...symbols import NOUN, PROPN, PART, INTJ, PRON, AUX <ide> <ide> <id...
3
Go
Go
use ++ instead of += 1
1ba15b8acaf8625db23ccd7d0ba7d3acf7d2f69e
<ide><path>daemon/attach.go <ide> func (daemon *Daemon) Attach(container *Container, stdin io.ReadCloser, stdinClo <ide> ) <ide> <ide> if stdin != nil && container.Config.OpenStdin { <del> nJobs += 1 <add> nJobs++ <ide> if cStdin, err := container.StdinPipe(); err != nil { <ide> errors <- err <ide> } else {...
2
Text
Text
lowercase the "the" word
3413848b5c8bc4595d42582d8cec56e2f09b3282
<ide><path>guide/english/algorithms/b-trees/index.md <ide> Properties of B-Tree: <ide> 8) Like other balanced Binary Search Trees, time complexity to search, insert and delete is O(Logn). <ide> <ide> Search: <del>Search is similar to search in Binary Search Tree. Let the key to be searched be k. We start from root and...
1
Javascript
Javascript
fix angularjs versions
ef7d18b1c44eda924b336b5ad55c629423cd0a64
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide, $$sanitizeUriProvider) { <ide> * <ide> * If disabled (false), the compiler calls the constructor first before assigning bindings. <ide> * <del> * The default value is true in AngularJS.5.x but will switch to false in AngularJS.6.x. <add> ...
1
Python
Python
add getexception to compat.py3k
ca1241a2ffc57b04563ecae7d709fbf46d94eb6c
<ide><path>numpy/compat/py3k.py <ide> <ide> """ <ide> <del>__all__ = ['bytes', 'asbytes', 'isfileobj'] <add>__all__ = ['bytes', 'asbytes', 'isfileobj', 'getexception'] <ide> <ide> import sys <add> <ide> if sys.version_info[0] >= 3: <ide> import io <ide> bytes = bytes <ide> def isfileobj(f): <ide> asbytes...
1
Ruby
Ruby
make search and create arguments mandatory
86c241ab42744f075484740583580c12e388db8e
<ide><path>Library/Homebrew/help.rb <ide> module Help <ide> # NOTE: Keep lines less than 80 characters! Wrapping is just not cricket. <ide> HOMEBREW_HELP = <<~EOS <ide> Example usage: <del> brew search [TEXT|/REGEX/] <add> brew search TEXT|/REGEX/ <ide> brew info [FORMULA|CASK...] <i...
1
Javascript
Javascript
remove parser static
9878355df7af29a621403f9303691f0f4d547624
<ide><path>src/Parser.js <ide> function Parser(text, parseStrings){ <ide> this.index = 0; <ide> } <ide> <del>Parser.ZERO = function(){ <add>ZERO = function(){ <ide> return 0; <ide> }; <ide> <ide> Parser.prototype = { <ide> if (this.expect('+')) { <ide> return this.primary(); <ide> } else if (token =...
1
Python
Python
add fab pex command
6044d55f0f6228d7a636b4b0256c4a0f4e0e93cf
<ide><path>fabfile.py <ide> def virtualenv(name, create=False, python='/usr/bin/python3.6'): <ide> if env_path.exists(): <ide> shutil.rmtree(str(env_path)) <ide> local('{python} -m venv {env_path}'.format(python=python, env_path=VENV_DIR)) <del> def wrapped_local(cmd, env_vars=[], capture...
1
PHP
PHP
unalign doc block
21c5b0d28e29b00c1b024cbeb9f98157e83e40fa
<ide><path>src/Database/Expression/QueryExpression.php <ide> public function in($field, $values, $type = null) { <ide> /** <ide> * Adds a new case expression to the expression object <ide> * <del> * @param array|ExpressionInterface $conditions The conditions to test. <del> * ...
1
Python
Python
finalize cluster and node api
bd01086ba73cb0d4eb0c8ec0c8024ecb232a687f
<ide><path>celery/apps/multi.py <ide> from kombu.utils.objects import cached_property <ide> <ide> from celery.five import UserList, items <del>from celery.platforms import IS_WINDOWS, Pidfile, signal_name, signals <add>from celery.platforms import IS_WINDOWS, Pidfile, signal_name <ide> from celery.utils.nodenames impo...
5
Ruby
Ruby
check destination before unlinking
17953f2b83ba764c5cd5dc679d98c82fb6cc4b77
<ide><path>Library/Homebrew/cmd/unlink.rb <ide> def unlink <ide> raise KegUnspecifiedError if ARGV.named.empty? <ide> <ide> ARGV.kegs.each do |keg| <del> return if !keg.linked? <ide> print "Unlinking #{keg}... " <ide> puts "#{keg.unlink} links removed" <ide> end <ide><path>Library/Homebrew...
2
Go
Go
add utility to check if snapshotters are enabled
74b84d00b38e81a00d105d4755919c3710afd05d
<ide><path>integration-cli/docker_cli_inspect_test.go <ide> func (s *DockerCLIInspectSuite) TestInspectImage(c *testing.T) { <ide> // fails, fix the difference in the image serialization instead of <ide> // updating this hash. <ide> imageTestID := "sha256:11f64303f0f7ffdc71f001788132bca5346831939a956e3e975c93267d89a...
2
Text
Text
fix tutorial to have exact translation of example
2e3cf459ba225e7a0bd8489bb57bce7b6aea7d53
<ide><path>docs/docs/tutorial.md <ide> The first thing you'll notice is the XML-ish syntax in your JavaScript. We have <ide> <ide> ```javascript <ide> // tutorial1-raw.js <del>var CommentBox = React.createClass({ <add>var CommentBox = React.createClass({displayName: 'CommentBox', <ide> render: function() { <ide> ...
1
Python
Python
fix doc for errordetail
fff3db5517ef80ce0ecb7448feba5aeca46d85d3
<ide><path>rest_framework/exceptions.py <ide> def _get_full_details(detail): <ide> <ide> class ErrorDetail(six.text_type): <ide> """ <del> A string-like object that can additionally <add> A string-like object that can additionally have a code. <ide> """ <ide> code = None <ide>
1
Text
Text
fix a minor typo in swarm tutorial docs
93fa7e75553c3332314b3b988f7082cfde857475
<ide><path>docs/swarm/swarm-tutorial/delete-service.md <ide> removed the service. The CLI returns a message that the service is not found: <ide> <ide> ## What's next? <ide> <del>In the next step of the tutorial, you set up a new service and and apply a <add>In the next step of the tutorial, you set up a new service a...
1
Ruby
Ruby
remove obsoleted argument
8fecd4c198948dc1d86240b1a3ee4648da49ffe0
<ide><path>Library/Homebrew/cmd/help.rb <ide> brew search [foo] <ide> brew list [FORMULA...] <ide> brew update <del> brew upgrade [--all | FORMULA...] <add> brew upgrade [FORMULA...] <ide> brew pin/unpin [FORMULA...] <ide> <ide> Troubleshooting:
1
PHP
PHP
change visibility of mergerules
f7e04670b70300f724ecd70377f16173f0c506f6
<ide><path>src/Illuminate/Validation/Validator.php <ide> public function sometimes($attribute, $rules, $callback) <ide> * @param string|array $rules <ide> * @return void <ide> */ <del> protected function mergeRules($attribute, $rules) <add> public function mergeRules($attribute, $rules) <ide> { <ide> $curren...
1
Python
Python
fix mypy in
06dad4f9d8624d9b9a4be56fef47a657f6ce6b82
<ide><path>blockchain/chinese_remainder_theorem.py <del># Chinese Remainder Theorem: <del># GCD ( Greatest Common Divisor ) or HCF ( Highest Common Factor ) <add>""" <add>Chinese Remainder Theorem: <add>GCD ( Greatest Common Divisor ) or HCF ( Highest Common Factor ) <ide> <del># If GCD(a,b) = 1, then for any remainde...
3
Ruby
Ruby
pass explicit sort to handle apfs
f1b183b287f7b3d94d5cc5093581fe8c1de8be9d
<ide><path>Library/Homebrew/cmd/list.rb <ide> def list_unbrewed <ide> dirs.delete "etc" <ide> dirs.delete "var" <ide> <del> args = dirs + %w[-type f (] <add> args = dirs.sort + %w[-type f (] <ide> args.concat UNBREWED_EXCLUDE_FILES.flat_map { |f| %W[! -name #{f}] } <ide> args.concat UNBREWED_EXCL...
1
Python
Python
fix wrong reference in ptb_word_lm.py
99566f8149b03af593935fd0708010ab805421fc
<ide><path>tutorials/rnn/ptb/ptb_word_lm.py <ide> def make_cell(): <ide> <ide> self._initial_state = cell.zero_state(config.batch_size, data_type()) <ide> state = self._initial_state <del> # Simplified version of tensorflow_models/tutorials/rnn/rnn.py's rnn(). <add> # Simplified version of tf.nn.static_r...
1
Javascript
Javascript
name anonymous functions in core.js
ce3f9ae3e8134f33917740e38ad1a0fcc0641a20
<ide><path>src/core.js <ide> var Page = (function pagePage() { <ide> return shadow(this, 'rotate', rotate); <ide> }, <ide> <del> startRenderingFromIRQueue: function startRenderingFromIRQueue( <add> startRenderingFromIRQueue: function pageStartRenderingFromIRQueue( <ide> ...
1
Javascript
Javascript
add prototype support for boxed primitives
55147d7d9939cce1bbc2c8a70ac7ebe03e91e5cf
<ide><path>lib/internal/util/inspect.js <ide> function getPrefix(constructor, tag, fallback) { <ide> return `${constructor} `; <ide> } <ide> <del>const getBoxedValue = formatPrimitive.bind(null, stylizeNoColor); <del> <ide> // Look up the keys of the object. <ide> function getKeys(value, showHidden) { <ide> let ke...
2
Text
Text
add solution to handle click event - english
67e0f33a891d48dea4d824f1e64a2efb12a0b119
<ide><path>curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/handle-click-events-with-javascript-using-the-onclick-property.english.md <ide> tests: <ide> <section id='solution'> <ide> <ide> ```js <del>// solution required <add><script> <add> document.addEventListener('DOMContentLoaded',function()...
1
Ruby
Ruby
update flash[] docs a bit
1a858f87425cb3ae5815d0356605ef74a4ae174b
<ide><path>actionpack/lib/action_controller/flash.rb <ide> module ActionController #:nodoc: <ide> # action that sets <tt>flash[:notice] = "Successfully created"</tt> before redirecting to a display action that can <ide> # then expose the flash to its template. Actually, that exposure is automatically done. Example:...
1
Javascript
Javascript
exclude debug only tests in production builds
1b02939a7a095c883de55be9f4f09419b50c4a69
<ide><path>packages/ember-views/tests/views/view/element_test.js <add>/*globals EmberDev */ <add> <ide> import { get } from "ember-metal/property_get"; <ide> import { set } from "ember-metal/property_set"; <ide> import run from "ember-metal/run_loop"; <ide> QUnit.test("returns element if you set the value", function() ...
1
PHP
PHP
implement call named scope
386e7d7ada0985dfb5408d2f4d5cdbf30846f9af
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function scopes($scopes) <ide> // Next we'll pass the scope callback to the callScope method which will take <ide> // care of grouping the "wheres" properly so the logical order doesn't get <ide> // messed up when a...
2
Python
Python
standardize numpy import as "import numpy as np"
681aa536342db1332a5af9b632495ddc883ecba9
<ide><path>numpy/ma/tests/test_subclassing.py <ide> __revision__ = "$Revision: 3473 $" <ide> __date__ = '$Date: 2007-10-29 17:18:13 +0200 (Mon, 29 Oct 2007) $' <ide> <del>import numpy as N <add>import numpy as np <ide> import numpy.core.numeric as numeric <ide> <ide> from numpy.testing import * <ide> from numpy.m...
2
Text
Text
fix active record changelog [ci skip]
2d7ff70b3f0ae7e25f766c7701eaebdaa3f2766a
<ide><path>activerecord/CHANGELOG.md <ide> <ide> Previously advisory locks were taken out against a connection when a migration started. This works fine in single database applications but doesn't work well when migrations need to open new connections which results in the lock getting dropped. <ide> <del> In o...
1
PHP
PHP
fix a bug with string via in queued notifications
84b438c432531dc41d4d71f18d396636addebedb
<ide><path>src/Illuminate/Notifications/NotificationSender.php <ide> protected function queueNotification($notifiables, $notification) <ide> foreach ($notifiables as $notifiable) { <ide> $notificationId = Str::uuid()->toString(); <ide> <del> foreach ($original->via($notifiable) as $chann...
2
Java
Java
check original beanclass in #isfactorybean calls
f3f73f0e32dc54c463831668d4700f022bc8461f
<ide><path>org.springframework.beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java <ide> /* <del> * Copyright 2002-2011 the original author or authors. <add> * Copyright 2002-2012 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "Li...
2
PHP
PHP
keys method
1e2dbe02b40aaf94c2dd776f2530213ab2084ccc
<ide><path>src/Illuminate/Http/Concerns/InteractsWithInput.php <ide> public function all($keys = null) <ide> return $results; <ide> } <ide> <add> /** <add> * Get the keys for all input and files for the request. <add> * <add> * @return array <add> */ <add> public function keys() <add>...
2
Python
Python
fix various typos in error messages
94373fefce87226db29f8270eca75408aa085996
<ide><path>keras/engine/input_layer.py <ide> def __init__(self, <ide> batch_size = batch_input_shape[0] <ide> input_shape = batch_input_shape[1:] <ide> if kwargs: <del> raise ValueError('Unrecognized keyword arguments:', kwargs.keys()) <add> raise ValueError(f'Unrecognized keyword argument...
5
Java
Java
initialize js executor and context at loadapp time
530ee3eeac40d43c6517cc47dfa8745222cf5956
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java <ide> public class ReactInstanceManager { <ide> private @Nullable DefaultHardwareBackBtnHandler mDefaultBackButtonImpl; <ide> private String mSourceUrl; <ide> private @Nullable Activity mCurrentActivity; <add> private volatile boo...
2
PHP
PHP
add wherenotnull to joinclause
2719387da1caec95d9d537cbcfd9278597df25a0
<ide><path>src/Illuminate/Database/Query/JoinClause.php <ide> public function whereNull($column, $boolean = 'and') <ide> return $this->on($column, 'is', new Expression('null'), $boolean, false); <ide> } <ide> <add> /** <add> * Add an "on where is not null" clause to the join <add> * <add> * @param string $colu...
2
Python
Python
add comment clarifying spatial squeeze.
9c17823e147ff2893427b47cb57d171da9350d20
<ide><path>slim/nets/resnet_v1.py <ide> def resnet_v1(inputs, <ide> max-pooling, if False excludes it. <ide> spatial_squeeze: if True, logits is of shape [B, C], if false logits is <ide> of shape [B, 1, 1, C], where B is batch_size and C is number of classes. <add> To use this parameter, the in...
2
Ruby
Ruby
use argumenterror exception
c34ed98eaf64f0dafcbbba2980de09e1eaa97029
<ide><path>Library/Homebrew/dependency_collector.rb <ide> def parse_symbol_spec(spec, tags) <ide> when :ld64 then LD64Dependency.new if MacOS.version < :leopard <ide> when :ant then ant_dep(spec, tags) <ide> else <del> raise "Unsupported special dependency #{spec.inspect}" <add> raise...
1
Text
Text
add more details to tests
7a8a3a30d7e42984b0c8eb2667d993496b8ec980
<ide><path>docs/Formula-Cookbook.md <ide> function. The environment variable `HOME` is set to [`testpath`](https://rubydoc <ide> <ide> We want tests that don't require any user input and test the basic functionality of the application. For example `foo build-foo input.foo` is a good test and (despite their widespread ...
1
Ruby
Ruby
use curl options where appropriate
f88966a8a53198106f01475b7c09ef08ef00e0e9
<ide><path>Library/Homebrew/api.rb <ide> def fetch(endpoint, json: true) <ide> return cache[endpoint] if cache.present? && cache.key?(endpoint) <ide> <ide> api_url = "#{API_DOMAIN}/#{endpoint}" <del> output = Utils::Curl.curl_output("--fail", "--max-time", "5", api_url) <add> output = Utils::Curl...
4
PHP
PHP
add handle method from lumen into crawler trait
ed4ccf6b3932d3a0cadce79379d71104bc4c4c2b
<ide><path>src/Illuminate/Foundation/Testing/CrawlerTrait.php <ide> public function delete($uri, array $data = [], array $headers = []) <ide> return $this; <ide> } <ide> <add> /** <add> * Send the given request through the application. <add> * <add> * @param \Illuminate\Http\Request $reque...
1
Python
Python
fix circular import in transformers.pipelines
d0c9fe277a012d4ba8b3133ae1b39ff92c9a6dc7
<ide><path>transformers/pipelines.py <ide> import numpy as np <ide> import six <ide> <del>from transformers import ( <del> ALL_PRETRAINED_CONFIG_ARCHIVE_MAP, <del> AutoConfig, <del> AutoTokenizer, <del> BasicTokenizer, <del> ModelCard, <del> PretrainedConfig, <del> PreTrainedTokenizer, <del> Sq...
1
Ruby
Ruby
create fewer relation objects
d5a8bdb2e21bc9b22241b9e2b604e88b76398339
<ide><path>activerecord/lib/active_record/relation/calculations.rb <ide> def execute_grouped_calculation(operation, column_name, distinct) #:nodoc: <ide> group_fields = group_attrs <ide> end <ide> <del> group_aliases = group_fields.map { |field| column_alias_for(field) } <add> group_aliases = g...
1
Mixed
Ruby
define `reading_request?` in resolver
439119c8c504a7643a7e8e1f116e9100553109c7
<ide><path>activerecord/CHANGELOG.md <add>* Allow overriding `reading_request?` in `DatabaseSelector::Resolver` <add> <add> The default implementation checks if a request is a `get?` or `head?`, <add> but you can now change it to anything you like. If the method returns true, <add> `Resolver#read` gets calle...
4
Text
Text
fix a word to an actually used one
2bbcf1b03be25eff2d37d656e44157620e01ff52
<ide><path>docs/tutorials/essentials/part-5-async-logic.md <ide> Uncommenting that line will force the fake API to wait 2 seconds before respondi <ide> <ide> ## Loading Users <ide> <del>We're now fetching and displaying our list of posts. But, if we look at the posts, there's a problem: they all now say "Unknown User...
1
PHP
PHP
return timestamps as strings
ca2f2286d31f26fbb5b23fcdd49c4e40df615b10
<ide><path>src/Http/Cookie/Cookie.php <ide> protected function getFormattedExpires() <ide> /** <ide> * Get the timestamp from the expiration time <ide> * <del> * @return int <add> * Timestamps are strings as large timestamps can overflow MAX_INT <add> * in 32bit systems. <add> * <add> ...
2
Ruby
Ruby
remove unused av fixtures from ap tests
7d493a6020fd6302bbaa8b6658d7254125ab3f0e
<ide><path>actionpack/test/controller/render_test.rb <ide> def conditional_hello_with_record <ide> end <ide> end <ide> <del> def conditional_hello_with_public_header <del> if stale?(:last_modified => Time.now.utc.beginning_of_day, :etag => [:foo, 123], :public => true) <del> render :action => 'hello_wor...
1
Javascript
Javascript
avoid extra boolean conversion
bc550ed597a70e6c1f15f22b3a9d6f574cbcf547
<ide><path>packages/ember-routing/lib/system/router.js <ide> const EmberRouter = EmberObject.extend(Evented, { <ide> }, <ide> <ide> _buildDSL() { <del> let moduleBasedResolver = this._hasModuleBasedResolver(); <del> let options = { <del> enableLoadingSubstates: !!moduleBasedResolver <del> }; <add> ...
1
Javascript
Javascript
replace fixturesdir with common.fixtures
d2c0978831a863c854177c80a53e1039d04aa787
<ide><path>test/parallel/test-https-client-reject.js <ide> const common = require('../common'); <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> <add>const fixtures = require('../common/fixtures'); <add> <ide> const assert = require('assert'); <ide> const https = require('https'); <del>const f...
1
Javascript
Javascript
prevent null access (#523)
ad0f0a4d79e313fcadecccff021cb6c3b38b0d2f
<ide><path>server/build/plugins/watch-pages-plugin.js <ide> import { resolve, relative, join, extname } from 'path' <ide> export default class WatchPagesPlugin { <ide> constructor (dir) { <ide> this.dir = resolve(dir, 'pages') <del> this.prevFileDependencies = null <add> this.prevFileDependencies = [] <ide>...
1
Javascript
Javascript
provide jquery for now
bf3487086648b7d811806cfbd01c6b2836901251
<ide><path>index.js <ide> function add(paths, name, path) { <ide> add(paths, 'prod', 'vendor/ember/ember.prod.js'); <ide> add(paths, 'debug', 'vendor/ember/ember.debug.js'); <ide> add(paths, 'shims', 'vendor/ember/shims.js'); <add>add(paths, 'jquery', 'vendor/ember/jquery/jquery.js'); <ide> <ide> add(absolutePaths, '...
1
Javascript
Javascript
use es6 map in reactcomponenttreehook if available
db452bd20bb2f4f7f0a5621c07c6eec6dc618179
<ide><path>src/isomorphic/hooks/ReactComponentTreeHook.js <ide> var ReactCurrentOwner = require('ReactCurrentOwner'); <ide> var invariant = require('invariant'); <ide> var warning = require('warning'); <ide> <del>var itemByKey = {}; <del>var unmountedIDs = {}; <del>var rootIDs = {}; <add>function isNative(fn) { <add> ...
3
Javascript
Javascript
fix regression from a5dba82
39aafcf801de9c683fb0049b4c0186345ffed55e
<ide><path>src/node.js <ide> startup.processKillAndExit = function() { <ide> process.exitCode = 0; <ide> process.exit = function(code) { <del> if (NativeModule.require('util').isNumber(code)) <add> if (code || code === 0) <ide> process.exitCode = code; <ide> <ide> if (!process._exitin...
2
Javascript
Javascript
fix referenceerror in resolve() error path
009ba02e18a9ac8539c357be902573b1a014a13a
<ide><path>lib/dns.js <ide> exports.resolve = function(domain, type_, callback_) { <ide> if (typeof resolver === 'function') { <ide> return resolver(domain, callback); <ide> } else { <del> throw new Error('Unknown type "' + type + '"'); <add> throw new Error('Unknown type "' + type_ + '"'); <ide> } <ide...
2
Text
Text
fix bugs in _construct() example
f441c8bb1780b7659f06c477d000c04e3acfb599
<ide><path>doc/api/stream.md <ide> class WriteStream extends Writable { <ide> constructor(filename) { <ide> super(); <ide> this.filename = filename; <del> this.fd = fd; <ide> } <ide> _construct(callback) { <del> fs.open(this.filename, (fd, err) => { <add> fs.open(this.filename, (err, fd) => { <id...
1
Go
Go
add wait time into xtables lock warning
3df00a6c647117b894961f63cd61c52b2c55f4e0
<ide><path>libnetwork/iptables/iptables.go <ide> const opWarnTime = 2 * time.Second <ide> <ide> func filterOutput(start time.Time, output []byte, args ...string) []byte { <ide> // Flag operations that have taken a long time to complete <del> if time.Since(start) > opWarnTime { <del> logrus.Warnf("xtables contention ...
1
Ruby
Ruby
check types in formula#==
50c7c6bbd6eac0dfb1d3c48e7d0ee49e667b315c
<ide><path>Library/Homebrew/formula.rb <ide> def unpin <ide> @pin.unpin <ide> end <ide> <del> def == b <del> name == b.name <del> end <del> def eql? b <del> self == b and self.class.equal? b.class <add> def == other <add> instance_of?(other.class) && name == other.name <ide> end <add> alias_metho...
2
Javascript
Javascript
fix lint errors in examples/async/
e9e4c568077016e0884c9656baf16432fd25d90c
<ide><path>examples/async/actions/index.js <del>import fetch from 'isomorphic-fetch'; <add>import fetch from 'isomorphic-fetch' <ide> <del>export const REQUEST_POSTS = 'REQUEST_POSTS'; <del>export const RECEIVE_POSTS = 'RECEIVE_POSTS'; <del>export const SELECT_REDDIT = 'SELECT_REDDIT'; <del>export const INVALIDATE_RED...
9
Java
Java
refine multipart parsing limits
00ead7a756a993e824f50d696d17509280eaaf97
<ide><path>spring-web/src/main/java/org/springframework/http/codec/multipart/MultipartException.java <del>/* <del> * Copyright 2002-2019 the original author or authors. <del> * <del> * Licensed under the Apache License, Version 2.0 (the "License"); <del> * you may not use this file except in compliance with the License...
3
Mixed
Javascript
expose urltohttpoptions utility
7efada695f9cb7515a78565213f25d8077c206ff
<ide><path>doc/api/url.md <ide> new URL('/some/path%.c', 'file:'); // Incorrect: file:///some/path%.c <ide> pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX) <ide> ``` <ide> <add>### `url.urlToHttpOptions(url)` <add><!-- YAML <add>added: REPLACEME <add>--> <add> <add>* `url` {URL} The [WH...
7
Python
Python
fix small typos in docs + constructor
fa338ebe86f9c8a8fb50b9741f9a90fcf1dfe782
<ide><path>airflow/operators/mysql_to_hive.py <ide> class MySqlToHiveTransfer(BaseOperator): <ide> a ``CREATE TABLE`` and ``DROP TABLE`` statements are generated. <ide> Hive data types are inferred from the cursors's metadata. <ide> <del> Note that the table genearted in Hive uses ``STORED AS textfile`` <ad...
1
PHP
PHP
change emailregex to emailpattern
f6a011215c2d6f51da1b75d886001ffccbbdff33
<ide><path>lib/Cake/Network/Email/CakeEmail.php <ide> class CakeEmail { <ide> * <ide> * @var string <ide> */ <del> protected $_emailRegex = null; <add> protected $_emailPattern = null; <ide> <ide> /** <ide> * Constructor <ide> public function headerCharset($charset = null) { <ide> } <ide> <ide> /** <del> * Email...
2
PHP
PHP
fix bugs and formatting
12e47bb3dad10294268fa3167112b198fd0a2036
<ide><path>src/Illuminate/Queue/SqsQueue.php <ide> public function getQueue($queue) <ide> } <ide> <ide> /** <del> * Suffixes a queue <add> * Add the given suffix to the given queue name. <ide> * <del> * @param string $queue <del> * @param string $suffix <add> * @param string $queue <...
1
Javascript
Javascript
handle writestream errors in sys.pump
f08985c193a7b55e4c82a1681290fb10a9e8471e
<ide><path>lib/sys.js <ide> exports.exec = function () { <ide> <ide> <ide> exports.pump = function (readStream, writeStream, callback) { <add> var callbackCalled = false; <add> <add> function call (a, b, c) { <add> if (callback && !callbackCalled) { <add> callback(a, b, c); <add> callbackCalled = true;...
1
Javascript
Javascript
replace global.alert use to fix eslint warnings
55994f5900d1ddb92bc9c37d085d6ac15b1692f8
<ide><path>RNTester/js/AccessibilityIOSExample.js <ide> <ide> const React = require('react'); <ide> const ReactNative = require('react-native'); <del>const {AccessibilityInfo, Text, View, TouchableOpacity} = ReactNative; <add>const {AccessibilityInfo, Text, View, TouchableOpacity, Alert} = ReactNative; <ide> <ide> cl...
6
Java
Java
add additional test for spr-16210
3f3141cddaf878d635318750b49f54147012a137
<ide><path>spring-core/src/test/java/org/springframework/core/ResolvableTypeTests.java <ide> * <ide> * @author Phillip Webb <ide> * @author Juergen Hoeller <add> * @author Sebastien Deleuze <ide> */ <ide> @SuppressWarnings("rawtypes") <ide> @RunWith(MockitoJUnitRunner.class) <ide> public void forMethodParameterMust...
1
Ruby
Ruby
fix nested attribute for memory record
cfb5f1b6083d4b0dabaaab70c383d223193811fd
<ide><path>activerecord/lib/active_record/associations/collection_association.rb <ide> def merge_target_lists(persisted, memory) <ide> return memory if persisted.empty? <ide> <ide> persisted.map! do |record| <del> mem_record = memory.delete(record) <add> mem_record_index = ...
1
Javascript
Javascript
remove obsolete todo comments
b180995ebecaf75375838e8982bc86d773cf6360
<ide><path>src/geo/path.js <ide> import "projection"; <ide> import "resample"; <ide> import "stream"; <ide> <del>// TODO better encapsulation for d3_geo_pathArea; move to area.js <del>// TODO better encapsulation for d3_geo_pathCentroid; move to centroid.js <del> <ide> d3.geo.path = function() { <ide> var pointRadiu...
1
Ruby
Ruby
add support for with and union
d532b7ee430c5d0c412ab9f1a5e0dd3ebc47f86b
<ide><path>lib/arel/nodes.rb <ide> # unary <ide> require 'arel/nodes/unary' <ide> require 'arel/nodes/unqualified_column' <add>require 'arel/nodes/with' <ide> <ide> # binary <ide> require 'arel/nodes/binary' <ide><path>lib/arel/nodes/binary.rb <ide> def initialize_copy other <ide> NotEqual <ide> NotIn <ide...
8
Text
Text
add change to actionview notable changes [ci skip]
657cbd64f1d1e9f07f30ea32e15dd8635b1c7b5d
<ide><path>guides/source/4_2_release_notes.md <ide> Please refer to the [Changelog][action-view] for detailed changes. <ide> the hidden fields. <ide> ([Pull Request](https://github.com/rails/rails/pull/14738)) <ide> <add>* Placeholder I18n follows the same convention as `label` I18n. <add> ([Pull Request]...
1
Go
Go
fix issue with plugin scanner going to deep
b27f70d45a0fbb744c17dda02f597ffa6a47d4d9
<ide><path>pkg/plugins/discovery.go <ide> package plugins <ide> <ide> import ( <ide> "encoding/json" <del> "errors" <ide> "fmt" <ide> "io/ioutil" <ide> "net/url" <ide> "os" <ide> "path/filepath" <ide> "strings" <ide> "sync" <add> <add> "github.com/pkg/errors" <ide> ) <ide> <ide> var ( <ide> func newLocalRegis...
3
Text
Text
add a note to the changelog
244446fcc52127274d5ad38986bf585c89ba82a5
<ide><path>activerecord/CHANGELOG.md <add>* `has_and_belongs_to_many` is now transparently implemented in terms of <add> `has_many :through`. Behavior should remain the same, if not, it is a bug. <add> <ide> * `create_savepoint`, `rollback_to_savepoint` and `release_savepoint` accept <ide> a savepoint name....
1
Javascript
Javascript
remove duplicate test
481d940e79f9d01e49218bf76575849158214e28
<ide><path>test/unit/ajax.js <ide> test("serialize()", function() { <ide> }); <ide> <ide> test("jQuery.param()", function() { <del> expect(25); <add> expect(24); <ide> <ide> equals( !jQuery.ajaxSettings.traditional, true, "traditional flag, falsy by default" ); <ide> <ide> test("jQuery.param()", function() { <ide> ...
1
Text
Text
remove babelrc from preact example doc
9393440402f089d8371e6a8d7c66b9a42167a3cf
<ide><path>examples/using-preact/README.md <ide> This example uses [Preact](https://github.com/developit/preact) instead of React <ide> <ide> Here's how we did it: <ide> <del>* Create `.babelrc` file with es2015 and react presets. This allow us to get rid of the hard coded React dependency for core Next.js modules. <...
1
Python
Python
remove unused variable `_range`
f8aebff8b068fd383ce5c54311f049a06ccad563
<ide><path>celery/platforms.py <ide> import signal as _signal <ide> import sys <ide> import warnings <del>from collections import namedtuple <ide> from contextlib import contextmanager <ide> <ide> from billiard.compat import close_open_fds, get_fdmax <ide> PIDLOCKED = """ERROR: Pidfile ({0}) already exists. <ide> Seem...
1
Go
Go
fix config cleanup on canceling restartmanager
7bf07737b90f087271b5a9a3a1c8d262c154554f
<ide><path>libcontainerd/container_linux.go <ide> type container struct { <ide> } <ide> <ide> func (ctr *container) clean() error { <add> if os.Getenv("LIBCONTAINERD_NOCLEAN") == "1" { <add> return nil <add> } <ide> if _, err := os.Lstat(ctr.dir); err != nil { <ide> if os.IsNotExist(err) { <ide> return nil <ide...
1
PHP
PHP
check iv length
886d261df0854426b4662b7ed5db6a1c575a4279
<ide><path>src/Illuminate/Encryption/Encrypter.php <ide> protected function getJsonPayload($payload) <ide> */ <ide> protected function validPayload($payload) <ide> { <del> return is_array($payload) && isset( <del> $payload['iv'], $payload['value'], $payload['mac'] <del> ); <add> ...
2