content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Text
Text
add safe rel to link
2c3428a4fa762e7cdca8bb0995f509e33930b669
<ide><path>packages/learn/src/introductions/coding-interview-prep/project-euler/index.md <ide> superBlock: Coding Interview Prep <ide> > <ide> > Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and programming skills will be required to solve most problems. <ide> > <del>...
1
Text
Text
add v3.20.4 to changelog.md
a497a8e7354c334509d0b0817b2bde0126deda3c
<ide><path>CHANGELOG.md <ide> - [#18993](https://github.com/emberjs/ember.js/pull/18993) [DEPRECATION] Deprecate `getWithDefault` per [RFC #554](https://github.com/emberjs/rfcs/blob/master/text/0554-deprecate-getwithdefault.md). <ide> - [#17571](https://github.com/emberjs/ember.js/pull/17571) [BUGFIX] Avoid tampering `...
1
Javascript
Javascript
correct the number of expected tests
da148f158f40b474841ad7a60cc39c5868cf420c
<ide><path>test/unit/core.js <ide> test("isFunction", function() { <ide> }); <ide> <ide> test( "isNumeric", function() { <del> expect( 38 ); <add> expect( 37 ); <ide> <ide> var t = jQuery.isNumeric, <ide> Traditionalists = /** @constructor */ function(n) {
1
PHP
PHP
fix tests parameter typehints
83d806918d339a5e7e92580e7ebbb0b870323a25
<ide><path>tests/TestCase/Error/ErrorHandlerTest.php <ide> public function memoryLimitProvider() <ide> * @dataProvider memoryLimitProvider <ide> * @return void <ide> */ <del> public function testIncreaseMemoryLimit($start, $adjust, $expected) <add> public function testIncreaseMemoryLimit(string $st...
1
Java
Java
fix typos in mergedannotationscollectiontests
d85a6c0bea2b1f2a33809475df0674479ea7f424
<ide><path>spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationsCollectionTests.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")...
1
Python
Python
add fp16 to transformer with benchmark tests.
b7e97bec293f668238aba8467286f3321b6ebd83
<ide><path>official/resnet/resnet_run_loop.py <ide> def define_resnet_flags(resnet_size_choices=None, dynamic_loss_scale=False, <ide> datasets_num_private_threads=True, <ide> datasets_num_parallel_batches=True, <ide> dynamic...
5
Go
Go
add proto validation at parse
0633b12b286d763521124f6d144deade89a89bfc
<ide><path>nat/nat.go <ide> package nat <ide> <ide> import ( <ide> "fmt" <del> "github.com/dotcloud/docker/utils" <ide> "strconv" <ide> "strings" <add> <add> "github.com/dotcloud/docker/utils" <ide> ) <ide> <ide> const ( <ide> func SplitProtoPort(rawPort string) (string, string) { <ide> return parts[1], parts[0] ...
1
Python
Python
simplify chained comparisons
ee1f0fa3e3c33205166d79c13e250db9d295570d
<ide><path>libcloud/common/aliyun.py <ide> class AliyunXmlResponse(XmlResponse): <ide> namespace = None <ide> <ide> def success(self): <del> return self.status >= 200 and self.status < 300 <add> return 200 <= self.status < 300 <ide> <ide> def parse_body(self): <ide> """ <ide><path>li...
11
PHP
PHP
add tests for invalid connection config
8d9eb78f4afb5aa1d25b67eac89c22e5ba27c9a0
<ide><path>tests/TestCase/Database/ConnectionTest.php <ide> public function testConnect() { <ide> $this->assertTrue($this->connection->isConnected()); <ide> } <ide> <add>/** <add> * Tests creating a connection using no driver throws an exception <add> * <add> * @expectedException \Cake\Database\Exception\MissingDri...
1
Ruby
Ruby
remove warning of circular require
80b8df5f3d09205d8f239e9aefd5ed0e0ddfd4a5
<ide><path>actionpack/lib/action_controller/metal/params_wrapper.rb <ide> require 'active_support/core_ext/hash/except' <ide> require 'active_support/core_ext/module/anonymous' <ide> require 'active_support/core_ext/struct' <del>require 'action_dispatch/http/mime_types' <add>require 'action_dispatch/http/mime_type' <id...
1
Python
Python
add cpu converters
ed80b6431d19726869673081a058687159f048ee
<ide><path>libcloud/utils/misc.py <ide> def to_k8s_memory_size_str_from_n_bytes(n_bytes, unit=None): <ide> return k8s_memory_size_str <ide> <ide> <add>def to_cpu_str(n_cpus): <add> """Convert number of cpus to cpu string <add> (e.g. 0.5 -> '500m') <add> """ <add> millicores = int(n_cpus * 1000) <add> ...
1
PHP
PHP
fix bug in fluent class
e8e7db687c6e93cd53b8b12ce761e39e367b8ab1
<ide><path>laravel/fluent.php <ide> public function __isset($key) <ide> */ <ide> public function __unset($key) <ide> { <del> return unset($this->attributes[$key]); <add> unset($this->attributes[$key]); <ide> } <ide> <ide> } <ide>\ No newline at end of file
1
Javascript
Javascript
make `isequal` its own module
149c4f41ee5c0cfc9143b5bfcf966109ddab94f8
<ide><path>packages/ember-runtime/lib/core.js <ide> @module ember <ide> @submodule ember-runtime <ide> */ <del> <del>/** <del> Compares two objects, returning true if they are logically equal. This is <del> a deeper comparison than a simple triple equal. For sets it will compare the <del> internal objects. For any o...
4
PHP
PHP
add missing typehint
dcbdaff0d53626cd6aa0e182850e7d9844cc89da
<ide><path>src/Routing/RouteCollection.php <ide> public function registerMiddleware($name, callable $middleware) <ide> * @param array $middlewareNames Names of the middleware <ide> * @return $this <ide> */ <del> public function middlewareGroup($name, $middlewareNames) <add> public function middlewa...
1
PHP
PHP
macth()
b82b72bc16a48c22cc3650adc326df4e4e018729
<ide><path>src/Illuminate/Routing/Route.php <ide> public function getMethods() <ide> */ <ide> public function methods() <ide> { <add> if (in_array('GET', $this->methods) && ! in_array('HEAD', $this->methods)) <add> { <add> $this->methods[] = 'HEAD'; <add> } <add> <ide> return $this->methods; <ide> } <ide> ...
3
Ruby
Ruby
accept parameters in methods delegated to tempfile
e9ba548baf74cc3a5ec65135dac385d81e14f06e
<ide><path>actionpack/lib/action_dispatch/http/upload.rb <ide> def initialize(hash) <ide> @headers = hash[:head] <ide> end <ide> <del> def read(*args) <del> @tempfile.read(*args) <del> end <del> <ide> # Delegate these methods to the tempfile. <del> [:open, :close, :p...
2
Text
Text
fix slack invitation link
c2681859531977fb83fee782f8aec6b50196d644
<ide><path>README.md <ide> # Chart.js <ide> <del>[![travis](https://img.shields.io/travis/chartjs/Chart.js.svg?style=flat-square&maxAge=60)](https://travis-ci.org/chartjs/Chart.js) [![coveralls](https://img.shields.io/coveralls/chartjs/Chart.js.svg?style=flat-square&maxAge=600)](https://coveralls.io/github/chartjs/Cha...
3
Ruby
Ruby
set source encoding
2efdeb7a9517b677240e2c821c97941f6b905923
<ide><path>actionpack/test/template/url_helper_test.rb <add># encoding: utf-8 <ide> require 'abstract_unit' <ide> <ide> RequestMock = Struct.new("Request", :request_uri, :protocol, :host_with_port, :env)
1
Python
Python
add cli option to manage html output
78efbd1101df63030dc1b6edf5650c5b211602dd
<ide><path>glances/glances.py <ide> from __future__ import generators <ide> <ide> __appname__ = 'glances' <del>__version__ = "1.4b13" <add>__version__ = "1.4b14" <ide> __author__ = "Nicolas Hennion <nicolas@nicolargo.com>" <ide> __licence__ = "LGPL" <ide> <ide> def __update__(self): <ide> self.process_all.appen...
1
Python
Python
add test to check comparison with nan
ad9a03084919c5be168327180bc6eb9ae186c2dc
<ide><path>numpy/core/tests/test_simd.py <ide> def test_special_cases(self): <ide> nnan = self.notnan(self.setall(self._nan())) <ide> assert nnan == [0]*self.nlanes <ide> <add> import operator <add> <add> @pytest.mark.parametrize('py_comp,np_comp', [ <add> (operator.lt, "cmplt"), <add> ...
1
Javascript
Javascript
replace hardgoto with api links
a7d595f349ff0bd9a41164a08ec4ad8cfed237e9
<ide><path>client/src/client-only-routes/ShowProfileOrFourOhFour.js <ide> import { <ide> userByNameSelector, <ide> userProfileFetchStateSelector, <ide> fetchProfileForUser, <del> usernameSelector, <del> hardGoTo as navigate <add> usernameSelector <ide> } from '../redux'; <ide> import FourOhFourPage from '../co...
9
Python
Python
fix typos in the comments for manifest
b5bb3605066e06dd522ed0d32bfde9292d104110
<ide><path>numpy/distutils/mingw32ccompiler.py <ide> def build_import_library(): <ide> # raise DistutilsPlatformError, msg <ide> return <ide> <add>#===================================== <add># Dealing with Visual Studio MANIFESTS <add>#===================================== <add> <ide> # Functions to deal wi...
1
Javascript
Javascript
memorize lazy data on access
d9238f061d95eaef977d9771c82febd58d6cacd4
<ide><path>lib/cache/FileCachePlugin.js <ide> <ide> "use strict"; <ide> <del>const fs = require("fs"); <ide> const path = require("path"); <ide> const createHash = require("../util/createHash"); <ide> const makeSerializable = require("../util/makeSerializable"); <ide> class Pack { <ide> this.invalid = false; <ide> ...
5
Javascript
Javascript
construct new buffer from buffer tojson() output
2cae44f16934836f0a66b2ea930a0604f505e571
<ide><path>lib/buffer.js <ide> function Buffer(subject, encoding) { <ide> this.length = subject > 0 ? subject >>> 0 : 0; <ide> else if (util.isString(subject)) <ide> this.length = Buffer.byteLength(subject, encoding = encoding || 'utf8'); <del> else if (util.isObject(subject)) <add> else if (util.isObject(s...
2
Javascript
Javascript
fix object comparisons in ie tests
b2ddd989b89acfeabcf92ffb2e180c04cd8d308b
<ide><path>packages/ember/tests/routing/basic_test.js <ide> asyncTest("Events are triggered on the current state", function() { <ide> events: { <ide> showStuff: function(handler, obj) { <ide> ok(handler instanceof App.HomeRoute, "the handler is an App.HomeRoute"); <del> deepEqual(obj, { name: "...
1
Javascript
Javascript
improve crypto coverage
513d9bb8aa53feb6630ac56fc231e846d928804f
<ide><path>test/parallel/test-crypto-dh.js <ide> let firstByte = ecdh1.getPublicKey('buffer', 'compressed')[0]; <ide> assert(firstByte === 2 || firstByte === 3); <ide> firstByte = ecdh1.getPublicKey('buffer', 'hybrid')[0]; <ide> assert(firstByte === 6 || firstByte === 7); <add>// format value should be string <add>asse...
1
Ruby
Ruby
fix to_rack for fully-scoped references
d0251c1abc3d63513c8b07647607e3a5654caedb
<ide><path>Library/Homebrew/formulary.rb <ide> def self.from_contents(name, path, contents, spec = :stable) <ide> end <ide> <ide> def self.to_rack(ref) <del> # First, check whether the rack with the given name exists. <add> # If using a fully-scoped reference, check if the formula can be resolved. <add> f...
2
Text
Text
remove unnecessary key attribute
96cd8bd5bb09083226e787f249444164ed9d0654
<ide><path>docs/tutorials/essentials/part-5-async-logic.md <ide> import { selectAllPosts, fetchPosts } from './postsSlice' <ide> // highlight-start <ide> const PostExcerpt = ({ post }) => { <ide> return ( <del> <article className="post-excerpt" key={post.id}> <add> <article className="post-excerpt"> <ide> ...
1
Go
Go
remove redundant pluginpermissiondenied
7f0cf432e98e1a2e2860faa36ec8bdc55d219e12
<ide><path>client/errors.go <ide> func (e objectNotFoundError) Error() string { <ide> return fmt.Sprintf("Error: No such %s: %s", e.object, e.id) <ide> } <ide> <del>type pluginPermissionDenied struct { <del> name string <del>} <del> <del>func (e pluginPermissionDenied) Error() string { <del> return "Permission denied...
2
Go
Go
prevent multiple parallel systemdiskusage call
5a9f2a3ce66d8b0954af965b0b8bf384df02c41a
<ide><path>daemon/daemon.go <ide> type Daemon struct { <ide> <ide> seccompProfile []byte <ide> seccompProfilePath string <add> <add> diskUsageRunning int32 <add> containersPruneRunning int32 <add> volumesPruneRunning int32 <add> imagesPruneRunning int32 <add> networksPruneRunning int32 <ide> } <id...
2
Javascript
Javascript
adapt abort tests for new windows code
82b44f465b830f2a131cd78e6dcb8cb261b17084
<ide><path>test/abort/test-abort-uncaught-exception.js <ide> function run(flags, argv2, signals) { <ide> child.on('exit', common.mustCall(function(code, sig) { <ide> if (common.isWindows) { <ide> if (signals) <del> assert.strictEqual(code, 0xC0000005); <add> assert.strictEqual(code, 0x80000003...
4
Python
Python
remove redundant tests from test_multiarray.py
33934d5751bb5acbd14da6a2dec9e3eeaaddb40f
<ide><path>numpy/core/tests/test_multiarray.py <ide> def test_3darray(self): <ide> assert_equal(array[1, 2, 3], from_c) <ide> <ide> <del>class PriorityNdarray(): <del> __array_priority__ = 1000 <del> <del> def __init__(self, array): <del> self.array = array <del> <del> def __lt__(self, array):...
1
Text
Text
clarify `requiremanualdestroy` option
79478113d4b405051a14678fdf2d5fd4b88b90f8
<ide><path>doc/api/async_hooks.md <ide> asyncResource.triggerAsyncId(); <ide> * `options` {Object} <ide> * `triggerAsyncId` {number} The ID of the execution context that created this <ide> async event. **Default:** `executionAsyncId()`. <del> * `requireManualDestroy` {boolean} Disables automatic `emitDestroy` when...
1
Python
Python
pass environment to cythonize script. closes #791
071d11cb35f276da4463978dfe6056765d106dbe
<ide><path>bin/cythonize.py <ide> def process_pyx(fromfile, tofile): <ide> <ide> try: <ide> try: <del> r = subprocess.call(['cython'] + flags + ['-o', tofile, fromfile]) <add> r = subprocess.call(['cython'] + flags + ['-o', tofile, fromfile], <add> shell...
1
Go
Go
simplify codes on calculating shutdown timeout
de68ac8393d32d2c2028dd11c5816430ad0d8d8b
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) shutdownContainer(c *container.Container) error { <ide> return nil <ide> } <ide> <del>// ShutdownTimeout returns the shutdown timeout based on the max stopTimeout of the containers, <del>// and is limited by daemon's ShutdownTimeout. <add>// ShutdownTimeout retu...
1
PHP
PHP
add closing ' mark
3eeaaeb79a78c42e1aafcab5dc27e5d6f5fee10b
<ide><path>src/ORM/Table.php <ide> public function newEntities(array $data, array $options = []) <ide> * <ide> * ``` <ide> * $article = $this->Articles->patchEntity($article, $this->request->data(), [ <del> * 'fieldList' => ['title', 'body', 'tags', 'comments], <add> * 'fieldList' => ['title', ...
1
Javascript
Javascript
remove duplicate link
b6f4770d114c79c98e62107edc395e7682a00047
<ide><path>website/docusaurus.config.js <ide> module.exports = { <ide> label: 'FAQ', <ide> to: 'faq' <ide> }, <del> { <del> label: 'Tutorial', <del> to: 'basics/basic-tutorial' <del> }, <ide> { <ide> label:...
1
Python
Python
fix token order in xlnet preprocessing
74c5035808de18b016c88b1f864d609bc684b367
<ide><path>examples/run_squad.py <ide> def load_and_cache_examples(args, tokenizer, evaluate=False, output_examples=Fal <ide> max_seq_length=args.max_seq_length, <ide> doc_stride=args.doc_stride, <ide> ...
2
Go
Go
fix couple of races with accessing maps
e6d87c0706d178407ffccaab5c3ffc13a9e7b02e
<ide><path>volume/store/store.go <ide> func (s *VolumeStore) create(name, driverName string, opts, labels map[string]st <ide> if err != nil { <ide> return nil, err <ide> } <add> s.globalLock.Lock() <ide> s.labels[name] = labels <add> s.globalLock.Unlock() <ide> <ide> if s.db != nil { <ide> metadata := &volumeM...
1
Ruby
Ruby
use .diff instead of .patch for github diffs
7fe9413cf16d70e89fdb79228a297d98a2608625
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_patch(patch) <ide> end <ide> when %r[macports/trunk] <ide> problem "MacPorts patches should specify a revision instead of trunk:\n#{patch.url}" <add> when %r[^https?://github\.com/.*commit.*\.patch$] <add> problem "GitHub appends a git ver...
1
Javascript
Javascript
use indexof util for ie8 compatibility
b97f08383c881afc77525e0f318de6b5cfc0e219
<ide><path>src/lib/duration/valid.js <ide> import toInt from '../utils/to-int'; <add>import indexOf from '../utils/index-of'; <ide> import {Duration} from './constructor'; <ide> import {createDuration} from './create'; <ide> <ide> var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', '...
1
PHP
PHP
remove unexecutable line
5c8ed0329317118a80b63b8c04fc7fc64555582d
<ide><path>tests/TestCase/Controller/Component/RequestHandlerComponentTest.php <ide> public function testAddInputTypeException() <ide> { <ide> $restore = error_reporting(E_ALL & ~E_USER_DEPRECATED); <ide> $this->RequestHandler->addInputType('csv', ['I am not callable']); <del> error_reporting...
1
Javascript
Javascript
fix reference to geolocationexample
a7e977c5ddf372b59ab4c77a0ced4fa2d67df604
<ide><path>Examples/UIExplorer/GeoLocationExample.js <ide> /** <ide> * Copyright 2004-present Facebook. All Rights Reserved. <ide> * <del> * @providesModule GeolocationExample <add> * @providesModule GeoLocationExample <ide> */ <ide> /* eslint no-console: 0 */ <ide> 'use strict'; <ide><path>Examples/UIExplorer/UIExp...
2
Go
Go
delay port redirect until packet reaches container
3c9d05fba58fb8ff688ba5a827abacc609c50e76
<ide><path>libnetwork/service_linux.go <ide> import ( <ide> <ide> func init() { <ide> reexec.Register("fwmarker", fwMarker) <add> reexec.Register("redirecter", redirecter) <ide> } <ide> <ide> func newService(name string, id string, ingressPorts []*PortConfig, aliases []string) *service { <ide> func (sb *sandbox) pop...
1
Python
Python
add documentation to gcs_download_operator
206681f7b2afd0944ef87b7c469c65cd0d81b71c
<ide><path>airflow/contrib/operators/gcs_download_operator.py <ide> def __init__( <ide> **kwargs): <ide> """ <ide> Create a new GoogleCloudStorageDownloadOperator. <add> <add> :param bucket: The Google cloud storage bucket where the object is. <add> :type bucket: string <add> ...
1
Python
Python
replace 'unique samples' with 'samples'
2979250119547754c60cf5c2df1c60708a1bd2df
<ide><path>keras/engine/training.py <ide> def fit(self, <ide> before declaring one epoch finished and starting the <ide> next epoch. When training with input tensors such as <ide> TensorFlow data tensors, the default `None` is equal to <del> the number of u...
2
PHP
PHP
fix errored namespaces.
5ea6689a39fc05376cd20832b531e9cb1d71096e
<ide><path>tests/Foundation/Http/KernelTest.php <ide> <?php <ide> <del>namespace Illuminate\Tests\Foundation\Bootstrap\Http; <add>namespace Illuminate\Tests\Foundation\Http; <ide> <ide> use Illuminate\Events\Dispatcher; <ide> use Illuminate\Foundation\Application; <ide><path>tests/Foundation/Http/Middleware/ConvertEm...
8
Text
Text
fix typo by changing 'for' to 'from'
c8bc3c2943b86d26f10d66c97579ea6aa35bb897
<ide><path>guides/source/layouts_and_rendering.md <ide> Just like the `:status` option for `render`, `:status` for `redirect_to` accepts <ide> <ide> #### The Difference Between `render` and `redirect_to` <ide> <del>Sometimes inexperienced developers think of `redirect_to` as a sort of `goto` command, moving execution...
1
Ruby
Ruby
make `parser#parse` return `args`
bf13db3367fc474d9f012984ddd482ae06a01ad8
<ide><path>Library/Homebrew/cli/parser.rb <ide> def parse(argv = @argv, allow_no_named_args: false) <ide> Homebrew.args = @args <ide> <ide> @args_parsed = true <del> @parser <add> @args <ide> end <ide> <ide> def global_option?(name, desc) <ide><path>Library/Homebrew/dev-cmd/m...
3
Ruby
Ruby
kill legacy dispatcher
0c3cde404ac45d59439c324a4a13ec239c582a5c
<ide><path>actionpack/lib/action_dispatch/railtie.rb <ide> class Railtie < Rails::Railtie <ide> <ide> # Prepare dispatcher callbacks and run 'prepare' callbacks <ide> initializer "action_dispatch.prepare_dispatcher" do |app| <del> # TODO: This used to say unless defined?(Dispatcher). Find out why and fix....
2
PHP
PHP
get basic html layout in place
4e2698e05e3d9c92ef405bac93ba5fb7641b539a
<ide><path>src/Error/Debug/HtmlFormatter.php <ide> */ <ide> class HtmlFormatter implements FormatterInterface <ide> { <add> /** <add> * @var bool <add> */ <add> protected static $outputHeader = false; <add> <ide> /** <ide> * Random id so that HTML ids are not shared between dump outputs. <ide> ...
3
Java
Java
fix crash when destroying catalyst
f1015664e92f02c33417a591a2438db7c0cd3811
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java <ide> public List<ViewManager> createAllViewManagers( <ide> } <ide> <ide> public @Nullable ViewManager createViewManager(String viewManagerName) { <del> ReactApplicationContext context = <del> Assertions.assertNotNull((Rea...
2
PHP
PHP
add test for scriptstart() default behavior
6553c3f554505031c2f521f5e30dcbbfda988967
<ide><path>tests/TestCase/View/Helper/HtmlHelperTest.php <ide> public function testScriptBlock() <ide> */ <ide> public function testScriptStartAndScriptEnd() <ide> { <del> $result = $this->Html->scriptStart(['safe' => true]); <add> $result = $this->Html->scriptStart(); <ide> $this->as...
1
Java
Java
refine behavior on error after response committed
f05175586e32e660ff190311f0b102c2b3b3a398
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/ReactorHttpHandlerAdapter.java <ide> public Mono<Void> apply(HttpServerRequest request, HttpServerResponse response) <ide> } <ide> <ide> return this.httpHandler.handle(adaptedRequest, adaptedResponse) <del> .onErrorResume(ex -> { <del>...
6
Ruby
Ruby
remove unused revision default
492ce9cc5e98ef9fa330abb93f4082cdb4d034bf
<ide><path>Library/Homebrew/bottles.rb <ide> require 'extend/ARGV' <ide> require 'bottle_version' <ide> <del>def bottle_filename f, options={:tag=>bottle_tag, :bottle_revision=>nil} <add>def bottle_filename f, options={:tag=>bottle_tag} <ide> name = f.name.downcase <ide> version = f.stable.version <ide> options[...
1
Text
Text
fix s/rststream/close in example
47a282293f62813a88b4c4ba18bc5e5246a6515c
<ide><path>doc/api/http2.md <ide> const { NGHTTP2_CANCEL } = http2.constants; <ide> const req = client.request({ ':path': '/' }); <ide> <ide> // Cancel the stream if there's no activity after 5 seconds <del>req.setTimeout(5000, () => req.rstStream(NGHTTP2_CANCEL)); <add>req.setTimeout(5000, () => req.close(NGHTTP2_CAN...
1
Javascript
Javascript
remove deprecation warnings in http module
a63fd0fe560055428bc2edb8ee7af2ffe61cd7bd
<ide><path>lib/http.js <ide> IncomingMessage.prototype._parseQueryString = function () { <ide> throw new Error("_parseQueryString is deprecated. Use require(\"querystring\") to parse query strings.\n"); <ide> }; <ide> <del>var setBodyEncodingWarning; <del> <del>IncomingMessage.prototype.setBodyEncoding = function (e...
1
Ruby
Ruby
make valid_type? public
5d528f835e871f5f9d4b68e8a81cfbe900b7e718
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb <ide> def close <ide> pool.checkin self <ide> end <ide> <add> def valid_type?(type) <add> true <add> end <add> <ide> protected <ide> <ide> def log(sql, name = "SQL", binds = []) <ide> def trans...
4
Text
Text
remove nbsp's across tables in the docs
83ed1f391bc6551477b6c97d7ffec61ac2cf80b3
<ide><path>website/docs/api/cli.md <ide> $ python -m spacy project run [subcommand] [project_dir] [--force] [--dry] <ide> | `subcommand` | Name of the command or workflow to run. ~~str (positional)~~ | <ide> | `project_dir` | Path to project directory. Defaults to current working directo...
9
Ruby
Ruby
fix bulk change_table with change_null and default
fbb6511f399885035ad67e416dd8802b8b041b6d
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb <ide> def bulk_change_table(table_name, operations) <ide> <ide> if respond_to?(method, true) <ide> sqls, procs = Array(send(method, table, *arguments)).partition { |v| v.is_a?(String) } <del> ...
3
PHP
PHP
allow returning array when routing mail
ab9686ae58f1e89bae4e31fcb70bacc0ab546eb6
<ide><path>src/Illuminate/Notifications/Channels/MailChannel.php <ide> public function send($notifiable, Notification $notification) <ide> $message = $notification->toMail($notifiable); <ide> <ide> $this->mailer->send($message->view, $message->toArray(), function ($m) use ($notifiable, $notification, $...
1
Python
Python
fix infinite recursion in spacy.info
07199c3e8b1f7f91c41e7d19f364c902d3e9590b
<ide><path>spacy/__init__.py <ide> def load(name, **overrides): <ide> overrides['path'] = model_path <ide> <ide> return cls(**overrides) <del> <del> <del>def info(name, markdown): <del> info(name, markdown)
1
Python
Python
remove forgotten print
2d1a9997d100f208207f70231890f1bfcf8e434b
<ide><path>libcloud/compute/drivers/packet.py <ide> def list_images(self): <ide> <ide> def list_sizes(self): <ide> data = self.connection.request('/plans').object['plans'] <del> print data <ide> return [self._to_size(size) for size in data if <ide> size.get('line') == 'bareme...
1
Javascript
Javascript
add some basic examples
89089f5546555d41fcc37c2640aa1edbcdf5e7ee
<ide><path>examples/basic-css/pages/index.js <add>import React from 'react' <add>import { css, StyleSheet } from 'next/css' <add> <add>export default () => ( <add> <div className={css(styles.main)}> <add> <p>Hello World</p> <add> </div> <add>) <add> <add>const styles = StyleSheet.create({ <add> main: { <add> f...
7
Go
Go
suppress false positive for g404 (gosec)
561a010161d20fa3367b6b7e9efefe04161c1291
<ide><path>libnetwork/networkdb/cluster.go <ide> func randomOffset(n int) int { <ide> return 0 <ide> } <ide> <del> val, err := rand.Int(rand.Reader, big.NewInt(int64(n))) <add> val, err := rand.Int(rand.Reader, big.NewInt(int64(n))) // #nosec G404 -- False positive; see https://github.com/securego/gosec/issues/862 ...
1
Text
Text
fix typos in render targets article
ea3e339568061152db716b14582be519988842c0
<ide><path>threejs/lessons/threejs-rendertargets.md <ide> After you render to it you can use that texture like any other texture. <ide> <ide> Let's make a simple example. We'll start with an example from [the article on responsiveness](threejs-responsive.html). <ide> <del>Rendering to a render target just almost exac...
1
Ruby
Ruby
fix action mailer tests after old mapper removal
b7bfeaa9fc7eaf315ce8eaae129fd0d02c9d09d0
<ide><path>actionmailer/test/url_test.rb <ide> def teardown <ide> def test_signed_up_with_url <ide> UrlTestMailer.delivery_method = :test <ide> <del> assert_deprecated do <del> AppRoutes.draw do |map| <del> map.connect ':controller/:action/:id' <del> map.welcome 'welcome', :controller=>"foo...
1
Java
Java
fix handling of protected visibility
9820e3341d8691eddcadc0adc33e2a90bde1b37e
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/aot/InstanceSupplierCodeGenerator.java <ide> private CodeBlock generateCodeForConstructor(RegisteredBean registeredBean, <ide> .getUserClass(constructor.getDeclaringClass()); <ide> boolean dependsOnBean = ClassUtils.isInnerClass(declaringClas...
1
Javascript
Javascript
add test for issue
c486d7a87f6015d7aac9ce59463f1a9927043ef8
<ide><path>packages/ember-metal/tests/computed_test.js <ide> import { <ide> set, <ide> isWatching, <ide> addObserver, <add> notifyPropertyChange, <ide> } from '..'; <ide> import { meta as metaFor } from 'ember-meta'; <ide> import { moduleFor, AbstractTestCase } from 'internal-test-helpers'; <ide> moduleFor( <ide...
1
Ruby
Ruby
use string for arguments in server test
d0bb649cbf415093dd1cc3f08b7b746dab5ad32f
<ide><path>railties/test/commands/server_test.rb <ide> def test_argument_precedence_over_environment_variable <ide> end <ide> <ide> def test_records_user_supplied_options <del> server_options = parse_arguments(["-p", 3001]) <add> server_options = parse_arguments(["-p", "3001"]) <ide> assert_equal [:Port]...
1
Javascript
Javascript
remove string literal arg from assertion
cc58e5546caa07b36c78f8826fd73493a82c397c
<ide><path>test/parallel/test-fs-readfile.js <ide> for (const e of fileInfo) { <ide> fs.readFile(e.name, common.mustCall((err, buf) => { <ide> console.log(`Validating readFile on file ${e.name} of length ${e.len}`); <ide> assert.ifError(err); <del> assert.deepStrictEqual(buf, e.contents, 'Incorrect file co...
1
Javascript
Javascript
change mergemap -> map in redux-observable example
bc185878e8afae7de6598b5b7538170756143ec1
<ide><path>examples/with-redux-observable/redux/epics.js <ide> import { interval } from 'rxjs/observable/interval' <ide> import { of } from 'rxjs/observable/of' <del>import { takeUntil, mergeMap, catchError } from 'rxjs/operators' <add>import { takeUntil, mergeMap, catchError, map } from 'rxjs/operators' <ide> import {...
1
Javascript
Javascript
add temporary build debugging
86d45a5b9bd3c81b5b4f6ededebad065cb3f21d3
<ide><path>src/package-transpilation-registry.js <ide> class PackageTranspilationRegistry { <ide> const packagePathWithSep = packagePath.endsWith(path.sep) ? <ide> packagePath : packagePath + path.sep; <ide> Object.keys(this.specByFilePath).forEach(filePath => { <add> console.log('checking if ' + fil...
1
Javascript
Javascript
add missing line break
5be6f993aa64de4b7da4fd26dcd2cf5285bd6ed3
<ide><path>src/ng/filter/filters.js <ide> var ZERO_CHAR = '0'; <ide> <div ng-controller="ExampleController"> <ide> <input type="number" ng-model="amount" aria-label="amount"> <br> <ide> default currency symbol ($): <span id="currency-default">{{amount | currency}}</span><br> <del> custo...
1
Java
Java
fix typo in defaultparthttpmessagereader
3a35d79c72b1152313aec5d499f678fb57a96099
<ide><path>spring-web/src/main/java/org/springframework/http/codec/multipart/DefaultPartHttpMessageReader.java <ide> public void setStreaming(boolean streaming) { <ide> * Defaults to UTF-8 as per RFC 7578. <ide> * @param headersCharset the charset to use for decoding headers <ide> * @since 5.3.6 <del> * @see <a ...
1
Python
Python
use testcase instead of numpytestcase
59e1ee936c730b19a4c4016172658695fb197ada
<ide><path>numpy/lib/tests/test_function_base.py <ide> def test_simple(self): <ide> assert(all(unique(x) == [1+1j, 1+10j, 5+6j, 10])) <ide> <ide> <del>class TestPiecewise(NumpyTestCase): <add>class TestPiecewise(TestCase): <ide> def check_simple(self): <ide> # Condition is single bool list <ide> ...
1
Text
Text
provide more context on techinical values
6d3775e29117d8ddf6879ed124dea7839a613986
<ide><path>doc/guides/technical-values.md <ide> The project uses these technical values to establish priorities and guide <ide> collaboration. <ide> <add>These are the shared values as of this writing and will <add>evolve. We hope they are useful to people new <add>to the project in order to better understand which co...
1
Text
Text
add overlay2 description to overlayfs-driver.md
8625adbd67f08f2da7816d0ce9d2e9267f7a4f6b
<ide><path>docs/userguide/storagedriver/overlayfs-driver.md <ide> using it in production Docker environments. <ide> Docker's `overlay` storage driver leverages several OverlayFS features to build <ide> and manage the on-disk structures of images and containers. <ide> <add>Since version 1.12, Docker also provides `ove...
1
Text
Text
add ruyadorno to collaborators
d36e832a32dfb0c0c49bf9e3dee93ff231c97eb0
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Ron Korving** &lt;ron@ronkorving.nl&gt; <ide> * [rubys](https://github.com/rubys) - <ide> **Sam Ruby** &lt;rubys@intertwingly.net&gt; <add>* [ruyadorno](https://github.com/ruyadorno) - <add>**Ruy Adorno** &lt;ruyadorno@g...
1
PHP
PHP
remove options key in paginatorhelper tests
0d39f2d97e3ef74a8479dcedf736bbebdcfcf73b
<ide><path>Cake/Test/TestCase/View/Helper/PaginatorHelperTest.php <ide> <?php <ide> /** <del> * PaginatorHelperTest file <del> * <ide> * PHP 5 <ide> * <ide> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> <ide> * <ide> * @copyright Copyright (c) Cake Software Foundation, Inc. (htt...
1
PHP
PHP
fix filesystem prepend when file doesn't exist
c0efbe169bf9840e9629ae0351a2eff7b62a3feb
<ide><path>src/Illuminate/Filesystem/Filesystem.php <ide> public function prepend($path, $data) <ide> } <ide> else <ide> { <del> return $this->put($data); <add> return $this->put($path, $data); <ide> } <ide> } <ide>
1
Ruby
Ruby
keep the first string we fetch
d2d003e8f8051e4d1a941319829603c1c713aedf
<ide><path>activesupport/test/caching_test.rb <ide> def test_local_cache_raw_values_with_marshal <ide> <ide> def test_read_should_return_a_different_object_id_each_time_it_is_called <ide> @cache.write('foo', 'bar') <del> assert_not_equal @cache.read('foo').object_id, @cache.read('foo').object_id <ide> val...
1
Text
Text
add net socket write signature
8e305890c9eb4488c7daf4600eca016b814b39bf
<ide><path>doc/api/net.md <ide> active socket in the event system. If the socket is already `unref`ed calling <ide> added: v0.1.90 <ide> --> <ide> <add>* `data` {string|Buffer|Uint8Array} <add>* `encoding` {string} Only used when data is `string`. **Default:** `utf8`. <add>* `callback` {Function} <ide> * Returns: {boo...
1
Javascript
Javascript
give priority to initial window background
82fbec0879b7955752d3769afd44c39898f26f32
<ide><path>static/index.js <ide> <ide> var backgroundStylesheet = document.createElement('style') <ide> backgroundStylesheet.type = 'text/css' <del> backgroundStylesheet.innerText = 'html, body { background: ' + backgroundColor + '; }' <add> backgroundStylesheet.innerText = 'html, body { background: ' + ...
1
Python
Python
fix lgtm.com error
34efd6957e3ca3d9981042b0db21addf4f4884ef
<ide><path>numpy/linalg/lapack_lite/clapack_scrub.py <ide> def OutOfHeader(line): <ide> return lines.getValue() <ide> <ide> def removeSubroutinePrototypes(source): <del> expression = re.compile( <del> r'/\* Subroutine \*/^\s*(?:(?:inline|static)\s+){0,2}(?!else|typedef|return)\w+\s+\*?\s*(\w+)\s*\([^0]+\...
1
Python
Python
add more optional_next tests
346b570fd3d59b3f2a9a436ecbceb6353956b544
<ide><path>official/resnet/keras/keras_imagenet_benchmark.py <ide> def benchmark_8_gpu_fp16_dynamic_tweaked(self): <ide> FLAGS.data_delay_prefetch = True <ide> self._run_and_report_benchmark() <ide> <add> def benchmark_xla_8_gpu_fp16_optional_next(self): <add> """Test Keras model with XLA, 8 GPUs and fp16....
1
Javascript
Javascript
replace 'blacklist' with 'blocklist'
36f0ad2f985c3289018f0fdaaddf309cc9458d9b
<ide><path>test/specs/helpers/parseHeaders.spec.js <ide> describe('helpers::parseHeaders', function () { <ide> <ide> it('should handle duplicates', function() { <ide> var parsed = parseHeaders( <del> 'Age: age-a\n' + // age is in ignore duplicates blacklist <add> 'Age: age-a\n' + // age is in ignore du...
1
Python
Python
fix stray pos in language stubs
ad1c747c6b1ecb7dbc4bcbab10f69bfa5198099b
<ide><path>spacy/es/language_data.py <ide> "vs.": [{"F": "vs."}], <ide> <ide> "''": [{"F": "''"}], <del> "—": [{"F": "—", "L": "--", "pos": ":"}], <add> "—": [{"F": "—", "L": "--", "pos": "$,"}], <ide> <ide> "a.m.": [{"F": "a.m."}], <ide> "p.m.": [{"F": "p.m."}], <ide><path>spacy/fr/language_dat...
4
Python
Python
use the same pattern as everywhere else
4621ad6f9d89637745f32e18e4e36f3f5212d4b9
<ide><path>src/transformers/tokenization_transfo_xl.py <ide> <ide> import numpy as np <ide> <del>from .file_utils import cached_path <add>from .file_utils import cached_path, is_torch_available <ide> from .tokenization_utils import PreTrainedTokenizer <ide> <ide> <del>try: <add>if is_torch_available(): <ide> im...
1
PHP
PHP
add support for is() with multiple types
d4a3594e4f53eca1090eb8ab4f30e03304bb305e
<ide><path>lib/Cake/Network/CakeRequest.php <ide> public function __isset($name) { <ide> } <ide> <ide> /** <del> * Check whether or not a Request is a certain type. Uses the built in detection rules <del> * as well as additional rules defined with CakeRequest::addDetector(). Any detector can be called <add> * Check w...
2
Text
Text
remove outdated reference to updating /etc/hosts
171f5d84f908056353d5cd138d13de1636447d68
<ide><path>docs/reference/run.md <ide> If a container is connected to the default bridge network and `linked` <ide> with other containers, then the container's `/etc/hosts` file is updated <ide> with the linked container's name. <ide> <del>If the container is connected to user-defined network, the container's <del>`/e...
1
Javascript
Javascript
remove excessive instrumentation
9d13b7cf3dff1bd3298bbbe48da01d94bd848f56
<ide><path>packages/ember-handlebars/lib/helpers/binding.js <ide> function bind(property, options, preserveContext, shouldDisplay, valueNormalizer <ide> fn = options.fn, <ide> inverse = options.inverse, <ide> view = data.view, <del> instrumentName = view.instrumentName, <ide> currentContext...
4
Java
Java
add contravariant for min and max
a884a67a7c2b4c4f51d21d6219db7a039fdb9f83
<ide><path>rxjava-core/src/main/java/rx/Observable.java <ide> public static Observable<Double> averageDoubles(Observable<Double> source) { <ide> * if the source is empty <ide> * @see <a href="http://msdn.microsoft.com/en-us/library/hh229715(v=vs.103).aspx">MSDN: Observable.Min</a> <ide> */ <de...
2
Python
Python
improve matcher tests re issue
2d3ce89b78fab01608b389ecc07a6edda30609c5
<ide><path>spacy/tests/matcher/test_matcher_logic.py <ide> import pytest <ide> import re <ide> from spacy.matcher import Matcher <del>from spacy.tokens import Doc <add>from spacy.tokens import Doc, Span <ide> <ide> <ide> pattern1 = [{"ORTH": "A", "OP": "1"}, {"ORTH": "A", "OP": "*"}] <ide> def test_matcher_end_zero_p...
1
Python
Python
add description method in bigquerycursor class
7d2c2ee879656faf47829d1ad89fc4441e19a66e
<ide><path>airflow/providers/google/cloud/hooks/bigquery.py <ide> def __init__( <ide> self.job_id = None # type: Optional[str] <ide> self.buffer = [] # type: list <ide> self.all_pages_loaded = False # type: bool <add> self._description = [] # type: List <ide> <ide> @property <del...
2
Javascript
Javascript
fix url in _http-benchmarkers.js
a3778cb9b1fcd91d06a449af5f6bd166f3d36bee
<ide><path>benchmark/_http-benchmarkers.js <ide> const path = require('path'); <ide> const fs = require('fs'); <ide> <ide> const requirementsURL = <del> 'https://github.com/nodejs/node/blob/master/doc/guides/writing-and-running-benchmarks.md##http-benchmark-requirements'; <add> 'https://github.com/nodejs/node/blob/m...
1
Text
Text
fix examples in buffer.md to avoid confusion
0d0028935b136d80bf137962159ddde74337edf5
<ide><path>doc/api/buffer.md <del># Buffer <add># Buffer <ide> <ide> > Stability: 2 - Stable <ide> <ide> are unknown and *could contain sensitive data*. Use <ide> Example: <ide> <ide> ```js <del>const buf = new Buffer(5); <add>const buf = new Buffer(10); <ide> <del>// Prints: (contents may vary): <Buffer 78 e0 82 ...
1
Javascript
Javascript
use different tmpdir
8cd3a38fd4870faa4b86498230c4ff6526d270e5
<ide><path>packager/blacklist.js <ide> var path = require('path'); <ide> // Don't forget to everything listed here to `package.json` <ide> // modulePathIgnorePatterns. <ide> var sharedBlacklist = [ <del> /js\/tmp\/.*/, <ide> /node_modules[/\\]react[/\\]dist[/\\].*/, <ide> 'node_modules/react/lib/React.js', <ide> ...
1
Javascript
Javascript
add guard to originalconsole
54d331895c721fa85dc0ee237a3bbc04da3a324d
<ide><path>lib/internal/bootstrap_node.js <ide> enumerable: true, <ide> get: function() { <ide> if (!console) { <del> console = installInspectorConsole(originalConsole); <add> console = originalConsole === undefined ? <add> NativeModule.require('console') : <add> ...
1
Python
Python
fix warning in ``test_get_sync_subtask_option``.
69093e535b9f05b34af7b88eec3ce238ad202ed2
<ide><path>t/unit/tasks/test_result.py <ide> def add_pending_result(self, *args, **kwargs): <ide> def wait_for_pending(self, *args, **kwargs): <ide> return True <ide> <add> def remove_pending_result(self, *args, **kwargs): <add> return True <add> <ide> <ide> class test_AsyncResult: <ide>
1