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
add closewriters back and do an interface cast
8e2284aaa2364a8e47a8058e65d60813f9cd5089
<ide><path>container.go <ide> func (container *Container) cleanup() { <ide> utils.Errorf("%s: Error close stdin: %s", container.ID, err) <ide> } <ide> } <del> if err := container.stdout.Close(); err != nil { <add> if err := container.stdout.CloseWriters(); err != nil { <ide> utils.Errorf("%s: Error close stdout...
4
Go
Go
fix a typo in hostconfig.shmsize validation
fee7e7c7a31023be9f0c26608e6cbd4e8a97d25b
<ide><path>daemon/daemon_unix.go <ide> func verifyPlatformContainerSettings(daemon *Daemon, hostConfig *containertypes. <ide> warnings = append(warnings, w...) <ide> <ide> if hostConfig.ShmSize < 0 { <del> return warnings, fmt.Errorf("SHM size must be greater then 0") <add> return warnings, fmt.Errorf("SHM size mu...
2
Text
Text
add v3.17.3 to changelog.md
ad82c1b182d401f5c9107a00c2ca995f0ab3659c
<ide><path>CHANGELOG.md <ide> - [#18774](https://github.com/emberjs/ember.js/pull/18774) [BUGFIX] Suspend observer deactivation during property changes <ide> - [#18785](https://github.com/emberjs/ember.js/pull/18785) Drop Node 8 support. <ide> <add>### v3.17.3 (April 2, 2020) <add> <add>- [#18857](https://github.com/e...
1
Javascript
Javascript
remove underlines on button text
f03a731c362995346d91d983b8bbc22a5ce2ea45
<ide><path>client/src/components/helpers/CurrentChallengeLink.js <ide> const createClickHandler = hardGoTo => e => { <ide> <ide> function CurrentChallengeLink({ children, hardGoTo }) { <ide> return ( <del> <a href={currentChallengeApi} onClick={createClickHandler(hardGoTo)}> <add> <a <add> className='btn-...
5
PHP
PHP
update doc blocks for addassociations()
ca27336e94efb2637b88147a1a551e866db83457
<ide><path>src/ORM/Table.php <ide> public function associations() { <ide> } <ide> <ide> /** <del> * Setup associations. <add> * Setup multiple associations. <ide> * <ide> * It takes an array containing set of table names indexed by association type <ide> * as argument: <ide> * <ide> * {{{ <ide> * $this->Posts->...
1
Java
Java
remove unused imports
3da68cfe218f4817aefe67ca67b13ccb78109cfc
<ide><path>spring-aop/src/main/java/org/springframework/aop/framework/autoproxy/AbstractAutoProxyCreator.java <ide> import org.springframework.beans.factory.config.ConfigurableBeanFactory; <ide> import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; <ide> import org.springframework.beans.facto...
51
Text
Text
fix research_projects/mlm_wwm readme.md examples
28d5700aae1bed4ec721cbeb5bc2527079113f46
<ide><path>examples/research_projects/mlm_wwm/README.md <ide> You could run the following: <ide> <ide> <ide> ```bash <del>export TRAIN_FILE=/path/to/dataset/wiki.train.raw <add>export TRAIN_FILE=/path/to/train/file <ide> export LTP_RESOURCE=/path/to/ltp/tokenizer <ide> export BERT_RESOURCE=/path/to/bert/tokenizer <id...
1
Javascript
Javascript
save users into new `user` collection
0e240ba6300d96f006737fe8a8410783bdbc76a6
<ide><path>flattenUser.js <ide> function createConnection(URI) { <ide> }); <ide> } <ide> <del>function createQuery(db, collection, selection, options, batchSize) { <add>function createQuery(db, collection, options, batchSize) { <ide> return Rx.Observable.create(function (observer) { <ide> console.log('Creating...
1
Ruby
Ruby
remove checks for encodings availability
1e9e88fcd335c7d5a99159d592c3e1b605510a16
<ide><path>actionmailer/test/base_test.rb <ide> def teardown <ide> assert_equal(1, email.attachments.length) <ide> assert_equal('invoice.jpg', email.attachments[0].filename) <ide> expected = "\312\213\254\232)b" <del> expected.force_encoding(Encoding::BINARY) if '1.9'.respond_to?(:force_encoding) <add> ...
25
Javascript
Javascript
use _ to disambiguate local vs. global d3
0d7c6c55e71d43f9d8286bfdd9ffd5372c51411b
<ide><path>test/arrays/max-test.js <ide> var vows = require("vows"), <del> d3 = require("../../"), <add> _ = require("../../"), <ide> load = require("../load"), <ide> assert = require("../assert"); <ide> <ide> suite.addBatch({ <ide> assert.isUndefined(max([NaN, NaN])); <ide> }, <ide> "appli...
31
PHP
PHP
evaluate echos within attributes
3f537ca1c7cbf14af34dcf697801db75f2b173d3
<ide><path>src/Illuminate/View/Compilers/BladeCompiler.php <ide> protected function compileComponentTags($value) <ide> } <ide> <ide> return (new ComponentTagCompiler( <del> $this->classComponentAliases <add> $this, $this->classComponentAliases <ide> ))->compile($value); <i...
4
Ruby
Ruby
correct config path in error message
3e5206f8d138492f7f2d94a279f5c42bda7d5ddb
<ide><path>test/service/shared_service_tests.rb <ide> SERVICE_CONFIGURATIONS = begin <ide> YAML.load_file(File.expand_path("../configurations.yml", __FILE__)).deep_symbolize_keys <ide> rescue Errno::ENOENT <del> puts "Missing service configuration file in test/services/configurations.yml" <add> puts "Missing servic...
1
Python
Python
fix the conditional, add test cases for it
805d7181c8f2bd565d35c55884e8db9273401f97
<ide><path>libcloud/compute/base.py <ide> import time <ide> import hashlib <ide> import os <add>import re <ide> import socket <ide> import random <ide> import binascii <ide> def deploy_node(self, **kwargs): <ide> raise NotImplementedError( <ide> 'deploy_node not implemented for this driver')...
2
Go
Go
remove unused types and fields
43ea03002fd9d10f31631504be69b8b73f40a43a
<ide><path>integration-cli/docker_api_containers_test.go <ide> func (s *DockerSuite) TestContainersAPICreateMountsCreate(c *testing.T) { <ide> }...) <ide> } <ide> <del> type wrapper struct { <del> containertypes.Config <del> HostConfig containertypes.HostConfig <del> } <del> type createResp struct { <del> ID str...
2
Javascript
Javascript
send suicide message on disconnect
f299d870dcfb71c0b0ab77b20d43d6a1d59d04c0
<ide><path>lib/cluster.js <ide> function workerInit() { <ide> <ide> Worker.prototype.disconnect = function() { <ide> this.suicide = true; <del> var waitingHandles = 0; <add> let waitingCount = 1; <ide> <del> function checkRemainingHandles() { <del> waitingHandles--; <del> if (waitingHandles =...
2
Text
Text
update next.js.configs line number
1ebd6a1d9409d1e1dbf51adedf18aacccd39afc9
<ide><path>docs/api-reference/next.config.js/introduction.md <ide> module.exports = (phase, { defaultConfig }) => { <ide> } <ide> ``` <ide> <del>The commented lines are the place where you can put the configs allowed by `next.config.js`, which are [defined in this file](https://github.com/vercel/next.js/blob/canary/pa...
1
Text
Text
update changelog for 1.6.0
87cf065e48ca7d2db6e51b46252adda130d67ce9
<ide><path>CHANGELOG.md <ide> simple ground rule: Never set a controllers content, rather always set <ide> it's model and ember will do the right thing. <ide> <del>### Ember 1.6.0-beta.5 (May 27, 2014) <add>### Ember 1.6.0 (July, 7, 2014) <ide> <ide> * [BUGFIX] Ensure itemController's do not leak by tying them to...
1
PHP
PHP
add events hook to plugins
0cbab2a29bb6d8b8adb5411477920bf3c9db5f7a
<ide><path>src/Console/CommandRunner.php <ide> public function run(array $argv, ConsoleIo $io = null) <ide> * Application bootstrap wrapper. <ide> * <ide> * Calls `bootstrap()` and `events()` if application implements `EventApplicationInterface`. <add> * After the application is bootstrapped and even...
9
Javascript
Javascript
kill child in tls-server-verify for speed up
4cf323d23dcefedd349fedd396a58b0ed1fa2387
<ide><path>test/parallel/test-tls-server-verify.js <ide> function runClient(prefix, port, options, cb) { <ide> if (!goodbye && /_unauthed/g.test(out)) { <ide> console.error(prefix + ' * unauthed'); <ide> goodbye = true; <del> client.stdin.end('goodbye\n'); <add> client.kill(); <ide> aut...
1
PHP
PHP
improve arr class documentation
b6ba0de0bd41a63e03587d13fb86a1e06f8fdb19
<ide><path>system/arr.php <ide> class Arr { <ide> * Get an item from an array. <ide> * <ide> * If the specified key is null, the entire array will be returned. The array may <del> * also be accessed using JavaScript "dot" style notation. <add> * also be accessed using JavaScript "dot" style notation. Retrieving...
1
Text
Text
add examples to readme
6d91b429a07ffabed2e0eb02a713dd4d68f73aa8
<ide><path>README.md <ide> This architecture might seem like an overkill for a counter app, but the beauty <ide> * [Glossary](http://rackt.github.io/redux/docs/Glossary.html) <ide> * [API Reference](http://rackt.github.io/redux/docs/api/index.html) <ide> <add>### Examples <add> <add>* [Counter](http://rackt.github.io/...
1
Javascript
Javascript
change whitespace to tab
7cb97cf7e3eba3da8ec668faa5841f311e83c8d4
<ide><path>test/unit/core/Clock.js <ide> module( "Clock" ); <ide> <ide> function mockPerformance() { <del> self.performance = { <del> deltaTime: 0, <add> self.performance = { <add> deltaTime: 0, <ide> <del> next: function( delta ) { <del> this.deltaTime += delta; <del> }, <add> next: function( delta ...
1
Javascript
Javascript
stop ie9 memory leak when destroying scopes
8fe781fbe7c42c64eb895c28d9fd5479b037d020
<ide><path>src/ng/rootScope.js <ide> function $RootScopeProvider() { <ide> $event.currentScope.$$destroyed = true; <ide> } <ide> <add> function cleanUpScope($scope) { <add> <add> if (msie === 9) { <add> // There is a memory leak in IE9 if all child scopes are not disconnected <add> //...
2
Javascript
Javascript
add helper for exception-safe beginpropertychanges
817a8c840c83aa90aa084dbab1182bd7e712bb83
<ide><path>packages/sproutcore-metal/lib/observer.js <ide> SC.endPropertyChanges = function() { <ide> if (suspended<=0) flushObserverQueue(); <ide> }; <ide> <add>SC.batchPropertyChanges = function(cb){ <add> SC.beginPropertyChanges(); <add> try { <add> cb() <add> } finally { <add> SC.endPropertyChanges(); <...
2
Javascript
Javascript
log uncaught exceptions on the socket server
8f5b2ccbe04a7e33da2cb4aed85386b3e0e52634
<ide><path>packager/react-packager/src/SocketInterface/SocketServer.js <ide> class SocketServer { <ide> }); <ide> }); <ide> <add> process.on('uncaughtException', (error) => { <add> debug('uncaught error', error); <add> setImmediate(() => process.exit(1)); <add> }); <add> <ide> this._numCo...
1
Text
Text
remove beststandardssupport references
a83183c72155db3f11af287281ef3c13d56dddce
<ide><path>guides/source/command_line.md <ide> Active Record version 4.0.0.beta <ide> Action Pack version 4.0.0.beta <ide> Action Mailer version 4.0.0.beta <ide> Active Support version 4.0.0.beta <del>Middleware ActionDispatch::Static, Rack::Lock, Rack::Runtime, Rack::MethodOverride, Act...
3
Ruby
Ruby
remove newlines left behind after correction
ab09d15703e897a77f4af9177a92c275973bd0a3
<ide><path>Library/Homebrew/rubocops/lines.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> offending_node(node) <ide> problem "Use a single `generate_completions_from_executable` call <ide> combining all specified shells" do |corrector...
1
Text
Text
translate 10.7 to korean
c0ac76d723e611d81886bc1cd29daec72629cc06
<ide><path>docs/docs/10.7-pure-render-mixin.ko-KR.md <add>--- <add>id: pure-render-mixin-ko-KR <add>title: PureRenderMixin <add>permalink: pure-render-mixin-ko-KR.html <add>prev: update-ko-KR.html <add>next: perf-ko-KR.html <add>--- <add> <add>React 컴포넌트의 렌더 함수가 "pure"하다면 (다른 말로, props나 state에 같은 값이 주어질 때 같은 결과를 렌더한다면)...
1
Ruby
Ruby
add missing model
9a7e7e5fdb56dd1a805bce291acf122c7b6e3b83
<ide><path>activerecord/test/models/boolean.rb <add>class Boolean < ActiveRecord::Base <add>end
1
Mixed
Go
support credential specs
e85867cb68cc28208c91bb43fc5cdcff824c468e
<ide><path>api/server/router/build/build_routes.go <ide> import ( <ide> "fmt" <ide> "io" <ide> "net/http" <add> "runtime" <ide> "strconv" <ide> "strings" <ide> "sync" <ide> func newImageBuildOptions(ctx context.Context, r *http.Request) (*types.ImageBui <ide> options.CPUSetMems = r.FormValue("cpusetmems") <ide> ...
15
PHP
PHP
remove item caching from cache manager
23d5742575acb481a2b34053f3eea6ddfe1dae6e
<ide><path>system/cache.php <ide> class Cache { <ide> */ <ide> public static $drivers = array(); <ide> <del> /** <del> * All of the items retrieved by the cache drivers. <del> * <del> * @var array <del> */ <del> public static $items = array(); <del> <ide> /** <ide> * Get a cache driver instance. If no driver...
1
Ruby
Ruby
reduce object allocations in param wrapping
1bc7cce8fedb7dcf1837ed493e1b2d390fa0bfb5
<ide><path>actionpack/lib/action_controller/metal/params_wrapper.rb <ide> def _wrap_parameters(parameters) <ide> def _extract_parameters(parameters) <ide> if include_only = _wrapper_options.include <ide> parameters.slice(*include_only) <add> elsif _wrapper_options.exclude <add> e...
1
PHP
PHP
remove some service providers and aliases
a68933d34c7cedbb88a8f9a2bb0adfdda73130d4
<ide><path>config/app.php <ide> 'Illuminate\Filesystem\FilesystemServiceProvider', <ide> 'Illuminate\Foundation\Providers\FormRequestServiceProvider', <ide> 'Illuminate\Hashing\HashServiceProvider', <del> 'Illuminate\Html\HtmlServiceProvider', <ide> 'Illuminate\Log\LogServiceProvider', <ide> 'Illuminate\Mail...
1
Text
Text
update basic setup instructions
25d07511ed63959777ab1d0bee9f8e5f79382318
<ide><path>docs/sources/installation/amazon.md <ide> Repository. <ide> your Amazon Linux instance should be running! <ide> 3. SSH to your instance to install Docker : <ide> `ssh -i <path to your private key> ec2-user@<your public IP address>` <del>4. Once connected to the instance, type <del> `sudo yum install...
1
Text
Text
add missing feature to 1.6.0-rc.0
4a320ab9f01ae32fdbbee35ea513e704529d0580
<ide><path>CHANGELOG.md <ide> ensure that Angular 1 can pass the linter checks for Mozilla add-ons. <ide> <ide> - **ngModelOptions:** allow options to be inherited from ancestor `ngModelOptions` ([296cfc](https://github.com/angular/angular.js/commit/296cfce40c25e9438bfa46a0eb27240707a10ffa) [#10922](https://github.com...
1
Text
Text
change error message to 'not defined'
a7a871476e0116e85b7ae8e5b2eb00761206ab75
<ide><path>doc/api/errors.md <ide> are handled using the [`try…catch` construct][try-catch] provided by the <ide> JavaScript language. <ide> <ide> ```js <del>// Throws with a ReferenceError because z is undefined <add>// Throws with a ReferenceError because z is not defined. <ide> try { <ide> const m = 1; <ide> co...
1
PHP
PHP
change method order
c460b69aa1be9838ea8c74c80417c92444677772
<ide><path>src/Illuminate/Notifications/HasDatabaseNotifications.php <ide> public function notifications() <ide> } <ide> <ide> /** <del> * Get the entity's unread notifications. <add> * Get the entity's read notifications. <ide> */ <del> public function unreadNotifications() <add> public fun...
1
Javascript
Javascript
avoid implicit keyframe trimming.
7714fe8f6dec8fd3ecfa0266c2c4a8ef0e9f61c7
<ide><path>src/animation/AnimationClip.js <ide> function AnimationClip( name, duration, tracks ) { <ide> <ide> } <ide> <del> // maybe only do these on demand, as doing them here could potentially slow down loading <del> // but leaving these here during development as this ensures a lot of testing of these functions ...
1
Text
Text
fix spelling in v8.8.0 changelog
e70038528891aa7bddf44b39b85ee99ee30e6d6b
<ide><path>doc/changelogs/CHANGELOG_V8.md <ide> - expose ECDH class [#8188](https://github.com/nodejs/node/pull/8188) <ide> * **http2**: <ide> - http2 is now exposed by default without the need for a flag [#15685](https://github.com/nodejs/node/pull/15685) <del> - a new environment varible NODE\_NO\_HTTP2 has been...
1
Python
Python
fix scheme issue in https case
af54b94263db9bb5056431c263f3953103568c3a
<ide><path>libcloud/http.py <ide> def _parse_proxy_url(self, proxy_url): <ide> """ <ide> parsed = urlparse.urlparse(proxy_url) <ide> <del> if parsed.scheme != 'http': <add> if parsed.scheme not in ('http', 'https'): <ide> raise ValueError('Only http proxies are supported') <id...
1
Text
Text
fix path in 09-advanced.md
9ac0293b1ab57d058bd736bc175bed1544dd9331
<ide><path>docs/09-Advanced.md <ide> var myPieChart = new Chart(ctx, { <ide> }); <ide> ``` <ide> <del>See `sample/line-customTooltips.html` for examples on how to get started. <add>See `samples/tooltips/line-customTooltips.html` for examples on how to get started. <ide> <ide> ### Writing New Scale Types <ide>
1
Java
Java
add getter for the length of a websocket message
ac968e94ed1b9a1863a0345a030af506b25d9e0d
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/AbstractWebSocketMessage.java <ide> /* <del> * Copyright 2002-2013 the original author or authors. <add> * Copyright 2002-2014 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> ...
7
Javascript
Javascript
add support for k and kk format parsing
073d3153663c349d4ccc68dae37f8a61c6f06d30
<ide><path>src/lib/units/hour.js <ide> addRegexToken('a', matchMeridiem); <ide> addRegexToken('A', matchMeridiem); <ide> addRegexToken('H', match1to2); <ide> addRegexToken('h', match1to2); <add>addRegexToken('k', match1to2); <ide> addRegexToken('HH', match1to2, match2); <ide> addRegexToken('hh', match1to2, match2)...
2
Ruby
Ruby
use predefined commit author for robustness
bd4f633673e12793d8ec18a45c352a2d4d1fc382
<ide><path>Library/Homebrew/cmd/tests.rb <ide> def tests <ide> ENV["HOMEBREW_TESTS_COVERAGE"] = "1" if ARGV.include? "--coverage" <ide> ENV["HOMEBREW_NO_COMPAT"] = "1" if ARGV.include? "--no-compat" <ide> <add> # Override author/committer as global settings might be invalid and thus <add> # will ...
1
Python
Python
fix indexerror in _get_order_information
93db2691a2a143c430603521fb297e3e96e68626
<ide><path>libcloud/drivers/softlayer.py <ide> def _get_order_information(self, order_id, timeout=1200, check_interval=5): <ide> if item['softwareComponents'][0]['passwords']: <ide> return item <ide> <del> except KeyError, IndexError: <add> except (KeyError, In...
1
Text
Text
fix url to issue
88d4da7f422a4ac341efa85541271b1c0e9bcfa3
<ide><path>CHANGELOG.md <ide> be found. <ide> <ide> ### Misc <ide> <del>+ When saving linked images together with `docker save` a subsequent `docker load` will correctly restore their parent/child relationship ([#21385](https://github.com/docker/docker/pull/c)) <add>+ When saving linked images together with `docker s...
1
Python
Python
fix layer norm epsilon in openai gpt
80607874c1f82e137ceb2cff3397c6a91d6aa963
<ide><path>pytorch_pretrained_bert/modeling_openai.py <ide> def __init__( <ide> resid_pdrop=0.1, <ide> embd_pdrop=0.1, <ide> attn_pdrop=0.1, <add> layer_norm_epsilon=1e-5, <ide> initializer_range=0.02, <ide> ): <ide> """Constructs OpenAIGPTConfig. <ide> def __init__( <...
1
Javascript
Javascript
upgrade tapable for resolverfactory
53eada6eb33bb95a2fd7d0ea924f8c309f110c6e
<ide><path>lib/ResolverFactory.js <ide> */ <ide> "use strict"; <ide> <del>const Tapable = require("tapable-old"); <add>const Tapable = require("tapable").Tapable; <add>const HookMap = require("tapable").HookMap; <add>const SyncHook = require("tapable").SyncHook; <add>const SyncWaterfallHook = require("tapable").SyncW...
1
Javascript
Javascript
exclude 3mb of markdown files
2ede9aaf854c7fe1f09adecd2653446d6f215221
<ide><path>script/lib/include-path-in-packaged-app.js <ide> const EXCLUDE_REGEXPS_SOURCES = [ <ide> 'node_modules' + escapeRegExp(path.sep) + '.*' + escapeRegExp(path.sep) + '_*te?sts?_*' + escapeRegExp(path.sep), <ide> 'node_modules' + escapeRegExp(path.sep) + '.*' + escapeRegExp(path.sep) + 'docs' + escapeRegExp(...
1
Python
Python
remove positionality of kind in isin
64de8b2eaba62f138be94744ada770aa227aae94
<ide><path>numpy/lib/arraysetops.py <ide> def in1d(ar1, ar2, assume_unique=False, invert=False, *, kind=None): <ide> <ide> <ide> def _isin_dispatcher(element, test_elements, assume_unique=None, invert=None, <del> kind=None): <add> *, kind=None): <ide> return (element, test_...
1
Javascript
Javascript
add test around throwing on trying to change
58f181a376c11329f097dedee7690cb0c0f95bab
<ide><path>packages/ember-glimmer/tests/integration/components/curly-components-test.js <ide> moduleFor('Components test: curly components', class extends RenderingTest { <ide> this.assertComponentElement(this.firstChild, { content: 'hello' }); <ide> } <ide> <del> // Note this functionality seems weird <ide> ...
1
Text
Text
fix man pages
d790469681b65d55e64750fd18d596db90a541df
<ide><path>man/docker-cp.1.md <ide> docker-cp - Copy files/folders between a container and the local filesystem. <ide> **docker cp** <ide> [**--help**] <ide> CONTAINER:PATH LOCALPATH|- <add> <add>**docker cp** <add>[**--help**] <ide> LOCALPATH|- CONTAINER:PATH <ide> <ide> # DESCRIPTION <ide><path>man/docker-create.1.m...
21
Python
Python
add test for andc (u8)
dc4a9e39dfb13aecb61d955445538838fbb2233d
<ide><path>numpy/core/tests/test_simd.py <ide> def test_operators_logical(self): <ide> """ <ide> Logical operations for boolean types. <ide> Test intrinsics: <del> npyv_xor_##SFX, npyv_and_##SFX, npyv_or_##SFX, npyv_not_##SFX <add> npyv_xor_##SFX, npyv_and_##SFX, npyv_or_##...
1
Ruby
Ruby
allow some uncommitted gems
300d7e4799ebb15eba35ae7e888a0185059df0fe
<ide><path>Library/Homebrew/diagnostic.rb <ide> def check_git_status <ide> end <ide> next if status.blank? <ide> <add> # these will result in uncommitted gems. <add> if path == HOMEBREW_REPOSITORY <add> next if ENV["HOMEBREW_SORBET"] || ENV["HOMEBREW_PATCHELF_RB"] <add>...
1
Go
Go
simplify skip checks
69c0b7e47682a2a7a850122a9a2f711259fbb25a
<ide><path>integration/container/ipcmode_linux_test.go <ide> func testIpcNonePrivateShareable(t *testing.T, mode string, mustBeMounted bool, <ide> // (--ipc none) works as expected. It makes sure there is no <ide> // /dev/shm mount inside the container. <ide> func TestIpcModeNone(t *testing.T) { <del> skip.If(t, testEn...
2
Java
Java
use encode with an object value where feasible
5fc18064f26a2541cce0432a4cb0fc01104972e8
<ide><path>spring-core/src/main/java/org/springframework/core/io/buffer/DefaultDataBuffer.java <ide> static DefaultDataBuffer fromEmptyByteBuffer(DefaultDataBufferFactory dataBuffer <ide> <ide> <ide> /** <del> * Directly exposes the native {@code ByteBuffer} that this buffer is based on. <add> * Directly exposes t...
7
Javascript
Javascript
use jasmine2 as framework
a82a8a5210858e34a0727eba1ac03a389bdd67d8
<ide><path>protractor-jenkins-conf.js <ide> exports.config = { <ide> <ide> baseUrl: 'http://localhost:8000/', <ide> <del> framework: 'jasmine', <add> framework: 'jasmine2', <ide> <ide> onPrepare: function() { <ide> /* global angular: false, browser: false, jasmine: false */ <ide><path>protractor-shared-con...
2
Ruby
Ruby
fix flakey destroyed_by_association tests
7f5deeeee6c9e0384ff6667fb51e64fcfe381365
<ide><path>activerecord/test/cases/associations/has_one_associations_test.rb <ide> class HasOneAssociationsTest < ActiveRecord::TestCase <ide> self.use_transactional_tests = false unless supports_savepoints? <ide> fixtures :accounts, :companies, :developers, :projects, :developers_projects, <del> :ships, ...
1
Javascript
Javascript
add crypto check to crypto-lazy-transform
1777a862a2e1e6034df7beba40703073a373ff7a
<ide><path>test/parallel/test-crypto-lazy-transform-writable.js <ide> 'use strict'; <ide> <ide> const common = require('../common'); <add>if (!common.hasCrypto) { <add> common.skip('missing crypto'); <add> return; <add>} <ide> const assert = require('assert'); <ide> const crypto = require('crypto'); <ide> const Stre...
1
Ruby
Ruby
move options_constraints tests next to each other
522038aa9dc7d9759520d63b1c9d13086bdb3a21
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def initialize(scope, path, options) <ide> via = Array(options.delete(:via) { [] }) <ide> options_constraints = options.delete :constraints <ide> <del> @blocks = blocks(options_constraints, scope[:blocks]) <del> <ide> ...
1
Text
Text
improve chinese translation in euler-problem-1
8704a75844a6cd8401a8cd4cd1ceb5f3973e7548
<ide><path>curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-1-multiples-of-3-and-5.chinese.md <ide> localeTitle: 问题1:3和5的倍数 <ide> --- <ide> <ide> ## Description <del><section id="description">如果我们列出10以下是3或5的倍数的所有自然数,我们得到3,5,6和9.这些倍数的总和是23.求出所提供参数以下3或5的所有倍数的总和价值<code>number</code> 。 </sectio...
1
Python
Python
accept custom run id in ``triggerdagrunoperator``
cdaa9aac80085b157c606767f2b9958cd6b2e5f0
<ide><path>airflow/operators/trigger_dagrun.py <ide> class TriggerDagRunOperator(BaseOperator): <ide> """ <ide> Triggers a DAG run for a specified ``dag_id`` <ide> <del> :param trigger_dag_id: the dag_id to trigger (templated) <add> :param trigger_dag_id: The dag_id to trigger (templated). <ide> :typ...
2
Ruby
Ruby
remove play, replaced by typesafe-activator
cca11731ca5842b65764344a2ce955764a0c9c42
<ide><path>Library/Homebrew/blacklist.rb <ide> def blacklisted? name <ide> GNU Fortran is now provided as part of GCC, and can be installed with: <ide> brew install gcc <ide> EOS <add> when 'play' then <<-EOS.undent <add> Since Play 2.3 the play command has become the activator command. <add> Play ...
1
Mixed
Ruby
update security guide for signed cookie rotations
04a7b7165ad204014c5850f62c921f7291d6ba5d
<ide><path>actionpack/test/dispatch/cookies_test.rb <ide> def test_use_authenticated_cookie_encryption_uses_legacy_hmac_aes_cbc_encryption <ide> assert_equal "bar", encryptor.decrypt_and_verify(@response.cookies["foo"]) <ide> end <ide> <add> def test_rotating_signed_cookies_digest <add> @request.env["action_...
2
Text
Text
add ctc members to collaborators list
bec387725af44a1f250c8dcf5f7e584d6d432b77
<ide><path>README.md <ide> more information about the governance of the Node.js project, see <ide> <ide> * [abouthiroppy](https://github.com/abouthiroppy) - <ide> **Yuta Hiroto** &lt;hello@about-hiroppy.com&gt; (he/him) <add>* [addaleax](https://github.com/addaleax) - <add>**Anna Henningsen** &lt;anna@addaleax.net&gt;...
1
Ruby
Ruby
remove formula revision
96cbce015e0b327bd7d30fc101cbd25452cd2fd8
<ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb <ide> def inreplace_pairs(path, replacement_pairs) <ide> contents = path.open("r") { |f| Formulary.set_encoding(f).read } <ide> contents.extend(StringInreplaceExtension) <ide> replacement_pairs.each do |old, new| <del> ohai "replace \"#{old...
1
Text
Text
add explaination of example
3c24da1db0ed720adc77bf345d3f42661b98c40f
<ide><path>guide/english/html/elements/comment-tag/index.md <ide> Comments can also be used to make code inactive without having to delete it enti <ide> --> <ide> ``` <ide> <add>The example would display "Hello Friends", but "Hello Campers" and "Hello Paragraph" would not be displayed as they are comments, and are onl...
1
PHP
PHP
fix error output leaking into test output
b3e94f83e08e717b62d5db75ca71f45d6b8522a6
<ide><path>lib/Cake/Error/BaseErrorHandler.php <ide> public function handleError($code, $description, $file = null, $line = null, $co <ide> } <ide> $this->_displayError($data, $debug); <ide> $this->_logError($log, $data); <del> return false; <add> return true; <ide> } <ide> <ide> /** <ide> public function han...
2
Ruby
Ruby
ignore perl opts
bfbdfe8d9da53209dcc66ee0e9980078669a4acd
<ide><path>Library/Homebrew/extend/ENV/shared.rb <ide> module SharedEnvExtension <ide> CFLAGS CXXFLAGS OBJCFLAGS OBJCXXFLAGS LDFLAGS CPPFLAGS <ide> MACOSX_DEPLOYMENT_TARGET SDKROOT DEVELOPER_DIR <ide> CMAKE_PREFIX_PATH CMAKE_INCLUDE_PATH CMAKE_FRAMEWORK_PATH <del> GOBIN GOPATH GOROOT <add> GOBIN GOPAT...
1
Mixed
Ruby
retain selections with `includes` and `joins`
2d6088ced5c338a4503816b25861908282b4dea2
<ide><path>activerecord/CHANGELOG.md <add>* Retain explicit selections on the base model after applying `includes` and `joins`. <add> <add> Resolves #34889. <add> <add> *Patrick Rebsch* <add> <ide> * Allow attributes to be fetched from Arel node groupings. <ide> <ide> *Jeff Emminger*, *Gannon McGibbon* <...
3
PHP
PHP
put docblock @return parameters in correct order
9332c6003d47dee946b180360668fdfd1dd36f0c
<ide><path>src/Illuminate/Routing/Route.php <ide> protected function extractOptionalParameters() <ide> * Get or set the middlewares attached to the route. <ide> * <ide> * @param array|string|null $middleware <del> * @return array|$this <add> * @return $this|array <ide> */ <ide> public f...
1
PHP
PHP
add deprecated notice to _classname in entitytrait
5f880f67ed53f3049a8344b1941545c8cbbc4e23
<ide><path>src/Datasource/EntityTrait.php <ide> trait EntityTrait <ide> */ <ide> protected $_virtual = []; <ide> <add> /** <add> * Holds the name of the class for the instance object <add> * <add> * @var string <add> * <add> * @deprecated 3.2 This field is no longer being used <add> ...
1
Python
Python
allow text generation for prophetnetforcausallm
fb36c273a299da6e53052f56e8ebd96fae6b09cb
<ide><path>src/transformers/models/prophetnet/modeling_prophetnet.py <ide> def get_decoder(self): <ide> ) <ide> class ProphetNetForCausalLM(ProphetNetPreTrainedModel): <ide> def __init__(self, config): <del> super().__init__(config) <ide> # set config for CLM <ide> config = copy.deepcopy(conf...
2
Javascript
Javascript
add id to body
59bbf859869f8040e85ca0695aab13da41cc6bad
<ide><path>website/src/html.js <ide> export default function HTML(props) { <ide> /> <ide> {props.headComponents} <ide> </head> <del> <body {...props.bodyAttributes}> <add> <body id="top" {...props.bodyAttributes}> <ide> {props.preBodyComp...
1
Text
Text
add fields in volume api for 1.24, 1.25
b015fd4fb3a8def4812491bae702275efc6ab0cb
<ide><path>docs/reference/api/docker_remote_api_v1.24.md <ide> Return low-level information about the `exec` command `id`. <ide> { <ide> "Name": "tardis", <ide> "Driver": "local", <del> "Mountpoint": "/var/lib/docker/volumes/tardis" <add> "Mountpoint": "/var/lib/docker/volu...
2
Text
Text
expand stub to full article
f430694458cf780b8c36ed13ec029afa4fb46f58
<ide><path>guide/spanish/network-engineering/ipv4-header/index.md <ide> title: IPv4 Header <ide> localeTitle: Encabezado IPv4 <ide> --- <add>La traduccion de este articulo fue basado en la version igles, escrito por cmccormack, disponible aqui, https://github.com/freeCodeCamp/freeCodeCamp/blob/master/guide/english/net...
1
Text
Text
add missing entries to changelog
543dcf910913bebd2b5963593d536573728fc4f1
<ide><path>CHANGELOG.md <ide> * Components are lazily looked up. <ide> * Renaming everyBy and anyBy to isEvery and isAny. <ide> <add>###Ember 1.2.1 _(January 14, 2014)_ <add> <add>* [SECURITY] Ensure primitive value contexts are escaped. <add>* [SECURITY] Ensure {{group}} helper escapes properly. <add> <ide> ###Ember ...
1
PHP
PHP
add a method for generating pagination meta links
e7f76a983a35ad351e220a3fe2cc7072b332b185
<ide><path>lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php <ide> public function testWithZeroPages() { <ide> $expected = '0 of 1'; <ide> $this->assertEquals($expected, $result); <ide> } <add> <add>/** <add> * Verify that no next and prev links are created for single page results <add> * <add> * @return void...
2
Text
Text
fix the ulimit link
8f3c0fdff3846c5d7999c200c69c9d67751acc08
<ide><path>docs/reference/commandline/build.md <ide> flag](../run.md#specifying-custom-cgroups). <ide> <ide> Using the `--ulimit` option with `docker build` will cause each build step's <ide> container to be started using those [`--ulimit` <del>flag values](../run.md#setting-ulimits-in-a-container). <add>flag values](...
1
Javascript
Javascript
promote 'features' to the prototype
c0f91674e44c8d6ccccf591719595eed001e99bc
<ide><path>src/js/control-bar/mute-toggle.js <ide> vjs.MuteToggle = vjs.Button.extend({ <ide> player.on('volumechange', vjs.bind(this, this.update)); <ide> <ide> // hide mute toggle if the current tech doesn't support volume control <del> if (player.tech && player.tech.features && player.tech.features['volu...
8
PHP
PHP
reorganize operators in most-used order
1f21898515f8a049b4f4529351fc427690795d8f
<ide><path>src/Illuminate/Support/Collection.php <ide> protected function operatorForWhere($key, $operator, $value) <ide> default: <ide> case '=': <ide> case '==': return $retrieved == $value; <del> case '===': return $retrieved === $value; <del> ...
1
Ruby
Ruby
prevent extra `through_scope`
d807e3f59d93dd9f590af83e708d0a21f208094a
<ide><path>activerecord/lib/active_record/associations/preloader/through_association.rb <ide> def source_reflection <ide> end <ide> <ide> def associated_records_by_owner(preloader) <add> through_scope = through_scope() <add> <ide> preloader.preload(owners, <ide> ...
1
Mixed
Python
implement transformer xl
2c98b4b0a49a53f80042e92de7049e679ff9abab
<ide><path>official/nlp/modeling/layers/README.md <ide> assemble new layers, networks, or models. <ide> * [GatedFeedforward](gated_feedforward.py) implements the gated linear layer <ide> feedforward as described in <ide> ["GLU Variants Improve Transformer"](https://arxiv.org/abs/2002.05202). <add> <add>* [M...
4
Text
Text
update translation binary-search
1cc626e546f8c99ad142ed0c515fc5a84b184c3b
<ide><path>guide/portuguese/algorithms/search-algorithms/binary-search/index.md <ide> para pequenos conjuntos, a pesquisa linear é melhor, mas em grandes, é muito m <ide> <ide> Em detalhes, quantas vezes você pode dividir N por 2 até ter 1? Essencialmente, isso significa fazer uma pesquisa binária (metade dos elemento...
1
Javascript
Javascript
reduce element.point size
09bcac9b5c699c75909b77dc40dc40b5a3af1030
<ide><path>src/elements/element.point.js <ide> module.exports = function(Chart) { <ide> var radius = vm.radius; <ide> <ide> var xOffset, <del> yOffset; <add> yOffset, <add> beginPath = "beginPath", <add> moveTo = "moveTo", <add> lineTo = "lineTo", <add> closePath = "closePath", <add> ...
1
Javascript
Javascript
fix more nits
9d3c91b150eec9dd56ccfad85c354eb9b5d5af52
<ide><path>src/config.js <ide> class Config { <ide> } <ide> <ide> _clearUnscopedSettingsForSource (source) { <del> switch (source) { <del> case (this.projectFile): <del> this.projectSettings = {} <del> return <del> default: <del> this.settings = {} <add> if (source === this.pro...
2
Python
Python
assert prints for more clarity
b20351792acba1bcd28998bed80171f5b6caa59f
<ide><path>spacy/tests/test_requirements.py <ide> def test_build_dependencies(en_vocab): <ide> lib, v = _parse_req(line) <ide> if lib and not lib.startswith("cupy") and lib not in libs_ignore_setup: <ide> req_v = req_dict.get(lib, None) <del> assert req_v is not No...
1
Java
Java
improve documentation of @bean 'lite' mode
94c9f96449960a94e49edd7709d49b243de4a5f1
<ide><path>spring-context/src/main/java/org/springframework/context/annotation/Bean.java <ide> /** <ide> * Indicates that a method produces a bean to be managed by the Spring container. <ide> * <add> * <h3>Overview</h3> <add> * <ide> * <p>The names and semantics of the attributes to this annotation are intentionally...
1
Go
Go
adjust deprecation comments
0f1b68df1610e0b377f16cd0cf72e226ade1dce5
<ide><path>pkg/fileutils/fileutils.go <ide> func NewPatternMatcher(patterns []string) (*PatternMatcher, error) { <ide> // <ide> // Matches is not safe to call concurrently. <ide> // <del>// This implementation is buggy (it only checks a single parent dir against the <del>// pattern) and will be removed soon. Use either...
1
Java
Java
replace use of stringbuffer with stringbuilder
948f5999c3dc8bc82c7b0476954a08fe9ed2011c
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/rsocket/MetadataEncoder.java <ide> /* <del> * Copyright 2002-2020 the original author or authors. <add> * Copyright 2002-2021 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> *...
2
Java
Java
expose handled exception as request attribute
476864f3e91411b1f75c8777154c7d118341a6e3
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/DispatcherServlet.java <ide> public class DispatcherServlet extends FrameworkServlet { <ide> */ <ide> public static final String FLASH_MAP_MANAGER_ATTRIBUTE = DispatcherServlet.class.getName() + ".FLASH_MAP_MANAGER"; <ide> <add> /** <add> * Nam...
1
Javascript
Javascript
remove keymirror in specpolicy
e3b2c6e650d80bfcfd32eb47354eb269269f77c8
<ide><path>src/isomorphic/classic/class/ReactClass.js <ide> var ReactNoopUpdateQueue = require('ReactNoopUpdateQueue'); <ide> <ide> var emptyObject = require('emptyObject'); <ide> var invariant = require('invariant'); <del>var keyMirror = require('keyMirror'); <ide> var keyOf = require('keyOf'); <ide> var warning = re...
1
Go
Go
fix race on containerattachraw
32ca1214fa55f55c54a54061ecf752b75f2c72c3
<ide><path>builder/builder.go <ide> type Backend interface { <ide> // PullOnBuild tells Docker to pull image referenced by `name`. <ide> PullOnBuild(ctx context.Context, name string, authConfigs map[string]types.AuthConfig, output io.Writer) (Image, error) <ide> // ContainerAttachRaw attaches to container. <del> Con...
4
PHP
PHP
remove the crossschematableexpression
b5787a0979e161204d833c66053b7516ebf7f146
<ide><path>src/Database/Connection.php <ide> public function log($sql) <ide> $this->logger()->log($query); <ide> } <ide> <del> /** <del> * Check if cross talk is supported between two connections <del> * <del> * @param ConnectionInterface $target Connection to check cross talk with <del> ...
6
Javascript
Javascript
call imports with the correct context
6842d50cf9c5e112e5c5eb0651153d07d966cf95
<ide><path>lib/dependencies/HarmonyImportDependencyParserPlugin.js <ide> module.exports = class HarmonyImportDependencyParserPlugin { <ide> dep.namespaceObjectAsContext = true; <ide> dep.loc = expr.callee.loc; <ide> parser.state.current.addDependency(dep); <del> return true; <del> }); <del> parser.pl...
12
Python
Python
fix goldparse init when token count differs
a04f8020993568e5677cdbce96e93c82cf6e012f
<ide><path>spacy/scorer.py <ide> def score(self, doc, gold, verbose=False, punct_labels=("p", "punct")): <ide> """ <ide> if len(doc) != len(gold): <ide> gold = GoldParse.from_annot_tuples( <del> doc, tuple(zip(*gold.orig_annot)) + (gold.cats,) <add> doc, zip(*go...
1
Python
Python
fix retrieval of the right branch in pre-commits
d93908deb7bfea2bc7cfe5a69830b01e4df06676
<ide><path>scripts/ci/pre_commit/pre_commit_flake8.py <ide> <ide> AIRFLOW_SOURCES = Path(__file__).parents[3].absolute() <ide> GITHUB_REPOSITORY = os.environ.get('GITHUB_REPOSITORY', "apache/airflow") <del>AIRFLOW_CI_IMAGE = f"ghcr.io/{GITHUB_REPOSITORY}/main/ci/python3.7" <ide> <ide> if __name__ == '__main__': <add>...
5
Java
Java
fix javadoc in mockhttpservletrequestbuilder
fc7e60678cf8e63037f4163c4d77013a2f088104
<ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilder.java <ide> * requests in {@link MockMvc}. <ide> * <ide> * <p>Application tests will typically access this builder through the static factory <del> * methods in {@link org.springframework.test.web.servlet.s...
1
Python
Python
return lowercase form as default except for propn
8cba0e41d8e2797763110e8dd1b3b2ec8a29e719
<ide><path>spacy/lemmatizer.py <ide> def __call__(self, string, univ_pos, morphology=None): <ide> index_table = self.lookups.get_table("lemma_index", {}) <ide> exc_table = self.lookups.get_table("lemma_exc", {}) <ide> rules_table = self.lookups.get_table("lemma_rules", {}) <add> if not an...
1
Text
Text
remove unnecessary `to`s
909ec375b1716e9909ceb91a53631157a0e98058
<ide><path>docs/upgrading/upgrading-your-package.md <ide> class MyView extends View <ide> <ide> You should not need to change anything to use the new `TextEditorView`! See the [docs][TextEditorView] for more info. <ide> <del>### Upgrading to classes extending ScrollView <add>### Upgrading classes extending ScrollView...
1