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
remove legacypromise in src/core/core.js
034f1102dae10c94161c25665d7d76d9f931fdc4
<ide><path>src/core/core.js <ide> * limitations under the License. <ide> */ <ide> /* globals assert, calculateMD5, Catalog, Dict, error, info, isArray, <del> isArrayBuffer, isName, isStream, isString, LegacyPromise, <add> isArrayBuffer, isName, isStream, isString, createPromiseCapability, <ide> ...
1
PHP
PHP
use the registryalias when setting entity source
0c3f904dd635edc72a5d15538b459fe0f65601a8
<ide><path>src/ORM/ResultSet.php <ide> protected function _groupResult($row) <ide> ) <ide> ); <ide> if ($this->_hydrate) { <del> $options['source'] = $alias; <add> $options['source'] = $matching['instance']->registryAlias(); <ide> $en...
2
Ruby
Ruby
fix human_attribute_name to handle names with dots
dff19f7be2584d9eaa869de14a919aa70d029d92
<ide><path>activemodel/lib/active_model/translation.rb <ide> def lookup_ancestors <ide> # <ide> # Specify +options+ with additional translating options. <ide> def human_attribute_name(attribute, options = {}) <del> defaults = lookup_ancestors.map do |klass| <del> :"#{self.i18n_scope}.attributes....
2
Javascript
Javascript
fix typo in test description
9f25c5f55efba145fb3e47ef7cf5f3c99d42ed58
<ide><path>test/geo/path-test.js <ide> suite.addBatch({ <ide> assert.inDelta(bounds[1][0], 794.602, 1e-3); <ide> assert.inDelta(bounds[1][1], 856.501, 1e-3); <ide> }, <del> "renders a line string": function(p) { <add> "centroid of a line string": function(p) { <ide> var centroid ...
1
Text
Text
save option in validations
9616849ccb52b517614fcd964c0f074e16a805c9
<ide><path>guides/source/active_record_validations.md <ide> class Person < ActiveRecord::Base <ide> validates :age, numericality: true, on: :update <ide> <ide> # the default (validates on both create and update) <add> The following line is in review state and as of now, it is not running in any version of Rails 3...
1
Text
Text
fix a typo in the working-with-the-browser docs
79b00591f162a9edaa761058ce40bbea0b2bbd08
<ide><path>docs/docs/07-working-with-the-browser.md <ide> Although React is pretty good at abstracting browser differences, some browsers <ide> <ide> #### onScroll event on IE8 <ide> <del>On IE8 the `onScroll` event doesn't bubbles and IE8 doesn't have an API to define handlers to the capturing phase of an event, mea...
1
Text
Text
add typescript execution requirements
dcc9589e5ed36d511466fd43ea1f4b9c1f567899
<ide><path>doc/contributing/maintaining-types-for-nodejs.md <ide> code of their JavaScript projects. While many people don't annotate their code, <ide> or make use of annotations at all, there are enough who do that the project has <ide> agreed it's important to work towards having [suitable types for end-users][]. <id...
1
Javascript
Javascript
fix jshint failure
109da39c9b645b7232988bd7def912d6fc48ddb3
<ide><path>packages/ember-runtime/lib/mixins/sortable.js <ide> Ember.SortableMixin = Ember.Mixin.create(Ember.MutableEnumerable, <ide> oldIndex = arrangedContent.indexOf(item), <ide> newIndex = this._binarySearch(item, 0, get(arrangedContent, 'length')); <ide> <del> if (newIndex != oldIndex) { <add>...
1
PHP
PHP
remove unused helper
2c7e7609d27fe8789e264cd44d8bd2d53a3f47b5
<ide><path>tests/Fixture/AfterTreesFixture.php <del><?php <del>/** <del> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <del> * <del> * Licensed under The MIT License <del> * For full copyright and license information, please see the LICENSE.txt <del> * Redistributions of files must retain the above c...
19
Javascript
Javascript
fix jshint warnings in grunt/
42e20a1488031ce0f6d10bfcb89ec4b56a33e578
<ide><path>grunt/config/webdriver-all.js <ide> module.exports = function(props){ <ide> } <ide> <ide> return exports; <del>} <add>}; <ide><path>grunt/config/webdriver-perf.js <ide> var params = [] <ide> ) <ide> .concat(reactVersions <ide> .map(encodeURIComponent) <del> .map(function(version){ return 'rea...
4
Text
Text
add 2 testing communities for women
8c0ad877abe1eb63d868ef3ac84f408cf6cb82d8
<ide><path>guide/english/working-in-tech/women-in-tech/index.md <ide> Encouraging girls in elementary, middle, and high school can also help to increa <ide> - [1 Million Women To Tech](https://1millionwomentotech.com/) <ide> - [Women Techmakers](https://www.womentechmakers.com/) <ide> <del> <ide> ### Podcasts on Wom...
1
Java
Java
remove unused code in reacttextview
48ba44087f3de8fe8a90e758cc3d49e490e7461a
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java <ide> public class ReactTextView extends TextView implements ReactCompoundView { <ide> private boolean mContainsImages; <ide> private int mDefaultGravityHorizontal; <ide> private int mDefaultGravityVertical; <del> private bool...
1
PHP
PHP
fix code style
0749932b7914edd551ffa8a8ec420a09b71b325f
<ide><path>src/Illuminate/Notifications/Messages/SlackAttachment.php <ide> public function footer($footer) <ide> public function footerIcon($icon) <ide> { <ide> $this->footerIcon = $icon; <del> <add> <ide> return $this; <ide> } <ide>
1
Javascript
Javascript
improve buffer transcode
9f58e029087b73609fb19a0f226996a4cc019789
<ide><path>test/parallel/test-icu-transcode.js <ide> for (const test in tests) { <ide> utf8_to_ucs2.toString('ucs2')); <ide> } <ide> <add>assert.throws( <add> () => buffer.transcode(null, 'utf8', 'ascii'), <add> /^TypeError: "source" argument must be a Buffer$/ <add>); <add> <ide> assert.throws(...
1
Python
Python
add ec2 ap southeast
1b9150fd60048c8c290e8bddd32a6ca172721de9
<ide><path>libcloud/drivers/ec2.py <ide> EC2_US_EAST_HOST = 'ec2.us-east-1.amazonaws.com' <ide> EC2_US_WEST_HOST = 'ec2.us-west-1.amazonaws.com' <ide> EC2_EU_WEST_HOST = 'ec2.eu-west-1.amazonaws.com' <add>EC2_AP_SOUTHEAST_HOST = 'ec2.ap-southeast-1.amazonaws.com' <ide> <ide> API_VERSION = '2009-11-30' <ide> <ide> EC2...
2
PHP
PHP
fix more incorrect mocks
cae89bfc868d12ccf3da5d87fe4327b8e3ca1bc0
<ide><path>tests/TestCase/Cache/Engine/MemcachedEngineTest.php <ide> public function testMsgpackSerializerSetting() <ide> public function testJsonSerializerThrowException() <ide> { <ide> $this->skipIf( <del> Memcached::HAVE_JSON, <add> (bool)Memcached::HAVE_JSON, <ide> ...
2
Java
Java
refine json encoding of non-streaming flux
ce568468aed09147e335b5d5a717e1b2dac581a8
<ide><path>spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Encoder.java <ide> import com.fasterxml.jackson.databind.SequenceWriter; <ide> import com.fasterxml.jackson.databind.exc.InvalidDefinitionException; <ide> import com.fasterxml.jackson.databind.ser.FilterProvider; <add>import org.apa...
2
Javascript
Javascript
improve performance of callbacks
bd1bd7e38d9613d995d273f542cdf6bd2cff1da4
<ide><path>lib/timers.js <ide> exports.active = function(item) { <ide> */ <ide> <ide> <del>exports.setTimeout = function(callback, after) { <del> var timer; <add>exports.setTimeout = function(callback, after, arg1, arg2, arg3) { <add> var timer, i, args; <add> var len = arguments.length; <ide> <ide> after *= 1...
1
Text
Text
improve grammar for the 1st paragraph
01915f5013017254f3982867f4bf699504f73b68
<ide><path>curriculum/challenges/spanish/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities.spanish.md <ide> localeTitle: Convertir entidades HTML <ide> --- <ide> <ide> ## Description <del><section id="description"> Convierta los caracteres <code>&amp;</code> , <code>&l...
1
Ruby
Ruby
fix style issues in extract command
bd2ac70c0fb9442f6fa8195d9b8cf899dba66481
<ide><path>Library/Homebrew/dev-cmd/extract.rb <ide> module Homebrew <ide> module_function <ide> <ide> def extract <del> Homebrew::CLI::Parser.parse do <add> Homebrew::CLI::Parser.parse do <ide> switch "--stdout", description: "Output to stdout on terminal instead of file" <ide> switch :...
1
Go
Go
move sethostconfig to daemon file
dde0cc78bdec31be1ecbd7def6a83111224ccc55
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) verifyHostConfig(hostConfig *runconfig.HostConfig) ([]stri <ide> <ide> return warnings, nil <ide> } <add> <add>func (daemon *Daemon) setHostConfig(container *Container, hostConfig *runconfig.HostConfig) error { <add> container.Lock() <add> defer container.Unlock...
2
Text
Text
note consensus and final say
ff711fcfad68eec3f40ac7206a8fde7fd1982a99
<ide><path>docs/Maintainer-Guidelines.md <ide> All communication should ideally occur in public on GitHub. Where this is not po <ide> This makes it easier for other maintainers, contributors and users to follow along with what we're doing (and, more importantly, why we're doing it) and means that decisions have a linka...
1
PHP
PHP
add missing argument
f5ae9622e6965fc2f8e0ab6d70ef01bc39a445e8
<ide><path>lib/Cake/Console/Command/TestShell.php <ide> public function getOptionParser() { <ide> $parser = new ConsoleOptionParser($this->name); <ide> $parser->description(array( <ide> __d('cake_console', 'The CakePHP Testsuite allows you to run test cases from the command line'), <add> ))->addArgument('catego...
1
Python
Python
support boolean in extra__snowflake__insecure_mode
534e9ae117641b4147542f2deec2a077f0a42e2f
<ide><path>airflow/providers/snowflake/hooks/snowflake.py <ide> from airflow.utils.strings import to_boolean <ide> <ide> <add>def _try_to_boolean(value: Any): <add> if isinstance(value, (str, type(None))): <add> return to_boolean(value) <add> return value <add> <add> <ide> class SnowflakeHook(DbApiHook):...
2
PHP
PHP
remove unused import
fc3deb532e558abdcec6f6f91e43e5e743e400ad
<ide><path>tests/Integration/Database/MigrateWithRealpathTest.php <ide> <ide> namespace Illuminate\Tests\Integration\Database; <ide> <del>use Orchestra\Testbench\TestCase; <ide> use Illuminate\Support\Facades\Schema; <del>use Illuminate\Contracts\Console\Kernel as ConsoleKernel; <ide> <ide> class MigrateWithRealpath...
1
Javascript
Javascript
replace concatenation with template literal
66a6a15561e50cfc61a101cbe226a476919ef5b3
<ide><path>test/parallel/test-http-upgrade-client2.js <ide> const CRLF = '\r\n'; <ide> <ide> const server = http.createServer(); <ide> server.on('upgrade', function(req, socket, head) { <del> socket.write('HTTP/1.1 101 Ok' + CRLF + <del> 'Connection: Upgrade' + CRLF + <del> 'Upgrade: Test'...
1
PHP
PHP
use array_values to rekey filtered array
8654da2892cf4fbd629d99bbf410925d07379cd9
<ide><path>src/Illuminate/Http/Request.php <ide> public function segment($index, $default = null) <ide> { <ide> $segments = explode('/', trim($this->getPathInfo(), '/')); <ide> <del> $segments = array_filter($segments, function($v) { return $v != ''; }); <add> $segments = array_values(array_filter($segments)); <i...
2
Ruby
Ruby
simplify class_attribute implementation
dfa439eefc7bfaa2f00bc8d2bd712d115dd0ef33
<ide><path>activesupport/lib/active_support/core_ext/class/attribute.rb <ide> class Class <ide> # To set a default value for the attribute, pass <tt>default:</tt>, like so: <ide> # <ide> # class_attribute :settings, default: {} <del> def class_attribute(*attrs) <del> options = attrs.extract_options! <del> ...
1
Javascript
Javascript
fix the order of the showcase
7baf7ef65708516755a13b625621a211bfc64a51
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> link: 'https://geo.itunes.apple.com/us/app/spero-for-cancer/id1033923573?mt=8', <ide> author: 'Spero.io', <ide> }, <del> { <del> name: 'Start - medication manager for depression', <del> icon: 'http://a1.mzstatic.com/us/r30/Purple4...
1
Java
Java
improve httphandlerconnection completion
21b2fc1f0129420a8da521cd1e7f33f19beffbc1
<ide><path>spring-test/src/main/java/org/springframework/mock/http/client/reactive/MockClientHttpResponse.java <ide> private Charset getCharset() { <ide> return (charset != null ? charset : StandardCharsets.UTF_8); <ide> } <ide> <add> <add> @Override <add> public String toString() { <add> HttpStatus code = HttpSta...
3
PHP
PHP
clarify octal input instead
eedefb9dec3564ef466b4ddedad573a895ebe590
<ide><path>lib/Cake/Utility/Folder.php <ide> public function inPath($path = '', $reverse = false) { <ide> /** <ide> * Change the mode on a directory structure recursively. This includes changing the mode on files as well. <ide> * <del> * @param string $path The path to chmod <del> * @param int $mode octal value 0755 ...
1
Javascript
Javascript
drop the replacein api
c5ec6debf53c183f2c259a2c1dda6180c0f44f1c
<ide><path>packages/ember-views/lib/mixins/view_support.js <ide> export default Mixin.create({ <ide> return element; <ide> }, <ide> <del> /** <del> Replaces the content of the specified parent element with this view's <del> element. If the view does not have an HTML representation yet, <del> the elemen...
1
Javascript
Javascript
use reserved invalid hostname for tests
0309619aa74206baee301946177de47cc4f61ed9
<ide><path>test/parallel/test-net-better-error-messages-port-hostname.js <ide> const net = require('net'); <ide> const assert = require('assert'); <ide> <ide> // Using port 0 as hostname used is already invalid. <del>const c = net.createConnection(0, '***'); <add>const c = net.createConnection(0, 'this.hostname.is.inv...
2
Javascript
Javascript
remove duplicated comments
0329e036952c5c2839ea61ed5e23cf8b0c615ba9
<ide><path>packages/ember-glimmer/lib/component.js <ide> const Component = CoreView.extend( <ide> @since 1.13.0 <ide> */ <ide> <del> /** <del> Called when the attributes passed into the component have been updated. <del> Called both during the initial render of a container and during a rerender. <...
1
Text
Text
correct markdown to show tag
bb5735acdc4ceb6563b8a8389e00936c80708f37
<ide><path>guide/english/bootstrap/index.md <ide> You can add Bootstrap CSS by using a `<link>` element inside the `<head>` of you <ide> <ide> `<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ...
1
Ruby
Ruby
remove warning due to duplicated declaration
9341ef2f65a8ab7f946003c75a6c1c0dc36ba942
<ide><path>activerecord/lib/active_record/encryption/configurable.rb <ide> module Configurable <ide> <ide> class_methods do <ide> # Expose getters for context properties <del> Context::PROPERTIES.including(:encryptor).each do |name| <add> Context::PROPERTIES.each do |name| <ide> d...
1
Text
Text
add job suffix to sample's job file name
f82ed2dab41acc9a8f0abf3c22f3baa50e2d4cb8
<ide><path>guides/source/active_job_basics.md <ide> module YourApp <ide> end <ide> end <ide> <del># app/jobs/guests_cleanup.rb <add># app/jobs/guests_cleanup_job.rb <ide> class GuestsCleanupJob < ActiveJob::Base <ide> queue_as :low_priority <ide> #.... <ide> module YourApp <ide> end <ide> end <ide> <del># app...
1
Ruby
Ruby
drop schema_migrations table only when exists
4b7ac2e83eb5776855b4abe02ca6060e73290e42
<ide><path>activerecord/test/cases/migration_test.rb <ide> def test_migrator_versions <ide> end <ide> <ide> def test_migration_detection_without_schema_migration_table <del> ActiveRecord::Base.connection.drop_table :schema_migrations <add> ActiveRecord::Base.connection.drop_table('schema_migrations') if Acti...
1
Python
Python
add ma.convolve and ma.correlate for
3ebbbb07285dec67cd89f410be4dd3b426c13f10
<ide><path>numpy/ma/core.py <ide> 'argmax', 'argmin', 'argsort', 'around', 'array', 'asanyarray', <ide> 'asarray', 'bitwise_and', 'bitwise_or', 'bitwise_xor', 'bool_', 'ceil', <ide> 'choose', 'clip', 'common_fill_value', 'compress', 'compressed', <del> 'concatenate', 'conjugate', 'copy', 'cos', 'cosh', '...
2
Javascript
Javascript
fix xhr for webworker env
aaca1244eb2d1229cb093acc16fb9a3c06f16d42
<ide><path>lib/adapters/xhr.js <ide> var buildURL = require('./../helpers/buildURL'); <ide> var parseHeaders = require('./../helpers/parseHeaders'); <ide> var transformData = require('./../helpers/transformData'); <ide> var isURLSameOrigin = require('./../helpers/isURLSameOrigin'); <del>var btoa = window.btoa || requir...
1
PHP
PHP
create cakerequest in view instead of in cakeemail
8966f1b324c1967326cc9f57729eefe7883947f6
<ide><path>lib/Cake/Network/Email/CakeEmail.php <ide> protected function _renderTemplates($content) { <ide> $View = new $viewClass(null); <ide> $View->viewVars = $this->_viewVars; <ide> $View->helpers = $this->_helpers; <del> if (!$request = Router::getRequest(true)) { <del> $request = new CakeRequest('/', fal...
4
Javascript
Javascript
cover thrown errors from exec() kill
9ac363b5d65e02bc4b5d86b28e8b6dc232dcaa8d
<ide><path>test/parallel/test-child-process-exec-kill-throws.js <add>'use strict'; <add>// Flags: --expose_internals <add>const common = require('../common'); <add>const assert = require('assert'); <add>const cp = require('child_process'); <add>const internalCp = require('internal/child_process'); <add> <add>if (proces...
1
Ruby
Ruby
fix error when building from source
03c83749c5fdf47436f5a1d2c94a20e6b9ae9540
<ide><path>Library/Homebrew/reinstall.rb <ide> def reinstall_formula(f, build_from_source: false, args:) <ide> options |= f.build.used_options <ide> options &= f.options <ide> <add> build_from_source_formulae = args.build_from_source_formulae <add> build_from_source_formulae << f.full_name if build_from_...
1
Ruby
Ruby
fix typos in the documentation [ci skip]
b4a9c59a47dd619ea0d446e47edde14b3740e483
<ide><path>actionpack/lib/action_controller/form_builder.rb <ide> module ActionController <ide> # Override the default form builder for all views rendered by this <del> # controller and any of its descendents. Accepts a sublcass of <add> # controller and any of its descendants. Accepts a subclass of <ide> # +Acti...
1
Javascript
Javascript
fix dag dependency search
6f8c204b21d6c01a192bda524db72517d41bf6e9
<ide><path>airflow/www/static/js/dag_dependencies.js <ide> function setUpNodeHighlighting(focusItem = null) { <ide> function searchboxHighlighting(s) { <ide> let match = null; <ide> <del> d3.selectAll('g.nodes g.node').forEach(function forEach(d) { <add> d3.selectAll('g.nodes g.node').filter(function forEach(d) { ...
1
Text
Text
remove unnecessary trailing comma
0e860b19012e17d8b0231f8b321f0eec0e4d8cdd
<ide><path>research/object_detection/g3doc/exporting_models.md <ide> After your model has been trained, you should export it to a Tensorflow <ide> graph proto. A checkpoint will typically consist of three files: <ide> <del>* model.ckpt-${CHECKPOINT_NUMBER}.data-00000-of-00001, <add>* model.ckpt-${CHECKPOINT_NUMBER}.da...
1
Python
Python
remove unused helper function
40ae499f32df69f53d6735746243a3f83120f339
<ide><path>spacy/util.py <ide> def is_json_serializable(obj): <ide> return False <ide> <ide> <del>def get_raw_input(description, default=False): <del> """Get user input from the command line via raw_input / input. <del> <del> description (unicode): Text to display before prompt. <del> default (unicod...
1
Text
Text
add link to @mjumbewu's csv package
a7e7c441a4e4eb058c0b879e62d976b848b618c6
<ide><path>docs/api-guide/renderers.md <ide> The following third party packages are also available. <ide> ## MessagePack <ide> <ide> [MessagePack][messagepack] is a fast, efficient binary serialization format. [Juan Riaza][juanriaza] maintains the `djangorestframework-msgpack` package which provides MessagePack rende...
1
Javascript
Javascript
use es6 import for scroll view
d7b1d3359f2cf4b0f21d061cae97b48125454244
<ide><path>Libraries/Components/ScrollView/AndroidHorizontalScrollContentViewNativeComponent.js <ide> <ide> 'use strict'; <ide> <del>const registerGeneratedViewConfig = require('../../Utilities/registerGeneratedViewConfig'); <del>const requireNativeComponent = require('../../ReactNative/requireNativeComponent'); <add...
7
Python
Python
set softmax attr in tagger model
c9b118a7e99f45708708f8ce051144005fd27ba6
<ide><path>spacy/_ml.py <ide> def build_tagger_model(nr_class, **cfg): <ide> ) <ide> model.nI = None <ide> model.tok2vec = tok2vec <del> model.softmax <add> model.softmax = softmax <ide> return model <ide> <ide>
1
Ruby
Ruby
define recursive deps and reqs
cbf89e50bb948989f3f19ed92f3251283a918e4b
<ide><path>Library/Homebrew/software_spec.rb <ide> def deps <ide> dependency_collector.deps <ide> end <ide> <add> def recursive_dependencies <add> recursive_dependencies = deps <add> deps.map(&:to_formula).compact.uniq.each do |f| <add> f.recursive_dependencies.each do |dep| <add> recursive_de...
1
Javascript
Javascript
resolve gcs file stream on 'finish'
3f95ae21efba54e78c6cc0445043ac3654b340c6
<ide><path>scripts/code.angularjs.org-firebase/functions/index.js <ide> function sendStoredFile(request, response) { <ide> return new Promise((resolve, reject) => { <ide> <ide> const readStream = file.createReadStream() <del> .on('error', error => { <del> reject(error); <del> ...
1
Text
Text
update xhr information for android
04d86d819e7082206ba765d1db4da507817f46e4
<ide><path>docs/Network.md <ide> ws.onclose = (e) => { <ide> <ide> ## XMLHttpRequest <ide> <del>XMLHttpRequest API is implemented on-top of [iOS networking apis](https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/URLLoadingSystem/URLLoadingSystem.html). The notable difference from web is the secur...
1
Ruby
Ruby
update doc for taghelper
589d1ed722a3add255adc5636eab7dcc262dd0ca
<ide><path>actionview/lib/action_view/helpers/tag_helper.rb <ide> module TagHelper <ide> # For example, a key +user_id+ would render as <tt>data-user-id</tt> and <ide> # thus accessed as <tt>dataset.userId</tt>. <ide> # <del> # Values are encoded to JSON, with the exception of strings and symbols...
1
Text
Text
fix prettier linting
b69f3b79c5f9b9d10085b428c1942f1ff6b1324e
<ide><path>docs/advanced-features/compiler.md <ide> If you have feedback about `swcMinify`, please share it on the [feedback discuss <ide> <ide> We're working to port `babel-plugin-styled-components` to the Next.js Compiler. <ide> <del>First, update to the latest version of Next.js: `npm install next@latest`. Then, ...
1
Javascript
Javascript
fix lazy initialization of clienthello parser
166c405b33320a0d6aceca6dc356fc26dc8a1da1
<ide><path>lib/_tls_wrap.js <ide> function Server(/* [options], listener */) { <ide> requestCert: self.requestCert, <ide> rejectUnauthorized: self.rejectUnauthorized, <ide> NPNProtocols: self.NPNProtocols, <del> SNICallback: self.SNICallback <add> SNICallback: options.SNICallback || SNICallb...
1
Python
Python
use renamed threading event api in python 3.3
f7b69665fd0ce21adae7cfaed7fade63f8aae1fd
<ide><path>django/test/testcases.py <ide> def log_message(*args): <ide> pass <ide> <ide> <del>if sys.version_info >= (2, 7, 0): <add>if sys.version_info >= (3, 3, 0): <add> _ImprovedEvent = threading.Event <add>elif sys.version_info >= (2, 7, 0): <ide> _ImprovedEvent = threading._Event <ide> else: <ide...
1
Python
Python
remove another deepcopy
3de5a34a8875159f7b2d0e0450404300a13ffea2
<ide><path>celery/utils/serialization.py <ide> def __init__(self, exc_module, exc_cls_name, exc_args, text=None): <ide> safe_exc_args = [] <ide> for arg in exc_args: <ide> try: <del> pickle.dumps(deepcopy(arg)) <add> pickle.dumps(arg) <ide> safe_...
1
Javascript
Javascript
fix backpressure when multiple sync
d37e59fa6aee7f5b38696726b0145741ef3eb95b
<ide><path>lib/_stream_readable.js <ide> function chunkInvalid(state, chunk) { <ide> // 'readable' event will be triggered. <ide> function needMoreData(state) { <ide> return !state.ended && <del> (state.needReadable || <del> state.length < state.highWaterMark || <add> (state.length < state.hi...
2
Python
Python
add a new mode for backend.randomgenerator
800eba154f6259c0da2e6317bd655bfd82f67bd5
<ide><path>keras/backend.py <ide> class RandomGenerator(tf.__internal__.tracking.AutoTrackable): <ide> new stateless random ops with seeds and tf.random.Generator. Any class that <ide> relies on RNG (eg initializer, shuffle, dropout) should use this class to <ide> handle the transition from legacy RNGs to new RNG...
5
PHP
PHP
controller
62133950ecc88520e6aca3e5edcf8c9c4b6de8a6
<ide><path>src/Illuminate/Routing/Console/ControllerMakeCommand.php <ide> protected function buildClass($name) <ide> if ($this->option('model')) { <ide> $modelClass = $this->parseModel($this->option('model')); <ide> <add> if (! class_exists($modelClass)) { <add> if ($this-...
1
Text
Text
fix typo in export-all-in-page
2c424446b80ff503a6c5853f6a3b42d03acf1abc
<ide><path>errors/export-all-in-page.md <ide> export function getStaticProps() { <ide> export * from './one' <ide> ``` <ide> <del>Would cause cause the following error: <add>Would cause the following error: <ide> <ide> ``` <ide> Module not found: Can't resolve 'fs' in './pages/two.js'
1
Ruby
Ruby
use redis#mget for rediscachestore#fetch_multi
83c1ed9a1a11196cab66d9c44a56a902ca0710e4
<ide><path>activesupport/lib/active_support/cache/redis_cache_store.rb <ide> def read_entry(key, options = nil) <ide> end <ide> end <ide> <add> def read_multi_entries(names, _options) <add> if mget_capable? <add> read_multi_mget(*names) <add> else <add> ...
2
Python
Python
add csrf and fix tests
ade0e4db7dea69b22560d3e2586a4846883746d2
<ide><path>tests/core.py <ide> def get_csrf(self, response): <ide> <ide> def login(self, username, password): <ide> response = self.app.get('/admin/airflow/login') <del> print(response.data.decode('utf-8')) <del> <ide> csrf_token = self.get_csrf(response) <ide> <ide> return self.app...
1
Python
Python
add example dag using timedeltasensorasync
c596ef43456429d80bef24ff3755b1c1bc31bc1c
<ide><path>airflow/example_dags/example_time_delta_sensor_async.py <add># <add># Licensed to the Apache Software Foundation (ASF) under one <add># or more contributor license agreements. See the NOTICE file <add># distributed with this work for additional information <add># regarding copyright ownership. The ASF lice...
1
Ruby
Ruby
add check for disabling weak imports
b33fe79478992da827317111370ab15d280e72c5
<ide><path>Library/Homebrew/extend/os/mac/extend/ENV/shared.rb <ide> module SharedEnvExtension <add> def no_weak_imports? <add> return false unless compiler == :clang <add> MacOS::Xcode.version >= "8.0" || MacOS::CLT.version >= "8.0" <add> end <ide> end
1
Text
Text
extend v2.3 migration guide
d777d9cc382a23a598b2a11a3a3902251a894b4a
<ide><path>website/docs/usage/v2-3.md <ide> If you're adding data for a new language, the normalization table should be <ide> added to `spacy-lookups-data`. See <ide> [adding norm exceptions](/usage/adding-languages#norm-exceptions). <ide> <del>#### No preloaded lexemes/vocab for models with vectors <add>#### No prelo...
1
PHP
PHP
add test for userfields and related models
60917974bfa5da328a814f05b81069a978cebd52
<ide><path>lib/Cake/Test/Case/Controller/Component/Auth/BasicAuthenticateTest.php <ide> public function testAuthenticateUserFieldsSuccess() { <ide> $this->assertEquals($expected, $result); <ide> } <ide> <add>/** <add> * test userFields and related models success <add> * <add> * @return void <add> */ <add> public fu...
1
Text
Text
fill contributer agreement
378280039b300bf53dfda8d3bd77e87829564404
<ide><path>.github/contributors/ligser.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or project <ad...
1
Python
Python
add fp16 end-to-end tests
58a3de6c68639c3eac95f7c84089f320d32a85bb
<ide><path>official/transformer/v2/transformer_benchmark.py <ide> def benchmark_8_gpu_static_batch(self): <ide> FLAGS.batch_size = 3072*8 <ide> FLAGS.static_batch = True <ide> FLAGS.max_length = 64 <del> FLAGS.train_steps = 100000 <del> FLAGS.steps_between_evals = 5000 <add> FLAGS.train_steps = 400...
1
Python
Python
move _repr_latex tests to test_printing
95c14c271f69333ce3e405ddeae1fa99024d0060
<ide><path>numpy/polynomial/tests/test_classes.py <ide> def test_ufunc_override(Poly): <ide> assert_raises(TypeError, np.add, x, p) <ide> <ide> <del> <del>class TestLatexRepr: <del> """Test the latex repr used by ipython """ <del> <del> def as_latex(self, obj): <del> # right now we ignore the formatt...
2
Python
Python
handle non-login shell case in stdout utility
e61c0ebc0c54c9e5768cd59752b330c591cc6d7d
<ide><path>official/utils/flags/_conventions.py <ide> def _stdout_utf8(): <ide> codecs.lookup("utf-8") <ide> except LookupError: <ide> return False <del> return sys.stdout.encoding == "UTF-8" <add> return getattr(sys.stdout, 'encoding', '') == "UTF-8" <ide> <ide> <ide> if _stdout_utf8():
1
Java
Java
fix checkstyle violation
734db23f4eb99e4489a9349dd77de78e53f7f33d
<ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcTemplate.java <ide> protected ParsedSql getParsedSql(String sql) { <ide> return NamedParameterUtils.parseSqlStatement(sql); <ide> } <ide> synchronized (this.parsedSqlCache) { <del> return parsedSqlCache.computeIfAbs...
1
Python
Python
remove tensorizer from pre-set pipe_names
5f661a1b3a509626ddaba55e95956d1a8968a974
<ide><path>spacy/language.py <ide> def create_tokenizer(cls, nlp=None): <ide> infix_finditer=infix_finditer, <ide> token_match=token_match) <ide> <del> pipe_names = ['tensorizer', 'tagger', 'parser', 'ner'] <add> pipe_names = ['tagger', 'parser', 'ner'] <ide> ...
1
Ruby
Ruby
add force/debug/verbose to cask
03d3f9d292808f7af908726a450629adca78c182
<ide><path>Library/Homebrew/cmd/install.rb <ide> def install <ide> if ARGV.casks.any? <ide> brew_cask = Formulary.factory("brew-cask") <ide> install_formula(brew_cask) unless brew_cask.installed? <add> args = [] <add> args << "--force" if ARGV.force? <add> args << "--debug" if...
1
Go
Go
provide query api for network and endpoint
6a5e4a83e4d055b10256d2f99e9881487073e933
<ide><path>libnetwork/libnetwork_test.go <ide> func TestNetworkEndpointsWalkers(t *testing.T) { <ide> t.Fatal(err) <ide> } <ide> } <add> <add>func TestControllerQuery(t *testing.T) { <add> defer netutils.SetupTestNetNS(t)() <add> controller := libnetwork.New() <add> netType := "bridge" <add> <add> option := options....
2
PHP
PHP
remove unneeded "use" declaration
2fb85eb7d145f06a01b31c6e96f185d32a5e41a3
<ide><path>src/Datasource/SimplePaginator.php <ide> */ <ide> namespace Cake\Datasource; <ide> <del>use Cake\Datasource\Exception\PageOutOfBoundsException; <del> <ide> /** <ide> * Simplified paginator which avoids potentially expensives queries <ide> * to get the total count of records.
1
Javascript
Javascript
update hr.js and tests
dfd513bac58f90c1f0aab1a664e52724d5913f8f
<ide><path>locale/hr.js <ide> } <ide> } <ide> <del> var hr = moment.defineLocale('hr', { <del> months : 'sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_'), <del> monthsShort : 'sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro...
3
Python
Python
add unitest script for the restful api
b31d824ff368db769199d8a42bdfc963d17a3457
<ide><path>glances/core/glances_main.py <ide> def init_args(self): <ide> help=_('connect to a Glances server by IPv4/IPv6 address or hostname')) <ide> parser.add_argument('-s', '--server', action='store_true', default=False, <ide> dest='server', help=_('ru...
2
Text
Text
fix header on xml syntax's paragraph
b8cb54004d632285f180ec8e64de9bfa5f251c75
<ide><path>guide/portuguese/xml/index.md <ide> localeTitle: Extensible Markup Language (XML) <ide> <ide> XML significa eXtensible Markup Language. Ele é extensível, porque não usa um conjunto predefinido de tags para identificar componentes estruturais; em vez disso, fornece um mecanismo para definir esses conjuntos d...
1
Text
Text
fix wrong history entry in deepstrictequal
a5916107dd6de6d744949feefda90b96af30a210
<ide><path>doc/api/assert.md <ide> changes: <ide> - version: REPLACEME <ide> pr-url: https://github.com/nodejs/node/pull/15036 <ide> description: NaN is now compared using the [SameValueZero][] comparison. <del> - version: REPLACEME <del> pr-url: https://github.com/nodejs/node/pull/15001 <ide> - version...
1
PHP
PHP
add response as argument for auth storage classes
84c599a87efc3674cac9020fee11b9164772a599
<ide><path>src/Auth/Storage/SessionStorage.php <ide> <ide> use Cake\Core\InstanceConfigTrait; <ide> use Cake\Network\Request; <add>use Cake\Network\Response; <ide> <ide> /** <ide> * Session based persistent storage for authenticated user record. <ide> class SessionStorage implements StorageInterface <ide> * Con...
4
Python
Python
add some missing docstrings for celery.task.base
c6a4a209e57888d9e2a0c55f238efdbc5da0b76c
<ide><path>celery/task/base.py <ide> class Task(object): <ide> limit), ``"100/s"`` (hundred tasks a second), ``"100/m"`` (hundred <ide> tasks a minute), ``"100/h"`` (hundred tasks an hour) <ide> <add> .. attribute:: rate_limit_queue_type <add> <add> Type of queue used by the rate limiter for ...
1
Text
Text
add line 159 (regarding stricmp) to the article
6656ac26bad0d10531325afc137bf89d6e77f230
<ide><path>guide/english/c/arrays-and-strings/index.md <ide> Notice the `!`, which is needed because this function returns 0 if they are the <ide> if(strcmp(first, second) == 0){ <ide> ``` <ide> <add>We also have `stricmp` and `strcmpi` which compare two strings without case sensitivity. Similar to `strcmp`, `stricmp/...
1
Python
Python
add json option into the request parameter list
ed3649e22498a8ab3b4ff065f5e6ca48c00494b6
<ide><path>libcloud/common/base.py <ide> def user_agent_append(self, token): <ide> self.ua.append(token) <ide> <ide> def request(self, action, params=None, data=None, headers=None, <del> method='GET', raw=False, stream=False): <add> method='GET', raw=False, stream=False, json=...
2
Ruby
Ruby
fix typo in thread_mattr_accessor doco [ci skip]
dee03ae028a33935ea09a35bc6599cbad45f425c
<ide><path>activesupport/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb <ide> def #{sym}=(obj) <ide> # class Customer < Account <ide> # end <ide> # <del> # Customer.user = "CHH" <add> # Customer.user = "DHH" <ide> # Account.user # => "DHH" <ide> # <ide> # To opt out of the ...
1
Text
Text
improve text in fs docs about omitting callbacks
f902170af6e19ab0f2d5cefdf7111580238cbeb7
<ide><path>doc/api/fs.md <ide> In busy processes, use the asynchronous versions of these calls. The synchronous <ide> versions will block the entire process until they complete, halting all <ide> connections. <ide> <del>While it is not recommended, most fs functions allow the callback argument to <del>be omitted, in w...
1
PHP
PHP
update docblock on redirect facade
5faa69f3e38f1fdb3437b9a2365b51ad22e9d3a2
<ide><path>src/Illuminate/Support/Facades/Redirect.php <ide> * @method static \Illuminate\Http\RedirectResponse away(string $path, int $status = 302, array $headers = []) <ide> * @method static \Illuminate\Http\RedirectResponse secure(string $path, int $status = 302, array $headers = []) <ide> * @method static \Illu...
1
Javascript
Javascript
replace var with let in lib/url.js
87cef760006aa29a6ce372ada26bcbae477c55da
<ide><path>lib/url.js <ide> Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) { <ide> // Copy chrome, IE, opera backslash-handling behavior. <ide> // Back slashes before the query string get converted to forward slashes <ide> // See: https://code.google.com/p/chromium/issues/detail?id...
1
Python
Python
trigger both code paths
6d4715e5358bc639faa8ddff9be19ff05823a0c3
<ide><path>numpy/core/tests/test_shape_base.py <ide> array, arange, atleast_1d, atleast_2d, atleast_3d, block, vstack, hstack, <ide> newaxis, concatenate, stack <ide> ) <add> <add>from numpy.core.shape_base import (_block_setup, <add> _block_concatenate, _block_slicing) <id...
1
Javascript
Javascript
delete node_channel_fd from env
bd907174e8082afd6dd8553940aac09cae3dcfb7
<ide><path>src/node.js <ide> // start parsing data from that stream. <ide> if (process.env.NODE_CHANNEL_FD) { <ide> assert(parseInt(process.env.NODE_CHANNEL_FD) >= 0); <add> <add> // Make sure it's not accidentally inherited by child processes. <add> delete process.env.NODE_CHANNEL_FD; <add> <id...
2
Javascript
Javascript
remove unnecessary bool conversion
bcde849be9f4a4593d99d77cbc1d87ba9fdc27ba
<ide><path>lib/internal/quic/core.js <ide> function onSocketClose(err) { <ide> // Called by the C++ internals when the server busy state of <ide> // the QuicSocket has been changed. <ide> function onSocketServerBusy(on) { <del> this[owner_symbol][kServerBusy](!!on); <add> this[owner_symbol][kServerBusy](on); <ide> } ...
1
Python
Python
add some basic metrics to the triggerer
fe6a769399e19c17731aa1fc4f1dc6b796d85bd9
<ide><path>airflow/jobs/triggerer_job.py <ide> from airflow.configuration import conf <ide> from airflow.jobs.base_job import BaseJob <ide> from airflow.models.trigger import Trigger <add>from airflow.stats import Stats <ide> from airflow.triggers.base import BaseTrigger, TriggerEvent <ide> from airflow.typing_compat i...
1
Javascript
Javascript
use readable.push() instead of private methods
840401c024a31e35515e76155693131f6de0ea86
<ide><path>lib/net.js <ide> function onread(buffer, offset, length) { <ide> self.bytesRead += length; <ide> <ide> // Optimization: emit the original buffer with end points <add> var ret = true; <ide> if (self.ondata) self.ondata(buffer, offset, end); <del> else self._readableState.onread(null, buffer...
1
Go
Go
fix nits and defers
d55e977cf5963f8ae5efdfbee458727f704be398
<ide><path>docker/daemon.go <ide> func init() { <ide> registryCfg.InstallFlags() <ide> } <ide> <del>func migrateKey() error { <add>func migrateKey() (err error) { <ide> // Migrate trust key if exists at ~/.docker/key.json and owned by current user <ide> oldPath := filepath.Join(getHomeDir(), ".docker", defaultTrust...
1
Text
Text
expand the editable regions
fc22061a9e74085c9edfd949773a5bd85ef7a63d
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dfb6250eacea3f48c6300b2.md <ide> After the unordered list, add a new image with an `src` attribute value set to ` <ide> <ide> # --hints-- <ide> <del>There should be an `img` element right above the second `sec...
3
Mixed
Ruby
add a warning for enum elements with 'not_' prefix
77daacf94d7d26c713d4412b68edb64260fc22d9
<ide><path>activerecord/CHANGELOG.md <add>* Add a warning for enum elements with 'not_' prefix. <add> <add> class Foo <add> enum status: [:sent, :not_sent] <add> end <add> <add> *Edu Depetris* <add> <ide> * Loading the schema for a model that has no `table_name` raises a `TableNotSpecified...
3
Javascript
Javascript
use triple equals
006d42786e3123efb619210fb819b04f2b8b286f
<ide><path>lib/_http_client.js <ide> function parserOnIncomingClient(res, shouldKeepAlive) { <ide> // but *can* have a content-length which actually corresponds <ide> // to the content-length of the entity-body had the request <ide> // been a GET. <del> var isHeadResponse = req.method == 'HEAD'; <add> var isHea...
5
Text
Text
remove asyncwrap mentions from async_hooks.md
dab51dddc8b928a67ad35e93ab2b8f6458fdb8c1
<ide><path>doc/api/async_hooks.md <ide> function before(asyncId) { } <ide> // After is called just after the resource's callback has finished. <ide> function after(asyncId) { } <ide> <del>// Destroy is called when an AsyncWrap instance is destroyed. <add>// Destroy is called when the resource is destroyed. <ide> funct...
1
Ruby
Ruby
remove duplicated test
0cb1d87cd5e2a76c9cd12b5387dd8f25318d494b
<ide><path>actionpack/test/dispatch/routing_test.rb <ide> def test_index <ide> end <ide> end <ide> <del> def test_index <del> with_test_routes do <del> assert_equal '/info', info_path <del> get '/info' <del> assert_equal 'projects#info', @response.body <del> end <del> end <del> <ide> def...
1