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
PHP
PHP
allow a when callback to dictate retries
85c08016c424f6c8e45f08282523f8785eda9673
<ide><path>src/Illuminate/Support/helpers.php <ide> function preg_replace_array($pattern, array $replacements, $subject) <ide> * @param int $times <ide> * @param callable $callback <ide> * @param int $sleep <add> * @param callable $when <ide> * @return mixed <ide> * <ide> * @th...
2
Java
Java
add space between words
978fa488ec2b3560d92b78b532909d74f88957da
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerImpl.java <ide> public void createReactContextInBackground() { <ide> Assertions.assertCondition( <ide> !mHasStartedCreatingInitialContext, <ide> "createReactContextInBackground should only be called when creating the react ...
1
Javascript
Javascript
make fsop timeout injectable
8edb9524035b0c034135a81551ba955ee514dbd4
<ide><path>packager/react-packager/src/AssetServer/index.js <ide> function timeoutableDenodeify(fsFunc, timeout) { <ide> }; <ide> } <ide> <del>const stat = timeoutableDenodeify(fs.stat, 15000); <del>const readDir = timeoutableDenodeify(fs.readdir, 15000); <del>const readFile = timeoutableDenodeify(fs.readFile, 15000...
1
Text
Text
enhance user stories for header parser project
313136031884c16d5667b33ab5a2d38a1af63552
<ide><path>curriculum/challenges/english/05-apis-and-microservices/apis-and-microservices-projects/request-header-parser-microservice.md <ide> forumTopicId: 301507 <ide> <ide> ## Description <ide> <section id='description'> <del>Build a full stack JavaScript app that is functionally similar to this: <a href='https://r...
1
Ruby
Ruby
add additional php header ignore patterns
85da3762331dda87bd6acaae2977cc470c9d2658
<ide><path>Library/Homebrew/extend/os/mac/formula_cellar_checks.rb <ide> def check_shadowed_headers <ide> formula.name.start_with?(formula_name) <ide> end <ide> <del> return if formula.name =~ /^php\d+$/ <add> return if formula.name =~ /^php(@?\d+\.?\d*?)?$/ <ide> <ide> return if MacOS.version < :...
1
PHP
PHP
use stricter assertions.
cfef0246e490b86289893833f0e15cb6f2ec240a
<ide><path>tests/Bus/BusBatchTest.php <ide> public function test_failed_jobs_can_be_recorded_while_not_allowing_failures() <ide> $this->assertTrue($batch->cancelled()); <ide> $this->assertEquals(1, $_SERVER['__finally.count']); <ide> $this->assertEquals(1, $_SERVER['__catch.count']); <del> ...
17
Java
Java
change the exception message of time drift
ac18025d7c03424b4ec38bf38d79026c2d937154
<ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/core/Timing.java <ide> public void createTimer( <ide> long driftTime = Math.abs(remoteTime - deviceTime); <ide> if (driftTime > 60000) { <ide> throw new RuntimeException( <del> "Debugger and device times have drifted by " + dr...
1
Text
Text
add categories for tools
a3ea4f31ffab43a1d9ee5d6e8fcf8d7a1769a115
<ide><path>client/src/pages/guide/english/designer-tools/index.md <ide> title: Designer Tools <ide> <ide> In this section, we'll have guides to a wide variety of tools used by designers. <ide> <del>These are some of them: <add>### UI <add>Great for static content. <ide> <ide> [Sketch](https://www.sketchapp.com) - [...
1
PHP
PHP
use braces around one-liner
4a0b0569c860fd364e860471d730c1021fe4b517
<ide><path>src/Illuminate/Events/Annotations/Scanner.php <ide> public function __construct($scan, $rootNamespace) <ide> $this->rootNamespace = rtrim($rootNamespace, '\\').'\\'; <ide> <ide> foreach (Finder::create()->files()->in(__DIR__.'/Annotations') as $file) <add> { <ide> AnnotationRegistry::registerFile($f...
1
Text
Text
update deprecation notes about v1 registry
c8f826f4077b15af30d8810f62abd517908bb712
<ide><path>docs/deprecated.md <ide> of the `--changes` flag that allows to pass `Dockerfile` commands. <ide> <ide> ### Interacting with V1 registries <ide> <del>Version 1.9 adds a flag (`--disable-legacy-registry=false`) which prevents the docker daemon from `pull`, `push`, and `login` operations against v1 registrie...
1
Javascript
Javascript
add tests for iso bubbling
b728ddbad6653e4e48ae8c92a887ea673b1b167e
<ide><path>src/test/moment/duration.js <ide> test('serialization to ISO 8601 duration strings', function (assert) { <ide> assert.equal(moment.duration({s: -0.5}).toISOString(), '-PT0.5S', 'one half second ago'); <ide> assert.equal(moment.duration({y: -0.5, M: 1}).toISOString(), '-P5M', 'a month after half a yea...
1
Ruby
Ruby
reuse options from last time
cae03e33630ccae6d3b11e63f5fe6a61d8b989ea
<ide><path>Library/Homebrew/cmd/reinstall.rb <ide> <ide> module Homebrew extend self <ide> def reinstall <del> self.uninstall <del> self.install <add> # At first save the named formulae and remove them from ARGV <add> named = ARGV.named <add> ARGV.delete_if { |arg| named.include? arg } <add> clean_...
1
Go
Go
fix apparmor load profile
2ab8f2e389b4ae90d0cec6555ea5708ceca1cc3c
<ide><path>pkg/aaparser/aaparser.go <ide> package aaparser <ide> import ( <ide> "fmt" <ide> "os/exec" <del> "path/filepath" <ide> "strconv" <ide> "strings" <ide> ) <ide> func GetVersion() (int, error) { <ide> // LoadProfile runs `apparmor_parser -r` on a specified apparmor profile to <ide> // replace the profile. <...
2
PHP
PHP
change all the strings to use the constant values
6ff34340127d785767be7a4993a6877c165c0f50
<ide><path>src/Database/Statement/BufferedStatement.php <ide> public function fetch($type = parent::FETCH_TYPE_NUM) <ide> { <ide> if ($this->_allFetched) { <ide> $row = ($this->_counter < $this->_count) ? $this->_records[$this->_counter++] : false; <del> $row = ($row && $type === 'num...
4
Javascript
Javascript
add test cases to test-readline-keys.js
2db3b941a9384a0336acc7c67d5c8e32a37aacb3
<ide><path>test/parallel/test-readline-keys.js <ide> const fo = new FakeInput(); <ide> new Interface({ input: fi, output: fo, terminal: true }); <ide> <ide> let keys = []; <del>fi.on('keypress', function(s, k) { <add>fi.on('keypress', (s, k) => { <ide> keys.push(k); <ide> }); <ide> <ide> function addTest(sequences,...
1
Mixed
Javascript
add maxheadersize property
9ac108d834539122625c85bb0a88f51a62b22d36
<ide><path>doc/api/http.md <ide> added: v0.5.9 <ide> Global instance of `Agent` which is used as the default for all HTTP client <ide> requests. <ide> <add>## http.maxHeaderSize <add><!-- YAML <add>added: REPLACEME <add>--> <add> <add>* {number} <add> <add>Read-only property specifying the maximum allowed size of HTTP...
3
PHP
PHP
use pure class name (stdclass)
1e4486ad7e95929c7c4adda0c85273dc5cc4e150
<ide><path>tests/Auth/AuthAccessGateTest.php <ide> public function test_before_can_allow_guests() <ide> $gate = new Gate(new Container, function () { <ide> }); <ide> <del> $gate->before(function (?StdClass $user) { <add> $gate->before(function (?stdClass $user) { <ide> return ...
1
Go
Go
fix error message and typos in swarm cluster
39bc10c36d40677c11a800b4346c5cddec2b997d
<ide><path>api/server/router/swarm/cluster_routes.go <ide> func (sr *swarmRouter) createService(ctx context.Context, w http.ResponseWriter, <ide> <ide> id, err := sr.backend.CreateService(service) <ide> if err != nil { <del> logrus.Errorf("Error reating service %s: %v", id, err) <add> logrus.Errorf("Error creating...
2
Ruby
Ruby
use block variable instead of global
c70aee8eea066d911410f40974a3ee9d387cd834
<ide><path>activerecord/lib/active_record/sanitization.rb <ide> def replace_bind_variable(value, c = connection) #:nodoc: <ide> end <ide> <ide> def replace_named_bind_variables(statement, bind_vars) #:nodoc: <del> statement.gsub(/(:?):([a-zA-Z]\w*)/) do <add> statement.gsub(/(:?):([a-zA-Z]\w*...
2
Go
Go
move git functions to pkg/gitutils
135cca6f52c7862f13f50c30ccf5925038ba40a9
<ide><path>api/client/build.go <ide> import ( <ide> "github.com/docker/docker/opts" <ide> "github.com/docker/docker/pkg/archive" <ide> "github.com/docker/docker/pkg/fileutils" <add> "github.com/docker/docker/pkg/gitutils" <ide> "github.com/docker/docker/pkg/httputils" <ide> "github.com/docker/docker/pkg/jsonmessag...
4
Python
Python
fix typo in example
f4745c8ce1955c28676b5afe129a88a61aa743b9
<ide><path>airflow/providers/google/cloud/example_dags/example_bigquery_queries.py <ide> configuration={ <ide> "query": { <ide> "query": INSERT_ROWS_QUERY, <del> "useLegacySql": "False", <add> "useLegacySql": False, <ide> ...
1
Javascript
Javascript
fix common.cancreatesymlink() on non-windows
6ec43fc28b66587eb176019f488d682d256bd189
<ide><path>test/common/index.js <ide> exports.canCreateSymLink = function() { <ide> return false; <ide> } <ide> } <add> // On non-Windows platforms, this always returns `true` <add> return true; <ide> }; <ide> <ide> exports.getCallSite = function getCallSite(top) {
1
Python
Python
fix vsphere driver
040d2955a264472e2fec968e5c7d8418a2176c78
<ide><path>libcloud/compute/drivers/vsphere.py <ide> <ide> class VSphereConnection(ConnectionUserAndKey): <ide> def __init__(self, user_id, key, secure=True, <del> host=None, port=None, url=None, timeout=None): <add> host=None, port=None, url=None, timeout=None, **kwargs): <ide> ...
1
Javascript
Javascript
update examples to use modules
c0360890c58858e2d3a7ee25e0eeae3c5d32e96c
<ide><path>src/ngCookies/cookies.js <ide> angular.module('ngCookies', ['ng']). <ide> * @example <ide> * <ide> * ```js <del> * function ExampleController($cookies) { <del> * // Retrieving a cookie <del> * var favoriteCookie = $cookies.myFavorite; <del> * // Setting a cookie <del> * $cookies.my...
1
Go
Go
pass pipes into exec function
c8fd81c27821576f339ccf4fd85c47375ba34042
<ide><path>pkg/libcontainer/nsinit/exec.go <ide> import ( <ide> <ide> // Exec performes setup outside of a namespace so that a container can be <ide> // executed. Exec is a high level function for working with container namespaces. <del>func Exec(container *libcontainer.Container, logFile string, args []string) (int,...
2
Mixed
Ruby
fix documents for create_join_table
56ddb8917d62681c7e056f5386305d32c2484ba5
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb <ide> def create_table(table_name, options = {}) <ide> # its block form to do so yourself: <ide> # <ide> # create_join_table :products, :categories do |t| <del> # t.index :products <del> # t...
2
Python
Python
fix unicode error in new test
9e413449f6f85e0cf9465762e31e8f251e14c23e
<ide><path>spacy/tests/regression/test_issue1537.py <ide> '''Test Span.as_doc() doesn't segfault''' <add>from __future__ import unicode_literals <ide> from ...tokens import Doc <ide> from ...vocab import Vocab <ide> from ... import load as load_spacy
1
Javascript
Javascript
fix component name for react.lazy
973496b40ce6fcb84f3df20aa1c73af5bc4db0d4
<ide><path>packages/react-reconciler/src/__tests__/ReactSuspense-test.internal.js <ide> describe('ReactSuspense', () => { <ide> span('C'), <ide> ]); <ide> }); <add> <add> it('includes lazy-loaded component in warning stack', async () => { <add> const LazyFoo = lazy(() => { <add> ReactNo...
2
Ruby
Ruby
fix the user show page in the verify task
ea83132e0eeb6988f9211d5b5cbe4b99f2b9982e
<ide><path>tasks/release.rb <ide> description %>\n</p> <ide> <ide> <p> <del> <%= image_tag @user.avatar.representation(resize_to_fit: [500, 500]) %> <add> <% if @user.avatar.attached? -%> <add> <%= image_tag @user.avatar.representation(resize_to_fit: [500, 500]) %> <add> <% en...
1
Python
Python
add italian stopwords
7cb9f51be6d6057c05ba18075796c4cd352811ce
<ide><path>spacy/it/language_data.py <ide> def strings_to_exc(orths): <ide> } <ide> <ide> STOP_WORDS = set(""" <add>a abbastanza abbia abbiamo abbiano abbiate accidenti ad adesso affinche agl <add>agli ahime ahimè ai al alcuna alcuni alcuno all alla alle allo allora altri <add>altrimenti altro altrove altrui anche anc...
1
Javascript
Javascript
rewrite setinnerhtml tests to use public api.
366600d0b2b99ece8cd03d60e2a5454a02857502
<ide><path>packages/react-dom/src/client/__tests__/dangerouslySetInnerHTML-test.js <add>/** <add> * Copyright (c) 2016-present, Facebook, Inc. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <add> * <add> * @emails react-cor...
2
Javascript
Javascript
add ember.on, function.prototype.on, didinit event
ca04bee6c8c43140d5cad2307ce6fbafeb5d9488
<ide><path>packages/ember-metal/lib/events.js <ide> require('ember-metal/utils'); <ide> var o_create = Ember.create, <ide> metaFor = Ember.meta, <ide> META_KEY = Ember.META_KEY, <add> a_slice = [].slice, <ide> /* listener flags */ <ide> ONCE = 1, SUSPENDED = 2; <ide> <ide> function listenersFor(obj,...
8
PHP
PHP
apply suggestions from code review
6442fd52347759dc696c51ca1fd1bb8e766cbdfb
<ide><path>src/Controller/Component/SecurityComponent.php <ide> protected function _validToken(Controller $controller): string <ide> throw new AuthSecurityException(sprintf($message, '_Token.fields')); <ide> } <ide> if (!is_string($check['_Token']['fields'])) { <del> throw new Aut...
4
Javascript
Javascript
add more tests for worker.ref()/.unref()
6a2dde579cd228f7c951f64b5377a9e0ec56b10f
<ide><path>test/parallel/test-worker-ref-onexit.js <add>'use strict'; <add>const common = require('../common'); <add>const { Worker } = require('worker_threads'); <add> <add>// Check that worker.unref() makes the 'exit' event not be emitted, if it is <add>// the only thing we would otherwise be waiting for. <add> <add>...
2
Python
Python
fix fab test
c5bc0eadc80fc95c7666826ceffbce09d0467bb9
<ide><path>fabfile.py <ide> def clean(): <ide> def test(): <ide> with lcd(path.dirname(__file__)): <ide> with virtualenv(VENV_DIR) as venv_local: <del> venv_local('py.test -x spacy/tests') <add> venv_local('pip install pytest') <add> venv_local('pytest -x spacy/tests')
1
Javascript
Javascript
fix www redirect to include full path
32d1a605ff01e2fe6e6292655e2e92a39e05dc0b
<ide><path>app.js <ide> console.log(process.env.NODE_ENV); <ide> <ide> if (process.env.NODE_ENV === 'production') { <ide> app.all(/.*/, function (req, res, next) { <del> var host = req.header("host"); <add> var host = req.header('host'); <add> var originalUrl = req['originalUrl']; <ide> if (host.match(/...
1
Text
Text
add v1.2.4 changes
c98ef94706f3a1d04831a6f6874893f01c445226
<ide><path>CHANGELOG.md <add><a name="1.2.4"></a> <add># 1.2.4 wormhole-blaster (2013-12-06) <add> <add> <add>## Bug Fixes <add> <add>- **$animate:** <add> - ensure animations work with directives that share a transclusion <add> ([958d3d56](https://github.com/angular/angular.js/commit/958d3d56b1899a2cfc7b18c0292e5a1d...
1
PHP
PHP
fix some docblocks in ironjob
a257956a80298a0b8f533eb68bfd790ae9c3cecc
<ide><path>src/Illuminate/Queue/Jobs/IronJob.php <ide> class IronJob extends Job { <ide> /** <ide> * The IronMQ message instance. <ide> * <del> * @var array <add> * @var object <ide> */ <ide> protected $job; <ide>
1
Text
Text
add tif, replace optimally=>optionally
b3e10cdaae546cef7f029b1a80dfea5e27d589d9
<ide><path>docs/templates/preprocessing/image.md <ide> Generate batches of tensor image data with real-time data augmentation. The data <ide> - __batch_size__: int (default: 32). <ide> - __shuffle__: boolean (default: True). <ide> - __seed__: int (default: None). <del> - _...
1
Javascript
Javascript
utilize common.mustcall() on child exit
95d9a58cbc13761087180c85c042b2e9cf1595e9
<ide><path>test/parallel/test-child-process-fork-exec-argv.js <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <ide> 'use strict'; <del>require('../common'); <add>const common = require('../common'); <ide> const assert = require('assert'); <ide> const child_process = require('child_process'); <ide> const spawn = ...
1
Ruby
Ruby
use a selectcore rather than a full selectmanager
8778c82e32690ed7b25664522d0bd0324ebea840
<ide><path>activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb <ide> def join_to_update(update, select) #:nodoc: <ide> '__active_record_temp' <ide> ) <ide> <del> subselect = Arel::SelectManager.new(select.engine, subsubselect) <del> subselect.project(Arel::Table...
2
Javascript
Javascript
add descriptions for valid jsdoc
c1766122c0e71f65326b6fc866be6bfa4d5087dc
<ide><path>lib/Parser.js <ide> Parser.prototype.initializeEvaluating = function() { <ide> }); <ide> <ide> /** <del> * @param {Parser} this <del> * @param {"cooked" | "raw"} kind <del> * @param {any[]} quasis <del> * @param {any[]} expressions <del> * @return {BasicEvaluatedExpression[]} <add> * @param ...
2
Text
Text
add 1.8.1 changelog
4ac8fd98b302a2404a9438762d97f65e15f7a015
<ide><path>CHANGELOG.md <ide> # Changelog <ide> <add>## 1.8.1 (2015-08-12) <add> <add>### Distribution <add> <add>* Fix a bug where pushing multiple tags would result in invalid images <add> <ide> ## 1.8.0 (2015-08-11) <ide> <ide> ### Distribution
1
Python
Python
fix italian tag map
0d4bd6414e011ff16b9987cf914978e91de91085
<ide><path>spacy/lang/it/tag_map.py <ide> "V__VerbForm=Ger": {"pos": "VERB"}, <ide> "V__VerbForm=Inf": {"pos": "VERB"}, <ide> "X___": {"pos": "X"}, <del> "_SP": {"pos": "_SP"} <add> "_SP": {"pos": "SPACE"} <ide> }
1
Ruby
Ruby
use github webpacker until closer to release
ecddc0468d6cacd06faaa474d11f96f41b17ac78
<ide><path>railties/lib/rails/generators/app_base.rb <ide> def assets_gemfile_entry <ide> def webpacker_gemfile_entry <ide> if options[:webpack] <ide> comment = "Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker" <del> GemfileEntry.new "webpacker", "~> 0.1", c...
1
Ruby
Ruby
generate mailer views in rails api
0146a055c001d0e48eaa5c5df8ccc8a5d15f6708
<ide><path>railties/lib/rails/generators.rb <ide> def self.fallbacks <ide> <ide> # Configure generators for API only applications. It basically hides <ide> # everything that is usually browser related, such as assets and session <del> # migration generators, and completely disable views, helpers and assets ...
4
Javascript
Javascript
convert the secondary toolbar to a class
f4ae277355ac20960cbc124263ac312bbc273556
<ide><path>web/app.js <ide> var PDFViewerApplication = { <ide> this.pdfDocumentProperties = <ide> new PDFDocumentProperties(appConfig.documentProperties); <ide> <del> SecondaryToolbar.initialize(appConfig.secondaryToolbar, eventBus); <del> this.secondaryToolbar = SecondaryToolbar; <add> this.seconda...
3
Javascript
Javascript
remove jankiness test
496a67c10ef0554735bee31a2ca83852f81a1048
<ide><path>test/ng/directive/ngModelSpec.js <ide> describe('ngModel', function() { <ide> })); <ide> <ide> <del> it('should minimize janky setting of classes during $validate() and ngModelWatch', inject(function($animate, $compile, $rootScope) { <del> var addClass = $animate.addClass; <del> va...
1
Javascript
Javascript
show error 404 without partial failing
e81ae1464dd1d12080c89ed6c7567395ed712f9a
<ide><path>docs/app/e2e/app.scenario.js <ide> describe('docs.angularjs.org', function () { <ide> expect(element(by.css('.minerr-errmsg')).getText()).toEqual("Argument 'Missing' is not a function, got undefined"); <ide> }); <ide> <add> it("should display an error if the page does not exist", function() { <...
2
Javascript
Javascript
fix documentation for ?^ controller search
39f6e229c229db9fbd107d98f453b6daeb6c9f9d
<ide><path>src/ng/compile.js <ide> * * (no prefix) - Locate the required controller on the current element. Throw an error if not found. <ide> * * `?` - Attempt to locate the required controller or pass `null` to the `link` fn if not found. <ide> * * `^` - Locate the required controller by searching the element and ...
1
Go
Go
add put() to graphdriver api and use it
bcaf6c2359d83acd5da54f499e21f4a148f491c5
<ide><path>container.go <ide> func (container *Container) Inject(file io.Reader, pth string) error { <ide> if err := container.EnsureMounted(); err != nil { <ide> return fmt.Errorf("inject: error mounting container %s: %s", container.ID, err) <ide> } <add> defer container.Unmount() <ide> <ide> // Return error if ...
10
Javascript
Javascript
remove console log
3e8868c907277297c0363c9e79f736a50c48726e
<ide><path>server/boot/challenge.js <ide> function getSuperBlocks$(challenge$, challengeMap) { <ide> <ide> function getChallengeById$(challenge$, challengeId) { <ide> // return first challenge if no id is given <del> console.log('id', challengeId); <ide> if (!challengeId) { <ide> return challenge$ <ide> ...
1
Python
Python
remove debug message
5ce6a4064539dc12ff5d41a4c75dae4e378d8044
<ide><path>glances/amps_list.py <ide> def update(self): <ide> amps_list += [p for p in processlist if re.search(v.regex(), p['name']) is not None] <ide> except (TypeError, KeyError): <ide> continue <del> logger.info(amps_list) <ide> if len(amps_list) > ...
1
Javascript
Javascript
fix bugs about timezone change
bfc36fa46a5a3b65fcd86e9b748a2eaef263b764
<ide><path>airflow/www/static/js/main.js <ide> function displayTime() { <ide> .html(`${now.format('HH:mm')} <strong>${formatTimezone(now)}</strong>`); <ide> } <ide> <del>function changDisplayedTimezone(tz) { <add>function changeDisplayedTimezone(tz) { <ide> localStorage.setItem('selected-timezone', tz); <ide> ...
1
Javascript
Javascript
prefer package name from metadata
53c0f5f4a027d3800e6c6a6d869af6e0210d8011
<ide><path>src/package.js <ide> class Package { <ide> ? params.bundledPackage <ide> : this.packageManager.isBundledPackagePath(this.path) <ide> this.name = <del> params.name || <ide> (this.metadata && this.metadata.name) || <add> params.name || <ide> path.basename(this.path) <ide> ...
1
Ruby
Ruby
add collectionproxy#destroy documentation
d83173483d397df8cdff913d9a4929684c7bd4ce
<ide><path>activerecord/lib/active_record/associations/collection_proxy.rb <ide> class CollectionProxy < Relation <ide> ## <ide> # :method: destroy_all <ide> # Deletes the records of the collection directly from the database. <add> # This will _always_ remove the records ignoring the +:dependent+...
1
Javascript
Javascript
keep track of root insertion order in the renderer
b1a7007cc5194d769610abf9de796eb152f161b1
<ide><path>src/backend/renderer.js <ide> export function attach( <ide> // When a mount or update is in progress, this value tracks the root that is being operated on. <ide> let currentRootID: number = -1; <ide> <add> // Track the order in which roots were added. <add> // We will use it to disambiguate roots when...
1
PHP
PHP
move tests around
274a146b24e56037323f7e9ddc5a67f9fc44989b
<ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php <ide> public function testDateTime() { <ide> ); <ide> $this->assertTags($result, $expected); <ide> <del> $result = $this->Form->input('published', array('type' => 'time')); <del> $now = strtotime('now'); <del> $expected = array( <del> 'div' => array...
1
Text
Text
fix typo in relations docs
c03c6c6e783b2d7c25c79bdadf2b12433dd88116
<ide><path>docs/api-guide/relations.md <ide> For example, given the following model for a tag, which has a generic relationsh <ide> def __unicode__(self): <ide> return self.tag_name <ide> <del>And the following two models, which may be have associated tags: <add>And the following two models, which ...
1
Python
Python
fix bug in input check for lengthgroupsampler
ce9724e1bdf3cd84a3b50f771d35b557629e95fc
<ide><path>src/transformers/trainer_pt_utils.py <ide> def __init__( <ide> self.batch_size = batch_size <ide> self.model_input_name = model_input_name if model_input_name is not None else "input_ids" <ide> if lengths is None: <del> if not isinstance(dataset[0], dict) or model_input_nam...
1
Javascript
Javascript
fix getter of result from image query cache
9ac219e0773f1b0bd5ed583d94c910c14ea4e2f4
<ide><path>Libraries/Image/Image.android.js <ide> function abortPrefetch(requestId: number) { <ide> */ <ide> async function queryCache( <ide> urls: Array<string>, <del>): Promise<Map<string, 'memory' | 'disk'>> { <add>): Promise<{[string]: 'memory' | 'disk' | 'disk/memory'}> { <ide> return await ImageLoader.queryC...
3
Ruby
Ruby
make the first arg either a name or email
0c7825accd9ad960cc045e503bb4edab3a955b2a
<ide><path>Library/Homebrew/dev-cmd/contributions.rb <ide> module Homebrew <ide> sig { returns(CLI::Parser) } <ide> def contributions_args <ide> Homebrew::CLI::Parser.new do <del> usage_banner "`contributions` <email> <repo1,repo2|all>" <add> usage_banner "`contributions` <email|name> <repo1,repo2|all...
1
Javascript
Javascript
use version counter for texture updates
38ad9b560e25db5d5fd596160652884ad5bd1bbd
<ide><path>src/renderers/WebGLRenderer.js <ide> THREE.WebGLRenderer = function ( parameters ) { <ide> <ide> } <ide> <del> this.uploadTexture = function ( texture, slot ) { <del> <del> var textureProperties = properties.get( texture ); <add> function uploadTexture( textureProperties, texture, slot ) { <ide> <ide> ...
3
Ruby
Ruby
remove incorrect comment
26feaf9c3cb09902fec745f8efc1d51baa8d41cd
<ide><path>activerecord/lib/active_record/attribute_set.rb <ide> def ==(other) <ide> attributes == other.attributes <ide> end <ide> <del> # TODO Change this to private once we've dropped Ruby 2.2 support. <del> # Workaround for Ruby 2.2 "private attribute?" warning. <ide> protected <ide> <ide> ...
1
Javascript
Javascript
add default frustum to orthographiccamera
e4a12e8b61c0af85839a8fb68e7c5720df454f45
<ide><path>src/cameras/OrthographicCamera.js <ide> function OrthographicCamera( left, right, top, bottom, near, far ) { <ide> this.zoom = 1; <ide> this.view = null; <ide> <del> this.left = left; <del> this.right = right; <del> this.top = top; <del> this.bottom = bottom; <add> this.left = ( left !== undefined ) ? lef...
1
Javascript
Javascript
allow optional 'target' argument
610927d77b77700c5c61accd503a2af0fa51cfe6
<ide><path>src/ngSanitize/filter/linky.js <ide> * plain email address links. <ide> * <ide> * @param {string} text Input text. <add> * @param {string} target Window (_blank|_self|_parent|_top) or named frame to open links in. <ide> * @returns {string} Html-linkified text. <ide> * <ide> * @usage <ide> ...
2
Python
Python
add tests for multiarray.matmul and operator '@'
0cb4cbd235978ec0925c5c1cdbfe34da669e3379
<ide><path>numpy/core/tests/test_multiarray.py <ide> import warnings <ide> import operator <ide> import io <add>import itertools <ide> if sys.version_info[0] >= 3: <ide> import builtins <ide> else: <ide> def __numpy_ufunc__(self, ufunc, method, pos, inputs, **kwargs): <ide> assert_raises(TypeError, c.dot, b...
1
Text
Text
change the text "可用->适合"
155c9b01d00baa3062854d07750fdafbc0297dc3
<ide><path>guide/chinese/agile/acceptance-testing/index.md <ide> localeTitle: 验收测试 <ide> <ide> 验收测试用于测试相对较大的软件功能块,即功能。 <ide> <del>### 例 <add>### 例子 <ide> <ide> 您创建了一个页面,要求用户首先在对话框中输入其名称,然后才能看到内容。您有一个受邀用户列表,因此任何其他用户都将返回错误。 <ide> <ide> localeTitle: 验收测试 <ide> <ide> ### 笔记 <ide> <del>验收测试可以用任何语言编写,并使用各种可用的工具运行,这些工具可...
1
PHP
PHP
remove optional value
169fd2b5156650a067aa77a38681875d2a6c5e57
<ide><path>src/Illuminate/Console/Concerns/InteractsWithIO.php <ide> public function table($headers, $rows, $tableStyle = 'default', array $columnSty <ide> * @param \Closure $callback <ide> * @return mixed|void <ide> */ <del> public function withProgressBar($totalSteps = 0, Closure $callback) <add> ...
1
PHP
PHP
fix mistake in error handler docs
a8f9597e1f2e16bb1f9e1e30726e76a48822abd5
<ide><path>lib/Cake/Error/ErrorHandler.php <ide> * #### Controlling what errors are logged/displayed <ide> * <ide> * You can control which errors are logged / displayed by ErrorHandler by setting `errorLevel`. Setting this <del> * to one or a combination of a few of the E_* constants will only enable the specified e...
1
Javascript
Javascript
fix stupid rule errors
8364cde050c44b47e24d3ebae23a51f6696f656c
<ide><path>packages/ember-metal/lib/index.js <ide> if (has('ember-debug')) { <ide> deprecate( <ide> 'Support for the `ember-legacy-views` addon will end soon, please remove it from your application.', <ide> !!Ember.ENV._ENABLE_LEGACY_VIEW_SUPPORT, <del> { id: 'ember-legacy-views', until: '2.6.0', url: 'http://embe...
1
Javascript
Javascript
fix snicallback without .server option
46510f54bee7cecb565424aeee8beb19b0162079
<ide><path>lib/_tls_wrap.js <ide> TLSSocket.prototype._init = function(socket, wrap) { <ide> if (process.features.tls_sni && <ide> options.isServer && <ide> options.SNICallback && <del> options.server && <ide> (options.SNICallback !== SNICallback || <del> options.server._contexts.length))...
2
Python
Python
fix ticket #203 [for andrew straw]
f9a971eeef6761cedc6e48cb1dcf7af3f7966925
<ide><path>numpy/matlib.py <ide> <ide> __version__ = N.__version__ <ide> <del>__all__ = N.__all__ <add>__all__ = N.__all__[:] # copy numpy namespace <ide> __all__ += ['rand', 'randn'] <ide> <ide> def empty(shape, dtype=None, order='C'):
1
Go
Go
fix content-type for job.stdout.add
4611a6bdd3270e4a404cae2d23c54dd94521c4ae
<ide><path>api/api.go <ide> func writeJSON(w http.ResponseWriter, code int, v engine.Env) error { <ide> return v.Encode(w) <ide> } <ide> <add>func streamJSON(job *engine.Job, w http.ResponseWriter, flush bool) { <add> w.Header().Set("Content-Type", "application/json") <add> if flush { <add> job.Stdout.Add(utils.NewW...
1
Mixed
Javascript
fix autoskip logic
cc65c2bac28c8779b7d96f69470347fbfd6e2e83
<ide><path>docs/migration/v4-migration.md <ide> A number of changes were made to the configuration options passed to the `Chart` <ide> * If the tooltip callback returns `undefined`, then the default callback will be used. <ide> * `maintainAspectRatio` respects container height. <ide> * Time and timeseries scales use `t...
3
Ruby
Ruby
improve documentation for subscribe block
5917c6eb285b0327ab340ee2933db88d5f5ba3bd
<ide><path>activesupport/lib/active_support/notifications.rb <ide> module ActiveSupport <ide> # == Subscribers <ide> # <ide> # You can consume those events and the information they provide by registering <del> # a subscriber. For instance, let's store all "render" events in an array: <add> # a subscriber. <add>...
1
Go
Go
create generic backend to cut dependency on daemon
836df9c4469db89ba2fecfe512ce67003a61cc1e
<ide><path>api/server/router/volume/backend.go <add>package volume <add> <add>import ( <add> // TODO return types need to be refactored into pkg <add> "github.com/docker/docker/api/types" <add>) <add> <add>// Backend is the methods that need to be implemented to provide <add>// volume specific functionality <add>type B...
3
Python
Python
set default value for cidr
60580b051909bb53615c8d03de124ad14e0ae2b1
<ide><path>libcloud/compute/drivers/gce.py <ide> def ex_create_subnetwork(self, name, cidr=None, network=None, region=None, <ide> <ide> return self.ex_get_subnetwork(name, region_name) <ide> <del> def ex_create_network(self, name, cidr, description=None, mode="auto"): <add> def ex_create_network(self, n...
1
Java
Java
refine solution for 21de09
21d069695f301851254ff2d03b44478303f24806
<ide><path>spring-web/src/main/java/org/springframework/http/client/reactive/ReactorClientHttpConnector.java <ide> public Mono<ClientHttpResponse> connect(HttpMethod method, URI uri, <ide> .next() <ide> .doOnCancel(() -> { <ide> ReactorClientHttpResponse response = responseRef.get(); <del> if (response...
2
Python
Python
add newline to task failed log message
97aee1816b89b7f94260afd1e814aca31ae972c3
<ide><path>celery/worker/job.py <ide> # says "trailing whitespace" ;) <ide> EMAIL_SIGNATURE_SEP = "-- " <ide> TASK_ERROR_EMAIL_BODY = """ <del>Task %%(name)s with id %%(id)s raised exception: %%(exc)s <add>Task %%(name)s with id %%(id)s raised exception:\n%%(exc)s <ide> <ide> <ide> Task was called with args: %%(args)...
1
Mixed
Javascript
update helper scripts
17a7a84b48621414214cd41f43d066ba8fb8126c
<ide><path>tools/challenge-helper-scripts/README.md <ide> A one-off script that automatically adds a new step between two existing consecu <ide> 1. Change to the directory of the project. <ide> 2. Run the following npm command: <ide> ```bash <del> npm run create-step-between start=X end=Y # where X is the starting s...
4
Ruby
Ruby
add test case for abstractmysqladapter#execute
8f5095a7a0127c9f17f28816e90dd82e537727bc
<ide><path>activerecord/test/cases/adapters/abstract_mysql_adapter_test.rb <add># frozen_string_literal: true <add> <add>require "cases/helper" <add> <add>class AbstractMysqlAdapterTest < ActiveRecord::Mysql2TestCase <add> class ExampleMysqlAdapter < ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter; end <add> <a...
1
Ruby
Ruby
use gcc 4.2 as the default compiler when installed
2c9fd850f35d30e99ac72946c3fdb88abf21a940
<ide><path>Library/Homebrew/os/mac.rb <ide> def default_cc <ide> <ide> def default_compiler <ide> case default_cc <del> when /^gcc-4.0/ then :gcc_4_0 <add> # if GCC 4.2 is installed, e.g. via Tigerbrew, prefer it <add> # over the system's GCC 4.0 <add> when /^gcc-4.0/ then gcc_42_build_ve...
1
Javascript
Javascript
save users into new `user` collection
28f273e7ee82dc75ebfe0bc8011e7de1f27384b9
<ide><path>seed/flattenUser.js <ide> function createConnection(URI) { <ide> }); <ide> } <ide> <del>function createQuery(db, collection, selection, options, batchSize) { <add>function createQuery(db, collection, options, batchSize) { <ide> return Rx.Observable.create(function (observer) { <ide> console.log('Cre...
1
Go
Go
use proc/exe for reexec
59ec65cd8cec942cee6cbf2b8327ec57eb5078f0
<ide><path>daemon/oci_linux.go <ide> func (daemon *Daemon) createSpec(c *container.Container) (*specs.Spec, error) { <ide> <ide> for _, ns := range s.Linux.Namespaces { <ide> if ns.Type == "network" && ns.Path == "" && !c.Config.NetworkDisabled { <del> target, err := os.Readlink(filepath.Join("/proc", strconv.Ito...
1
Ruby
Ruby
clarify comment concerning whitespace
a6877c02b02d9479794606bda26778cf4551e536
<ide><path>Library/Contributions/examples/brew-pull.rb <ide> # Store current revision <ide> revision = `git log -n1 --format=%H`.strip() <ide> <del> # Makes sense to squash whitespace errors, we don't want them. <ide> ohai 'Applying patch' <ide> patch_args = %w[am --signoff] <add> # Normally we d...
1
Javascript
Javascript
increase coverage for punycode's decode
3160b0286d030b182f9508b9a9cda79a74a98186
<ide><path>test/parallel/test-punycode.js <ide> assert.strictEqual( <ide> 'Willst du die Blüthe des frühen, die Früchte des späteren Jahres' <ide> ); <ide> assert.strictEqual(punycode.decode('wgv71a119e'), '日本語'); <add>assert.throws(() => { <add> punycode.decode(' '); <add>}, /^RangeError: Invalid input$/); <add>ass...
1
Javascript
Javascript
expose handlebars as a global
dfdec1f9a1f3ba3b403d5e0849707f1f8f9f8321
<ide><path>packages/handlebars/lib/main.js <ide> if (typeof module !== 'undefined' && require.main === module) { <ide> }; <ide> ; <ide> // lib/handlebars/base.js <del>var Handlebars = {}; <add>Handlebars = {}; <ide> <ide> Handlebars.VERSION = "1.0.beta.2"; <ide>
1
Mixed
Go
make http usage for registry explicit
380c8320a78dc16da65d9d13004422ac5a0cca53
<ide><path>daemon/config.go <ide> type Config struct { <ide> BridgeIface string <ide> BridgeIP string <ide> FixedCIDR string <add> InsecureRegistries []string <ide> InterContainerCommunication bool <ide> GraphDriver string <ide> GraphOp...
8
PHP
PHP
add name() to table class
d5ceb6303f87fb0a70af7963845d413a09540859
<ide><path>lib/Cake/Database/Schema/Table.php <ide> public function __construct($table, $columns = array()) { <ide> } <ide> } <ide> <add>/** <add> * Get the name of the table. <add> * <add> * @return string <add> */ <add> public function name() { <add> return $this->_table; <add> } <add> <ide> /** <ide> * Add a c...
1
PHP
PHP
reset plugincollection state better
7745d0c1808ac6554f6d03d9eecbd10dcd672797
<ide><path>src/Core/PluginCollection.php <ide> public function remove($name) <ide> public function clear() <ide> { <ide> $this->plugins = []; <add> $this->names = []; <add> $this->positions = []; <add> $this->loopDepth = -1; <ide> <ide> return $this; <ide> }
1
PHP
PHP
remove duplicated tests
605668517da68b4d58e94d966a41dc044271639c
<ide><path>tests/Support/SupportCollectionTest.php <ide> public function testFlatten() <ide> // Nested arrays containing collections containing arrays are flattened <ide> $c = new Collection([['#foo', new Collection(['#bar', ['#zap']])], ['#baz']]); <ide> $this->assertEquals(['#foo', '#bar', '#z...
1
Python
Python
add debug option to scons command
13bcd67d4dc01ddc9788fc252d1d8752c30c2ed8
<ide><path>numpy/distutils/command/scons.py <ide> class scons(old_build_ext): <ide> ('compiler=', None, "specify the C compiler type"), <ide> ('cxxcompiler=', None, <ide> "specify the C++ compiler type (same as C by default)"), <add> ('debug', 'g', <add> "compile/link with debugg...
1
Javascript
Javascript
use npm sandbox in test-npm-install
1847670c88da5a10cdae6380b21af696b329471d
<ide><path>test/parallel/test-npm-install.js <ide> const assert = require('assert'); <ide> const fs = require('fs'); <ide> <ide> common.refreshTmpDir(); <add>const npmSandbox = path.join(common.tmpDir, 'npm-sandbox'); <add>fs.mkdirSync(npmSandbox); <add>const installDir = path.join(common.tmpDir, 'install-dir'); <add>...
1
PHP
PHP
add optionparser options for fixtures command
eaaaef6ea4fd6cdd62f125271bfab71fc7355de2
<ide><path>lib/Cake/Console/Command/UpgradeShell.php <ide> public function getOptionParser() { <ide> 'help' => __d('cake_console', 'Comma separated list of top level diretories to exclude.'), <ide> 'default' => '', <ide> ]; <add> $path = [ <add> 'help' => __d('cake_console', 'The path to update fixtures on.'...
1
Python
Python
fix the search dir of dispatchable sources
7a4da65dff2466e5ae91e029743c075526977f60
<ide><path>numpy/distutils/ccompiler_opt.py <ide> def try_dispatch(self, sources, src_dir=None, **kwargs): <ide> <ide> for src in sources: <ide> output_dir = os.path.dirname(src) <del> if src_dir and not output_dir.startswith(src_dir): <del> output_dir = os.path.join(src_d...
1
Javascript
Javascript
fix hmr when parent directory starts with '.'
885eee802116b3ac9aa3ba0bf92aa0ad114c107b
<ide><path>server/hot-reloader.js <ide> export default class HotReloader { <ide> this.prevChunkHashes = chunkHashes <ide> }) <ide> <add> // We don’t watch .git .next/ and node_modules for changes <ide> const ignored = [ <del> /(^|[/\\])\../, // .dotfiles <add> /\.git/, <add> /\.next\//,...
1
Javascript
Javascript
update example to use a module
7ccab812fde33f40f7fa30a48d4d6082257fd1d4
<ide><path>src/ng/document.js <ide> * A {@link angular.element jQuery or jqLite} wrapper for the browser's `window.document` object. <ide> * <ide> * @example <del> <example> <add> <example module="documentExample"> <ide> <file name="index.html"> <del> <div ng-controller="MainCtrl"> <add> <div ng...
1
Text
Text
fix typo on `getinitialprops`
7be6359aff34e0e8c27fe4e16ccd32d6cd0ca5e4
<ide><path>docs/advanced-features/custom-document.md <ide> Or add a `className` to the `body` tag: <ide> <ide> > **Note:** This is advanced and only needed for libraries like CSS-in-JS to support server-side rendering. This is not needed for built-in `styled-jsx` support. <ide> <del>To prepare for [React 18](/docs/ad...
1
Go
Go
remove unused pkg/system.isiotcore()
763454e1e440549ec9fe47d278f64101d0e668f4
<ide><path>pkg/system/syscall_windows.go <ide> var ( <ide> ntuserApiset = windows.NewLazyDLL("ext-ms-win-ntuser-window-l1-1-0") <ide> modadvapi32 = windows.NewLazySystemDLL("advapi32.dll") <ide> procGetVersionExW = modkernel32.NewProc("GetVersionExW") <del> procGetProdu...
1