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
change subnet key schema in ipam
390a9702d236f7e170116fe3720170c91cc7d04f
<ide><path>libnetwork/ipam/allocator.go <ide> package ipam <ide> import ( <ide> "fmt" <ide> "net" <add> "strings" <ide> "sync" <ide> <ide> "github.com/docker/libnetwork/bitseq" <ide> type Allocator struct { <ide> // The internal subnets host size <ide> internalHostSize int <ide> // Static subnet information <de...
2
Javascript
Javascript
fix loading gltf zip files in the editor
bdba8e2af61494aac0b3c2fae7f15248405732b3
<ide><path>editor/js/Loader.js <ide> var Loader = function ( editor ) { <ide> var scene = result.scene; <ide> <ide> editor.addAnimation( scene, result.animations ); <del> editor.execute( new AddObjectCommand( scene ) ); <add> editor.execute( new AddObjectCommand( editor, scene ) ); <ide> <ide> ...
1
Ruby
Ruby
add assert_redirected_to test with custom message
28eb8b4818663033c808b59d7714ef1e03fb9150
<ide><path>actionpack/test/controller/action_pack_assertions_test.rb <ide> def test_assert_redirection_with_symbol <ide> } <ide> end <ide> <add> def test_assert_redirection_with_custom_message <add> error = assert_raise(ActiveSupport::TestCase::Assertion) do <add> assert_redirected_to "http://test.host/...
1
Javascript
Javascript
create experimental stub
819b926beb38b12a984c9cb9a1008bff5dc8559c
<ide><path>Libraries/Animated/createAnimatedComponent_EXPERIMENTAL.js <add>/** <add> * Copyright (c) Facebook, Inc. and its affiliates. <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 strict-local <add>...
1
Mixed
Javascript
allow use of filenames in exportpathmap
a79357f2a4bc8eca1bcc64ff30c411fee4842d98
<ide><path>lib/router/index.js <ide> export function _rewriteUrlForNextExport (url) { <ide> let [path, qs] = url.split('?') <ide> path = path.replace(/\/$/, '') <ide> <del> let newPath = `${path}/` <add> let newPath = path <add> // Append a trailing slash if this path does not have an extension <add> if (!/\.[...
6
Javascript
Javascript
unload the pdfstreamconverter on shutdown
08d3710bfc1dc76ecb66f0fab5aee4850c0ae4d3
<ide><path>extensions/firefox/bootstrap.js <ide> let Factory = { <ide> } <ide> }; <ide> <add>let pdfStreamConverterUrl = null; <add> <ide> // As of Firefox 13 bootstrapped add-ons don't support automatic registering and <ide> // unregistering of resource urls and components/contracts. Until then we do <ide> // it pr...
1
Java
Java
add compositecontentyperesolver and a builder
4af99473ffa36a75fb4d6d521f736a403a4f904f
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/accept/CompositeContentTypeResolver.java <add>/* <add> * Copyright 2002-2016 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 complianc...
4
PHP
PHP
fix cs error
7582d4b8348d0436109ca759076546636da9f274
<ide><path>src/Network/Http/FormData.php <ide> class FormData implements Countable <ide> /** <ide> * Whether or not this formdata object has attached files. <ide> * <del> * @var boolean <add> * @var bool <ide> */ <ide> protected $_hasFile = false; <ide>
1
PHP
PHP
add deprecation warning to _unwrap()
d5b239fb6786ce10158006bc1ca6bd60cea70926
<ide><path>src/Collection/CollectionTrait.php <ide> public function unwrap() <ide> * Backwards compatible wrapper for unwrap() <ide> * <ide> * @return \Traversable <del> * @deprecated <add> * @deprecated 3.0.10 Will be removed in 4.0.0 <ide> */ <ide> // @codingStandardsIgnoreLine <ide> ...
1
Javascript
Javascript
add spec for timepickerandroid
65b10b350e7a461f0a516a424cea6f625c6aadf3
<add><path>Libraries/Components/TimePickerAndroid/NativeTimePickerAndroid.js <del><path>Libraries/Components/TimePickerAndroid/TimePickerAndroidTypes.js <ide> * This source code is licensed under the MIT license found in the <ide> * LICENSE file in the root directory of this source tree. <ide> * <add> * @flow <ide> ...
3
Text
Text
remove versions from gems listing
1af528df58ea20fecd2668fd065144a1ba573658
<ide><path>guides/source/initialization.md <ide> dependencies of the application. `config/boot.rb` sets <ide> `ENV['BUNDLE_GEMFILE']` to the location of this file. If the Gemfile <ide> exists, `bundler/setup` is then required. <ide> <del>The gems that a Rails 4 application depends on are as follows: <del> <del>TODO: c...
1
Python
Python
add missing arguments for bertwordpiecetokenizer
90ec78b5140251f093f658ebd4d2925e8c03f5e6
<ide><path>src/transformers/tokenization_bert.py <ide> def __init__( <ide> unk_token=unk_token, <ide> sep_token=sep_token, <ide> cls_token=cls_token, <add> pad_token=pad_token, <add> mask_token=mask_token, <ide> clean_text=cle...
1
PHP
PHP
ignore non-scalar values for length
4fdd5e5d4595e9719a598bc12877709fc36a0b4e
<ide><path>lib/Cake/View/Helper/FormHelper.php <ide> public function input($fieldName, $options = array()) { <ide> } <ide> } <ide> <del> $autoLength = (!array_key_exists('maxlength', $options) && isset($fieldDef['length'])); <add> $autoLength = ( <add> !array_key_exists('maxlength', $options) && <add> isset...
1
PHP
PHP
check application.ssl when setting a secure cookie
785e168f5ed15908b1d15dc2071eedc1bc16e30e
<ide><path>laravel/cookie.php <ide> public static function put($name, $value, $expiration = 0, $path = '/', $domain <ide> <ide> $value = static::hash($value).'+'.$value; <ide> <add> // If the developer has explicitly disabled SLL, then we shouldn't force <add> // this cookie over SSL. <add> $secure = $secure && ...
1
Text
Text
reduce react test flakiness
ac7388dd1b4e63b7069c2b246149db835abb810d
<ide><path>curriculum/challenges/english/03-front-end-development-libraries/react/render-conditionally-from-props.md <ide> Each time the button is clicked, the counter state should be incremented by a va <ide> })(); <ide> ``` <ide> <del>When the `GameOfChance` component is first mounted to the DOM and each time the bu...
1
Javascript
Javascript
fix import of linkingios on android
fb29a95e011921ac043993a852223a27d1224464
<ide><path>Libraries/LinkingIOS/LinkingIOS.js <ide> var Linking = require('Linking'); <ide> var RCTLinkingManager = require('NativeModules').LinkingManager; <ide> var invariant = require('invariant'); <ide> <del>var _initialURL = RCTLinkingManager.initialURL; <add>var _initialURL = RCTLinkingManager && RCTLinkingManag...
1
Python
Python
add support for fetching logs from running pods
19ac45aacb00acc956025be4e607a0d7ea0ef6f2
<ide><path>airflow/kubernetes/pod_launcher.py <ide> def base_container_is_running(self, pod: V1Pod): <ide> wait=tenacity.wait_exponential(), <ide> reraise=True <ide> ) <del> def read_pod_logs(self, pod: V1Pod): <add> def read_pod_logs(self, pod: V1Pod, tail_lines: int = 10): <ide> """R...
3
Ruby
Ruby
fix exception in exception
85c3b55e2b77975370dcd0c07b953d281a9c8d07
<ide><path>Library/Homebrew/cask/exceptions.rb <ide> def initialize(path, reason) <ide> end <ide> <ide> def to_s <del> s = "Failed to quarantine #{path}." <add> s = +"Failed to quarantine #{path}." <ide> <ide> unless reason.empty? <ide> s << " Here's the reason:\n" <ide> def to_s <ide>...
1
Javascript
Javascript
fix assert.strictequal argument order
b4e979ff84bbd366218ddba73ce7f275415b3569
<ide><path>test/addons-napi/test_conversions/test.js <ide> const stringExpected = /string was expected/; <ide> <ide> const testSym = Symbol('test'); <ide> <del>assert.strictEqual(false, test.asBool(false)); <del>assert.strictEqual(true, test.asBool(true)); <add>assert.strictEqual(test.asBool(false), false); <add>asse...
1
PHP
PHP
fix coding standards
9d5b832c999ce3b4cdb85e3edd6190476b248a65
<ide><path>Cake/Controller/Component/PaginatorComponent.php <ide> <?php <ide> /** <del> * Paginator Component <del> * <ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <ide> * <ide> * ### Configuring pagination <id...
3
Javascript
Javascript
add redirects for legacy certification paths
6f8d36f4a74f1f0509585d48324801551f1e34a7
<ide><path>server/boot/certificate.js <ide> export default function certificate(app) { <ide> <ide> const superBlocks = Object.keys(superBlockCertTypeMap); <ide> <add> router.get( <add> '/:username/front-end-certification', <add> (req, res) => res.redirect( <add> `/certification/${req.params.username}/le...
1
PHP
PHP
add missing param tag
79cd455c40c5c81f835601ef115ce8c1928a341d
<ide><path>Cake/Database/Query.php <ide> protected function _stringifyExpressions(array $expressions, ValueBinder $genera <ide> * <ide> * @param string $table The table name to insert into. <ide> * @param array $columns The columns to insert into. <add> * @param array $types A map between columns & their datatypes. ...
1
Java
Java
remove trailing whitespace from source code
c335e99e3f720337dd2a01b4c8ea9d34718b9854
<ide><path>spring-aspects/src/test/java/org/springframework/mock/staticmock/AnnotationDrivenStaticEntityMockingControlTests.java <ide> /** <ide> * Tests for Spring's static entity mocking framework (i.e., @{@link MockStaticEntityMethods} <ide> * and {@link AnnotationDrivenStaticEntityMockingControl}). <del> * <add> ...
20
Javascript
Javascript
pass error on legacy destroy
51beb26a5fe0b409b976271cab6bf386eff8738a
<ide><path>lib/internal/streams/destroy.js <ide> function destroyer(stream, err) { <ide> // TODO: Don't lose err? <ide> stream.close(); <ide> } else if (err) { <del> process.nextTick(emitErrorCloseLegacy, stream); <add> process.nextTick(emitErrorCloseLegacy, stream, err); <ide> } else { <ide> proc...
2
Go
Go
use filepath.walkdir instead of filepath.walk
3db11af44b76b6554ff37799de56a36bd22b3c6d
<ide><path>libnetwork/drivers/overlay/ov_network.go <ide> func (n *network) destroySandbox() { <ide> } <ide> <ide> func populateVNITbl() { <del> filepath.Walk(filepath.Dir(osl.GenerateKey("walk")), <add> filepath.WalkDir(filepath.Dir(osl.GenerateKey("walk")), <ide> // NOTE(cpuguy83): The linter picked up on the fact...
1
Python
Python
fix spangroup import
0563cd73d6b9dc9a5cc639f9a33e45691229d82a
<ide><path>spacy/tokens/__init__.py <ide> from .doc import Doc <ide> from .token import Token <ide> from .span import Span <add>from .span_group import SpanGroup <ide> from ._serialize import DocBin <ide> from .morphanalysis import MorphAnalysis <ide> <del>__all__ = ["Doc", "Token", "Span", "DocBin", "MorphAnalysis"] ...
1
Go
Go
remove ref counting from layer store
e19499710e3728433cdc8348e985f9a825cb2336
<ide><path>layer/layer_store.go <ide> func (ls *layerStore) ReinitRWLayer(l RWLayer) error { <ide> ls.mountL.Lock() <ide> defer ls.mountL.Unlock() <ide> <del> m, ok := ls.mounts[l.Name()] <del> if !ok { <add> if _, ok := ls.mounts[l.Name()]; !ok { <ide> return ErrMountDoesNotExist <ide> } <del> <del> if err := m....
4
Python
Python
remove redundant parentheses
938cf201da513ab51d9c88990124607122994c5f
<ide><path>glances/plugins/glances_system.py <ide> def update(self): <ide> else: <ide> self.stats['hr_name'] = '{0} {1}'.format( <ide> self.stats['os_name'], self.stats['os_version']) <del> self.stats['hr_name'] += ' ({0})'.format(self.stats['platform']) <add> ...
1
Text
Text
add sass gobbling info to asset pipeline docs
4990a793470a1454d1ac06ad888c872e4ec50f9b
<ide><path>guides/source/asset_pipeline.md <ide> NOTE. If you want to use multiple Sass files, you should generally use the [Sass <ide> rule](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#import) instead <ide> of these Sprockets directives. Using Sprockets directives all Sass files exist <ide> within their ...
1
Text
Text
add punctuation. [ci skip]
65520c29f7e9fbd654446624a5c267bdc6285341
<ide><path>activerecord/CHANGELOG.md <del>* Added ActiveRecord::SecureToken in order to encapsulate generation of <del> unique tokens for attributes in a model using SecureRandom <add>* Added `ActiveRecord::SecureToken` in order to encapsulate generation of <add> unique tokens for attributes in a model using ...
1
Javascript
Javascript
fix setproctitle on freebsd
27e9ed6e9819794220fa7bd682125116ae76d3c4
<ide><path>test/sequential/test-setproctitle.js <ide> exec('ps -p ' + process.pid + ' -o args=', function(error, stdout, stderr) { <ide> assert.equal(stderr, ''); <ide> <ide> // freebsd always add ' (procname)' to the process title <del> if (process.platform === 'freebsd') title += ' (node)'; <add> if (process.p...
1
PHP
PHP
add a when method to collection
3cf02fa30ff6087ad14111c6d73e917dcb2920a6
<ide><path>src/Illuminate/Support/Collection.php <ide> public function filter(callable $callback = null) <ide> return new static(array_filter($this->items)); <ide> } <ide> <add> /** <add> * Apply the callback if the value is truthy. <add> * <add> * @param bool $value <add> * @param ca...
2
Ruby
Ruby
fix typos on the csrf whitelisting doc
faf27445d0f3bccdde6624ac0c7e156fdb263e5b
<ide><path>actionpack/lib/action_controller/metal/request_forgery_protection.rb <ide> class InvalidAuthenticityToken < ActionControllerError #:nodoc: <ide> # Controller actions are protected from Cross-Site Request Forgery (CSRF) attacks <ide> # by including a token in the rendered html for your application. This t...
1
Python
Python
enable auto_delete for the result queues again
a3bd35c653a66173dcc28586a7f196a1d5026e64
<ide><path>celery/backends/amqp.py <ide> class AMQResultWarning(UserWarning): <ide> <ide> <ide> class ResultPublisher(Publisher): <del> auto_delete = False <add> exchange = conf.RESULT_EXCHANGE <add> exchange_type = conf.RESULT_EXCHANGE_TYPE <add> delivery_mode = conf.RESULT_PERSISTENT and 2 or 1 <add> ...
1
Java
Java
add nullable annotation to simple queue (fixes )
e5d3b0e1de992719c88766558c4b5ad21a8725ba
<ide><path>src/main/java/io/reactivex/internal/disposables/EmptyDisposable.java <ide> package io.reactivex.internal.disposables; <ide> <ide> import io.reactivex.*; <add>import io.reactivex.annotations.Nullable; <ide> import io.reactivex.internal.fuseable.QueueDisposable; <ide> <ide> /** <ide> public boolean offer(Obj...
55
Ruby
Ruby
update hash format for render_text_test
9e9cc660773d331b04a829b4a727af70b3e23c16
<ide><path>actionpack/test/controller/new_base/render_text_test.rb <ide> class SimpleController < ActionController::Base <ide> self.view_paths = [ActionView::FixtureResolver.new] <ide> <ide> def index <del> render :text => "hello david" <add> render text: "hello david" <ide> end <ide> end <ide>...
1
Ruby
Ruby
add test for gemspec of the generated engine
855d14dd945c6d341242a0d8fd48cb4d424af8d1
<ide><path>railties/test/generators/plugin_new_generator_test.rb <ide> def test_create_mountable_application_with_mountable_option <ide> assert_file "app/views/layouts/bukkits/application.html.erb", /<title>Bukkits<\/title>/ <ide> end <ide> <add> def test_creating_gemspec <add> assert_file "bukkits.gemspec",...
1
Javascript
Javascript
read debugrenderphasesideeffects from gk
dbf715c958ca43cbcf47d5e3c69e76d6123eb142
<ide><path>packages/react-native-renderer/src/ReactNativeFeatureFlags.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>i...
3
Javascript
Javascript
move missplaced variable declaration
b5dcd1fb299c0297e9d16374fc326072ae49e509
<ide><path>examples/js/nodes/accessors/CameraNode.js <ide> THREE.CameraNode.prototype.setScope = function( scope ) { <ide> this.scope = scope; <ide> <ide> switch ( scope ) { <del> <del> var camera = this.camera <ide> <ide> case THREE.CameraNode.DEPTH: <ide> <add> var camera = this.camera <ide> this.near...
1
PHP
PHP
add more doc blocks
8e874aba7289559679ac4927967cb2f5c5d9148b
<ide><path>src/View/Input/DateTime.php <ide> public function __construct($templates, $selectBox) { <ide> * - `empty` - Set to true to add an empty option at the top of the <ide> * option elements. Set to a string to define the display value of the <ide> * empty option. <add> * <add> * In addtion to the above opt...
1
Go
Go
fix some minor issues in windows implementation
37a241768d2ed0f005ca376e76fc9e1e98cafe26
<ide><path>cmd/dockerd/daemon_windows.go <ide> func setDefaultUmask() error { <ide> } <ide> <ide> func getDaemonConfDir(root string) (string, error) { <del> return filepath.Join(root, `\config`), nil <add> return filepath.Join(root, "config"), nil <ide> } <ide> <ide> // preNotifyReady sends a message to the host when...
2
Text
Text
fix example in updating.md
d963467ddeb8df2f1be245589d8f41b409f60a67
<ide><path>UPDATING.md <ide> called `my_plugin` then your configuration looks like this <ide> <ide> ```ini <ide> [core] <del>executor = my_plguin.MyCustomExecutor <add>executor = my_plugin.MyCustomExecutor <ide> ``` <ide> And now it should look like this: <ide> ```ini
1
Text
Text
add latest item to the release notes
b2fb0deb349160016b8c3f35701654363c260139
<ide><path>docs/topics/release-notes.md <ide> You can determine your currently installed version using `pip freeze`: <ide> * AJAX browsable API. ([#3410][gh3410]) <ide> * Added JSONField. ([#3454][gh3454]) <ide> * Correctly map `to_field` when creating `ModelSerializer` relational fields. ([#3526][gh3526]) <add>* Inclu...
1
Text
Text
fix a typo in active support's changelog [ci skip]
482b74e793301bda3e6c8282a064485a6db01c55
<ide><path>activesupport/CHANGELOG.md <ide> <ide> *Godfrey Chan* <ide> <del>* Fix bug where `URI.unscape` would fail with mixed Unicode/escaped character input: <add>* Fix bug where `URI.unescape` would fail with mixed Unicode/escaped character input: <ide> <ide> URI.unescape("\xe3\x83\x90") # => "バ...
1
Go
Go
fix bad test comment
b02107db8b3ead7757141584523ce9b623c24c0b
<ide><path>integration-cli/docker_cli_events_test.go <ide> func (s *DockerSuite) TestEventsContainerRestart(c *check.C) { <ide> // wait until test2 is auto removed. <ide> waitTime := 10 * time.Second <ide> if daemonPlatform == "windows" { <del> // nslookup isn't present in Windows busybox. Is built-in. <add> // Wi...
1
Ruby
Ruby
update bundled flexmock to latest 0.4.3
7ca2b657f01b09014cd1fb0494fb13ab63dafe5c
<ide><path>activesupport/lib/active_support/vendor/flexmock.rb <ide> #!/usr/bin/env ruby <ide> <ide> #--- <del># Copyright 2003, 2004 by Jim Weirich (jim@weriichhouse.org). <add># Copyright 2003, 2004, 2005, 2006 by Jim Weirich (jim@weirichhouse.org). <ide> # All rights reserved. <ide> <ide> # Permission is granted f...
1
Mixed
Text
use hash#compact and hash#compact! from ruby 2.4
69a3fa1efc979f9d65110560d9779c2f8a74d8f6
<ide><path>activesupport/CHANGELOG.md <add>* Use `Hash#compact` and `Hash#compact!` from Ruby 2.4. Old Ruby versions <add> will continue to get these methods from Active Support as before. <add> <add> *Prathamesh Sonpatki* <add> <ide> * Fix `ActiveSupport::TimeZone#strptime`. <ide> Support for timestamps ...
2
Text
Text
add note about node_env being set automatically
72827d25cb5990156436d5fffc4bd3ab7a4bdd38
<ide><path>readme.md <ide> Then run `now` and enjoy! <ide> <ide> Next.js can be deployed to other hosting solutions too. Please have a look at the ['Deployment'](https://github.com/zeit/next.js/wiki/Deployment) section of the wiki. <ide> <add>Note: `NODE_ENV` is properly configured by the `next` subcommands, if absen...
1
Javascript
Javascript
update links to html spec for stripandcollapse
e1b1b2d7fe5aff907a9accf59910bc3b7e4d1dec
<ide><path>src/core/stripAndCollapse.js <ide> define( [ <ide> "use strict"; <ide> <ide> // Strip and collapse whitespace according to HTML spec <del> // https://html.spec.whatwg.org/multipage/infrastructure.html#strip-and-collapse-whitespace <add> // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace...
2
PHP
PHP
tap() return type
d3c8c8ea83ad82c7bc13ef37fcb99f90b9d3fdee
<ide><path>src/Illuminate/Support/Traits/Tappable.php <ide> trait Tappable <ide> * Call the given Closure with this instance then return the instance. <ide> * <ide> * @param callable|null $callback <del> * @return mixed <add> * @return $this|\Illuminate\Support\HigherOrderTapProxy <ide> */...
1
Javascript
Javascript
remove unneeded lazy check
b35fcaa45da30a593b9238aaa2194fc79c85d919
<ide><path>packages/ember-views/lib/views/view.js <ide> Ember.View = Ember.CoreView.extend( <ide> // Get the current value of the property <ide> newClass = this._classStringForProperty(binding); <ide> elem = this.$(); <del> if (!elem) { <del> removeObserver(this, parsedPath.path,...
1
Javascript
Javascript
fix bug in timers_uv timeout recomputation
1037f5c11369566b33debc47dedac2a1c65dae68
<ide><path>lib/timers_uv.js <ide> function insert(item, msecs) { <ide> <ide> list.ontimeout = function() { <ide> debug('timeout callback ' + msecs); <del> // TODO - don't stop and start the watcher all the time. <del> // just set its repeat <add> <ide> var now = new Date(); <ide> debug(...
1
PHP
PHP
add additional test for empty
0cb86ec3c09b859bbcd6e1b3a19e062a65e90618
<ide><path>Test/TestCase/View/Input/SelectBoxTest.php <ide> public function testRenderEmptyOption() { <ide> '/select' <ide> ]; <ide> $this->assertTags($result, $expected); <add> <add> $data['value'] = false; <add> $result = $select->render($data); <add> $this->assertTags($result, $expected); <ide> } <ide> <...
1
Javascript
Javascript
remove arity check from initializer
40bc56ca3c87edc9f0b9ae63772a1b706e67cfaf
<ide><path>packages/ember-application/lib/system/engine.js <ide> import { <ide> privatize as P <ide> } from 'container'; <ide> import DAG from 'dag-map'; <del>import { assert, deprecate } from 'ember-debug'; <add>import { assert } from 'ember-debug'; <ide> import { get, set } from 'ember-metal'; <ide> import DefaultR...
2
Go
Go
remove use of deprecated os.seek_end
6ee536b4a048bbb9aaa0a017eabecd83d8d2a69e
<ide><path>daemon/logger/loggerutils/logfile.go <ide> func NewLogFile(logPath string, capacity int64, maxFiles int, compress bool, mar <ide> return nil, err <ide> } <ide> <del> size, err := log.Seek(0, os.SEEK_END) <add> size, err := log.Seek(0, io.SeekEnd) <ide> if err != nil { <ide> return nil, err <ide> } <i...
1
Javascript
Javascript
trim expression only if string
a1341223c084c8188671bb8d6ea1608490b66f9f
<ide><path>src/ng/parse.js <ide> function $ParseProvider() { <ide> $parseOptions.csp = $sniffer.csp; <ide> <ide> return function(exp, interceptorFn) { <del> var parsedExpression, oneTime, <del> cacheKey = (exp = trim(exp)); <add> var parsedExpression, oneTime, cacheKey; <ide> <ide> sw...
1
PHP
PHP
fix multiple notification recipients
7bc1103a127d26442e60e343abf34bb6f6857f99
<ide><path>src/Illuminate/Notifications/Channels/MailChannel.php <ide> protected function getRecipients($notifiable, $notification, $message) <ide> <ide> return collect($recipients)->mapWithKeys(function ($recipient, $email) { <ide> return is_numeric($email) <del> ? [(is_string($...
2
Text
Text
add example declaration for clarity
e8b6a9e5dd2a43f1c392656acdf257bff77ff098
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/multiple-identical-options-in-switch-statements.md <ide> forumTopicId: 18242 <ide> If the <code>break</code> statement is omitted from a <code>switch</code> statement's <code>case</code>, the following <code>case</cod...
1
Go
Go
clear the containers/images upon failure
b8f66c0d14780bd8cb3b8916acc0287fcaf8cafa
<ide><path>builder.go <ide> func (builder *Builder) run(image *Image, cmd string) (*Container, error) { <ide> return container, nil <ide> } <ide> <del>func (builder *Builder) runCommit(image *Image, cmd string) (*Image, error) { <del> c, err := builder.run(image, cmd) <del> if err != nil { <del> return nil, err <add...
1
Ruby
Ruby
add missing ruby2_keywords in routingassertions
e3c9d566aee43545951648b8b60b1045dc4d8c37
<ide><path>actionpack/lib/action_dispatch/testing/assertions/routing.rb <ide> def method_missing(selector, *args, &block) <ide> super <ide> end <ide> end <add> ruby2_keywords(:method_missing) <ide> <ide> private <ide> # Recognizes the route for a given path.
1
PHP
PHP
add throws doc block
4e0f4734bea5898df31f558eaf43222d09020d23
<ide><path>src/Illuminate/Container/Container.php <ide> public function factory($abstract) <ide> * @param string $abstract <ide> * @param array $parameters <ide> * @return mixed <add> * <add> * @throws \Illuminate\Contracts\Container\BindingResolutionException <ide> */ <ide> public f...
1
Javascript
Javascript
improve empty typed array inspection
db6a24699abce1eba6760c2c3e31b390ab684410
<ide><path>lib/util.js <ide> function formatValue(ctx, value, recurseTimes) { <ide> formatter = formatMap; <ide> } else if (isTypedArray(value)) { <ide> braces = [`${getPrefix(constructor, tag)}[`, ']']; <add> if (value.length === 0 && keyLength === 0 && !ctx.showHidden) <add> return `${brac...
3
Go
Go
remove unused help command
298a26e0b2d086a32f14ee675bf24322cc92ddd4
<ide><path>cli/cobra.go <ide> package cli // import "github.com/docker/docker/cli" <ide> <ide> import ( <ide> "fmt" <del> "strings" <ide> <ide> "github.com/docker/docker/pkg/term" <del> "github.com/pkg/errors" <ide> "github.com/spf13/cobra" <ide> ) <ide> <ide> func SetupRootCommand(rootCmd *cobra.Command) { <ide>...
1
Ruby
Ruby
remove dead code
8b9ddab287ca3fb5a39cfda82421fafbaf649eb5
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def build_where(opts, other = []) <ide> case opts <ide> when String, Array <ide> #TODO: Remove duplication with: /activerecord/lib/active_record/sanitization.rb:113 <del> values = Hash === other.first ? other.first.valu...
1
Ruby
Ruby
make respond_to? work as expected
0306e4a20483a91d9288ac6f20e6b79db6eca7a7
<ide><path>activeresource/lib/active_resource/base.rb <ide> def load(attributes) <ide> end <ide> self <ide> end <add> <add> # For checking respond_to? without searching the attributes (which is faster). <add> alias_method :respond_to_without_attributes?, :respond_to? <add> <add> # A Person ...
2
Javascript
Javascript
remove event constants
22d16cc15df8e570b79c2825fb495c2b98b40bf5
<ide><path>packages/react-dom/src/client/ReactDOMComponent.js <ide> import { <ide> listenToNonDelegatedEvent, <ide> } from '../events/DOMPluginEventSystem'; <ide> import {getEventListenerMap} from './ReactDOMComponentTree'; <del>import { <del> TOP_LOAD, <del> TOP_ERROR, <del> TOP_TOGGLE, <del> TOP_INVALID, <del> ...
20
Python
Python
remove unusued import
315ff1c03463a27f815d0d1000d974a44905ba0a
<ide><path>numpy/core/tests/test_multiarray.py <del>from cgi import test <ide> import collections.abc <ide> import tempfile <ide> import sys
1
Ruby
Ruby
add initial doc for core in aj [ci skip]
785cb9fe751901a42d07a05bc7e8696660bce11c
<ide><path>activejob/lib/active_job/core.rb <ide> module ActiveJob <add> # Provides general behavior that will be included into every Active Job <add> # object that inherits from ActiveJob::Base. <ide> module Core <ide> extend ActiveSupport::Concern <ide>
1
Text
Text
add pageextensions usage note in api routes
3bd42b4d0bc3e967894f9bcf715d1c062f9a1c19
<ide><path>docs/api-routes/introduction.md <ide> export default function handler(req, res) { <ide> } <ide> ``` <ide> <add>> **Note**: API Routes will be affected by [`pageExtensions` configuration](/docs/api-reference/next.config.js/custom-page-extensions.md) in `next.config.js`. <add> <ide> For an API route to work, ...
1
Python
Python
allow shaped dtypes
a2bf56aaf98ea150079ee5d05da21b18de68252a
<ide><path>numpy/lib/io.py <ide> def loadtxt(fname, dtype=float, comments='#', delimiter=None, converters=None, <ide> def flatten_dtype(dt): <ide> """Unpack a structured data-type.""" <ide> if dt.names is None: <del> return [dt] <add> # If the dtype is flattened, return. <add> ...
2
Ruby
Ruby
add counter cache test for class_name
e64875ffde5787eee24a96070f3cf51727347304
<ide><path>activerecord/test/cases/associations/belongs_to_associations_test.rb <ide> def test_self_referential_belongs_to_with_counter_cache_assigning_nil <ide> assert_equal 0, comments(:greetings).reload.children_count <ide> end <ide> <add> def test_belongs_to_with_id_assigning <add> post = posts(:welcome)...
1
Java
Java
log timespan of attach_measured_root_views
d353b75c120787670e7086e71e4255a7ad819495
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java <ide> import com.facebook.systrace.SystraceMessage; <ide> <ide> import static com.facebook.infer.annotation.ThreadConfined.UI; <add>import static com.facebook.react.bridge.ReactMarkerConstants.ATTACH_MEASURED_ROOT_VIEWS_END; <add>import...
2
Go
Go
use remote daemon in proxy test
029ca9829df1d42a67289e0318db416cdbcfaf35
<ide><path>integration-cli/docker_cli_proxy_test.go <ide> import ( <ide> <ide> func TestCliProxyDisableProxyUnixSock(t *testing.T) { <ide> cmd := exec.Command(dockerBinary, "info") <del> cmd.Env = []string{"HTTP_PROXY=http://127.0.0.1:9999"} <add> cmd.Env = appendDockerHostEnv([]string{"HTTP_PROXY=http://127.0.0.1:99...
1
Python
Python
add push to hub to feature extractor
52d2e6f6e904ef9b75c78716ce77b98196ed837a
<ide><path>src/transformers/feature_extraction_utils.py <ide> from .file_utils import ( <ide> FEATURE_EXTRACTOR_NAME, <ide> EntryNotFoundError, <add> PushToHubMixin, <ide> RepositoryNotFoundError, <ide> RevisionNotFoundError, <ide> TensorType, <ide> _is_jax, <ide> _is_numpy, <ide> _is...
2
Text
Text
fix typo in guides/source/engines.md
0a89d4db1e06d06026bc73726a47d2ef20748070
<ide><path>guides/source/engines.md <ide> Now people will only need to go to the root of the engine to see all the posts, <ide> <ide> ### Generating a comments resource <ide> <del>Now that the engine can to create new blog posts, it only makes sense to add commenting functionality as well. To do get this, you'll need...
1
Text
Text
fix anchor link for displayname
4d3c5ea23c38462c1156fe5b97748b89be2a6589
<ide><path>docs/docs/reference-react-component.md <ide> Each component also provides some other APIs: <ide> ### Class Properties <ide> <ide> - [`defaultProps`](#defaultprops) <del> - [`displayName`](#displayName) <add> - [`displayName`](#displayname) <ide> - [`propTypes`](#proptypes) <ide> <ide> ### Instance Pr...
1
Go
Go
expose the enableipv6 setting
01d2ad412f33647d2ac0b3e33f7d3260438713d8
<ide><path>libnetwork/network.go <ide> type NetworkInfo interface { <ide> IpamInfo() ([]*IpamInfo, []*IpamInfo) <ide> DriverOptions() map[string]string <ide> Scope() string <add> IPv6Enabled() bool <ide> Internal() bool <ide> } <ide> <ide> func (n *network) Internal() bool { <ide> <ide> return n.internal <ide> }...
1
Javascript
Javascript
remove wrong addition of padding
b4b3bf60b81e898fac41afc716b5885e928caebc
<ide><path>src/scales/scale.linear.js <ide> // Bottom - top since pixels increase downard on a screen <ide> var innerHeight = this.height - (this.paddingTop + this.paddingBottom); <ide> pixel = (this.bottom - this.paddingBottom) - (innerHeight / range * (value - this.start)); <del> pixel += this.paddingT...
1
PHP
PHP
boot the application on test refresh
99522e5c38cd62883ae2b040bc74554824a3a053
<ide><path>src/Illuminate/Foundation/Testing/TestCase.php <ide> abstract class TestCase extends \PHPUnit_Framework_TestCase { <ide> */ <ide> public function setUp() <ide> { <del> if ( ! $this->app) $this->refreshApplication(); <add> if ( ! $this->app) <add> { <add> $this->refreshApplication(); <add> <add> $t...
1
Ruby
Ruby
use each_key instead of keys.each
4a52bf1c3186b75551cb37cbf721da185291c384
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_linked_keg_only_brews <ide> You may wish to `brew unlink` these brews: <ide> <ide> EOS <del> warnings.keys.each{ |f| s << " #{f}\n" } <add> warnings.each_key { |f| s << " #{f}\n" } <ide> s <ide> end <ide> end
1
Text
Text
improve intro "tradeoffs" paragraphs and wording
96342f444ef7c0b6b29a8b8048b4f332ef9f0eb5
<ide><path>docs/recipes/UsageWithTypescript.md <ide> hide_title: true <ide> 2. Easy refactoring of typed code <ide> 3. A superior developer experience in a team environment <ide> <del>[**We strongly recommend using TypeScript in Redux applications**](../style-guide/style-guide.md#use-static-typing). However, like all ...
1
Javascript
Javascript
update imports for elements
7cd77e779d4131cce3f2ba4c758fff7ad5a1b96b
<ide><path>src/elements/element.point.js <ide> <ide> import defaults from '../core/core.defaults'; <ide> import Element from '../core/core.element'; <del>import helpers from '../helpers'; <add>import {_isPointInArea, drawPoint} from '../helpers/helpers.canvas'; <ide> <ide> const defaultColor = defaults.color; <ide> ...
2
Ruby
Ruby
implement pinning of taps
1a82b2133eed0599df2375b870bfe4cbf28a02aa
<ide><path>Library/Homebrew/cmd/tap-pin.rb <add>require "cmd/tap" <add> <add>module Homebrew <add> def tap_pin <add> taps = ARGV.named.map do |name| <add> Tap.new(*tap_args(name)) <add> end <add> taps.each do |tap| <add> tap.pin <add> ohai "Pinned #{tap.name}" <add> end <add> end <add>end <...
5
PHP
PHP
change delete() to remove()
89884ae9b0bdffe9441c3c806152d1d69c9f4d3d
<ide><path>src/ORM/TableRegistry.php <ide> public static function genericInstances() { <ide> } <ide> <ide> /** <del> * Deletes an instance from the registry. <add> * Removes an instance from the registry. <ide> * <ide> * Plugin name will be trimmed off of aliases as instances <ide> * stored in the registry will be...
1
Text
Text
add documentation for docker stats --format
9c7b3040cc97dae0a4fc20f999ca51adce353944
<ide><path>docs/admin/formatting.md <ide> list of elements they support in their templates: <ide> - [Docker Log Tag formatting](logging/log_tags.md) <ide> - [Docker Network Inspect formatting](../reference/commandline/network_inspect.md) <ide> - [Docker PS formatting](../reference/commandline/ps.md#formatting) <add>- [...
3
Java
Java
use elementclass and elementtyperef consistently
08a5196c3ab34d8f8f7cc0f20383d6ba0a114832
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/rsocket/DefaultRSocketRequester.java <ide> public ResponseSpec data(Object data) { <ide> } <ide> <ide> @Override <del> public ResponseSpec data(Object producer, Class<?> elementType) { <add> public ResponseSpec data(Object producer, Class<?>...
13
Javascript
Javascript
add a resolver setter to local lookup test case
5d01bb0de2b0457995f348861c455bc7638e4b3f
<ide><path>packages/ember-glimmer/tests/integration/components/local-lookup-test.js <ide> if (EMBER_MODULE_UNIFICATION) { <ide> get resolver() { <ide> return this.owner.__registry__.fallback.resolver; <ide> } <add> set resolver(resolver) { <add> // `resolver` needs a setter because RenderingTestCa...
1
Javascript
Javascript
convert `stattimer` to an es6 class
50b72dec6e3f0a959927f6ac1fcf69b7c76c7caf
<ide><path>src/display/dom_utils.js <ide> function isExternalLinkTargetSet() { <ide> } <ide> } <ide> <del>var StatTimer = (function StatTimerClosure() { <del> function rpad(str, pad, length) { <del> while (str.length < length) { <del> str += pad; <del> } <del> return str; <del> } <del> function Stat...
1
Text
Text
use the right function name for combinereducers
9da19b91357bb440b04c541e0df4bbaddcab54e9
<ide><path>docs/api/combineReducers.md <ide> Any reducer passed to `combineReducers` must satisfy these rules: <ide> <ide> * If the `state` given to it is `undefined`, it must return the initial state for this specific reducer. According to the previous rule, the initial state must not be `undefined` either. It is han...
1
Ruby
Ruby
use libexec method in install test
b34fa6cfd870e23c3876394509ed0a5be6c70b1e
<ide><path>Library/Homebrew/test/test_formula_install.rb <ide> def test_a_basic_install <ide> assert_predicate f.bin, :directory? <ide> assert_equal 3, f.bin.children.length <ide> <del> libexec = f.prefix+'libexec' <del> assert_predicate libexec, :directory? <del> assert_equal 1, libexec.chi...
1
Python
Python
move guardian imports out of compat
9b8af04e7fe532d0bd373d0d1875cf1748bdadf5
<ide><path>rest_framework/compat.py <ide> def distinct(queryset, base): <ide> requests = None <ide> <ide> <del># Django-guardian is optional. Import only if guardian is in INSTALLED_APPS <del># Fixes (#1712). We keep the try/except for the test suite. <del>guardian = None <del>try: <del> if 'guardian' in setti...
3
Mixed
Ruby
improve security of untyped bound values
1dc69cab761fbfd46142f70d8ea58a41c6a12c12
<ide><path>activerecord/CHANGELOG.md <add>* The MySQL adapter now cast numbers and booleans bind parameters to to string for safety reasons. <add> <add> When comparing a string and a number in a query, MySQL convert the string to a number. So for <add> instance `"foo" = 0`, will implicitly cast `"foo"` to `0` a...
9
Text
Text
fix 404 in getting started
d542621155fff0ef5d59a4e5bb373ff7e7754d3b
<ide><path>docs/docs/getting-started.md <ide> In the root directory of the starter kit, create a `helloworld.html` with the fo <ide> </html> <ide> ``` <ide> <del>The XML syntax inside of JavaScript is called JSX; check out the [JSX syntax](syntax.html) to learn more about it. In order to translate it to vanilla JavaSc...
1
Ruby
Ruby
add another singleton for environment filtering
8654f8c5e9d50c8410376241e7ddc0a869929e4a
<ide><path>actionpack/lib/action_dispatch/http/filter_parameters.rb <ide> module Http <ide> module FilterParameters <ide> @@parameter_filter_for = {} <ide> <del> NULL_FILTER = ParameterFilter.new # :nodoc: <add> ENV_MATCH = [/RAW_POST_DATA/, "rack.request.form_vars"] # :nodoc: <add> NULL_PARA...
1
Text
Text
remove duplicated commands
2ed0720b6e32c825b5df52f2638fe908e2d69d66
<ide><path>docs/how-to-work-on-the-docs-theme.md <ide> Clone freeCodeCamp: <ide> <ide> ```console <ide> git clone https://github.com/freeCodeCamp/freeCodeCamp.git <del>docsify serve docs <ide> ``` <ide> <ide> Install `docsify`:
1
Mixed
Javascript
remove unnecessary method argument
8bc250f63a039f5507582840b06f965f816dcca2
<ide><path>docs/getting-started/v3-migration.md <ide> Animation system was completely rewritten in Chart.js v3. Each property can now <ide> <ide> * `Chart.Animation.animationObject` was renamed to `Chart.Animation` <ide> * `Chart.Animation.chartInstance` was renamed to `Chart.Animation.chart` <del>* `DatasetController...
8
PHP
PHP
fix backwards compatibility breakage
0f837273c686461fe2dd924255966a47602d3df1
<ide><path>src/Cache/Cache.php <ide> public static function delete($key, $config = 'default') <ide> * <ide> * @param array $keys Array of cache keys to be deleted <ide> * @param string $config name of the configuration to use. Defaults to 'default' <del> * @return bool True if the items were successf...
1
Go
Go
cleanup the structure of the cli package
33c9edaf6c5401fc1891713d1ad8d861e6cea51f
<ide><path>api/client/cli.go <ide> import ( <ide> "runtime" <ide> <ide> "github.com/docker/docker/api" <del> "github.com/docker/docker/cli" <add> cliflags "github.com/docker/docker/cli/flags" <ide> "github.com/docker/docker/cliconfig" <ide> "github.com/docker/docker/cliconfig/credentials" <ide> "github.com/docker...
8
Javascript
Javascript
add note on negation
49455a75dc01b6b57304f14fafd476de6c2b29be
<ide><path>src/ng/filter/filter.js <ide> * which have property `name` containing "M" and property `phone` containing "1". A special <ide> * property name `$` can be used (as in `{$:"text"}`) to accept a match against any <ide> * property of the object. That's equivalent to the simple substring match with...
1
Javascript
Javascript
update minify task to work with grunt-cli 0.1.6
9576710b2f20c142e0277a0342d967a21f1da17a
<ide><path>Gruntfile.js <ide> module.exports = function(grunt) { <ide> var done = this.async(); <ide> var exec = require('child_process').exec; <ide> <del> var externs = this.files[0].externs || []; <del> var dest = this.files[0].dest; <del> var files = []; <add> var externs = this.data.externs || ...
1