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 | add async/await support to parser | fc8b1d348dcd3a49786b0f367c8cac3eb97f5bf6 | <ide><path>lib/Parser.js
<ide> Parser.prototype.walkExpression = function walkExpression(expression) {
<ide> return this["walk" + expression.type](expression);
<ide> };
<ide>
<add>Parser.prototype.walkAwaitExpression = function walkAwaitExpression(expression) {
<add> var argument = expression.argument
<add> if(this[... | 2 |
Javascript | Javascript | use regex to test | 474fd78d229508fa56aa6f790fc408973935250d | <ide><path>src/extras/ImageUtils.js
<ide> const ImageUtils = {
<ide> let canvas;
<ide>
<ide> var src = image.src;
<del> if ( src[ 0 ] === "d" && src[ 1 ] === "a" && src[ 2 ] === "t" && src[ 3 ] === "a" && src[ 4 ] === ":" ) {
<add> if ( /^data:/i.test( src ) ) {
<ide>
<ide> return image.src;
<ide> | 1 |
Python | Python | use copy to move the masked values into the result | ad902ff2e3b2be2bc33b65e6eaef857a2d3b5e6b | <ide><path>numpy/ma/core.py
<ide> def __call__ (self, a, b, *args, **kwargs):
<ide> return result
<ide> # Case 2. : array
<ide> # Revert result to da where masked
<del> if m.any():
<del> np.copyto(result, 0, casting='unsafe', where=m)
<del> # This only makes sens... | 1 |
Text | Text | credit the author of in the previous commit | 850d313c3bd8267ef08c4fdfedbdb510cc419721 | <ide><path>activerecord/CHANGELOG.md
<ide>
<ide> Fixes #20515.
<ide>
<del> *Sean Griffin*
<add> *Sean Griffin & jmondo*
<ide>
<ide> * Deprecate the PG `:point` type in favor of a new one which will return
<ide> `Point` objects instead of an `Array` | 1 |
Python | Python | add custom warning when run_command fails | 60f97bc519ecf607f7711c3ae0402f89d939989b | <ide><path>spacy/errors.py
<ide> class Errors(object):
<ide> E199 = ("Unable to merge 0-length span at doc[{start}:{end}].")
<ide>
<ide> # TODO: fix numbering after merging develop into master
<add> E970 = ("Can not execute command '{str_command}'. Do you have '{tool}' installed?")
<ide> E971 = ("Found ... | 2 |
Python | Python | remove "ista" from portuguese stop words | c1d020b0a68630bbc9950b09ad72ba38ee1c749f | <ide><path>spacy/pt/stop_words.py
<ide>
<ide> hoje horas há
<ide>
<del>iniciar inicio ir irá isso ista isto já
<add>iniciar inicio ir irá isso isto já
<ide>
<ide> lado ligado local logo longe lugar lá
<ide> | 1 |
Python | Python | apply patch to fix ticket | 18c907f73b760346855351c88562aaf4edf0013f | <ide><path>numpy/core/tests/test_regression.py
<ide> def test_buffer_hashlib(self):
<ide> except ImportError:
<ide> from md5 import new as md5
<ide>
<del> x = np.array([1,2,3], dtype=np.int32)
<add> x = np.array([1,2,3], dtype=np.dtype('<i4'))
<ide> assert_equal(md5(x).hexdige... | 1 |
Python | Python | fix authorization few perms tests | 79c1f2154adfbb13fa5d7e24e9624afa41652a6c | <ide><path>tests/test_permissions.py
<ide> def test_empty_view_does_not_assert(self):
<ide> self.assertEqual(response.status_code, status.HTTP_200_OK)
<ide>
<ide> def test_calling_method_not_allowed(self):
<del> request = factory.generic('METHOD_NOT_ALLOWED', '/')
<add> request = factory.gene... | 1 |
Text | Text | add legendecas to tsc list | 325f54966e6cd85a123448af68c04b5d1a55b663 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **James M Snell** <<jasnell@gmail.com>> (he/him)
<ide> * [joyeecheung](https://github.com/joyeecheung) -
<ide> **Joyee Cheung** <<joyeec9h3@gmail.com>> (she/her)
<add>* [legendecas](https://github.com/legendecas) -
<ad... | 1 |
Javascript | Javascript | add test for writable.write() argument types | 6ea51bc4918c05e293c30d5efc384a15ae6cfd7e | <ide><path>test/parallel/test-stream-writable-invalid-chunk.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const stream = require('stream');
<add>
<add>function testWriteType(val, objectMode, code) {
<add> const writable = new stream.Writable({
<add> objectMode,
<add> write: () => {}
... | 1 |
PHP | PHP | fix use of deprecated string interpolation | dd1e721607fd04e36602681aafa56c55c91d717f | <ide><path>src/Routing/RouteCollection.php
<ide> protected function _getNames(array $url): array
<ide> $action = strtolower($url['action']);
<ide>
<ide> $names = [
<del> "${controller}:${action}",
<del> "${controller}:_action",
<del> "_controller:${action}",
<add> ... | 4 |
Python | Python | resolve line-too-long in integration_test | 4f1d333ded256b0315cf02eee067d6fa902b748d | <ide><path>keras/integration_test/custom_object_saving_test.py
<ide> # `tf.print` message is only available in stderr in TF2, which this test checks.
<ide> @test_utils.run_v2_only
<ide> class CustomObjectSavingTest(tf.test.TestCase, parameterized.TestCase):
<del> """Test for custom Keras object saving with `register... | 10 |
Python | Python | add tests for list field to schema | 56021f9e7769138e0ae69115f01ed45b5bc8be3f | <ide><path>tests/test_schemas.py
<ide> class ExampleSerializer(serializers.Serializer):
<ide> hidden = serializers.HiddenField(default='hello')
<ide>
<ide>
<add>class AnotherSerializerWithListFields(serializers.Serializer):
<add> a = serializers.ListField(child=serializers.IntegerField())
<add> b = serializ... | 1 |
Javascript | Javascript | add fallback for lenient parsing | 46bba4e27ac9c5bcd5355d4520bd3a25f6e41ed6 | <ide><path>src/lib/locale/set.js
<ide> export function set (config) {
<ide> this._config = config;
<ide> // Lenient ordinal parsing accepts just a number in addition to
<ide> // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
<add> // TODO: Remove "ordinalParse" fallback in next major rele... | 1 |
Text | Text | remove extra parenthesis | 29ac0866beaf5fdf4946e05ef3d2af930d3a371e | <ide><path>CHANGELOG-5.4.md
<ide> - Added `--force` option to `make:mail`, `make:model` and `make:notification` ([#19932](https://github.com/laravel/framework/pull/19932))
<ide> - Added support for PostgreSQL deletes with `USES` clauses ([#20062](https://github.com/laravel/framework/pull/20062), [f94fc02](https://githu... | 1 |
Javascript | Javascript | prepare more touchable experiments | e802bd0ea9c09e37164e94bcdcbcd1daa5163db4 | <ide><path>Libraries/Components/Touchable/TouchableBounce.js
<ide>
<ide> 'use strict';
<ide>
<add>import TouchableInjection from './TouchableInjection';
<add>
<ide> const Animated = require('../../Animated/src/Animated');
<ide> const DeprecatedViewPropTypes = require('../../DeprecatedPropTypes/DeprecatedViewPropTypes... | 7 |
Ruby | Ruby | improve escape_javascript performance | 2bb7dbf75d2c267c6a3149c178e111869c61cbfe | <ide><path>actionview/lib/action_view/helpers/javascript_helper.rb
<ide> def escape_javascript(javascript)
<ide> if javascript.empty?
<ide> result = ""
<ide> else
<del> result = javascript.gsub(/(\\|<\/|\r\n|\342\200\250|\342\200\251|[\n\r"'])/u) { |match| JS_ESCAPE_MAP[match] }
<add>... | 1 |
Ruby | Ruby | reduce method calls on arel | f1758525f940eb6c4dd4178784db2ba66316083d | <ide><path>activerecord/lib/active_record/relation/calculations.rb
<ide> def perform_calculation(operation, column_name, options = {})
<ide> if operation == "count"
<ide> column_name ||= (select_for_count || :all)
<ide>
<del> if arel.joins(arel) =~ /LEFT OUTER/i
<add> if arel.join_sql =~ /L... | 3 |
Mixed | Javascript | fix socket re-use races | 8700d89306cc4c1fd1a540d4b8f27a59f7b4957e | <ide><path>doc/api/http.md
<ide> added: v0.11.4
<ide> An object which contains arrays of sockets currently awaiting use by
<ide> the agent when `keepAlive` is enabled. Do not modify.
<ide>
<add>Sockets in the `freeSockets` list will be automatically destroyed and
<add>removed from the array on `'timeout'`.
<add>
<ide>... | 8 |
Python | Python | add methods for creating and deleting a container | 9a92bbf2dd67bb764dde2b1d9b564572ccedac16 | <ide><path>libcloud/storage/drivers/s3.py
<ide> # limitations under the License.
<ide>
<ide> import time
<del>import urllib
<add>import httplib
<ide> import copy
<ide> import base64
<ide> import hmac
<ide>
<ide> from hashlib import sha1
<add>from xml.etree.ElementTree import Element, SubElement, tostring
<ide>
<ide>... | 1 |
Java | Java | improve restclientexception javadoc | 03ea92df9916baa5f8df37ec4154cb07fd2cea4d | <ide><path>spring-web/src/main/java/org/springframework/web/client/RestClientException.java
<ide> /*
<del> * Copyright 2002-2012 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");
<ide> * you may ... | 1 |
Text | Text | correct minor grammar mistake | 10d3126383ad560eb148ae3df3705ad11110d7ea | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/es6/mutate-an-array-declared-with-const.md
<ide> As you can see, you can mutate the object <code>[5, 6, 7]</code> itself and the
<ide>
<ide> ## Instructions
<ide> <section id='instructions'>
<del>An array is declared as <code>const s... | 1 |
Python | Python | fix broken regression test | bd2f3c0ddad61d78eda6257dbf1cbeb608aa1c82 | <ide><path>numpy/core/tests/test_regression.py
<ide> def __array_finalize__(self, obj):
<ide> def test_recarray_tolist(self, level=rlevel):
<ide> """Ticket #793, changeset r5215
<ide> """
<del> a = np.recarray(2, formats="i4,f8,f8", names="id,x,y")
<add> # Comparisons fail for NaN, so ... | 1 |
Python | Python | add strip_accents to basic berttokenizer. | d5bc32ce92ace9aaec7752e0b89d51ba18903a1b | <ide><path>src/transformers/tokenization_bert.py
<ide> class BertTokenizer(PreTrainedTokenizer):
<ide> Whether to tokenize Chinese characters.
<ide> This should likely be deactivated for Japanese:
<ide> see: https://github.com/huggingface/transformers/issues/328
<add> strip_ac... | 2 |
Text | Text | add v3.4.0 to changelog | b2cc5662e9c020aa46f84f5801b0f1f7ce5cd0d8 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>### v3.4.0-beta.3 (August 21, 2018)
<del>
<del>- [#16870](https://github.com/emberjs/ember.js/pull/16870) [BUGFIX] Enable @ember/object#get to be called with an empty string
<add>### v3.4.0 (August 27, 2018)
<ide> - [#16603](https://github.com/emberjs/ember.js... | 1 |
Javascript | Javascript | fix the type definition of typedarray | a0f0ab78f3755a83dd39ff2a50e34e4b7c433b6c | <ide><path>src/display/api.js
<ide> function setPDFNetworkStreamFactory(pdfNetworkStreamFactory) {
<ide> }
<ide>
<ide> /**
<del> * @typedef {
<del> * Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array |
<del> * Int32Array | Uint32Array | Float32Array | Float64Array
<add> * @typedef { Int8Array |... | 1 |
Text | Text | fix typo in eslint doc | 5c7475a6e89990cee45abfec8f396524bc122fa1 | <ide><path>docs/basic-features/eslint.md
<ide> Here's an example of an `.eslintrc.json` file:
<ide> ```
<ide>
<ide> - Extending the original base of rules (`plugin:@next/next/recommended`) is highly recommended to
<del> catch and fix significant Next.js issues in your application
<add> catch and fix significant Next... | 1 |
Ruby | Ruby | save a hash allocation in mysql statement pool | f2a906337355e3ddd5f42182711075e9404f7096 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
<ide> class AbstractMysqlAdapter < AbstractAdapter
<ide>
<ide> class StatementPool < ConnectionAdapters::StatementPool # :nodoc:
<ide> private def dealloc(stmt)
<del> stmt[:stmt].close
<add> stmt.clo... | 2 |
PHP | PHP | add suggestions for missing command name | b3783a542776ae8762b6a8316afbe5035a5c1491 | <ide><path>src/Console/CommandCollection.php
<ide> public function autoDiscover(): array
<ide>
<ide> return array_merge($core, $app);
<ide> }
<add>
<add> /**
<add> * Find suggested command names based on $needle
<add> *
<add> * Used to generate suggested commands when a
<add> * command c... | 5 |
Javascript | Javascript | clarify documentation of `$setviewvalue` | 8f283fe4738b607e3b82924007eeb30fad522137 | <ide><path>src/ng/directive/input.js
<ide> var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
<ide> * @methodOf ng.directive:ngModel.NgModelController
<ide> *
<ide> * @description
<del> * Read a value from view.
<add> * Update the view value.
<ide> *
<del> * This method s... | 1 |
Java | Java | anticipate reactor.test.testsubscriber removal | 5531e807248e3155e7509bea9c1adcc58592157e | <ide><path>spring-core/src/test/java/org/springframework/core/codec/ByteBufferDecoderTests.java
<ide> import org.junit.Test;
<ide> import org.reactivestreams.Publisher;
<ide> import reactor.core.publisher.Flux;
<del>import reactor.test.TestSubscriber;
<ide>
<ide> import org.springframework.core.ResolvableType;
<ide> i... | 39 |
PHP | PHP | continue work on stackphp compatibility | 02618b4190c08e1fe6e138eadb95473c92da6718 | <ide><path>src/Illuminate/Console/Application.php
<ide> class Application extends \Symfony\Component\Console\Application {
<ide> */
<ide> public static function start($app)
<ide> {
<add> // Here, we will go ahead and "boot" the application for usage. This simply
<add> // calls the boot method on all of the servic... | 6 |
Javascript | Javascript | release reference to root components after destroy | bd60d853d76252e379dc4876b24475cb3c5d3a10 | <ide><path>packages/ember-glimmer/lib/renderer.js
<ide> class Renderer {
<ide> let root = roots[i];
<ide> if (root.isFor(view)) {
<ide> root.destroy();
<add> roots.splice(i, 1);
<ide> }
<ide> }
<ide> }
<ide><path>packages/ember-glimmer/tests/integration/components/append-test.js
<... | 2 |
PHP | PHP | fix version in path file | 4d3c68129b89c6bc8131aca765a63dba8fee92b0 | <ide><path>paths.php
<ide> * Laravel - A PHP Framework For Web Artisans
<ide> *
<ide> * @package Laravel
<del> * @version 3.2.8
<add> * @version 3.2.10
<ide> * @author Taylor Otwell <taylorotwell@gmail.com>
<ide> * @link http://laravel.com
<ide> */ | 1 |
Python | Python | delay_task returns pendingresult() | 2c3bd9f9e9ca2600b31d6e51f3d92ef02164ee6b | <ide><path>celery/backends/__init__.py
<ide> def get_backend_cls(backend):
<ide> return getattr(backend_module, 'Backend')
<ide>
<ide> get_default_backend_cls = partial(get_backend_cls, CELERY_BACKEND)
<del>
<del>
<ide> DefaultBackend = get_default_backend_cls()
<del>
<del>
<ide> default_backend = DefaultBackend()... | 2 |
Text | Text | fix url for chainreactconf | 4e8326a82e782bcf9ce7ef51f41d968296e588cc | <ide><path>ECOSYSTEM.md
<ide> React Native's current set of partners include Callstack, Expo, Facebook, Infini
<ide> * **[Callstack](https://callstack.com/):** Manages releases, maintains the [React Native CLI](https://github.com/react-native-community/react-native-cli) and organizes [React Native EU](https://react-nat... | 1 |
PHP | PHP | update viewcomponents to a subdirectory | e8f9bbebe96963cdb87d4be07c73ae15765614f9 | <ide><path>src/Illuminate/Foundation/Console/ComponentMakeCommand.php
<ide> protected function getStub()
<ide> */
<ide> protected function getDefaultNamespace($rootNamespace)
<ide> {
<del> return $rootNamespace.'\ViewComponents';
<add> return $rootNamespace.'\View\Components';
<ide> }
<id... | 5 |
PHP | PHP | fix bug in remote manager | 4d8cde80f54cca373c995c0ec1e6bee3aa41cc08 | <ide><path>src/Illuminate/Remote/RemoteManager.php
<ide> protected function setOutput(Connection $connection)
<ide> */
<ide> protected function getAuth(array $config)
<ide> {
<del> if (isset($config['key']))
<add> if (isset($config['key']) and trim($config['key']) != '')
<ide> {
<ide> return array('key' => $... | 1 |
PHP | PHP | add more documentation to application/filters.php | 1840989484ea6fa13eafc1966a526e6fcc40989f | <ide><path>application/filters.php
<ide> | Filters
<ide> |--------------------------------------------------------------------------
<ide> |
<del> | Filters provide a convenient method for filtering access to your route
<del> | functions. To make your life easier, we have already setup basic filters
<del> | for auth... | 1 |
Javascript | Javascript | convert inspector to call ref.measure | fa78a967391454a64882674bcfffb7c2830f9d51 | <ide><path>Libraries/Inspector/Inspector.js
<ide> const React = require('react');
<ide> const ReactNative = require('../Renderer/shims/ReactNative');
<ide> const StyleSheet = require('../StyleSheet/StyleSheet');
<ide> const Touchable = require('../Components/Touchable/Touchable');
<del>const UIManager = require('../Rea... | 1 |
Ruby | Ruby | fix env for python3" | 5997812ed23164cf3f52fe328ec665fe8cf70622 | <ide><path>Library/Homebrew/requirements/python_requirement.rb
<ide> class PythonRequirement < Requirement
<ide> ENV.prepend_path "PATH", Formula["python"].opt_bin
<ide> end
<ide>
<del> ENV["PYTHONPATH"] = "#{HOMEBREW_PREFIX}/lib/python#{short_version}/site-packages"
<add> if python_binary == "python"
... | 1 |
Ruby | Ruby | fix some typos | a8df5bdc5d3cd5ad21758d8e421130bc9518b1dd | <ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb
<ide> def hash_filter(params, filter)
<ide> # Declaration { comment_ids: [] }.
<ide> array_of_permitted_scalars_filter(params, key)
<ide> else
<del> # Declaration { user: :name } or { user: [:name, :age, ... | 5 |
Javascript | Javascript | fix linter errors | a9da395f602ebaecbfa35f0fffa4d1765e7de11c | <ide><path>src/grammar-registry.js
<ide> class GrammarRegistry {
<ide> fileTypes = fileTypes.concat(customFileTypes)
<ide> }
<ide>
<del> if (!Array.isArray(fileTypes)) debugger
<del>
<ide> for (let i = 0; i < fileTypes.length; i++) {
<ide> const fileType = fileTypes[i]
<ide> const fileType... | 2 |
Java | Java | add mechanism to expose mock server results | f500ab0f9b0185cb5ccf784622de753a052b8421 | <ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/ExchangeResult.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");
<ide> ... | 5 |
Python | Python | fix num_special_tokens in gpt 2 test | 44e9ddd7fe7a683994de81d1791b453cf7b0a54c | <ide><path>pytorch_pretrained_bert/modeling_gpt2.py
<ide> def from_pretrained(cls, pretrained_model_name_or_path, *inputs, **kwargs):
<ide> kwargs.pop('cache_dir', None)
<ide> from_tf = kwargs.get('from_tf', False)
<ide> kwargs.pop('from_tf', None)
<add> num_special_tokens = kwargs.get('n... | 1 |
Text | Text | fix broken references in changelogs | b5f76dbd3ebdfa1ddecb57e8eb6479c4346c48e4 | <ide><path>CHANGELOG.md
<ide> release.
<ide>
<ide> ## 2015-09-15, io.js Version 3.3.1 @rvagg
<ide>
<del><a href="doc/changelogs/CHANGELOG_ARCHIVE.md#3.3.1">Moved to doc/changelogs/CHANGELOG_IOJS.md#3.3.1</a>.
<add><a href="doc/changelogs/CHANGELOG_IOJS.md#3.3.1">Moved to doc/changelogs/CHANGELOG_IOJS.md#3.3.1</a>.
<i... | 3 |
Text | Text | fix misunderstanding in tutorial | 109c9a91e27f4c71667e893a2c60ee6c466788c3 | <ide><path>docs/docs/tutorial.md
<ide> var CommentBox = React.createClass({
<ide> });
<ide> ```
<ide>
<del>Here, `componentDidMount` is a method called automatically by React when a component is rendered. The key to dynamic updates is the call to `this.setState()`. We replace the old array of comments with the new one... | 1 |
Javascript | Javascript | add failing vm tests to known_issues | 363091dea5fc23b1661160a378116512235a240f | <ide><path>test/known_issues/test-vm-ownkeys.js
<add>'use strict';
<add>
<add>require('../common');
<add>const vm = require('vm');
<add>const assert = require('assert');
<add>
<add>const sym1 = Symbol('1');
<add>const sym2 = Symbol('2');
<add>const sandbox = {
<add> a: true,
<add> [sym1]: true
<add>};
<add>Object.def... | 3 |
Ruby | Ruby | move storm to the boneyard | 99ebf05b9cf28ed7dbeb7114189b9cfbc4e5cf22 | <ide><path>Library/Homebrew/tap_migrations.rb
<ide> "slicot" => "homebrew/science",
<ide> "shark" => "homebrew/boneyard",
<ide> "solfege" => "homebrew/boneyard",
<add> "storm" => "homebrew/boneyard",
<ide> "syslog-ng" => "homebrew/boneyard",
<ide> "urweb" => "homebrew/boneyard",
<ide> "wkhtmltopdf" => "hom... | 1 |
PHP | PHP | add nested joins to query builder | 83c2ec751d46b427ca9e53644fced4cc439564a5 | <ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php
<ide> protected function compileFrom(Builder $query, $table)
<ide> */
<ide> protected function compileJoins(Builder $query, $joins)
<ide> {
<del> return collect($joins)->map(function ($join) {
<add> return collect($joins)->map(func... | 2 |
Javascript | Javascript | set language back to en after every language test | e5f429df97be36477bc9e96546dcf8588d3052d8 | <ide><path>test/lang/bg.js
<ide> var moment = require("../../moment");
<ide> *************************************************/
<ide>
<ide> exports["lang:bg"] = {
<add> setUp: function(cb) {
<add> moment.lang('bg');
<add> cb();
<add> },
<add>
<add> tearDown: function(cb) {
<add> mome... | 40 |
Ruby | Ruby | expose the root node and call it | c6c4869612cfc365e69588965d266ed93f8aa05d | <ide><path>activerecord/lib/active_record/associations/join_dependency.rb
<ide> class JoinDependency # :nodoc:
<ide> autoload :JoinBase, 'active_record/associations/join_dependency/join_base'
<ide> autoload :JoinAssociation, 'active_record/associations/join_dependency/join_association'
<ide>
<del> ... | 1 |
Javascript | Javascript | fix typos in whatwg-webstreams explanations | 8068f40313a550423145081e0a9c94e52bd21a08 | <ide><path>test/parallel/test-whatwg-webstreams-transfer.js
<ide> const theData = 'hello';
<ide> // Like the ReadableStream test above, this sets up a pipeline
<ide> // through which the data flows...
<ide> //
<del> // We start with WritableStream W1, which is transfered to port1.
<add> // We start with Writabl... | 1 |
Python | Python | clarify documentation of depthwiseconv2d | 751469e85442895dc020bfa4841a871d96b3cfc1 | <ide><path>keras/layers/convolutional.py
<ide> def call(self, inputs):
<ide> class DepthwiseConv2D(Conv2D):
<ide> """Depthwise 2D convolution.
<ide>
<del> Depthwise convolution is a type of convolution in which a single convolutional
<del> filter is apply to each input channel (i.e. in a depthwise way).
<del> You... | 1 |
Text | Text | revive truncated text in readme | 6ac6b992b05f18d757b74f6f79484f3f9d75a967 | <ide><path>readme.md
<ide> app.prepare().then(() => {
<ide> ```
<ide>
<ide> The `next` API is as follows:
<del>- `next(path: string, opts: object)` - `path` is
<add>- `next(path: string, opts: object)` - `path` is where the Next project is located
<ide> - `next(opts: object)`
<ide>
<ide> Supported options: | 1 |
Javascript | Javascript | fix our karma.dump bridge | d1cdd4d026968993db9d0130390bb5138b942224 | <ide><path>src/ng/rootScope.js
<ide> function $RootScopeProvider(){
<ide> *
<ide> * @description
<ide> * Broadcasted when a scope and its children are being destroyed.
<del> *
<add> *
<ide> * Note that, in AngularJS, there is also a `$destroy` jQuery event, which can be used to
... | 3 |
Javascript | Javascript | add missing return | 803a87fd0e0db8053e44acf3f3af32e1a2f9cd44 | <ide><path>hot/only-dev-server.js
<ide> if(module.hot) {
<ide> return;
<ide> }
<ide>
<del> module.hot.apply({
<add> return module.hot.apply({
<ide> ignoreUnaccepted: true,
<ide> ignoreDeclined: true,
<ide> ignoreErrored: true, | 1 |
Text | Text | add changelog.md entry for add caching | a26801c73f535b2e57366b9d6de0453e7c732884 | <ide><path>CHANGELOG.md
<ide> # Changelog
<ide>
<add>#### Builder
<add>
<add>- ADD now uses image cache, based on sha256 of added content.
<add>
<ide> ## 0.7.2 (2013-12-16)
<ide>
<ide> #### Runtime | 1 |
PHP | PHP | add a command to run all options | afa6baab2db97d619b0365149cf9d1cf0fb39c63 | <ide><path>lib/Cake/Console/Command/UpgradeShell.php
<ide> function startup() {
<ide> $this->out('<warning>Dry-run mode enabled!</warning>', 1, Shell::QUIET);
<ide> }
<ide> }
<add>
<add> function all() {
<add> foreach($this->OptionParser->subcommands() as $command) {
<add> $name = $command->name();
<add> if ... | 1 |
Go | Go | add devzero helper | 2f8d3e1c33f77187c68893803018756d43daff15 | <ide><path>internal/testutil/helpers.go
<ide> package testutil
<ide>
<ide> import (
<add> "io"
<add>
<ide> "github.com/stretchr/testify/assert"
<ide> "github.com/stretchr/testify/require"
<ide> )
<ide> func ErrorContains(t require.TestingT, err error, expectedError string, msgAndAr
<ide> require.Error(t, err, msgAn... | 1 |
Ruby | Ruby | consolidate shared install and upgrade logic | 13e1457249ce68a158eae72300a3de4f7361c148 | <ide><path>Library/Homebrew/install.rb
<ide> require "fileutils"
<ide> require "hardware"
<ide> require "development_tools"
<add>require "upgrade"
<ide>
<ide> module Homebrew
<ide> # Helper module for performing (pre-)install checks.
<ide> def install_formula(
<ide> f.print_tap_action
<ide> build_options... | 2 |
Ruby | Ruby | cache unserialized attributes | 4b7b8d9e19b662d8a1135fec73b422202f97472a | <ide><path>activerecord/lib/active_record/attribute_methods/read.rb
<ide> def cache_attributes(*attribute_names)
<ide> # Returns the attributes which are cached. By default time related columns
<ide> # with datatype <tt>:datetime, :timestamp, :time, :date</tt> are cached.
<ide> def cached_attrib... | 3 |
Python | Python | fix bug in irfftn | 88a02920daf0b408086106439c53bd488e73af29 | <ide><path>numpy/fft/fftpack.py
<ide> def _cook_nd_args(a, s=None, axes=None, invreal=0):
<ide> if len(s) != len(axes):
<ide> raise ValueError("Shape and axes have different lengths.")
<ide> if invreal and shapeless:
<del> s[axes[-1]] = (s[axes[-1]] - 1) * 2
<add> s[-1] = (a.shape[axes[-1]... | 2 |
Python | Python | remove unused function | eb2a3c5971710af0e52ddb8e3c5df1154ade8618 | <ide><path>spacy/_ml.py
<ide> def finish_update(d_X, sgd=None):
<ide> return (X, lengths), finish_update
<ide>
<ide>
<del>@layerize
<del>def _logistic(X, drop=0.):
<del> xp = get_array_module(X)
<del> if not isinstance(X, xp.ndarray):
<del> X = xp.asarray(X)
<del> # Clip to range (-10, 10)
<del> ... | 1 |
Javascript | Javascript | add blockquote tag (already in jsx) | f7901a2380a11c035a76110b4052e8f2e180c4b6 | <ide><path>src/core/ReactDOM.js
<ide> var ReactDOM = objMapKeyVal({
<ide> address: false,
<ide> audio: false,
<ide> b: false,
<add> blockquote: false,
<ide> body: false,
<ide> br: true,
<ide> button: false, | 1 |
Python | Python | use new api for save and load | a1fe4ba9c9e449cfe8ee96e3190c38b7dce91a76 | <ide><path>examples/lm_finetuning/finetune_on_pregenerated.py
<ide> def main():
<ide> # Save a trained model
<ide> if n_gpu > 1 and torch.distributed.get_rank() == 0 or n_gpu <=1 :
<ide> logging.info("** ** * Saving fine-tuned model ** ** * ")
<del> model_to_save = model.module if hasattr(model... | 2 |
Text | Text | remove unused import from doc | 447cea8e726b2102b19be0ec4039a6243e465c31 | <ide><path>docs/api/compose.md
<ide> You might want to use it to apply several [store enhancers](../Glossary.md#store
<ide> This example demonstrates how to use `compose` to enhance a [store](Store.md) with [`applyMiddleware`](applyMiddleware.md) and a few developer tools from the [redux-devtools](https://github.com/ga... | 1 |
Javascript | Javascript | fix key name required with accessing cameraroll | 9a2d6da8bb2169faa8d45279810ab3d26ac78fe7 | <ide><path>Libraries/CameraRoll/CameraRoll.js
<ide> var getPhotosReturnChecker = createStrictShapeTypeChecker({
<ide> *
<ide> * ### Permissions
<ide> * The user's permission is required in order to access the Camera Roll on devices running iOS 10 or later.
<del> * Fill out the `NSCameraUsageDescription` key in your ... | 1 |
PHP | PHP | return null if cache value is not found | 7a871be756f4e3aee28109fbafe6edfe31bcf052 | <ide><path>src/Illuminate/Cache/RedisStore.php
<ide> public function many(array $keys)
<ide> }, $keys));
<ide>
<ide> foreach ($values as $index => $value) {
<del> $results[$keys[$index]] = $this->unserialize($value);
<add> $results[$keys[$index]] = ! is_null($value) ? $this->unser... | 2 |
Javascript | Javascript | add test case for defineplugin | 8b1f5f757f4f1628bc3f88ff194c41483efbed00 | <ide><path>test/configCases/plugins/define-plugin/index.js
<ide> it("should define process.env.DEFINED_NESTED_KEY", function() {
<ide> });
<ide> it("should define process.env.DEFINED_NESTED_KEY_STRING", function() {
<ide> if(process.env.DEFINED_NESTED_KEY_STRING !== "string") require("fail");
<del>})
<add>});
<add>it(... | 1 |
Text | Text | fix syntax errors in transformer/ | 7406641a35a70896b11f91fba841ad17a4b52f04 | <ide><path>official/nlp/transformer/README.md
<ide> This is an implementation of the Transformer translation model as described in
<ide> the [Attention is All You Need](https://arxiv.org/abs/1706.03762) paper. The
<ide> implementation leverages tf.keras and makes sure it is compatible with TF 2.x.
<ide>
<del>**Warning... | 1 |
Javascript | Javascript | compute parametricgeometry normals from derivative | 63e96283bc23e6ea7f9544d4f31881b5518c724a | <ide><path>src/geometries/ParametricGeometry.js
<ide> ParametricGeometry.prototype.constructor = ParametricGeometry;
<ide>
<ide> import { BufferGeometry } from '../core/BufferGeometry';
<ide> import { Float32BufferAttribute } from '../core/BufferAttribute';
<add>import { Vector3 } from '../math/Vector3';
<ide>
<ide> ... | 1 |
Javascript | Javascript | update string#objectat documentation | a1f9a1f085ec2e6c7d16aedd992f76882791c5ce | <ide><path>packages/ember-runtime/lib/mixins/array.js
<ide> // License: Licensed under MIT license (see license.js)
<ide> // ==========================================================================
<ide>
<del>
<ide> require('ember-runtime/mixins/enumerable');
<ide>
<del>
<del>
<ide> // .............................. | 1 |
Mixed | Ruby | improve custom configuration | de4891344ccc074f6d5693f4fac6ad610584e336 | <ide><path>guides/source/4_2_release_notes.md
<ide> Please refer to the [Changelog][railties] for detailed changes.
<ide> * Introduced an `after_bundle` callback for use in Rails templates.
<ide> ([Pull Request](https://github.com/rails/rails/pull/16359))
<ide>
<del>* Introduced the `x` namespace for defining ... | 8 |
Ruby | Ruby | test source.path on tab.create and .for_formula | 4f1d47bc156253ab0eabf6b7aba1fcfa46d80633 | <ide><path>Library/Homebrew/test/test_tab.rb
<ide> def test_from_file
<ide> assert_equal source_path, tab.source["path"]
<ide> end
<ide>
<add> def test_create
<add> f = formula { url "foo-1.0" }
<add> compiler = DevelopmentTools.default_compiler
<add> stdlib = :libcxx
<add> tab = Tab.create(f, compi... | 2 |
Python | Python | make core ut no longer dependent on mysql | 849b408c5fb3641809f031c6e58626c8ea596be6 | <ide><path>airflow/utils.py
<ide> def merge_conn(conn, session=None):
<ide>
<ide> def initdb():
<ide> session = settings.Session()
<add>
<ide> from airflow import models
<ide> upgradedb()
<ide>
<ide><path>tests/core.py
<ide> import os
<ide> from time import sleep
<ide> import unittest
<add>
<ide> from air... | 2 |
Ruby | Ruby | fix version scheme not being set in the tab | 627381e949233ec90e4ea4ffc9d0e811f68619b9 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def pour
<ide> tab.aliases = formula.aliases
<ide> tab.arch = Hardware::CPU.arch
<ide> tab.source["versions"]["stable"] = formula.stable.version.to_s
<add> tab.source["versions"]["version_scheme"] = formula.version_scheme
<ide> tab.source["path"]... | 1 |
PHP | PHP | fix mistakes in docblock | 2a0d07c0f56495701247074df8c149b34a8118dd | <ide><path>src/Controller/Component/SecurityComponent.php
<ide> * - Requiring that SSL be used.
<ide> * - Limiting cross controller communication.
<ide> *
<del> * @link http://book.cakephp.org/3.0/en/controllers/components/security-component.html
<add> * @link http://book.cakephp.org/3.0/en/controllers/components/se... | 1 |
Go | Go | increase max image depth to 127 | 6d34c50e898507e461300ecf91ed661011bc15ab | <ide><path>graphdriver/aufs/aufs.go
<ide> import (
<ide> "github.com/dotcloud/docker/archive"
<ide> "github.com/dotcloud/docker/graphdriver"
<ide> "github.com/dotcloud/docker/utils"
<del> "log"
<ide> "os"
<ide> "os/exec"
<ide> "path"
<ide> "strings"
<add> "syscall"
<ide> )
<ide>
<ide> func init() {
<ide> func (... | 4 |
PHP | PHP | apply fixes from styleci | ff907d5f7bfc8d76811eb587158f837604750572 | <ide><path>tests/Mail/MailMailableAssertionsTest.php
<ide> namespace Illuminate\Tests\Mail;
<ide>
<ide> use Illuminate\Mail\Mailable;
<del>use PHPUnit\Framework\TestCase;
<ide> use PHPUnit\Framework\AssertionFailedError;
<add>use PHPUnit\Framework\TestCase;
<ide>
<ide> class MailMailableAssertionsTest extends TestCas... | 1 |
Javascript | Javascript | reuse hooks when replaying a suspended component | 33e3d2878e9ec82c65468316ffcc473e5288bb87 | <ide><path>packages/react-reconciler/src/ReactFiberBeginWork.new.js
<ide> import type {
<ide> import type {UpdateQueue} from './ReactFiberClassUpdateQueue.new';
<ide> import type {RootState} from './ReactFiberRoot.new';
<ide> import type {TracingMarkerInstance} from './ReactFiberTracingMarkerComponent.new';
<add>import... | 7 |
Javascript | Javascript | add missing tests for ngmin/ngmax for date inputs | 976da56d506bb70c6168f3de759aaa00a880c8c9 | <ide><path>test/ng/directive/inputSpec.js
<ide> describe('input', function() {
<ide>
<ide> expect(inputElm).toBeValid();
<ide> });
<add>
<add> it('should validate even if ng-max value changes on-the-fly', function() {
<add> scope.max = '2013-01-01T01:02:00';
<add> compileInput('<input type="date... | 1 |
Javascript | Javascript | add concatenatedproperties documentation | 807e23fb2febf5a8857303a0dec1f5f644707264 | <ide><path>packages/ember-runtime/lib/system/core_object.js
<ide> CoreObject.PrototypeMixin = Mixin.create({
<ide>
<ide> init: function() {},
<ide>
<add> /**
<add> Defines the properties that will be concatenated from the superclass
<add> (instead of overridden).
<add>
<add> By default, when you extend an... | 1 |
PHP | PHP | remove obsolete class import in cookie.php | 5097e9053b57752639986d3ec018b92c7904de48 | <ide><path>laravel/cookie.php
<del><?php namespace Laravel; use Closure;
<add><?php namespace Laravel;
<ide>
<ide> class Cookie {
<ide> | 1 |
Javascript | Javascript | use correct class name in deprecation message | d11f7d54f35af093efbee208b7920c158cfc2c72 | <ide><path>lib/_tls_legacy.js
<ide> module.exports = {
<ide> createSecurePair:
<ide> internalUtil.deprecate(createSecurePair,
<ide> 'tls.createSecurePair() is deprecated. Please use ' +
<del> 'tls.Socket instead.', 'DEP0064'),
<add> 't... | 2 |
Ruby | Ruby | fix typo in rdoc [ci skip] | d1629346b9506a013315525afac113d9b2bfb47c | <ide><path>actionmailer/lib/action_mailer/base.rb
<ide> module ActionMailer
<ide> # Once a mailer action and template are defined, you can deliver your message or create it and save it
<ide> # for delivery later:
<ide> #
<del> # Notifier.welcome(david).deliver_now # sends the email
<del> # mail = Notifier.w... | 2 |
Javascript | Javascript | fix memswap plugin displaying mem values in web ui | f3c855c77562d7cbf9177009e9b3bfb067320e2c | <ide><path>glances/outputs/static/js/services/plugins/glances_memswap.js
<ide> glancesApp.service('GlancesPluginMemSwap', function() {
<del> var _pluginName = "mem";
<add> var _pluginName = "memswap";
<ide> var _view = {};
<ide>
<ide> this.percent = null; | 1 |
Go | Go | implement docker build with standalone client lib | 535c4c9a59b1e58c897677d6948a595cb3d28639 | <ide><path>api/client/build.go
<ide> package client
<ide> import (
<ide> "archive/tar"
<ide> "bufio"
<del> "encoding/base64"
<del> "encoding/json"
<ide> "fmt"
<ide> "io"
<ide> "io/ioutil"
<del> "net/http"
<del> "net/url"
<ide> "os"
<ide> "os/exec"
<ide> "path/filepath"
<ide> "regexp"
<ide> "runtime"
<del> "st... | 2 |
Python | Python | add failing test for issue | 9857cd9889583981b834628e054cb91f90c5ca65 | <ide><path>tests/test_bound_fields.py
<ide> class ExampleSerializer(serializers.Serializer):
<ide> assert serializer['bool_field'].as_form_field().value == ''
<ide> assert serializer['null_field'].as_form_field().value == ''
<ide>
<add> def test_rendering_boolean_field(self):
<add> from rest_... | 1 |
Text | Text | add note about tweet button restrictions | 1ef49d2c577e9145561896807123b733a901008c | <ide><path>curriculum/challenges/english/03-front-end-libraries/front-end-libraries-projects/build-a-random-quote-machine.md
<ide> You can use any mix of HTML, JavaScript, CSS, Bootstrap, SASS, React, Redux, and
<ide> <strong>User Story #11:</strong> The <code>#quote-box</code> wrapper element should be horizontally ce... | 1 |
Text | Text | reorganize collaborator guide | 0a1fba02a65b0b6bb53ca2d6966eaca67265e7d6 | <ide><path>COLLABORATOR_GUIDE.md
<ide> **Contents**
<ide>
<ide> * [Issues and Pull Requests](#issues-and-pull-requests)
<add> - [Managing Issues and Pull Requests](#managing-issues-and-pull-requests)
<add> - [Welcoming First-Time Contributiors](#welcoming-first-time-contributiors)
<add> - [Closing Issues and Pull R... | 1 |
Go | Go | add networkmanager and clusterstatus interfaces | 8f4f85dd5b5b6b7268428b8f95f56c1ba8608ac3 | <ide><path>daemon/cluster.go
<ide> import (
<ide>
<ide> // Cluster is the interface for github.com/docker/docker/daemon/cluster.(*Cluster).
<ide> type Cluster interface {
<add> ClusterStatus
<add> NetworkManager
<add>}
<add>
<add>// ClusterStatus interface provides information about the Swarm status of the Cluster
<ad... | 1 |
Ruby | Ruby | fix example action dispatch in mime type | c007d871e6d46d58c53aa18cdb6e0ca484eecdf7 | <ide><path>actionpack/lib/action_dispatch/http/mime_type.rb
<ide> def self.[](type)
<ide> # respond_to do |format|
<ide> # format.html
<ide> # format.ics { render :text => post.to_ics, :mime_type => Mime::Type["text/calendar"] }
<del> # format.xml { render :xml => @people.to_xml }
... | 1 |
Javascript | Javascript | fix postcss.config.js warnings | 600b78c098bb9c1d4b6135df146e5948c1baf07f | <ide><path>examples/blog-starter/postcss.config.js
<ide> module.exports = {
<ide> plugins: [
<ide> 'tailwindcss',
<del> process.env.NODE_ENV === 'production'
<add> ...(process.env.NODE_ENV === 'production'
<ide> ? [
<del> '@fullhuman/postcss-purgecss',
<del> {
<del> conten... | 1 |
Java | Java | fix event handlers for dpad arrows on android tv | 4d71b1525d357a61a1740d6de5c1b97b6527f986 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactAndroidHWInputDeviceHelper.java
<ide> public class ReactAndroidHWInputDeviceHelper {
<ide> * Contains a mapping between handled KeyEvents and the corresponding navigation event
<ide> * that should be fired when the KeyEvent is received.
<ide> */
<de... | 1 |
Javascript | Javascript | implement endinlineimage ir | a2bf701bfeef9ebc977eb62ca2663150885f5007 | <ide><path>pdf.js
<ide> var PartialEvaluator = (function() {
<ide>
<ide> constructor.prototype = {
<ide> getIRQueue: function(stream, xref, resources, queue, fonts, images, uniquePrefix) {
<add> function buildPaintImageXObject(image, inline) {
<add> var dict = image.dict;
<add> var w = dict.ge... | 2 |
Mixed | Javascript | expose pagemargin prop on viewpagerandroid | 6038040f8e8238fc7fae943aa623d6f32693d4f1 | <ide><path>Examples/UIExplorer/ViewPagerAndroidExample.android.js
<ide> /**
<add> * Copyright (c) 2013-present, Facebook, Inc.
<add> * All rights reserved.
<add> *
<add> * This source code is licensed under the BSD-style license found in the
<add> * LICENSE file in the root directory of this source tree. An additional ... | 3 |
Go | Go | remove redundant comments in test build.go | 32b81dae29fbb6f831cda5e9db1c120f78cd4a91 | <ide><path>integration-cli/cli/build/build.go
<ide> func WithoutCache(cmd *icmd.Cmd) func() {
<ide> return nil
<ide> }
<ide>
<del>// WithContextPath set the build context path
<add>// WithContextPath sets the build context path
<ide> func WithContextPath(path string) func(*icmd.Cmd) func() {
<del> // WithContextPath ... | 1 |
PHP | PHP | fix cs error | 6d696806335770b83e293cb2333431518b8c66b6 | <ide><path>src/Controller/Component/FlashComponent.php
<ide> namespace Cake\Controller\Component;
<ide>
<ide> use Cake\Controller\Component;
<del>use Cake\Controller\ComponentRegistry;
<ide> use Cake\Http\Exception\InternalErrorException;
<ide> use Cake\Utility\Inflector;
<ide> use Exception; | 1 |
Python | Python | fix legend placement in `percentile` docs | 8d2af2eb69fceb7663f39af3307fff45ee636a45 | <ide><path>numpy/lib/function_base.py
<ide> def percentile(a,
<ide> xlabel='Percentile',
<ide> ylabel='Estimated percentile value',
<ide> yticks=a)
<del> ax.legend()
<add> ax.legend(bbox_to_anchor=(1.03, 1))
<add> plt.tight_layout()
<ide> plt.show()
<ide>... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.