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
PHP
PHP
fix function names
525d786dffce89935c52240ddbcae7d7645c51b7
<ide><path>src/Mailer/Message.php <ide> public function serialize(): string <ide> $array = $this->jsonSerialize(); <ide> array_walk_recursive($array, function (&$item, $key) { <ide> if ($item instanceof SimpleXMLElement) { <del> $item = jsondecodeForHeader(jsonencode((array)$i...
1
Text
Text
update documentations for embedding and unit-norm
a46e50a3227b0840d159537907ed2ea82f598ff1
<ide><path>docs/sources/constraints.md <ide> model.add(Dense(64, 64, W_constraint = maxnorm(2))) <ide> ## Available constraints <ide> <ide> - __maxnorm__(m=2): maximum-norm constraint <del>- __nonneg__(): non-negativity constraint <ide>\ No newline at end of file <add>- __nonneg__(): non-negativity constraint <add>- _...
2
Java
Java
add marbles for observable (12/06)
0bab46d4a974fd0514fc2dc97414d259d1e0689e
<ide><path>src/main/java/io/reactivex/Observable.java <ide> public final <R> Observable<R> concatMap(Function<? super T, ? extends Observabl <ide> * one at a time and emits their values in order <ide> * while delaying any error from either this or any of the inner ObservableSources <ide> * till all of th...
1
PHP
PHP
update docblock typo
be8af6910def484ad8ee70d1b3025fc59223f2e3
<ide><path>src/Illuminate/Foundation/Http/FormRequest.php <ide> protected function passesAuthorization() <ide> * <ide> * @return mixed <ide> * <del> * @throws \\Illuminate\Http\Exception\HttpResponseExceptio <add> * @throws \\Illuminate\Http\Exception\HttpResponseException <ide> */ <ide> ...
1
Python
Python
add support for basic dataset inputs
f0e215987c51a4f0e98c96a726276465be2f3071
<ide><path>keras/utils/dataset_utils.py <ide> <ide> <ide> <add> <ide> import tensorflow.compat.v2 as tf <ide> # pylint: disable=g-classes-have-attributes <ide> <ide> import multiprocessing <ide> import os <ide> import time <ide> import warnings <del>import math <add>from random import Random <ide> <ide> import num...
2
Javascript
Javascript
remove unused code in doc generation tool
5315304e715e28ab160f9d71c6260f96ba7b637a
<ide><path>tools/doc/html.js <ide> function versionSort(a, b) { <ide> <ide> function buildToc({ filename, apilinks }) { <ide> return (tree, file) => { <del> const startIncludeRefRE = /^\s*<!-- \[start-include:(.+)\] -->\s*$/; <del> const endIncludeRefRE = /^\s*<!-- \[end-include:.+\] -->\s*$/; <del> const r...
1
Text
Text
add devsnek to collaborators
eacc88c3a6ef68a88a3a4b819b375c698c05fd9a
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> **Daniel Bevenius** &lt;daniel.bevenius@gmail.com&gt; <ide> * [DavidCai1993](https://github.com/DavidCai1993) - <ide> **David Cai** &lt;davidcai1993@yahoo.com&gt; (he/him) <add>* [devsnek](https://github.com/devsnek) ...
1
Ruby
Ruby
use `delegate` to call the methods to `@conn`
7ba2cd06a215f4f1f48e61957dda9ca4a880d0a4
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_creation.rb <ide> def visit_AddColumn(o) <ide> "ADD #{accept(o)}" <ide> end <ide> <add> delegate :quote_column_name, :quote_table_name, :quote_default_expression, :type_to_sql, to: :@conn <add> private :quote_...
1
Ruby
Ruby
pass `debug?` and `verbose?` to `cleaner`
add10377b893d8e970bc4122a32f0dfcd1091481
<ide><path>Library/Homebrew/cleaner.rb <ide> # * sets permissions on executables <ide> # * removes unresolved symlinks <ide> class Cleaner <add> extend Predicable <add> <add> attr_predicate :verbose?, :debug? <add> <ide> # Create a cleaner for the given formula <del> def initialize(f) <add> def initialize(f, verb...
2
PHP
PHP
fix typo in parser.php
459290c88e8e5ba07fcfe2bece01c063fd2ab178
<ide><path>src/Illuminate/Console/Parser.php <ide> protected static function parameters(array $tokens) <ide> if (!Str::startsWith($token, '--')) { <ide> $arguments[] = static::parseArgument($token); <ide> } else { <del> $options [] = static::parseOption(ltrim($toke...
1
Javascript
Javascript
remove weird handlers added by wabt
67e92aa05491e7278289c575818243aec9342a73
<ide><path>test/setupTestFramework.js <ide> if(process.env.DEBUG_INFO) { <ide> // It leaks an Error object on construction <ide> // so it leaks the whole stack trace <ide> require("wast-loader"); <add>process.removeAllListeners("uncaughtException"); <add>process.removeAllListeners("unhandledRejection"); <ide>
1
PHP
PHP
remove problematic test
e719d2df07e64433671fe3a639b1016f0998cc94
<ide><path>tests/TestCase/ORM/QueryRegressionTest.php <ide> public function testAssociationSubQueryNoOffset() { <ide> $query = $table->find('translations')->limit(10)->offset(1); <ide> $result = $query->toArray(); <ide> $this->assertCount(2, $result); <del> <del> $query = $table->find('translations')->having(['A...
1
Javascript
Javascript
remove unused args and comparison fix
55d202a346cb5cbf4f641051559addb93fd68a07
<ide><path>test/internet/test-dgram-multicast-multi-process.js <ide> if (common.inFreeBSDJail) { <ide> return; <ide> } <ide> <del>function launchChildProcess(index) { <add>function launchChildProcess() { <ide> const worker = fork(__filename, ['child']); <ide> workers[worker.pid] = worker; <ide> <ide> worker.m...
1
Python
Python
fix valueerror in chord with single task header
fe2c47d4e62c36d3b78b57ad41518fbf6748a708
<ide><path>celery/canvas.py <ide> def apply_async(self, args=(), kwargs={}, task_id=None, <ide> if len(self.tasks) == 1: <ide> # chord([A], B) can be optimized as A | B <ide> # - Issue #3323 <del> return (self.tasks[0].set(task_id=task_id) | body).apply_async( <add> ...
1
Ruby
Ruby
remove unused variables
1a799f04e6af870c03aa02f2c3a9db6e0bd55bca
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_file <ide> end <ide> <ide> def audit_deps <del> problems = [] <del> <ide> # Don't depend_on aliases; use full name <ide> aliases = Formula.aliases <ide> f.deps.select { |d| aliases.include? d.name }.each do |d| <ide> def audit_deps <ide> def...
7
PHP
PHP
add hascasterclass interface
327a1cefc07e8f307b5de1a0d6abf27d42cdbc15
<ide><path>src/Illuminate/Contracts/Database/Eloquent/HasCasterClass.php <add><?php <add> <add>namespace Illuminate\Contracts\Database\Eloquent; <add> <add>interface HasCasterClass <add>{ <add> /** <add> * Get the caster class for this class <add> * <add> * @return string <add> */ <add> public sta...
3
Java
Java
fix appendix typos in contentdisposition
6884a3ac56074672d6649148c99f0beb73a4d260
<ide><path>spring-web/src/main/java/org/springframework/http/ContentDisposition.java <ide> public Charset getCharset() { <ide> /** <ide> * Return the value of the {@literal size} parameter, or {@code null} if not defined. <ide> * @deprecated since 5.2.3 as per <del> * <a href="https://tools.ietf.org/html/rfc6266#...
1
Python
Python
add image height and width to onnx dynamic axes
6519150c315bdcd415bbd115cec11e839f3eb866
<ide><path>src/transformers/models/beit/configuration_beit.py <ide> class BeitOnnxConfig(OnnxConfig): <ide> def inputs(self) -> Mapping[str, Mapping[int, str]]: <ide> return OrderedDict( <ide> [ <del> ("pixel_values", {0: "batch", 1: "num_channels"}), <add> ("pixel_...
11
Python
Python
remove unused variable [ci skip]
091a9b522a0a66e438c334d93766a836f8457cd2
<ide><path>spacy/ml/tb_framework.py <ide> def init(model, X=None, Y=None): <ide> <ide> <ide> def resize_output(model, new_nO): <del> tok2vec = model.get_ref("tok2vec") <ide> lower = model.get_ref("lower") <ide> upper = model.get_ref("upper") <ide> if not model.attrs["has_upper"]:
1
PHP
PHP
fix return type of session store save method
9293fec485fdd2a176ce27f26b31fde6bb7eed54
<ide><path>src/Illuminate/Contracts/Session/Session.php <ide> public function start(); <ide> /** <ide> * Save the session data to storage. <ide> * <del> * @return bool <add> * @return void <ide> */ <ide> public function save(); <ide> <ide><path>src/Illuminate/Session/Store.php <ide> prot...
2
PHP
PHP
add dropmorphs to blueprint
692f792dc09885ec6191c4aa92ec3859711a3c32
<ide><path>src/Illuminate/Database/Schema/Blueprint.php <ide> public function dropRememberToken() <ide> $this->dropColumn('remember_token'); <ide> } <ide> <add> /** <add> * Indicate that the polymorphic columns should be dropped. <add> * <add> * @param string $name <add> * <add> * @r...
4
Ruby
Ruby
raise a helpful error message on #mount misuse
afa68eb1766d8893a1bb79bf989061f3d8f98049
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def mount(app, options = nil) <ide> if options <ide> path = options.delete(:at) <ide> else <add> unless Hash === app <add> raise ArgumentError, "must be called with mount point" <add> end...
2
Javascript
Javascript
add test for objecttomap util
3adf072eeadc77e30c0d09e95240e657c490c848
<ide><path>test/objectToMap.unittest.js <add>/* globals describe it */ <add> <add>require("should"); <add> <add>var objectToMap = require("../lib/util/objectToMap"); <add> <add>describe("objectToMap", function() { <add> it("should convert a plain object into a Map successfully", function() { <add> const map = objectTo...
1
Javascript
Javascript
remove react.autobind for real
a42fd30fc2795909324c497350d0877a969b0cc7
<ide><path>src/core/React.js <ide> var React = { <ide> initializeTouchEvents: function(shouldUseTouch) { <ide> ReactMount.useTouchEvents = shouldUseTouch; <ide> }, <del> autoBind: ReactCompositeComponent.autoBind, <ide> createClass: ReactCompositeComponent.createClass, <ide> constructAndRenderComponent: Re...
2
Text
Text
fix images in changes
bb13745eb08cdf08a68ebd67ea00ae2c14e4962d
<ide><path>CHANGES.md <ide> var color = d3.scaleOrdinal(d3.schemeCategory10); <ide> <ide> [Sequential scales](https://github.com/d3/d3-scale/blob/master/README.md#scaleSequential), are a new class of scales with a fixed output [interpolator](https://github.com/d3/d3-scale/blob/master/README.md#sequential_interpolator)...
1
Python
Python
simplify deploy_node and get rid of **kwargs
155c0f8bebbd9162ef847ffbbd831c979f3f659e
<ide><path>libcloud/compute/base.py <ide> def create_node(self, **kwargs): <ide> raise NotImplementedError( <ide> 'create_node not implemented for this driver') <ide> <del> def deploy_node(self, **kwargs): <add> def deploy_node(self, deploy, ssh_username='root', ssh_alternate_usernames=None, ...
1
PHP
PHP
apply fixes from styleci
51e910670daeeb2f9bbd80f4ccf8e48c3d0abbdb
<ide><path>src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php <ide> public function whereRelation($relation, $column, $operator = null, $value = nul <ide> <ide> return $this->when( <ide> $relations->count() == 1, <del> function($query) use ($relations, $column, $operator,...
1
Text
Text
fix typo in docs
fe5b72e7bb4f7c043409196cb98d46796f2dc390
<ide><path>docs/sources/reference/api/docker_remote_api_v1.1.md <ide> Status Codes: <ide> - **201** – no error <ide> - **400** – bad parameter <ide> - **404** – no such image <del>- **409** – conflic <add>- **409** – conflict <ide> - **500** – server error <ide> <ide> ### Remove an image <ide><path>docs/so...
15
Go
Go
prevent deadlock on attempt to use own net
f30d1c1835618eadea5d0a68d1301dffd9f09b22
<ide><path>daemon/container.go <ide> func (container *Container) getNetworkedContainer() (*Container, error) { <ide> if err != nil { <ide> return nil, err <ide> } <add> if container == nc { <add> return nil, fmt.Errorf("cannot join own network") <add> } <ide> if !nc.IsRunning() { <ide> return nil, fmt.E...
2
Python
Python
fix flake8 lint in tests
030e71b2624ad6f8d5458b3820efe3ef815318c6
<ide><path>t/unit/backends/test_base.py <ide> class ExpectedException(Exception): <ide> callback.keys.return_value = [] <ide> task = self.app.tasks[callback.task] = Mock() <ide> b.fail_from_current_stack = Mock() <del> group = self.patching('celery.group') <add> self.patching('cele...
3
Python
Python
change vector width
66252f3e7124d6114908cedf2c8e7f7b75fcf0f3
<ide><path>bin/parser/train_ud.py <ide> def main(lang_name, train_loc, dev_loc, model_dir, clusters_loc=None): <ide> for tag in tags: <ide> assert tag in vocab.morphology.tag_map, repr(tag) <ide> tagger = Tagger(vocab) <del> encoder = TokenVectorEncoder(vocab) <add> encoder...
1
Javascript
Javascript
use latest selenium on sl
6898ac59858a4748c08804e0cb0444e4834e6d00
<ide><path>karma-shared.conf.js <ide> module.exports = function(config, specificOptions) { <ide> testName: specificOptions.testName || 'AngularJS', <ide> startConnect: true, <ide> options: { <del> 'selenium-version': '2.37.0' <add> 'selenium-version': '2.41.0' <ide> } <ide> }, ...
1
Go
Go
check loop devices of existing pool
bebf53443981c70a6a714ea518dc966a0e2b6558
<ide><path>daemon/graphdriver/devmapper/deviceset.go <ide> func determineDriverCapabilities(version string) error { <ide> return nil <ide> } <ide> <add>// Determine the major and minor number of loopback device <add>func getDeviceMajorMinor(file *os.File) (uint64, uint64, error) { <add> stat, err := file.Stat() <add>...
2
Text
Text
remove section about amending commits in pr guide
94c9f629370a9ca75ef175a559dd55774637f99a
<ide><path>doc/guides/contributing/pull-requests.md <ide> $ git push --force-with-lease origin my-branch <ide> ``` <ide> <ide> **Important:** The `git push --force-with-lease` command is one of the few ways <del>to delete history in `git`. Before you use it, make sure you understand the <del>risks. If in doubt, you ca...
1
Python
Python
drop another case of u'', this time from #530 code
99848b0321a07d7f05f2333f635756f45e058088
<ide><path>rest_framework/tests/serializer.py <ide> def test_field_ctor(self): <ide> """ <ide> This is check that ctor supports both label and help_text. <ide> """ <del> self.assertEquals(u'Label', fields.Field(label='Label', help_text='Help').label) <del> self.assertEquals(u'Help'...
1
Mixed
Python
add german bert model to code, update readme
16af9ff7b0a22abfaff24de3ae00e695d7c25dd9
<ide><path>README.md <ide> where <ide> - `bert-base-multilingual-uncased`: (Orig, not recommended) 102 languages, 12-layer, 768-hidden, 12-heads, 110M parameters <ide> - `bert-base-multilingual-cased`: **(New, recommended)** 104 languages, 12-layer, 768-hidden, 12-heads, 110M parameters <ide> - `bert-base-c...
3
Javascript
Javascript
add index field to each fiber
cccc4ae2c61282938920ff57633df9e1513cc52a
<ide><path>src/renderers/shared/fiber/ReactChildFiber.js <ide> function deleteChild( <ide> returnFiber : Fiber, <ide> childToDelete : Fiber <ide> ) { <add> if (!shouldTrackSideEffects) { <add> // Noop. <add> return; <add> } <add> <ide> // TODO: Add this child to the side-effect queue for deletion. <ide> }...
3
Ruby
Ruby
test the happy path for recursive yields too
fe7d77cc01ae652a15b2c1896f677a56133bc0f1
<ide><path>activesupport/test/share_lock_test.rb <ide> def test_manual_incompatible_yield <ide> threads.each(&:kill) if threads <ide> end <ide> <add> def test_manual_recursive_yield <add> ready = Concurrent::CyclicBarrier.new(2) <add> done = Concurrent::CyclicBarrier.new(2) <add> do_nesting = Concurren...
1
Javascript
Javascript
extract some of the tidy up changes from 19278
61dd00db24bec6305bd72908d3617b9f2a5183da
<ide><path>packages/react-dom/src/client/ReactDOMComponent.js <ide> import { <ide> enableDeprecatedFlareAPI, <ide> enableTrustedTypesIntegration, <ide> } from 'shared/ReactFeatureFlags'; <del>import {listenToReactPropEvent} from '../events/DOMModernPluginEventSystem'; <add>import {listenToReactEvent} from '../event...
11
Text
Text
add v3.28.9 to changelog
6c259fcafa2de6fae3810a6761d04a847f5bd49a
<ide><path>CHANGELOG.md <del># Ember Changelog <add># Ember Changelo <add> <add>## v3.28.9 (April 19, 2022) <add> <add>- [#20028](https://github.com/emberjs/ember.js/pull/20028) Fix a memory leak in the Router Service class <ide> <ide> ### v4.4.0-beta.1 (March 24, 2022) <ide>
1
Go
Go
add unit tests to cli/command/formatter/stats.go
51fb35f0b0aa9f9d2fcc00dd08cafc588ee864d2
<ide><path>cli/command/formatter/stats.go <ide> func (c *containerStatsContext) MemUsage() string { <ide> func (c *containerStatsContext) MemPerc() string { <ide> header := memPercHeader <ide> c.AddHeader(header) <del> if c.s.IsInvalid { <add> if c.s.IsInvalid || c.s.OSType == winOSType { <ide> return fmt.Sprintf("...
2
Java
Java
add beanfactorycontribution for bean registrations
ec6a19fc6b37ef03d2667100a2ee9de1488c902d
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/generator/BeanDefinitionGenerationException.java <add>/* <add> * Copyright 2002-2022 the original author or authors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file except in complia...
4
Mixed
Python
add solution for project euler problem 67
11a15cc5842bb44a81bc8ee56af8f25d92a74287
<ide><path>DIRECTORY.md <ide> * [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_065/sol1.py) <ide> * Problem 067 <ide> * [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_067/sol1.py) <add> * [Sol2](https://github.com/TheAlgorithms/Python/blob...
2
Javascript
Javascript
improve hmr plugin with multiple runtimes
6b4ce6e0118d0f18f8e554f21f3ffbfd965118ad
<ide><path>lib/HotModuleReplacementPlugin.js <ide> const { <ide> toConstantDependency <ide> } = require("./javascript/JavascriptParserHelpers"); <ide> const { find } = require("./util/SetHelpers"); <add>const TupleSet = require("./util/TupleSet"); <ide> const { compareModulesById } = require("./util/comparators"); <id...
3
Javascript
Javascript
add padding to glb chunks
38de4ccca5ecc0df5779cbcee7a3c2f4e4f6cd64
<ide><path>examples/js/exporters/GLTFExporter.js <ide> THREE.GLTFExporter.prototype = { <ide> * @param {string} text <ide> * @return {ArrayBuffer} <ide> */ <del> function stringToArrayBuffer( text ) { <add> function stringToArrayBuffer( text, padded ) { <add> if ( padded ) { <add> <add> var pad = getPa...
1
PHP
PHP
modify release methods of the cache lock
dca45985ab1b2353615cef14d9d4d70ba7b1cd15
<ide><path>src/Illuminate/Cache/DynamoDbLock.php <ide> public function acquire() <ide> /** <ide> * Release the lock. <ide> * <del> * @return void <add> * @return bool <ide> */ <ide> public function release() <ide> { <ide> if ($this->isOwnedByCurrentProcess()) { <del> ...
4
Text
Text
apply sentence case to release doc headers
dd731e26b8b65d6bd0a3eb0922b87b486c2ce68d
<ide><path>doc/guides/releases.md <del># Node.js Release Process <add># Node.js release process <ide> <ide> This document describes the technical aspects of the Node.js release process. <ide> The intended audience is those who have been authorized by the Node.js <ide> Technical Steering Committee (TSC) to create, prom...
1
Ruby
Ruby
use original_paths over envs; reject nil path
02164a35dbc2320e9f4eb2e27ff952e0a157b6fa
<ide><path>Library/Homebrew/brew.rb <ide> args = Homebrew::CLI::Parser.new.parse(ARGV.dup.freeze, ignore_invalid_options: true) <ide> Context.current = args.context <ide> <del> path = PATH.new(ENV["PATH"]) <del> homebrew_path = PATH.new(ENV["HOMEBREW_PATH"]) <add> path = PATH.new(ENV.fetch("PATH")) <add> homeb...
37
Python
Python
update some warning messages
53c0faa5535c4fb782271d21ca1bbb2191c5f19c
<ide><path>keras/legacy/interfaces.py <ide> def lstm_args_preprocessor(args, kwargs): <ide> kwargs.pop('forget_bias_init') <ide> warnings.warn('The `forget_bias_init` argument ' <ide> 'has been ignored. Use `unit_forget_bias=True` ' <del> 'inste...
1
Javascript
Javascript
add generator test cases
54e8068b87a4f0c2fb999534971c137c9154e748
<ide><path>test/cases/parsing/issue-11353/async_generator_function.js <add>"use strict"; <add> <add>export default async function* asyncIdMaker(start = 1, end = 5){ <add> for (let i = start; i <= end; i++) { <add> <add> // yay, can use await! <add> await new Promise(resolve => setTimeout(resolve, 1000)); <add> <add> ...
3
PHP
PHP
fix coding standards
be2a2523456a1414bf667ea482015d9d21918697
<ide><path>lib/Cake/Test/Case/Console/Command/Task/ControllerTaskTest.php <ide> if (!$imported) { <ide> define('ARTICLE_MODEL_CREATED', true); <ide> <del> /** <del> * Class BakeArticle <del> */ <add>/** <add> * Class BakeArticle <add> */ <ide> class BakeArticle extends Model { <ide> <ide> public $name = 'BakeAr...
2
Text
Text
add docs on meta inheritance. closes
78ac332f18c51bb151ae32f1f3d207595b0b3ca2
<ide><path>docs/api-guide/serializers.md <ide> Alternative representations include serializing using hyperlinks, serializing co <ide> <ide> For full details see the [serializer relations][relations] documentation. <ide> <add>## Inheritance of the 'Meta' class <add> <add>The inner `Meta` class on serializers is not in...
1
Javascript
Javascript
fix condition where data is lost
dbe645f11460a8985f5f6e07f9ed829bee43e101
<ide><path>lib/internal/http2/core.js <ide> function onStreamClose(code) { <ide> <ide> if (state.fd !== undefined) <ide> tryClose(state.fd); <del> stream.push(null); <del> stream[kMaybeDestroy](null, code); <add> <add> // Defer destroy we actually emit end. <add> if (stream._readableState.endEmitted || code ...
3
Javascript
Javascript
use a fresh meta to get the current value
7ed1ed7dd1f2bb00a350cb78e3d590167816cee7
<ide><path>packages/ember-metal/lib/watching.js <ide> var switchToWatched = function(obj, keyName, meta) { <ide> enumerable: true, <ide> set: mandatorySetter, <ide> get: function(key) { <del> return meta.values[keyName]; <add> return metaFor(this).values[keyName]; <ide> } <ide> ...
1
Text
Text
use jquery to modify the entire page
efe39a5da82c57967c5c17e127b1b6d7a8c65deb
<ide><path>guide/english/certifications/front-end-libraries/jquery/use-jquery-to-modify-the-entire-page/index.md <ide> Add the classes `animated` and `hinge` to your `body` element. <ide> - [.addClass()](https://api.jquery.com/addClass/e) <ide> <ide> ### Solution: <del>```javascript <add>```html <ide> <script> <ide>...
1
Javascript
Javascript
increase test coverage for os.js
7069e633caf90a77fced619689171a92059ee29a
<ide><path>test/parallel/test-os.js <ide> const path = require('path'); <ide> const { inspect } = require('util'); <ide> <ide> const is = { <add> number: (value, key) => { <add> assert(!isNaN(value), `${key} should not be NaN`); <add> assert.strictEqual(typeof value, 'number'); <add> }, <ide> string: (value)...
1
Text
Text
fix typo in cli.md
bc89048f3d2f8886d708494c25560a02552df94d
<ide><path>doc/api/cli.md <ide> Generating V8 snapshots takes time and memory (both memory managed by the <ide> V8 heap and native memory outside the V8 heap). The bigger the heap is, <ide> the more resources it needs. Node.js will adjust the V8 heap to accommondate <ide> the additional V8 heap memory overhead, and try...
1
PHP
PHP
give submit button sensible default
4c36ed37b2f92fe63dce1cb16cd169c578417f70
<ide><path>src/Illuminate/Html/FormBuilder.php <ide> protected function getSelectOption($display, $value, $selected) <ide> { <ide> return $this->optionGroup($display, $value, $selected); <ide> } <del> <add> <ide> return $this->option($display, $value, $selected); <ide> } <ide> <ide> protected function check...
1
Text
Text
update scriptable tooltip context docs
9a042672a74d71fb0238bfaa2310b237d106604e
<ide><path>docs/docs/general/options.md <ide> There are multiple levels of context objects: <ide> * `data` <ide> * `scale` <ide> * `tick` <add> * `tooltip` <ide> <ide> Each level inherits its parent(s) and any contextual information stored in the parent is available through the child. <ide> <ide> In additi...
1
Java
Java
update javadoc for supported jboss vfs version
34eb4dba3a4e1915989c29713a2b3551d3d5520d
<ide><path>spring-core/src/main/java/org/springframework/core/io/VfsResource.java <ide> /* <del> * Copyright 2002-2012 the original author or authors. <add> * Copyright 2002-2014 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may not use th...
2
Text
Text
improve grammar in readme
031ee97b12b99cac0bfe80f29c876aaddb01a4cc
<ide><path>README.md <ide> The **[#redux channel](https://discord.gg/0ZcbPKXt5bZ6au5t)** of the **[Reactifl <ide> <ide> Redux is a valuable tool for organizing your state, but you should also consider whether it's appropriate for your situation. Don't use Redux just because someone said you should - take some time to...
1
Javascript
Javascript
improve collada "duplicate node warning"
18317890f5cef98f0c7be068d2e0fd064f93de01
<ide><path>examples/js/loaders/ColladaLoader.js <ide> THREE.ColladaLoader.prototype = { <ide> <ide> } <ide> <del> if (hasNode(data.id)) { <del> console.warn("Duplicate id ", data.id, "ignoring") <add> if ( hasNode( data.id ) ) { <add> <add> console.warn( 'THREE.ColladaLoader: There is already a node with...
1
Text
Text
add whatwg file urls in fs module
c1b3b95939884b20a6312822091b9fec2ef9f31f
<ide><path>doc/api/fs.md <ide> Error: EISDIR: illegal operation on a directory, read <ide> <stack trace.> <ide> ``` <ide> <add>## WHATWG URL object support <add><!-- YAML <add>added: v7.6.0 <add>--> <add> <add>> Stability: 1 - Experimental <add> <add>For most `fs` module functions, the `path` or `filename` argumen...
1
Go
Go
add comment to put()
a1851a6d3e69d67bfc4e6bfdec85ba58293351b9
<ide><path>graphdriver/btrfs/btrfs.go <ide> func (d *Driver) Get(id string) (string, error) { <ide> } <ide> <ide> func (d *Driver) Put(id string) { <add> // Get() creates no runtime resources (like e.g. mounts) <add> // so this doesn't need to do anything. <ide> } <ide> <ide> func (d *Driver) Exists(id string) bool {
1
Text
Text
add keytool for windows details
c2fd4d48bf7052722b4712a5ddcc1a9d0cbf3bc2
<ide><path>docs/SignedAPKAndroid.md <ide> Android requires that all apps be digitally signed with a certificate before the <ide> <ide> ### Generating a signing key <ide> <del>You can generate a private signing key using `keytool`. <add>You can generate a private signing key using `keytool`. On Windows `keytool` must ...
1
Javascript
Javascript
remove suffix _ir
261ff39f6df936af16b0ebdf1bff49a3ffaaa798
<ide><path>src/canvas.js <ide> var CanvasGraphics = (function CanvasGraphicsClosure() { <ide> 'setStrokeColor': true, <ide> 'setStrokeColorN': true, <ide> 'setFillColor': true, <del> 'setFillColorN_IR': true, <add> 'setFillColorN': true, <ide> 'setStrokeGray': true, <ide> 'setFil...
2
PHP
PHP
fix return type
a41e27d6f7d3e23580a6a3ca8a8ffe90fb5f1819
<ide><path>src/Event/EventManager.php <ide> protected function _attachSubscriber(EventListenerInterface $subscriber): void <ide> * <ide> * @param array $function the array taken from a handler definition for an event <ide> * @param \Cake\Event\EventListenerInterface $object The handler object <del> *...
1
Java
Java
add stompprotocolhandler tests
39ff1e2c5375868a92318251f3015114e8b49d0d
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompProtocolHandler.java <ide> import org.springframework.messaging.handler.websocket.SubProtocolHandler; <ide> import org.springframework.messaging.simp.SimpMessageType; <ide> import org.springframework.messaging.simp.handler.MutableUs...
7
Text
Text
remove unused link [ci skip]
04d36d2471bc48548abbae6c8913b2371b68d3bf
<ide><path>website/docs/usage/v2.md <ide> process. <ide> <ide> <Infobox> <ide> <del>**Usage:** [Models directory](/models) [Benchmarks](#benchmarks) <add>**Usage:** [Models directory](/models) <ide> <ide> </Infobox> <ide>
1
Ruby
Ruby
add git tests
0b2cc5c20db30f5d0046091f8c2318752f7b0659
<ide><path>Library/Homebrew/test/test_download_strategies.rb <ide> def cache_tag <ide> end <ide> end <ide> <add>class GitDownloadStrategyTests < Homebrew::TestCase <add> include FileUtils <add> <add> def setup <add> resource = ResourceDouble.new("https://github.com/homebrew/foo") <add> @commit_id = 1 <add> ...
1
Text
Text
add weight to daemon page so it renders in order
2a841573521cc9d62d7b3f06143334890662cd54
<ide><path>docs/reference/commandline/daemon.md <ide> description = "The daemon command description and usage" <ide> keywords = ["container, daemon, runtime"] <ide> [menu.main] <ide> parent = "smn_cli" <add>weight=1 <ide> +++ <ide> <![end-metadata]--> <ide>
1
Javascript
Javascript
use hardcoded value for proptype secret
2c93a41580030ae44105626cdd19c97704128771
<ide><path>src/isomorphic/classic/types/ReactPropTypesSecret.js <ide> 'use strict'; <ide> <ide> <del>const ReactPropTypesSecret = '__REACT_PROP_TYPES_SECRET__' + Math.random().toString(); <add>const ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; <ide> <ide> module.exports = ReactPropTypesSecr...
1
Go
Go
fix some typos
e1003fb0787d702b2820fdf70ffbf7c958c7dcf5
<ide><path>libnetwork/client/client.go <ide> type NetworkCli struct { <ide> call CallFunc <ide> } <ide> <del>// NewNetworkCli is a conveninent function to create a NetworkCli object <add>// NewNetworkCli is a convenient function to create a NetworkCli object <ide> func NewNetworkCli(out, err io.Writer, call CallFunc)...
6
Python
Python
use dag_actions constant.
513261094a46bb13a5e6ccc2fc4cc8344ee09eba
<ide><path>airflow/models/dagbag.py <ide> def _sync_perm_for_dag(self, dag, session: Optional[Session] = None): <ide> """Sync DAG specific permissions, if necessary""" <ide> from flask_appbuilder.security.sqla import models as sqla_models <ide> <del> from airflow.security.permissions import DAG_...
4
Text
Text
simplify the windows docs and fix formatting
744d39a46683909b95ac5a769ae5f839a992d59a
<ide><path>docs/sources/installation/windows.md <ide> Let's try the “hello world” example. Run <ide> <ide> This will download the small busybox image and print hello world. <ide> <add> <ide> # Further Details <ide> <ide> The Boot2Docker management tool provides some commands: <ide> <ide> $ ./boot2docker <ide> ...
1
Javascript
Javascript
improve tick generation for linear scales
aae05a08da0e216371caafa17228b3bff97d9fa9
<ide><path>src/scales/scale.linear.js <ide> 'use strict'; <ide> <del>var defaults = require('../core/core.defaults'); <ide> var helpers = require('../helpers/index'); <ide> var scaleService = require('../core/core.scaleService'); <ide> var Ticks = require('../core/core.ticks'); <ide> module.exports = function(Chart) {...
6
Javascript
Javascript
add missing import
e84115af9b4c2117c2626ae9afc07c38e06fa0d4
<ide><path>lib/dependencies/HarmonyImportSideEffectDependency.js <ide> const makeSerializable = require("../util/makeSerializable"); <ide> const HarmonyImportDependency = require("./HarmonyImportDependency"); <ide> <add>/** @typedef {import("webpack-sources").ReplaceSource} ReplaceSource */ <ide> /** @typedef {import(...
1
PHP
PHP
update the mocking
50b6f556500c5d07416827c49e47077f08e857e3
<ide><path>tests/Database/DatabaseMigrationMigrateCommandTest.php <ide> public function testBasicMigrationsCallMigratorWithProperArguments() <ide> $app->useDatabasePath(__DIR__); <ide> $command->setLaravel($app); <ide> $migrator->shouldReceive('setConnection')->once()->with(null); <del> $...
1
Python
Python
disallow verbose=1 with parameterserverstrategy
df97de0a0d2646b718540bb568b7d70b423bf536
<ide><path>keras/distribute/dataset_creator_model_fit_ps_only_test.py <ide> def testModelFitTensorBoardEpochLevel(self, strategy, use_dataset_creator): <ide> files = tf.compat.v1.gfile.ListDirectory(log_dir) <ide> self.assertGreaterEqual(len(files), 1) <ide> <add> def testModelFitVerbose1(self, strategy, use_...
3
Javascript
Javascript
add unit test for isplainobject(symbol)
9090d98439f8dc449beafee98f8ff35cfb4f9116
<ide><path>test/unit/core.js <ide> QUnit.asyncTest( "isPlainObject", function( assert ) { <ide> } <ide> } ); <ide> <add>// <add>QUnit[ typeof Symbol === "function" ? "test" : "skip" ]( "isPlainObject(Symbol)", function( assert ) { <add> assert.expect( 2 ); <add> <add> assert.equal( jQuery.isPlainObject( Symbol() ), f...
1
Python
Python
reduce line length
4ef538b23754612bd05d1d547dd04408ec396cdc
<ide><path>libcloud/compute/drivers/dimensiondata.py <ide> def _to_image(self, element, locations=None): <ide> if locations is None: <ide> locations = self.list_locations(location_id) <ide> <del> location = [match_location for match_location in locations if match_location.id == location_id][...
1
Ruby
Ruby
add doctor check for homebrew_keep_info
fab5e1d905cd243a9e8306dcd4e74b5f1d596f8f
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_latest_xquartz <ide> https://xquartz.macosforge.org <ide> EOS <ide> end <add> <add> def check_for_old_env_vars <add> if ENV["HOMEBREW_KEEP_INFO"] <add> <<-EOS.undent <add> `HOMEBREW_KEEP_INFO` is no longer used <add> info fil...
1
Text
Text
remove setprops and replaceprops from docs
718c07c9150042c8af503b584537458f4e6ad5e1
<ide><path>docs/docs/ref-02-component-api.it-IT.md <ide> boolean isMounted() <ide> > Nota: <ide> > <ide> > Questo metodo non è disponibile il componenti `class` ES6 che estendono `React.Component`. Potrebbe essere eliminato del tutto in una versione futura di React. <del> <del> <del>### setProps <del> <del>```javascrip...
4
Text
Text
fix backticks in docs
87562e470d0a38d1919c60941afbda5765f97ef7
<ide><path>website/docs/api/tokenizer.md <ide> it. <ide> <ide> ## Attributes {#attributes} <ide> <del>| Name | Type | Description | <del>| ---------------- | ------- | ------------------------...
1
Ruby
Ruby
add new --cache command
169ac2d413d1a354e1a273759fac61faa2357c17
<ide><path>Library/Homebrew/cask/cmd.rb <ide> require "cask/cmd/options" <ide> <ide> require "cask/cmd/abstract_command" <add>require "cask/cmd/--cache" <ide> require "cask/cmd/audit" <ide> require "cask/cmd/automerge" <ide> require "cask/cmd/cat" <ide><path>Library/Homebrew/cask/cmd/--cache.rb <add># frozen_string_li...
2
Mixed
Javascript
add support for compilestreaming
9c7f53e63cf1698a9cb1b20dd75237326bc7111e
<ide><path>examples/wasm-simple/README.md <ide> export function fibonacciJavascript(i) { <ide> /******/ var installedWasmModuleData = installedWasmModules[wasmModuleId]; <ide> /******/ <ide> /******/ // a Promise means "currently loading" or "already loaded". <del>/******/ if(installedWasmModuleData) { <del>/*...
2
Java
Java
fix smooth scrolling on old devices (sdk >=16)
67be81968ea6044571f55683bb8263ed15d306e9
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java <ide> public void fling(int velocityY) { <ide> // <ide> // Hence, we can use the absolute value from whatever the OS gives <ide> // us and use the sign of what mOnScrollDispatchHelper has tracked. <del> final int c...
1
Python
Python
modernize tokenizer tests for whitespace
667051375d4a0f1e88652c1b34980f6722c11730
<ide><path>spacy/tests/tokenizer/test_whitespace.py <ide> """Test that tokens are created correctly for whitespace.""" <add> <add> <ide> from __future__ import unicode_literals <ide> <ide> import pytest <ide> <ide> <del>def test_single_space(en_tokenizer): <del> tokens = en_tokenizer('hello possums') <add>@pytest...
1
Ruby
Ruby
test both mac and linux
d3507d9899e94c5371e8172162cc5082b242aec8
<ide><path>Library/Homebrew/test/language/java_spec.rb <ide> end <ide> end <ide> <add> let(:expected_home) do <add> if OS.mac? <add> f.opt_libexec/"openjdk.jdk/Contents/Home" <add> else <add> f.opt_libexec <add> end <add> end <add> <ide> before do <ide> allow(Formula).to receive(:[]).a...
1
Python
Python
fix eval_training_data bug
bc061e9e35eba1766faff634151c970b11dd08ca
<ide><path>research/object_detection/eval.py <ide> def main(unused_argv): <ide> <ide> model_config = configs['model'] <ide> eval_config = configs['eval_config'] <del> input_config = configs['eval_input_config'] <add> if FLAGS.eval_training_data: <add> input_config = configs['train_input_config'] <add> else: ...
1
Javascript
Javascript
add "reading" case
25515405401fcbb7bda68e55c49b4cc141f13972
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> linkAppStore: 'https://itunes.apple.com/cn/app/hong-bei-bang-hai-liang-hong/id1007812319?mt=8', <ide> author: 'Hongbeibang' <ide> }, <add> { <add> name: 'Reading', <add> icon: 'http://7xr0xq.com1.z0.glb.clouddn.com/about_logo.png'...
1
PHP
PHP
apply fixes from styleci
0bf5f8ec0c519ccb558c3280b5ce09f4f3f7486e
<ide><path>tests/Database/DatabaseEloquentIntegrationTest.php <ide> namespace Illuminate\Tests\Database; <ide> <ide> use Exception; <del>use ReflectionObject; <ide> use PHPUnit\Framework\TestCase; <ide> use Illuminate\Database\Eloquent\Collection; <ide> use Illuminate\Database\Eloquent\SoftDeletes;
1
Python
Python
add regression test for r4798 (ticket #658)
e3fbd7984862c82e5065360145bc26c5cb603b79
<ide><path>numpy/core/tests/test_regression.py <ide> def check_flat_index_byteswap(self, level=rlevel): <ide> x = np.array([-1,0,1],dtype=dt) <ide> assert_equal(x.flat[0].dtype, x[0].dtype) <ide> <add> def check_copy_detection_corner_case(self, level=rlevel): <add> """Ticket #658""" <...
1
Python
Python
raise keyerror on missing message data
38d4248b6a78918b4194e76023f594148483be0c
<ide><path>celery/worker.py <ide> def __init__(self, task_name, task_id, task_func, args, kwargs): <ide> @classmethod <ide> def from_message(cls, message): <ide> message_data = simplejson.loads(message.body) <del> task_name = message_data.pop("task") <del> task_id = message_data.pop("id") ...
1
Ruby
Ruby
add test for `--binaries` default value
b91d0254bbd07b7b0ddf3906cb6c08684ebc07ef
<ide><path>Library/Homebrew/test/cask/cli_spec.rb <ide> ]) <ide> end <ide> <add> context "when no option is specified" do <add> it "--binaries is true by default" do <add> command = Hbc::CLI::Install.new("some-cask") <add> expect(command.binaries?).to be true <add> end <add...
1
Text
Text
note autoschema limitations on bare apiview
c7df69ab7703c7ed345a445fe1b16ac52c40f026
<ide><path>docs/api-guide/schemas.md <ide> appropriate Core API `Link` object for the view, request method and path: <ide> (In compiling the schema, `SchemaGenerator` calls `view.schema.get_link()` for <ide> each view, allowed method and path.) <ide> <add>--- <add> <add>**Note**: For basic `APIView` subclasses, defaul...
1
PHP
PHP
update requesthandler to psr 15 standard
83eea0efc71d1700b59c9658ba6d0adb4d2832ff
<ide><path>src/Routing/Middleware/RoutingMiddleware.php <ide> use Cake\Cache\Cache; <ide> use Cake\Core\HttpApplicationInterface; <ide> use Cake\Core\PluginApplicationInterface; <add>use Cake\Http\Middleware\CallableDecoratorMiddleware; <ide> use Cake\Http\MiddlewareQueue; <ide> use Cake\Http\Runner; <ide> use Cake\Rou...
2
Javascript
Javascript
remove lookup of undefined property
df92b3c64b3e1d74174ac85297fc7ce39ef5728e
<ide><path>lib/child_process.js <ide> function execSync(command, options) { <ide> if (inheritStderr && ret.stderr) <ide> process.stderr.write(ret.stderr); <ide> <del> const err = checkExecSyncError(ret, opts.args, command); <add> const err = checkExecSyncError(ret, undefined, command); <ide> <ide> if (err) ...
1
Javascript
Javascript
remove unused env vars
a555e013a0e879b524359f89267bf8a17d0ce203
<ide><path>api-server/src/server/boot/authentication.js <ide> import { removeCookies } from '../utils/getSetAccessToken'; <ide> import { decodeEmail } from '../../common/utils'; <ide> import { getRedirectParams } from '../utils/redirection'; <ide> <del>const isSignUpDisabled = !!process.env.DISABLE_SIGNUP; <del>if (is...
2
Python
Python
add a test and cover edge case with parens
9cbe83ef0d03a07a491bd26ecbe508a348ed48a1
<ide><path>scripts/flaskext_migrate.py <ide> def fix_from_imports(red): <ide> if len(node.value) == 3: <ide> package = values[2].value <ide> modules = node.modules() <add> module_string = _get_modules(modules) <ide> if len(modules) > 1: <del> ...
2