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 |
|---|---|---|---|---|---|
Text | Text | remove personal pronoun from domain.md | b32d067839ab507c8722d4d9e8ac245ed63dfa0b | <ide><path>doc/api/domain.md
<ide> Domain error handlers are not a substitute for closing down a
<ide> process when an error occurs.
<ide>
<ide> By the very nature of how [`throw`][] works in JavaScript, there is almost
<del>never any way to safely "pick up where you left off", without leaking
<add>never any way to sa... | 1 |
Python | Python | add simple neural network | f340bde6e047d86171385b90a023ac01e8914d0c | <ide><path>neural_network/simple_neural_network.py
<add>"""
<add>Forward propagation explanation:
<add>https://towardsdatascience.com/forward-propagation-in-neural-networks-simplified-math-and-code-version-bbcfef6f9250
<add>"""
<add>
<add>import math
<add>import random
<add>
<add>
<add># Sigmoid
<add>def sigmoid_functi... | 1 |
Text | Text | fix broken ahafs link in fs doc | e8eb6ac31c5477b07fa08010f1e7d9885916f50e | <ide><path>doc/api/fs.md
<ide> the file contents.
<ide> [Readable Stream]: stream.md#stream_class_stream_readable
<ide> [Writable Stream]: stream.md#stream_class_stream_writable
<ide> [caveats]: #fs_caveats
<del>[`AHAFS`]: https://www.ibm.com/developerworks/aix/library/au-aix_event_infrastructure/
<add>[`AHAFS`]: https... | 1 |
PHP | PHP | flatten the code | b79cc70a6b39ee3602191f9112a80026704171f1 | <ide><path>src/ORM/TableRegistry.php
<ide> public static function config($alias = null, $options = null)
<ide> */
<ide> public static function get($alias, array $options = [])
<ide> {
<del> list(, $classAlias) = pluginSplit($alias);
<del> $exists = isset(static::$_instances[$alias]);
<del>
<d... | 1 |
Text | Text | add a missing changelog entry for [ci skip] | fe63933ceec7223beef06ff6f8d1e5b795e17f20 | <ide><path>railties/CHANGELOG.md
<add>* Ensure that `bin/rails` is a file before trying to execute it.
<add>
<add> Fixes #13825.
<add>
<add> *bronzle*
<add>
<ide> * Use single quotes in generated files.
<ide>
<ide> *Cristian Mircea Messel*, *Chulki Lee* | 1 |
Ruby | Ruby | add a test case for issue #476 | be199a1d53f9ceae5cfaac185bfd0d9c2a28f9d4 | <ide><path>railties/test/application/assets_test.rb
<ide> def setup
<ide> boot_rails
<ide> end
<ide>
<add> def app
<add> @app ||= Rails.application
<add> end
<add>
<ide> test "assets routes have higher priority" do
<ide> app_file "app/assets/javascripts/demo.js.erb", "<%= :alert %>();"
<... | 1 |
Java | Java | use weak etags in versionresourceresolver | b883aad1f1541b07971f3f2e5da7ed9a9db8baf6 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/resource/VersionResourceResolver.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License")... | 6 |
Mixed | Ruby | fix collection_from_options to allow enumerators | ae75930b59e7b41133c5a62c09da3c02309f81f3 | <ide><path>actionview/CHANGELOG.md
<add>* Changed partial rendering with a collection to allow collections which
<add> don't implement `to_ary`.
<add>
<add> Extracting the collection option has an optimization to avoid unnecessary
<add> queries of ActiveRecord Relations by calling `to_ary` on the given
<add>... | 3 |
Python | Python | add cross-links and `void` example | c63dd1316067f8d0ebe99f4f61cf9853b77e937d | <ide><path>numpy/core/_add_newdocs_scalars.py
<ide> def add_newdoc_for_scalar_type(obj, fixed_aliases, doc):
<ide> r"""
<ide> A unicode string.
<ide>
<add> When used in array, this type strips trailing nulls.
<add>
<ide> Unlike the builtin `str`, this supports the buffer protocol, exposing its
<ide> ... | 1 |
Ruby | Ruby | fix a typo | 60d60b05418e274cdfb11fcc579e20f7d415dac0 | <ide><path>guides/rails_guides/kindle.rb
<ide> def generate(output_dir, mobi_outfile, logfile)
<ide>
<ide> generate_document_metadata(mobi_outfile)
<ide>
<del> puts "Creating MOBI document with kindlegen. This make take a while."
<add> puts "Creating MOBI document with kindlegen. This may take a while... | 1 |
PHP | PHP | ignore hidden relationships in to_array() | ff4b43c72f9ae2a4af72e3fa7b58aecd78e6029c | <ide><path>laravel/database/eloquent/model.php
<ide> public function to_array()
<ide>
<ide> foreach ($this->relationships as $name => $models)
<ide> {
<add> // Relationships can be marked as "hidden", too.
<add> if (in_array($name, static::$hidden)) continue;
<add>
<ide> // If the relationship is not a "to-... | 1 |
Javascript | Javascript | use common.cancreatesymlink() consistently | 8e6601a789ec6c3657314f475f1493192a2fda2b | <ide><path>test/parallel/test-fs-realpath.js
<ide> const tmpdir = require('../common/tmpdir');
<ide> const assert = require('assert');
<ide> const fs = require('fs');
<ide> const path = require('path');
<del>const exec = require('child_process').exec;
<ide> let async_completed = 0;
<ide> let async_expected = 0;
<ide> c... | 2 |
Javascript | Javascript | remove third argument from assert.strictequal() | f1d3f97c3bc813528e85b9c3e6506fc75b931d92 | <ide><path>test/parallel/test-util-inspect.js
<ide> if (typeof Symbol !== 'undefined') {
<ide> const npos = line.search(numRE);
<ide> if (npos !== -1) {
<ide> if (pos !== undefined) {
<del> assert.strictEqual(pos, npos, 'container items not aligned');
<add> assert.strictEqual(pos, ... | 1 |
Javascript | Javascript | improve docs of ember.alias and ember.aliasmethod | b53c217705331c2594faa780a83434b74ca7061f | <ide><path>packages/ember-metal/lib/mixin.js
<ide> Alias.prototype = new Ember.Descriptor();
<ide> ```javascript
<ide> App.PaintSample = Ember.Object.extend({
<ide> color: 'red',
<del> colour: Ember.aliasMethod('color'),
<add> colour: Ember.alias('color'),
<ide> name: function(){
<ide> return "Z... | 1 |
PHP | PHP | use fqcn for auth facade | 9e07a6870b44e7a70155c58a60b51eed22984d0e | <ide><path>src/Illuminate/Foundation/Auth/AuthenticatesAndRegistersUsers.php
<ide> <?php namespace Illuminate\Foundation\Auth;
<ide>
<del>use Auth;
<ide> use Illuminate\Http\Request;
<add>use Illuminate\Support\Facades\Auth;
<ide> use Illuminate\Contracts\Auth\Guard;
<ide> use Illuminate\Contracts\Auth\Registrar;
<ide... | 1 |
Javascript | Javascript | move ref code to reactcompositecomponent | 9c3d6b8881dcacdb8a65482bc1da7e96ca7514d6 | <ide><path>src/core/ReactComponent.js
<ide> 'use strict';
<ide>
<ide> var ReactElementValidator = require('ReactElementValidator');
<del>var ReactOwner = require('ReactOwner');
<del>var ReactRef = require('ReactRef');
<ide>
<ide> var invariant = require('invariant');
<ide>
<del>function attachRef(ref, component, own... | 3 |
Javascript | Javascript | allow ngform on attribute and class | e9e3ee012b50f868f4cd68f3571560680998a19b | <ide><path>src/AngularPublic.js
<ide> function publishExternalAPI(angular){
<ide> ngClassOdd: ngClassOddDirective,
<ide> ngCloak: ngCloakDirective,
<ide> ngController: ngControllerDirective,
<del> ngForm: formDirective,
<add> ngForm: ngFormDirective,
<ide> ... | 3 |
Javascript | Javascript | capture errors on request data streams | c65065ac0f3f1af3986e881bc197362621fd550c | <ide><path>lib/adapters/http.js
<ide> module.exports = function httpAdapter(config) {
<ide>
<ide> // Send the request
<ide> if (utils.isStream(data)) {
<del> data.pipe(req);
<add> data.on('error', function handleStreamError(err) {
<add> reject(enhanceError(err, config, null, req));
<add> ... | 2 |
Javascript | Javascript | use const in pdf_thumbnail_viewer.js | 74e442ef4c43f82ba6945cf1795b722e1ff5122e | <ide><path>web/pdf_thumbnail_viewer.js
<ide> * See the License for the specific language governing permissions and
<ide> * limitations under the License.
<ide> */
<add>/* eslint no-var: error, prefer-const: error */
<ide>
<ide> import {
<ide> getVisibleElements, isValidRotation, NullL10n, scrollIntoView, watchScr... | 1 |
PHP | PHP | fix failing testlogerror | 85cd11384a2d0ac6641253cc95d23e4444dddf7e | <ide><path>lib/Cake/Test/Case/BasicsTest.php
<ide> public function testDebug() {
<ide> if (php_sapi_name() === 'cli') {
<ide> $expected = sprintf($expectedText, str_replace(CAKE_CORE_INCLUDE_PATH, '', __FILE__), __LINE__ - 18);
<ide> } else {
<del> $expected = sprintf($expectedHtml, str_replace(CAKE_CORE_INCLU... | 1 |
Ruby | Ruby | fix missed smtp_session changes to base.rb. | 416091d8b50ac855f175c004821a5d9831e21bd0 | <ide><path>actionmailer/lib/action_mailer/base.rb
<ide> def perform_delivery_smtp(mail)
<ide> destinations = mail.destinations
<ide> mail.ready_to_send
<ide>
<del> Net::SMTP.start(server_settings[:address], server_settings[:port], server_settings[:domain],
<del> server_settings[:user... | 1 |
Text | Text | fix the space thing | 5057d7da132c287d52749b6c73a9cd6129a1c05a | <ide><path>docs/sources/reference/commandline/cli.md
<ide> available in the default container, you can set these using the `--ulimit` flag.
<ide> values. If no `ulimits` are set, they will be inherited from the default `ulimits`
<ide> set on the daemon.
<ide> > `as` option is disabled now. In other words, the following... | 1 |
Javascript | Javascript | add support for stream | d23f9d5d4782e5849362895f8b648ed587999706 | <ide><path>lib/adapters/http.js
<ide> var zlib = require('zlib');
<ide> var pkg = require('./../../package.json');
<ide> var Buffer = require('buffer').Buffer;
<ide>
<add>// Resolve or reject the Promise based on the status
<add>function settle(resolve, reject, response) {
<add> (response.status >= 200 && response.st... | 3 |
Python | Python | remove unnecessary special case for n == 0 | b274299278c2fc4b534a2af0933dc2d122135eee | <ide><path>numpy/lib/histograms.py
<ide> def histogramdd(sample, bins=10, range=None, normed=False, weights=None):
<ide> nbin[i] = len(edges[i]) + 1 # includes an outlier on each end
<ide> dedges[i] = np.diff(edges[i])
<ide>
<del> # Handle empty input.
<del> if N == 0:
<del> return np.zer... | 1 |
Javascript | Javascript | replace fburl.com link with public fb.me link | c91d87213e6862019b9ef7df7c38551bd6d659fd | <ide><path>Libraries/ReactNative/renderApplication.js
<ide> function renderApplication<Props: Object>(
<ide>
<ide> // If the root component is async, the user probably wants the initial render
<ide> // to be async also. To do this, wrap AppContainer with an async marker.
<del> // For more info see https://fburl.c... | 1 |
Text | Text | move @phillipj to emeriti | d36abb5d0b9470a237a2614c743ae28115bd86d6 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Alexis Campailla** <orangemocha@nodejs.org>
<ide> * [othiym23](https://github.com/othiym23) -
<ide> **Forrest L Norvell** <ogd@aoaioxxysz.net> (he/him)
<del>* [phillipj](https://github.com/phillipj) -
<del>**... | 1 |
Javascript | Javascript | fix lint errors for examples/real-world/ | 095688e05c0e5197505485ba32c7ab4939f571f7 | <ide><path>examples/real-world/actions/index.js
<del>import { CALL_API, Schemas } from '../middleware/api';
<add>import { CALL_API, Schemas } from '../middleware/api'
<ide>
<del>export const USER_REQUEST = 'USER_REQUEST';
<del>export const USER_SUCCESS = 'USER_SUCCESS';
<del>export const USER_FAILURE = 'USER_FAILURE';... | 22 |
Python | Python | change function signature | 0b2b899744ff990ff1e329c55c623e281193d4c7 | <ide><path>official/recommendation/data_preprocessing.py
<ide> def _filter_index_sort(raw_rating_path, cache_path):
<ide>
<ide> def instantiate_pipeline(dataset, data_dir, params, constructor_type=None,
<ide> deterministic=False, epoch_dir=None):
<del> # type: (str, str, dict, typing.Optional... | 1 |
Python | Python | add param to clouddatatransferserviceoperator | 02288cf2baf590e448cd008f6216ccf8b776a67a | <ide><path>airflow/providers/google/cloud/operators/cloud_storage_transfer_service.py
<ide> HTTP_DATA_SOURCE,
<ide> MINUTES,
<ide> MONTH,
<add> NAME,
<ide> OBJECT_CONDITIONS,
<ide> PROJECT_ID,
<ide> SCHEDULE,
<ide> class CloudDataTransferServiceS3ToGCSOperator(BaseOperator):
<ide> :param ... | 2 |
Python | Python | fix python 2 tests | c079d7ddff7eeb653842f33f1f3fecd8b210e616 | <ide><path>pytorch_transformers/tests/tokenization_bert_test.py
<ide> _is_control, _is_punctuation,
<ide> _is_whitespace, VOCAB_FILES_NAMES)
<ide>
<del>from .tokenization_tests_commons import create_and_check_tokeni... | 8 |
Javascript | Javascript | fix context problem | 9850915eeaefeae87f2c34f221fba2bb5f62c4c1 | <ide><path>lib/dependencies/HarmonyImportDependencyParserPlugin.js
<ide> module.exports = class HarmonyImportDependencyParserPlugin {
<ide> expr.range,
<ide> this.strictExportPresence
<ide> );
<del> dep.directImport = false;
<add> dep.directImport = members.length === 0;
<ide> dep.call = true;
<... | 1 |
Java | Java | introduce annotationconfigwac #scan and #register | e128ee2464b1d4bcc988999f4e05da5e8ecdf0ed | <ide><path>org.springframework.web/src/main/java/org/springframework/web/context/support/AnnotationConfigWebApplicationContext.java
<ide>
<ide> package org.springframework.web.context.support;
<ide>
<del>import org.springframework.beans.factory.config.BeanDefinition;
<ide> import org.springframework.beans.factory.sup... | 2 |
Javascript | Javascript | fix unused variable lint from | 036d342189d6e4b7489af1f0146a7f7164714745 | <ide><path>src/browser/ui/dom/components/ReactDOMSelect.js
<ide> function selectValueType(props, propName, componentName) {
<ide> * @private
<ide> */
<ide> function updateOptions(component, propValue) {
<del> var selectedValue, i, l;
<add> var selectedValue, i;
<ide> var options = findDOMNode(component).options;
... | 1 |
Text | Text | fix some typos and other errors | 440d61ab364da971973ae8d784e77e21e5cdaa7f | <ide><path>docs/topics/contributing.md
<ide> There are many ways you can contribute to Django REST framework. We'd like it t
<ide>
<ide> The most important thing you can do to help push the REST framework project forward is to be actively involved wherever possible. Code contributions are often overvalued as being t... | 1 |
Text | Text | update readme to include link to middleware docs | 8ba8fe25a9d95d581337702ca9334258152b784a | <ide><path>README.md
<ide> is in fact a shortcut for this:
<ide>
<ide> ```js
<ide> import { createRedux, createDispatcher, composeStores } from 'redux';
<add>import thunkMiddleware from 'redux/lib/middleware/thunk';
<ide> import * as stores from '../stores/index';
<ide>
<ide> // Compose all your Stores into a single ... | 1 |
Python | Python | update rehearsal example | 7ac0f9626c8590b3f88ab31eff3beecd6de0fd2e | <ide><path>examples/training/rehearsal.py
<ide> import srsly
<ide> import spacy
<ide> from spacy.gold import GoldParse
<del>from spacy.util import minibatch
<add>from spacy.util import minibatch, compounding
<ide>
<ide>
<ide> LABEL = "ANIMAL"
<ide> def main(model_name, unlabelled_loc):
<ide> nlp.get_pipe("ner").a... | 1 |
Text | Text | apply suggestions from code review | 57f70e2d7d30f485dc879fd4d1130752c1a42709 | <ide><path>CONTRIBUTING.md
<ide> Include details about your configuration and environment:
<ide>
<ide> This section guides you through submitting an enhancement suggestion for Atom, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the ... | 2 |
Java | Java | simplify comparator using method references | f39c6d36c70fbbbbb0323fabf7a1ee6d1c0f4d7c | <ide><path>spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectiveConstructorResolver.java
<ide> import java.lang.reflect.Constructor;
<ide> import java.util.ArrayList;
<ide> import java.util.Arrays;
<add>import java.util.Comparator;
<ide> import java.util.List;
<ide>
<ide> import org.sp... | 1 |
Ruby | Ruby | use relation.from when constructing a relation | 6a776dcc9df437c0bcc3c1ff1d2a79966264bac9 | <ide><path>activerecord/lib/active_record/associations.rb
<ide> def select_all_rows(options, join_dependency)
<ide> def construct_finder_arel_with_included_associations(options, join_dependency)
<ide> scope = scope(:find)
<ide>
<del> relation = arel_table((scope && scope[:from]) || options[:... | 2 |
Python | Python | add license for images | d490379c71d7c9ad082ee33dc764f5eceb228b1d | <ide><path>libcloud/compute/drivers/gce.py
<ide> def ex_create_forwarding_rule(self, name, target=None, region=None,
<ide>
<ide> def ex_create_image(self, name, volume, description=None, family=None,
<ide> guest_os_features=None, use_existing=True,
<del> wait_for_comp... | 1 |
Java | Java | revise "streaming" mediatype support | 2896c5d2ab23b6faf1004d3e9aef18d23d790c04 | <ide><path>spring-web/src/main/java/org/springframework/http/codec/DecoderHttpMessageReader.java
<ide> public Mono<T> readMono(ResolvableType actualType, ResolvableType elementType,
<ide> /**
<ide> * Get additional hints for decoding for example based on the server request
<ide> * or annotations from controller me... | 8 |
Java | Java | pass mono to reactor netty when feasible | 5b711a964bfb64c80bde72ebc48e706f9fe2f000 | <ide><path>spring-test/src/main/java/org/springframework/mock/http/server/reactive/MockServerHttpResponse.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License")... | 5 |
Text | Text | add link to project wiki in readme.md | 6078e0852da884fc8aec918ffe0d5c540c52a529 | <ide><path>README.md
<ide> three.js
<ide>
<ide> The aim of the project is to create an easy to use, lightweight, 3D library. The library provides <canvas>, <svg>, CSS3D and WebGL renderers.
<ide>
<del>[Examples](http://threejs.org/examples/) — [Documentation](http://threejs.org/docs/) — [Migrating](https:... | 1 |
Javascript | Javascript | add tests for and | 8caf7fdb05b29325c57807074d55fa3f2713d197 | <ide><path>test/simple/test-http-client-abort2.js
<add>// Copyright Joyent, Inc. and other Node contributors.
<add>//
<add>// Permission is hereby granted, free of charge, to any person obtaining a
<add>// copy of this software and associated documentation files (the
<add>// "Software"), to deal in the Software without... | 2 |
Javascript | Javascript | improve util.inspect performance | 95bbb6817532a2cdf1991f452ebbc5a5b5d5a112 | <ide><path>benchmark/util/inspect-array.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const util = require('util');
<add>
<add>const bench = common.createBenchmark(main, {
<add> n: [1e2],
<add> len: [1e5],
<add> type: [
<add> 'denseArray',
<add> 'sparseArray',
<add> 'mixedArray'... | 3 |
Java | Java | revise cache api | 861e4817559dfb956512775665c8f0c9da9c99c1 | <ide><path>org.springframework.context/src/test/java/org/springframework/cache/config/AbstractAnnotationTest.java
<ide> public void testMethodName(CacheableService service, String keyName)
<ide> assertSame(r1, service.name(key));
<ide> Cache<Object, Object> cache = cm.getCache("default");
<ide> // assert the meth... | 1 |
Ruby | Ruby | use nex hash syntax on tests | 4c1b437ed7dea3660065c03e5e056a8aac700e21 | <ide><path>actionpack/test/controller/api/conditional_get_test.rb
<ide> require 'active_support/core_ext/numeric/time'
<ide>
<ide> class ConditionalGetApiController < ActionController::API
<del> before_action :handle_last_modified_and_etags, :only => :two
<add> before_action :handle_last_modified_and_etags, only: :t... | 1 |
Go | Go | remove non-service cluster info on sbleave | c4d507b566c31c9d1ddceba4f189b83566ba93e0 | <ide><path>libnetwork/endpoint.go
<ide> func (ep *endpoint) sbLeave(sb *sandbox, force bool, options ...EndpointOption)
<ide> }
<ide> }
<ide>
<del> if ep.svcID != "" {
<del> if err := ep.deleteServiceInfoFromCluster(sb, true, "sbLeave"); err != nil {
<del> logrus.Warnf("Failed to clean up service info on contain... | 1 |
Python | Python | update bertencoderv2 max_sequence_length docstring | c9e4db9c21d75991587ede6ddd0280734869f81a | <ide><path>official/nlp/modeling/networks/bert_encoder.py
<ide> class BertEncoderV2(tf.keras.layers.Layer):
<ide> num_attention_heads: The number of attention heads for each transformer. The
<ide> hidden size must be divisible by the number of attention heads.
<ide> max_sequence_length: The maximum sequen... | 1 |
PHP | PHP | remove null retrun | 664a6bd465719ec72a60950691d7f134c21c5e4a | <ide><path>src/Error/Debugger.php
<ide> public static function getOutputAs()
<ide> * Set the output format for Debugger error rendering.
<ide> *
<ide> * @param string $format The format you want errors to be output as.
<del> * @return null
<add> * @return void
<ide> * @throws \InvalidArgumen... | 1 |
Python | Python | remove side-effect of session in fab | a9dfd7d1cfa9bdef5fd294d593ba752ea1949d33 | <ide><path>airflow/cli/commands/webserver_command.py
<ide> def webserver(args):
<ide> print(
<ide> "Starting the web server on port {0} and host {1}.".format(
<ide> args.port, args.hostname))
<del> app, _ = create_app(None, testing=conf.getboolean('core', 'unit_test_mode'))
<a... | 7 |
Text | Text | fix typo in text and change the verb | 6cff62641ceaa98df4234f4b2009b0221208b838 | <ide><path>guide/english/vagrant/index.md
<ide> title: Vagrant
<ide> ---
<ide> ## Vagrant
<ide>
<del><!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
<del>Vagrant is an automation tool that aids in creating and managing virtual machines tha... | 1 |
Python | Python | apply exec fixer results | 2429298dd8ddf797c3c89e65eb8a9b9e8f72a299 | <ide><path>doc/numpybook/runcode.py
<ide> def getoutput(tstr, dic):
<ide> except SyntaxError:
<ide> try:
<ide> res = None
<del> exec code in dic
<add> exec(code, dic)
<ide> finally:
<ide> sys.stdout = sys.__stdout__
<ide> if res is None:
<ide> def ru... | 14 |
Mixed | Javascript | remove usage of *state.highwatermark | 157df5a47c3aa8951e5dba4f0b05c7a9c7d9ecb1 | <ide><path>doc/api/stream.md
<ide> process.nextTick(() => {
<ide>
<ide> See also: [`writable.cork()`][].
<ide>
<add>##### writable.writableHighWaterMark
<add><!-- YAML
<add>added: REPLACEME
<add>-->
<add>
<add>Return the value of `highWaterMark` passed when constructing this
<add>`Writable`.
<add>
<ide> ##### writabl... | 11 |
Javascript | Javascript | add bonfire to challenge types | c0f4fecb6fc9137261c3388328b574864eb858b9 | <ide><path>common/app/routes/challenges/redux/reducer.js
<ide> import { handleActions } from 'redux-actions';
<ide> import { createPoly } from '../../../../utils/polyvinyl';
<ide>
<ide> import types from './types';
<del>import { HTML, JS } from '../../../utils/challengeTypes';
<add>import { BONFIRE, HTML, JS } from '.... | 1 |
Python | Python | ignore unknown events in consumer | 52b50e8cf453ba64838fc1398b23ffb0ef674cbe | <ide><path>celery/worker/consumer.py
<ide> def on_message(self, prepare, message):
<ide> message.payload['hostname'])
<ide> if hostname != self.hostname:
<ide> type, event = prepare(message.payload)
<del> obj, subject = self.update_state(event)
<add> self.up... | 1 |
Python | Python | fix doc typo | 4ea064b1d028d8ecd1b4353f22409e1714ec75dc | <ide><path>numpy/lib/format.py
<ide>
<ide> - Is straightforward to reverse engineer. Datasets often live longer than
<ide> the programs that created them. A competent developer should be
<del> able create a solution in his preferred programming language to
<add> able to create a solution in his preferred programmi... | 1 |
Javascript | Javascript | drop confusing comment | d408de0438bc186cf460f01c075a055cbb96dcda | <ide><path>babel-preset/configs/main.js
<ide> const defaultPlugins = [
<ide> [
<ide> require('@babel/plugin-proposal-class-properties'),
<ide> // use `this.foo = bar` instead of `this.defineProperty('foo', ...)`
<del> // (Makes the properties enumerable)
<ide> {loose: true},
<ide> ],
<ide> [require... | 2 |
Text | Text | use present tense in error messages | 9d12c14b19bc30baa4cf556a0b8281e76637f7db | <ide><path>doc/api/errors.md
<ide> specifier.
<ide> <a id="ERR_INVALID_PACKAGE_CONFIG"></a>
<ide> ### `ERR_INVALID_PACKAGE_CONFIG`
<ide>
<del>An invalid [`package.json`][] file was found which failed parsing.
<add>An invalid [`package.json`][] file failed parsing.
<ide>
<ide> <a id="ERR_INVALID_PACKAGE_TARGET"></a>
<... | 1 |
Ruby | Ruby | anticipate python 3.5 in .pth audit | 86612c253db302a4e5e2c4790f1cadc1d31812c6 | <ide><path>Library/Homebrew/formula_cellar_checks.rb
<ide> def check_shadowed_headers
<ide> end
<ide>
<ide> def check_easy_install_pth lib
<del> pth_found = Dir["#{lib}/python{2.7,3.4}/site-packages/easy-install.pth"].map { |f| File.dirname(f) }
<add> pth_found = Dir["#{lib}/python{2.7,3}*/site-packages/easy... | 1 |
Java | Java | add separate jsbunldeloader for assets | 0c2fdf4b6af3c4193d351ed615b9fc12c941173a | <ide><path>ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactTestHelper.java
<ide> public CatalystInstance build() {
<ide> .setJSExecutor(executor)
<ide> .setRegistry(mNativeModuleRegistryBuilder.build())
<ide> .setJSModuleRegistry(mJSModuleRegistryBuilder.build())
<del> ... | 3 |
Text | Text | update chinese translation of basic css | 8c1834badb356f9173c4aaddc52a4279b43015c8 | <ide><path>curriculum/challenges/chinese/01-responsive-web-design/basic-css/add-a-negative-margin-to-an-element.chinese.md
<ide> id: bad87fee1348bd9aedf08823
<ide> title: Add a Negative Margin to an Element
<ide> challengeType: 0
<del>videoUrl: ''
<del>localeTitle: 向元素添加负边距
<add>videoUrl: 'https://scrimba.com/c/cnpyGs3... | 44 |
Text | Text | add additional test case to fix hard code issue | a34921a5b3d19218bb844000b3a76328cf388161 | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/debugging/use-caution-when-reinitializing-variables-inside-a-loop.md
<ide> assert(
<ide> );
<ide> ```
<ide>
<add>`zeroArray(4,3)` should return an array holding 4 rows of 3 columns of zeroes each.
<add>
<add>```js
<add>assert(JSON.st... | 1 |
Text | Text | fix typo in issue template | d7eea1b49a5ea67dd9f39b9fa0a823466433f486 | <ide><path>.github/ISSUE_TEMPLATE.md
<ide> Please use the #pocoo IRC channel on freenode or Stack Overflow for general
<ide> questions about using Flask or issues not related to Flask.**
<ide>
<ide> If you'd like to report a bug in Flask, fill out the template below. Provide
<del>any any extra information that may be ... | 1 |
Javascript | Javascript | pass tests and flow | 9e87e654f5bd223ef2c5fc920bd778ca2eb31521 | <ide><path>src/__tests__/inspectedElementContext-test.js
<ide> import type Store from 'src/devtools/store';
<ide> describe('InspectedElementContext', () => {
<ide> let React;
<ide> let ReactDOM;
<add> let act;
<ide> let TestRenderer: ReactTestRenderer;
<ide> let bridge: Bridge;
<ide> let store: Store;
<ide> ... | 2 |
Text | Text | relax prohibition on personal pronouns | 448834c9504b8e6bcf44716b1f512da25fee8147 | <ide><path>doc/guides/doc-style-guide.md
<ide> this guide.
<ide> * Check changes to documentation with `make lint-md`.
<ide> * [Use US spelling][].
<ide> * [Use serial commas][].
<del>* Avoid personal pronouns (_I_, _you_, _we_) in reference documentation.
<del> * Personal pronouns are acceptable in colloquial documen... | 1 |
Javascript | Javascript | drop size and andself methods | f110360f65a268e959ae892ca36e85da3d91e606 | <ide><path>src/deprecated.js
<del>define([
<del> "./core",
<del> "./traversing"
<del>], function( jQuery ) {
<del>
<del>// The number of elements contained in the matched element set
<del>jQuery.fn.size = function() {
<del> return this.length;
<del>};
<del>
<del>jQuery.fn.andSelf = jQuery.fn.addBack;
<del>
<add>define(... | 2 |
Mixed | Text | add the `--api` option for the plugin generator | 9a7f011da196f93cec285a6227ad9499434da4d1 | <ide><path>railties/CHANGELOG.md
<add>* Add a `--api` option in order to generate plugins that can be added
<add> inside an API application.
<add>
<add> *Robin Dupret*
<add>
<ide> * Fix `NoMethodError` when generating a scaffold inside a full engine.
<ide>
<ide> *Yuji Yaginuma*
<ide><path>railties/lib/ra... | 2 |
PHP | PHP | fix pivot serialization | b52d3143c6b4b5eacbb21a5c83873fd1d43289e9 | <ide><path>src/Illuminate/Database/Eloquent/Collection.php
<ide>
<ide> use LogicException;
<ide> use Illuminate\Support\Arr;
<add>use Illuminate\Database\Eloquent\Relations\Pivot;
<ide> use Illuminate\Contracts\Queue\QueueableCollection;
<ide> use Illuminate\Support\Collection as BaseCollection;
<ide>
<ide> public fu... | 5 |
Python | Python | update message with new breeze subcommand | 9a6fc73aba75a03b0dd6c700f0f8932f6a474ff7 | <ide><path>dev/breeze/src/airflow_breeze/utils/reinstall.py
<ide> def warn_non_editable():
<ide> "\n[error]Breeze is installed in a wrong way.[/]\n"
<ide> "\n[error]It should only be installed in editable mode[/]\n\n"
<ide> "[info]Please go to Airflow sources and run[/]\n\n"
<del> f" ... | 1 |
PHP | PHP | use basepath helper | 0984411bda2cd2cc62a698f222b32ee991d57ff5 | <ide><path>src/Illuminate/Database/Console/Migrations/MigrateCommand.php
<ide> public function fire()
<ide> // so that migrations may be run for any path within the applications.
<ide> if ( ! is_null($path = $this->input->getOption('path')))
<ide> {
<del> $path = $this->laravel['path.base'].'/'.$path;
<add> $... | 8 |
Ruby | Ruby | remove outdated comment | 051061827cbcbcf26f77b01efa41347bde3933fa | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_unlinked_but_not_keg_only
<ide> end
<ide> end.map{ |pn| pn.basename }
<ide>
<del> # NOTE very old kegs will be linked without the LinkedKegs symlink
<del> # this will trigger this warning but it's wrong, we could detect that though
<del> # but I do... | 1 |
Text | Text | add a changelog entry for to_h deprecation | 694c9629804dc3ba1b3edf390e552070d841077b | <ide><path>activerecord/CHANGELOG.md
<add>* Deprecate `DatabaseConfigurations#to_h`. These connection hashes are still available via `ActiveRecord::Base.configurations.configs_for`.
<add>
<add> *Eileen Uchitelle*, *John Crepezzi*
<add>
<ide> * Add `DatabaseConfig#configuration_hash` to return database configurat... | 1 |
Ruby | Ruby | teach patch to uncompress patches if necessary | 0a2cdea5fd3f2c62bf79a99477ee6c177e5242a1 | <ide><path>Library/Homebrew/formula.rb
<ide> def stage
<ide> def patch
<ide> return if patches.empty?
<ide> ohai "Patching"
<del> if patches.kind_of? Hash
<del> patch_args=[]
<del> curl_args=[]
<del> n=0
<del> patches.each do |arg, urls|
<del> urls.each do |url|
<del> ds... | 1 |
PHP | PHP | shuffle() | 43851636c4b5bf87ea81f6bfb108bc14db445446 | <ide><path>src/Illuminate/Support/Arr.php
<ide> public static function set(&$array, $key, $value)
<ide> * Shuffle the given array and return the result.
<ide> *
<ide> * @param array $array
<add> * @param int $seed
<ide> * @return array
<ide> */
<del> public static function shuffle($a... | 3 |
PHP | PHP | add text as a debugger output type | dfd860de7147d8759d6a68397fd44d68e6c92ceb | <ide><path>src/Error/Debugger.php
<ide> class Debugger
<ide> * @var array<string, class-string>
<ide> */
<ide> protected $renderers = [
<add> // Backwards compatible alias for text
<ide> 'txt' => TextRenderer::class,
<add> 'text' => TextRenderer::class,
<ide> ];
<ide>
<ide> ... | 1 |
Javascript | Javascript | add oninjecthelpers method | 1e86986a930c61c912effe0a62fa659f7ada15f7 | <ide><path>packages/ember-testing/lib/helpers.js
<ide> require('ember-testing/test');
<ide>
<ide> var Promise = Ember.RSVP.Promise,
<ide> get = Ember.get,
<del> helper = Ember.Test.registerHelper;
<add> helper = Ember.Test.registerHelper,
<add> pendingAjaxRequests = 0;
<add>
<add>
<add>Ember.Test.onInject... | 2 |
PHP | PHP | add boolean methods to schema facade | ae478939655c2e01cd59c14aef6454c5a3a72e4a | <ide><path>src/Illuminate/Support/Facades/Schema.php
<ide> * @method static \Illuminate\Database\Schema\Builder table(string $table, \Closure $callback)
<ide> * @method static \Illuminate\Database\Schema\Builder rename(string $from, string $to)
<ide> * @method static void defaultStringLength(int $length)
<add> * @me... | 1 |
Text | Text | standardize rest parameters | e1ddcb7219c8900473ecc343db2db86984d1688d | <ide><path>doc/api/console.md
<ide> The global `console` is a special `Console` whose output is sent to
<ide> new Console(process.stdout, process.stderr);
<ide> ```
<ide>
<del>### console.assert(value[, message][, ...])
<add>### console.assert(value[, message][, ...args])
<ide> <!-- YAML
<ide> added: v0.1.101
<ide> --... | 8 |
Text | Text | improve sentence structure | 11a0829e2d6c9c2947e2fdb18fc3df36d88aebfd | <ide><path>guides/source/action_controller_overview.md
<ide> In addition to "before" filters, you can also run filters after an action has be
<ide>
<ide> "around" filters are responsible for running their associated actions by yielding, similar to how Rack middlewares work.
<ide>
<del>For example, in a website where ... | 1 |
Python | Python | fix verification of managed identity | c5c18c54fa83463bc953249dc28edcbf7179da17 | <ide><path>airflow/providers/databricks/hooks/databricks.py
<ide> def _check_azure_metadata_service() -> None:
<ide> """
<ide> try:
<ide> jsn = requests.get(
<del> AZURE_METADATA_SERVICE_TOKEN_URL,
<add> AZURE_METADATA_SERVICE_INSTANCE_URL,
<ide> ... | 2 |
PHP | PHP | apply fixes from styleci | f646f8a8c594e83217079763b8ac20c260828da4 | <ide><path>tests/Support/SupportCollectionTest.php
<ide> public function testReduce($collection)
<ide> $this->assertEquals(6, $data->reduce(function ($carry, $element) {
<ide> return $carry += $element;
<ide> }));
<del>
<add>
<ide> $data = new $collection([
<ide> ... | 1 |
Javascript | Javascript | show error for component class/invocation mismatch | 912392ea5d7d5bb607c0914c40b5810dbef3d4bd | <ide><path>packages/ember-htmlbars/lib/node-managers/component-node-manager.js
<ide> import setProperties from 'ember-metal/set_properties';
<ide> import { MUTABLE_CELL } from 'ember-views/compat/attrs-proxy';
<ide> import SafeString from 'htmlbars-util/safe-string';
<ide> import { instrument } from 'ember-htmlbars/sys... | 2 |
Javascript | Javascript | move _detailedexception into util | 3937e8566da9eef72072d9b1737cf5859c65b543 | <ide><path>lib/net.js
<ide> var WriteWrap = process.binding('stream_wrap').WriteWrap;
<ide>
<ide> var cluster;
<ide> var errnoException = util._errnoException;
<add>var detailedException = util._detailedException;
<ide>
<ide> function noop() {}
<ide>
<ide> function isPipeName(s) {
<ide> return util.isString(s) && ... | 2 |
Javascript | Javascript | ignore coverage for tostringtag | e80bcac1b5cac99cf003c3236490bf35bc350bed | <ide><path>lib/util/LazySet.js
<ide> class LazySet {
<ide> return this._set[Symbol.iterator]();
<ide> }
<ide>
<add> /* istanbul ignore next */
<ide> get [Symbol.toStringTag]() {
<ide> return "LazySet";
<ide> } | 1 |
Ruby | Ruby | add missing sentence | bba22cedb4f3fc2554ab54175be3e20a701d53c8 | <ide><path>actionpack/lib/action_controller/url_rewriter.rb
<ide> def self.included(base) #:nodoc:
<ide> end
<ide>
<ide> # Generate a url based on the options provided, default_url_options and the
<del> # routes defined in routes.rb
<del> #
<del> # Options used by <tt>url_for</tt>:
<add> # ro... | 1 |
Javascript | Javascript | add expando prop to disabledlog function | 9e5b2c94e63fdd007afcc21535f07b4f61b05ddc | <ide><path>packages/shared/ConsolePatchingDev.js
<ide> let prevWarn;
<ide> let prevError;
<ide>
<ide> function disabledLog() {}
<add>disabledLog.__reactDisabledLog = true;
<ide>
<ide> export function disableLogs(): void {
<ide> if (__DEV__) { | 1 |
Javascript | Javascript | add test for setcomponentmanager with a factory | 05301603cdb00f800473ca3d8eb941ea63254f07 | <ide><path>packages/@ember/-internals/glimmer/tests/integration/custom-component-manager-test.js
<ide> import {
<ide> import { setComponentManager, capabilities } from '@ember/-internals/glimmer';
<ide>
<ide> if (GLIMMER_CUSTOM_COMPONENT_MANAGER) {
<del> class ComponentManagerTest extends RenderingTest {
<del> con... | 1 |
Javascript | Javascript | keep variable names for skinindex and nodeindex | 6f5c72e9ecf6507bff3dff43e9d50b2134fcebb5 | <ide><path>examples/js/loaders/GLTFLoader.js
<ide> THREE.GLTFLoader = ( function () {
<ide>
<ide> // Nothing in the node definition indicates whether it is a Bone or an
<ide> // Object3D. Use the skins' joint references to mark bones.
<del> for ( var i = 0; i < skins.length; i ++ ) {
<add> for ( var skinIndex =... | 1 |
PHP | PHP | fix failing test | 453b5988b74ed51a2b3243bf3d3323bb0db91ba4 | <ide><path>tests/TestCase/Utility/DebuggerTest.php
<ide> public function testExportVar() {
<ide> (int) 10 => 'passedArgs',
<ide> (int) 11 => 'cacheAction'
<ide> ]
<del> [protected] _scripts => []
<ide> [protected] _paths => []
<ide> [protected] _pathsForPlugin => []
<ide> [protected] _parents => [] | 1 |
PHP | PHP | add a set method to object registry | 90946c3d29da6f51448188f8209be2a3d2234e88 | <ide><path>Cake/Utility/ObjectRegistry.php
<ide> abstract class ObjectRegistry {
<ide> * If a subclass provides event support, you can use `$settings['enabled'] = false`
<ide> * to exclude constructed objects from being registered for events.
<ide> *
<del> * Using Cake\Controller\Controller::$components as an exampl... | 1 |
Javascript | Javascript | keep the routes in jsx | aec8ca40dc49600b3b5c068bcab4b6a2394e9c61 | <ide><path>examples/real-world/containers/Root.dev.js
<ide> import React, { Component, PropTypes } from 'react'
<ide> import { Provider } from 'react-redux'
<del>import Routes from '../routes'
<add>import routes from '../routes'
<ide> import DevTools from './DevTools'
<add>import { Router, browserHistory } from 'react-... | 3 |
Javascript | Javascript | use log only in test-child-process-fork-net | c82a9583ce9ac3af18e4eaea96145fec57bf6a10 | <ide><path>test/parallel/test-child-process-fork-net.js
<ide> const assert = require('assert');
<ide> const fork = require('child_process').fork;
<ide> const net = require('net');
<ide>
<del>// progress tracker
<ide> function ProgressTracker(missing, callback) {
<ide> this.missing = missing;
<ide> this.callback = ... | 1 |
Java | Java | improve performance of stompencoder | 774e4c3dc10035448d12e5f883823c260569f891 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompEncoder.java
<ide> public byte[] encode(Map<String, Object> headers, byte[] payload) {
<ide> }
<ide> else {
<ide> StompCommand command = StompHeaderAccessor.getCommand(headers);
<del> Assert.notNull(command, "Missing ST... | 1 |
Python | Python | fix typo in setup.py | 271c0809d29acbf75d2b4d637fa78a5fc5ce6ebb | <ide><path>numpy/random/setup.py
<ide> def generate_libraries(ext, build_dir):
<ide> if sys.platform == 'cygwin':
<ide> # Export symbols without __declspec(dllexport) for using by cython.
<ide> # Using __declspec(dllexport) does not export other necessary symbols
<del> # in Cygwin package's C... | 1 |
Text | Text | update redis cache store docs | a6b82a37797bad04ef32b2ec500ad1a2107ea5f0 | <ide><path>guides/source/caching_with_rails.md
<ide> config.cache_store = :mem_cache_store, "cache-1.example.com", "cache-2.example.c
<ide>
<ide> ### ActiveSupport::Cache::RedisCacheStore
<ide>
<del>The Redis cache store takes advantage of Redis support for least-recently-used
<del>and least-frequently-used key evict... | 1 |
Javascript | Javascript | fix lgtm error | e879da10e2ccc9d05200c9f36259638e3b02ac8a | <ide><path>examples/js/renderers/WebGLDeferredRenderer.js
<ide> THREE.WebGLDeferredRenderer = function ( parameters ) {
<ide>
<ide> }
<ide>
<del> updateDeferredColorUniforms( renderer, scene, camera, geometry, material, group );
<add> updateDeferredColorUniforms( renderer, scene, camera, geometry, material );
<id... | 1 |
Javascript | Javascript | standardize indexof comparisons | 53aa87f3bf4284763405f3eb8affff296e55ba4f | <ide><path>src/ajax/jsonp.js
<ide> jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
<ide> jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
<ide> "url" :
<ide> typeof s.data === "string" &&
<del> !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") &&
<add>... | 8 |
Mixed | Javascript | change windowshide default to true" | ad6ead3aab24e6b703d4982ba0563a15561a2915 | <ide><path>doc/api/child_process.md
<ide> exec('"my script.cmd" a b', (err, stdout, stderr) => {
<ide> <!-- YAML
<ide> added: v0.1.90
<ide> changes:
<del> - version: v11.0.0
<del> pr-url: https://github.com/nodejs/node/pull/21316
<del> description: The `windowsHide` option now defaults to `true`.
<ide> - versi... | 4 |
Java | Java | add equals/hashcode to flashmap | 1ca0460534d207a4f3d2861d34dbb8bacb76eb27 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/FlashMap.java
<ide>
<ide> import org.springframework.util.LinkedMultiValueMap;
<ide> import org.springframework.util.MultiValueMap;
<add>import org.springframework.util.ObjectUtils;
<ide> import org.springframework.util.StringUtils;
<ide>
<ide> /*... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.