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
fix race in simple/test-cluster-master-error
d8c4ecea0b03a4524eda172dfd7f08992c1538c8
<ide><path>test/simple/test-cluster-master-error.js <ide> if (cluster.isWorker) { <ide> // Check that the cluster died accidently <ide> existMaster = (code === 1); <ide> <del> // When master is dead all workers should be dead to <del> var alive = false; <del> workers.forEach(function(pid) { <del> ...
1
Python
Python
fix autoscale when prefetch_multiplier is 1
163d09f20a72550fb86e1787978291278e90b58a
<ide><path>celery/worker/autoscale.py <ide> def update(self, max=None, min=None): <ide> if max is not None: <ide> if max < self.processes: <ide> self._shrink(self.processes - max) <add> self._update_consumer_prefetch_count(max) <ide> self.ma...
3
Javascript
Javascript
fix normalnode context
5dc078a9d60be4811a36d1408f5d8cab3737e383
<ide><path>examples/jsm/nodes/accessors/NormalNode.js <ide> NormalNode.prototype.getShared = function () { <ide> <ide> }; <ide> <add>NormalNode.prototype.build = function ( builder, output, uuid, ns ) { <add> <add> var contextNormal = builder.context[ this.scope + 'Normal' ]; <add> <add> if ( contextNormal ) { <add> ...
4
Python
Python
pass value for auto_name argument
315a12ac58d373640942cebe9b6ac6a314344c82
<ide><path>tests/auto/test_sequential_model.py <ide> def output_shape(previous): <ide> left = Sequential() <ide> left.add(Dense(nb_hidden, input_shape=(input_dim,))) <ide> left.add(Activation('relu')) <del> left.set_name('left') <ide> <ide> right = Sequential() <ide> ...
1
Javascript
Javascript
remove oldie change and submit special-event code
1c4297816dc274754d399e9e66e0bbf39f4d008a
<ide><path>src/event.js <del>var rformElems = /^(?:input|select|textarea)$/i, <del> rkeyEvent = /^key/, <add>var rkeyEvent = /^key/, <ide> rmouseEvent = /^(?:mouse|contextmenu)|click/, <ide> rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, <ide> rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; <ide> jQuery.each({ <ide> }; ...
1
Ruby
Ruby
install active storage extension lazily
1a4a582ddcf3dbacf37973f53e6dfacddd2fe2c3
<ide><path>lib/action_text/engine.rb <ide> class Engine < Rails::Engine <ide> end <ide> <ide> initializer "action_text.active_storage_extension" do <del> require "active_storage/blob" <del> <del> class ActiveStorage::Blob <add> ActiveSupport.on_load(:active_storage_blob) do <ide> include...
1
PHP
PHP
improve code readility and optimize it a bit
c169d265525b6206770546997a062923b1ddf4cc
<ide><path>src/Console/ConsoleOptionParser.php <ide> protected function getCommandError($command) <ide> $subcommands = array_keys((array)$this->subcommands()); <ide> $bestGuess = $this->findClosestItem($command, $subcommands); <ide> <del> $out = []; <del> <del> $out[] = sprintf( <del> ...
2
Javascript
Javascript
fix memory leak of promise callbacks
36389288e8c7f2538b5ae7dd6877e81a9a76c644
<ide><path>src/deferred.js <ide> jQuery.extend( { <ide> // fulfilled_callbacks.disable <ide> tuples[ 3 - i ][ 2 ].disable, <ide> <add> // rejected_handlers.disable <add> // fulfilled_handlers.disable <add> tuples[ 3 - i ][ 3 ].disable, <add> <ide> // progress_callbacks.lock <del> tuples[...
1
Text
Text
add brewdler tap to documentation
eaba2607c4a2f58a9dab0bc910c571b477e2a762
<ide><path>share/doc/homebrew/Interesting-Taps-&-Branches.md <ide> Homebrew has the capability to add (and remove) multiple taps to your local inst <ide> - Formula are not deleted, they are moved here. <ide> <ide> * [homebrew/nginx](https://github.com/Homebrew/homebrew-nginx) <del> - Feature rich Nginx tap fo...
1
Text
Text
move orangemocha to collaborator emeriti list
d88fcf3ef713193dea3402703cc93b755ebfddf3
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Teddy Katz** &lt;teddy.katz@gmail.com&gt; (he/him) <ide> * [ofrobots](https://github.com/ofrobots) - <ide> **Ali Ijaz Sheikh** &lt;ofrobots@google.com&gt; (he/him) <del>* [orangemocha](https://github.com/orangemocha) - <...
1
Ruby
Ruby
use svn info --xml (#174)
90d3317d7dc9d809d7fc8da15e824161a0ce3008
<ide><path>Library/Homebrew/download_strategy.rb <ide> require "utils/json" <add>require "rexml/document" <ide> <ide> class AbstractDownloadStrategy <ide> include FileUtils <ide> def stage <ide> end <ide> <ide> def source_modified_time <del> Time.parse Utils.popen_read("svn", "info", cached_location.to_s).st...
1
Javascript
Javascript
increase fibonacci argument to 40
0ab4a1ce90cd1cb33860a10388473ed7bb070713
<ide><path>test/fixtures/workload/fibonacci.js <ide> function fib(n) { <ide> return fib(n - 1) + fib(n - 2); <ide> } <ide> <del>// This is based on emperial values - in the CI, on Windows the program <del>// tend to finish too fast then we won't be able to see the profiled script <del>// in the samples, so we need t...
1
PHP
PHP
allow wildcard mime types
fe1ef6570d10c955da8e90c8be429d96ad5574ee
<ide><path>src/Illuminate/Validation/Concerns/ValidatesAttributes.php <ide> protected function validateMimetypes($attribute, $value, $parameters) <ide> return false; <ide> } <ide> <del> return $value->getPath() != '' && (in_array($value->getMimeType(), $parameters) || in_array(explode('/', $...
1
Javascript
Javascript
drop unused import
cc5b7fb9a9d0e146599be759ce52721d2078f465
<ide><path>src/lib/units/month.js <ide> import isArray from '../utils/is-array'; <ide> import indexOf from '../utils/index-of'; <ide> import { createUTC } from '../create/utc'; <ide> import getParsingFlags from '../create/parsing-flags'; <del>import isUndefined from '../utils/is-undefined'; <ide> <ide> export function...
1
Ruby
Ruby
remove obsolete comment from generator gem method
09be6921590a7e4ded515deb8ce77566fa41fed5
<ide><path>railties/lib/rails/generators/actions.rb <ide> module Rails <ide> module Generators <ide> module Actions <ide> <del> # Adds an entry into Gemfile for the supplied gem. If env <del> # is specified, add the gem to the given environment. <add> # Adds an entry into Gemfile for the supplied ...
1
Python
Python
add an interface test
a05d1c2450074577f01eabe2e7e3a5ca8e64c847
<ide><path>numpy/core/tests/test_overrides.py <ide> def test_pickle(self): <ide> def test_docstring(self): <ide> assert_equal(dispatched_one_arg.__doc__, 'Docstring.') <ide> <add> def test_interface(self): <add> <add> class MyArray(object): <add> def __array_function__(self, func, type...
1
Ruby
Ruby
fix missing formula handling
9126a5cf8dbee31eae9df92d25c58c3337e55ed6
<ide><path>Library/Homebrew/cmd/install.rb <ide> def install <ide> end <ide> end <ide> <del> begin <del> formulae = [] <del> <del> unless ARGV.casks.empty? <del> cask_args = [] <del> cask_args << "--force" if args.force? <del> cask_args << "--debug" if args.debug? <del> ...
1
PHP
PHP
remove int cast from authentication adapters
3de72baeb1d911aecbea51006f815742696b3c9f
<ide><path>lib/Cake/Controller/Component/Auth/BaseAuthenticate.php <ide> protected function _findUser($username, $password) { <ide> } <ide> $result = ClassRegistry::init($userModel)->find('first', array( <ide> 'conditions' => $conditions, <del> 'recursive' => (int)$this->settings['recursive'], <add> 'recursi...
2
Javascript
Javascript
bring population example up-to-date
aa575adb9840d86de421b153ae189f711d3a8d48
<ide><path>examples/population/population.js <del>var w = 960, <del> h = 500, <del> x = d3.scale.linear().range([0, w]), <del> y = d3.scale.linear().range([0, h - 40]); <add>var width = 960, <add> height = 500; <add> <add>var x = d3.scale.linear() <add> .range([0, width]); <add> <add>var y = d3.scale.lin...
1
Text
Text
improve korean translation and change wording
fb551cb23c32fc85e76041489c5896e5a650bdb1
<ide><path>docs/i18n-languages/korean/CONTRIBUTING.md <ide> <ide> # 기여 지침 <ide> <del>안녕하세요 👋! <add>안녕하세요. 👋 <ide> <ide> freeCodeCamp.org는 여러분과 같은 수천 명의 친절한 자원봉사자 덕분에 운영할 수 있습니다. 우리는 여러분의 기여를 환영하며 감사하고 기쁘게 생각합니다. <ide> <del>우리는 [행동 강령] (https://www.freecodecamp.org/code-of-conduct)을 엄격히 시행합니다. 잠시 시간을 내어 읽어주십시오. 단지...
1
Javascript
Javascript
change passive checker to use defineproperty
035e4cffbd16fd618ed1a5614838656a4a505936
<ide><path>packages/react-dom/src/events/checkPassiveEvents.js <ide> export let passiveBrowserEventsSupported = false; <ide> // https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support <ide> if (enableEventAPI && canUseDOM) { <ide> try { <del> const options = { ...
1
PHP
PHP
fix doc blocks and class name
7cb92b85b05c7c1ee7902ea7ac47cd5767d593fb
<ide><path>src/View/ViewBuilder.php <ide> public function templatePath($path = null) <ide> * Get/set path for layout files. <ide> * <ide> * @param string|null $path Path for layout files. If null returns current path. <del> * @return string|void <add> * @return string|$this <ide> */ <ide> ...
1
Javascript
Javascript
verify inspector help url works
dfea13a1688f8fda6a7132714019067e7da68d1b
<ide><path>test/internet/test-inspector-help-page.js <add>'use strict'; <add>const common = require('../common'); <add> <add>common.skipIfInspectorDisabled(); <add> <add>if (!common.hasCrypto) <add> common.skip('missing crypto'); <add> <add>const assert = require('assert'); <add>const https = require('https'); <add>co...
1
Ruby
Ruby
fix typo in the `touch_all` doc [ci skip]
ac1efe7a947ba04b276a7109f1a86e559a6ab683
<ide><path>activerecord/lib/active_record/relation.rb <ide> def update_all(updates) <ide> # === Examples <ide> # <ide> # # Touch all records <del> # Person.all.touch <add> # Person.all.touch_all <ide> # # => "UPDATE \"people\" SET \"updated_at\" = '2018-01-04 22:55:23.132670'" <ide> # ...
1
Javascript
Javascript
increase max buffer to 1mb
875e9c886c179d26bc0c7c106fee230d132eadd4
<ide><path>script/utils/child-process-wrapper.js <ide> exports.safeExec = function(command, options, callback) { <ide> callback = options; <ide> options = {}; <ide> } <add> if (!options) <add> options = {}; <add> <add> // This needed to be increase for `apm test` runs that generate tons of failures <add>...
1
PHP
PHP
change binary column type to varbinary(max)
050efd6eae2b244e92b2b3a5a67f9ca7eb79d170
<ide><path>src/Database/Schema/SqlserverSchema.php <ide> public function columnSql(Table $table, $name) { <ide> 'integer' => ' INTEGER', <ide> 'biginteger' => ' BIGINT', <ide> 'boolean' => ' BIT', <del> 'binary' => ' BINARY', <add> 'binary' => ' VARBINARY(MAX)', <ide> 'float' => ' FLOAT', <ide> 'deci...
2
Python
Python
tolerate missing soundfile module.
39d55d9a4b3e5b2d894e51e78d9fa35e6be4aa18
<ide><path>research/audioset/vggish/vggish_input.py <ide> import mel_features <ide> import vggish_params <ide> <del>import soundfile as sf <add>try: <add> import soundfile as sf <add> <add> def wav_read(wav_file): <add> wav_data, sr = sf.read(wav_file, dtype='int16') <add> return wav_data, sr <add> <add>ex...
1
Python
Python
yield none when there's nothing to schedule
89f429738eed210a6ce1471a4a3ad763364a0c7a
<ide><path>celery/worker/scheduler.py <ide> def __iter__(self): <ide> yield 0 <ide> else: <ide> heapq.heappush(q, event) <del> yield 1 <add> yield None <ide> <ide> def empty(self): <ide> return not self._queue
1
Ruby
Ruby
switch pkgversion to use composition
27092cabc4bda0904e1616bb2e5d4d949dbd3178
<ide><path>Library/Homebrew/pkg_version.rb <del>require 'version' <add>require "version" <ide> <del>class PkgVersion < Version <del> attr_reader :version, :revision <add>class PkgVersion <add> include Comparable <ide> <ide> RX = /\A(.+?)(?:_(\d+))?\z/ <ide> <ide> def self.parse(path) <ide> _, version, revi...
2
Python
Python
fix blank lines around docstrings
a101251a2adbe4c42d28a60732e2b4d505cc624b
<ide><path>rest_framework/decorators.py <ide> <ide> <ide> def api_view(http_method_names=None): <del> <ide> """ <ide> Decorator that converts a function-based view into an APIView subclass. <ide> Takes a list of allowed methods for the view as an argument. <ide><path>rest_framework/generics.py <ide> def g...
10
Ruby
Ruby
prevent helper_method from calling to_hash
85f95b2f5806f2a34bfddd08d3002f74df556169
<ide><path>actionpack/lib/abstract_controller/helpers.rb <ide> def helper_method(*methods) <ide> <ide> methods.each do |method| <ide> _helpers.class_eval <<-ruby_eval, file, line <del> def #{method}(*args, **kwargs, &blk) # def current_user(*args, **kwargs, &blk) <del> ...
2
PHP
PHP
add docs for new classes
7154b818af7e8d6c7e6f9a3f7d4ed8c5027c519f
<ide><path>src/Error/DumpFormatter/TextFormatter.php <ide> <?php <ide> declare(strict_types=1); <ide> <add>/** <add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> *...
9
Text
Text
fix mkdir typo in dockerfile_best-practices.md
b95f9c10ff2bd05fc2d30b30bebb8174883c683a
<ide><path>docs/sources/articles/dockerfile_best-practices.md <ide> things like: <ide> <ide> And instead, do something like: <ide> <del> RUN mdkir -p /usr/src/things \ <add> RUN mkdir -p /usr/src/things \ <ide> && curl -SL http://example.com/big.tar.gz \ <ide> | tar -xJC /usr/src/things \ <ide> ...
1
PHP
PHP
add plugin. prefix for plugin files
72d0105e209bc1b40bbedc9bc9a99b33736a3ace
<ide><path>lib/Cake/Core/App.php <ide> public static function load($className) { <ide> return false; <ide> } <ide> <del> if ($file = self::_mapped($className)) { <del> return include $file; <del> } <del> <ide> $parts = explode('.', self::$_classMap[$className], 2); <ide> list($plugin, $package) = count($p...
1
Javascript
Javascript
increase readstream buffersize to 64k
24ac87f5437e067e01fc10d71ba4ee58f9ca1994
<ide><path>lib/fs.js <ide> var binding = process.binding('fs'); <ide> var fs = exports; <ide> <ide> var kMinPoolSpace = 128; <del>var kPoolSize = 40*1024; <add>var kPoolSize = 40 * 1024; <ide> <ide> fs.Stats = binding.Stats; <ide> <ide> var ReadStream = fs.ReadStream = function(path, options) { <ide> <ide> this.f...
1
Text
Text
add note for hardware keyboard in simulator
64c11433a16935e89c1b568e5df222454189ba65
<ide><path>docs/GettingStarted.md <ide> In the newly created folder `AwesomeProject/` <ide> - Open `index.ios.js` in your text editor of choice and edit some lines <ide> - Hit cmd+R ([twice](http://openradar.appspot.com/19613391)) in your iOS simulator to reload the app and see your change! <ide> <add>If Cmd-R is not ...
1
PHP
PHP
remove type hint
1b3f62aaeced2c9761a6052a7f0d3c1a046851c9
<ide><path>src/Illuminate/Database/Eloquent/Relations/Concerns/AsPivot.php <ide> public static function fromRawAttributes(Model $parent, $attributes, $table, $ex <ide> * @param \Illuminate\Database\Eloquent\Builder $query <ide> * @return \Illuminate\Database\Eloquent\Builder <ide> */ <del> protected...
2
Text
Text
release notes for 1.3.0-beta.8 accidental-haiku
be7c02c316dd1fbb8277851405e78a4cb1c283f1
<ide><path>CHANGELOG.md <add><a name="1.3.0-beta.8"></a> <add># 1.3.0-beta.8 accidental-haiku (2014-05-09) <add> <add> <add>## Bug Fixes <add> <add>- **$compile:** set $isolateScope correctly for sync template directives <add> ([562c4e42](https://github.com/angular/angular.js/commit/562c4e424b0ed5f8d4bffba0cd18e66db20...
1
Text
Text
add subheadings for these sections [ci skip]
cd01f9f9c5df06f74e1acdb55f0c6e5110ea0daf
<ide><path>guides/source/testing.md <ide> This will run all test methods from the test case. <ide> <ide> The `.` (dot) above indicates a passing test. When a test fails you see an `F`; when a test throws an error you see an `E` in its place. The last line of the output is the summary. <ide> <add>#### Your first faili...
1
Java
Java
deprecate unused method
706446a66018a2042bc1ba572f3f6b53dbfa253c
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/WebSocketHttpHeaders.java <ide> /* <del> * Copyright 2002-2017 the original author or authors. <add> * Copyright 2002-2020 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * y...
1
Javascript
Javascript
allow webpack.config.js in watch test
0d0f7e0062fd9684dd1d96a3f7fcb4ab4cf613a3
<ide><path>test/WatchTestCases.test.js <ide> describe("WatchTestCases", function() { <ide> describe(testName, function() { <ide> var tempDirectory = path.join(__dirname, "js", "watch-src", category.name, testName); <ide> var testDirectory = path.join(casesPath, category.name, testName); <del> var runs...
1
Ruby
Ruby
update some references to finder options [ci skip]
c5ee0ba6e2f130d89360af4ec10a5f48202f0f1e
<ide><path>activerecord/lib/active_record/errors.rb <ide> class ValueTooLong < StatementInvalid <ide> class RangeError < StatementInvalid <ide> end <ide> <del> # Raised when number of bind variables in statement given to +:condition+ key <del> # (for example, when using {ActiveRecord::Base.find}[rdoc-ref:FinderM...
2
Ruby
Ruby
fix rubocop warnings
f421374af1c70880e8e3abf0362f3efb55f62baf
<ide><path>Library/Homebrew/os/mac/sdk.rb <ide> def sdk_for(v) <ide> def latest_sdk <ide> return if sdk_paths.empty? <ide> <del> v, path = sdk_paths.max {|a, b| OS::Mac::Version.new(a[0]) <=> OS::Mac::Version.new(b[0])} <add> v, path = sdk_paths.max { |a, b| OS::Mac::Version.new(a[0]) <=> O...
1
Python
Python
remove polybase from np.polynomial.polyutils
7a9c663c2b6b1b636de56607485260e935ed6450
<ide><path>numpy/polynomial/polyutils.py <ide> This module provides: error and warning objects; a polynomial base class; <ide> and some routines used in both the `polynomial` and `chebyshev` modules. <ide> <del>Error objects <del>------------- <del> <del>.. autosummary:: <del> :toctree: generated/ <del> <del> Poly...
1
PHP
PHP
move ability map to a method
d0b5291098d856c3fb07075197feb165efb65c07
<ide><path>src/Illuminate/Foundation/Auth/Access/AuthorizesResources.php <ide> <ide> trait AuthorizesResources <ide> { <del> /** <del> * Map of resource methods to ability names. <del> * <del> * @var array <del> */ <del> protected $resourceAbilityMap = [ <del> 'index' => 'view', <del> ...
1
Python
Python
fix a comment error for maxnorm constraint
f1e14ef9c57da498f37b8fe9ac7fe86bff0b3f76
<ide><path>keras/constraints.py <ide> class MaxNorm(Constraint): <ide> to have a norm less than or equal to a desired value. <ide> <ide> # Arguments <del> m: the maximum norm for the incoming weights. <add> max_value: the maximum norm for the incoming weights. <ide> axis: integer, axis al...
1
Javascript
Javascript
improve dns lookup coverage
2d138965971109ddf6a583f78e5cdc3026c5f7f4
<ide><path>test/parallel/test-dns-lookup-promises.js <add>// Flags: --expose-internals <add>'use strict'; <add>const common = require('../common'); <add>const assert = require('assert'); <add>const { internalBinding } = require('internal/test/binding'); <add>const cares = internalBinding('cares_wrap'); <add> <add>// St...
1
Ruby
Ruby
deprecate some more legacy
a5445fd9c50161b8ccf2b36fcd26025882f73eaa
<ide><path>activemodel/lib/active_model/validations.rb <ide> def validation_method(on) <ide> end <ide> end <ide> <del> # The validation process on save can be skipped by passing false. The regular Base#save method is <del> # replaced with this when the validations module is mixed in, which it is by d...
1
Go
Go
skip some if non-root
16670ed4842b1ee4853ba39b6ebf2b771d28db9a
<ide><path>daemon/daemon_linux_test.go <ide> func checkMounted(t *testing.T, p string, expect bool) { <ide> } <ide> <ide> func TestRootMountCleanup(t *testing.T) { <add> if os.Getuid() != 0 { <add> t.Skip("root required") <add> } <add> <ide> t.Parallel() <ide> <ide> testRoot, err := ioutil.TempDir("", t.Name()) <i...
3
Javascript
Javascript
increase coverage for worker
565663e0468ccabeb589bc8a01ea3cc499e692e7
<ide><path>test/parallel/test-worker-execargv-invalid.js <ide> const { Worker } = require('worker_threads'); <ide> new Worker(__filename, { execArgv: ['--redirect-warnings'] }); <ide> }, expectedErr); <ide> } <add> <add>{ <add> const expectedErr = { <add> code: 'ERR_WORKER_INVALID_EXEC_ARGV', <add> name: '...
1
Ruby
Ruby
avoid unnecessary serialize calls after save
5e62c194e5e2a4f7be4839ad4a61a2114155e5df
<ide><path>activemodel/lib/active_model/attribute.rb <ide> def original_value <ide> end <ide> <ide> def value_for_database <del> type.serialize(value) <add> if !defined?(@value_for_database) || type.changed_in_place?(@value_for_database, value) <add> @value_for_database = _value_for_database <...
3
Text
Text
add missing comma
58a734e652dc52b0c5675df93349979b6d150b35
<ide><path>README.md <ide> These are the available config options for making requests. Only the `url` is re <ide> auth: { <ide> username: 'janedoe', <ide> password: 's00pers3cret' <del> } <add> }, <ide> <ide> // `responseType` indicates the type of data that the server will respond with <ide> // option...
1
Javascript
Javascript
increase coverage of buffer.transcode
904b66d870e166192f34083f399499b8e6c9f216
<ide><path>test/parallel/test-icu-transcode.js <ide> assert.deepStrictEqual( <ide> buffer.transcode(uint8array, 'latin1', 'utf16le'), <ide> Buffer.from('hä', 'utf16le')); <ide> } <add> <add>{ <add> const dest = buffer.transcode(new Uint8Array(), 'utf8', 'latin1'); <add> assert.strictEqual(dest.length, 0);...
1
Go
Go
embed spec when converting from grpc
a9d41184296c971c650f7d97a67ae5c9b44d4200
<ide><path>daemon/cluster/convert/secret.go <ide> func SecretFromGRPC(s *swarmapi.Secret) swarmtypes.Secret { <ide> ID: s.ID, <ide> Digest: s.Digest, <ide> SecretSize: s.SecretSize, <add> Spec: swarmtypes.SecretSpec{ <add> Annotations: swarmtypes.Annotations{ <add> Name: s.Spec.Annotations.Nam...
1
Javascript
Javascript
fix throws and doesnotthrow stack frames
d9171fef3fb1415344641b0ce82c5f4bc53936fc
<ide><path>lib/assert.js <ide> function innerThrows(shouldThrow, block, expected, message) { <ide> expected, <ide> operator: 'throws', <ide> message: `Missing expected exception${details}`, <del> stackStartFn: innerThrows <add> stackStartFn: assert.throws <ide> }); <ide> ...
2
Javascript
Javascript
handle packages without dependencies
e2563a3c524fca42828a083872ef756e38fff118
<ide><path>scripts/release/build-commands/check-package-dependencies.js <ide> const check = async ({cwd, packages}) => { <ide> const rootVersion = rootPackage.devDependencies[module]; <ide> <ide> projectPackages.forEach(projectPackage => { <del> const projectVersion = projectPackage.dependencies[module]; ...
1
Ruby
Ruby
fix whitespace removal, fix string concatenation
5b3f5dcbf2c0a10239b530db354da1cd9f6480bb
<ide><path>Library/Homebrew/rubocops/lines.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> <ide> T.must(offenses[0...-1]).each do |node| <ide> offending_node(node) <del> problem "Use a single `generate_completions_from_executable` call <del> ...
1
Javascript
Javascript
fix typing errors
92a3079f2928e07f652dfaa13e07f619e06632fa
<ide><path>lib/sharing/ConsumeSharedModule.js <ide> const { versionToString } = require("./utils"); <ide> * @property {string=} importResolved resolved fallback request <ide> * @property {string} shareKey global share key <ide> * @property {string} shareScope share scope <del> * @property {(number|string)[]} require...
3
Text
Text
update behaviour of fs.writefile
309e7723eac0442972bbaa6a725366b8ab150892
<ide><path>doc/api/fs.md <ide> recommended. <ide> 1. Any specified file descriptor has to support writing. <ide> 2. If a file descriptor is specified as the `file`, it will not be closed <ide> automatically. <del>3. The writing will begin at the beginning of the file. For example, if the <del>file already had `'Hello W...
1
Ruby
Ruby
add support for sha256
3809c0b4190850d54ba64248ade6d4737067c710
<ide><path>Library/Homebrew/formula.rb <ide> def initialize name='__UNKNOWN__' <ide> @version=Pathname.new(@url).version unless @version <ide> validate_variable :version if @version <ide> @homepage=self.class.homepage unless @homepage <del> @md5=self.class.md5 unless @md5 <del> @sha1=self.class.sha1 u...
2
Ruby
Ruby
fix the skip code
81679ab2ae8c9f6a233374efe9fcf096cf9f8fd9
<ide><path>activerecord/test/cases/connection_specification/resolver_test.rb <ide> def resolve(spec) <ide> end <ide> <ide> def test_url_host_no_db <del> skip "only if mysql is available" unless defined?(MysqlAdapter) <add> skip "only if mysql is available" unless current_adapter?(:Mys...
1
Javascript
Javascript
name anonymous functions for debugging purposes
5ce5ca03d32272321d07b0a624fb942b90b04d78
<ide><path>crypto.js <ide> <ide> 'use strict'; <ide> <del>var ARCFourCipher = (function() { <add>var ARCFourCipher = (function aRCFourCipher() { <ide> function constructor(key) { <ide> this.a = 0; <ide> this.b = 0; <ide> var ARCFourCipher = (function() { <ide> } <ide> <ide> constructor.prototype = { <d...
1
Javascript
Javascript
fix reference to boxbuffergeometry
4dc07db7c848cd03d4e6ce4385882312bb4473ad
<ide><path>src/extras/PMREMGenerator.js <ide> import { Vector3 } from '../math/Vector3.js'; <ide> import { Color } from '../math/Color.js'; <ide> import { WebGLRenderTarget } from '../renderers/WebGLRenderTarget.js'; <ide> import { MeshBasicMaterial } from '../materials/MeshBasicMaterial.js'; <del>import { BoxBufferGeo...
1
Python
Python
find sizeof wo running on the target platform
d58becf8f9269fc6487648238383cd8cf477124c
<ide><path>numpy/distutils/command/config.py <ide> def check_decl(self, symbol, <ide> <ide> def check_type_size(self, type_name, headers=None, include_dirs=None, library_dirs=None): <ide> """Check size of a given type.""" <del> # XXX: should also implement the cross-compiling version (using binary <...
1
Javascript
Javascript
update skeleton only once in a frame
58bd51ef3668a2c225dc168d3be4f9f1564ece69
<ide><path>src/objects/Skeleton.js <ide> function Skeleton( bones, boneInverses ) { <ide> this.bones = bones.slice( 0 ); <ide> this.boneMatrices = new Float32Array( this.bones.length * 16 ); <ide> <add> this.version = - 1; <add> <ide> // use the supplied bone inverses or calculate the inverses <ide> <ide> if ( bo...
2
PHP
PHP
fix phpcs violations
357a4af775a28e1a5f65d37081506e0daf10c245
<ide><path>src/Cache/Cache.php <ide> public static function remember($key, $callable, $config = 'default') { <ide> return $results; <ide> } <ide> <add>/** <add> * Returns an array mapping url schemes to fully qualified class names <add> * <add> * @return array <add> */ <ide> public static function getClassMap() { ...
5
Text
Text
remove duplicate lines
642238de8191a447077ca132a5b7ad2a695c2a59
<ide><path>research/object_detection/g3doc/tf2_training_and_evaluation.md <ide> A local evaluation job can be run with the following command: <ide> PIPELINE_CONFIG_PATH={path to pipeline config file} <ide> MODEL_DIR={path to model directory} <ide> CHECKPOINT_DIR=${MODEL_DIR} <del>MODEL_DIR={path to model directory} <id...
1
Javascript
Javascript
document the bootstrap process in node.js
008074fc38b51026f60c7397401ed6756639058f
<ide><path>lib/internal/bootstrap/node.js <ide> // Hello, and welcome to hacking node.js! <ide> // <del>// This file is invoked by node::LoadEnvironment in src/node.cc, and is <del>// responsible for bootstrapping the node.js core. As special caution is given <del>// to the performance of the startup process, many depe...
1
Javascript
Javascript
improve logged errors
1450ea7bf608a54640863e5ba23c6f0ce430e14f
<ide><path>test/common/index.js <ide> if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) { <ide> process._rawDebug(); <ide> throw new Error(`same id added to destroy list twice (${id})`); <ide> } <del> destroyListList[id] = new Error().stack; <add> destroyListList[id] = util.inspect(new Error()); <ide> ...
14
Javascript
Javascript
add debug flag to givebrowniepoints endpoint
c2720d784cbc25bd666675771062df4ce9d39e2e
<ide><path>common/models/user.js <ide> module.exports = function(User) { <ide> ); <ide> <ide> User.giveBrowniePoints = <del> function giveBrowniePoints(receiver, giver, data = {}, cb) { <add> function giveBrowniePoints(receiver, giver, data = {}, dev = false, cb) { <ide> const findUser = observeMethod(...
1
Python
Python
move data_utils to utils.data_utils
1ebeff8ee304833a3df421d0de3b9f9480570eb9
<ide><path>examples/babi_memnn.py <ide> from keras.layers.embeddings import Embedding <ide> from keras.layers.core import Activation, Dense, Merge, Permute, Dropout <ide> from keras.layers.recurrent import LSTM <del>from keras.datasets.data_utils import get_file <add>from keras.utils.data_utils import get_file <ide> fr...
11
Ruby
Ruby
add test for tapformulaorcaskunavailableerror
e64f2d1fd49a2a689443f5654cf47bc431f0c155
<ide><path>Library/Homebrew/test/exceptions_spec.rb <ide> } <ide> end <ide> <add> describe TapFormulaOrCaskUnavailableError do <add> subject(:error) { described_class.new(tap, "foo") } <add> <add> let(:tap) { double(Tap, user: "u", repo: "r", to_s: "u/r", installed?: false) } <add> <add> its(:to_s) { i...
1
Java
Java
fix rootview layout when using flex
a62aac5952c2d94120b7ed63d518da2bfbf4316d
<ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java <ide> import android.util.Log; <ide> import android.view.View; <ide> import com.facebook.infer.annotation.Assertions; <add>import com.facebook.react.bridge.GuardedRunnable; <ide> import com.facebook.react.bridge.ReactApplicationContext...
1
Mixed
Javascript
update example lifecycle methods
691b9e4f2a4d68ae5f3f4d48b4c944a04877e304
<ide><path>docs/api/applyMiddleware.md <ide> class SandwichShop extends Component { <ide> this.props.dispatch(makeASandwichWithSecretSauce(this.props.forPerson)) <ide> } <ide> <del> componentWillReceiveProps(nextProps) { <del> if (nextProps.forPerson !== this.props.forPerson) { <del> this.props.dispatch...
6
Javascript
Javascript
fix lint errors
5be6c4c92f0c9a779a8550c974fcc93864e18db7
<ide><path>server/middlewares/migrate-completed-challenges.js <ide> const challengeTypes = { <ide> }; <ide> <ide> const idMap = { <del> "bg9997c9c79feddfaeb9bdef": "56bbb991ad1ed5201cd392ca", <del> "bg9995c9c69feddfaeb9bdef": "56bbb991ad1ed5201cd392cb", <del> "bg9994c9c69feddfaeb9bdef": "56bbb991ad1ed5201cd392cc", ...
1
Text
Text
unify err_falsy_value_rejection description
23b3bbf506b8c53dad7abf70f2a27bf2d9e41746
<ide><path>doc/api/errors.md <ide> Used when `Console` is instantiated without `stdout` stream or when `stdout` or <ide> <a id="ERR_FALSY_VALUE_REJECTION"></a> <ide> ### ERR_FALSY_VALUE_REJECTION <ide> <del>The `ERR_FALSY_VALUE_REJECTION` error code is used by the `util.callbackify()` <del>API when a callbackified `Pr...
1
Javascript
Javascript
use sigil instead of comparing basestate to null
76659c418f730c19fa4ca08320efd71d8de15b43
<ide><path>src/renderers/shared/fiber/ReactFiberUpdateQueue.js <ide> export type UpdateQueue<State> = { <ide> last: Update<State> | null, <ide> callbackList: Array<Update<State>> | null, <ide> hasForceUpdate: boolean, <add> isInitialized: boolean, <ide> <ide> // Dev only <ide> isProcessing?: boolean, <ide> ...
1
Python
Python
set random seed in train script
a2357cce3fdf38382fcce783b13132f4d473ddfd
<ide><path>spacy/cli/train.py <ide> from thinc.neural._classes.model import Model <ide> from thinc.neural.optimizers import linear_decay <ide> from timeit import default_timer as timer <add>import random <add>import numpy.random <ide> <ide> from ..tokens.doc import Doc <ide> from ..scorer import Scorer <ide> from .. i...
1
Java
Java
add copyright header into contextutils class
fba7c1ece25f21577fdb6c2ddb25081c367a0029
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/common/ContextUtils.java <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> */ <ide> package...
1
Python
Python
migrate the memory plugin to psutil 2.0
3973d36ae6d7468972065ac7a337964280aebbe1
<ide><path>glances/plugins/glances_cpu.py <ide> def update(self): <ide> for cpu in ['user', 'system', 'idle', 'nice', <ide> 'iowait', 'irq', 'softirq', 'steal', <ide> 'guest', 'guest_nice']: <del> if hasattr(cputimespercent, cpu): <add> if (hasattr(c...
2
PHP
PHP
fix strict error in 5.4
921c2c67abf7afdd7d6d2199a5216fd80dc5ba3f
<ide><path>lib/Cake/Utility/ObjectCollection.php <ide> public function attached($name = null) { <ide> * @return void <ide> */ <ide> public function unload($name) { <del> $name = array_pop(pluginSplit($name)); <add> list(, $name) = pluginSplit($name); <ide> unset($this->_loaded[$name], $this->_enabled[$name]); <i...
1
Javascript
Javascript
run firefox in headless mode
786ca86cb03f3d5f290faafdcb1016245ce81334
<ide><path>testem.travis-browsers.js <ide> module.exports = { <ide> launch_in_dev: ['Firefox'], <ide> launch_in_ci: ['Firefox'], <ide> reporter: FailureOnlyReporter, <add> <add> browser_args: { <add> Firefox: { ci: ['-headless', '--window-size=1440,900'] }, <add> }, <ide> };
1
Python
Python
add test_connection method to azure wasbhook
f18c609d127f54fbbf4dae6b290c6cdcfc7f98d0
<ide><path>airflow/providers/microsoft/azure/hooks/wasb.py <ide> def delete_file( <ide> raise AirflowException(f'Blob(s) not found: {blob_name}') <ide> <ide> self.delete_blobs(container_name, *blobs_to_delete, **kwargs) <add> <add> def test_connection(self): <add> """Test Azure Blob Stora...
2
Javascript
Javascript
exercise more features in the randomized test
d83304cbddbdf661f656b04137ee10b66121db14
<ide><path>spec/text-editor-component-spec.js <ide> const electron = require('electron') <ide> const clipboard = require('../src/safe-clipboard') <ide> <ide> const SAMPLE_TEXT = fs.readFileSync(path.join(__dirname, 'fixtures', 'sample.js'), 'utf8') <del>const NBSP_CHARACTER = '\u00a0' <ide> <ide> document.registerEle...
1
Text
Text
remove unnecessary backticks
ce3ccc47d41774a284cc375d0aa3207e2ef92e09
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/global-vs.-local-scope-in-functions.md <ide> dashedName: global-vs--local-scope-in-functions <ide> <ide> # --description-- <ide> <del>It is possible to have both <dfn>local</dfn> and <dfn>global</dfn> variables with...
1
Python
Python
add check for printing complex dtypes, closes #693
be25d94bfc6f72535700432e87a52e4a15f0f8f5
<ide><path>numpy/core/tests/test_regression.py <ide> def check_floats_from_string(self, level=rlevel): <ide> assert_almost_equal(fdouble, 1.234) <ide> assert_almost_equal(flongdouble, 1.234) <ide> <add> def check_complex_dtype_printing(self, level=rlevel): <add> dt = np.dtype([('top', [('tile...
1
Text
Text
fix minor typos
15bb1d59c873357c0dc1f837d97a2aa3e5981c71
<ide><path>guides/source/i18n.md <ide> end <ide> <ide> With this approach you will not get a `Routing Error` when accessing your resources such as `http://localhost:3001/books` without a locale. This is useful for when you want to use the default locale when one is not specified. <ide> <del>Of course, you need to tak...
1
Ruby
Ruby
show wsl version if available on linux
55c82749ad8343541d15f91227478035363bff12
<ide><path>Library/Homebrew/extend/os/linux/system_config.rb <ide> def host_ruby_version <ide> out <ide> end <ide> <add> def wsl_version(kernel) <add> return "no" unless /-microsoft/i.match?(kernel) <add> <add> return "2 (store)" if Version.new kernel[/Linux ([0-9.]*)-.*/, 1] > Version.new("5.15...
1
Javascript
Javascript
manage children inside dom properties
7cd26b9c7172465981b70ea6bf0bb9b09ce8b715
<ide><path>src/renderers/dom/fiber/ReactDOMFiberComponent.js <ide> <ide> var AutoFocusUtils = require('AutoFocusUtils'); <ide> var CSSPropertyOperations = require('CSSPropertyOperations'); <del>var DOMLazyTree = require('DOMLazyTree'); <ide> var DOMNamespaces = require('DOMNamespaces'); <ide> var DOMProperty = require...
1
Text
Text
correct typos in security release process
a1e47d7603b1d0bf54c8aad027298e964b8c8af4
<ide><path>doc/guides/security_release_process.md <ide> a security release. <ide> * [ ] Co-ordinate with the Release team members to line up one or more releasers <ide> to do the releases on the agreed date. <ide> <del>* [ ] Prep for the pre-security announcement and final security annoucement by <add>* [ ] Prep for...
1
Python
Python
add rabbitmq export for glances
553de758d56ff09d29e5167167dc04bba236a13e
<ide><path>glances/exports/glances_rabbitmq.py <add># -*- coding: utf-8 -*- <add># <add># This file is part of Glances. <add># <add># Copyright (C) 2015 Nicolargo <nicolas@nicolargo.com> <add># <add># Glances is free software; you can redistribute it and/or modify <add># it under the terms of the GNU Lesser General Pub...
1
Python
Python
add clusterresolver capability to mnist_tpu.py
87a9205b75857c1b6ac01de97f003389280c8f17
<ide><path>official/mnist/mnist_tpu.py <ide> import dataset <ide> import mnist <ide> <add># Cloud TPU Cluster Resolvers <add>tf.flags.DEFINE_string( <add> "gcp_project", default=None, <add> help="Project name for the Cloud TPU-enabled project. If not specified, we " <add> "will attempt to automatically detect...
1
Text
Text
add missing entry in `globals.md`
4c81b34428914b9d80f4189835d124e420515844
<ide><path>doc/api/globals.md <ide> added: v0.0.1 <ide> <ide> [`setTimeout`][] is described in the [timers][] section. <ide> <add>## `structuredClone(value[, options])` <add> <add><!-- YAML <add>added: v17.0.0 <add>--> <add> <add><!-- type=global --> <add> <add>The WHATWG [`structuredClone`][] method. <add> <ide> ## ...
1
Javascript
Javascript
avoid new set([iterable]) for thenables
0fc15475139206f1f999b5c16bbe6f90142e936a
<ide><path>packages/react-reconciler/src/ReactFiberUnwindWork.js <ide> function throwException( <ide> // attach another listener to flip the boundary back to its normal state. <ide> const thenables: Set<Thenable> = (workInProgress.updateQueue: any); <ide> if (thenables === null) { <del> ...
1
PHP
PHP
remove invalid inflection
b2291609554b4197b5cc3669bcad64cc25c55bfc
<ide><path>src/Routing/Router.php <ide> public static function parseRoutePath(string $url): array <ide> $defaults['plugin'] = $matches['plugin']; <ide> } <ide> if ($matches['prefix'] !== '') { <del> $defaults['prefix'] = Inflector::underscore($matches['prefix']); <add> ...
1
Text
Text
add changelogs for querystring
e9680c5e6803b42ce46c455cfed3936bfe8b60e4
<ide><path>doc/api/querystring.md <ide> necessary by assigning `querystring.escape` to an alternative function. <ide> ## querystring.parse(str[, sep[, eq[, options]]]) <ide> <!-- YAML <ide> added: v0.1.25 <add>changes: <add> - version: v6.0.0 <add> pr-url: https://github.com/nodejs/node/pull/6055 <add> descripti...
1
Python
Python
use empty lines for mpl_toolkits.mplot3d objects
5ee37b0e7966cd7181f3436a6758b19871d2597f
<ide><path>doc/conftest.py <ide> # https://github.com/wooyek/pytest-doctest-ellipsis-markers (MIT license) <ide> OutputChecker = doctest.OutputChecker <ide> <add>empty_line_markers = ['<matplotlib.', '<mpl_toolkits.mplot3d.'] <ide> class SkipMatplotlibOutputChecker(doctest.OutputChecker): <ide> def check_output(se...
1
Ruby
Ruby
rewrite order dependent test case.
e68505a41a5c4ceeb0ed343daa0433846b054076
<ide><path>activesupport/test/json/encoding_test.rb <ide> def test_to_json_should_not_keep_options_around <ide> f.bar = "world" <ide> <ide> hash = {"foo" => f, "other_hash" => {"foo" => "other_foo", "test" => "other_test"}} <del> assert_equal(%({"foo":{"foo":"hello","bar":"world"},"other_hash":{"foo":"other...
1
Go
Go
remove cli.build(), cli.inspect()
940730093b4bc71837009e815352af49f60d2fd0
<ide><path>integration-cli/cli/cli.go <ide> func DockerCmd(t testing.TB, args ...string) *icmd.Result { <ide> <ide> // BuildCmd executes the specified docker build command and expect a success <ide> func BuildCmd(t testing.TB, name string, cmdOperators ...CmdOperator) *icmd.Result { <del> return Docker(Build(name), cm...
4
Java
Java
expose requestpath in serverhttprequest
38a12ed4ba54b6929db0f114a5fa439677e441ac
<ide><path>spring-test/src/main/java/org/springframework/mock/http/server/reactive/MockServerHttpRequest.java <ide> public class MockServerHttpRequest extends AbstractServerHttpRequest { <ide> <ide> private final HttpMethod httpMethod; <ide> <del> private final String contextPath; <del> <ide> private final MultiVal...
26