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 code example for emberarray isany
bc31e34d9c492941ba369b2424df419cf98b3a4c
<ide><path>packages/@ember/-internals/runtime/lib/mixins/array.js <ide> const ArrayMixin = Mixin.create(Enumerable, { <ide> argument for any item in the array. This method is often simpler/faster <ide> than using a callback. <ide> <add> Example usage: <add> <add> ```javascript <add> const food = [ <ad...
1
PHP
PHP
add class argument
0443f1c42c20f6a30d0d81050bc43e94c9c51145
<ide><path>src/Illuminate/Database/Console/Seeds/SeedCommand.php <ide> use Illuminate\Console\ConfirmableTrait; <ide> use Illuminate\Database\ConnectionResolverInterface as Resolver; <ide> use Illuminate\Database\Eloquent\Model; <add>use Symfony\Component\Console\Input\InputArgument; <ide> use Symfony\Component\Console...
1
Javascript
Javascript
resolve refs in the order of the children
83cbc3e5fb700f45c48214c3785d8b44ab5ebdce
<ide><path>src/renderers/shared/stack/reconciler/ReactChildReconciler.js <ide> var ReactChildReconciler = { <ide> updateChildren: function( <ide> prevChildren, <ide> nextChildren, <add> mountImages, <ide> removedNodes, <ide> transaction, <add> hostParent, <add> hostContainerInfo, <ide> co...
3
Mixed
Javascript
convert androiddialogpicker to js view configs
121141c86b75b46fe9cbd5ec36853d75cd33615b
<ide><path>Libraries/Components/Picker/AndroidDialogPickerNativeComponent.js <ide> * LICENSE file in the root directory of this source tree. <ide> * <ide> * @format <del> * @flow strict-local <add> * @flow <ide> */ <ide> <ide> 'use strict'; <ide> import * as React from 'react'; <ide> <ide> import codegenNativeCom...
3
Go
Go
fix an error about arguments missing
af053ccf6b3179978e087defd0062664152697ef
<ide><path>daemon/monitor.go <ide> import ( <ide> log "github.com/Sirupsen/logrus" <ide> "github.com/docker/docker/daemon/execdriver" <ide> "github.com/docker/docker/runconfig" <add> "github.com/docker/docker/utils" <ide> ) <ide> <ide> const defaultTimeIncrement = 100 <ide> <ide> // containerMonitor monitors the e...
1
Text
Text
correct variable name
5b2abbed25ef41c4cc1b3806037c6bd7631db327
<ide><path>docs/api-guide/format-suffixes.md <ide> Also note that `format_suffix_patterns` does not support descending into `includ <ide> <ide> If using the `i18n_patterns` function provided by Django, as well as `format_suffix_patterns` you should make sure that the `i18n_patterns` function is applied as the final, o...
1
Python
Python
remove unused import
2df62145f147d93378c50a7b2593c00e3d1129e0
<ide><path>numpy/core/tests/test_ufunc.py <ide> from numpy.testing import ( <ide> assert_, assert_equal, assert_raises, assert_array_equal, <ide> assert_almost_equal, assert_array_almost_equal, assert_no_warnings, <del> assert_allclose, assert_array_almost_equal_nulp <add> assert_allclose, <ide> ) <id...
1
Python
Python
take advantage of the cache when running tests
b670c2668426326aeffe626aabac7ee2dff3c7c2
<ide><path>templates/adding_a_new_model/tests/modeling_tf_xxx_test.py <ide> from __future__ import print_function <ide> <ide> import unittest <del>import shutil <ide> import sys <ide> <ide> from .modeling_tf_common_test import (TFCommonTestCases, ids_tensor) <ide> from .configuration_common_test import ConfigTester <...
27
Text
Text
add details about undoing require() image sizing
edf30065ea3544611af66c5319f47e46ee31b721
<ide><path>docs/Images.md <ide> var icon = this.props.active ? require('./my-icon-active.png') : require('./my-i <ide> <Image source={icon} /> <ide> ``` <ide> <add>Note that image sources required this way include size (width, height) info for the Image. If you need to scale the image dynamically (i.e. via flex), you ...
1
Javascript
Javascript
remove obsolete domain test
186ce7e837bde20bd2726d662721a93c95ba24a6
<ide><path>test/parallel/test-microtask-queue-run-domain.js <del>// Copyright Joyent, Inc. and other Node contributors. <del>// <del>// Permission is hereby granted, free of charge, to any person obtaining a <del>// copy of this software and associated documentation files (the <del>// "Software"), to deal in the Softwa...
1
Go
Go
add note to copytocontainer documentation
1c3071e487db96ba8274ac2388eca0002e9cee77
<ide><path>client/container_copy.go <ide> func (cli *Client) ContainerStatPath(ctx context.Context, containerID, path stri <ide> } <ide> <ide> // CopyToContainer copies content into the container filesystem. <add>// Note that `content` must be a Reader for a TAR <ide> func (cli *Client) CopyToContainer(ctx context.Con...
1
Ruby
Ruby
use march=native for generic module
d0f1fa668ce2a943f1613080f8b517decdeab215
<ide><path>Library/Homebrew/hardware.rb <ide> class << self <ide> penryn: "-march=core2 -msse4.1", <ide> core2: "-march=core2", <ide> core: "-march=prescott", <del> dunno: "", <add> dunno: "-march=native", <ide> }.freeze <ide> <ide> def optimization_flags
1
PHP
PHP
fix import order
64a5753870f82586463ef6bad55e149fa2ac9448
<ide><path>tests/TestCase/Http/Middleware/CsrfProtectionMiddlewareTest.php <ide> use Cake\TestSuite\TestCase; <ide> use Psr\Http\Message\ServerRequestInterface; <ide> use TestApp\Http\TestRequestHandler; <del>use Zend\Diactoros\Response\RedirectResponse; <ide> use Zend\Diactoros\Response as DiactorosResponse; <add>use ...
1
PHP
PHP
allow whitespace before tags when checking html
b717f319172f8caa7d1203e0eafcc1535265c749
<ide><path>src/TestSuite/TestCase.php <ide> public function assertHtml($expected, $string, $fullDebug = false) <ide> $tags = $matches[1]; <ide> $type = 'Regex matches'; <ide> } else { <del> $tags = preg_quote($tags, '/'); <add> ...
2
Javascript
Javascript
improve error messaging in handlebars helper
9f2caece30bcf6ffab4a39dd8cd510b6081d749e
<ide><path>packages/sproutcore-handlebars/lib/helpers/binding.js <ide> require('sproutcore-handlebars/ext'); <ide> require('sproutcore-handlebars/views/bindable_span'); <ide> <del>var get = SC.get, getPath = SC.getPath; <add>var get = SC.get, getPath = SC.getPath, fmt = SC.String.fmt; <ide> <ide> (function() { <ide> ...
3
Javascript
Javascript
add user password test
2b510239389f166470df571c9005ad66711f49b9
<ide><path>tests/models/User_spec.js <ide> var User = require('../../models/User'); <ide> <ide> var mocha = require('mocha') <ide> , chai = require('chai') <add> , should = chai.should() <ide> , expect = chai.expect <ide> , mongoose = require('mongoose'); <ide> <ide> describe('User attributes', function() { <i...
1
Javascript
Javascript
reorganize $parse tests
aef3ef7b0380701323edac83b79f66fc44e382e3
<ide><path>test/ng/parseSpec.js <ide> describe('parser', function() { <ide> expect(bCalled).toBe(true); <ide> }); <ide> <del> it('should not invoke filters unless the input/arguments change', function() { <del> var filterCalled = false; <del> $filterProvider.register('foo', v...
1
PHP
PHP
add unique method to message bag
2bb3fae85458b0bc94554969d9e22bdf0c221152
<ide><path>src/Illuminate/Support/MessageBag.php <ide> public function all($format = null) <ide> return $all; <ide> } <ide> <add> /** <add> * Get all of the unique messages for every key in the bag. <add> * <add> * @param string $format <add> * @return array <add> */ <add> publi...
1
Text
Text
remove empty list item
c87ae5f62ead51c58185b1b6663da064e19e8b89
<ide><path>docs/focus/2018-04-16.md <ide> <ide> - Atom core <ide> - Separated keyboard enablement from "readOnly" TextEditor state in [atom/atom#17124](https://github.com/atom/atom/pull/17124). <del>- Atom IDE <ide> - GitHub Package <ide> - Completed, merged, and shipped "Create pull request" [atom/github#1376](ht...
1
Python
Python
remove unittest dependencies in numpy/ma/tests
d51030ad61fe449752e4330eadf6cb25fbee2f2a
<ide><path>numpy/ma/tests/test_core.py <ide> import numpy.core.fromnumeric as fromnumeric <ide> import numpy.core.umath as umath <ide> from numpy.testing import ( <del> TestCase, run_module_suite, assert_raises, assert_warns, suppress_warnings <add> run_module_suite, assert_raises, assert_warns, suppress_warnings...
7
Python
Python
add missing license header
c7ba84fd744168a63ab34c29846e1680a2d384b7
<ide><path>libcloud/test/compute/test_azure.py <del>import libcloud <add># Licensed to the Apache Software Foundation (ASF) under one or more <add># contributor license agreements. See the NOTICE file distributed with <add># this work for additional information regarding copyright ownership. <add># The ASF licenses th...
1
Java
Java
fix capitalization of componentfactory in rntester
83116e34bc4858e69e774cc2ed640f6d305cd4f3
<ide><path>packages/rn-tester/android/app/src/main/java/com/facebook/react/uiapp/RNTesterApplication.java <ide> public JSIModuleType getJSIModuleType() { <ide> <ide> @Override <ide> public JSIModuleProvider<UIManager> getJSIModuleProvider() { <del> fin...
1
PHP
PHP
fix failing test
5a96ac2a1acb642d7ec9e4e0ab33000772c6718e
<ide><path>tests/Support/SupportArrTest.php <ide> public function testHas() <ide> { <ide> $array = ['products.desk' => ['price' => 100]]; <ide> $this->assertTrue(Arr::has($array, 'products.desk')); <del> $this->assertTrue(Arr::has($array, ['products.desk'])); <del> $this->assertFalse(A...
1
Go
Go
fix docker top a restarting container
5566ccb7aa0747005573f6f4f04f46552b75a394
<ide><path>daemon/exec.go <ide> func (d *Daemon) getExecConfig(name string) (*exec.Config, error) { <ide> return nil, derr.ErrorCodeExecPaused.WithArgs(container.ID) <ide> } <ide> if container.IsRestarting() { <del> return nil, derr.ErrorCodeExecRestarting.WithArgs(container.ID) <add> return nil, derr.E...
3
Javascript
Javascript
reuse variables in shader
9a768ede0ea7311653576d758dc75de03208eb7b
<ide><path>examples/jsm/csm/Shader.js <ide> IncidentLight directLight; <ide> directionalLightShadow = directionalLightShadows[ i ]; <ide> directLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.s...
1
Python
Python
add tokeniser serialisation
65cea92a66211e1116fe9faea774ca66b09461e7
<ide><path>keras/preprocessing/text.py <ide> one_hot = text.one_hot <ide> hashing_trick = text.hashing_trick <ide> Tokenizer = text.Tokenizer <add>tokenizer_from_json = text.tokenizer_from_json
1
Mixed
Python
fix egg fragments in direct download
88909a9adbaf4f3710603db2697c39f9a7274357
<ide><path>.github/contributors/adrienball.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or project...
2
Javascript
Javascript
change var to let compact.js
dba276dde9cabba1cda334e2c602e935d75a2c2c
<ide><path>lib/internal/http2/compat.js <ide> class Http2ServerResponse extends Stream { <ide> addTrailers(headers) { <ide> const keys = ObjectKeys(headers); <ide> let key = ''; <del> for (var i = 0; i < keys.length; i++) { <add> for (let i = 0; i < keys.length; i++) { <ide> key = keys[i]; <ide> ...
1
Python
Python
add options to train a quantization friendly model
624872573df147d613af5c494a803cc950fc830f
<ide><path>official/nlp/modeling/layers/mobile_bert_layers.py <ide> def call(self, feature): <ide> return output <ide> <ide> <add>@tf.keras.utils.register_keras_serializable(package='Text') <add>class NoNormClipped(NoNorm): <add> """Quantization friendly implementation for the NoNorm. <add> <add> The output of ...
2
Python
Python
correct a bug with docker module and server mode
c51d4f57deb2a95800c535ec39fd366826d7e186
<ide><path>glances/plugins/glances_docker.py <ide> def update(self): <ide> self.reset() <ide> <ide> # The Docker-py lib is mandatory <del> if not docker_tag or self.args.disable_docker: <add> if not docker_tag or (self.args is not None and self.args.disable_docker): <ide> retu...
1
Python
Python
fix causal padding dostrings
330ffa41dd949fdf48cc11f76fb410bf3551657c
<ide><path>keras/layers/convolutional.py <ide> class Conv1D(_Conv): <ide> any `dilation_rate` value != 1. <ide> padding: One of `"valid"`, `"causal"` or `"same"` (case-insensitive). <ide> `"causal"` results in causal (dilated) convolutions, e.g. output[t] <del> depends solely ...
1
Go
Go
remove unused field from engine.job
92105ea0fa774607ea4c7f487aedfd22eb5598bc
<ide><path>engine/job.go <ide> type Job struct { <ide> handler Handler <ide> status Status <ide> end time.Time <del> onExit []func() <ide> } <ide> <ide> type Status int
1
Go
Go
fail initialization if supported but got error
4bdb8c03fc9ac4c7c49fd9838d7eccdfd66e1c5b
<ide><path>daemon/graphdriver/aufs/aufs.go <ide> type Driver struct { <ide> func Init(root string) (graphdriver.Driver, error) { <ide> // Try to load the aufs kernel module <ide> if err := supportsAufs(); err != nil { <del> return nil, err <add> return nil, graphdriver.ErrNotSupported <ide> } <ide> paths := []str...
4
PHP
PHP
allow dynamic arguments
1dc956d1674f264f7c8f06f33d1f06b601a04e58
<ide><path>src/Illuminate/Routing/Route.php <ide> public function middleware($middleware = null) <ide> } <ide> <ide> if (is_string($middleware)) { <del> $middleware = [$middleware]; <add> $middleware = func_get_args(); <ide> } <ide> <ide> $this->action['middleware...
1
Python
Python
fix some typos in docs, comments, logging/errors
b24ead87e1be6bce17e4ec5c953b6d028e4b3af7
<ide><path>src/transformers/commands/add_new_model.py <ide> def run(self): <ide> if not _has_cookiecutter: <ide> raise ImportError( <ide> "Model creation dependencies are required to use the `add_new_model` command. Install them by running " <del> "the folowing at the ...
77
PHP
PHP
remove unneeded test
f6106c4095f2b26833db6b600ff7ead88c2edb43
<ide><path>tests/Database/DatabaseQueryBuilderTest.php <ide> public function testGetPaginationCountGetsResultCount() <ide> } <ide> <ide> <del> public function testGetPaginationCountGetsResultCountWithSelectDistinct() <del> { <del> unset($_SERVER['orders']); <del> $builder = $this->getBuilder(); <del> $builder->ge...
1
Ruby
Ruby
support openssl style
2f757ee5aae8fb480118196c0e62e43b165715ca
<ide><path>Library/Homebrew/bottle_version.rb <ide> def self._parse spec <ide> m = /[a-z]{3}\d-(\d{1}-\d{8})/.match(stem) <ide> return m.captures.first unless m.nil? <ide> <add> # e.g. 1.0.2a-1 from openssl-1.0.2a-1.yosemite.bottle.1.tar.gz <add> m = /-(\d+\.\d+(\.\d+)+[a-z]-\d+)/.match(stem) <add> re...
2
Javascript
Javascript
remove openssl -no_rand_screen opts
425c5ca27d25b35091783262ea21baef1f742579
<ide><path>test/parallel/test-https-foafssl.js <ide> server.listen(0, function() { <ide> '-cert', fixtures.path('foafssl.crt'), <ide> '-key', fixtures.path('foafssl.key')]; <ide> <del> // for the performance and stability issue in s_client on Windows <del> if (common.isWindows) <del> ...
12
Ruby
Ruby
fix actionpack typos [ci skip]
6cb854f70717071529b293e4a3f4dc577fe89006
<ide><path>actionpack/lib/action_controller/base.rb <ide> def self.without_modules(*modules) <ide> HttpAuthentication::Digest::ControllerMethods, <ide> HttpAuthentication::Token::ControllerMethods, <ide> <del> # Before callbacks should also be executed the earliest as possible, so <add> # Before ...
2
Ruby
Ruby
convert `associationqueryvalue` to poro queries
baf6072e4550cf2cf5e52240d0192a56dbe8e949
<ide><path>activerecord/lib/active_record/relation/predicate_builder.rb <ide> def initialize(table) <ide> register_handler(RangeHandler::RangeWithBinds, RangeHandler.new) <ide> register_handler(Relation, RelationHandler.new) <ide> register_handler(Array, ArrayHandler.new(self)) <del> register_han...
2
Text
Text
add an example with additional arguments
1160e4e9bfbdc452a9bf1742e4980480ce3de3c3
<ide><path>client/src/pages/guide/english/python/range-function/index.md <ide> for i in range(5): <ide> 4 <ide> ``` <ide> <add>#### Example with optional additional arguments <add>The first argument, *start* includes the number at which to start the progression. <add>The second argument, *stop* is the same as in th...
1
Ruby
Ruby
use freeze instead of close!
29592a7f09dda2e7e1e0a915d9230fe6a9b5c0af
<ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb <ide> def initialize(secret = nil, host = nil, secure = false) <ide> @delete_cookies = {} <ide> @host = host <ide> @secure = secure <del> @closed = false <ide> @cookies = {} <ide> end <ide> <del> attr_read...
3
Go
Go
use describable interfaces
2c60430a3d1431e0879aa1c66ca23143de987b35
<ide><path>distribution/pull_v2.go <ide> type v2LayerDescriptor struct { <ide> V2MetadataService *metadata.V2MetadataService <ide> tmpFile *os.File <ide> verifier digest.Verifier <del> foreignSrc *distribution.Descriptor <add> src distribution.Descriptor <ide> } <ide> <ide> f...
16
Javascript
Javascript
create crlfchecker module and use it in make.js
2ffd3ae1c73c17cd4513c28d03933b0d27d4a29f
<ide><path>external/crlfchecker/crlfchecker.js <add>/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ <add>/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ <add> <add>function checkIfCrlfIsPresent(files) { <add> var failed = []; <add> <add> (ls(files)).forEach(functio...
2
Ruby
Ruby
add mandoc to allowed list
e7f723e5435b434f015a0f8d55f6769c63e02f5d
<ide><path>Library/Homebrew/rubocops/uses_from_macos.rb <ide> class UsesFromMacos < FormulaCop <ide> groff <ide> gzip <ide> less <add> mandoc <ide> openssl <ide> perl <ide> php
1
Javascript
Javascript
increase pbkdf2 test coverage
d50e1a291694ee96890c1734e7ed9b0295d5262c
<ide><path>test/parallel/test-crypto-pbkdf2.js <ide> common.expectsError( <ide> } <ide> ); <ide> <add>common.expectsError( <add> () => crypto.pbkdf2Sync('password', 'salt', -1, 20, null), <add> { <add> code: 'ERR_OUT_OF_RANGE', <add> type: RangeError, <add> message: 'The "iterations" argument is out of ra...
1
Ruby
Ruby
detect more 'pkgshare' candidates (#328)
af42deca4ab70816216ffc060f3aa8f55e469cac
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_line(line, lineno) <ide> problem "Use \#{pkgshare} instead of \#{share}/#{formula.name}" <ide> end <ide> <del> if line =~ %r{share/"#{Regexp.escape(formula.name)}[/'"]} <del> problem "Use pkgshare instead of (share/\"#{formula.name}\")"...
1
Ruby
Ruby
change the method visibility
44e1cda314cc562f6432f30d0064759c2fdc39b5
<ide><path>actionview/lib/action_view/helpers/tags/translator.rb <ide> module ActionView <ide> module Helpers <ide> module Tags # :nodoc: <ide> class Translator # :nodoc: <del> attr_reader :object_name, :method_and_value, :i18n_scope, :model <del> <ide> def initialize(object, object_name, met...
1
Java
Java
add reactfragment for android
d0792d4b8ac42711dfd9fccb782f16e72ce3e335
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java <ide> <ide> import com.facebook.infer.annotation.Assertions; <ide> import com.facebook.react.bridge.Callback; <del>import com.facebook.react.devsupport.DoubleTapReloadRecognizer; <del>import com.facebook.react.modules.core.DefaultHardw...
3
Text
Text
use consistent typography for node-addon-api
b01d314167c472237036798783eed7de96cfdfc5
<ide><path>doc/api/n-api.md <ide> properties: <ide> The N-API is a C API that ensures ABI stability across Node.js versions <ide> and different compiler levels. A C++ API can be easier to use. <ide> To support using C++, the project maintains a <del>C++ wrapper module called [node-addon-api][]. <add>C++ wrapper module ...
1
Javascript
Javascript
pass arguments to _super
e929b74d2c0768c8d1842bd0d31cf21ebad604b1
<ide><path>packages/ember-application/lib/system/application-instance.js <ide> export default EmberObject.extend({ <ide> rootElement: null, <ide> <ide> init: function() { <del> this._super(); <add> this._super.apply(this, arguments); <ide> this.container = this.registry.container(); <ide> }, <ide>
1
PHP
PHP
expand test coverage for controller task
2a85ffe4954f48d97f962adf8776638c5ea138cb
<ide><path>src/Console/Command/Task/ControllerTask.php <ide> public function execute() { <ide> } <ide> <ide> if (empty($this->args)) { <del> $this->out(__d('cake_console', 'Possible Controllers based on your current database:')); <add> $this->out(__d('cake_console', 'Possible controllers based on your current ...
2
PHP
PHP
remove duplicate code
046ed726b9da0b191699980bfad115353af8bd94
<ide><path>Cake/Test/TestCase/View/Helper/PaginatorHelperTest.php <ide> public function testFirstFullBaseUrl() { <ide> $this->Paginator->request->params['paging']['Article']['page'] = 3; <ide> $this->Paginator->request->params['paging']['Article']['direction'] = 'DESC'; <ide> $this->Paginator->request->params['pa...
1
Python
Python
increase max hr@10 to cover the rare >.640
725f65b68a20ad742378f58b07e9623c10bfdbe5
<ide><path>official/recommendation/ncf_keras_benchmark.py <ide> def _run_and_report_benchmark_mlperf_like(self): <ide> """ <ide> self._run_and_report_benchmark(hr_at_10_min=0.61) <ide> <del> def _run_and_report_benchmark(self, hr_at_10_min=0.630, hr_at_10_max=0.640): <add> def _run_and_report_benchmark(self,...
1
Ruby
Ruby
prevent state leak
f81bd7c67daca8e9970fb23d7c78224e1f5fa937
<ide><path>actionpack/lib/action_controller/test_case.rb <ide> def process(action, http_method = 'GET', *args) <ide> <ide> unless @controller.respond_to?(:recycle!) <ide> @controller.extend(Testing::Functional) <del> @controller.class.class_eval { include Testing } <ide> end <ide> <...
4
Mixed
Java
fix text input spans
de586bfa186289114974674bc2aece462f40393e
<ide><path>Examples/UIExplorer/TextInputExample.android.js <ide> class RewriteExample extends React.Component { <ide> } <ide> } <ide> <add>class TokenizedTextExample extends React.Component { <add> constructor(props) { <add> super(props); <add> this.state = {text: 'Hello #World'}; <add> } <add> render() { <...
4
Javascript
Javascript
fix usedexports issue
407cdd5eb40aacbc3111cd10eaee1cdc37fc56cb
<ide><path>lib/dependencies/HarmonyExportImportedSpecifierDependency.js <ide> class ExportMode { <ide> this.name = null; <ide> /** @type {Map<string, string[]>} */ <ide> this.map = EMPTY_MAP; <del> /** @type {ExportInfo} */ <add> /** @type {Map<string, ExportInfo>|undefined|ExportInfo} */ <ide> this.partialNa...
2
Python
Python
add type hints to binary_tree_traversals.py
4fea48072ae88c19f5133a2303e6707eddf96700
<ide><path>traversals/binary_tree_traversals.py <ide> """ <ide> This is pure python implementation of tree traversal algorithms <ide> """ <del>from __future__ import print_function <del> <ide> import queue <del> <del>try: <del> raw_input # Python 2 <del>except NameError: <del> raw_input = input # Python 3 <add>...
1
Javascript
Javascript
use fastbuffer when fill is set to 0
b07852d1f7a6bd29f32d0bb9b442f18d4ca6528d
<ide><path>lib/buffer.js <ide> function assertSize(size) { <ide> */ <ide> Buffer.alloc = function alloc(size, fill, encoding) { <ide> assertSize(size); <del> if (fill !== undefined && size > 0) { <add> if (fill !== undefined && fill !== 0 && size > 0) { <ide> return _fill(createUnsafeBuffer(size), fill, encodi...
1
Python
Python
improve collatz_sequence algorithm
1608d75351be2b11b0e1ce891e2f71296f0be24b
<ide><path>maths/collatz_sequence.py <del>def collatz_sequence(n): <add>from typing import List <add> <add> <add>def collatz_sequence(n: int) -> List[int]: <ide> """ <del> Collatz conjecture: start with any positive integer n.Next term is obtained from the previous term as follows: <del> if the previous term...
1
Text
Text
remove require logging
1c893bc2f94fd2e9e2c0d253eac0faedcd0046b8
<ide><path>actioncable/README.md <ide> application. The recommended basic setup is as follows: <ide> require ::File.expand_path('../../config/environment', __FILE__) <ide> Rails.application.eager_load! <ide> <del>require 'action_cable/process/logging' <del> <ide> run ActionCable.server <ide> ``` <ide>
1
PHP
PHP
fix code styling
55f39ada11eb30d7e628a5e07f3fb2b8a302bf27
<ide><path>src/Illuminate/Container/BoundMethod.php <ide> protected static function addDependencyForCallParameter($container, $parameter, <ide> $dependencies[] = $container->make($parameter->getClass()->name); <ide> } elseif ($parameter->isDefaultValueAvailable()) { <ide> $dependencies[]...
2
Javascript
Javascript
watch sample folder
8db79ae365cd212045c3f11701dd9665eb4b4db1
<ide><path>gulpfile.js <ide> gulp.task('watch', function(){ <ide> livereload.changed(evt.path); <ide> }; <ide> <del> gulp.watch('Chart.js', reloadPage); <add> gulp.watch(['Chart.js', 'samples/*'], reloadPage); <ide> <ide> }); <ide>
1
Ruby
Ruby
show previous verison in cask upgrade
28061369dc4f11b3fcbbf790c95858f53e1c3e21
<ide><path>Library/Homebrew/cask/cmd/upgrade.rb <ide> def run <ide> <ide> ohai "Casks with `auto_updates` or `version :latest` will not be upgraded" if args.empty? && !greedy? <ide> oh1 "Upgrading #{Formatter.pluralize(outdated_casks.length, "outdated package")}, with result:" <del> puts outdate...
1
Javascript
Javascript
add test case to test for brakets
0b7775eecd450a862b6b5295f12ead3c8f8fdc78
<ide><path>test/configCases/plugins/define-plugin/index.js <ide> it("should assign to process.env", function() { <ide> process.env.TEST = "test"; <ide> process.env.TEST.should.be.eql("test"); <ide> }); <add>it("should not have brakets on start", function() { <add> function f() { <add> throw new Error("should not be ...
1
Mixed
Ruby
keep track of dirty attrs after after rollback
37c238927fbed059de3f26a90d8923fb377568a5
<ide><path>activerecord/CHANGELOG.md <add>* Keep track of dirty attributes after transaction is rollback. <add> <add> Related #13166. <add> <add> *Bogdan Gusiev* *arthurnn* <add> <ide> * Add support for module-level `table_name_suffix` in models. <ide> <ide> This makes `table_name_suffix` work the same w...
4
Javascript
Javascript
fix effectcomposer memory problem
cd5e9888d54e82aea98752601879ba931b77290b
<ide><path>examples/js/postprocessing/EffectComposer.js <ide> THREE.EffectComposer.prototype = { <ide> <ide> } <ide> <add> this.renderTarget1.dispose(); <ide> this.renderTarget1 = renderTarget; <add> this.renderTarget2.dispose(); <ide> this.renderTarget2 = renderTarget.clone(); <ide> <ide> this.writeBuffer...
2
Python
Python
add test for rare reduce dtype mismatch error path
1f27ae7779cfb93cf88052775c422f1b1ea7cc34
<ide><path>numpy/core/tests/test_custom_dtypes.py <ide> def test_basic_multiply(self): <ide> expected_view = a.view(np.float64) * b.view(np.float64) <ide> assert_array_equal(res.view(np.float64), expected_view) <ide> <add> def test_possible_and_impossible_reduce(self): <add> # For reductions ...
1
Python
Python
shorten length line
cf5644dcb6cc5cd16ca2e7e467b830143992c709
<ide><path>libcloud/compute/providers.py <ide> Provider.RUNABOVE: <ide> ('libcloud.compute.drivers.runabove', 'RunAboveNodeDriver'), <ide> Provider.INTERNETSOLUTIONS: <del> ('libcloud.compute.drivers.internetsolutions', 'InternetSolutionsNodeDriver'), <add> ('libcloud.compute.drivers.internetsolutions...
1
Go
Go
remove job from logs
91bfed604959c591a076c2e330cb3ded7443f504
<ide><path>api/server/server.go <ide> func getContainersLogs(eng *engine.Engine, version version.Version, w http.Respo <ide> return fmt.Errorf("Missing parameter") <ide> } <ide> <del> var ( <del> inspectJob = eng.Job("container_inspect", vars["name"]) <del> logsJob = eng.Job("logs", vars["name"]) <del> c, err...
13
PHP
PHP
guess database factory model by default
9915831d22c150d68e562f443aca303151d70a4d
<ide><path>database/factories/UserFactory.php <ide> <ide> namespace Database\Factories; <ide> <del>use App\Models\User; <ide> use Illuminate\Database\Eloquent\Factories\Factory; <ide> use Illuminate\Support\Str; <ide> <ide> class UserFactory extends Factory <ide> { <del> /** <del> * The name of the factory's ...
1
Mixed
Text
remove some references to "register" through login
971c080b67836b5dd62bc9270dfb348abb8536a7
<ide><path>cli/common.go <ide> var dockerCommands = []Command{ <ide> {"inspect", "Return low-level information on a container or image"}, <ide> {"kill", "Kill a running container"}, <ide> {"load", "Load an image from a tar archive or STDIN"}, <del> {"login", "Register or log in to a Docker registry"}, <add> {"login"...
3
Javascript
Javascript
attach origin of a 3rd party command
ab8c00e896de8ac9083870709d6b19a59c5ced16
<ide><path>local-cli/cliEntry.js <ide> function printHelpInformation() { <ide> cmdName = cmdName + '|' + this._alias; <ide> } <ide> <add> const sourceInformation = this.pkg <add> ? [ <add> ` ${chalk.bold('Source:')} ${this.pkg.name}@${this.pkg.version}`, <add> '', <add> ] <add> : []; <add> <...
3
Python
Python
fix command substitution
6da3500728af537df22f7b147a624956b74c4397
<ide><path>spacy/cli/project.py <ide> from .. import about <ide> from ..schemas import ProjectConfigSchema, validate <ide> from ..util import ensure_path, run_command, make_tempdir, working_dir <del>from ..util import get_hash, get_checksum <add>from ..util import get_hash, get_checksum, split_command <ide> <ide> <id...
1
Text
Text
add myself to list of tsc members
61e287953964367202a5293cfaea05de412362d4
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> **Michaël Zasso** &lt;targos@protonmail.com&gt; (he/him) <ide> * [thefourtheye](https://github.com/thefourtheye) - <ide> **Sakthipriyan Vairamani** &lt;thechargingvolcano@gmail.com&gt; (he/him) <add>* [TimothyGu](http...
1
Java
Java
add option to encode with an object value
181482fa15b02a1ae27f54aea39ea0a8acdc35ec
<ide><path>spring-core/src/main/java/org/springframework/core/codec/ByteArrayEncoder.java <ide> public Flux<DataBuffer> encode(Publisher<? extends byte[]> inputStream, <ide> DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, <ide> @Nullable Map<String, Object> hints) { <ide>...
9
Javascript
Javascript
add e2e test for a modal component
23ae702d97103105a24d85fc7d26f9fb9f15bb3e
<ide><path>packages/rn-tester/js/examples/Modal/ModalCustomizable.js <add>/** <add> * Copyright (c) Facebook, Inc. and its affiliates. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <add> * <add> * @flow strict-local <add> ...
3
Text
Text
fix typo in security rails guide. [ci-skip]
d6d861659af3b6135402fadd04366b49c95b92ee
<ide><path>guides/source/security.md <ide> After reading this guide, you will know: <ide> Introduction <ide> ------------ <ide> <del>Web application frameworks are made to help developers build web applications. Some of them also help you with securing the web application. In fact one framework is not more secure than...
1
Java
Java
use keyvalue.none_value where possible
5dca43ebd6411e902b8f89f9dc55816df620844a
<ide><path>spring-web/src/main/java/org/springframework/http/client/observation/ClientHttpObservationDocumentation.java <ide> <ide> package org.springframework.http.client.observation; <ide> <add>import io.micrometer.common.KeyValue; <ide> import io.micrometer.common.docs.KeyName; <ide> import io.micrometer.observati...
8
PHP
PHP
fix scaffold delete messages with uuids
ef1da3146eb5947d0fd25a28b5094b86b251693b
<ide><path>lib/Cake/Controller/Scaffold.php <ide> protected function _scaffoldDelete(CakeRequest $request) { <ide> throw new NotFoundException(__d('cake', 'Invalid %s', Inflector::humanize($this->modelClass))); <ide> } <ide> if ($this->ScaffoldModel->delete()) { <del> $message = __d('cake', 'The %1$s with ...
1
PHP
PHP
offer an "attribute casting" of encrypt
fcf3b659197413766665be728537cebf0f70af0a
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> protected function isJsonCastable($key) <ide> return $this->hasCast($key, ['array', 'json', 'object', 'collection']); <ide> } <ide> <add> /** <add> * Determine whether a value should be encrypted. <add> * <add> * @param string $key ...
1
Go
Go
update testhttpsinforoguecert for go 1.7
496adadcec4ba00d230e546239ddc10e4ea41dcf
<ide><path>integration-cli/docker_cli_daemon_test.go <ide> func (s *DockerDaemonSuite) TestTlsVerify(c *check.C) { <ide> // by using a rogue client certificate and checks that it fails with the expected error. <ide> func (s *DockerDaemonSuite) TestHttpsInfoRogueCert(c *check.C) { <ide> const ( <del> errBadCertificate...
1
Text
Text
add react remote conf 2016.
346dcaacfa38f62593a47f10d1b9de100ffb2f1b
<ide><path>docs/community/conferences.md <ide> April 16 in Amsterdam, The Netherlands <ide> ### ReactEurope 2016 <ide> June 2 & 3 in Paris, France <ide> <del>[Website](http://www.react-europe.org/) - [Schedule](http://www.react-europe.org/#schedule) <add>[Website](http://www.react-europe.org/) - [Schedule](http://www....
1
Text
Text
rewrite contributing guidelines
8c41c5c1b7a6421824c3eb071ea944004403c15f
<ide><path>CONTRIBUTING.md <del>Contributing <del>============ <add>Contributing to Chart.js <add>======================== <ide> <del>New contributions to the library are welcome, just a couple of guidelines: <add>Contributions to Chart.js are welcome and encouraged, but please have a look through the guidelines in th...
1
Python
Python
test more types of behavior in test_iter_options
33d6d4a420ed9d94f9eeef12c9da31278a39b866
<ide><path>tests/test_fields.py <ide> def test_iter_options(self): <ide> field = serializers.ChoiceField( <ide> choices=[ <ide> ('Numbers', ['integer', 'float']), <del> ('Strings', ['text', 'email', 'url']) <add> ('Strings', ['text', 'email', 'url']), <a...
1
Javascript
Javascript
fix lint errors
a4a208f5d1903fa898571da631fcc5f2b50836aa
<ide><path>src/renderers/WebGLRenderer.js <ide> function WebGLRenderer( parameters ) { <ide> <ide> utils = new WebGLUtils( _gl, extensions, capabilities ); <ide> <del> state = new WebGLState( _gl, extensions, capabilities, utils ); <add> state = new WebGLState( _gl, extensions, capabilities ); <ide> state.sciss...
3
Java
Java
add completable.takeuntil(completable) operator
7e301d44d6dee9dce12f5417b41134f3a9eda12f
<ide><path>src/main/java/io/reactivex/Completable.java <ide> public final Completable subscribeOn(final Scheduler scheduler) { <ide> return RxJavaPlugins.onAssembly(new CompletableSubscribeOn(this, scheduler)); <ide> } <ide> <add> /** <add> * Terminates the downstream if this or the other {@code Com...
3
Text
Text
fix broken link to api routes doc
4f5975ffc49967f49acb7ea595b75723aa1356df
<ide><path>examples/api-routes-graphql/README.md <ide> # API routes with GraphQL server <ide> <del>Next.js ships with [API routes](https://github.com/vercel/next.js#api-routes), which provide an easy solution to build your own `API`. This example shows their usage alongside [apollo-server-micro](https://github.com/apo...
1
Javascript
Javascript
limit persistent history correctly on load
73b7e052c04c25887b1aba4542d30a37e39fa60a
<ide><path>lib/internal/repl.js <ide> function setupHistory(repl, historyPath, oldHistoryPath, ready) { <ide> } <ide> <ide> if (data) { <del> repl.history = data.split(/[\n\r]+/).slice(-repl.historySize); <add> repl.history = data.split(/[\n\r]+/, repl.historySize); <ide> } else if (oldHistoryPat...
2
Text
Text
add the content for how services work
2b0892c02eb50c20e8752643faf558dd150dbc77
<ide><path>docs/swarm/how-swarm-mode-works/menu.md <ide> weight=11 <ide> ## TOC <ide> <ide> * [How nodes work](nodes.md) <add>* [How services work](services.md)
1
Ruby
Ruby
remove private api test
679902b916098667dec04e3a47011d244af3056a
<ide><path>activerecord/test/cases/base_test.rb <ide> def setup <ide> class BasicsTest < ActiveRecord::TestCase <ide> fixtures :topics, :companies, :developers, :projects, :computers, :accounts, :minimalistics, 'warehouse-things', :authors, :categorizations, :categories, :posts <ide> <del> def test_generated_method...
1
Mixed
Ruby
add validity for postgresql indexes
d152a11a4c75ed21816e97191a1fce2110a4a2ce
<ide><path>activerecord/CHANGELOG.md <add>* Add validity for PostgreSQL indexes. <add> <add> ```ruby <add> connection.index_exists?(:users, :email, valid: true) <add> connection.indexes(:users).select(&:valid?) <add> ``` <add> <add> *fatkodima* <add> <ide> * Fix eager loading for models without prima...
5
Python
Python
adjust message [ci skip]
2d0c0134bcaa2527a40d13e62be594bf05ac389b
<ide><path>spacy/lang/zh/__init__.py <ide> def deserialize_pkuseg_processors(b): <ide> import spacy_pkuseg <ide> except ImportError: <ide> raise ImportError( <del> "spacy_pkuseg not installed. To use this model, " <add> ...
1
Java
Java
improve getmultipartcontenttype in mock request
a15a726fef4be798a24250003f57b9e88f869058
<ide><path>spring-test/src/main/java/org/springframework/mock/web/MockMultipartHttpServletRequest.java <ide> <ide> package org.springframework.mock.web; <ide> <add>import java.io.IOException; <ide> import java.util.Collections; <ide> import java.util.Enumeration; <ide> import java.util.Iterator; <ide> import java.uti...
2
Python
Python
add thai norm_exceptions
189c90743ca69013f2fdaaafd67756dc49076ed4
<ide><path>spacy/lang/th/__init__.py <ide> from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS <ide> from .tag_map import TAG_MAP <ide> from .stop_words import STOP_WORDS <add>from .norm_exceptions import NORM_EXCEPTIONS <ide> <del>from ...attrs import LANG <add>from ..norm_exceptions import BASE_NORMS <add>from .....
2
Text
Text
remove duplicate words in api docs
d74a1ed7d9e6eccd5d511ccb7becb17f3c03b88f
<ide><path>doc/api/child_process.md <ide> pipes between the parent and child. The value is one of the following: <ide> have an underlying descriptor (file streams do not until the `'open'` <ide> event has occurred). <ide> 5. Positive integer - The integer value is interpreted as a file descriptor <del> that is ...
2
PHP
PHP
use constant for csrf token
8e5852b7ebb28016cfeebe3b8fe50c1b32b152f9
<ide><path>laravel/form.php <ide> <?php namespace Laravel; <ide> <add>use Laravel\Session\Payload as Session; <add> <ide> class Form { <ide> <ide> /** <ide> public static function token() <ide> { <ide> $token = IoC::core('session')->token(); <ide> <del> return static::input('hidden', 'csrf_token', $token); <add...
1
Ruby
Ruby
eliminate warning with layout is unset
90be80361f26d717f9842170315dd8659f35429d
<ide><path>actionpack/lib/abstract_controller/layouts.rb <ide> def _implied_layout_name <ide> # name, return that string. Otherwise, use the superclass' <ide> # layout (which might also be implied) <ide> def _write_layout_method <del> case @_layout <add> case @_layout ||= nil <ide> ...
1
Python
Python
fix typo in a docstring
7bf69edca0d0622deb171f5a16af754dbcd04ce2
<ide><path>airflow/providers/google/cloud/operators/gcs.py <ide> def execute(self, context) -> None: <ide> <ide> class GCSListObjectsOperator(BaseOperator): <ide> """ <del> List all objects from the bucket with the give string prefix and delimiter in name. <add> List all objects from the bucket with the give...
1
Javascript
Javascript
add isnumeric constraint on venmo phone validation
f0b5ad7bf0ea59141ce9152a5187bd791d11f980
<ide><path>controllers/api.js <ide> exports.postVenmo = function(req, res, next) { <ide> } <ide> <ide> var token = _.findWhere(req.user.tokens, { kind: 'venmo' }); <add> <ide> var formData = { <ide> access_token: token.accessToken, <ide> note: req.body.note, <ide> exports.postVenmo = function(req, res, n...
1