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
fix length of filter iterator
d33a573822a7e7427e0b338b09ccf50788c0f916
<ide><path>dist/Immutable.js <ide> function filterFactory(sequence, predicate, context, useKeys) { <ide> var iterations = 0; <ide> sequence.__iterate((function(v, k, c) { <ide> if (predicate.call(context, v, k, c)) { <del> if (fn(v, useKeys ? k : iterations, $__0) !== false) { <del> iterat...
3
Java
Java
fix checkstyle violation
a51dc84cb16f54c3bfd5780b1a0f90c22f140e9f
<ide><path>spring-beans/src/test/java/org/springframework/beans/factory/DefaultListableBeanFactoryTests.java <ide> <ide> import org.apache.commons.logging.Log; <ide> import org.apache.commons.logging.LogFactory; <del>import org.junit.jupiter.api.Disabled; <ide> import org.junit.jupiter.api.Test; <ide> import org.junit...
1
Javascript
Javascript
show changelog before minor/patch prompt
c9100d95b97913192397772ad81038ba322d068b
<ide><path>scripts/devtools/prepare-release.js <ide> async function main() { <ide> <ide> await checkNPMPermissions(); <ide> <add> const sha = await getPreviousCommitSha(); <add> const [shortCommitLog, formattedCommitLog] = await getCommitLog(sha); <add> <add> console.log(''); <add> console.log( <add> 'This r...
1
Text
Text
fix indentation of sample code
4a70f2873ef62257aa7634e731dd83343bad000a
<ide><path>guide/portuguese/javascript/es6/arrow-functions/index.md <ide> localeTitle: Funções de seta <ide> Funções no ES6 mudaram um pouco. Quero dizer a sintaxe. <ide> <ide> ```javascript <del>// Old Syntax <del> function oldOne() { <add>// Old Syntax <add>function oldOne() { <ide> console.log("Hello World..!");...
1
Python
Python
fix incorrect datetime details (dagrun views)
7667d94091b663f9d9caecf7afe1b018bcad7eda
<ide><path>airflow/www/utils.py <ide> def datetime_html(dttm: Optional[DateTime]) -> str: <ide> as_iso = dttm.isoformat() if dttm else '' <ide> if not as_iso: <ide> return Markup('') <add> as_iso_short = as_iso <ide> if timezone.utcnow().isoformat()[:4] == as_iso[:4]: <del> as_iso = as_iso...
1
Python
Python
fix example usage for `azurecosmosdocumentsensor`
d3976d9b20163550dbfe8cf9b326260516fd9bb8
<ide><path>airflow/providers/microsoft/azure/sensors/cosmos.py <ide> class AzureCosmosDocumentSensor(BaseSensorOperator): <ide> <ide> .. code-block:: <ide> <del> azure_cosmos_sensor = AzureCosmosDocumentSensor( <del> database_name="somedatabase_name", <del> collection_name="somecollection_name", ...
1
Python
Python
simplify gpu check
7c6a97559d070f161131853dc03e600c6a0ca82d
<ide><path>spacy/cli/_util.py <ide> from typer.main import get_command <ide> from contextlib import contextmanager <ide> from thinc.api import Config, ConfigValidationError, require_gpu <del>from thinc.util import has_cupy, gpu_is_available <add>from thinc.util import gpu_is_available <ide> from configparser import Int...
1
Javascript
Javascript
fix lint from 4fe02e2
d3a75344f5d7580181e35394e052a1c13f0e1261
<ide><path>lib/timers.js <ide> function Timeout(after) { <ide> this._idleStart = null; <ide> this._onTimeout = null; <ide> this._repeat = null; <del>}; <add>} <ide> <ide> <ide> function unrefdHandle() {
1
Text
Text
add 15.6.2 blog post to master
9f8387a15f20b78f29c360a8d75b6590f699bf98
<ide><path>docs/_posts/2017-09-25-react-v15.6.2.md <add>--- <add>title: "React v15.6.2" <add>author: nhunzaker <add>--- <add> <add>Today we're sending out React 15.6.2. In 15.6.1, we shipped a few fixes for change events and inputs that had some unintended consequences. Those regressions have been ironed out, and we've...
1
Java
Java
fix issue with sub-protocol negotiation and sockjs
8751936b1219755f3c0f712f7b3597ea03e2e394
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/handler/SockJsWebSocketHandler.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 ...
2
Python
Python
normalize signature of deletionmixin.post
52f99b78bcc36c4dfdd2870ee139cd5461fb9e91
<ide><path>django/views/generic/edit.py <ide> def delete(self, request, *args, **kwargs): <ide> return HttpResponseRedirect(success_url) <ide> <ide> # Add support for browsers which only accept GET and POST for now. <del> def post(self, *args, **kwargs): <del> return self.delete(*args, **kwargs) ...
1
Text
Text
update systemd article to reference dropin file
35e7a7c3e2f0e7329ef666b0e5078b39626befd2
<ide><path>docs/articles/systemd.md <ide> If you want Docker to start at boot, you should also: <ide> There are a number of ways to configure the daemon flags and environment variables <ide> for your Docker daemon. <ide> <del>If the `docker.service` file is set to use an `EnvironmentFile` <del>(often pointing to `/etc...
1
Text
Text
improve fs doc intro
010383a1745a989d27d3462a3beb9fc159000cb4
<ide><path>doc/api/fs.md <ide> <ide> <!-- source_link=lib/fs.js --> <ide> <del>The `fs` module provides an API for interacting with the file system in a <del>manner closely modeled around standard POSIX functions. <add>The `fs` module enables interacting with the file system in a <add>way modeled on standard POSIX fu...
1
Python
Python
fix #849 - part 2
b410a0c4ed36255d9d2a89bb924e710829b6043f
<ide><path>glances/plugins/glances_processlist.py <ide> def add_tree_decoration(self, child_data, is_last_child, first_level): <ide> child_data = new_child_data <ide> pos = new_pos <ide> <del> # draw node prefix <del> if is_last_child: <del> prefix = "└─" <del> else: <de...
1
Ruby
Ruby
fix memcached shadowing
e370cd784bd678704046f3f508a016811ed8d725
<ide><path>Library/Homebrew/formula_cellar_checks.rb <ide> def check_shadowed_headers <ide> return if formula.name == formula_name <ide> end <ide> <del> if MacOS.version < :mavericks && <del> (formula.name.start_with?("postgresql") || <del> formula.name.start_with?("memcached")) <del> retu...
1
Javascript
Javascript
treat empty string as null
c1220ebdde506de91c8b9693b5cb67ac710c8c89
<ide><path>packages/react-dom/src/__tests__/ReactDOMServerIntegrationElements-test.js <ide> describe('ReactDOMServerIntegration', () => { <ide> {''} <ide> </div>, <ide> ); <del> if (render === serverRender || render === streamRender) { <del> // For plain server markup resul...
6
Javascript
Javascript
fix onkeypress documentation of textinput
5df227f42c2291d49a6d0ebd93f92634199a55fd
<ide><path>Libraries/Components/TextInput/TextInput.js <ide> const TextInput = React.createClass({ <ide> onSubmitEditing: PropTypes.func, <ide> /** <ide> * Callback that is called when a key is pressed. <del> * Pressed key value is passed as an argument to the callback handler. <add> * This will be...
1
Javascript
Javascript
normalize response status for http 204 in msie
d31ebc4c508a53facc62da00383a7e88082830c4
<ide><path>lib/adapters/xhr.js <ide> module.exports = function xhrAdapter(resolve, reject, config) { <ide> responseHeaders, <ide> config.transformResponse <ide> ), <del> status: request.status, <del> statusText: request.statusText, <add> // IE sends 1223 instead of 204 (https://gith...
2
Ruby
Ruby
provide git_path and git_version
324a34d8ea8f931dd336dd667bbcdd2531cd3c22
<ide><path>Library/Homebrew/utils/git.rb <ide> def self.git_available? <ide> @git = quiet_system HOMEBREW_ENV_PATH/"scm/git", "--version" <ide> end <ide> <add> def self.git_path <add> return unless git_available? <add> @git_path ||= Utils.popen_read( <add> HOMEBREW_ENV_PATH/"scm/git", "--homebrew=pri...
1
Text
Text
add forms doc chinese translation
60ffe1e22e97c94a15d5e8f5f531d56f16709c8f
<ide><path>docs/docs/07-forms.zh-CN.md <add>--- <add>id: forms-zh-CN <add>title: 表单组件 <add>permalink: forms-zh-CN.html <add>prev: transferring-props-zh-CN.html <add>next: working-with-the-browser-zh-CN.html <add>--- <add> <add>诸如 `<input>`、`<textarea>`、`<option>` 这样的表单组件不同于其他组件,因为他们可以通过用户交互发生变化。这些组件提供的界面使响应用户交互的表单数据处理更...
1
Javascript
Javascript
replace fixturesdir in test-tls-connect
a70ef362ef8de8505ac9f140a4e803af9d706b77
<ide><path>test/parallel/test-tls-connect.js <ide> const common = require('../common'); <ide> if (!common.hasCrypto) <ide> common.skip('missing crypto'); <ide> <add>const fixtures = require('../common/fixtures'); <add> <ide> const assert = require('assert'); <del>const fs = require('fs'); <del>const path = require('...
1
PHP
PHP
fix return type
a075753ad0385d755140b8c748e17cc3f95a8914
<ide><path>src/Illuminate/Routing/Route.php <ide> public function excludedMiddleware() <ide> /** <ide> * Indicate that the route should enforce scoping of multiple implicit Eloquent bindings. <ide> * <del> * @return bool <add> * @return $this <ide> */ <ide> public function scopeBindings()...
1
PHP
PHP
integrate corsbuilder into response
719e9da7cae0460a863bc4817825809a17ec5d11
<ide><path>src/Network/CorsBuilder.php <ide> public function allowOrigin($domain) <ide> if (!preg_match($domain['preg'], $this->_origin)) { <ide> continue; <ide> } <del> $this->_response->header('Access-Control-Allow-Origin', $this->_origin); <add> $value = ...
3
PHP
PHP
trim bloat from form class
77c23c4665aa3723540e967476aac6d5b8f93d3e
<ide><path>system/form.php <ide> public static function open($action = null, $method = 'POST', $attributes = arra <ide> { <ide> $attributes['action'] = HTML::entities(URL::to((is_null($action)) ? Request::uri() : $action)); <ide> <del> // ------------------------------------------------------- <del> // If the req...
1
Text
Text
update korean readme to master
16d7b70b80ad20daf27b45f57b5d9b94f1688c8a
<ide><path>README_ko.md <ide> Flax, PyTorch, TensorFlow 설치 페이지에서 이들을 conda로 설치하는 <ide> 1. **[ALBERT](https://huggingface.co/transformers/model_doc/albert.html)** (from Google Research and the Toyota Technological Institute at Chicago) released with the paper [ALBERT: A Lite BERT for Self-supervised Learning of Language...
1
Javascript
Javascript
improve splitchunksplugin performance
05275e6e8e9cb6e149855bcb02a01cc0226f19cc
<ide><path>lib/optimize/RemoveEmptyChunksPlugin.js <ide> class RemoveEmptyChunksPlugin { <ide> "RemoveEmptyChunksPlugin", <ide> handler <ide> ); <add> compilation.hooks.optimizeChunksAdvanced.tap( <add> "RemoveEmptyChunksPlugin", <add> handler <add> ); <ide> compilation.hooks.optimizeExtractedCh...
2
Javascript
Javascript
fix broken jsdoc references
6f769aab58d9cad6195859d8ec1b6f66ab134fb3
<ide><path>packages/ember-htmlbars/lib/compat/make-bound-helper.js <ide> import { <ide> <ide> @method makeBoundHelper <ide> @for Ember.Handlebars <del> @param {Function} function <add> @param {Function} fn <ide> @param {String} dependentKeys* <ide> @since 1.2.0 <ide> @deprecated <ide><path>packages/ember-h...
27
Text
Text
add maxtotalsockets option to agent constructor
a7c6806adc5591ba782cb7c520fb983bc0e25ec1
<ide><path>doc/api/http.md <ide> http.get({ <ide> <!-- YAML <ide> added: v0.3.4 <ide> changes: <add> - version: v14.5.0 <add> pr-url: https://github.com/nodejs/node/pull/33617 <add> description: Add `maxTotalSockets` option to agent constructor. <ide> - version: v14.5.0 <ide> pr-url: https://github.com/nod...
1
Javascript
Javascript
move texture images loading code to be static
e1179f0b9a01b9a019041fb2b6bce84f1f02f92a
<ide><path>examples/js/loaders/MTLLoader.js <ide> THREE.MTLLoader.MaterialCreator.prototype = { <ide> break; <ide> case 'map_kd': <ide> // Diffuse texture map <del> params['map'] = this.loadTexture( this.baseUrl + value ); <add> ...
1
Text
Text
add changelog entry for inflection removal
0423d9c6c57ffac7f0368460277f370b35c86d64
<ide><path>activesupport/CHANGELOG.md <add>* Remove 'cow' => 'kine' irregular inflection from default inflections. <add> <add> *Andrew White* <add> <ide> * Add `DateTime#to_s(:iso8601)` and `Date#to_s(:iso8601)` for consistency. <ide> <ide> *Andrew White*
1
Javascript
Javascript
improve multiple zlib tests
4e8bc7181c1f2491e187477798d433a4488f43d4
<ide><path>test/parallel/test-zlib-from-gzip-with-trailing-garbage.js <ide> assert.throws( <ide> ); <ide> <ide> zlib.gunzip(data, common.mustCall((err, result) => { <del> assert(err instanceof Error); <del> assert.strictEqual(err.code, 'Z_DATA_ERROR'); <del> assert.strictEqual(err.message, 'unknown compression meth...
8
Text
Text
add docker daemon unavailable note
83c1fd6f53d1b061fd71057210a6e317fcd56359
<ide><path>docs/faq.md <ide> dropped. To correct this problem, change the service's configuration on your <ide> localhost so that the service accepts requests from all IPs. If you aren't sure <ide> how to do this, check the documentation for your OS. <ide> <add>### Why do I get `Cannot connect to the Docker daemon. I...
1
PHP
PHP
add assertion for float value
e39e85e3fc441e60bfe8f71d7a30794e9f053481
<ide><path>tests/TestCase/Validation/ValidationTest.php <ide> public function testIsInteger() <ide> $this->assertTrue(Validation::isInteger('-012')); <ide> <ide> $this->assertFalse(Validation::isInteger('2.5')); <add> $this->assertFalse(Validation::isInteger(2.5)); <ide> $this->assertFal...
1
PHP
PHP
add jobqueued event
8eaec037421aa9f3860da9d339986448b4c884eb
<ide><path>src/Illuminate/Queue/Events/JobQueued.php <add><?php <add> <add>namespace Illuminate\Queue\Events; <add> <add>class JobQueued <add>{ <add> /** <add> * @var string|int|null <add> */ <add> public $jobId; <add> <add> /** <add> * @var string|object <add> */ <add> public $job; <add> <a...
7
Javascript
Javascript
remove unused `var self = this` from old code
e6bfe044ff78d85541e4b85a3f1890e11d2e25c9
<ide><path>lib/net.js <ide> function writeAfterFIN(chunk, encoding, cb) { <ide> <ide> var er = new Error('This socket has been ended by the other party'); <ide> er.code = 'EPIPE'; <del> var self = this; <ide> // TODO: defer error events consistently everywhere, not just the cb <del> self.emit('error', er); <ad...
1
Javascript
Javascript
use validatestring in modules/cjs
4dc10ac7d7ddd2cc52e84d1394f7e863d576109f
<ide><path>lib/internal/modules/cjs/helpers.js <ide> 'use strict'; <ide> <del>const { ERR_INVALID_ARG_TYPE } = require('internal/errors').codes; <add>const { validateString } = require('internal/validators'); <ide> <ide> const { <ide> CHAR_LINE_FEED, <ide> function makeRequireFunction(mod) { <ide> } <ide> <ide> ...
2
Javascript
Javascript
remove unneeded copy function
9d018e0a463178fa28ac3043d666383c2493a788
<ide><path>examples/js/lines/LineMaterial.js <ide> THREE.LineMaterial.prototype.constructor = THREE.LineMaterial; <ide> <ide> THREE.LineMaterial.prototype.isLineMaterial = true; <ide> <del>THREE.LineMaterial.prototype.copy = function ( source ) { <del> <del> THREE.ShaderMaterial.prototype.copy.call( this, source ); <...
2
Text
Text
fix math error in process.md
c5a0dcedd3eb0c4b1d8cead36a0a7d735d6f3f3e
<ide><path>doc/api/process.md <ide> setTimeout(() => { <ide> // [ 1, 552 ] <ide> <ide> console.log(`Benchmark took ${diff[0] * NS_PER_SEC + diff[1]} nanoseconds`); <del> // benchmark took 1000000527 nanoseconds <add> // benchmark took 1000000552 nanoseconds <ide> }, 1000); <ide> ``` <ide>
1
Ruby
Ruby
pass the tab to formulainstaller
1bc631369494433714c5174dcd51511078377980
<ide><path>Library/Homebrew/cmd/upgrade.rb <ide> def upgrade <ide> end <ide> <ide> def upgrade_formula f <add> tab = Tab.for_formula(f) <ide> outdated_keg = Keg.new(f.linked_keg.realpath) rescue nil <ide> <del> installer = FormulaInstaller.new f <add> installer = FormulaInstaller.new(f, tab) <ide> ...
2
Go
Go
fix some typos in runconfig\opts\envfile_test.go
58da4c1bab83988486d31ad497a68abd77f05316
<ide><path>runconfig/opts/envfile_test.go <ide> and_underscore=working too <ide> } <ide> <ide> if !reflect.DeepEqual(lines, expectedLines) { <del> t.Fatal("lines not equal to expected_lines") <add> t.Fatal("lines not equal to expectedLines") <ide> } <ide> } <ide> <ide> another invalid line` <ide> defer os.Remov...
1
Text
Text
add security notice to v0.8.17 post
6d9ee4b1843868850d950c037bbf696f72170c0c
<ide><path>doc/blog/release/v0.8.17.md <ide> slug: node-v0-8-17-stable <ide> category: release <ide> version: 0.8.17 <ide> <add>This release addresses a potential security vulnerability. <add> <add>If you do not use TypedArrays, then you're fine (but should still <add>upgrade for other reasons, like better performance...
1
Ruby
Ruby
use ruby >= 1.9 hash syntax as is the preference
578096b9712a018b0241cb051dc0051239f62193
<ide><path>actionview/test/template/render_test.rb <ide> def test_render_partial_collection_for_non_array <ide> y.yield(Customer.new("david")) <ide> y.yield(Customer.new("mary")) <ide> end <del> assert_equal "Hello: davidHello: mary", @view.render(:partial => "test/customer", collection: customers) <...
1
Javascript
Javascript
add ios 10 support for terserplugin
aa474017d72279dd242f3986a33082a6e5f2a816
<ide><path>packages/next/build/webpack-config.js <ide> function optimizationConfig ({ dev, isServer, totalPages, target }) { <ide> <ide> // Terser is a better uglifier <ide> config.minimizer = [ <del> new TerserPlugin(terserPluginConfig) <add> new TerserPlugin({...terserPluginConfig, <add> terserOptions...
1
Ruby
Ruby
fix tests across dst (closes ) [mpalmer]
15467a43f5e0c107d5048950d1718ccccbbaf01e
<ide><path>activesupport/test/core_ext/time_ext_test.rb <ide> def test_utc_plus <ide> end <ide> <ide> def test_next_week <del> assert_equal Time.local(2005,2,28), Time.local(2005,2,22,15,15,10).next_week <del> assert_equal Time.local(2005,2,29), Time.local(2005,2,22,15,15,10).next_week(:tuesday) <del> ass...
1
Javascript
Javascript
fix broken image cropper - can not scroll
13dfb6267a16f3430cf609d47b290ab977082300
<ide><path>Libraries/Components/ScrollView/ScrollView.js <ide> const ColorPropType = require('ColorPropType'); <ide> const EdgeInsetsPropType = require('EdgeInsetsPropType'); <ide> const Platform = require('Platform'); <ide> const PointPropType = require('PointPropType'); <del>const RCTScrollViewManager = require('Nati...
1
Ruby
Ruby
add test for php version in url middle
4f55565677101a1a3b63567ce937b8cf72eae252
<ide><path>Library/Homebrew/test/version_spec.rb <ide> .to be_detected_from("ftp://gcc.gnu.org/pub/gcc/snapshots/6-20151227/gcc-6-20151227.tar.bz2") <ide> end <ide> <add> specify "semver in middle of URL" do <add> expect(Version.create("7.1.10")) <add> .to be_detected_from("https://php.net/g...
1
Java
Java
remove consumes from @requestmapping
945cf43e2db6fe2f02a3967397cc1e32f1c22876
<ide><path>org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMethodMapping.java <ide> protected RequestMappingInfo getMappingForMethod(String beanName, Method method) <ide> private static RequestMappingInfo createFromRequestMapping(RequestMapping a...
5
Python
Python
add a specific error message for urlvalidator
34d098665d9423c0b70add5b8c8231fff9d0f774
<ide><path>django/core/validators.py <ide> class URLValidator(RegexValidator): <ide> r'\[?[A-F0-9]*:[A-F0-9:]+\]?)' # ...or ipv6 <ide> r'(?::\d+)?' # optional port <ide> r'(?:/?|[/?]\S+)$', re.IGNORECASE) <add> message = _('Enter a valid URL.') <ide> <ide> def __call__(self, value): <i...
2
Text
Text
add coffeescript link
28b362f8ffa02aed58a8d07a7f27922a8c2fd4f9
<ide><path>docs/customizing-atom.md <ide> You can open this file in an editor from the _Atom > Open Your Config_ menu. <ide> ### init.coffee <ide> <ide> When Atom finishes loading, it will evaluate _init.coffee_ in your _~/.atom_ <del>directory, giving you a chance to run arbitrary personal CoffeeScript code to <add>d...
1
Text
Text
add the text for clarity to the article
2d2c13f2ab6af0be28976975c6d1d22730aedc23
<ide><path>guide/english/certifications/responsive-web-design/basic-css/import-a-google-font/index.md <ide> title: Import a Google Font <ide> --- <ide> ## Import a Google Font <add>The below example shows one of the ways in which you can import and use a Google Font. <add>The example uses a link to the font's API, in t...
1
Python
Python
correct a typo in multi.py
3111feb9e5b279ec066235b4a5225180aedb20d0
<ide><path>celery/bin/multi.py <ide> $ celery multi show 10 -l INFO -Q:1-3 images,video -Q:4,5 data <ide> -Q default -L:4,5 DEBUG <ide> <del> $ # Additional options are added to each celery worker' comamnd, <add> $ # Additional options are added to each celery worker's command, <ide> $ # but you ...
1
Javascript
Javascript
eliminate references to undefined watcher variable
cf053174a20a8e057aef6c9f49073d2feab5b404
<ide><path>src/path-watcher.js <ide> class PathWatcherManager { <ide> return w <ide> } <ide> <del> // Private: Directly access the {NativeWatcherRegistry}. <del> getRegistry () { <del> if (this.useExperimentalWatcher()) { <del> return watcher.getRegistry() <del> } <del> <del> return this.nativeRe...
1
Ruby
Ruby
add sneakers test and inline setup/teardown
2d19c711d041dd955d3fcaf952d101df9241a65e
<ide><path>test/cases/adapter_test.rb <ide> require 'helper' <ide> <ide> class AdapterTest < ActiveSupport::TestCase <del> def setup <del> @old_adapter = ActiveJob::Base.queue_adapter <del> end <add> setup { @old_adapter = ActiveJob::Base.queue_adapter } <add> teardown { ActiveJob::Base.queue_adapter = @old_...
1
Javascript
Javascript
add buffer_creation benchmark
12a169e8ff4036e160dbdc605eb9f15eae933b47
<ide><path>benchmark/buffer_creation.js <add> <add> <add>for (var i = 0; i < 9000000; i++) { <add> b = new Buffer(10); <add> b[1] = 2 <add>} <ide><path>benchmark/string_creation.js <add> <add> <add>for (var i = 0; i < 9000000; i++) { <add> s = '01234567890'; <add> s[1] = "a"; <add>}
2
Javascript
Javascript
add the word "safely" to clarify
c82058ad57dfdab0e8e2505b6f44d7e33398ffb2
<ide><path>src/ng/log.js <ide> * @requires $window <ide> * <ide> * @description <del> * Simple service for logging. Default implementation writes the message <add> * Simple service for logging. Default implementation safely writes the message <ide> * into the browser's console (if present). <ide> * <ide> * The m...
1
Python
Python
add autosummary of emath functions
31fbcf5a3b094768a2f9d362ada8bc5df7b4754a
<ide><path>numpy/core/code_generators/ufunc_docstrings.py <ide> def add_newdoc(place, name, doc): <ide> <ide> See Also <ide> -------- <del> numpy.lib.scimath.sqrt <add> lib.scimath.sqrt <ide> A version which returns complex numbers when given negative reals. <ide> <ide> Notes <ide><path>nump...
2
PHP
PHP
set time to midnight as described in
1c2257ddc10acb829d450fe6d812101b6708af36
<ide><path>src/Database/Type/DateType.php <ide> */ <ide> namespace Cake\Database\Type; <ide> <add>use Cake\Database\Driver; <add> <ide> class DateType extends \Cake\Database\Type\DateTimeType { <ide> <ide> /** <ide> public function marshal($value) { <ide> } <ide> return $date; <ide> } <del> <add> <add>/** <add...
1
PHP
PHP
update doc blocks
7be864873b89375895d3ea6dd0e93120097dd2cd
<ide><path>src/View/Input/Label.php <ide> class Label { <ide> /** <ide> * Constructor. <ide> * <add> * This class uses the following template: <add> * <add> * - `label` Used to generate the label for a radio button. <add> * Can use the following variables `attrs`, `text` and `input`. <add> * <ide> * @param Cake\Vi...
2
Javascript
Javascript
improve coverage for process.umask
d43e7f39929846f02dd74a827e4b2269f3e977d9
<ide><path>test/parallel/test-umask.js <ide> assert.strictEqual(parseInt(mask, 8), process.umask(old)); <ide> assert.strictEqual(old, process.umask()); <ide> // 2. If the test fails, process.umask() will return 0 <ide> assert.strictEqual(old, process.umask()); <add> <add>assert.throws(() => { <add> process.umask({}); ...
1
Text
Text
simplify format description of urlobject.auth
b002f6ec27a436c4d3580b953c5e8761f888a6a9
<ide><path>doc/api/url.md <ide> The legacy `urlObject` (`require('url').Url`) is created and returned by the <ide> <ide> The `auth` property is the username and password portion of the URL, also <ide> referred to as _userinfo_. This string subset follows the `protocol` and <del>double slashes (if present) and precedes...
1
Python
Python
run mlm pad to multiple for fp16
6c40e49712972141c3d7aeba4ed90bb79f2bb078
<ide><path>examples/language-modeling/run_mlm.py <ide> def group_texts(examples): <ide> <ide> # Data collator <ide> # This one will take care of randomly masking the tokens. <del> data_collator = DataCollatorForLanguageModeling(tokenizer=tokenizer, mlm_probability=data_args.mlm_probability) <add> pad_to_...
3
Javascript
Javascript
fix typo and minor semantic error
6295a0d9bd7f57b1c23d83bf6a74d1242c3e19b4
<ide><path>src/loader.js <ide> function setupModuleLoader(window) { <ide> * <ide> * # Module <ide> * <del> * A module is a collocation of services, directives, filters, and configuration information. Module <del> * is used to configure the {@link AUTO.$injector $injector}. <add> * A module is...
1
Javascript
Javascript
hide error earlier
d0f88af5b620f25c17c369e7c0bd5ee1b79359fc
<ide><path>website/assets/js/models.js <ide> export class ModelComparer { <ide> this.fonts = CHART_FONTS; <ide> this.defaultModels = defaultModels; <ide> this.tpl.get('result').style.display = 'block'; <add> this.tpl.get('error').style.display = 'none'; <ide> this.fetchCompat() <i...
1
Text
Text
add @takkanm credits in the changelog [ci skip]
744d388a90bed2958210b5779d3fc3f9ad0cf550
<ide><path>actionpack/CHANGELOG.md <ide> * Added `#reverse_merge` and `#reverse_merge!` methods to `ActionController::Parameters` <ide> <del> *Edouard Chin* <add> *Edouard Chin & Mitsutaka Mimura* <ide> <ide> * Fix malformed URLS when using `ApplicationController.renderer` <ide>
1
Python
Python
reduce code complexity on logs.py
aaf1eebbcd797c8b05c09708cb5cc82012430857
<ide><path>glances/logs.py <ide> def add(self, item_state, item_type, item_value, <ide> item_index = self.__itemexist__(item_type) <ide> if item_index < 0: <ide> # Item did not exist, add if WARNING or CRITICAL <del> if item_state == "WARNING" or item_state == "CRITICAL": <del> ...
1
Text
Text
make some adjustments
086956b901b0b2031f0f63078ba14a6353a1a429
<ide><path>curriculum/challenges/spanish/01-responsive-web-design/basic-html-and-html5/add-a-submit-button-to-a-form.spanish.md <ide> localeTitle: Agregar un botón de envío a un formulario <ide> --- <ide> <ide> ## Description <del><section id="description"> Agreguemos un botón de <code>submit</code> a su formulario. A...
1
Text
Text
release notes for 0.9.11 snow-maker
1cdc050ce7b5ae37e27df064849384cf55938679
<ide><path>CHANGELOG.md <add><a name="0.9.11"><a/> <ide> # <angular/> 0.9.11 snow-maker (in-progress) # <ide> <add>### Documentation <add>- completed migration of docs from the wiki site to <add> [http://docs.angularjs.org/](http://docs.angularjs.org/) <add>- many, but by far not all, docs were updated, improved and...
1
Python
Python
fix syntax error for dimensiondatastatus object
302b9bba33aeecbc2768c9d796845d31a2a1e9e4
<ide><path>libcloud/common/dimensiondata.py <ide> def __repr__(self): <ide> return (('<DimensionDataStatus: action=%s, request_time=%s, ' <ide> 'user_name=%s, number_of_steps=%s, update_time=%s, ' <ide> 'step_name=%s, step_number=%s, ' <del> 'step_percent_comple...
1
Text
Text
correct typos in windows installation guide for go
38294c5ce1f2f8c309deb1748016257fbf643c24
<ide><path>guide/english/go/installing-go/windows-installer/index.md <ide> title: Installing Go in Windows using the MSI Installer <ide> ### Installing Go in Windows using the MSI Installer <ide> <ide> From the [golang's download page](https://golang.org/dl/), get the Windows MSI installer and run it. You'll have to p...
1
PHP
PHP
controllermiddleware`
914582b4a6312a131db6935ef1939de3214fc7ca
<ide><path>src/Illuminate/Routing/Route.php <ide> protected function controllerMiddleware() <ide> $controller = $this->container->make($class); <ide> <ide> return (new ControllerDispatcher($this->router, $this->container)) <del> ->getMiddleware($controller, $method); <add> ...
1
Javascript
Javascript
fix spurious autoscroll
0a6d637619fe357ee44f43827487d2dbe6051486
<ide><path>src/devtools/views/Components/Element.js <ide> import React, { <ide> Fragment, <ide> useCallback, <ide> useContext, <del> useEffect, <add> useLayoutEffect, <ide> useMemo, <ide> useRef, <ide> } from 'react'; <ide> import styles from './Element.css'; <ide> type Props = { <ide> index: number, <ide...
2
Text
Text
add installation help for ubuntu
0b44bb7faefbaa48a06892e668b5211044c0fab8
<ide><path>guide/english/r/index.md <ide> Then install it on your computer. For help in installation refer to the [referen <ide> * [Installing R on Windows](http://youtu.be/Ohnk9hcxf9M) <ide> * [Installing R on Mac](https://youtu.be/uxuuWXU-7UQ) <ide> * [Installing R on Unix-alikes](https://cran.r-project.org/doc/ma...
1
Ruby
Ruby
remove unnecessary `connection_name` variable
f8b623919ad44d2f33ed6aeb5c57aa904d2fbe48
<ide><path>activerecord/lib/active_record/migration/compatibility.rb <ide> def index_name_for_remove(table_name, options = {}) <ide> <ide> class V5_0 < V5_1 <ide> def create_table(table_name, options = {}) <del> connection_name = self.connection.adapter_name <del> if connection_name == ...
1
Javascript
Javascript
add test for assert.notstrictequal()
647826017edc27ac7e2b6677f50240279d5a5079
<ide><path>test/parallel/test-assert.js <ide> assert.throws(makeBlock(a.strictEqual, 2, '2'), <ide> assert.throws(makeBlock(a.strictEqual, null, undefined), <ide> a.AssertionError, 'strictEqual(null, undefined)'); <ide> <add>assert.throws(makeBlock(a.notStrictEqual, 2, 2), <add> a.AssertionE...
1
Javascript
Javascript
add color methods to prototype object
c8aacd8cdc98c69cf11281fbc86c18a9dd9c7113
<ide><path>src/core/Color.js <ide> THREE.Color = function ( hex ) { <ide> this.hex; <ide> this.__styleString = 'rgba(0, 0, 0, 1)'; <ide> */ <add> <add> this.setHex( hex ); <add> <add>} <ide> <del> this.setHex = function ( hex ) { <add>THREE.Color.prototype = { <add> <add> setHex: function ( hex ) { <ide> <id...
1
PHP
PHP
add validator proxies for money() and multiple()
ebc9237795ae9d625aeb9622c18f7847f87ce4cd
<ide><path>src/Validation/Validator.php <ide> public function integer($field, $message = null, $when = null) <ide> ]); <ide> } <ide> <add> /** <add> * Add a validation rule to ensure a field is a money value. <add> * <add> * @param string $field The field you want to apply the rule to. <add>...
2
Javascript
Javascript
move touchhistorymath to react native repo
cf649b40a56dc5c0ffe2595b963847f0ff8de245
<ide><path>packages/events/TouchHistoryMath.js <del>/** <del> * Copyright (c) 2016-present, Facebook, Inc. <del> * <del> * This source code is licensed under the MIT license found in the <del> * LICENSE file in the root directory of this source tree. <del> */ <del> <del>const TouchHistoryMath = { <del> /** <del> * T...
4
Javascript
Javascript
fix the stepper beyond page 1
3a824f69d4395c50bbc8fdd0d5178a62c37a688c
<ide><path>web/debugger.js <ide> var StepperManager = (function StepperManagerClosure() { <ide> this.selectStepper(pageNumber, false); <ide> return stepper; <ide> }, <del> selectStepper: function selectStepper(pageNumber, selectPanel) { <add> selectStepper: function selectStepper(pageNumber, sel...
1
PHP
PHP
use assertsame in test case cakephp
672760ca9d016b722709d6d234a10e0e2c7ffb42
<ide><path>tests/TestCase/ORM/EntityTest.php <ide> public function testSetMultiplePropertiesNoSetters() <ide> $this->assertEquals(1, $entity->getOriginal('id')); <ide> <ide> $entity->set(['foo', 'bar']); <del> $this->assertEquals('foo', $entity->get('0')); <del> $this->assertEquals('bar',...
2
Java
Java
remove line break
9520d6328687bb3ab259097c4b203bfc0ec262df
<ide><path>rxjava-core/src/main/java/rx/operators/OperatorSubscribeOn.java <ide> public OperatorSubscribeOn(Scheduler scheduler) { <ide> } <ide> <ide> @Override <del> public Subscriber<? super Observable<T>> call( <del> final Subscriber<? super T> subscriber) { <add> public Subscriber<? super ...
1
Python
Python
add 0d structured indexing benchmark
8cf5b506d2d3da833b09e8bbbe874db6f9c5e809
<ide><path>benchmarks/benchmarks/bench_indexing.py <ide> def time_mmap_slicing(self): <ide> def time_mmap_fancy_indexing(self): <ide> for i in range(1000): <ide> self.fp[self.indexes] <add> <add> <add>class IndexingStructured0D(Benchmark): <add> def setup(self): <add> self.dt = np.dtyp...
1
Python
Python
add chinesedefaults class for pickling
f27859fa99b90f465d8b8b8c937d0a178e63fcb4
<ide><path>spacy/lang/zh/__init__.py <ide> # coding: utf8 <ide> from __future__ import unicode_literals <ide> <add>from ...attrs import LANG <ide> from ...language import Language <ide> from ...tokens import Doc <ide> <ide> <add>class ChineseDefaults(Language.Defaults): <add> lex_attr_getters = dict(Language.Defa...
1
Python
Python
improve output on trainer
1224c4d3c6eaa6e94c6eea312289ebe1c6bedbc9
<ide><path>spacy/train.py <ide> from __future__ import unicode_literals <ide> <ide> import random <add>import tqdm <ide> from .gold import GoldParse <ide> from .scorer import Scorer <ide> from .gold import merge_sents <ide> class Trainer(object): <ide> def __init__(self, nlp, gold_tuples): <ide> self.nlp =...
1
Javascript
Javascript
return instance of ping, rather than constructor
e2173f9101545b60367fd95524232fb8cf2eabca
<ide><path>src/auto/injector.js <ide> function annotate(fn) { <ide> * Here is an example of registering a service using <ide> * {@link AUTO.$provide#methods_service $provide.service(class)}. <ide> * <pre> <del> * $provide.service('ping', ['$http', function($http) { <del> * var Ping = function() { <del> * ...
1
Python
Python
add unit test for kwarg of np.einsum
ebd4a90b26086985cda65f79fbfeb6449cb5ba6b
<ide><path>numpy/core/tests/test_einsum.py <ide> def test_einsum_misc(self): <ide> [[[1, 3], [3, 9], [5, 15], [7, 21]], <ide> [[8, 16], [16, 32], [24, 48], [32, 64]]]) <ide> <add> # Ensure explicitly setting out=None does not cause an error <add> # see issue gh...
1
PHP
PHP
correct param order
4d8090b332ec30c80c54eb16a61134cf09562c7f
<ide><path>src/Illuminate/Notifications/Events/NotificationFailed.php <ide> class NotificationFailed <ide> */ <ide> public function __construct($notifiable, $notification, $channel, $data = []) <ide> { <add> $this->data = $data; <ide> $this->channel = $channel; <ide> $this->notifiabl...
1
Python
Python
add test_remove_unused_code to quarantined test
6b451360c01df13259d4ee4bb1a4125a2c771654
<ide><path>tests/models/test_dagcode.py <ide> import unittest <ide> from datetime import timedelta <ide> <add>import pytest <ide> from mock import patch <ide> <ide> from airflow import AirflowException, example_dags as example_dags_module, models <ide> def test_detecting_duplicate_key(self, mock_hash): <ide> ...
1
Javascript
Javascript
consolidate id attribute markup generation
9d119577eaf659238811f0315a1c7a0cf3c7fb3f
<ide><path>src/core/ReactDOMComponent.js <ide> ReactDOMComponent.Mixin = { <ide> } <ide> } <ide> <del> var escapedID = escapeTextForBrowser(this._rootNodeID); <del> return ret + ' ' + ReactMount.ATTR_NAME + '="' + escapedID + '">'; <add> var idMarkup = DOMPropertyOperations.createMarkupForProperty( ...
3
Javascript
Javascript
pass a valid socket on `tlsclienterror`
7f7a899fa5f3b192d4f503f6602f24f7ff4ec57a
<ide><path>lib/_tls_wrap.js <ide> function onerror(err) { <ide> if (!owner._secureEstablished) { <ide> // When handshake fails control is not yet released, <ide> // so self._tlsError will return null instead of actual error <add> <add> // Set closing the socket after emitting an event since the socket need...
3
Javascript
Javascript
fix endof handling of no-arg and ms
9021abfc609ef8c774330fdfafab832270b1588b
<ide><path>moment.js <ide> <ide> endOf: function (units) { <ide> units = normalizeUnits(units); <add> if (units === undefined || units === 'millisecond') { <add> return this; <add> } <ide> return this.startOf(units).add(1, (units === 'isoWeek' ? 'wee...
2
Go
Go
move route type to common arch file
dadd54dba395f68c492a8ce5e2bf9488f9db0830
<ide><path>pkg/netlink/netlink.go <add>// Packet netlink provide access to low level Netlink sockets and messages. <add>// <add>// Actual implementations are in: <add>// netlink_linux.go <add>// netlink_darwin.go <add>package netlink <add> <add>import "net" <add> <add>// A Route is a subnet associated with the interfac...
2
PHP
PHP
use double quotes; remove un-used fonts
530c8187f556d1b39c3a33a403f077a030ac9905
<ide><path>resources/views/welcome.blade.php <ide> <title>Laravel</title> <ide> <ide> <!-- Fonts --> <del> <link href='https://fonts.googleapis.com/css?family=Raleway:100,400,300,600' rel='stylesheet' type='text/css'> <add> <link href="https://fonts.googleapis.com/css?family=Raleway:100,6...
1
Java
Java
remove resourceservlet (deprecated in 4.3)
9bcc7c3b06f0e693269cbd37726ea6b27af952ec
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/ResourceServlet.java <del>/* <del> * Copyright 2002-2016 the original author or authors. <del> * <del> * Licensed under the Apache License, Version 2.0 (the "License"); <del> * you may not use this file except in compliance with the License. <del> *...
1
Text
Text
add changelog entry for
55d943c5670997ce64744c1ae3cd0426f5517b10
<ide><path>activerecord/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Round usec when comparing timestamp attributes in the dirty tracking. <add> Fixes #6975. <add> <add> *kennyj* <add> <ide> * Use inversed parent for first and last child of has_many association. <ide> <ide> *Ravil Bayr...
1
Go
Go
update init for new apparmor import path
fa5cabf9fe9e257d64638043ca2fd08a7bf96cb3
<ide><path>pkg/libcontainer/nsinit/init.go <ide> import ( <ide> "github.com/dotcloud/docker/pkg/libcontainer/console" <ide> "github.com/dotcloud/docker/pkg/libcontainer/mount" <ide> "github.com/dotcloud/docker/pkg/libcontainer/network" <del> "github.com/dotcloud/docker/pkg/libcontainer/security/apparmor" <ide> "git...
1
Python
Python
fix exception causes in build_clib.py
69dff1a33babd996496213afbb8080823c8d5bdd
<ide><path>numpy/distutils/command/build_clib.py <ide> def finalize_options(self): <ide> if self.parallel: <ide> try: <ide> self.parallel = int(self.parallel) <del> except ValueError: <del> raise ValueError("--parallel/-j argument must be an integer") <add> ...
1
Java
Java
ensure one time logging for request details
1b3fd9edfffd78a90da820d04455acbdbc3d4661
<ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/ExchangeResult.java <ide> public class ExchangeResult { <ide> @Nullable <ide> private final Object mockServerResult; <ide> <add> /** Ensure single logging, e.g. for expectAll. */ <add> private boolean diagnosticsLogged; <add> <ide> <i...
2
Javascript
Javascript
perform the latest run and cancel previous
779d2034f357707f4f4af0cf6ed114f3a61dd915
<ide><path>client/src/templates/Challenges/redux/execute-challenge-saga.js <del>import { takeEvery, put, select, call } from 'redux-saga/effects'; <add>import { put, select, call, takeLatest } from 'redux-saga/effects'; <ide> <ide> import { <ide> challengeMetaSelector, <ide> function* ExecuteChallengeSaga() { <ide> ...
1
Javascript
Javascript
update title to example
cf2cc9e285b1196f2cc844857e909b4f9b614bb0
<ide><path>packages/rn-tester/js/RNTesterAppShared.js <ide> const RNTesterApp = (): React.Node => { <ide> <ide> const { <ide> activeModuleKey, <add> activeModuleTitle, <ide> activeModuleExampleKey, <ide> screen, <ide> bookmarks, <ide> const RNTesterApp = (): React.Node => { <ide> }, [activeModul...
5
Python
Python
add ex_ prefix to newly implemented methods
122b3a07be01fec24ecfb353d8762f280ad232d8
<ide><path>libcloud/container/drivers/kubernetes.py <ide> class KubernetesContainerDriver(KubernetesDriverMixin, ContainerDriver): <ide> connectionCls = KubernetesBasicAuthConnection <ide> supports_clusters = True <ide> <del> def get_version(self): <add> def ex_get_version(self): <ide> """Get Kub...
1