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
Javascript
Javascript
improve existing test to test and
857f980883ab2a7b5cddac7468cd730d3a9c4afe
<ide><path>test/binCases/stats/single-config/test.js <ide> module.exports = function testAssertions(code, stdout, stderr) { <ide> stdout[0].should.containEql("Hash: "); <ide> stdout[1].should.containEql("Version: "); <ide> stdout[2].should.containEql("Time: "); <del> stdout[4].should.containEql("null.js"); <del> std...
2
Javascript
Javascript
remove preassignbindingsenabled leftovers
42e622b751d1ad1520b824473f9ad31e7efb75b3
<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> <add>function stringifyFn(fn) { <add> return Function.prototype.toString.call(fn); <add>} <add> <ide> function extractArgs(fn...
5
Java
Java
remove jetbrains annotations
f2b926467491098b09b38296b95d9543c97e22ad
<ide><path>spring-core/src/test/java/org/springframework/core/io/buffer/LeakAwareDataBufferFactory.java <ide> import io.netty.buffer.PooledByteBufAllocator; <ide> import org.apache.commons.logging.Log; <ide> import org.apache.commons.logging.LogFactory; <del>import org.jetbrains.annotations.NotNull; <ide> <ide> import...
4
Ruby
Ruby
fix textarea with nil content
d8d38bedfd5716d55e50e85dc6c9a938b1848e66
<ide><path>actionpack/lib/action_view/helpers/form_tag_helper.rb <ide> def text_area_tag(name, content = nil, options = {}) <ide> escape = options.key?("escape") ? options.delete("escape") : true <ide> content = html_escape(content) if escape <ide> <del> content_tag :textarea, content.html_safe,...
2
Python
Python
fix missing dagruns when ``catchup=true``
2bd4b55c53b593f2747a88f4c018d7e420460d9a
<ide><path>airflow/jobs/scheduler_job.py <ide> def _create_dag_runs(self, dag_models: Collection[DagModel], session: Session) - <ide> creating_job_id=self.id, <ide> ) <ide> active_runs_of_dags[dag.dag_id] += 1 <del> self._update_dag_next_dagruns(dag, dag_mo...
3
PHP
PHP
pull pretend value from config
eb600f8533df3b4611c1fa60a1661f2c1d0369e6
<ide><path>src/Illuminate/Mail/MailServiceProvider.php <ide> public function register() <ide> <ide> $mailer->setContainer($app); <ide> <del> $from = $app['config']['mail.from']; <del> <ide> // If a "from" address is set, we will set it on the mailer so that all mail <ide> // messages sent by the applicatio...
1
Go
Go
add ipamutils package
fd00a5301962e1aeaf33b0ce77912e52e764fe5e
<ide><path>libnetwork/ipamutils/utils.go <add>// Package ipamutils provides utililty functions for ipam management <add>package ipamutils <add> <add>import ( <add> "fmt" <add> "net" <add> <add> "github.com/docker/libnetwork/netutils" <add> "github.com/docker/libnetwork/resolvconf" <add> "github.com/vishvananda/netlink"...
2
Text
Text
fix the link code
8c214ed16ddb2ad70d697d6f116c36114e37fe3f
<ide><path>docs/Manpage.md <ide> With `--verbose` or `-v`, many commands print extra debugging information. Note <ide> Upload logs for a failed build of `formula` to a new Gist. <ide> <ide> `formula` is usually the name of the formula to install, but it can be specified <del> in several different ways. See ...
1
PHP
PHP
add test for
9a26183eccaa59a0fdef4c00ce698df184032c35
<ide><path>tests/TestCase/ORM/QueryRegressionTest.php <ide> public function testSelectNoFieldsOnPrimaryAlias() <ide> $this->assertCount(3, $results); <ide> } <ide> <add> /** <add> * Test selecting with aliased aggregates and identifier quoting <add> * does not emit notice errors. <add> * <ad...
1
Text
Text
fix whatwg url url.protocol example
bb5c84a1a7e29f6e5bca619dc73c78348326c1b7
<ide><path>doc/api/url.md <ide> Gets and sets the protocol portion of the URL. <ide> ```js <ide> const myURL = new URL('https://example.org'); <ide> console.log(myURL.protocol); <del> // Prints http: <add> // Prints https: <ide> <ide> myURL.protocol = 'ftp'; <ide> console.log(myURL.href);
1
Text
Text
add v3.21.0-beta.1 to changelog
b6166734043bdea11622675bd96d4c5e4ebee7db
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.21.0-beta.1 (July 13, 2020) <add> <add>- [#18993](https://github.com/emberjs/ember.js/pull/18993) [DEPRECATION] Deprecate `getWithDefault` per [RFC #554](https://github.com/emberjs/rfcs/blob/master/text/0554-deprecate-getwithdefault.md). <add>- [#17571]...
1
Javascript
Javascript
improve arguments check in container#reset
310cec8dcf5ce3bc124817fbe10345882a11b759
<ide><path>packages/container/lib/container.js <ide> Container.prototype = { <ide> }, <ide> <ide> /** <add> Clear either the entire cache or just the cache for a particular key. <add> <ide> @method reset <add> @param {String} fullName optional key to reset; if missing, resets everything <ide> */ <ide> ...
1
Javascript
Javascript
add support for arrays, functions, errors
bf8e0540f8195edbaaa3d0138bd6a26e79e1ab58
<ide><path>src/angular-mocks.js <ide> angular.module.ngMock.TzDate.prototype = Date.prototype; <ide> * @return a serialized string of the argument <ide> */ <ide> angular.module.ngMock.dump = function(object){ <del> var out; <del> if (angular.isElement(object)) { <del> object = angular.element(object); <del> o...
1
Mixed
Go
move remote api config out of daemon/
1d10c55aec891df609d36c90ee6c30adb24c16c4
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) CmdInfo(args ...string) error { <ide> if initPath := remoteInfo.Get("InitPath"); initPath != "" { <ide> fmt.Fprintf(cli.out, "Init Path: %s\n", initPath) <ide> } <del> if len(remoteInfo.GetList("Sockets")) != 0 { <del> fmt.Fprintf(cli.out, "Sockets...
10
Javascript
Javascript
move the `issameorigin` helper function
537ed37835a1df383153d16d5d267fa0f121cf1d
<ide><path>src/display/api.js <ide> import { <ide> info, <ide> InvalidPDFException, <ide> isArrayBuffer, <del> isSameOrigin, <ide> MissingPDFException, <ide> PasswordException, <ide> RenderingIntentFlag, <ide> const PDFWorkerUtil = { <ide> fallbackWorkerSrc: null, <ide> fakeWorkerId: 0, <ide> }; <del>i...
4
Python
Python
replace torch.triu with onnx compatible code
9fd11bf1a889d140d6c81435e2927a718ec52b0f
<ide><path>src/transformers/modeling_bart.py <ide> def _prepare_bart_decoder_inputs( <ide> if decoder_padding_mask is not None and decoder_padding_mask.shape[1] > 1: <ide> # never mask leading token, even if it is pad <ide> decoder_padding_mask[:, 0] = decoder_padding_mask[:, 1] <del> causal_mask...
1
Python
Python
fix test_io.roundtriptest on python3 + windows
4f4558ae51354526b0a4c2d7bb1da8db040fb16c
<ide><path>numpy/lib/tests/test_io.py <ide> def StringIO(s=""): <ide> return BytesIO(asbytes(s)) <ide> else: <ide> from StringIO import StringIO <add> BytesIO = StringIO <ide> <ide> MAJVER, MINVER = sys.version_info[:2] <ide> <ide> def roundtrip(self, save_func, *args, **kwargs): <ide> target_f...
1
Go
Go
fix a race in mockcwlogsclient
c1ad02ccc8791b3c517aa37223d27792863cbf17
<ide><path>daemon/logger/awslogs/cwlogsiface_mock_test.go <ide> func (m *mockcwlogsclient) CreateLogStream(input *cloudwatchlogs.CreateLogStream <ide> } <ide> <ide> func (m *mockcwlogsclient) PutLogEvents(input *cloudwatchlogs.PutLogEventsInput) (*cloudwatchlogs.PutLogEventsOutput, error) { <del> m.putLogEventsArgumen...
1
Java
Java
fix measurelayout function for virtual nodes
5c48c94f8c0441bc78a007f0ea0c5b2763ff6875
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java <ide> private void measureLayoutRelativeToVerifiedAncestor( <ide> ReactShadowNode node, ReactShadowNode ancestor, int[] outputBuffer) { <ide> int offsetX = 0; <ide> int offsetY = 0; <del> if (node != ancestor) { <a...
1
Javascript
Javascript
gjslint part of tests
c0d69a488380fb3cfc1fb257972730ad5c570ef9
<ide><path>test/fixtures/a.js <del>var c = require("./b/c"); <add>var c = require('./b/c'); <ide> <del>common.debug("load fixtures/a.js"); <add>common.debug('load fixtures/a.js'); <ide> <del>var string = "A"; <add>var string = 'A'; <ide> <ide> exports.SomeClass = c.SomeClass; <ide> <del>exports.A = function () { <a...
50
Python
Python
fix pypy tests
4eabd379dfba17d738887ff64c03fc4ee3ad380f
<ide><path>celery/tests/bin/test_celeryd.py <ide> def start(self): <ide> class Worker(cd.Worker): <ide> WorkController = _WorkController <ide> <add> def __init__(self, *args, **kwargs): <add> super(Worker, self).__init__(*args, **kwargs) <add> self.redirect_stdouts = False <add> <ide> <ide> class...
1
Ruby
Ruby
kill special ssl3 support
dfbc2df09fc46c239fa099ef18507a498379c820
<ide><path>Library/Homebrew/download_strategy.rb <ide> def _fetch <ide> end <ide> end <ide> <del># Download from an SSL3-only host. <del>class CurlSSL3DownloadStrategy < CurlDownloadStrategy <del> def _curl_opts <del> super << '-3' <del> end <del>end <add># @deprecated <add>CurlSSL3DownloadStrategy = CurlDownlo...
1
Javascript
Javascript
fix lint error
a46517f8ff4d5c925ef6672501b5a89186666825
<ide><path>lib/JavascriptParser.js <ide> class JavascriptParser { <ide> comments = source.comments; <ide> } else { <ide> comments = []; <del> ast = Parser.parse(source, { <add> ast = JavascriptParser.parse(source, { <ide> sourceType: this.sourceType, <ide> onComment: comments <ide> }); <ide> clas...
4
Python
Python
check authentication after checking modelresource
b236241982b95a35cdb251e5020004050fb6567a
<ide><path>djangorestframework/permissions.py <ide> def check_permission(self, user): <ide> if self.view.request.method in ('GET', 'OPTIONS', 'HEAD',): <ide> return <ide> <del> # User must be logged in to check permissions. <del> if not hasattr(self.view.request, 'user') or not self.v...
1
Ruby
Ruby
add tests for patches.rb
975459a75cc371d97ec381ed3ffa2aa2733d9f1f
<ide><path>Library/Homebrew/test/test_patches.rb <add>require 'testing_env' <add> <add>require 'extend/ARGV' # needs to be after test/unit to avoid conflict with OptionsParser <add>ARGV.extend(HomebrewArgvExtension) <add> <add>require 'test/testball' <add>require 'utils' <add>require 'set' <add> <add># Expose some inte...
1
Text
Text
rewrote the entrypoint section in builder
b2ba1a9ce5709ee6f143b79bd543f95a4aa03c14
<ide><path>docs/sources/reference/builder.md <ide> The copy obeys the following rules: <ide> ENTRYPOINT has two forms: <ide> <ide> - `ENTRYPOINT ["executable", "param1", "param2"]` <del> (like an *exec*, preferred form) <add> (like an *exec*, the preferred form) <ide> - `ENTRYPOINT command param1 param2` <ide> (as...
1
Javascript
Javascript
add 2fa otp code to npm dist-tag command too
8f45a685be1c2f2205684a301cfd23833ee9a478
<ide><path>scripts/release/publish-commands/publish-to-npm.js <ide> const push = async ({cwd, dry, otp, packages, version, tag}) => { <ide> // Update the @next tag to also point to it (so @next doesn't lag behind). <ide> if (!isPrerelease) { <ide> await execUnlessDry( <del> `npm dis...
1
PHP
PHP
add tests for aliased behavior methods
be2d45635d46d0707f90df95d9992eb71705cc0e
<ide><path>Cake/Test/TestCase/ORM/TableTest.php <ide> public function testCallBehaviorMethod() { <ide> $this->assertEquals('some_value', $table->slugify('some value')); <ide> } <ide> <add>/** <add> * Test you can alias a behavior method <add> * <add> * @return void <add> */ <add> public function testCallBehaviorAli...
1
Go
Go
add an op func to override client.scheme
be2f7ce3ca8a559b1996dcc91cdc4d1035a9cdcd
<ide><path>client/client.go <ide> func WithHTTPHeaders(headers map[string]string) func(*Client) error { <ide> } <ide> } <ide> <add>// WithScheme overrides the client scheme with the specified one <add>func WithScheme(scheme string) func(*Client) error { <add> return func(c *Client) error { <add> c.scheme = scheme <a...
1
Java
Java
improve javadoc for databasepopulator
fb312d0ed5d55752df5755be29833023e5a21258
<ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/datasource/init/DatabasePopulator.java <ide> /* <del> * Copyright 2002-2016 the original author or authors. <add> * Copyright 2002-2022 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> *...
1
Text
Text
add missing underscore for markdown italics
eb12f93b79ea76d5d34a635772ec9d2e44703544
<ide><path>doc/topics/the-event-loop-timers-and-nexttick.md <ide> through its queue of callbacks executing them synchronously until <ide> either the queue has been exhausted, or the system-dependent hard limit <ide> is reached. <ide> <del>* _If the `poll` queue is **empty**, one of two more things will <add>* _If th...
1
Javascript
Javascript
fix $flowfixmes from tabbarios
cf8dc89ee84d8602305b4e3b7d777dc288ae61cf
<ide><path>Libraries/Components/TabBarIOS/TabBarIOS.ios.js <ide> const ViewPropTypes = require('ViewPropTypes'); <ide> <ide> var requireNativeComponent = require('requireNativeComponent'); <ide> <del>class TabBarIOS extends React.Component<{ <del> style?: $FlowFixMe, <del> unselectedTintColor?: $FlowFixMe, <del> t...
1
Text
Text
add iife example to jsx documentation
9a2e5f2cc5386219f629da3cce6b01aa84bb3158
<ide><path>docs/tips/03-if-else-in-JSX.md <ide> That's not valid JS. You probably want to make use of a ternary expression: <ide> React.render(<div id={condition ? 'msg' : ''}>Hello World!</div>, mountNode); <ide> ``` <ide> <del>If a ternary expression isn't robust enough, you can use `if` statements to determine whic...
1
Javascript
Javascript
update chrome to v34
6708feffdbe055e8b89737ea51f5c23376899e91
<ide><path>protractor-travis-conf.js <ide> config.multiCapabilities = [{ <ide> 'browserName': 'chrome', <ide> 'name': 'Angular E2E', <ide> 'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER, <del> 'build': process.env.TRAVIS_BUILD_NUMBER <add> 'build': process.env.TRAVIS_BUILD_NUMBER, <add> 'version': '34' <id...
1
PHP
PHP
update wincache tests
3a11f979c825f7370bee43e4c7a9d92f0c47ccdf
<ide><path>lib/Cake/Cache/Engine/WincacheEngine.php <ide> <?php <ide> /** <del> * Wincache storage engine for cache. <del> * <del> * Supports wincache 1.1.0 and higher. <del> * <del> * PHP 5 <del> * <ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <ide> * Copyright 2005-2012, Cake Software Found...
2
Go
Go
keep track of used device ids in a bitmap
4d39e056aac2fadffcb8560101f3c31a2b7db3ae
<ide><path>daemon/graphdriver/devmapper/deviceset.go <ide> var ( <ide> DefaultDataLoopbackSize int64 = 100 * 1024 * 1024 * 1024 <ide> DefaultMetaDataLoopbackSize int64 = 2 * 1024 * 1024 * 1024 <ide> DefaultBaseFsSize uint64 = 10 * 1024 * 1024 * 1024 <del> DefaultThinpBlockSize uint32 = 128 // 6...
1
Text
Text
update error handling instruction in $.get
c6e4efc268f6b2efb5009418da2350fe6fa1a6c3
<ide><path>guide/english/jquery/jquery-ajax-get-method/index.md <ide> $.get('http://example.com/resource.json', {category:'client', type:'premium'}, f <ide> $("#mypar").html(response.amount); <ide> }); <ide> ``` <add>However, `$.get` doesn't provide any way to handle error. <ide> <del>The above example can also ...
1
Text
Text
fix indentation issues in sample code
8969c1b76209e83f3fc3cb00a41421f7996e399b
<ide><path>doc/api/crypto.md <ide> const aliceSecret = alice.computeSecret(bobKey); <ide> const bobSecret = bob.computeSecret(aliceKey); <ide> <ide> assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex')); <del> // OK <add>// OK <ide> ``` <ide> <ide> ### ecdh.computeSecret(otherPublicKey[, inputEn...
8
Text
Text
add stackoverflow links
0ccc4530776cc18ecfa7a84b8bd6cd02c0c2f092
<ide><path>README.md <ide> For further details, consult the [wiki](https://github.com/ReactiveX/RxJava/wiki <ide> - Google Group: [RxJava](http://groups.google.com/d/forum/rxjava) <ide> - Twitter: [@RxJava](http://twitter.com/RxJava) <ide> - [GitHub Issues](https://github.com/ReactiveX/RxJava/issues) <add>- StackOverfl...
1
Python
Python
use all() for subtask checks in canvas tests
89d50f5a34e3c9a16f6fd2cace4ac0dc214493dc
<ide><path>t/unit/tasks/test_canvas.py <ide> def test_from_dict_no_tasks(self): <ide> <ide> def test_from_dict_full_subtasks(self): <ide> c = chain(self.add.si(1, 2), self.add.si(3, 4), self.add.si(5, 6)) <del> <ide> serialized = json.loads(json.dumps(c)) <del> <ide> deserialized = chain.fr...
1
Python
Python
handle none in protect path
a3c5de2585b44b8b697161dfad2859dd2ffbb536
<ide><path>numpy/distutils/command/scons.py <ide> def get_cxx_tool_path(compiler): <ide> def protect_path(path): <ide> """Convert path (given as a string) to something the shell will have no <ide> problem to understand (space, etc... problems).""" <del> # XXX: to this correctly, this is totally bogus for now...
1
Python
Python
add serialization tests for tagger
43b4d63f8587bcc7078635a099f1acf48264303c
<ide><path>spacy/tests/serialize/test_serialize_tagger.py <add># coding: utf-8 <add>from __future__ import unicode_literals <add> <add>from ..util import make_tempdir <add>from ...pipeline import NeuralTagger as Tagger <add> <add>import pytest <add> <add> <add>@pytest.fixture <add>def taggers(en_vocab): <add> tagger...
1
Javascript
Javascript
fix children in ff3
304921128c1ff2ebd5c5905f7dae5f648d39a41c
<ide><path>src/player.js <ide> _V_.Player = _V_.Component.extend({ <ide> options.loop = this.tag.getAttribute("loop") !== null; <ide> options.muted = this.tag.getAttribute("muted") !== null; <ide> <del> for (var c,i=0,j=this.tag.children;i<j.length;i++) { <del> c = j[i]; <del> if (c.nodeName == "S...
1
Javascript
Javascript
remove workaround for chrome bug
87eff27e971414fb163e2b5a7cfe78cb097a1951
<ide><path>src/ng/directive/select.js <ide> <ide> var noopNgModelController = { $setViewValue: noop, $render: noop }; <ide> <del>function chromeHack(optionElement) { <del> // Workaround for https://code.google.com/p/chromium/issues/detail?id=381459 <del> // Adding an <option selected="selected"> element to a <selec...
2
Go
Go
fix race with testcontainerapicommit
563708d78d42afe89374d5819fdb671ed72c2dad
<ide><path>integration-cli/docker_api_containers_test.go <ide> func (s *DockerSuite) TestContainerApiCommit(c *check.C) { <ide> } <ide> id := strings.TrimSpace(string(out)) <ide> <del> name := "testcommit" <add> name := "testcommit" + stringid.GenerateRandomID() <ide> _, b, err := sockRequest("POST", "/commit?repo=...
2
Go
Go
fix flaky testgetcontainersattachwebsocket
85354fb77c77aabe6ba1f53c90aa2395b4e81866
<ide><path>integration-cli/docker_api_attach_test.go <ide> func (s *DockerSuite) TestGetContainersAttachWebsocket(c *check.C) { <ide> <ide> outChan := make(chan error) <ide> go func() { <del> _, err := ws.Read(actual) <add> _, err := io.ReadFull(ws, actual) <ide> outChan <- err <ide> close(outChan) <ide> }()
1
Javascript
Javascript
favor arrow functions in callbacks
6363f21faf3ca335814536c660058eacf8df5e70
<ide><path>test/parallel/test-https-agent-servername.js <ide> 'use strict'; <ide> const common = require('../common'); <add>const assert = require('assert'); <ide> <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> const options = { <ide> }; <ide> <ide> <del>const server = https.Server(options...
1
PHP
PHP
fix custom class cast with dates
2d52abc33865cc29b8e92a41ed7ad9a2b5383a11
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php <ide> protected function addCastAttributesToArray(array $attributes, array $mutatedAtt <ide> $attributes[$key] = $attributes[$key]->format(explode(':', $value, 2)[1]); <ide> } <ide> <add> if ($attributes[$key]...
1
Javascript
Javascript
support standalone blocks
a38d6ad4be02528c8975c1e6c796556531de68e1
<ide><path>lib/repl.js <ide> function REPLServer(prompt, <ide> eval_ = eval_ || defaultEval; <ide> <ide> function defaultEval(code, context, file, cb) { <del> var err, result, retry = false; <add> var err, result, retry = false, input = code, wrappedErr; <ide> // first, create the Script object to check ...
2
PHP
PHP
allow float 0 to be considered empty
7d398ee9891a6d9f1c7f0c252c26a3264addc8f3
<ide><path>src/Validation/Validator.php <ide> protected function _canBeEmpty($field, $context) { <ide> * @return bool <ide> */ <ide> protected function _fieldIsEmpty($data) { <del> if (empty($data) && $data !== '0' && $data !== false && $data !== 0) { <add> if (empty($data) && $data !== '0' && $data !== false && $...
2
Text
Text
fix some typos in nativemodulesandroid.md
fa21822241ef1347ef0a932654569b1e544fd622
<ide><path>docs/NativeModulesAndroid.md <ide> Read more about [ReadableMap](https://github.com/facebook/react-native/blob/mast <ide> The last step within Java is to register the Module; this happens in the `createNativeModules` of your apps package. If a module is not registered it will not be available from JavaScript...
1
Text
Text
improve note about wordpress framework
dd5e398f9f98cdd7b46b922178e1e85649877580
<ide><path>README.md <ide> # <a href='http://redux.js.org'><img src='https://camo.githubusercontent.com/f28b5bc7822f1b7bb28a96d8d09e7d79169248fc/687474703a2f2f692e696d6775722e636f6d2f4a65567164514d2e706e67' height='60'></a> <ide> <ide> Redux is a predictable state container for JavaScript apps. <del>(If you're looki...
1
Javascript
Javascript
add svgloader. see
6f01c2dc4b9c79a555de5e0cadb25f8bc825c7af
<ide><path>src/loaders/SVGLoader.js <add>/** <add> * @author mrdoob / http://mrdoob.com/ <add> * @author zz85 / http://joshuakoo.com/ <add> */ <add> <add>THREE.SVGLoader = function ( manager ) { <add> <add> this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; <add> <add>}; <add> <add>THREE....
1
Text
Text
standardize constructor doc header layout
0f9d474c524e5132423a96db05d2b2541fcda121
<ide><path>doc/api/crypto.md <ide> the `crypto`, `tls`, and `https` modules and are generally specific to OpenSSL. <ide> [`keyObject.export()`]: #crypto_keyobject_export_options <ide> [`sign.sign()`]: #crypto_sign_sign_privatekey_outputencoding <ide> [`sign.update()`]: #crypto_sign_update_data_inputencoding <del>[`stre...
9
Javascript
Javascript
add test for selection.node
68e9f96f03b8f1a2593ac605fe226302282541e0
<ide><path>test/core/selection-node-test.js <add>require("../env"); <add>require("../../d3"); <add> <add>var vows = require("vows"), <add> assert = require("assert"); <add> <add>var suite = vows.describe("selection.node"); <add> <add>suite.addBatch({ <add> "select(body)": { <add> topic: function() { <add> r...
1
Python
Python
add tests for some template tags
46210205a48efbd694f2beffb255d532184eeb70
<ide><path>tests/test_templatetags.py <ide> <ide> from rest_framework.relations import Hyperlink <ide> from rest_framework.templatetags.rest_framework import ( <del> add_nested_class, add_query_param, format_value, urlize_quoted_links <add> add_nested_class, add_query_param, as_string, break_long_headers, <add> ...
1
Javascript
Javascript
use safe methods from primordials
112cc7c27551254aa2b17098fb774867f05ed0d9
<ide><path>lib/_http_outgoing.js <ide> <ide> 'use strict'; <ide> <add>const { ObjectPrototype } = primordials; <add> <ide> const assert = require('internal/assert'); <ide> const Stream = require('stream'); <ide> const internalUtil = require('internal/util'); <ide> const { CRLF, debug } = common; <ide> <ide> const kI...
20
Javascript
Javascript
remove some unused code
764dc949d0d65742606747ce75852d1b5dd59fcd
<ide><path>src/data/Data.js <ide> Data.accepts = jQuery.acceptData; <ide> <ide> Data.prototype = { <ide> <del> register: function( owner, initial ) { <del> var value = initial || {}; <add> register: function( owner ) { <add> var value = {}; <ide> <ide> // If it is a node unlikely to be stringify-ed or looped ove...
1
Ruby
Ruby
add hack to deal with warnings
d8c0aa88e055c9f08a729827544b186561a6c203
<ide><path>actionpack/lib/action_dispatch/testing/assertions/routing.rb <ide> module Assertions <ide> # Suite of assertions to test routes generated by \Rails and the handling of requests made to them. <ide> module RoutingAssertions <ide> def setup # :nodoc: <del> @routes = nil <add> @routes...
1
Ruby
Ruby
load the file rather than evaling
bc8eaf0f5b90d0af5fa996649a5133953dd45086
<ide><path>railties/lib/rails/commands/runner.rb <ide> exit 1 <ide> elsif File.exist?(code_or_file) <ide> $0 = code_or_file <del> eval(File.read(code_or_file), nil, code_or_file) <add> Kernel.load code_or_file <ide> else <ide> eval(code_or_file) <ide> end
1
Text
Text
unify the name of github [ci skip]
53b43df3a40e77ceb64c1e3ee8e7190e1ac6d70e
<ide><path>guides/source/getting_started.md <ide> of the files and folders that Rails created by default: <ide> |test/|Unit tests, fixtures, and other test apparatus. These are covered in [Testing Rails Applications](testing.html).| <ide> |tmp/|Temporary files (like cache and pid files).| <ide> |vendor/|A place for all...
1
Text
Text
add markdown for man page of `docker plugin ls`
8ee9c635b245941f50f470e7b80f03fbcdf77ed7
<ide><path>man/src/plugin/ls.md <add>Lists all the plugins that are currently installed. You can install plugins <add>using the `docker plugin install` command. <add>You can also filter using the `-f` or `--filter` flag. <add> <add>## Filters <add> <add>Filter output based on these conditions: <add> - enabled=(true|f...
1
Python
Python
clarify the need to install an ssh key
b49ed7e953ecacc35d42953245e7a95ee72b374c
<ide><path>docs/examples/compute/gce/deploy_node.py <ide> size = [s for s in sizes if s.name == 'e2-micro'][0] <ide> <ide> # NOTE: We specify which public key is installed on the instance using <del># metadata functionality <add># metadata functionality. <add># Keep in mind that this step is only needed if you want to...
1
Python
Python
restore changes from nn-beam-parser to spacy/_ml
ce321b03225149aaa0d847e9ac4e00fac96ec801
<ide><path>spacy/_ml.py <ide> <ide> from thinc.neural._classes.convolution import ExtractWindow <ide> from thinc.neural._classes.static_vectors import StaticVectors <del>from thinc.neural._classes.batchnorm import BatchNorm as BN <add>from thinc.neural._classes.batchnorm import BatchNorm <ide> from thinc.neural._class...
1
Python
Python
fix bug in wav2vec2's gpu tests
ea118ae2e1ef62e909626f1b5a4487f5d1cb4a55
<ide><path>tests/models/wav2vec2/test_modeling_flax_wav2vec2.py <ide> import inspect <ide> import math <ide> import multiprocessing <add>import os <add>import traceback <ide> import unittest <ide> <ide> import numpy as np <ide> require_librosa, <ide> require_pyctcdecode, <ide> require_soundfile, <add> r...
3
Javascript
Javascript
remove more attrfn vestiges from events
86b775d036627ebd7242fbb4eb9f24e4ba1fa9c5
<ide><path>src/event.js <ide> jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblcl <ide> this.trigger( name ); <ide> }; <ide> <del> if ( jQuery.attrFn ) { <del> jQuery.attrFn[ name ] = true; <del> } <del> <ide> if ( rkeyEvent.test( name ) ) { <ide> jQuery.event.fixHooks[ name ] = jQ...
1
Ruby
Ruby
fix documentation markup [ci skip]
9e8b7d9d5bb3537f113fbda2a1720c5f412fbe62
<ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb <ide> def initialize(params) # :nodoc: <ide> # ActionController::UnpermittedParameters exception. The default value is <tt>:log</tt> <ide> # in test and development environments, +false+ otherwise. <ide> # <add> # Examples: <add> # <ide>...
1
Python
Python
add japanese lemmas
1987f3f784ca3f701868a402069a773dd7a4f352
<ide><path>spacy/lang/ja/__init__.py <ide> def __call__(self, text): <ide> for token, dtoken in zip(doc, dtokens): <ide> token._.mecab_tag = dtoken.pos <ide> token.tag_ = resolve_pos(dtoken) <add> token.lemma_ = dtoken.lemma <ide> return doc <ide> <ide> # add dumm...
3
Ruby
Ruby
remove unused requires
d0bd3cdc06853be4de33dcf48c23730e25792f16
<ide><path>activesupport/lib/active_support/callbacks.rb <ide> require "active_support/descendants_tracker" <ide> require "active_support/core_ext/array/extract_options" <ide> require "active_support/core_ext/class/attribute" <del>require "active_support/core_ext/kernel/reporting" <del>require "active_support/core_ext/...
1
Text
Text
add v3.25.0-beta.2 to changelog
ce0b37a81fb7eb0b4f43f8728a8ea4288ff5be57
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.25.0-beta.2 (January 19, 2020) <add> <add>- [#19339](https://github.com/emberjs/ember.js/pull/19339) [DEPRECATION] Deprecate importing `htmlSafe` and `isHTMLSafe` from `@ember/string` per the [Deprecate Ember String RFC](https://github.com/emberjs/rfcs/...
1
Python
Python
update ndarray.shape property documention
6a5e6188d938091ca1c335ae5f736b563bdca245
<ide><path>numpy/add_newdocs.py <ide> def luf(lamdaexpr, *args, **kwargs): <ide> """ <ide> Tuple of array dimensions. <ide> <del> As with `numpy.reshape`, one shape dimension can be -1. In this case, the value is <del> inferred from the length of the array and remaining dimensions. <del> Notes <del> ...
1
PHP
PHP
fix failing tests
7db043385514043f77cf5b4875ee174e418616e3
<ide><path>tests/TestCase/Error/ExceptionRendererTest.php <ide> public function testControllerInstanceForPrefixedRequest() <ide> $request = new ServerRequest(); <ide> $request = $request <ide> ->withParam('controller', 'Articles') <del> ->withParam('prefix', 'admin'); <add> ...
1
Ruby
Ruby
add test script to extract version from url/path
d2b2ecbd0b719e0839b51e3a83bedb5686faf84b
<ide><path>Library/Homebrew/test/get_version.rb <add>#!/usr/bin/ruby <add>$:.push(File.expand_path(__FILE__+'/../..')) <add>require 'extend/pathname' <add> <add>p = Pathname.new(ARGV[0]) <add>v = p.version <add>puts v
1
Text
Text
fix broken link on componentwillreceiveprops tip
4a9ed4a204524afd6c6bad0d1ff50b2d6464f065
<ide><path>docs/tips/09-componentWillReceiveProps-not-triggered-after-mounting.md <ide> prev: controlled-input-null-value.html <ide> next: props-in-getInitialState-as-anti-pattern.html <ide> --- <ide> <del>`componentWillReceiveProps` isn't triggered after the node is put on scene. This is by design. Check out [other l...
1
Python
Python
fix import error in python 2.5
d1f88a739d1309ffc283db91a3f1e939f7882052
<ide><path>celery/app/__init__.py <ide> from .. import registry <ide> from ..utils import cached_property, instantiate <ide> <del>from . import annotations <del>from . import base <add>from .annotations import _first_match, _first_match_any <add>from .base import BaseApp <ide> <ide> <ide> class _TLS(threading.local)...
1
Text
Text
fix documentation link in basic api routes example
89b69865fb2a41d65a8e827ea829f2ff8ce83a1f
<ide><path>examples/api-routes/README.md <ide> # Basic API routes example <ide> <del>Next.js ships with [API routes](https://github.com/zeit/next.js#api-routes) which provides an easy solution to build your own `API`. This example shows how to create multiple `API` endpoints with serverless functions, which can execut...
1
Javascript
Javascript
use right require path
d877872c71cbb11fe9a13290d58858cf164902c8
<ide><path>static/index.js <ide> window.onload = function() { <ide> require('coffee-script').register(); <ide> require(path.resolve(__dirname, '..', 'src', 'coffee-cache')).register(); <ide> <del> ModuleCache = require('./module-cache'); <add> ModuleCache = require(path.resolve(__dirname, '..', 'src', 'm...
1
Text
Text
add @willkg for thanks!
0fa9866848238ed355461a619e5aa9a148403f5f
<ide><path>docs/topics/credits.md <ide> The following people have helped make REST framework great. <ide> * Gertjan Oude Lohuis - [gertjanol] <ide> * Matthias Jacob - [cyroxx] <ide> * Pavel Zinovkin - [pzinovkin] <add>* Will Kahn-Greene - [willkg] <ide> <ide> Many thanks to everyone who's contributed to the project. <...
1
Text
Text
add talkdesk as a user of airflow 😁
f2bd15da534c8a6ff802fe87992d1603737948e2
<ide><path>INTHEWILD.md <ide> Currently, **officially** using Airflow: <ide> 1. [Syapse](https://www.syapse.com/) [[@zedmor](https://github.com/zedmor)] <ide> 1. [T2 Systems](http://t2systems.com) [[@unclaimedpants](https://github.com/unclaimedpants)] <ide> 1. [Tails.com](https://tails.com/) [[@alanmcruickshank](https:...
1
Text
Text
add v4.0.0 to changelog
c4dd6eeb191d94c53a27a77b8f3eb841d604c2f0
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del>### v4.0.0-beta.10 (November 15, 2021) <del> <del>- [#19833](https://github.com/emberjs/ember.js/pull/19833) [CLEANUP] Remove deprecated array observers <del>- [#19836](https://github.com/emberjs/ember.js/pull/19836) [CLEANUP] Turn `template-only-glimmer-compo...
1
Javascript
Javascript
fix dead link in comment
b4b8b73a9b548caa51163412cbd6834269df98a9
<ide><path>Libraries/Blob/URL.js <ide> if ( <ide> * ``` <ide> */ <ide> <del>// Small subset from whatwg-url: https://github.com/jsdom/whatwg-url/tree/master/lib <add>// Small subset from whatwg-url: https://github.com/jsdom/whatwg-url/tree/master/src <ide> // The reference code bloat comes from Unicode issues with U...
1
Python
Python
add 'steps' into template_fields in emraddsteps
0e7d8aae9767c3e924a84c3cdbb88d3c459a2a83
<ide><path>airflow/contrib/operators/emr_add_steps_operator.py <ide> class EmrAddStepsOperator(BaseOperator): <ide> :param steps: boto3 style steps to be added to the jobflow <ide> :type steps: list <ide> """ <del> template_fields = ['job_flow_id'] <add> template_fields = ['job_flow_id', 'steps'] <ide...
1
PHP
PHP
fix typo in manager.php
06c897cc683495cab67a81d4bdd180d9f554dd85
<ide><path>src/Illuminate/Support/Manager.php <ide> public function driver($driver = null) <ide> $driver = $driver ?: $this->getDefaultDriver(); <ide> <ide> // If the given driver has not been created before, we will create the instances <del> // here and cache it so we can return it next time very quickly. If th...
1
Text
Text
add redirects for old docker cloud tutorial
94336cb5dd7bce9f34901a86000a124a6d6c68ef
<ide><path>docs/userguide/eng-image/dockerfile_best-practices.md <ide> <!--[metadata]> <ide> +++ <del>aliases = ["/engine/articles/dockerfile_best-practices/"] <add>aliases = ["/engine/articles/dockerfile_best-practices/", "/docker-cloud/getting-started/intermediate/optimize-dockerfiles/", "/docker-cloud/tutorials/opti...
1
Java
Java
fix javadoc references to incorrect xml
838ba79f558c0d8fca84c2b8bd6d98c0e72dee0f
<ide><path>spring-context/src/main/java/org/springframework/scheduling/annotation/EnableAsync.java <ide> * <pre class="code"> <ide> * {@code <ide> * <beans> <del> * <task:annotation-config executor="myExecutor"/> <add> * <task:annotation-driven executor="myExecutor"/> <ide> * <task:executor id="myExecut...
2
PHP
PHP
implement remindable interface on default user
af4381f7de05b21246b1ba1466afa1bb6561be28
<ide><path>app/models/User.php <ide> <?php <ide> <ide> use Illuminate\Auth\UserInterface; <add>use Illuminate\Auth\RemindableInterface; <ide> <del>class User extends Eloquent implements UserInterface { <add>class User extends Eloquent implements UserInterface, RemindableInterface { <ide> <ide> /** <ide> * The dat...
1
Javascript
Javascript
get promise a+ tests to run on windows
265f0b52253ffe63715e69b5ba0b0092a8b1fb0f
<ide><path>Gruntfile.js <ide> var files = require('./angularFiles').files; <ide> var util = require('./lib/grunt/utils.js'); <add>var path = require('path'); <ide> <ide> module.exports = function(grunt) { <ide> //grunt plugins <ide> module.exports = function(grunt) { <ide> stderr:true, <ide> fail...
1
Python
Python
fix unexpected commit error in schedulerjob
cdbb481338f8a93290e9ca308bf111c3a30fa6ce
<ide><path>airflow/jobs/scheduler_job.py <ide> def _executable_task_instances_to_queued(self, max_tis: int, session: Session = <ide> make_transient(ti) <ide> return executable_tis <ide> <del> def _enqueue_task_instances_with_queued_state(self, task_instances: List[TI]) -> None: <add> @provide...
1
Javascript
Javascript
use transform module hash instead of mtime
e485f6997defaaf15105f85769118b234ea0d156
<ide><path>packager/react-packager/src/Bundler/index.js <ide> 'use strict'; <ide> <ide> const assert = require('assert'); <add>const crypto = require('crypto'); <ide> const fs = require('fs'); <ide> const Cache = require('../node-haste').Cache; <ide> const Transformer = require('../JSTransformer'); <ide> class Bundler...
1
Python
Python
use double quotes in user messages
9a4267049ba37883e3e0c21b5d453b9551343b8d
<ide><path>rest_framework/exceptions.py <ide> class NotFound(APIException): <ide> <ide> class MethodNotAllowed(APIException): <ide> status_code = status.HTTP_405_METHOD_NOT_ALLOWED <del> default_detail = _("Method '{method}' not allowed.") <add> default_detail = _("Method \"{method}\" not allowed.") <ide> <...
5
PHP
PHP
add autocomplete support for fakequeue
34179347ef23507f0a7ab1f6dcab371dc4b9d641
<ide><path>src/Illuminate/Support/Facades/Queue.php <ide> * @method static \Illuminate\Contracts\Queue\Job|null pop(string $queue = null) <ide> * @method static string getConnectionName() <ide> * @method static \Illuminate\Contracts\Queue\Queue setConnectionName(string $name) <add> * @method static void assertNothin...
1
Python
Python
fix activity regularization
fcb6ae8eed5058d7759d2db8bdfbf59e1033b1d9
<ide><path>keras/regularizers.py <ide> def set_layer(self, layer): <ide> <ide> def __call__(self, loss): <ide> output = self.layer.output <del> regularized_loss = self.l1 * K.sum(K.mean(K.abs(output), axis=0)) <add> regularized_loss = loss + self.l1 * K.sum(K.mean(K.abs(output), axis=0)) <ide...
1
Ruby
Ruby
add more tests and fix docs
18f83faf711a4a89b0eef482c775129751d91644
<ide><path>activerecord/lib/active_record/relation.rb <ide> def find_or_create_by!(attributes, &block) <ide> # Attempts to create a record with the given attributes in a table that has a unique constraint <ide> # on one or several of its columns. If a row already exists with one or several of these <ide> # ...
2
Python
Python
fix typo in arxiv.org url
c57f8b79f19df9c3066e0ecc66b01d675bca05b5
<ide><path>research/deeplab/model.py <ide> "Encoder-Decoder with Atrous Separable Convolution for Semantic Image <ide> Segmentation" <ide> Liang-Chieh Chen, Yukun Zhu, George Papandreou, Florian Schroff, Hartwig Adam. <del>(https://arxiv.org/abs1802.02611) <add>(https://arxiv.org/abs/1802.02611) <ide> <ide> "Rethinkin...
1
Go
Go
remove unused key handling functions
ab02b015efb79d3b572c0e7ae8ad6229603d75dc
<ide><path>libnetwork/agent.go <ide> func (c *controller) handleKeyChange(keys []*types.EncryptionKey) error { <ide> return nil <ide> } <ide> <del>func (c *controller) handleKeyChangeV1(keys []*types.EncryptionKey) error { <del> drvEnc := discoverapi.DriverEncryptionUpdate{} <del> <del> // Find the new key and add it...
2
Mixed
Go
add linked containers to hosts file
53f38a14cd6b61a6b5df68cc3694dcba2b0c1eb7
<ide><path>daemon/container.go <ide> func (container *Container) buildHostnameAndHostsFiles(IP string) error { <ide> } <ide> <ide> container.HostsPath = path.Join(container.root, "hosts") <del> return etchosts.Build(container.HostsPath, IP, container.Config.Hostname, container.Config.Domainname) <add> <add> extraCon...
5
Text
Text
add autoencoder to docs
f851229ade806e02e68ceb018b0ebf7c8ee85ffc
<ide><path>docs/sources/layers/core.md <ide> model.add(TimeDistributedDense(5, 10)) # output shape: (nb_samples, nb_timesteps <ide> ``` <ide> <ide> <add>--- <add> <add>## AutoEncoder <add>```python <add>keras.layers.core.AutoEncoder(encoders=[], decoders=[], output_reconstruction=True, tie_weights=False, weights=None...
1
Javascript
Javascript
remove code that is no longer in use
c2a7766a05c1c0cf402262d75fbd9b4d1abeb811
<ide><path>server/index.js <ide> export default class Server { <ide> return buildId.trim() <ide> } <ide> <del> handleBuildId (buildId, res) { <del> if (this.dev) { <del> res.setHeader('Cache-Control', 'no-store, must-revalidate') <del> return true <del> } <del> <del> if (buildId !== this.rend...
1
Javascript
Javascript
add comment and fix euler ordering
9eafb9e9e83ede23c6aa3eff8354a908cdc18e14
<ide><path>examples/js/loaders/FBXLoader.js <ide> <ide> } <ide> <add> // Returns the three.js intrinsic Euler order corresponding to FBX extrinsic Euler order <ide> // ref: http://help.autodesk.com/view/FBX/2017/ENU/?guid=__cpp_ref_class_fbx_euler_html <ide> function getEulerOrder( order ) { <ide> <ide> var enu...
1
Ruby
Ruby
autocorrect some offenses
d68452f2320c726c3bf602318dc85c3230d6f00e
<ide><path>Library/Homebrew/rubocops/patches.rb <ide> module FormulaAudit <ide> # TODO: Many of these could be auto-corrected. <ide> class Patches < FormulaCop <ide> extend T::Sig <add> extend AutoCorrector <ide> <ide> def audit_formula(node, _class_node, _parent_class_node, body) <i...
2