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
Go
Go
move 'search' to the registry subsystem
c4089ad80bcc1466535696ac0b11d388df529391
<ide><path>registry/service.go <ide> import ( <ide> // following calls: <ide> // <ide> // 'auth': Authenticate against the public registry <del>// 'search': Search for images on the public registry (TODO) <add>// 'search': Search for images on the public registry <ide> // 'pull': Download images from any registry (...
2
Javascript
Javascript
remove unuseful variable
1a75647a27c42a1f40a65fc30b306f3072ccce6f
<ide><path>examples/node/getinfo.js <ide> // `gulp singlefile` before running the example. <ide> // <ide> <del>var fs = require('fs'); <del> <ide> // Run `gulp dist-install` to generate 'pdfjs-dist' npm package files. <ide> var pdfjsLib = require('pdfjs-dist'); <ide>
1
Go
Go
fix error handling in createloadbalncersandbox()
31d3de0994cd1073474374ccd48e2ec2da3ab28e
<ide><path>libnetwork/network.go <ide> func (n *network) lbEndpointName() string { <ide> return n.name + "-endpoint" <ide> } <ide> <del>func (n *network) createLoadBalancerSandbox() error { <add>func (n *network) createLoadBalancerSandbox() (retErr error) { <ide> sandboxName := n.lbSandboxName() <ide> sbOptions := ...
1
Ruby
Ruby
ignore deprecations when uninstalling
39a0fec95d884ed6b6b620ff6fcb3d16fc23ff9f
<ide><path>Library/Homebrew/cmd/uninstall.rb <ide> def handle_unsatisfied_dependents(kegs_by_rack) <ide> <ide> all_kegs = kegs_by_rack.values.flatten(1) <ide> check_for_dependents all_kegs <add> rescue MethodDeprecatedError <add> # Silently ignore deprecations when uninstalling. <add> nil <ide> end <i...
1
PHP
PHP
update doc blocks
0d14bf7cc87feabaa5ecc5cbcf6bd85bef8dbee0
<ide><path>lib/Cake/Network/Http/HttpSocket.php <ide> public function get($uri = null, $query = array(), $request = array()) { <ide> } <ide> <ide> /** <del> * Issues a HEAD request to the specified URI, query, and request. <del> * <add> * Issues a HEAD request to the specified URI, query, and request. <add> * <ide>...
2
PHP
PHP
remove unused $changehistory variable
a0fb014043e945e2c91ff0cd346834ea4afe4524
<ide><path>src/Illuminate/Foundation/Testing/ApplicationTrait.php <ide> public function route($method, $name, $routeParameters = [], $parameters = [], $ <ide> { <ide> $uri = $this->app['url']->route($name, $routeParameters); <ide> <del> return $this->call($method, $uri, $parameters, $cookies, $files, $server, $con...
1
Mixed
Python
update main conversion script and readme
603c513b35d1daf623e48eb68d54e06502d5e17d
<ide><path>README.md <ide> Here is an example of the conversion process for a pre-trained `BERT-Base Uncase <ide> ```shell <ide> export BERT_BASE_DIR=/path/to/bert/uncased_L-12_H-768_A-12 <ide> <del>pytorch_pretrained_bert convert_tf_checkpoint_to_pytorch \ <add>pytorch_pretrained_bert bert \ <ide> $BERT_BASE_DIR/be...
3
Ruby
Ruby
remove useless code
d7ddaa530fd1b94e22d745cbaf2e8a5a34ee9734
<ide><path>activerecord/lib/active_record/associations/join_dependency.rb <ide> def columns <ide> end <ide> <ide> def instantiate(result_set) <del> primary_key = join_root.aliased_primary_key <ide> parents = {} <ide> <add> primary_key = join_root.aliased_primary_key <ide> typ...
1
Python
Python
remove attributes that are not needed when caching
963c5fe4a702f906576ae66e2c4c3193896fcd38
<ide><path>rest_framework/response.py <ide> def status_text(self): <ide> # TODO: Deprecate and use a template tag instead <ide> # TODO: Status code text for RFC 6585 status codes <ide> return STATUS_CODE_TEXT.get(self.status_code, '') <add> <add> def __getstate__(self): <add> """ <add>...
1
PHP
PHP
fix bug in view extending
17bfed2d234f19ddfa183ef93039c225873c5e53
<ide><path>src/Illuminate/View/Environment.php <ide> public function addExtension($extension, $engine, $resolver = null) <ide> $this->engines->register($engine, $resolver); <ide> } <ide> <del> unset($this->extensions[$engine]); <add> unset($this->extensions[$extension]); <ide> <ide> $this->extensions = array...
1
Python
Python
fix image id in libvirt driver
095f9676322f314c3dcf5ae9fad1a1c64b5b5d62
<ide><path>libcloud/compute/drivers/libvirt_driver.py <ide> def list_images(self, location=IMAGES_LOCATION): <ide> name, size = image.split(' ') <ide> name = name.replace(IMAGES_LOCATION + '/', '') <ide> size = int(size) <del> nodeimage = NodeImage(id=image, name=name, dri...
1
Ruby
Ruby
move more code to utils/analytics
3a9f585ebbd1893a034575b49f64a200c5385365
<ide><path>Library/Homebrew/cmd/analytics.rb <ide> def analytics_args <ide> <ide> def analytics <ide> analytics_args.parse <del> config_file = HOMEBREW_REPOSITORY/".git/config" <ide> <ide> raise UsageError if args.remaining.size > 1 <ide> <ide> case args.remaining.first <ide> when nil, "state" <...
11
Python
Python
fix nullability changing code
0354cecbfd0cbd4e7440d56332dbb4d20f6a2fb2
<ide><path>django/db/backends/schema.py <ide> def alter_field(self, model, old_field, new_field, strict=False): <ide> )) <ide> else: <ide> actions.append(( <del> self.sql_alter_column_null % { <add> self.sql_alter_column_not_null % { <ide...
3
PHP
PHP
hide db credentials
fcd0505d424aaafecfe3b051930e721efebac9f5
<ide><path>lib/Cake/Test/Case/Utility/DebuggerTest.php <ide> public function testGetInstance() { <ide> $result = Debugger::getInstance('Debugger'); <ide> $this->assertIsA($result, 'Debugger'); <ide> } <add> <add>/** <add> * testNoDbCredentials <add> * <add> * If a connection error occurs, the config variable is pa...
2
Go
Go
refactor some builder code
d7807c73169469c50e551704cc1957f798868f71
<ide><path>builder/dockerfile/parser/parser.go <ide> import ( <ide> "fmt" <ide> "io" <ide> "regexp" <add> "strconv" <ide> "strings" <ide> "unicode" <ide> <ide> type Node struct { <ide> EndLine int // the line in the original dockerfile where the node ends <ide> } <ide> <add>// Dump dumps the AST ...
2
Ruby
Ruby
use homebrew to detect if x11 is installed
006f25d8cfa5ffa9e4c531d49dcc99fe312edff6
<ide><path>Library/Homebrew/cask/lib/hbc/installer.rb <ide> def arch_dependencies <ide> <ide> def x11_dependencies <ide> return unless @cask.depends_on.x11 <del> raise CaskX11DependencyError, @cask.token if Hbc.x11_libpng.select(&:exist?).empty? <add> raise CaskX11DependencyError, @cask.token unles...
3
Python
Python
fix cudnn rnns
9fecc510372311e0bcf89077e12669016b93782a
<ide><path>keras/layers/cudnn_recurrent.py <ide> def __init__(self, <ide> self.supports_masking = False <ide> self.input_spec = [InputSpec(ndim=3)] <ide> if hasattr(self.cell.state_size, '__len__'): <del> self.state_spec = [InputSpec(shape=(None, dim)) <del> ...
2
Javascript
Javascript
remove silly exit
e3cfcdfb9c99d3182c43f364c0122acca1591199
<ide><path>scripts/run-android-ci-instrumentation-tests.js <ide> const { <ide> ls, <ide> } = require('shelljs'); <ide> <del>console.log(echo, exec, exit, ls); <del> <del>exit(0); <del> <ide> const argv = require('yargs').argv; <ide> const numberOfRetries = argv.retries || 1; <ide> const tryExecNTimes = require('./t...
1
Javascript
Javascript
update nav test
e2f236131e9d7719dd221d7d7be5e4fdf03c41c8
<ide><path>cypress/integration/default/learn/header/universal-navigation.js <ide> import { <ide> availableLangs, <add> hiddenLangs, <ide> LangNames <ide> } from '../../../../../config/i18n/all-langs'; <ide> import envData from '../../../../../config/env.json'; <ide> describe('Default Navigation Menu', () => { <ide...
1
Ruby
Ruby
fix bad merge
4e323f6ef09fed146a9302d7b7e3f09934de6e37
<ide><path>actionpack/lib/action_view/template_handlers/compilable.rb <ide> def compilable? <ide> end <ide> end <ide> <del> def render(template) <del> @view.send(:execute, template) <add> def render(template, local_assigns = {}) <add> @view.send(:execute, template, local_assigns) ...
1
Javascript
Javascript
remove preassignbindingsenabled leftovers
8e104ee508418bc2ebb65e5b4ac73d22285cc224
<ide><path>src/auto/injector.js <ide> var FN_ARG = /^\s*(_?)(\S+?)\1\s*$/; <ide> var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg; <ide> var $injectorMinErr = minErr('$injector'); <ide> <del>function stringifyFn(fn) { <del> return Function.prototype.toString.call(fn); <del>} <del> <ide> function extractArgs(fn...
5
Javascript
Javascript
convert system.import transform to babel 6
70c9ee8b1b983f61732aff1fd12718487e3da275
<ide><path>packager/react-packager/src/transforms/babel-plugin-system-import/6/index.js <add> /** <add> * Copyright (c) 2015-present, Facebook, Inc. <add> * All rights reserved. <add> * <add> * This source code is licensed under the BSD-style license found in the <add> * LICENSE file in the root directory of this ...
1
Go
Go
remove unused daemon.logtodisk function
1d23bae785ce8c94227def97b673307e1743db88
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) ensureName(container *Container) error { <ide> return nil <ide> } <ide> <del>func (daemon *Daemon) LogToDisk(src *broadcastwriter.BroadcastWriter, dst, stream string) error { <del> log, err := os.OpenFile(dst, os.O_RDWR|os.O_APPEND|os.O_CREATE, 0600) <del> if er...
1
Javascript
Javascript
remove "construct" call except on composites
acb49363d5eaa69042d6e895e9246c7d606711bd
<ide><path>src/renderers/dom/shared/ReactDOMComponent.js <ide> var globalIdCounter = 1; <ide> * @constructor ReactDOMComponent <ide> * @extends ReactMultiChild <ide> */ <del>function ReactDOMComponent(tag) { <add>function ReactDOMComponent(element) { <add> var tag = element.type; <ide> validateDangerousTag(tag); ...
7
Go
Go
remove job from info api
f4942ed864f00a31591ef0257a971ef41ddd4c70
<ide><path>api/client/info.go <ide> package client <ide> <ide> import ( <add> "encoding/json" <ide> "fmt" <ide> "os" <del> "time" <ide> <del> "github.com/Sirupsen/logrus" <del> "github.com/docker/docker/engine" <add> "github.com/docker/docker/api/types" <ide> flag "github.com/docker/docker/pkg/mflag" <ide> "githu...
7
Javascript
Javascript
add write()/end() callbacks
da93d6adfb0abfcaac26e1509748edca0db8c003
<ide><path>lib/_http_outgoing.js <ide> function OutgoingMessage() { <ide> <ide> this.output = []; <ide> this.outputEncodings = []; <add> this.outputCallbacks = []; <ide> <ide> this.writable = true; <ide> <ide> OutgoingMessage.prototype.destroy = function(error) { <ide> <ide> <ide> // This abstract either wr...
3
Text
Text
update translation for chinese
e2809bb6f773be64e547c55c84b970c11cb24048
<ide><path>guide/chinese/go/functions/index.md <ide> --- <ide> title: Go Functions <del>localeTitle: 去功能 <add>localeTitle: Go函数 <ide> --- <del>## 去功能 <add>## Go函数 <ide> <ide> 函数接受任何类型的零个或多个参数,对它们执行某些逻辑并可能返回一个或多个值。 Golang的函数语法是: <ide> <ide> func sum(parameter1 int64, parameter2 int64) int64 { <ide> } <ide> ``` <ide>...
1
Python
Python
add retryer to sftp hook connection
9af452aee53dd300535dadd108ce3e60c5f11a2e
<ide><path>airflow/providers/sftp/hooks/sftp.py <ide> from typing import Dict, List, Optional, Tuple <ide> <ide> import pysftp <add>import tenacity <add>from paramiko import SSHException <ide> <ide> from airflow.providers.ssh.hooks.ssh import SSHHook <ide> <ide> def __init__(self, ftp_conn_id: str = 'sftp_default', ...
1
Javascript
Javascript
implement the windows focus refreshing
d54e3f2d3c0b516be53b8151a6b1441ad12d6538
<ide><path>src/git-repository-async.js <ide> const fs = require('fs-plus') <ide> const Git = require('nodegit') <ide> const path = require('path') <del>const {Emitter, CompositeDisposable} = require('event-kit') <add>const {Emitter, CompositeDisposable, Disposable} = require('event-kit') <ide> <ide> const modifiedStat...
1
Ruby
Ruby
add polymorphic option to model generator
94b230e189e7241b96dcbfb41ceabedf7cfd14ac
<ide><path>activerecord/lib/rails/generators/active_record/model/templates/model.rb <ide> <% module_namespacing do -%> <ide> class <%= class_name %> < <%= parent_class_name.classify %> <ide> <% attributes.select {|attr| attr.reference? }.each do |attribute| -%> <del> belongs_to :<%= attribute.name %> <add> belongs_to...
4
Text
Text
add branch to company list
59c1dce1035785ed4f5350abda61837dfe23a1d9
<ide><path>README.md <ide> Currently **officially** using Airflow: <ide> 1. [Bodastage Solutions](http://bodastage.com) [[@erssebaggala](https://github.com/erssebaggala), [@bodastage](https://github.com/bodastage)] <ide> 1. [Bonnier Broadcasting](http://www.bonnierbroadcasting.com) [[@wileeam](https://github.com/wileea...
1
Text
Text
use code markup/markdown in headers
d9004dae6797bbdabd9169f36cb1ce5ff8877d86
<ide><path>doc/api/zlib.md <ide> These advanced options are available for controlling decompression: <ide> * Boolean flag enabling “Large Window Brotli” mode (not compatible with the <ide> Brotli format as standardized in [RFC 7932][]). <ide> <del>## Class: Options <add>## Class: `Options` <ide> <!-- YAML <ide> ...
1
Text
Text
add more info to v14 changelog
d08bd412481de12a846a9ee8ad96bd2aefb602b5
<ide><path>doc/changelogs/CHANGELOG_V14.md <ide> interact with `std::shared_ptr`. This is expected to be fixed in a later version <ide> #### Update to V8 8.1 <ide> <ide> * **(SEMVER-MAJOR)** **deps**: update V8 to 8.1.307.20 (Matheus Marchini) [#32116](https://github.com/nodejs/node/pull/32116) <add> * Enables Option...
1
Ruby
Ruby
use original `array#sum` to speed up calculating
0c34773bf57916e64f0fb15577891a6e5c5171c6
<ide><path>activesupport/lib/active_support/core_ext/enumerable.rb <ide> def sum(identity = nil) <ide> # just calling the compat method in the first place. <ide> if Array.instance_methods(false).include?(:sum) && !(%w[a].sum rescue false) <ide> class Array <del> remove_method :sum <add> alias :orig_sum :sum <id...
1
Ruby
Ruby
fix rubocop violations
f718ab6c722e253224716758976f19e607da0c0a
<ide><path>railties/test/generators/actions_test.rb <ide> def test_log_with_status_with_quiet <ide> end <ide> <ide> private <del> if RUBY_VERSION < "2.7" <del> def action(*args, &block) <del> capture(:stdout) { generator.send(*args, &block) } <del> end <del> else <del> def action(*args, **kwargs, &...
1
Javascript
Javascript
add mode util
e970afa0a50657a7d3057dc7937687c312962223
<ide><path>lib/util/mode.js <add>module.exports = function isProductionLikeMode(options) { <add> return options.mode === "production" || options.mode === "defaultedProduction"; <add>};
1
Text
Text
remove rails 4 text from asset pipeline guide
bcad7cebd46e8117aabebe4b2ae2e06bb64632dd
<ide><path>guides/source/asset_pipeline.md <ide> It allows assets in your application to be automatically combined with assets <ide> from other gems. For example, jquery-rails includes a copy of jquery.js <ide> and enables AJAX features in Rails. <ide> <del>The asset pipeline is technically no longer a core feature fr...
1
Javascript
Javascript
replace comma with "and"
9a26ab587011055cf95857f399c5bfa6a92f509d
<ide><path>src/ngRoute/route.js <ide> function $RouteProvider() { <ide> * {@link ng.$location $location} hasn't changed. <ide> * <ide> * As a result of that, {@link ngRoute.directive:ngView ngView} <del> * creates new scope, reinstantiates the controller. <add> * cre...
1
Javascript
Javascript
fix failure in test/sequential/test-heapdump.js
82181bb9b8a9861d9b69c2a6aeda454226e0f447
<ide><path>test/sequential/test-heapdump.js <ide> process.chdir(tmpdir.path); <ide> } <ide> <ide> { <del> const readonlyFile = 'ro'; <del> fs.writeFileSync(readonlyFile, Buffer.alloc(0), { mode: 0o444 }); <add> const directory = 'directory'; <add> fs.mkdirSync(directory); <ide> assert.throws(() => { <del> wri...
1
Javascript
Javascript
remove unused catch bindings
57c5c7d42920108a5812963122ed97b1ee4938ad
<ide><path>lib/events.js <ide> EventEmitter.prototype.emit = function emit(type, ...args) { <ide> value: enhanceStackTrace.bind(null, er, capture), <ide> configurable: true <ide> }); <del> } catch (e) {} <add> } catch {} <ide> <ide> // Note: The comments on the `throw` lines...
1
Text
Text
release notes for 1.0.0rc3 barefoot-telepathy
2f2fd465a40f675c969effd2324611533929fb73
<ide><path>CHANGELOG.md <add><a name="v1.0.0rc3"></a> <add># v1.0.0rc3 barefoot-telepathy (2012-03-29) <add> <add> <add>## Bug Fixes <add> <add>- **$compile:** <add> - properly clone attr.$observers in ng-repeat <add> ([f2106692](https://github.com/angular/angular.js/commit/f2106692b1ebf00aa5f8b2accd75f014b6cd4faa)...
1
Text
Text
add v3.10.0-beta.2 to changelog
c73fa31d138fb8a628db04b877a09206d60afb7c
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del>### v3.10.0-beta.2 (UNRELEASED) <add>### v3.10.0-beta.2 (April 08, 2019) <ide> <ide> - [#17846](https://github.com/emberjs/ember.js/pull/17846) [BUGFIX] Fix issues with template-only components causing errors in subsequent updates. <ide> - [#17870](https://gi...
1
Java
Java
improve usage of string.substring()
9da15ee23aff3960bb36caa980872dd04d9dbd9f
<ide><path>spring-aop/src/main/java/org/springframework/aop/aspectj/annotation/AspectMetadata.java <ide> public AspectMetadata(Class<?> aspectClass, String aspectName) { <ide> */ <ide> private String findPerClause(Class<?> aspectClass) { <ide> String str = aspectClass.getAnnotation(Aspect.class).value(); <del> st...
5
Python
Python
set version to 2.0.13.dev0
3fb828352d99c54cb0a53ce17601ccba40a66e0d
<ide><path>spacy/about.py <ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py <ide> <ide> __title__ = 'spacy' <del>__version__ = '2.0.12' <add>__version__ = '2.0.13.dev0' <ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython' <ide> __uri__ = 'https:/...
1
Javascript
Javascript
save bytes #135
4b9472b24d7eaa9acac8b1da74e6f4992ef0a90c
<ide><path>lib/APIPlugin.js <ide> function APIPlugin() { <ide> module.exports = APIPlugin; <ide> <ide> var REPLACEMENTS = { <del> __webpack_public_path__: "require.modules.c", <add> __webpack_public_path__: "require.p", <ide> __webpack_require__: "require", <ide> __webpack_modules__: "require.modules", <ide> __webp...
6
Javascript
Javascript
provide default args to tryinvoke - fixes
baede126baf9e001b67bdd45412be89e86a987bf
<ide><path>packages/ember-metal/lib/utils.js <ide> Ember.canInvoke = canInvoke; <ide> */ <ide> Ember.tryInvoke = function(obj, methodName, args) { <ide> if (canInvoke(obj, methodName)) { <del> return obj[methodName].apply(obj, args); <add> return obj[methodName].apply(obj, args || []); <ide> } <ide> };
1
PHP
PHP
remove unuse variable
a569df3cd814f891384ce73b3c8186f7b65521a0
<ide><path>src/Illuminate/Foundation/Console/ObserverMakeCommand.php <ide> protected function replaceModel($stub, $model) <ide> <ide> $model = class_basename(trim($model, '\\')); <ide> <del> $dummyModel = $model; <del> <del> $stub = str_replace('DocDummyModel', Str::snake($dummyModel, ' '), $stu...
1
Mixed
Python
improve entityruler serialization
40cd03fc358b12568aea95f7d11cc122677ad7dc
<ide><path>spacy/pipeline/entityruler.py <ide> def to_disk(self, path, **kwargs): <ide> """Save the entity ruler patterns to a directory. The patterns will be <ide> saved as newline-delimited JSON (JSONL). <ide> <del> path (unicode / Path): The JSONL file to load. <add> path (unicode / Pa...
2
Text
Text
add julianduque as collaborator
ea02d90cd0672c30536ea7faafc9c442c8f8e2c8
<ide><path>README.md <ide> information about the governance of the io.js project, see <ide> * **Brian White** ([@mscdex](https://github.com/mscdex)) &lt;mscdex@mscdex.net&gt; <ide> * **Christian Vaagland Tellnes** ([@tellnes](https://github.com/tellnes)) &lt;christian@tellnes.com&gt; <ide> * **Robert Kowalski** ([@robe...
1
Mixed
Javascript
add prop to configure `importantforautofill`.
9126add6b95d4d3defb9bb4d2a934252d1772907
<ide><path>Libraries/Components/TextInput/TextInput.js <ide> type AndroidProps = $ReadOnly<{| <ide> underlineColorAndroid?: ?ColorValue, <ide> inlineImageLeft?: ?string, <ide> inlineImagePadding?: ?number, <add> importantForAutofill?: ?( <add> | 'auto' <add> | 'no' <add> | 'noExcludeDescendants' <add> ...
2
Ruby
Ruby
add inspect methods to patch classes
c91c2c10d8f4850c7d82434e3832beb7fdd2d187
<ide><path>Library/Homebrew/patch.rb <ide> def apply <ide> # in case we are indirectly referenced by an exception later. <ide> @io = nil <ide> end <add> <add> def inspect <add> "#<#{self.class}: #{strip.inspect}>" <add> end <ide> end <ide> <ide> class ExternalPatch < Patch <ide> def apply <ide> sa...
1
Text
Text
fix typo in rails test runner section
700623936e84eb35a7d27c1b4d72c09ae717bdfe
<ide><path>guides/source/testing.md <ide> You can also run an entire directory of tests by providing the path to the direc <ide> $ bin/rails test test/controllers # run all tests from specific directory <ide> ``` <ide> <del>The test runner provides lot of other features too like failing fast, deferring test output <ad...
1
Go
Go
remove job from container_inspect
4b9fe9c298c8778855c1d14e978c791496dd7c42
<ide><path>api/client/attach.go <ide> package client <ide> <ide> import ( <add> "encoding/json" <ide> "fmt" <ide> "io" <ide> "net/url" <ide> <ide> "github.com/Sirupsen/logrus" <del> "github.com/docker/docker/engine" <add> "github.com/docker/docker/api/types" <ide> flag "github.com/docker/docker/pkg/mflag" <ide> ...
13
PHP
PHP
fix php cs
c5e99294ffc4f94659ec0a336b8234dfe8eb0d5c
<ide><path>src/View/Helper/BreadcrumbsHelper.php <ide> public function insertAfter($matchingTitle, $title, $link = null, array $options <ide> */ <ide> public function getCrumbs() <ide> { <del> return $this->crumbs; <add> return $this->crumbs; <ide> } <ide> <ide> /** <ide> public funct...
1
Text
Text
apply grammar changes
56f37dbe126650d626a27c0f15ad5223977ae2ad
<ide><path>guide/english/python/share-file-using-python-simple-http-server/index.md <ide> --- <ide> title: Share File Using Python SimpleHTTPserver <ide> --- <del>## The steps need to follow for sending the file. <add>## The steps you need to follow for sending the file. <ide> <ide> 1. Make sure both the computers co...
1
Java
Java
fix minor issue in jettyrequestupgradestrategy
c48a41ea7a16e90eec520b6a3f311427e0e9ed18
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/server/support/JettyRequestUpgradeStrategy.java <ide> public JettyRequestUpgradeStrategy() { <ide> * {@link WebSocketServerFactory#getPolicy()}. <ide> */ <ide> public JettyRequestUpgradeStrategy(WebSocketServerFactory factory) { <add> Assert...
1
Python
Python
prepare 2.1.2 release
26d5e100148272166868da8f817e1a4fb49e34cc
<ide><path>keras/__init__.py <ide> from .models import Model <ide> from .models import Sequential <ide> <del>__version__ = '2.1.1' <add>__version__ = '2.1.2' <ide><path>setup.py <ide> <ide> <ide> setup(name='Keras', <del> version='2.1.1', <add> version='2.1.2', <ide> description='Deep Learning for Py...
2
PHP
PHP
fix method order
496406ce209bb5b9ef99658ce3a62f6f4415b559
<ide><path>src/Illuminate/Mail/Mailer.php <ide> public function onQueue($queue, $view, array $data, $callback) <ide> */ <ide> public function queueOn($queue, $view, array $data, $callback) <ide> { <del> return $this->onQueue($view, $data, $callback, $queue); <add> return $this->onQueue($queue...
1
Text
Text
update broken link in "why react" post
3141bc5084ef73e8187cef3df736413e15ba2400
<ide><path>docs/_posts/2013-06-05-why-react.md <ide> React really shines when your data changes over time. <ide> In a traditional JavaScript application, you need to look at what data changed <ide> and imperatively make changes to the DOM to keep it up-to-date. Even AngularJS, <ide> which provides a declarative interfa...
1
Text
Text
replace broken link
2d24fb80e1cf91a4a896cdbeda968053cbbaa06d
<ide><path>.github/CONTRIBUTING.md <ide> If you've found a security related issue in CakePHP, please don't open an issue <ide> * [Existing issues](https://github.com/cakephp/cakephp/issues) <ide> * [Development Roadmaps](https://github.com/cakephp/cakephp/wiki#roadmaps) <ide> * [General GitHub documentation](https://he...
1
Javascript
Javascript
remove extraneous check
8d3c3c564009925b7502a5a034ab24404c06ca44
<ide><path>lib/wasm/WebAssemblyGenerator.js <ide> const rewriteImportedGlobals = state => bin => { <ide> <ide> bin = editWithAST(state.ast, bin, { <ide> ModuleImport(path) { <del> if (t.isGlobalType(path.node.descr) === true) { <add> if (t.isGlobalType(path.node.descr)) { <ide> const globalType = path.node....
1
Javascript
Javascript
remove incorrect test case
d6ccbb9febdd94081a056042a08e00e41e7bede2
<ide><path>test/configCases/source-map/sources-array-production-cheap-map/index.js <del>it("should include test.js in SourceMap", function() { <del> var fs = require("fs"); <del> var source = fs.readFileSync(__filename + ".map", "utf-8"); <del> var map = JSON.parse(source); <del> map.sources.should.containEql("webpack:...
3
Javascript
Javascript
remove console.log derp
24d862cd6bf61fe31ef26a82c52e277b15411182
<ide><path>examples/active-class-name/components/Link.js <ide> const ActiveLink = ({ router, children, ...props }) => { <ide> let className = child.props.className || null <ide> if (router.pathname === props.href && props.activeClassName) { <ide> className = `${className !== null ? className : ''} ${props.activ...
1
Go
Go
simplify address formating
38303597452719fe4942c45a03783a9299235e1b
<ide><path>pkg/parsers/parsers.go <ide> func ParseTCPAddr(tryAddr string, defaultAddr string) (string, error) { <ide> return "", fmt.Errorf("Invalid bind address format: %s", tryAddr) <ide> } <ide> <del> if net.ParseIP(host).To4() == nil && strings.Contains(host, ":") { <del> // This is either an ipv6 address <del...
1
Text
Text
remove extraneous word from instructions
58aea70c9e52268651b78e10814f03105bdd3bd2
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-accessibility-by-building-a-quiz/step-028.md <ide> dashedName: step-28 <ide> <ide> Give each `fieldset` an adaquate `name` attribute. Then, give both unordered lists a `class` of `answers-list`. <ide> <del>Finally, add use the `legend` to capt...
1
Go
Go
fix unused context (staticcheck)
5ded7886c3b313b0396eef0761c378075ad85d81
<ide><path>daemon/cluster/nodes.go <ide> func (c *Cluster) GetNode(input string) (types.Node, error) { <ide> <ide> // UpdateNode updates existing nodes properties. <ide> func (c *Cluster) UpdateNode(input string, version uint64, spec types.NodeSpec) error { <del> return c.lockedManagerAction(func(ctx context.Context, ...
1
Text
Text
fix typo in form helpers guide
0ddae9fcf6a648b48cf06562a95618ea6c84fbbb
<ide><path>guides/source/form_helpers.md <ide> Whenever Rails sees that the internal value of an option being generated matches <ide> <ide> TIP: The second argument to `options_for_select` must be exactly equal to the desired internal value. In particular if the value is the integer 2 you cannot pass "2" to `options_f...
1
Ruby
Ruby
use singular, `instance`, in deprecation warning
ec737fb8460d5ffcc26ba3ee5a8cb8cb7905c701
<ide><path>actionview/lib/action_view/base.rb <ide> def compiled_method_container <ide> ActiveSupport::Deprecation.warn <<~eowarn.squish <ide> ActionView::Base instances must implement `compiled_method_container` <ide> or use the class method `with_empty_template_cache` for constructing <del...
1
Javascript
Javascript
handle multi-corking properly
a58454226f4833e40c6a9040c813abd0c0e10893
<ide><path>lib/_stream_writable.js <ide> function WritableState(options, stream) { <ide> this.writing = false; <ide> <ide> // when true all writes will be buffered until .uncork() call <del> this.corked = false; <add> this.corked = 0; <ide> <ide> // a flag to be able to tell if the onwrite cb is called immedi...
2
Ruby
Ruby
subsume historic logic
f59eb358c29c5f40601a99e3f1bf7e8e891f10ba
<ide><path>Library/Homebrew/cmd/info.rb <ide> require "keg" <ide> require "tab" <ide> require "json" <del>require "historic" <ide> <ide> module Homebrew <ide> module_function <ide> def print_info <ide> end <ide> rescue FormulaUnavailableError => e <ide> # No formula with this name, try a ...
8
Javascript
Javascript
remove lgtm errors
9d0f2651c22183341fb694f8a4796f7293be0f19
<ide><path>examples/js/loaders/XLoader.js <ide> THREE.XLoader = ( function () { <ide> classCallCheck( this, XLoader ); <ide> <ide> this.debug = false; <del> this.manager = manager !== undefined ? manager : new THREE.DefaultLoadingManager(); <add> this.manager = manager !== undefined ? manager : THREE.Default...
2
Javascript
Javascript
update jquery-ujs and prototype-ujs
9ef4b70b208c4c55b4fb981e4ec1ff7396a22a1a
<ide><path>railties/lib/rails/generators/rails/app/templates/vendor/assets/javascripts/jquery_ujs.js <ide> * <ide> * Requires jQuery 1.4.3 or later. <ide> * https://github.com/rails/jquery-ujs <add> <add> * Uploading file using rails.js <add> * ============================= <add> * <add> * By default, browsers do no...
2
Javascript
Javascript
remove factory injections
579f857f822eef990a2f9520128120c103c240fe
<ide><path>packages/container/lib/registry.js <ide> export default function Registry(options) { <ide> <ide> this._typeInjections = dictionary(null); <ide> this._injections = dictionary(null); <del> this._factoryTypeInjections = dictionary(null); <del> this._factoryInjections = dictionary(nu...
2
Java
Java
fix javadoc for behaviorsubject
c309036676e2491594f1af4ace88004a5de5ba88
<ide><path>src/main/java/io/reactivex/subjects/BehaviorSubject.java <ide> * <p> <ide> * <pre> {@code <ide> <del> // observer will receive all events. <del> BehaviorSubject<Object> subject = BehaviorSubject.create("default"); <add> // observer will receive all 4 events (including "default"). <add> BehaviorSubject...
1
Ruby
Ruby
remove trailing `version` from `short_version`
7b9556db0618e3b3752d74572a3c4108a36878fe
<ide><path>Library/Homebrew/bundle_version.rb <ide> def nice_version <ide> <ide> sig { returns(T::Array[String]) } <ide> def nice_parts <add> short_version = self.short_version&.delete_suffix("(#{version})") if version <add> <ide> return [short_version] if short_version == version <ide> <ide> ...
2
Go
Go
remove lcow code
dc70e55c9b84c4ff9304b251b98ef22914530880
<ide><path>distribution/config.go <ide> package distribution // import "github.com/docker/docker/distribution" <ide> import ( <ide> "context" <ide> "encoding/json" <del> "fmt" <ide> "io" <ide> "runtime" <ide> <ide> import ( <ide> "github.com/docker/libtrust" <ide> digest "github.com/opencontainers/go-digest" <id...
2
PHP
PHP
fix transaction problems on closure transaction
c4cdfc7c54127b772ef10f37cfc9ef8e9d6b3227
<ide><path>src/Illuminate/Database/Concerns/ManagesTransactions.php <ide> public function transaction(Closure $callback, $attempts = 1) <ide> } <ide> <ide> try { <del> $this->commit(); <add> if ($this->transactions == 1) { <add> $this->getPdo()->...
1
Python
Python
add one more test
a0a1863ac67be681d593859a67e154b7c0931af4
<ide><path>numpy/core/tests/test_multiarray.py <ide> def collect_warning_types(f, *args, **kwargs): <ide> def test_record_hash(self): <ide> a = np.array([(1,2),(1,2)], dtype='i1,i2') <ide> b = np.array([(1,2),(3,4)], dtype=[('num1', 'i1'), ('num2', 'i2')]) <add> c = np.array([(1,2),(3,4)], dt...
1
Ruby
Ruby
replace concurrent map with a regular hash
aff51e8f90b83c65392f9b45f3db41228c5d1312
<ide><path>activesupport/lib/active_support/testing/time_helpers.rb <ide> class SimpleStubs # :nodoc: <ide> Stub = Struct.new(:object, :method_name, :original_method) <ide> <ide> def initialize <del> @stubs = Concurrent::Map.new do |h, k| <del> h.compute_if_absent(k) { {} } <del> end...
1
Text
Text
fix a bunch of issues with service api docs
79e1d3877a1b1697028399b8ce39c4ee27b60a96
<ide><path>docs/reference/api/docker_remote_api_v1.25.md <ide> List services <ide> "UpdatedAt": "2016-06-07T21:07:29.962229872Z", <ide> "Spec": { <ide> "Name": "hopeful_cori", <del> "Task": { <add> "TaskTemplate": { <ide> "ContainerSpec": { <ide> "Im...
1
Javascript
Javascript
fix failing e2e tests
0c49bbdc38d228c7612bbda0420e4f17ba501528
<ide><path>src/ng/directive/ngView.js <ide> <ide> <div ng-controller="MainCntl"> <ide> Choose: <del> <a href="/Book/Moby">Moby</a> | <del> <a href="/Book/Moby/ch/1">Moby: Ch1</a> | <del> <a href="/Book/Gatsby">Gatsby</a> | <del> <a href="/Book/Gatsby/ch/4?key=value...
2
Javascript
Javascript
add helper fn for async init
28f3ffba0fd732fb8faa49e02049dfb1ee5c5911
<ide><path>lib/internal/timers.js <ide> module.exports = { <ide> async_id_symbol, <ide> trigger_async_id_symbol, <ide> Timeout, <add> initAsyncResource, <ide> refreshFnSymbol, <ide> setUnrefTimeout, <ide> validateTimerDuration <ide> function getTimers() { <ide> return timers; <ide> } <ide> <add>function...
2
PHP
PHP
fix engine issueing
b6b56c679435481faf435dd3435b118696aeefe5
<ide><path>src/Illuminate/View/Factory.php <ide> protected function getExtension($path) <ide> $extensions = array_keys($this->extensions); <ide> <ide> return Arr::first($extensions, function ($key, $value) use ($path) { <del> return Str::endsWith($path, $value); <add> return Str::...
1
Python
Python
set version to v2.0.8
1b3c98e01b60dd2874eb61c4d0c9d1a6810c6c0f
<ide><path>spacy/about.py <ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py <ide> <ide> __title__ = 'spacy' <del>__version__ = '2.0.8.dev0' <add>__version__ = '2.0.8' <ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython' <ide> __uri__ = 'https://s...
1
Text
Text
add new initializations to the docs
2d5c1c3702ba2676cdc26bd5affc750dc93a4a38
<ide><path>docs/sources/initializations.md <ide> model.add(Dense(64, 64, init='uniform')) <ide> - __orthogonal__: Use with square 2D layers (`shape[0] == shape[1]`). <ide> - __zero__ <ide> - __glorot_normal__: Gaussian initialization scaled by fan_in + fan_out (Glorot 2010) <add>- __glorot_uniform__ <ide> - __he_normal...
1
Python
Python
improve error message
00efcf2be242acfa8821dec7c2ec14537a5f9584
<ide><path>libcloud/common/openstack_identity.py <ide> def _get_unscoped_token_from_oidc_token(self): <ide> driver=self.driver) <ide> else: <ide> raise MalformedResponseError('Malformed response', <del> driver=self....
1
Python
Python
fix url double quoted in django 1.6
80e9f0d64b0ace50d413eaccbf28a3b4ded75ed3
<ide><path>rest_framework/templatetags/rest_framework.py <ide> def add_query_param(request, key, val): <ide> """ <ide> Add a query parameter to the current request url, and return the new url. <ide> """ <del> return replace_query_param(request.get_full_path(), key, val) <add> return replace_query_para...
2
Javascript
Javascript
skip tests with common.skip
5d4273d1226d3b6a86970a2112b3c5f2eff52f5d
<ide><path>test/parallel/test-crypto-authenticated.js <ide> for (const i in TEST_CASES) { <ide> } <ide> <ide> if (common.hasFipsCrypto && test.iv.length < 24) { <del> console.log('1..0 # Skipped: IV len < 12 bytes unsupported in FIPS mode'); <add> common.skip('IV len < 12 bytes unsupported in FIPS mode'); <i...
2
Go
Go
fix json encoding, and use less casts
5a36efb61fae88a7fe71f67a6b1f8b9da6468014
<ide><path>api.go <ide> func postImagesCreate(srv *Server, version float64, w http.ResponseWriter, r *ht <ide> registry := r.Form.Get("registry") <ide> if err := srv.ImagePull(image, tag, registry, w, sf); err != nil { <ide> if sf.Used() { <del> fmt.Fprintf(w, sf.FormatError(err)) <add> w.Write(sf.FormatEr...
4
Text
Text
add changelog entry
937f7d582efc75bae336fbf1de4bd93476ab7f5e
<ide><path>actionmailbox/CHANGELOG.md <add>* Add `ApplicationMailbox.mailbox_for` to expose mailbox routing. <ide> <add> *James Dabbs* <ide> <ide> Please check [6-0-stable](https://github.com/rails/rails/blob/6-0-stable/actionmailbox/CHANGELOG.md) for previous changes.
1
PHP
PHP
move logic to afterdelete
01e035f726cf26ac04b002c43733b4b6b86f4a32
<ide><path>lib/Cake/Model/Behavior/TreeBehavior.php <ide> class TreeBehavior extends ModelBehavior { <ide> 'scope' => '1 = 1', 'type' => 'nested', '__parentChange' => false, 'recursive' => -1 <ide> ); <ide> <add>/** <add> * Used to preserve state between delete callbacks. <add> * <add> * @var array <add> */ <add> p...
1
Go
Go
add good logging support to both sides
50c752fcb06497e9e597049a1007c53d77032d17
<ide><path>pkg/libcontainer/nsinit/exec.go <ide> import ( <ide> "github.com/dotcloud/docker/pkg/term" <ide> "io" <ide> "io/ioutil" <add> "log" <ide> "os" <ide> "os/exec" <ide> "syscall" <ide> ) <ide> <ide> // Exec performes setup outside of a namespace so that a container can be <ide> // executed. Exec is a hig...
3
Javascript
Javascript
fix interaction of flushing and needdrain
717a138b4a8d5b7e21349754ac14a1974840c991
<ide><path>lib/zlib.js <ide> const kRangeErrorMessage = 'Cannot create final Buffer. It would be larger ' + <ide> <ide> const constants = process.binding('constants').zlib; <ide> const { <del> Z_NO_FLUSH, Z_BLOCK, Z_SYNC_FLUSH, Z_FULL_FLUSH, Z_FINISH, Z_MIN_CHUNK, <del> Z_MIN_WINDOWBITS, Z_MAX_WINDOWBITS, Z_MIN_LEVE...
3
Text
Text
remove scrimba link for inaccurate video
b79a3329844fce92d039a38acdde913f5a1da8d0
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/use-the-conditional-ternary-operator.english.md <ide> id: 587d7b7e367417b2b2512b24 <ide> title: Use the Conditional (Ternary) Operator <ide> challengeType: 1 <del>videoUrl: 'https://scrimba.com/c/c3JRmSg' <ide> forumT...
1
Python
Python
fix complex casting error in cov with aweights
018dfbcaa69d8bcda4d909be11a65a188cf5d1dd
<ide><path>numpy/lib/function_base.py <ide> def cov(m, y=None, rowvar=True, bias=False, ddof=None, fweights=None, <ide> else: <ide> X_T = (X*w).T <ide> c = dot(X, X_T.conj()) <del> c *= 1. / np.float64(fact) <add> c *= np.true_divide(1, fact) <ide> return c.squeeze() <ide> <ide> <ide><path>n...
2
PHP
PHP
remove deprecated getrelation method on belongsto
94f425eb7cdd68b7a8842e42dbddde37e41fbcf1
<ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsTo.php <ide> public function getRelationName() <ide> { <ide> return $this->relationName; <ide> } <del> <del> /** <del> * Get the name of the relationship. <del> * <del> * @return string <del> * @deprecated The getRelationNam...
1
Javascript
Javascript
trigger error callback on native abort
76e9a95dbeaf28fbc5a64571ebb5959f91a9c14a
<ide><path>src/ajax/xhr.js <ide> support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); <ide> support.ajax = xhrSupported = !!xhrSupported; <ide> <ide> jQuery.ajaxTransport( function( options ) { <del> var callback; <add> var callback, errorCallback; <ide> <ide> // Cross domain only allowed if suppo...
2
Ruby
Ruby
prefer argv.build_head? to inspecting 'version'
9ebb1a3d08a3c84b8f176d2cbe5fbb4fe20716a4
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_formula_text name, text <ide> problems << " * Use ENV instead of invoking '#{$1}' to modify the environment" <ide> end <ide> <add> if text =~ /version == ['"]HEAD['"]/ <add> problems << " * Use 'ARGV.build_head?' instead of inspecting 'version'" <add> ...
1
Python
Python
add metadata file to new keras saving format
83b118f44ea7891a6f553e91aa2915109e1068c1
<ide><path>keras/saving/experimental/saving_lib.py <ide> # ============================================================================== <ide> """Python-based idempotent model-saving functionality.""" <ide> <add>import datetime <ide> import json <ide> import os <ide> import tempfile <ide> import tensorflow.compat.v2 ...
2
Javascript
Javascript
fix arguments order in assert.strictequal
26725820434c4b2d6529839459ae31fad8047a8b
<ide><path>test/parallel/test-http-client-upload.js <ide> const assert = require('assert'); <ide> const http = require('http'); <ide> <ide> const server = http.createServer(common.mustCall(function(req, res) { <del> assert.strictEqual('POST', req.method); <add> assert.strictEqual(req.method, 'POST'); <ide> req.set...
1