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
Python
Python
remove mock http methods which are not needed
8f7ba3d757160aa3dd25d522fe85e9a093eea2b0
<ide><path>libcloud/test/storage/test_s3.py <ide> def _foo_bar_container_foo_bar_object_NO_BUFFER(self, method, url, body, headers <ide> headers, <ide> httplib.responses[httplib.OK]) <ide> <del> def _foo_bar_container_foo_test_upload_INVALID_HASH1(self, method, url, <del> ...
1
Javascript
Javascript
fix loading of limits
59c06234f9b55e76c2e0c3f27274eb730dfea55e
<ide><path>glances/outputs/static/js/stats_controller.js <ide> glancesApp.controller('statsController', function($scope, $http, $interval, $q, <ide> } <ide> <ide> $scope.init_limits = function() { <del> $scope.plugins_limits(); <add> $http.get('/api/2/all/limits').success(function(response, status,...
1
Go
Go
replace newtimer().c with after
1a517a4a429d2b4db15383fc9d514fc8db66f8d3
<ide><path>api/server/router/system/system_routes.go <ide> func (s *systemRouter) getEvents(ctx context.Context, w http.ResponseWriter, r * <ide> <ide> if !onlyPastEvents { <ide> dur := until.Sub(now) <del> timeout = time.NewTimer(dur).C <add> timeout = time.After(dur) <ide> } <ide> } <ide>
1
Javascript
Javascript
keep decimals in results
7889416b8a93b70fbc1ebfe65b8918f84216c347
<ide><path>benchmark/common.js <ide> function formatResult(data) { <ide> conf += ' ' + key + '=' + JSON.stringify(data.conf[key]); <ide> } <ide> <del> const rate = Math.floor(data.rate) <del> .toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1,'); <add> var rate = data.rate.toString().split('...
2
Python
Python
fix minor typo and add matrix dimension check
91c671ebabb3449fbbaefc2c4d959566eaed48dc
<ide><path>matrix/inverse_of_matrix.py <ide> def inverse_of_matrix(matrix: list[list[float]]) -> list[list[float]]: <ide> [[0.25, -0.5], [-0.3, 1.0]] <ide> """ <ide> <del> D = Decimal # An abbreviation to be conciseness <add> D = Decimal # An abbreviation for conciseness <add> <add> # Check if the p...
1
Javascript
Javascript
add tests for compiler dependency errors
339add578ddd09a5f2c9b17444b8a59f1d040829
<ide><path>test/MultiCompiler.test.js <ide> describe("MultiCompiler", () => { <ide> env.callback.callCount.should.be.exactly(1); <ide> }); <ide> }); <add> <add> describe("with missing compiler dependencies", () => { <add> beforeEach(() => { <add> setupTwoCompilerEnvironment(env, { <add> name: "compil...
1
Text
Text
fix typo in parseargs default value
b4efac4820e308daeea87cf5283cbcb0c9e2c950
<ide><path>doc/api/util.md <ide> changes: <ide> * `short` {string} A single character alias for the option. <ide> * `default` {string | boolean | string\[] | boolean\[]} The default option <ide> value when it is not set by args. It must be of the same type as the <del> the `type` property. When `mult...
1
Javascript
Javascript
add pointer support
d9b42ddbbd22cc1cba9aa447926be8026674c73f
<ide><path>src/ngTouch/swipe.js <ide> ngTouch.factory('$swipe', [function() { <ide> move: 'touchmove', <ide> end: 'touchend', <ide> cancel: 'touchcancel' <add> }, <add> 'pointer': { <add> start: 'pointerdown', <add> move: 'pointermove', <add> end: 'pointerup', <add> cancel: '...
2
Python
Python
use absolute imports
d4b88c1dbd6898fb6fcebc97f36b421999340f71
<ide><path>doc/cdoc/numpyfilter.py <ide> Also, add Doxygen /** and /**< syntax automatically where appropriate. <ide> <ide> """ <del>from __future__ import division <add>from __future__ import division, absolute_import <ide> <ide> import sys <ide> import re <ide><path>doc/cython/run_test.py <ide> #!/usr/bin/env pytho...
300
Javascript
Javascript
reject public keys properly
c64ed10d8067fc3b21578d3eafe322d0e9496980
<ide><path>lib/internal/crypto/keys.js <ide> function prepareAsymmetricKey(key, ctx) { <ide> ...(ctx !== kCreatePrivate ? ['KeyObject'] : [])], <ide> key); <ide> } <del> return { data, ...parseKeyEncoding(key, undefined) }; <add> <add> const isPublic = <add> (ctx === kConsumePrivate || c...
2
PHP
PHP
apply fixes from styleci
3d432b4d3eba328ab80c9c180042385b519228c7
<ide><path>src/Illuminate/Foundation/Testing/Constraints/SeeInOrder.php <ide> public function __construct($content) <ide> * @param array $values <ide> * @return bool <ide> */ <del> public function matches($values) : bool <add> public function matches($values): bool <ide> { <ide> $posi...
2
Javascript
Javascript
add `byteswritten` test for `http2stream`
1aa491a88fdaf8695dc49ede67fce82ee44e53b6
<ide><path>test/parallel/test-http2-byteswritten-server.js <add>'use strict'; <add> <add>const common = require('../common'); <add>if (!common.hasCrypto) <add> common.skip('missing crypto'); <add>const assert = require('assert'); <add>const http2 = require('http2'); <add> <add>const http2Server = http2.createServer(co...
1
Ruby
Ruby
add missing cpath environment variable
61076c1a11b932a7803b5c2748a2baa5b1d4bda9
<ide><path>Library/Homebrew/cmd/--env.rb <ide> def build_env_keys env <ide> HOMEBREW_USE_GCC HOMEBREW_USE_LLVM HOMEBREW_SVN HOMEBREW_GIT <ide> HOMEBREW_SDKROOT HOMEBREW_BUILD_FROM_SOURCE <ide> MAKE GIT CPP <del> ACLOCAL_PATH OBJC PATH ].select{ |key| env.fetch(key) if env.key? key } <add> AC...
1
Go
Go
fix missing host, remove urlutil.istransporturl()
12424cfa6fce22420423520078bd4d7e0a2de3db
<ide><path>daemon/logger/fluentd/fluentd.go <ide> package fluentd // import "github.com/docker/docker/daemon/logger/fluentd" <ide> <ide> import ( <ide> "math" <del> "net" <ide> "net/url" <ide> "strconv" <ide> "strings" <ide> import ( <ide> "github.com/docker/docker/daemon/logger" <ide> "github.com/docker/docker/...
2
PHP
PHP
apply fixes from styleci
417bfdb24d703fd75e256fc1f070ec12c526b215
<ide><path>src/Illuminate/Validation/Concerns/ValidatesAttributes.php <ide> protected function shouldBlockPhpUpload($value, $parameters) <ide> } <ide> <ide> $phpExtensions = [ <del> 'php', 'php3', 'php4', 'php5', 'phtml', 'phar' <add> 'php', 'php3', 'php4', 'php5', 'phtml', 'phar'...
1
Text
Text
add lambdas in conditional validations
3cb491f327de27d2d5106f4340e7b36c70cb9403
<ide><path>guides/source/active_record_validations.md <ide> class Account < ApplicationRecord <ide> end <ide> ``` <ide> <add>As `Lambdas` are a type of `Proc`, they can also be used to write inline <add>conditions in a shorter way. <add> <add>```ruby <add>validates :password, confirmation: true, unless: -> { password....
1
Text
Text
add link for domain-specific language [ci skip]
f57e1a224540b40a552f2f79da181caf969bdbc8
<ide><path>guides/source/getting_started.md <ide> Rails.application.routes.draw do <ide> # ... <ide> ``` <ide> <del>This is your application's _routing file_ which holds entries in a special DSL <del>(domain-specific language) that tells Rails how to connect incoming requests to <add>This is your application's _rout...
1
PHP
PHP
improve exception message
58655bee45acf5d6d808d1f4e6e4e941984e4a25
<ide><path>src/View/Form/ContextFactory.php <ide> public function get(ServerRequest $request, array $data = []): ContextInterface <ide> <ide> if (!isset($context)) { <ide> throw new RuntimeException(sprintf( <del> 'No context provider found for entity of type `%s`.', <add> ...
3
Go
Go
fix failing test to use kill instead of stop
4434dcee89f7d0d0239f6b492b24e940cdbafb21
<ide><path>integration/server_test.go <ide> func TestRestartKillWait(t *testing.T) { <ide> }) <ide> } <ide> <del>func TestCreateStartRestartStopStartKillRm(t *testing.T) { <add>func TestCreateStartRestartKillStartKillRm(t *testing.T) { <ide> eng := NewTestEngine(t) <ide> srv := mkServerFromEngine(eng, t) <ide> def...
1
Ruby
Ruby
stop mutating revisions hash
e27574b27bf6ce11ce0dc5a139c09b228c672480
<ide><path>Library/Homebrew/download_strategy.rb <ide> def fetch <ide> fetch_repo @co, @url, @ref <ide> when :revisions <ide> # nil is OK for main_revision, as fetch_repo will then get latest <del> main_revision = @ref.delete :trunk <add> main_revision = @ref[:trunk] <ide> fetch_repo @co...
1
Python
Python
remove old code
4c9e5e969ff7b62537500bdf151033d04ddca855
<ide><path>celery/buckets.py <ide> from Queue import Queue <ide> from Queue import Empty as QueueEmpty <ide> <del> <ide> RATE_MODIFIER_MAP = {"s": lambda n: n, <ide> "m": lambda n: n / 60.0, <ide> "h": lambda n: n / 60.0 / 60.0} <ide> def get(self, block=True, timeout=None): <...
1
Text
Text
fix some flaws in man
877e6d76a4f16a1825a1e98cbfa9f5fef7a60c59
<ide><path>man/docker-cp.1.md <ide> You can copy from the container's file system to the local machine or the <ide> reverse, from the local filesystem to the container. If `-` is specified for <ide> either the `SRC_PATH` or `DEST_PATH`, you can also stream a tar archive from <ide> `STDIN` or to `STDOUT`. The `CONTAINER...
6
Text
Text
add dead state to container inspect 1.21 api
836d0127fdf39d5e5978bc27f54a99aea636061b
<ide><path>docs/reference/api/docker_remote_api_v1.22.md <ide> Return low-level information on the container `id` <ide> "ExitCode": 9, <ide> "FinishedAt": "2015-01-06T15:47:32.080254511Z", <ide> "OOMKilled": false, <add> "Dead": false, <ide> "Paused": false, <ide> "Pid": 0, <ide> "Restarting": false...
1
Text
Text
add docs for `display_value`
66ae19229e8e0d1f99c21501e821facfb5d0566d
<ide><path>docs/api-guide/relations.md <ide> If you explicitly specify a relational field pointing to a <ide> ``ManyToManyField`` with a through model, be sure to set ``read_only`` <ide> to ``True``. <ide> <add>## The `display_value` method <add> <add>The `__str__` (`__unicode__` on Python 2) method of the model will ...
1
Text
Text
add misc note about localization
8ba4e7bafe07a3267fd8baedb3d94986c4f26af4
<ide><path>docs/topics/3.0-announcement.md <ide> The default JSON renderer will return float objects for un-coerced `Decimal` ins <ide> <ide> * The serializer `ChoiceField` does not currently display nested choices, as was the case in 2.4. This will be address as part of 3.1. <ide> * Due to the new templated form rend...
1
Javascript
Javascript
fix == to ===
bfdf0c9590d239adf20bfb771f7bcddd1429f0bb
<ide><path>examples/js/loaders/SVGLoader.js <ide> THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype <ide> <ide> function getNodeTransform( node ) { <ide> <del> if ( ! ( node.hasAttribute( 'transform' ) || ( node.nodeName == 'use' && ( node.hasAttribute( 'x' ) || node.hasAttribute( '...
1
Javascript
Javascript
add implicit declaration
cb908242866321e223ccd473d38657382a8e2909
<ide><path>examples/js/postprocessing/ShaderPass.js <ide> * @author alteredq / http://alteredqualia.com/ <ide> */ <ide> <del>THREE.ShaderPass = function ( shader, textureID ) { <add>THREE.ShaderPass = function( shader, textureID ) { <ide> <ide> this.textureID = ( textureID !== undefined ) ? textureID : "tDiffuse";...
1
Java
Java
fix assert.instanceof exception message
7bbb4ec7aff9ca171f2d34f747d7e0d96a6ce1b0
<ide><path>spring-core/src/main/java/org/springframework/util/Assert.java <ide> /* <del> * Copyright 2002-2012 the original author or authors. <add> * Copyright 2002-2013 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); you may not <ide> * use this file ...
2
PHP
PHP
pull url from config
126adb781c204129600363f243b9d73e202d229e
<ide><path>src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php <ide> protected function prepareUrlForRequest($uri) <ide> } <ide> <ide> if (! Str::startsWith($uri, 'http')) { <del> $uri = $this->baseUrl.'/'.$uri; <add> $uri = config('app.url').'/'.$uri; <ide> }...
1
Python
Python
fix incorrect usage of optional[bool]
e3f96ce7a8ac098aeef5e9930e6de6c428274d57
<ide><path>airflow/models/dagrun.py <ide> def find( <ide> execution_date: Optional[datetime] = None, <ide> state: Optional[str] = None, <ide> external_trigger: Optional[bool] = None, <del> no_backfills: Optional[bool] = False, <add> no_backfills: bool = False, <ide> run_typ...
11
PHP
PHP
remove dead code in test stub
66c2b2528073367d5244435c06d32a8dcdf0566b
<ide><path>tests/test_app/TestApp/Controller/Component/AppleComponent.php <ide> class AppleComponent extends Component { <ide> */ <ide> public $components = array('Orange'); <ide> <del>/** <del> * testName property <del> * <del> * @var mixed <del> */ <del> public $testName = null; <del> <ide> /** <ide> * startup me...
1
Text
Text
add tutorial link in docs
f0175de8296069c6c5c6e36c145da641f7aa5bc0
<ide><path>docs/templates/why-use-keras.md <ide> Keras has also been adopted by researchers at large scientific organizations, in <ide> <ide> Your Keras models can be easily deployed across a greater range of platforms than any other deep learning framework: <ide> <del>- On iOS, via [Apple’s CoreML](https://developer...
1
Python
Python
fix auto-naming in records.py
c0c1bea69b11881bebf483ce0c961812a27f061c
<ide><path>numpy/core/records.py <ide> def _setfieldnames(self, names, titles): <ide> else: <ide> self._names = [] <ide> <del> # if the names are not specified, they will be assigned as "f1, f2,..." <del> # if not enough names are specified, they will be assigned as "f[n+1], <del> ...
1
Text
Text
add legacy status to stability index
a8d05ba2535d05ac1f1d74c183d4b7b1206f6fcf
<ide><path>doc/api/documentation.md <ide> The stability indices are as follows: <ide> > Stability: 2 - Stable. Compatibility with the npm ecosystem is a high <ide> > priority. <ide> <add><!-- separator --> <add> <add>> Stability: 3 - Legacy. The feature is no longer recommended for use. While it <add>likely will not b...
1
Python
Python
add a timeout (7 secondes) on client connection
81caa9de82b018db32af0c4ba4096b4917878f85
<ide><path>glances/core/glances_client.py <ide> import socket <ide> import sys <ide> try: <del> from xmlrpc.client import ServerProxy, ProtocolError, Fault <add> from xmlrpc.client import Transport, ServerProxy, ProtocolError, Fault <ide> except ImportError: # Python 2 <del> from xmlrpclib import ServerProxy,...
1
Javascript
Javascript
fix typo in rails-ujs html content test
e06b67205072e39ac02e5467b71c600167fa9435
<ide><path>actionview/test/ujs/public/test/call-remote.js <ide> asyncTest('HTML content should be plain-text', 1, function() { <ide> $('form').append('<input type="text" name="content" value="<p>hello</p>">') <ide> <ide> submit(function(e, data, status, xhr) { <del> ok(data === '<p>hello</ps>', 'returned data s...
1
PHP
PHP
apply fixes from styleci
27bb66632aa805a88474e4f8694864a6c7d4a5d6
<ide><path>src/Illuminate/Routing/Controller.php <ide> public function callAction($method, $parameters) <ide> */ <ide> public function __call($method, $parameters) <ide> { <del> throw new BadMethodCallException("Method [{$method}] does not exist on [".get_class($this)."]."); <add> throw new B...
1
Text
Text
add nvidia bert
4c71470d8b204a09f010cf5ba38a2d489e01f73f
<ide><path>community/README.md <ide> This repository provides a curated list of the GitHub repositories with machine <ide> | [Transformer-LT (MLPerf)](https://github.com/IntelAI/models/tree/master/benchmarks/language_translation/tensorflow/transformer_mlperf) | [Attention Is All You Need](https://arxiv.org/pdf/1706.037...
1
PHP
PHP
finish another block of link tag updates
dfda9e8ab3449fb203a4f2a0f3bfe044554a13bc
<ide><path>src/Error/Debugger.php <ide> public static function dump($var, $depth = 3) { <ide> * @param int|string $level type of log to use. Defaults to 'debug' <ide> * @param int $depth The depth to output to. Defaults to 3. <ide> * @return void <del> * @link http://book.cakephp.org/2.0/en/development/debugging.htm...
44
Python
Python
fix python 3 syntax errors (en masse)
ae0a9409212d0072938fa60c9f85740bb89ced7e
<ide><path>research/cognitive_mapping_and_planning/scripts/script_env_vis.py <ide> import datasets.nav_env_config as nec <ide> import datasets.nav_env as nav_env <ide> import cv2 <del>from datasets import factory <del>import render.swiftshader_renderer as renderer <add>from datasets import factory <add>import render....
28
Javascript
Javascript
improve $parsers/$formatters with example
0cb87f91ae8660016f9a79a62166ae03d0e7070d
<ide><path>src/ng/directive/input.js <ide> var VALID_CLASS = 'ng-valid', <ide> * <ide> * @property {string} $viewValue Actual string value in the view. <ide> * @property {*} $modelValue The value in the model, that the control is bound to. <del> * @property {Array.<Function>} $parsers Whenever the control reads valu...
1
Javascript
Javascript
fix typo in unexpected ref object warning
d38616d6936542cbf8ca34d3c75cd3b9e44945c9
<ide><path>packages/react-reconciler/src/ReactFiberCommitWork.js <ide> export default function<T, P, I, TI, HI, PI, C, CC, CX, PL>( <ide> warning( <ide> false, <ide> 'Unexpected ref object provided for %s. ' + <del> 'Use either a ref-setter function or Reacte.creat...
2
Python
Python
fix pytest implementation errors
c6db7da2c932470f70ce9c9ab4dd49fc1a64b789
<ide><path>numpy/testing/pytest_tools/utils.py <ide> class KnownFailureException(Exception): <ide> def __new__(cls, *args, **kwargs): <ide> # import _pytest here to avoid hard dependency <ide> import _pytest <del> return _pytest.skipping.XFailed(*args, **kwargs) <add> return _pytest.sk...
1
Ruby
Ruby
remove uneeded local var definition
9c161599ac1e37eedd56bece4d975dde8cdaa151
<ide><path>activerecord/lib/active_record/nested_attributes.rb <ide> def _destroy <ide> def assign_nested_attributes_for_one_to_one_association(association_name, attributes) <ide> options = self.nested_attributes_options[association_name] <ide> attributes = attributes.with_indifferent_access <del> ...
1
Python
Python
fix test_retry_kwargs_can_be_empty on pypy3
ed79ccfb8b42404c71db6dd1d0cecd57a0165b97
<ide><path>celery/utils/serialization.py <ide> except ImportError: <ide> import pickle # noqa <ide> <del>PY3 = sys.version_info[0] >= 3 <add>PY33 = sys.version_info >= (3, 3) <ide> <ide> __all__ = [ <ide> 'UnpickleableExceptionWrapper', 'subclass_exception', <ide> def jsonify(obj, <ide> return unknow...
1
Text
Text
define "browser", "production", "development"
088a7e5247451092990d80a91f77de0ecefe8619
<ide><path>doc/api/packages.md <ide> For example, a package that wants to provide different ES module exports for <ide> } <ide> ``` <ide> <del>Node.js supports the following conditions out of the box: <add>Node.js implements the following conditions: <ide> <ide> * `"import"` - matches when the package is loaded via `...
1
Javascript
Javascript
use strict and expose in build version
10fb0dc3833c9c48878dca712ed112479bea1afd
<ide><path>src/metadata.js <del>var Metadata = (function MetadataClosure() { <add>'use strict'; <add> <add>var Metadata = PDFJS.Metadata = (function MetadataClosure() { <ide> function Metadata(meta) { <ide> if (typeof meta === 'string') { <ide> var parser = new DOMParser(); <ide><path>web/viewer.js <ide> va...
2
Text
Text
remove extra "docker" from docs index
3be683a0bbf25f41e9f4b1652f8f0784cafbd05b
<ide><path>docs/sources/index.md <ide> Docker consists of: <ide> * Since Docker runs on so many platforms, it's easy to move your <ide> applications around. You can easily move an application from a <ide> testing environment into the cloud and back whenever you need. <del> * Docker's lightweight cont...
1
Ruby
Ruby
prefer interpolation to concatenation
23c2ec56f8d7f7fd39528851f7670559c8f1f588
<ide><path>Library/Homebrew/cmd/--config.rb <ide> def describe_path path <ide> <ide> def describe_x11 <ide> return "N/A" unless MacOS::XQuartz.installed? <del> return "#{MacOS::XQuartz.version} => " + describe_path(MacOS::XQuartz.prefix) <add> return "#{MacOS::XQuartz.version} => #{describe_path(MacOS::XQu...
1
Ruby
Ruby
use a better test description
008870e6a4043bd217738aa6f3cdda1f0ea74947
<ide><path>activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb <ide> def test_custom_join_table <ide> assert_equal 'edges', Vertex.reflect_on_association(:sources).join_table <ide> end <ide> <del> def test_namespaced_habtm <add> def test_has_and_belongs_to_many_in_a_namespaced_mod...
1
Text
Text
add 3.7.5 release notes
0d96be9266488d0f7de0dcffad1092316d98e4bf
<ide><path>docs/topics/release-notes.md <ide> You can determine your currently installed version using `pip freeze`: <ide> <ide> ### 3.7.4 <ide> <add>**Date**: [21st December 2017][3.7.5-milestone] <add> <add>* Add missing *.woff2 font files to packaging. [#5692][gh5692] <add>* Add missing *.mo locale files to packag...
1
Text
Text
add geoffrey booth to tsc
b985ad55eafc958db6f2ee7cd86b6be498fbbff2
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Danielle Adams** <<adamzdanielle@gmail.com>> (she/her) <ide> * [fhinkel](https://github.com/fhinkel) - <ide> **Franziska Hinkelmann** <<franziska.hinkelmann@gmail.com>> (she/her) <add>* [GeoffreyBooth](https://github...
1
Text
Text
add documentation styleguide to contribubing.md
1ab12b436a0a69d145570628e4ba727c8532ce70
<ide><path>CONTRIBUTING.md <ide> in the proper package's repository. <ide> <ide> * Set parameter defaults without spaces around the equal sign <ide> * `clear = (count=1) ->` instead of `clear = (count = 1) ->` <add> <add>## Documentation Styleguide <add> <add>* Use [TomDoc](http://tomdoc.org/). <add>* Use [Markdown]...
1
Ruby
Ruby
remove unused ddlhelper in foreignkeytest
89febead042cc1312a33d431abd23e2b28271336
<ide><path>activerecord/test/cases/migration/foreign_key_test.rb <ide> require "cases/helper" <del>require "support/ddl_helper" <ide> require "support/schema_dumping_helper" <ide> <ide> if ActiveRecord::Base.connection.supports_foreign_keys_in_create? <ide> def test_foreign_keys <ide> module ActiveRecord <ide> c...
1
Ruby
Ruby
fix homebrew_bottle_domain usage
7fc52d20655522f7d984174b37c675796ee1abad
<ide><path>Library/Homebrew/github_packages.rb <ide> class GitHubPackages <ide> include Context <ide> include Utils::Curl <ide> <del> URL_REGEX = %r{https://ghcr.io/v2/([\w-]+)/([\w-]+)}.freeze <add> URL_PREFIX = "https://ghcr.io/v2/" <add> URL_REGEX = %r{#{Regexp.escape(URL_PREFIX)}([\w-]+)/([\w-]+)}.freeze <i...
2
Go
Go
fix some wrap[f]/warn[f] errors
3737194b9f2875c10f3f2117c1816054ba0ff262
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) DaemonLeavesCluster() { <ide> select { <ide> case <-done: <ide> case <-time.After(5 * time.Second): <del> logrus.Warnf("timeout while waiting for ingress network removal") <add> logrus.Warn("timeout while waiting for ingress network removal") <ide> } <...
6
Javascript
Javascript
add test of stream transform
9de15de05a47d645583699a5135bfb4b8ea1c5c2
<ide><path>test/parallel/test-stream2-transform.js <ide> const Transform = require('_stream_transform'); <ide> assert(pt instanceof PassThrough); <ide> } <ide> <add>{ <add> // Verify transform constructor behavior <add> const pt = Transform(); <add> <add> assert(pt instanceof Transform); <add>} <add> <ide> { <ide...
1
PHP
PHP
add partial queue faking
9684a047dd9d29654a200d194a0f34ea390bb987
<ide><path>src/Illuminate/Support/Facades/Queue.php <ide> public static function popUsing($workerName, $callback) <ide> /** <ide> * Replace the bound instance with a fake. <ide> * <add> * @param array|string $jobsToFake <ide> * @return \Illuminate\Support\Testing\Fakes\QueueFake <ide> */ <...
3
Text
Text
fix punctuation in doc/releases.md
38c97f5dc7ff3fbf83982d0268fc9e93cfc00c7d
<ide><path>doc/releases.md <ide> commit metadata, as well as the `semver-minor` and `semver-major` GitHub labels. <ide> One drawback is that when the `PR-URL` metadata is accidentally omitted from a <ide> commit, the commit will show up because it's unsure if it's a duplicate or not. <ide> <del>For a list of commits t...
1
Text
Text
fix instructions to be coherent with the tests
4ec558ea3f3df228e338b37e50e4317404051376
<ide><path>curriculum/challenges/spanish/02-javascript-algorithms-and-data-structures/basic-javascript/chaining-if-else-statements.spanish.md <ide> localeTitle: Encadenamiento en caso contrario <ide> <section id="description"> <code>if/else</code> declaraciones <code>if/else</code> se pueden encadenar para una lógica c...
1
Ruby
Ruby
show total disk space freed on cleanup
6642801b04b7522d6f89599660e448e49b1411f6
<ide><path>Library/Homebrew/cleanup.rb <ide> def cleanup_path(path) <ide> return unless path.exist? <ide> return unless @cleaned_up_paths.add?(path) <ide> <del> disk_usage = path.disk_usage <add> @disk_cleanup_size += path.disk_usage <ide> <ide> if dry_run? <ide> puts "Would remove...
1
Ruby
Ruby
use option parser for `brew cleanup`
03b93da2969914193a16b52b273f4b0fb1850c82
<ide><path>Library/Homebrew/cleanup.rb <ide> require "utils/bottles" <ide> require "formula" <add>require "hbc/cask_loader" <ide> <ide> module CleanupRefinement <ide> refine Pathname do <ide> def stale_formula?(scrub) <ide> using CleanupRefinement <ide> <ide> module Homebrew <del> module Cleanup <del> @disk_cle...
5
Text
Text
add change info for async_hooks.executionasyncid()
dadf28271c96f11aea77878a79263e2bfa4f8bf8
<ide><path>doc/api/async_hooks.md <ide> init for PROMISE with id 6, trigger id: 5 # the Promise returned by then() <ide> <ide> #### `async_hooks.executionAsyncId()` <ide> <add><!-- YAML <add>added: v8.1.0 <add>changes: <add> - version: v8.2.0 <add> pr-url: https://github.com/nodejs/node/pull/13490 <add> descr...
1
Text
Text
add more information about do while loop
338d94b517cbda5de27bfe9c889e0ba231b6e1fb
<ide><path>client/src/pages/guide/english/cplusplus/loops/index.md <ide> Therefore, in order to solve such problems loops are introduced. <ide> There are different types of loop functions: <ide> ### While and do while loops <ide> <del>While and do while loops allow you to make the loop until a condition finishes. <del...
1
Python
Python
update changelog.py for python 3
8bb395841605948b5003701b8fc2e3bc36f24bde
<ide><path>tools/changelog.py <ide> from git import Repo <ide> from github import Github <ide> <del>UTF8Writer = codecs.getwriter('utf8') <del>sys.stdout = UTF8Writer(sys.stdout) <add>if sys.version_info.major < 3: <add> UTF8Writer = codecs.getwriter('utf8') <add> sys.stdout = UTF8Writer(sys.stdout) <add> <ide> ...
1
Python
Python
recover global policy between tests
b37c3fc1762155d592d99398158e74aae69f1b9f
<ide><path>official/vision/image_classification/resnet_ctl_imagenet_test.py <ide> def setUpClass(cls): <ide> def setUp(self): <ide> super(CtlImagenetTest, self).setUp() <ide> imagenet_preprocessing.NUM_IMAGES['validation'] = 4 <add> self.policy = \ <add> tf.compat.v2.keras.mixed_precision.experiment...
2
PHP
PHP
require value on set
8af77643ecadd3b6fcff6867d505ce77c343c0d2
<ide><path>src/Http/ServerRequest.php <ide> public function getEnv($key, $default = null) <ide> * Set a value to the request's environment data. <ide> * <ide> * @param string $key The key you want to write to. <del> * @param string|null $value Value to set. Default null. <add> * @param string $va...
1
Ruby
Ruby
update parser tests
35500130c4ccf7886848cb5073ae9d63e91d253a
<ide><path>Library/Homebrew/cli/args.rb <ide> def spec(default = :stable) <ide> end <ide> <ide> def respond_to_missing?(method_name, *) <del> !frozen? || @table.key?(method_name) <add> @table.key?(method_name) <ide> end <ide> <ide> def method_missing(method_name, *args) <ide><pat...
3
PHP
PHP
fix function name to proper camelbacked casing
2b1feeaaaf2d0c0ad7141e591cd40fa3d3424ca1
<ide><path>lib/Cake/Model/Validator/ValidationSet.php <ide> public function validate($data, $isUpdate = false) { <ide> $this->reset(); <ide> $this->_isUpdate = $isUpdate; <ide> <del> if ($this->checkvalidatePresent($this->field, $data)) { <add> if ($this->checkValidatePresent($this->field, $data)) { <ide> ret...
1
Java
Java
fix buffering issue in stringdecoder
f738273486204becf7bce1f25df9bf6d6d8b0507
<ide><path>spring-core/src/main/java/org/springframework/core/codec/StringDecoder.java <ide> import org.springframework.core.io.buffer.DataBuffer; <ide> import org.springframework.core.io.buffer.DataBufferUtils; <ide> import org.springframework.core.io.buffer.DefaultDataBufferFactory; <add>import org.springframework.co...
2
Python
Python
fix lxd tests
5bc59acc6f7b0165ab42550394329cd4b91275a6
<ide><path>libcloud/test/container/test_lxd.py <ide> def test_ex_get_server_configuration(self): <ide> self.assertEqual(server_config.public, False) <ide> <ide> def test_list_images(self): <add> img_id = "54c8caac1f61901ed86c68f24af5f5d3672bdc62c71d04f06df3a59e95684473" <ide> for driver ...
1
Python
Python
remove dns from master flag description
745a4481c5cbab8f7e7740802474cf4f34bbffee
<ide><path>research/object_detection/train.py <ide> tf.logging.set_verbosity(tf.logging.INFO) <ide> <ide> flags = tf.app.flags <del>flags.DEFINE_string('master', '', 'DNS name of the TensorFlow master to use.') <add>flags.DEFINE_string('master', '', 'Name of the TensorFlow master to use.') <ide> flags.DEFINE_integer('...
1
Go
Go
add break after key is found in for loop
a5be8034589fe024ce421b4a7d34739be2a1a8af
<ide><path>runconfig/merge.go <ide> func Merge(userConf, imageConf *Config) error { <ide> userEnvKey := strings.Split(userEnv, "=")[0] <ide> if imageEnvKey == userEnvKey { <ide> found = true <add> break <ide> } <ide> } <ide> if !found {
1
Mixed
Javascript
remove unused function converttocontext
3d9e7bb1d467765c0dc391798d8f954c98be095e
<ide><path>doc/api/deprecations.md <ide> The `os.getNetworkInterfaces()` method is deprecated. Please use the <ide> <a id="DEP0024"></a> <ide> ### DEP0024: REPLServer.prototype.convertToContext() <ide> <del>Type: Runtime <add>Type: End-of-Life <ide> <ide> The `REPLServer.prototype.convertToContext()` API is deprecate...
3
Text
Text
update prod commands for api-server
58a74023ef7b69fd93a0a4f59efab0b647cb0572
<ide><path>docs/devops.md <ide> Provisioning VMs with the Code <ide> 8. Start Instances <ide> <ide> ```console <del> pm2 start api-server/lib/production-start.js -i max --max-memory-restart 600M --name org <add> cd api-server <add> pm2 start ./lib/production-start.js -i max --max-memory-restart 600M --name or...
1
Javascript
Javascript
fix spelling of meta_desc.configurable
18761cc3d1b65152083a80e7fb6b3f00fb8e2b56
<ide><path>packages/sproutcore-metal/lib/utils.js <ide> SC.guidFor = function(obj) { <ide> <ide> var META_DESC = { <ide> writable: true, <del> confgurable: false, <add> configurable: false, <ide> enumerable: false, <ide> value: null <ide> };
1
Javascript
Javascript
update workaround for desktop webkit quirk
bc42950b514b60f319812eeb87aae2915e394237
<ide><path>src/ngTouch/directive/ngClick.js <ide> ngTouch.directive('ngClick', ['$parse', '$timeout', '$rootElement', <ide> var ACTIVE_CLASS_NAME = 'ng-click-active'; <ide> var lastPreventedTime; <ide> var touchCoordinates; <add> var lastLabelClickCoordinates; <ide> <ide> <ide> // TAP EVENTS AND GHOST CLICKS...
2
PHP
PHP
fix open cursors
a08549cbb2861d9c0dbc950f18fdbc83c4813654
<ide><path>tests/TestCase/Database/QueryTest.php <ide> public function testWhereInArrayEmpty() <ide> $query = new Query($this->connection); <ide> $query->select(['id']) <ide> ->from('articles') <del> ->whereInList('id', [], ['allowEmpty' => true]) <del> ->execute(); <de...
1
Text
Text
add content on strings
60e278f1d7757f8167e412c0973434be86e980f6
<ide><path>guide/english/python/data-structures/strings/index.md <ide> Python allows `str` objects, or _strings_, to be expressed in a few different wa <ide> Traceback (most recent call last): <ide> File "<stdin>", line 1, in <module> <ide> TypeError: 'str' object does not support item a...
1
Ruby
Ruby
fix syntax error, sorry about that
ad02ea74da758f5063b219a4a35df9431c4d8732
<ide><path>Library/Homebrew/macos/xcode.rb <ide> def installed? <ide> end <ide> <ide> def latest_version? <del> `/usr/bin/clang -v` =~ %r{tags/Apple/clang-(\d+).(\d+).(\d+)} <del> $1 >= 421 and $3 >= 57 <add> `/usr/bin/clang -v 2>&1` =~ %r{tags/Apple/clang-(\d+)\.(\d+)\.(\d+)} <add> $1.to_i >= 421 and ...
1
Python
Python
remove dependency to simplejson
739462d804baad9af7b5ac0461cbd335ce181047
<ide><path>celery/views.py <ide> from django.http import HttpResponse <ide> from celery.task import is_done, delay_task <ide> from celery.result import AsyncResult <del>import simplejson <add>from carrot.serialization import serialize as JSON_dump <ide> <ide> <ide> def is_task_done(request, task_id): <ide> """Ret...
2
PHP
PHP
improve description and fix phpcs error
fdffa438cb48d784bdba69b7da79728c3e224162
<ide><path>src/Core/ContainerInterface.php <ide> */ <ide> namespace Cake\Core; <ide> <del>use League\Container\DefinitionInterface; <add>use League\Container\Definition\DefinitionInterface; <ide> use Psr\Container\ContainerInterface as PsrInterface; <ide> <ide> /** <ide> * The methods defined in this interface use ...
1
Text
Text
fix some format errors
71f1205269494430116e7a564ee76bfa0bfccc63
<ide><path>docs/reference/run.md <ide> Supported networks : <ide> <td class="no-wrap"><strong>container</strong>:&lt;name|id&gt;</td> <ide> <td> <ide> Use the network stack of another container, specified via <del> its *name* or *id*. <add> its <i>name</i> or <i>id</i>. <ide> </t...
1
Mixed
Python
remove weight tying in autoencoder
94c930e99e8908d2188213672bed050b54ebdb5a
<ide><path>docs/sources/layers/core.md <ide> model.add(TimeDistributedDense(5, 10)) # output shape: (nb_samples, nb_timesteps <ide> <ide> ## AutoEncoder <ide> ```python <del>keras.layers.core.AutoEncoder(encoder, decoder, output_reconstruction=True, tie_weights=False, weights=None): <add>keras.layers.core.AutoEncoder(...
3
Javascript
Javascript
add a separate class for hotupdatechunk
3677e25c3089a7bb5df5fa471d4b07c6668a9310
<ide><path>lib/HotUpdateChunk.js <add>/* <add> MIT License http://www.opensource.org/licenses/mit-license.php <add> Author Tobias Koppers @sokra <add>*/ <add>"use strict"; <add> <add>const Chunk = require("./Chunk"); <add> <add>class HotUpdateChunk extends Chunk { <add> constructor() { <add> super(); <add> this.remov...
2
Ruby
Ruby
add full license
895a78de2c5193e53a79cdf64be86c88bcb93c3c
<ide><path>ci/qunit-selenium-runner.rb <ide> require "webdrivers" <ide> <ide> # This class based on https://github.com/smontanari/qunit-selenium, with a few tweaks to make it easier to read output. <add># The license from https://github.com/smontanari/qunit-selenium is enclosed: <add># <add># The MIT License (MIT) <ad...
1
PHP
PHP
fix cs error
befb7ba36511623807da8922608dafbd9d5804a8
<ide><path>tests/TestCase/Controller/Component/AuthComponentTest.php <ide> use Cake\Http\Response; <ide> use Cake\Http\ServerRequest; <ide> use Cake\Http\Session; <del>use Cake\Routing\Route\InflectedRoute; <ide> use Cake\Routing\Router; <add>use Cake\Routing\Route\InflectedRoute; <ide> use Cake\TestSuite\TestCase; <id...
1
Ruby
Ruby
use correct version in download
417f27f40f112bdc228b9f2ab27fef8cea7c7d97
<ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb <ide> def bump_formula_pr <ide> rsrc = Resource.new { @url = rsrc_url } <ide> rsrc.download_strategy = CurlDownloadStrategy <ide> rsrc.owner = Resource.new(formula.name) <add> rsrc.version = forced_version if forced_version <ide> rsrc_p...
1
Ruby
Ruby
use gitconfig to remember last tag
5b360f35c534a881e045fd51474e3982dad63c11
<ide><path>Library/Homebrew/cmd/update-report.rb <ide> def update_report <ide> puts "Updated Homebrew from #{shorten_revision(initial_revision)} to #{shorten_revision(current_revision)}." <ide> updated = true <ide> <del> new_repository_version = Utils.safe_popen_read("git", "tag", "--points-at", "HEAD...
1
PHP
PHP
add update with join support for postgres
7f19f76494995ec1566dbcaf228792a32aa0e3ff
<ide><path>lib/Cake/Database/Dialect/PostgresDialectTrait.php <ide> protected function _selectQueryTranslator($query) { <ide> return $query; <ide> } <ide> <add>/** <add> * Returns an update query that has been transformed for Postgres. <add> * <add> * Postgres requires joins to be defined in the FROM list instead o...
3
Text
Text
fix broken link
963034d243d579b24e4053432691d2e0f059e6fc
<ide><path>docs/tutorials/fundamentals/part-3-state-reducers-actions.md <ide> Writing immutable update logic by hand _is_ hard, and accidentally mutating stat <ide> <ide> :::tip <ide> <del>In real-world applications, you won't have to write these complex nested immutable updates by hand. In [Part 8](./part-8-modern-r...
1
PHP
PHP
move additional code into the shared trait
0eca8416955206022915076c5ec1ac456bf636c0
<ide><path>src/I18n/DateFormatTrait.php <ide> */ <ide> trait DateFormatTrait <ide> { <add> /** <add> * The default locale to be used for displaying formatted date strings. <add> * <add> * @var string <add> */ <add> public static $defaultLocale; <add> <add> /** <add> * In-memory cache of da...
2
Javascript
Javascript
allow username submission after failure
265e383705e16bade6570e1769103d35e3498f1c
<ide><path>client/src/components/settings/Username.js <ide> class UsernameSettings extends Component { <ide> { <ide> formValue: newValue, <ide> isFormPristine: username === newValue, <del> characterValidation: this.validateFormInput(newValue) <add> characterValidation: this.validateF...
1
Go
Go
remove uses of ioutils.tempdir
c4c53659f1022c227af8e4c07ad8cf3b70fd42d5
<ide><path>integration-cli/docker_api_containers_test.go <ide> import ( <ide> "github.com/docker/docker/errdefs" <ide> "github.com/docker/docker/integration-cli/cli" <ide> "github.com/docker/docker/integration-cli/cli/build" <del> "github.com/docker/docker/pkg/ioutils" <ide> "github.com/docker/docker/pkg/stringid" ...
1
Mixed
Text
add docs update - part 1
7e702439eb4a82fe2ef45911fbb176e95d5f0bce
<ide><path>docs/api-guide/fields.md <ide> Corresponds to `django.forms.fields.RegexField` <ide> <ide> A date representation. <ide> <del>Uses `DATE_INPUT_FORMATS` to validate date. <del> <ide> Optionally takes `format` as parameter to replace the matching pattern. <ide> <ide> Corresponds to `django.db.models.fields.D...
4
Javascript
Javascript
alphabetize eslint rules
c221355c50f6ee4eafaf7f61e8a468acd061fdda
<ide><path>.eslintrc.js <ide> module.exports = { <ide> }, <ide> ], <ide> rules: { <del> // Possible Errors <del> // http://eslint.org/docs/rules/#possible-errors <add> // ESLint built-in rules <add> // http://eslint.org/docs/rules <add> 'accessor-pairs': 'error', <add> 'array-callback-return':...
1
Python
Python
use randomized name to get the failure status
3f59e75cdf4a95829ac60b151135e03267e63a12
<ide><path>airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py <ide> def execute(self, context) -> Optional[str]: <ide> self.log.info("creating pod with labels %s and launcher %s", labels, launcher) <ide> final_state, _, result = self.create_new_pod_for_operator(labels, launche...
2
Go
Go
allow hyphens in namespaces
6c126d443b3ee3bbb6d0a437a1b5c51cbf9e47f2
<ide><path>registry/registry.go <ide> var ( <ide> ErrInvalidRepositoryName = errors.New("Invalid repository name (ex: \"registry.domain.tld/myrepos\")") <ide> ErrDoesNotExist = errors.New("Image does not exist") <ide> errLoginRequired = errors.New("Authentication is required.") <del> validNamespace ...
2
Text
Text
fix a typo
2767f01be05e3714b250f8c2743b7f5e1b0833ac
<ide><path>guides/source/working_with_javascript.md <ide> attributes, and attaches appropriate handlers. <ide> ### form_for <ide> <ide> [`form_for`](http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-form_for) <del>is a helper that assists with writing `<form>`s. `form_for` takes a `:remote...
1
PHP
PHP
add explict ordering
593e1819e2f98bb8116ef5d5490e8369109812cb
<ide><path>tests/TestCase/Database/QueryTest.php <ide> public function testSelectGroup() <ide> ->from('articles') <ide> ->join(['table' => 'authors', 'alias' => 'a', 'conditions' => 'author_id = a.id']) <ide> ->group('author_id') <add> ->order(['total' => 'desc']) <ide> ...
1