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
remove use of logs constant for log package
2c4474aa3359b37b6730ce6461fee292303c45c4
<ide><path>src/Log/Engine/FileLog.php <ide> class FileLog extends BaseLog { <ide> * @var array <ide> */ <ide> protected $_defaultConfig = [ <del> 'path' => LOGS, <add> 'path' => null, <ide> 'file' => null, <ide> 'types' => null, <ide> 'levels' => [], <ide> public function __construct(array $config = []) { <i...
3
Java
Java
introduce tests for gh-28228
1d302bf38445e3db559c9618c5ede71ca74bea1a
<ide><path>spring-test/src/test/java/org/springframework/test/context/junit/jupiter/orm/JpaEntityListenerTests.java <add>/* <add> * Copyright 2002-2022 the original author or authors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file except in compliance w...
6
Java
Java
add jdkidgenerator and use it in sockjs client
52b8f34468330372f448ee13475b0a6982ee0809
<ide><path>spring-core/src/main/java/org/springframework/util/AlternativeJdkIdGenerator.java <ide> import java.util.UUID; <ide> <ide> /** <del> * A variation of {@link UUID#randomUUID()} that uses {@link SecureRandom} only for the <del> * initial seed and {@link Random} thereafter. This provides better performance in ...
4
Javascript
Javascript
get config from one location
64379ee34234273c45df6d7512d8e78450bc8e29
<ide><path>server/build/clean.js <del>import { resolve } from 'path' <del>import del from 'del' <del>import getConfig from '../config' <del> <del>export default function clean (dir) { <del> const dist = getConfig(dir).distDir <del> return del(resolve(dir, dist), { force: true }) <del>} <ide><path>server/build/root-mo...
6
PHP
PHP
add additional test coverage
82b2058d93c05b137a1445338c76bbeb0adf4450
<ide><path>src/Core/ObjectRegistry.php <ide> protected function _checkDuplicate($name, $config) { <ide> <ide> $fail = false; <ide> foreach ($config as $key => $value) { <del> if (isset($existingConfig[$key]) && $existingConfig[$key] !== $value) { <add> if (!array_key_exists($key, $existingConfig)) { <ide> ...
2
Ruby
Ruby
use keyword arguments instead of hash
d046390c324142afffbf105075a1f4998c149c14
<ide><path>activesupport/lib/active_support/core_ext/string/inflections.rb <ide> def camelize(first_letter = :upper) <ide> # 'man from the boondocks'.titleize # => "Man From The Boondocks" <ide> # 'x-men: the last stand'.titleize # => "X Men: The Last Stand" <ide> ...
2
Javascript
Javascript
fix driver viewport
b6c587bb9801fba9dcacfe3e3c82a6f967425a67
<ide><path>test/driver.js <ide> function nextPage(task, loadError) { <ide> var renderContext = { <ide> canvasContext: ctx, <ide> textLayer: textLayerBuilder, <del> viewport: page.getViewport(1) <add> viewport: viewport <ide> }; <ide> page.render(renderContex...
1
PHP
PHP
ensure non conflicting placeholders in unit tests
f242029a2fd30dda32bc92cae81545808641b02b
<ide><path>tests/TestCase/Database/ValueBinderTest.php <ide> public function testResetCount() <ide> $this->assertCount(2, $valueBinder->bindings()); <ide> <ide> // Ensure the placeholder generation IS affected by resetCount <del> $valueBinder->placeholder('c'); <del> $valueBinder->placeho...
1
Javascript
Javascript
increase timeout on test-repl to 5 seconds
129217a4e92ed24eaa2dd03955d1bc0f4d4d6544
<ide><path>test/simple/test-repl.js <ide> unix_test(); <ide> <ide> timer = setTimeout(function() { <ide> assert.fail('Timeout'); <del>}, 1000); <add>}, 5000);
1
PHP
PHP
use connection aliasing in test suite
b6accd95e105a885d4e61f107c0edc3d56a118b1
<ide><path>Cake/ORM/Association.php <ide> public function target(Table $table = null) { <ide> } <ide> <ide> if ($table === null) { <del> $className = $this->_className; <del> $this->_targetTable = TableRegistry::get($this->_name, compact('className')); <add> $this->_targetTable = TableRegistry::get($this->_n...
6
Text
Text
change cable.coffee to cable.js [ci skip]
017c7f46e0aadffd2e5f02efb5918c0439716a7e
<ide><path>actioncable/README.md <ide> end <ide> <ide> The client-side needs to setup a consumer instance of this connection. That's done like so: <ide> <del>```coffeescript <del># app/assets/javascripts/cable.coffee <del>#= require action_cable <add>```js <add>// app/assets/javascripts/cable.js <add>//= require acti...
2
Text
Text
update emitclose default for fs streams
d548f4d1164a5dc9e1390fcaaafbbf2feddaf28e
<ide><path>doc/api/fs.md <ide> changes: <ide> - v15.4.0 <ide> pr-url: https://github.com/nodejs/node/pull/35922 <ide> description: The `fd` option accepts FileHandle arguments. <add> - version: v14.0.0 <add> pr-url: https://github.com/nodejs/node/pull/31408 <add> description: Change `emitClose` defa...
1
Python
Python
adjust polyfit doc to clarify the meaning of w
5c4aac16b54284a59bc5af34e731be7299cbb1d1
<ide><path>numpy/lib/polynomial.py <ide> def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False): <ide> default) just the coefficients are returned, when True diagnostic <ide> information from the singular value decomposition is also returned. <ide> w : array_like, shape (M,), optional <de...
8
Javascript
Javascript
add profile bundles for www+dom and fbsource+rn/rf
6d6de6011cf329fabe057186e9a65fc8eb4e175c
<ide><path>packages/shared/forks/ReactFeatureFlags.native-fabric-fb.js <ide> export const enableSuspense = false; <ide> export const warnAboutDeprecatedLifecycles = false; <ide> export const warnAboutLegacyContextAPI = __DEV__; <ide> export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__; <del>export co...
9
Text
Text
clarify text about process not responding
8938d37251d3a48686825b477339ca3991a9d37b
<ide><path>doc/api/process.md <ide> process.on('SIGTERM', handle); <ide> * `'SIGSTOP'` cannot have a listener installed. <ide> * `'SIGBUS'`, `'SIGFPE'`, `'SIGSEGV'` and `'SIGILL'`, when not raised <ide> artificially using kill(2), inherently leave the process in a state from <del> which it is not safe to attempt t...
1
Text
Text
add changelog entry for
240e32bbbfb6943ac8d7f3fc4d6a6f685930d9ca
<ide><path>activesupport/CHANGELOG.md <add>* Cache `ActiveSupport::TimeWithZone#to_datetime` before freezing. <add> <add> *Adam Rice* <add> <ide> * Deprecate `.halt_callback_chains_on_return_false`. <ide> <ide> *Rafael Mendonça França*
1
Python
Python
use correct status code
dc9384f9b4321f099e380f6b4a04fbe2eeb2b743
<ide><path>rest_framework/exceptions.py <ide> def __init__(self, detail=None): <ide> <ide> <ide> class Unauthenticated(APIException): <del> status_code = status.HTTP_401_UNAUTHENTICATED <add> status_code = status.HTTP_401_UNAUTHORIZED <ide> default_detail = 'Incorrect or absent authentication credentials.' ...
1
Go
Go
remove redundant root.scopedpath(), root.scope
74be0fed6f9febe0eb903d911bd31282ad2b12f2
<ide><path>volume/local/local.go <ide> func New(scope string, rootIdentity idtools.Identity) (*Root, error) { <ide> } <ide> <ide> r := &Root{ <del> scope: scope, <ide> path: rootDirectory, <ide> volumes: make(map[string]*localVolume), <ide> rootIdentity: rootIdentity, <ide> func New(scope ...
3
Go
Go
deny net host + dns and links with container net
3256050ed44b13694d81e78d24e2c7f6006c4bbd
<ide><path>runconfig/parse.go <ide> import ( <ide> var ( <ide> ErrInvalidWorkingDirectory = fmt.Errorf("The working directory is invalid. It needs to be an absolute path.") <ide> ErrConflictAttachDetach = fmt.Errorf("Conflicting options: -a and -d") <add> ErrConflictContainerNetworkAndLinks ...
1
Python
Python
fix additional issue
16760602cd1beaf029583db30f8283d4ca864fc0
<ide><path>celery/backends/base.py <ide> def fallback_chord_unlock(self, group_id, body, result=None, <ide> <ide> def apply_chord(self, header, partial_args, group_id, body, <ide> options={}, **kwargs): <del> options['task_id'] = group_id <del> result = header(*partial_args, **opt...
1
Javascript
Javascript
change statsync to accesssync in realpathsync
809bf5e38cdb1fe304da9d413f07e9d7e66ce8f9
<ide><path>lib/fs.js <ide> fs.realpathSync = function realpathSync(p, cache) { <ide> } <ide> } <ide> if (linkTarget === null) { <del> fs.statSync(base); <add> fs.accessSync(base, fs.F_OK); // Throws ELOOP on cyclic links. <ide> linkTarget = fs.readlinkSync(base); <ide> }...
1
Text
Text
add v3.15.0-beta.2 to changelog
7cf8f50e11cbd1c2e975e9f77bb84847511fd314
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.15.0-beta.2 (November 11, 2019) <add> <add>- [#18539](https://github.com/emberjs/ember.js/pull/18539) [BUGFIX] Add ID to `CapturedRenderNode` <add> <ide> ### v3.15.0-beta.1 (October 31, 2019) <ide> <ide> - [#17948](https://github.com/emberjs/ember.js/p...
1
Javascript
Javascript
remove message from notstrictequal
018375cd4e8381da0133bd2e1010e25386c072d2
<ide><path>test/parallel/test-domain-http-server.js <ide> const server = http.createServer(function(req, res) { <ide> const data = JSON.stringify(objects[req.url.replace(/[^a-z]/g, '')]); <ide> <ide> // this line will throw if you pick an unknown key <del> assert.notStrictEqual(data, undefined, 'Data should...
1
PHP
PHP
apply fixes from styleci
d5a71bad602e45e54aef2c15e1cb1b8c20c46535
<ide><path>tests/Pagination/LengthAwarePaginatorTest.php <ide> public function testLengthAwarePaginatorCanGiveMeRelevantPageInformation() <ide> <ide> public function testLengthAwarePaginatorCanGenerateUrls() <ide> { <del> $this->p->setPath('http://website.com'); <del> $this->p->setPageName('foo'...
3
PHP
PHP
fix tests for php 7
8021540aaf020f1a2e2fafccba89a4783a9fc262
<ide><path>tests/Queue/QueueBeanstalkdJobTest.php <ide> public function testFailedProperlyCallsTheJobHandler() <ide> $job = $this->getJob(); <ide> $job->getPheanstalkJob()->shouldReceive('getData')->once()->andReturn(json_encode(['job' => 'foo', 'data' => ['data']])); <ide> $job->getContainer()-...
2
Javascript
Javascript
preserve error codes for invariants on www
76b4ba01290f446f4313adf3846954412c6051b8
<ide><path>packages/shared/forks/reactProdInvariant.www.js <add>/** <add> * Copyright (c) 2013-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> * @flow <add> */ <add> <add>const invariant...
5
Javascript
Javascript
send fatal error for js exception in eventemitter
db617e56a308de0db09c93e73a05d7627653ff11
<ide><path>Libraries/vendor/emitter/EventEmitter.js <ide> /** <del> * @generated SignedSource<<494e66dea72a3e90b763a5ec50b1e0ca>> <add> * Copyright (c) 2015-present, Facebook, Inc. <add> * All rights reserved. <ide> * <del> * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! <del> * !! This file is a ch...
1
Javascript
Javascript
remove unneeded closure
345f9cc287c2a5d5e3c4ac96a4f3cebc6779dfa4
<ide><path>src/loaders/ObjectLoader.js <ide> Object.assign( ObjectLoader.prototype, { <ide> <ide> }, <ide> <del> parseObject: function () { <add> parseObject: function ( data, geometries, materials ) { <ide> <del> return function parseObject( data, geometries, materials ) { <add> var object; <ide> <del> var ob...
1
Java
Java
fix javadoc formatting issue in testsocketutils
8e64701cb74aaded6f647d3c9aa0d186b8654b0b
<ide><path>spring-test/src/main/java/org/springframework/test/util/TestSocketUtils.java <ide> public class TestSocketUtils { <ide> /** <ide> * Although {@code TestSocketUtils} consists solely of static utility methods, <ide> * this constructor is intentionally {@code public}. <del> * <h4>Rationale</h4> <add> * <...
1
PHP
PHP
remove irrelevant comment
c5b8fca9228cf6f47ced3438746e4e15b7ed263a
<ide><path>src/View/Helper/FormHelper.php <ide> public function allInputs(array $fields = [], array $options = []) { <ide> * You can customize individual inputs through `$fields`. <ide> * {{{ <ide> * $this->Form->inputs([ <del> * 'name' => ['label' => 'custom label'] <add> * 'name' => ['label' => 'custom label']...
1
PHP
PHP
fix more failures around identifier quoting
d1a0ff17926b031d318eb6c7900db9329aa7a56a
<ide><path>src/Database/Expression/ValuesExpression.php <ide> protected function _columnNames() <ide> { <ide> $columns = []; <ide> foreach ($this->_columns as $col) { <del> $columns[] = trim($col, '`[]"'); <add> if (is_string($col)) { <add> $col = trim($col, '`[]...
1
Text
Text
update changelog for release (0.19.0)
3f7451ceb7b8386a0c233b869dddea1fea05b12f
<ide><path>CHANGELOG.md <ide> # Changelog <ide> <add>### 0.19.0 (May 30, 2019) <add> <add>Fixes and Functionality: <add> <add>- Unzip response body only for statuses != 204 ([#1129](https://github.com/axios/axios/pull/1129)) - drawski <add>- Destroy stream on exceeding maxContentLength (fixes [#1098](https://github.co...
1
Python
Python
update urls.py because of new version of django.
c0f0f66c6d30111f27898008061be8a7b7b20dc3
<ide><path>examples/django/proj/urls.py <ide> from __future__ import absolute_import, unicode_literals <ide> <ide> from django.conf.urls import ( # noqa <del> patterns, include, url, handler404, handler500, <add> include, url, handler404, handler500, <ide> ) <ide> <ide> # Uncomment the next two lines to enable...
1
Javascript
Javascript
fix extend_prototypes for sproutcore-handlebars
6c6b8f9b21b79c69f6c19ff2f27ac57db72f38b8
<ide><path>packages/sproutcore-handlebars/lib/helpers/binding.js <ide> SC.Handlebars.bindClasses = function(context, classBindings, view, id) { <ide> // Normalize property path to be suitable for use <ide> // as a class name. For exaple, content.foo.barBaz <ide> // becomes bar-baz. <del> return S...
5
Python
Python
add doctests and support for negative numbers
e41d04112fcaaceb286b0fd6d55a162af0893593
<ide><path>maths/extended_euclidean_algorithm.py <ide> <ide> Finds 2 numbers a and b such that it satisfies <ide> the equation am + bn = gcd(m, n) (a.k.a Bezout's Identity) <add> <add>https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm <ide> """ <ide> <ide> # @Author: S. Sharma <silentcat> <ide> # @Date: 201...
1
PHP
PHP
apply fixes from styleci
66d8568d3dd69e468abaaf66d58018c15d0b4dda
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function decrement($column, $amount = 1, array $extra = []) <ide> */ <ide> protected function addUpdatedAtColumn(array $values) <ide> { <del> if (! $this->model->usesTimestamps() || <add> if (! $this->model->usesTimestamps(...
1
Javascript
Javascript
fix tagname extraction
4a94bb9b345946a9efd51adaeedc0f907af4df49
<ide><path>src/Angular.js <ide> function startingTag(element) { <ide> // are not allowed to have children. So we just ignore it. <ide> element.html(''); <ide> } catch(e) {}; <del> return jqLite('<div>').append(element).html().replace(/\<\/[\w\:\-]+\>$/, ''); <add> return jqLite('<div>').append(element).html...
2
PHP
PHP
remove unused variable
118d50b7eee0f86849b866f055d1e3c823f9f431
<ide><path>tests/Container/ContainerTest.php <ide> public function testBindingsCanBeOverridden() <ide> { <ide> $container = new Container; <ide> $container['foo'] = 'bar'; <del> $foo = $container['foo']; <ide> $container['foo'] = 'baz'; <ide> $this->assertEquals('baz', $contai...
1
Java
Java
avoid nullability warnings
15a6373fed1b8acf6dcda7cc2a144de34e32f4cd
<ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/CookieAssertions.java <ide> package org.springframework.test.web.reactive.server; <ide> <ide> import java.time.Duration; <add>import java.util.Objects; <ide> import java.util.function.Consumer; <ide> <ide> import org.hamcrest.Matcher; <...
2
Text
Text
update russian translation
7f85ca71e013469b5d387a5e28fda0cf004084f5
<ide><path>guide/russian/php/loop/index.md <ide> --- <ide> title: Loop <del>localeTitle: петля <add>localeTitle: Цикл <ide> --- <del># PHP Loop <add># PHP Цикл <ide> <ide> Если вам нужно многократно повторять одну и ту же задачу, вы можете использовать цикл, а не добавлять один и тот же код снова и снова. В PHP есть с...
1
Ruby
Ruby
accept a block in button helper
0ec88cd1c83bdd66d06c2b475e0ace6c41be475e
<ide><path>actionpack/lib/action_view/helpers/form_helper.rb <ide> def submit(value=nil, options={}) <ide> # post: <ide> # create: "Add %{model}" <ide> # <del> def button(value=nil, options={}) <add> # ==== Examples <add> # button("Create a post") <add> # # =>...
2
Javascript
Javascript
remove usage of require('util') in `repl/history`
91be64b9d3a898fd9a611368b84e888de57cd087
<ide><path>lib/internal/repl/history.js <ide> const { Interface } = require('readline'); <ide> const path = require('path'); <ide> const fs = require('fs'); <ide> const os = require('os'); <del>const util = require('util'); <del>const debug = util.debuglog('repl'); <add>const debug = require('internal/util/debuglog').d...
1
Javascript
Javascript
remove unused catch bindings
30f58b92ee88a2c90ab570d68f4ff4628126b5f0
<ide><path>lib/internal/v8_prof_polyfill.js <ide> function macCppfiltNm(out) { <ide> filtered = cp.spawnSync('c++filt', [ '-p' , '-i' ], { <ide> input: entries.join('\n') <ide> }).stdout.toString(); <del> } catch (e) { <add> } catch { <ide> return out; <ide> } <ide>
1
Javascript
Javascript
fix current node tests
c692bd0464f393cb334fb8110e2c3c297df42931
<ide><path>tests/node/app-boot-test.js <ide> global.EmberENV = { <ide> FEATURES: features <ide> }; <ide> <del>var Ember = require(path.join(distPath, 'ember.debug.cjs')); <del>var compile = require(path.join(distPath, 'ember-template-compiler')).compile; <del>Ember.testing = true; <del>var DOMHelper = Ember.HTMLBars...
2
Ruby
Ruby
ask reflection for klass join reflection
c8e946683536e2555f98e0fa401b5a9721a9a6cb
<ide><path>activerecord/lib/active_record/associations/join_dependency/join_association.rb <ide> def join_constraints(foreign_table, foreign_klass, join_type, tables, chain) <ide> <ide> predicate_builder = PredicateBuilder.new(TableMetadata.new(klass, table)) <ide> scope_chain_items = reflectio...
2
Python
Python
euclidean recursive method + doctests + type hints
bb5552efd0fea2a8e83aef4321d9686acb150b59
<ide><path>other/euclidean_gcd.py <del># https://en.wikipedia.org/wiki/Euclidean_algorithm <add>""" https://en.wikipedia.org/wiki/Euclidean_algorithm """ <ide> <ide> <del>def euclidean_gcd(a, b): <add>def euclidean_gcd(a: int, b: int) -> int: <add> """ <add> Examples: <add> >>> euclidean_gcd(3, 5) <add> 1...
1
Javascript
Javascript
use fixed version in meteor/package.js
a26229242aef8b023323fb18f74428f661010b6d
<ide><path>meteor/package.js <ide> <ide> var packageName = 'momentjs:moment'; // https://atmospherejs.com/momentjs/moment <ide> <del>var packageJson = JSON.parse(Npm.require("fs").readFileSync('package.json')); <del> <ide> Package.describe({ <ide> name: packageName, <ide> summary: 'Moment.js (official): parse, v...
1
Python
Python
update new token classification model
511bce58bd93d2cbc6eef21773b99b7a35b0d814
<ide><path>pytorch_pretrained_bert/modeling.py <ide> def __init__(self, config, num_labels=2): <ide> <ide> def forward(self, input_ids, token_type_ids=None, attention_mask=None, labels=None): <ide> sequence_output, _ = self.bert(input_ids, token_type_ids, attention_mask, output_all_encoded_layers=False) <d...
1
Ruby
Ruby
update the spinner to the latest commands
241b842be101064ea94943dba0ac7831a96284ad
<ide><path>railties/lib/commands/process/spinner.rb <ide> def daemonize <ide> OPTIONS = { <ide> :high_interval => 5.0, <ide> :low_interval => 0.5, <del> :command => File.expand_path(File.dirname(__FILE__) + '/spawner'), <del> :daemon => false <add> :command => File.expand_path(RAILS_ROOT + '/script/run proce...
1
Text
Text
clarify wording and formatting in docs
77cba66c2d95cad54619f5314df22af4f56e4e6d
<ide><path>docs/build-instructions/linux.md <ide> To also install the newly built application, use `--create-debian-package` or `- <ide> ### Ubuntu / Debian <ide> <ide> * Install GNOME headers and other basic prerequisites: <add> <ide> ```sh <ide> sudo apt-get install build-essential git libgnome-keyring-dev faker...
3
Text
Text
add notes about git commit messages
5f00372af2e0aa0ec540830ba575fe83ae16017f
<ide><path>CONTRIBUTING.md <ide> reference to all the issues that they address. <ide> <ide> Pull requests must not contain commits from other users or branches. <ide> <add>Commit messages must start with a capitalized and short summary (max. 50 <add>chars) written in the imperative, followed by an optional, more deta...
1
Text
Text
add a solution for finders keepers challenge
4bc1d74f2ab6d69e75ebf51b70f3325b00513c78
<ide><path>guide/english/certifications/javascript-algorithms-and-data-structures/basic-algorithm-scripting/finders-keepers/index.md <ide> --- <ide> title: Finders Keepers <ide> --- <del>## Problem Explanation <add>![](//discourse-user-assets.s3.amazonaws.com/original/2X/f/ff2fd8ffa014eea28587a8ef4933340d3dcc4b09.jpg) ...
1
PHP
PHP
fix a few bugs
33ff51a81dbd16f62f903568fd8aab94762f34ae
<ide><path>src/Illuminate/Events/CallQueuedHandler.php <ide> public function __construct(Container $container) <ide> */ <ide> public function call(Job $job, array $data) <ide> { <del> $event = $this->setJobIfNecessary(unserialize($data['data'])); <add> $event = $this->setJobIfNecessary($job, unserialize($data['da...
2
Text
Text
add code example to `http.createserver` method
984f7a0bf32f9e329d0b7975042f71212fa823c4
<ide><path>doc/api/http.md <ide> Returns a new instance of [`http.Server`][]. <ide> The `requestListener` is a function which is automatically <ide> added to the [`'request'`][] event. <ide> <add>```cjs <add>const http = require('http'); <add> <add>// Create a local server to receive data from <add>const server = http...
1
Java
Java
create sockjs threadpooltaskscheduler extension
6ad79e03c615d7dca2ab4b2ae7bf8ba6881448bc
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/config/WebSocketNamespaceUtils.java <ide> <ide> package org.springframework.web.socket.config; <ide> <add>import org.springframework.web.socket.sockjs.transport.SockJsThreadPoolTaskScheduler; <ide> import org.w3c.dom.Element; <ide> <ide> import...
4
Ruby
Ruby
correct typos in routing examples
efdfcf13257769cf2d6f9ad85c8538e64007d97b
<ide><path>actionpack/lib/action_dispatch/routing.rb <ide> module ActionDispatch <ide> # You can specify a regular expression to define a format for a parameter. <ide> # <ide> # controller 'geocode' do <del> # match 'geocode/:postalcode' => :show', :constraints => { <add> # match 'geocode/:postalcode'...
1
Text
Text
fix broken link in code snippet
87eee1e879a7ecbdab32caa09dfa2bfc566d6269
<ide><path>website/docs/recipes/ServerRendering.md <ide> function renderFullPage(html, preloadedState) { <ide> <div id="root">${html}</div> <ide> <script> <ide> // WARNING: See the following for security issues around embedding JSON in HTML: <del> // http://redux.js.org/recipes/Server...
1
Go
Go
move disconnectfromnetwork back to daemon/
5bb4d0d9ea6a6c85a3f9a4a147fd7db0101eb725
<ide><path>container/container_unix.go <ide> import ( <ide> "github.com/docker/docker/pkg/nat" <ide> "github.com/docker/docker/pkg/symlink" <ide> "github.com/docker/docker/pkg/system" <del> "github.com/docker/docker/runconfig" <ide> "github.com/docker/docker/utils" <ide> "github.com/docker/docker/volume" <ide> "g...
5
Javascript
Javascript
remove some console logs
06b648b402960166943448155c06922a77b5fad0
<ide><path>news/client.js <ide> const App = ( <ide> <ide> render( <ide> App, <del> newsMountPoint, <del> () => console.log('react has rendered and is ready to go go go go go go!!') <add> newsMountPoint <ide> ); <ide><path>news/components/ArticleMeta.js <ide> function pluralise(singular, count) { <ide> function ge...
2
Python
Python
detect broken `yum install python-requests`
8675d5e266daf191ed46d57a5d9b8d56475602a6
<ide><path>libcloud/__init__.py <ide> except ImportError: <ide> have_paramiko = False <ide> <add>try: <add> import requests # NOQA <add> have_requests = True <add>except ImportError: <add> have_requests = False <add> <ide> __all__ = [ <ide> '__version__', <ide> 'enable_debug' <ide> def _init_once...
2
Javascript
Javascript
increase database timeout
81b77ff8adb8dabcf784a8c61276960c9f949d79
<ide><path>server/datasources.local.js <ide> var secrets = require('../config/secrets'); <ide> module.exports = { <ide> db: { <ide> connector: 'mongodb', <add> timeout: 10000, <ide> url: process.env.MONGOHQ_URL <ide> }, <ide> mail: {
1
Text
Text
add ga note to primary readme
e2af3223131957e48871b09307c856f717d9d7b5
<ide><path>README.md <ide> Thanks to the awesome folks over at [Fastly][fastly], there's a free, CDN hosted <ide> <link href="//vjs.zencdn.net/5.19/video-js.min.css" rel="stylesheet"> <ide> <script src="//vjs.zencdn.net/5.19/video.min.js"></script> <ide> ``` <del> <ide> > For the latest version of video.js and URLs to ...
1
Javascript
Javascript
add missing jsdoc @param entry
73d2d90122fb9fe79d4088f537f3a35537785075
<ide><path>lib/internal/policy/manifest.js <ide> const kNoDependencies = new DependencyMapperInstance( <ide> * @param {string} href <ide> * @param {JSONDependencyMap} dependencies <ide> * @param {boolean} cascade <add> * @param {boolean} allowSameHREFScope <ide> * @param {Map<string | null | undefined, DependencyMa...
1
Python
Python
fix tolerance comparing __call__ to np.dot
acbae2cebb13a18412b439ed237fbc23abace69a
<ide><path>tests/keras/layers/test_call.py <ide> def test_layer_call(self): <ide> """Test keras.layers.core.Layer.__call__""" <ide> nb_samples, input_dim, output_dim = 3, 10, 5 <ide> layer = Dense(output_dim, input_dim=input_dim) <del> W = np.asarray(K.eval(layer.W)) <add> W = np.a...
1
Java
Java
improve uribuilder javadoc on query params
261956fd08fec9f35abbd2a1667e4acbbacdfc31
<ide><path>spring-web/src/main/java/org/springframework/web/util/HierarchicalUriComponents.java <ide> public int hashCode() { <ide> /** <ide> * Enumeration used to identify the allowed characters per URI component. <ide> * <p>Contains methods to indicate whether a given character is valid in a specific URI compone...
3
Python
Python
remove unused imports
8a29308d0bb7fcfa6947b83fa6522c1eda2b6cbf
<ide><path>spacy/tests/regression/test_issue910.py <ide> from __future__ import unicode_literals <ide> import json <del>import os <ide> import random <ide> import contextlib <ide> import shutil <ide> from pathlib import Path <ide> <ide> <del>import pathlib <ide> from ...gold import GoldParse <ide> from ...pipeline im...
1
Python
Python
remove unused patterns import
fb2c09f6ae0d1b2d44f4fb8444fbbb80e69b6a48
<ide><path>tests/test_urlpatterns.py <ide> from __future__ import unicode_literals <ide> from collections import namedtuple <del>from django.conf.urls import patterns, url, include <add>from django.conf.urls import url, include <ide> from django.core import urlresolvers <ide> from django.test import TestCase <ide> from...
1
Text
Text
add links for determining more restrictive license
1173d00bf6316fa4ce98a46a1fcbe9d120d75dcc
<ide><path>docs/Formula-Cookbook.md <ide> If the software is available under multiple licenses, you should list them all i <ide> license ["MIT", "GPL-2.0"] <ide> ``` <ide> <del>Note: only specify multiple licenses if the formula gives the user a choice between the licenses. Formulae that have different licenses for di...
1
Text
Text
add nav to inthewild
57768e643563d0116a8eef5d26a4c03386b1509c
<ide><path>INTHEWILD.md <ide> Currently, **officially** using Airflow: <ide> 1. [Multiply](https://www.multiply.com) [[@nrhvyc](https://github.com/nrhvyc)] <ide> 1. [NEXT Trucking](https://www.nexttrucking.com/) [[@earthmancash2](https://github.com/earthmancash2), [@kppullin](https://github.com/kppullin)] <ide> 1. [Nat...
1
Javascript
Javascript
move easing effects in separate file + unit tests
56050dc9b7a17130efdbdcd3b8de46b728f25b84
<ide><path>src/chart.js <ide> var Chart = require('./core/core')(); <ide> <ide> require('./helpers/helpers.core')(Chart); <add>require('./helpers/helpers.easing')(Chart); <ide> require('./core/core.helpers')(Chart); <ide> require('./helpers/helpers.time')(Chart); <ide> require('./helpers/helpers.canvas')(Chart); <ide>...
6
PHP
PHP
apply fixes from styleci
332ea7c61f3aebcd2376e9ca4c6b5a5e873cead1
<ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsTo.php <ide> <ide> use Illuminate\Database\Eloquent\Model; <ide> use Illuminate\Database\Eloquent\Builder; <del>use Illuminate\Database\Query\Expression; <ide> use Illuminate\Database\Eloquent\Collection; <ide> <ide> class BelongsTo extends Relation <ide><p...
4
PHP
PHP
add sane helper methods to uploaded file
7aa750e465816d2fd158085fe578f258600176ff
<ide><path>src/Illuminate/Http/UploadedFile.php <ide> class UploadedFile extends SymfonyUploadedFile <ide> { <ide> use Macroable; <ide> <add> /** <add> * Get the fully qualified path to the file. <add> * <add> * @return string <add> */ <add> public function path() <add> { <add> retu...
1
Python
Python
fix floating ip initialization
f8c1a1646dccb885fda10c6de29fad0585802bd1
<ide><path>libcloud/compute/drivers/openstack.py <ide> def _to_floating_ips(self, obj): <ide> return [self._to_floating_ip(ip) for ip in ip_elements] <ide> <ide> def _to_floating_ip(self, obj): <del> return OpenStack_1_1_FloatingIpAddress(obj['id'], obj['ip'], self, <del> ...
1
Javascript
Javascript
add shorthand for defining promise error handlers
a207665dad69248139b150cd3fe8ba13059bffb4
<ide><path>src/ng/q.js <ide> * This method *returns a new promise* which is resolved or rejected via the return value of the <ide> * `successCallback` or `errorCallback`. <ide> * <add> * - `catch(errorCallback)` – shorthand for `promise.then(null, errorCallback)` <add> * <ide> * - `always(callback)` – allows yo...
2
Javascript
Javascript
add spec for uimanager
a0879ce49f11812e478d0cda2827f36f325cf972
<ide><path>Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js <ide> const AccessibilityInfo = { <ide> setAccessibilityFocus: function(reactTag: number): void { <ide> UIManager.sendAccessibilityEvent( <ide> reactTag, <del> UIManager.AccessibilityEventTypes.typeViewFocused, <add> UI...
5
Javascript
Javascript
update v8 flag in test
4f8582e5332f0cac61b5f441cdfcac0b5959d775
<ide><path>test/parallel/test-preload.js <ide> childProcess.exec( <ide> // https://github.com/nodejs/node/issues/1691 <ide> process.chdir(common.fixturesDir); <ide> childProcess.exec( <del> nodeBinary + ' ' + '--expose_debug_as=v8debug ' + '--require ' + <add> nodeBinary + ' ' + '--expose_natives_as=v8natives ' + '--...
1
Ruby
Ruby
inline anemic log guard
0dc6527a8be9e2cf74162574b56ef3e84c4b6969
<ide><path>activesupport/lib/active_support/cache.rb <ide> def expanded_version(key) <ide> end <ide> <ide> def instrument(operation, key, options = nil) <del> log { "Cache #{operation}: #{normalize_key(key, options)}#{options.blank? ? "" : " (#{options.inspect})"}" } <add> if logger &...
1
Python
Python
add benchmark logging for wide_deep.
1d76d3ae049e649140dbba9ee6090e57ee4a7755
<ide><path>official/wide_deep/wide_deep.py <ide> <ide> from official.utils.flags import core as flags_core <ide> from official.utils.logs import hooks_helper <add>from official.utils.logs import logger <ide> from official.utils.misc import model_helpers <ide> <ide> <ide> def define_wide_deep_flags(): <ide> """Add ...
1
Python
Python
add numerical integration of x^2 to trapz
4ca8204c5c13b3a5c9482772813e67184f3f47c8
<ide><path>numpy/lib/function_base.py <ide> def trapz(y, x=None, dx=1.0, axis=-1): <ide> <ide> Examples <ide> -------- <del> >>> np.trapz([1,2,3]) <add> Use the trapezoidal rule on evenly spaced points: <add> <add> >>> np.trapz([1, 2, 3]) <ide> 4.0 <del> >>> np.trapz([1,2,3], x=[4,6,8]) <add> <...
1
Ruby
Ruby
build fix when running isolated test
74a191dfc70c885031b3b96f07c1817077831ee9
<ide><path>activesupport/lib/active_support/multibyte/chars.rb <ide> # encoding: utf-8 <add>require 'active_support/json' <ide> require 'active_support/core_ext/string/access' <ide> require 'active_support/core_ext/string/behavior' <ide> require 'active_support/core_ext/module/delegation'
1
Go
Go
remove job from pull and import
6e38a53f96403b4cbd38e49e6b294128ed054a20
<ide><path>api/server/server.go <ide> func postImagesCreate(eng *engine.Engine, version version.Version, w http.Respon <ide> image = r.Form.Get("fromImage") <ide> repo = r.Form.Get("repo") <ide> tag = r.Form.Get("tag") <del> job *engine.Job <ide> ) <ide> authEncoded := r.Header.Get("X-Registry-Auth") <ide...
7
Python
Python
remove duplicate normalize_data_format
b3cb261b22a73d195a527592b49ca57e8c9ac9f5
<ide><path>keras/layers/pooling.py <ide> class _Pooling2D(Layer): <ide> def __init__(self, pool_size=(2, 2), strides=None, padding='valid', <ide> data_format=None, **kwargs): <ide> super(_Pooling2D, self).__init__(**kwargs) <del> data_format = conv_utils.normalize_data_format(data_fo...
1
Python
Python
update task.update_state to accept variadic kwargs
6651e145989d6e890c28273d470bf8fb3a2d5c2b
<ide><path>celery/app/task.py <ide> def add_to_chord(self, sig, lazy=False): <ide> self.backend.add_to_chord(self.request.group, result) <ide> return sig.delay() if not lazy else sig <ide> <del> def update_state(self, task_id=None, state=None, meta=None): <add> def update_state(self, task_id=None...
2
PHP
PHP
fix documentation typo
fbcf44403bfa651e4e624922411c6339399c30bf
<ide><path>src/Illuminate/Routing/Router.php <ide> public function currentRouteName() <ide> } <ide> <ide> /** <del> * Alias for the "currentRouteNamed" method. <add> * Alias for the "currentRouteName" method. <ide> * <ide> * @param mixed string <ide> * @return bool
1
Javascript
Javascript
update http test to use common.mustcall
d2626ef6b71d6ecf115a9dee9f3c929fa1acedad
<ide><path>test/parallel/test-http-timeout-overflow.js <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <ide> 'use strict'; <del>require('../common'); <del>const assert = require('assert'); <del> <add>const common = require('../common'); <ide> const http = require('http'); <ide> <del>let serverRequests = 0; <del...
1
PHP
PHP
move checks closer to the side effects
4ab503aa079419b8315dfa489fd6182db9305240
<ide><path>lib/Cake/Database/Connection.php <ide> class Connection { <ide> * Constructor <ide> * <ide> * @param array $config configuration for connecting to database <del> * @throws Cake\Database\Exception\MissingDriverException if driver class can not be found <del> * @throws Cake\Database\Exception\MissingExtensi...
1
Javascript
Javascript
fix mapfunction parameters in mapchildren's jsdoc
9462d0d0404a9a2d2cc6afbef801f0ecf4018560
<ide><path>src/isomorphic/children/ReactChildren.js <ide> function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) { <ide> /** <ide> * Maps children that are typically specified as `props.children`. <ide> * <del> * The provided mapFunction(child, key, index) will be called for each <add> * The pr...
1
Java
Java
add isopen to websocketsession in webflux
6bb3ad793eedd2f5eda98d5897ab207f081c87ec
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/socket/WebSocketSession.java <ide> public interface WebSocketSession { <ide> */ <ide> Mono<Void> send(Publisher<WebSocketMessage> messages); <ide> <add> /** <add> * Whether the underlying connection is open. <add> * @since 5.3.1 <add> */ <a...
6
PHP
PHP
move deprecations into constructors
3ddeac9a9f4e40d042f07541924091ae8fb0319f
<ide><path>src/View/Helper/RssHelper.php <ide> */ <ide> namespace Cake\View\Helper; <ide> <del>deprecationWarning('RssHelper is deprecated and will be removed in 4.0.0'); <del> <ide> use Cake\Utility\Xml; <ide> use Cake\View\Helper; <add>use Cake\View\View; <ide> <ide> /** <ide> * RSS Helper class for easy output R...
3
PHP
PHP
fix setpriority call for mailchannel
40abea870dbb802b752eb294fad5ab9de1eec1e5
<ide><path>src/Illuminate/Notifications/Channels/MailChannel.php <ide> protected function buildMessage($mailMessage, $notifiable, $notification, $messa <ide> $this->addAttachments($mailMessage, $message); <ide> <ide> if (! is_null($message->priority)) { <del> $mailMessage->setPriority($messa...
2
Text
Text
remove systemtap from tierlist
627497bd50d35d9f4370934ba4a53c289c2b0649
<ide><path>doc/contributing/diagnostic-tooling-support-tiers.md <ide> The tools are currently assigned to Tiers as follows: <ide> | Debugger | Command line Debug Client | ? | Yes | 1 | <ide> | Tracing | trace\_events (API) | No ...
1
Python
Python
change tests to look at array formatting only
a11c16249451c552e70a5ff73406f95b50961aa5
<ide><path>numpy/testing/tests/test_utils.py <ide> def test_error_message(self): <ide> y = np.array([1.00000000002, 2.00000000003, 3.00004]) <ide> <ide> # test with a different amount of decimal digits <del> b = ('\nArrays are not almost equal to 12 decimals\n\n(mismatch ' <del> '100...
1
Javascript
Javascript
fix typos in examples
bcf78ebb18fdf463d69c08fafd5d27be6a0d1423
<ide><path>src/ngAnimate/module.js <ide> * jQuery(element).fadeOut(1000, doneFn); <ide> * } <ide> * } <del> * }] <add> * }]); <ide> * ``` <ide> * <ide> * The nice thing about JS-based animations is that we can inject other services and make use of advanced animation libraries such as <ide> * //...
1
Javascript
Javascript
use a class for dependency references
8570165c1f8f00a7a513f2b4f8ce54e0af7404c4
<ide><path>lib/Dependency.js <ide> Author Tobias Koppers @sokra <ide> */ <ide> "use strict"; <add> <ide> const compareLocations = require("./compareLocations"); <add>const DependencyReference = require("./dependencies/DependencyReference"); <ide> <ide> class Dependency { <ide> constructor() { <ide> class Dependency ...
8
Text
Text
clarify ctx.query type on getserversideprops
0d98f370aaa6873e40d301b73948b48d58219ce1
<ide><path>docs/basic-features/data-fetching.md <ide> The `context` parameter is an object containing the following keys: <ide> - `params`: If this page uses a dynamic route, `params` contains the route parameters. If the page name is `[id].js` , then `params` will look like `{ id: ... }`. To learn more, take a look at...
1
Javascript
Javascript
remove unneeded chain declaration
ee5c5630877fb69e6c6263dda814b3d4f00ab971
<ide><path>src/applyMiddleware.js <ide> export default function applyMiddleware(...middlewares) { <ide> `Other middleware would not be applied to this dispatch.` <ide> ) <ide> } <del> let chain = [] <ide> <ide> const middlewareAPI = { <ide> getState: store.getState, <ide> dispatc...
1
Javascript
Javascript
fix error for example test cases
f2e1c043722f4e64867b01b4455f9ea686ebf562
<ide><path>test/Examples.test.js <ide> describe("Examples", () => { <ide> } <ide> webpack(options, (err, stats) => { <ide> if (err) return done(err); <del> stats = stats.toJson({ <del> errorDetails: true <del> }); <del> if (stats.errors.length > 0) { <del> return done(new Error(stats....
1
Go
Go
fix some comments
d5da7e53303dc1dd5d7d9062bf04318b129fc383
<ide><path>pkg/sysinfo/sysinfo_linux.go <ide> func New(quiet bool, options ...Opt) *SysInfo { <ide> return sysInfo <ide> } <ide> <del>// applyMemoryCgroupInfo reads the memory information from the memory cgroup mount point. <add>// applyMemoryCgroupInfo adds the memory cgroup controller information to the info. <ide>...
1
Python
Python
attach existing volume in create_node
5a3c94a3f6e726d660ee93d0e4db19964d28b565
<ide><path>libcloud/compute/drivers/digitalocean.py <ide> def list_volumes(self): <ide> return list(map(self._to_volume, data)) <ide> <ide> def create_node(self, name, size, image, location, ex_create_attr=None, <del> ex_ssh_key_ids=None, ex_user_data=None): <add> ex_s...
1
Text
Text
add iwildcam link
e79b53e721cd02d3b5dab5bb6e989933a3b77fdb
<ide><path>research/object_detection/g3doc/deepmac.md <ide> Resolution | Mask head | Config name | Mask m <ide> * [DeepMAC Colab](../colab_tutorials/deepmac_colab.ipynb) lets you run a <ide> pre-trained DeepMAC model on user-specified boxes. Note that you are not <ide> restr...
1