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
Ruby
Ruby
remove flaky cask upgrade test
626f9406b1987932382814bc7d7cae3b41b771f4
<ide><path>Library/Homebrew/test/cask/cmd/upgrade_spec.rb <ide> expect(local_transmission_path).to be_a_directory <ide> expect(local_transmission.versions).to include("2.60") <ide> end <del> <del> it 'updates "auto_updates" and "latest" Casks when their tokens are provided in the command line...
1
PHP
PHP
change artisan requirement
0434715dd49fc46940efa35790c5ddd9506dca65
<ide><path>src/Illuminate/Console/Application.php <ide> public static function make($app) <ide> */ <ide> public function boot() <ide> { <del> require $this->laravel['path'].'/start/artisan.php'; <del> <ide> // If the event dispatcher is set on the application, we will fire an event <ide> // with the Artisan in...
1
Python
Python
add vae example
d7ff7cde925f803919d954f5cb73a685b8f14b0a
<ide><path>examples/variational_autoencoder.py <add>'''This script demonstrates how to build a variational autoencoder with Keras. <add> <add>Reference: "Auto-Encoding Variational Bayes" https://arxiv.org/abs/1312.6114 <add>''' <add>import numpy as np <add>import matplotlib.pyplot as plt <add> <add>from keras.layers im...
1
Python
Python
update paver script file doc + todo
0b0dbdf45032ad170fbcb2068a95b34326a4a523
<ide><path>pavement.py <ide> """ <add>This paver file is intented to help with the release process as much as <add>possible. It relies on virtualenv to generate 'bootstrap' environments as <add>independent from the user system as possible (e.g. to make sure the sphinx doc <add>is built against the built numpy, not an i...
1
Javascript
Javascript
replace assert.throws w/ common.expectserror
146a9b1a8a38285b0613559aa96498bc7859fc75
<ide><path>test/parallel/test-async-hooks-asyncresource-constructor.js <ide> // This tests that AsyncResource throws an error if bad parameters are passed <ide> <ide> const common = require('../common'); <del>const assert = require('assert'); <ide> const async_hooks = require('async_hooks'); <ide> const { AsyncResourc...
10
Python
Python
fix documentation for convolution2d
26ab219159ec4afa5940e0cd2cf2dcffb4b2399d
<ide><path>keras/layers/convolutional.py <ide> class Convolution2D(Layer): <ide> <ide> # Output shape <ide> 4D tensor with shape: <del> `(samples, nb_filter, nb_row, nb_col)` if dim_ordering='th' <add> `(samples, nb_filter, new_rows, new_cols)` if dim_ordering='th' <ide> or 4D tensor ...
1
Ruby
Ruby
clarify service.build arguments
1a17cfb9d9719c8458fb1259371c173627b96d8f
<ide><path>lib/active_storage/service.rb <ide> def self.configure(service_name, configurations) <ide> <ide> # Override in subclasses that stitch together multiple services and hence <ide> # need to do additional lookups from configurations. See MirrorService. <del> def self.build(config, configurations) #:nodoc: ...
2
Javascript
Javascript
fix spelling mistake in node.js comment
ec6e5c79993599a8b6977050bcc09b32b187a8ac
<ide><path>src/node.js <ide> process._tickDomainCallback = _tickDomainCallback; <ide> <ide> // This tickInfo thing is used so that the C++ code in src/node.cc <del> // can have easy accesss to our nextTick state, and avoid unnecessary <add> // can have easy access to our nextTick state, and avoid unneces...
1
Javascript
Javascript
reconstruct constructor in more cases
a92ad36894dc91af765e7cc9bfce4a7ea64c27fa
<ide><path>lib/internal/util/inspect.js <ide> function formatRaw(ctx, value, recurseTimes, typedArray) { <ide> braces = getIteratorBraces('Set', tag); <ide> formatter = formatIterator; <ide> // Handle other regular objects again. <del> } else if (keys.length === 0) { <del> if (isExtern...
2
Python
Python
maintain aspect ratio of content image
d0b4779071c0383f2ec9092ab9eee4b8ed4f81c2
<ide><path>examples/neural_style_transfer.py <ide> content_weight = args.content_weight <ide> <ide> # dimensions of the generated picture. <add>width, height = load_img(base_image_path).size <ide> img_nrows = 400 <del>img_ncols = 400 <del>assert img_ncols == img_nrows, 'Due to the use of the Gram matrix, width and hei...
1
Javascript
Javascript
remove unnecessary comma in oceanshader
59162563eddb4fab7f294560bdfdf2cc0c5abfd7
<ide><path>examples/js/shaders/OceanShaders.js <ide> THREE.ShaderLib[ 'ocean_initial_spectrum' ] = { <ide> uniforms: { <ide> "u_wind": { value: new THREE.Vector2( 10.0, 10.0 ) }, <ide> "u_resolution": { value: 512.0 }, <del> "u_size": { value: 250.0 }, <add> "u_size": { value: 250.0 } <ide> }, <ide> fragmentSh...
1
Go
Go
fix experimental tests
44da86172aeb750d0ac46c000e32e51a12411ecd
<ide><path>integration-cli/docker_utils.go <ide> import ( <ide> "github.com/go-check/check" <ide> ) <ide> <add>func init() { <add> out, err := exec.Command(dockerBinary, "images").CombinedOutput() <add> if err != nil { <add> panic(err) <add> } <add> lines := strings.Split(string(out), "\n")[1:] <add> for _, l := ran...
1
Java
Java
support meta @component with non-string value
a8fd832818af60140ac3e4660d1a26bd3944ab8b
<ide><path>spring-context/src/main/java/org/springframework/context/annotation/AnnotationBeanNameGenerator.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"...
2
Ruby
Ruby
provide unpatched argv
34a8ab74af5e7687e92a8a9641be1aabc14cb54d
<ide><path>Library/Homebrew/global.rb <ide> require "messages" <ide> require "system_command" <ide> <add>ARGV_WITHOUT_MONKEY_PATCHING = ARGV.dup <ide> ARGV.extend(HomebrewArgvExtension) <ide> <ide> HOMEBREW_PRODUCT = ENV["HOMEBREW_PRODUCT"]
1
PHP
PHP
fix typo in bake
6ffdf09d4d93ebaba69f7c9117acd9ea1df7d6a3
<ide><path>cake/scripts/bake.php <ide> function __bakeActions($controllerName, $admin = null, $admin_url = null, $wanna <ide> $habtmModelName = $this->__modelName($associationName); <ide> $habtmSingularName = $this->__singularName($associationName); <ide> $habtmPluralName = $this->__pluralName($associationN...
1
Ruby
Ruby
allow #nulls_first and #nulls_last in postgresql
66b19b5dec78a74e4280d69ac0e4801699ca691a
<ide><path>activerecord/lib/arel/nodes.rb <ide> # unary <ide> require "arel/nodes/unary" <ide> require "arel/nodes/grouping" <add>require "arel/nodes/ordering" <ide> require "arel/nodes/ascending" <ide> require "arel/nodes/descending" <ide> require "arel/nodes/unqualified_column" <ide><path>activerecord/lib/arel/nodes/...
5
Ruby
Ruby
fix warning thrown by ruby 1.8.6
7ffa831718b1377a9faea623ed185bae54248106
<ide><path>Library/Homebrew/patches.rb <ide> def curl_args <ide> # Write the given file object (DATA) out to a local file for patch <ide> def write_data f <ide> pn = Pathname.new @patch_filename <del> pn.write(brew_var_substitution f.read.to_s) <add> pn.write(brew_var_substitution(f.read.to_s)) <ide> en...
1
Javascript
Javascript
prevent undefined values in mergeconfig
b1c378606f09a38d7e6713595add07676882b8f2
<ide><path>lib/core/mergeConfig.js <ide> module.exports = function mergeConfig(config1, config2) { <ide> var config = {}; <ide> <ide> utils.forEach(['url', 'method', 'params', 'data'], function valueFromInstanceConfig(prop) { <del> config[prop] = config2[prop]; <add> if (typeof config2[prop] !== 'undefined')...
1
Javascript
Javascript
throw an error when getwindowsize() fails
f1f5de1c8d289766ee1628a06cb7dbab440e12f8
<ide><path>lib/tty.js <ide> function WriteStream(fd) { <ide> this.writable = true; <ide> <ide> var winSize = this._handle.getWindowSize(); <del> this.columns = winSize[0]; <del> this.rows = winSize[1]; <add> if (winSize) { <add> this.columns = winSize[0]; <add> this.rows = winSize[1]; <add> } <ide> } <id...
1
Ruby
Ruby
create plpgsql language if not available
5156110476575f1b26be0b204ab2e12d2dd37434
<ide><path>activerecord/test/schema/postgresql_specific_schema.rb <ide> ); <ide> _SQL <ide> <del> execute <<_SQL <del> CREATE TABLE postgresql_partitioned_table_parent ( <del> id SERIAL PRIMARY KEY, <del> number integer <del> ); <del> CREATE TABLE postgresql_partitioned_table ( ) <del> INHERITS (postgre...
1
Text
Text
fix small typo in activejob changelog
d6a7aab4fd128da2385fdad8b9bf197172bc79fb
<ide><path>activejob/CHANGELOG.md <ide> end <ide> end <ide> <del> When dealing with sensitive arugments as password and tokens it is now possible to configure the job <add> When dealing with sensitive arguments as password and tokens it is now possible to configure the job <ide> to not put ...
1
Text
Text
fix dead link in doc/releases.md
a6b47a29f2035de3342b917eacb4607a4f6a5f00
<ide><path>doc/releases.md <ide> Release builds require manual promotion by an individual with SSH access to the <ide> <ide> A SHASUMS256.txt file is produced for every promoted build, nightly, and releases. Additionally for releases, this file is signed by the individual responsible for that release. In order to be a...
1
PHP
PHP
remove bad test
ed6ff92296107121d8fa50fb6ae75cd6ca61ca5e
<ide><path>lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php <ide> public function testMultipleServers() { <ide> $Memcache = new MemcacheEngine(); <ide> $Memcache->init(array('engine' => 'Memcache', 'servers' => $servers)); <ide> <del> $servers = array_keys($Memcache->__Memcache->getExtendedStats()); <ide> ...
1
PHP
PHP
fix failing folder test
9b53319ee38a7f05c31b097497b68d3b0334b087
<ide><path>lib/Cake/Test/TestCase/Utility/FolderTest.php <ide> public function testFindRecursive() { <ide> $this->assertSame(array_diff($expected, $result), array()); <ide> $this->assertSame(array_diff($expected, $result), array()); <ide> <del> $result = $Folder->findRecursive('(config|paths)\.php', true); <add> ...
1
Ruby
Ruby
use string for example
3c975d85f17bc2f47b01aff06f34e16605e66bf0
<ide><path>activesupport/lib/active_support/message_verifier.rb <ide> module ActiveSupport <ide> # return the original value. But messages can be set to expire at a given <ide> # time with +:expires_in+ or +:expires_at+. <ide> # <del> # @verifier.generate(parcel, expires_in: 1.month) <del> # @verifier.gener...
1
Text
Text
remove title and hr
4204557bc5086fbf9c8da9476a9efde92e10b8ed
<ide><path>docs/topics/documenting-your-api.md <ide> Mark is also the author of the [REST Framework Docs][rest-framework-docs] packag <ide> <ide> ![Screenshot - Django REST Swagger][image-django-rest-swagger] <ide> <del>--- <del> <del>#### REST Framework Docs <del> <del> <ide> --- <ide> <ide> #### Apiary
1
Ruby
Ruby
add warnings for patches and resources
8df618958dbd459715f3d5ee6456092f4fec59af
<ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb <ide> def bump_formula_pr <ide> new_version = args.version <ide> check_closed_pull_requests(formula, tap_full_name, version: new_version, args: args) if new_version <ide> <add> opoo "This formula has patches that may be resolved upstream." if formula.pa...
1
Javascript
Javascript
use class fields in event and eventtarget
ea0668a27e2d89dd7924d577b6bcf3f87ed3d986
<ide><path>lib/internal/event_target.js <ide> const kTrustEvent = Symbol('kTrustEvent'); <ide> <ide> const { now } = require('internal/perf/utils'); <ide> <del>// TODO(joyeecheung): V8 snapshot does not support instance member <del>// initializers for now: <del>// https://bugs.chromium.org/p/v8/issues/detail?id=10704...
1
Javascript
Javascript
add verify-requirements util
07e64152be272dea68f3b149be9b94a27b871491
<ide><path>script/utils/verify-requirements.js <add>module.exports = function() { <add> verifyNode(); <add> verifyPython27(); <add>}; <add> <add>function verifyNode() { <add> var nodeVersion = process.versions.node.split('.'); <add> var nodeMajorVersion = +nodeVersion[0]; <add> var nodeMinorVersion = +nodeVersion[...
1
PHP
PHP
add touch method to timestamp behavior
527291974c2276164cc641c241243bf1fe110791
<ide><path>Cake/Model/Behavior/TimestampBehavior.php <ide> class TimestampBehavior extends Behavior { <ide> */ <ide> protected static $_defaultConfig = [ <ide> 'implementedFinders' => [], <del> 'implementedMethods' => ['timestamp' => 'timestamp'], <add> 'implementedMethods' => [ <add> 'timestamp' => 'timestamp'...
2
Javascript
Javascript
remove module argument from getdependencyreference
923e16dd5ad86f0619bac26938436cac9b9d4957
<ide><path>lib/Compilation.js <ide> class Compilation { <ide> } <ide> <ide> /** <del> * @param {Module} module the module containing the dependency <ide> * @param {Dependency} dependency the dependency <ide> * @returns {DependencyReference} a reference for the dependency <ide> */ <del> getDependencyReference(...
5
Javascript
Javascript
add preparse/postformat for ta
5b720a191a3ff5cbc052660d65d38ca2ab756a64
<ide><path>src/locale/ta.js <ide> <ide> import moment from '../moment'; <ide> <add>var symbolMap = { <add> '1': '௧', <add> '2': '௨', <add> '3': '௩', <add> '4': '௪', <add> '5': '௫', <add> '6': '௬', <add> '7': '௭', <add> '8': '௮', <add> '9': '௯', <add> '0': '௦' <add>}, numberMap = { <add> ...
2
Ruby
Ruby
remove reference to homebrew/x11
06ecad2950b8890eb9175081e9f9231cd0542470
<ide><path>Library/Homebrew/formula.rb <ide> def go_resource(name, &block) <ide> # depends_on :arch => :x86_64 # If this formula only builds on Intel x86 64-bit. <ide> # depends_on :arch => :ppc # Only builds on PowerPC? <ide> # depends_on :ld64 # Sometimes ld fails on `MacOS.version < :leopard`. Then use t...
1
Javascript
Javascript
simplify the code
accd0b3b2067ac05cd2557252ba4394fd04c7939
<ide><path>src/loaders/FileLoader.js <ide> Object.assign( FileLoader.prototype, { <ide> <ide> if ( request.overrideMimeType ) request.overrideMimeType( this.mimeType !== undefined ? this.mimeType : 'text/plain' ); <ide> <del> if ( this.requestHeader !== undefined ) { <add> for ( var header in this.requestHeade...
1
Ruby
Ruby
catch another name error
b40615d66ac8572c6735f3bb9d6cd3e781edf740
<ide><path>Library/Homebrew/formulary.rb <ide> def get_formula; end <ide> # Return the Class for this formula, `require`-ing it if <ide> # it has not been parsed before. <ide> def klass <del> unless Formulary.formula_class_defined? name <add> begin <add> have_klass = Formulary.formula_class...
1
Python
Python
fix some error messages
edf68c5bcc0df076af25f65c561350d98c05402f
<ide><path>numpy/_array_api/_array_object.py <ide> def __float__(self: array, /) -> float: <ide> """ <ide> # Note: This is an error here. <ide> if self._array.shape != (): <del> raise TypeError("bool is only allowed on arrays with shape ()") <add> raise TypeError("float is ...
1
Javascript
Javascript
improve future tense "
545026426aaaecff52c2c640a795794e3c5c6146
<ide><path>src/locale/sk.js <ide> export default moment.defineLocale('sk', { <ide> sameElse: 'L' <ide> }, <ide> relativeTime : { <del> future : 'o %s', <add> future : 'za %s', <ide> past : 'pred %s', <ide> s : translate, <ide> ss : translate, <ide><path>src/test/loc...
2
Ruby
Ruby
add note about observer config for rails apps
bd7d8665a083f534f9d1aaa544d912f933b4fd61
<ide><path>activemodel/lib/active_model/observing.rb <ide> def notify_observers(method) <ide> # The AuditObserver will now act on both updates to Account and Balance by treating <ide> # them both as records. <ide> # <add> # If you're using an Observer in a Rails application with Active Record, be sure to <add> ...
1
Text
Text
add v3.28.0-beta.4 to changelog
b6948fbe9dc2d1cc148b7d859bb43cc024f43312
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.28.0-beta.4 (June 7, 2021) <add> <add>- [#19586](https://github.com/emberjs/ember.js/pull/19586) [BUGFIX] Fix Embroider compatibility <add> <ide> ### v3.28.0-beta.3 (June 1, 2021) <ide> <ide> - [#19565](https://github.com/emberjs/ember.js/pull/19565) [...
1
Ruby
Ruby
make the type_map per connection. fixes
c9223dc366f17b61d0cffeff14a7e670ece9d0d4
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb <ide> def indexes(table_name, name = nil) <ide> def columns(table_name) <ide> # Limit, precision, and scale are all handled by the superclass. <ide> column_definitions(table_name).map do |column_nam...
2
Javascript
Javascript
fix jslint issues
48650639248e73f78b2bd4ba2d3d1590749753ce
<ide><path>test/internet/test-dns.js <ide> TEST(function test_lookup_localhost_ipv4(done) { <ide> <ide> var getaddrinfoCallbackCalled = false; <ide> <del>console.log("looking up nodejs.org..."); <add>console.log('looking up nodejs.org...'); <ide> var req = process.binding('cares_wrap').getaddrinfo('nodejs.org'); <ide...
38
Go
Go
update documentation for ringlogger's ring buffer
3521d534e5c9338ae5605d1228554862e922a8a9
<ide><path>daemon/logger/ring.go <ide> func newRing(maxBytes int64) *messageRing { <ide> } <ide> <ide> // Enqueue adds a message to the buffer queue <del>// If the message is too big for the buffer it drops the oldest messages to make room <add>// If the message is too big for the buffer it drops the new message. <ide...
2
Javascript
Javascript
use lazysets for contextmodulefactory
88d90bea14354ef5e2333891cbdacc2defddaa32
<ide><path>lib/ContextModuleFactory.js <ide> const { AsyncSeriesWaterfallHook, SyncWaterfallHook } = require("tapable"); <ide> const ContextModule = require("./ContextModule"); <ide> const ModuleFactory = require("./ModuleFactory"); <ide> const ContextElementDependency = require("./dependencies/ContextElementDependency...
1
PHP
PHP
handle new compile config
1fa90966dd7867da71d03115d5bb6cdb071f8864
<ide><path>src/Illuminate/Foundation/Console/OptimizeCommand.php <ide> protected function compileClasses() <ide> */ <ide> protected function getClassFiles() <ide> { <del> $app = $this->laravel; <del> <ide> $core = require __DIR__.'/Optimize/config.php'; <ide> <del> return array_merge($core, $this->laravel['con...
1
Python
Python
add test for issue #955
874a3cbb073b8bf79925c3c620e09245afa2157e
<ide><path>spacy/tests/regression/test_issue995.py <add>import pytest <add>from ... import load as load_spacy <add> <add>@pytest.fixture <add>def doc(): <add> nlp = load_spacy('en') <add> return nlp('Does flight number three fifty-four require a connecting flight' <add> ' to get to Boston?') <add> <...
1
Text
Text
add documentation for fs.writestream.close()
5b9074813fa8930d4abcd6e0533647d20d9e3145
<ide><path>doc/api/fs.md <ide> added: v0.4.7 <ide> The number of bytes written so far. Does not include data that is still queued <ide> for writing. <ide> <add>#### `writeStream.close([callback])` <add><!-- YAML <add>added: v0.9.4 <add>--> <add> <add>* `callback` {Function} <add> * `err` {Error} <add> <add>Closes `wr...
1
Text
Text
fix typo in more-about-refs.md
7aa621daeeac103fc7e86e713e0dcd48cfac9819
<ide><path>docs/docs/08.1-more-about-refs.md <ide> Refs are a great way to send a message to a particular child instance in a way t <ide> ### Cautions: <ide> <ide> - *Never* access refs inside of any component's render method – or while any component's render method is even running anywhere in the call stack. <del>- I...
1
PHP
PHP
fix logic as per comment from @grahamcampbell
af31256a55b36a8576a6c8f4ea3ed39c97bdc2c8
<ide><path>src/Illuminate/Validation/Validator.php <ide> protected function validateUrl($attribute, $value) <ide> */ <ide> protected function validateActiveUrl($attribute, $value) <ide> { <del> if (! ($url = parse_url($value, PHP_URL_HOST))) { <del> return false; <add> if ($url = p...
1
Ruby
Ruby
use quieter `system_command!`
a74d6060f317c360106d81c461827cb016752d39
<ide><path>Library/Homebrew/settings.rb <ide> # typed: true <ide> # frozen_string_literal: true <ide> <add>require "system_command" <add> <ide> module Homebrew <ide> # Helper functions for reading and writing settings. <ide> # <ide> # @api private <ide> module Settings <ide> extend T::Sig <add> include ...
1
Javascript
Javascript
use clamp correctly in progress control
cad9114b2e8994fd51c2dd88a15efffbdb0b2b8a
<ide><path>src/js/control-bar/progress-control/progress-control.js <ide> class ProgressControl extends Component { <ide> // The default skin has a gap on either side of the `SeekBar`. This means <ide> // that it's possible to trigger this behavior outside the boundaries of <ide> // the `SeekBar`. This ensur...
1
PHP
PHP
set the e-mail subject to something reasonable
bfd01c401f632d5701fee171c24d2b515527a176
<ide><path>src/Illuminate/Foundation/Auth/ResetsPasswords.php <ide> public function postEmail(Request $request) <ide> { <ide> $this->validate($request, ['email' => 'required']); <ide> <del> switch ($response = $this->passwords->sendResetLink($request->only('email'))) <add> $response = $this->passwords->sendResetL...
1
Text
Text
trim wording in n-api.md text about exceptions
bdfbbf6c68da7a413d5e7101ce135ea41e4e81f4
<ide><path>doc/api/n-api.md <ide> This API can be called even if there is a pending JavaScript exception. <ide> ### Exceptions <ide> <ide> Any N-API function call may result in a pending JavaScript exception. This is <del>obviously the case for any function that may cause the execution of <del>JavaScript, but N-API sp...
1
PHP
PHP
apply fixes from styleci
6226955654cbb98146f3acdfcce1b31770888d7f
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function setEagerLoads(array $eagerLoad) <ide> <ide> return $this; <ide> } <del> <add> <ide> /** <ide> * Indicate that the given relationships should not be eagerly loaded. <ide> *
1
Ruby
Ruby
use the class method to (un)escape binary values
00e192ef1f613339b2f0fadd537b5e3c9e9f8cbf
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb <ide> def table_alias_length <ide> <ide> # Escapes binary strings for bytea input to the database. <ide> def escape_bytea(value) <del> @connection.escape_bytea(value) if value <add> PGconn.escape_bytea(value) ...
1
Python
Python
consolidate all array construction tests
e142934543713507bab9418d53290d8896455b79
<ide><path>numpy/typing/tests/data/fail/array_constructors.py <ide> np.require(a, requirements=1) # E: No overload variant <ide> np.require(a, requirements="TEST") # E: incompatible type <ide> <add>np.zeros("test") # E: incompatible type <add>np.zeros() # E: Too few arguments <add> <add>np.ones("test") # E: incom...
8
Python
Python
fix default value for additional param
52f84add7746a233f1d4c8904344bef35b8fa2d2
<ide><path>test/testpy/__init__.py <ide> <ide> class SimpleTestCase(test.TestCase): <ide> <del> def __init__(self, path, file, arch, mode, context, config, additional=[]): <add> def __init__(self, path, file, arch, mode, context, config, additional=None): <ide> super(SimpleTestCase, self).__init__(context, path...
1
PHP
PHP
add back annotation
96ed230d1e927f0d2793cad57142e6af22566054
<ide><path>src/Mailer/Email.php <ide> public static function deliver( <ide> if (is_array($config) && !isset($config['transport'])) { <ide> $config['transport'] = 'default'; <ide> } <add> /** @var \Cake\Mailer\Email $instance */ <ide> $instance = new $class($config); <ide> ...
1
PHP
PHP
add api endpoint to mailguntransport
819dbe33b899e174ff70192479f1beaa86ab6707
<ide><path>src/Illuminate/Mail/Transport/MailgunTransport.php <ide> class MailgunTransport extends Transport <ide> protected $key; <ide> <ide> /** <del> * The Mailgun domain. <add> * The Mailgun email domain. <ide> * <ide> * @var string <ide> */ <ide> class MailgunTransport extends Trans...
2
PHP
PHP
add missing namespace
33dcddf14c3b60296aff056f8117870f4957d0b4
<ide><path>src/Routing/Middleware/RoutingMiddleware.php <ide> use Cake\Cache\Cache; <ide> use Cake\Core\HttpApplicationInterface; <ide> use Cake\Core\PluginApplicationInterface; <add>use Cake\Http\BaseApplication; <ide> use Cake\Http\MiddlewareQueue; <ide> use Cake\Http\Runner; <ide> use Cake\Routing\Exception\Redirect...
1
PHP
PHP
return abort method
808420b97de1af11b101db5f26d4891c50d19609
<ide><path>src/Illuminate/Foundation/Application.php <ide> use Illuminate\Events\EventServiceProvider; <ide> use Illuminate\Routing\RoutingServiceProvider; <ide> use Illuminate\Contracts\Foundation\Application as ApplicationContract; <add>use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; <ide> <ide> cl...
1
Javascript
Javascript
name anonymous functions in https
1f45d7aa41291383ce63cca5f80fd2a2a73d7603
<ide><path>lib/https.js <ide> function Server(opts, requestListener) { <ide> this.addListener('request', requestListener); <ide> } <ide> <del> this.addListener('tlsClientError', function(err, conn) { <add> this.addListener('tlsClientError', function addListener(err, conn) { <ide> if (!this.emit('clientErro...
1
Ruby
Ruby
make a developer command
af8a9ff502107fd02f6911bf7c1ab72889add666
<ide><path>Library/Contributions/cmd/brew-aspell-dictionaries.rb <del>require 'open-uri' <del>require 'resource' <del>require 'formula' <del> <del>dict_url = "http://ftpmirror.gnu.org/aspell/dict" <del>dict_mirror = "http://ftp.gnu.org/gnu/aspell/dict" <del>languages = {} <del> <del>open("#{dict_url}/0index.html")...
2
Javascript
Javascript
improve getworkersrcfiles (builder.js)
8ba73cb4de7cad6ef080daf741bb6b1ec829f8b1
<ide><path>external/builder/builder.js <ide> function getWorkerSrcFiles(filePath) { <ide> var src = fs.readFileSync(filePath).toString(); <ide> var reSrcFiles = /var\s+otherFiles\s*=\s*(\[[^\]]*\])/; <ide> var match = reSrcFiles.exec(src); <add> if (!match) { <add> throw new Error('Cannot find otherFiles arra...
1
Python
Python
fix parse_html_dict signature. closes
6161ac7d07226da1fed643a6957a834b3dc3b619
<ide><path>rest_framework/utils/html.py <ide> def parse_html_list(dictionary, prefix=''): <ide> return [ret[item] for item in sorted(ret.keys())] <ide> <ide> <del>def parse_html_dict(dictionary, prefix): <add>def parse_html_dict(dictionary, prefix=''): <ide> """ <ide> Used to support dictionary values in ...
1
Ruby
Ruby
fix strongparameters example [ci skip]
ae057d622fccf7cc5dcd2609a7fe3f1e0589808f
<ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb <ide> def each_element(object) <ide> # # It's mandatory to specify the nested attributes that should be whitelisted. <ide> # # If you use `permit` with just the key that points to the nested attributes hash, <ide> # # i...
1
PHP
PHP
expand api docs for ruleschecker
c7a649d37e13629bfe3061d5e7cf81c434090b95
<ide><path>src/ORM/RulesChecker.php <ide> /** <ide> * Contains logic for storing and checking rules on entities <ide> * <add> * RulesCheckers are used by Table classes to ensure that the <add> * current entity state satifies the application logic and business rules. <add> * <add> * RulesCheckers afford different rule...
1
Javascript
Javascript
handle changes at module boundaries
f11540926d2b28ec1f227a79ec9e95b75708c2e3
<ide><path>packages/react-refresh/src/ReactFreshRuntime.js <ide> if (!__DEV__) { <ide> <ide> // In old environments, we'll leak previous types after every edit. <ide> const PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; <del>const PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set; <ide>...
2
Ruby
Ruby
add test case for the `|` token in journey scanner
3928e52bf849b618584540ee9229c7974f5c9de1
<ide><path>actionpack/test/journey/route/definition/scanner_test.rb <ide> def setup <ide> ["/~page", [[:SLASH, "/"], [:LITERAL, "~page"]]], <ide> ["/pa-ge", [[:SLASH, "/"], [:LITERAL, "pa-ge"]]], <ide> ["/:page", [[:SLASH, "/"], [:SYMBOL, ":page"]]], <add> ["/:page|*foo", [ <ad...
1
Javascript
Javascript
fix bug with enablelegacyfbsupport click handlers
e387c98ffabdf3808d34910b4493093dd975ec69
<ide><path>packages/react-dom/src/__tests__/ReactDOM-test.js <ide> let React; <ide> let ReactDOM; <ide> let ReactDOMServer; <ide> let ReactTestUtils; <del>const ReactFeatureFlags = require('shared/ReactFeatureFlags'); <ide> <ide> describe('ReactDOM', () => { <ide> beforeEach(() => { <ide> describe('ReactDOM', () => ...
3
Python
Python
add return types for tf gptj, xlm, and xlnet
e4d56e818a08b0df2827fd31d053e776b9cd825e
<ide><path>src/transformers/models/gptj/modeling_tf_gptj.py <ide> def call( <ide> output_hidden_states=None, <ide> return_dict=None, <ide> training=False, <del> ): <add> ) -> Union[TFBaseModelOutputWithPast, Tuple[tf.Tensor]]: <ide> <ide> if input_ids is not None and inputs_embeds...
3
Text
Text
update weights for distilgpt2
7ce83b4931fe675955e82e1aac07e6c8fe972c9c
<ide><path>examples/distillation/README.md <ide> This folder contains the original code used to train Distil* as well as examples <ide> <ide> Distil* is a class of compressed models that started with DistilBERT. DistilBERT stands for Distillated-BERT. DistilBERT is a small, fast, cheap and light Transformer model base...
1
Python
Python
fix sparse checkout for 'spacy project'
6bfb1b3a29fa556daad7e81ab4980fb3a54c616e
<ide><path>spacy/cli/_util.py <ide> def ensure_pathy(path): <ide> return Pathy(path) <ide> <ide> <del>def git_sparse_checkout( <del> repo: str, subpath: str, dest: Path, *, branch: Optional[str] = None <del>): <add>def git_sparse_checkout(repo: str, subpath: str, dest: Path, *, branch: str = "master"): <ide> ...
2
Ruby
Ruby
pull buffer assignment up
ec5c946138f63dc975341d6521587adc74f6b441
<ide><path>actionview/lib/action_view/base.rb <ide> def initialize(context = nil, assigns = {}, controller = nil, formats = nil) #:n <ide> <ide> def run(method, locals, buffer, &block) <ide> _old_output_buffer = @output_buffer <add> @output_buffer = buffer <ide> send(method, locals, buffer, &block...
2
Javascript
Javascript
fix legend tests and disable other failing tests
eb14481d02b42a35836306af6ff95baf022df360
<ide><path>gulpfile.js <ide> var preTestFiles = [ <ide> <ide> var testFiles = [ <ide> './test/mockContext.js', <del> './test/*.js' <add> './test/*.js', <add> <add> // Disable tests which need to be rewritten based on changes introduced by <add> // the following changes: https://github.com/chartjs/Chart.js/pull/2...
4
Javascript
Javascript
add new 'reiwa' era
709579ab504c93657826cfa1954e37ff2647d7df
<ide><path>src/locale/ja.js <ide> import moment from '../moment'; <ide> <ide> export default moment.defineLocale('ja', { <ide> eras: [ <add> { <add> since: '2019-05-01', <add> offset: 1, <add> name: '令和', <add> narrow: '㋿', <add> abbr: 'R', <add> ...
2
Go
Go
check size of keys slice
3f542419acd9119c53f2b334ab9099867994a6ca
<ide><path>libnetwork/agent.go <ide> func (c *controller) handleKeyChange(keys []*types.EncryptionKey) error { <ide> } <ide> } <ide> <del> key, tag := c.getPrimaryKeyTag(subsysGossip) <add> key, tag, err := c.getPrimaryKeyTag(subsysGossip) <add> if err != nil { <add> return err <add> } <ide> a.networkDB.SetPrimar...
1
Java
Java
switch defaults for contenttyperesolver
92c72b93a61b84a8d94119e8126e964f933f09b5
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/accept/CompositeContentTypeResolverBuilder.java <ide> <ide> <ide> /** <del> * Builder for {@link CompositeContentTypeResolver}. <add> * Factory to create a {@link CompositeContentTypeResolver} and configure it with <add> * one or more {@lin...
4
Ruby
Ruby
check bash style with shellcheck
96504ec9dcba438855ebb314f1dd004442453e12
<ide><path>Library/Homebrew/style.rb <ide> def check_style_impl(files, output_type, options = {}) <ide> <ide> cache_env = { "XDG_CACHE_HOME" => "#{HOMEBREW_CACHE}/style" } <ide> <add> rubocop_success = false <add> <ide> case output_type <ide> when :print <ide> args << "--debug" if ARGV....
1
Ruby
Ruby
remove mysql2 specific rescue in abstract adapter
18c6f80960d2054e7d8761e0893dd1af7e46b6d0
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb <ide> def translate_exception(exception, message:, sql:, binds:) <ide> when ER_QUERY_INTERRUPTED <ide> QueryCanceled.new(message, sql: sql, binds: binds) <ide> else <del> if exception.is_a?...
2
Text
Text
add missing semicolon in test-utils part of docs
8e6996267fb58a3562cccdf43ead8dcbf99e183c
<ide><path>docs/docs/10.4-test-utils.it-IT.md <ide> React.addons.TestUtils.Simulate.click(node); <ide> <ide> ```javascript <ide> var node = ReactDOM.findDOMNode(this.refs.input); <del>node.value = 'giraffe' <add>node.value = 'giraffe'; <ide> React.addons.TestUtils.Simulate.change(node); <ide> React.addons.TestUtils.Si...
4
Mixed
Javascript
fix various typos
03eaadb131df925d1072afd2496ee3b41d2f1fc6
<ide><path>README.md <ide> t( testName, selector, [ "array", "of", "ids" ] ); <ide> Example: <ide> <ide> ```js <del>t("Check for something", "//[a]", ["foo", "baar"]); <add>t("Check for something", "//[a]", ["foo", "bar"]); <ide> ``` <ide> <ide> <ide><path>src/event.js <ide> jQuery.each( { <ide> related = event....
6
Javascript
Javascript
update examples to use modules
1bce5bb3bb119447b4d4882c4b59613eb8e13886
<ide><path>src/ng/directive/ngBind.js <ide> * <ide> * @example <ide> * Enter a name in the Live Preview text box; the greeting below the text box changes instantly. <del> <example> <add> <example module="bindExample"> <ide> <file name="index.html"> <ide> <script> <del> function Ctrl($scope) {...
1
Ruby
Ruby
follow rails convention by using array.wrap
ee044ea5477b4af41d2c0cebb13e47600da7493a
<ide><path>activemodel/lib/active_model/mass_assignment_security.rb <ide> require 'active_support/core_ext/class/attribute' <ide> require 'active_support/core_ext/string/inflections' <add>require 'active_support/core_ext/array/wrap' <ide> require 'active_model/mass_assignment_security/permission_set' <ide> require 'act...
1
Ruby
Ruby
remove unused construct_finder_sql
9f4e98330b3a7f85a4bca91fca062106ffbee2bf
<ide><path>activerecord/lib/active_record/base.rb <ide> def construct_finder_arel_with_includes(options = {}) <ide> relation <ide> end <ide> <del> def construct_finder_sql(options, scope = scope(:find)) <del> construct_finder_arel(options, scope).to_sql <del> end <del> <ide> ...
2
Go
Go
fix two obvious bugs???
9632cf09bfd7b4a8513799bf19070ecabd55c446
<ide><path>registry/registry.go <ide> func (r *Registry) GetRemoteHistory(imgId, registry string, token []string) ([]s <ide> func (r *Registry) LookupRemoteImage(imgId, registry string, token []string) bool { <ide> rt := &http.Transport{Proxy: http.ProxyFromEnvironment} <ide> <del> req, err := http.NewRequest("GET", ...
2
Python
Python
add min size to docs and fix raise
6edd903b0ba1e3ade0f4192466d5883c335370e2
<ide><path>airflow/hooks/S3_hook.py <ide> def load_file( <ide> error will be raised. <ide> :type replace: bool <ide> :param multipart_bytes: If provided, the file is uploaded in parts of <del> this size. If None, the whole file is uploaded at once. <add> this size (mini...
1
Javascript
Javascript
remove legacy econnreset workaround code
88686aa4106499a603365b887e2381b55c61c027
<ide><path>lib/http.js <ide> OutgoingMessage.prototype._writeRaw = function(data, encoding) { <ide> return this.connection.write(data, encoding); <ide> } else if (this.connection && this.connection.destroyed) { <ide> // The socket was destroyed. If we're still trying to write to it, <del> // then somethin...
2
Javascript
Javascript
fix constructor declaration in headmanager (#321)
8a2981746b7083bc60d75f4a4b9374936fffd50e
<ide><path>client/head-manager.js <ide> import HTMLDOMPropertyConfig from 'react-dom/lib/HTMLDOMPropertyConfig' <ide> const DEFAULT_TITLE = '' <ide> <ide> export default class HeadManager { <del> constuctor () { <add> constructor () { <ide> this.requestId = null <ide> } <ide>
1
PHP
PHP
remove comment bloat from eloquent hydrator
34605ad49d9f3a7525725d5725deccf3b9bf9491
<ide><path>system/db/eloquent/hydrator.php <ide> class Hydrator { <ide> */ <ide> public static function hydrate($eloquent) <ide> { <del> // ----------------------------------------------------- <ide> // Load the base / parent models from the query results. <del> // ----------------------------------------------...
1
Ruby
Ruby
refactor the format
75a38b7187788b61461a0b76b7033bf96a33c1c1
<ide><path>Library/Homebrew/cask/quarantine.rb <ide> def xattr <ide> def check_quarantine_support <ide> odebug "Checking quarantine support" <ide> <del> if !system_command(xattr, args:[ "-h" ], print_stderr: false).success? <add> if !system_command(xattr, args: ["-h"], print_stderr: false).success?...
2
Javascript
Javascript
remove `rctdeviceeventemitter` checks
c8c975f0d7b8a57e9e90373a2be4d630ed9dd65e
<ide><path>Libraries/EventEmitter/RCTDeviceEventEmitter.js <ide> import EventEmitter from '../vendor/emitter/EventEmitter'; <ide> import type EmitterSubscription from '../vendor/emitter/_EmitterSubscription'; <ide> import EventSubscriptionVendor from '../vendor/emitter/_EventSubscriptionVendor'; <ide> <del>function ch...
1
Javascript
Javascript
fix typo in chunk.js
9352bb88066816ff3286c81f1fb728f9dea972fc
<ide><path>lib/Chunk.js <ide> Chunk.prototype.canBeIntegrated = function(other) { <ide> }; <ide> <ide> Chunk.prototype.integratedSize = function(other, options) { <del> // Chunk if it's possible to integrate this chunks <add> // Chunk if it's possible to integrate this chunk <ide> if(!this.canBeIntegrated(other)) { <...
1
PHP
PHP
add tests for and reformat code
86bc7f186194bb1da3b84873987fb4be0071b85f
<ide><path>lib/Cake/Test/Case/Utility/FolderTest.php <ide> public function testCopyWithSkip() { <ide> $Folder->delete(); <ide> } <ide> <add>/** <add> * Test that SKIP mode skips files too. <add> * <add> * @return void <add> */ <add> public function testCopyWithSkipFileSkipped() { <add> $path = TMP . 'folder_test';...
2
Mixed
Javascript
drop duplicate api in promises mode
c594d15170e6664c0609d317a9a201f34e875900
<ide><path>benchmark/fs/bench-stat-promise.js <ide> const bench = common.createBenchmark(main, { <ide> }); <ide> <ide> async function run(n, statType) { <del> const arg = statType === 'fstat' ? <del> await fsPromises.open(__filename, 'r') : __filename; <add> const handleMode = statType === 'fstat'; <add> const a...
4
Python
Python
pass custom headers through in ses email backend
de84eaf1b042304dd966219da22c7c529afbb662
<ide><path>airflow/providers/amazon/aws/utils/emailer.py <ide> # specific language governing permissions and limitations <ide> # under the License. <ide> """Airflow module for email backend using AWS SES""" <del>from typing import List, Optional, Union <add>from typing import Any, Dict, List, Optional, Union <ide> <id...
2
Mixed
Javascript
fix svc/nvc for androiddrawerlayout
848e34e753ca4ea7cc3e3262d3354a557467efca
<ide><path>Libraries/Components/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js <ide> type NativeProps = $ReadOnly<{| <ide> /** <ide> * Function called whenever the navigation view has been opened. <ide> */ <del> onDrawerOpen?: ?DirectEventHandler<null, 'topDrawerOpened'>, <add> onDrawerOpen?: ?DirectEven...
2
Javascript
Javascript
fix request path for proxied requests
4de17bca095345854a1a39a60af8d85f55961900
<ide><path>lib/adapters/http.js <ide> module.exports = function httpAdapter(resolve, reject, config) { <ide> if (config.proxy) { <ide> options.host = config.proxy.host; <ide> options.port = config.proxy.port; <del> options.path = parsed.protocol + '//' + parsed.hostname + buildUrl(parsed.path, config.param...
1
Python
Python
remove unused return value
48fd6b902681e65be09e0fc2d4f47e751b9a1405
<ide><path>test/test_voxel.py <ide> def setUp(self): <ide> def test_auth_failed(self): <ide> VoxelMockHttp.type = 'UNAUTHORIZED' <ide> try: <del> ret = self.driver.list_nodes() <add> self.driver.list_nodes() <ide> except Exception, e: <ide> self.assertTrue(i...
1
Javascript
Javascript
update imports in ember-testing package tests
42e22ec8ff246474ea0b77b2e15e8203c6add104
<ide><path>packages/ember-testing/tests/acceptance_test.js <del>import run from 'ember-metal/run_loop'; <del>import jQuery from 'ember-views/system/jquery'; <del>import Test from 'ember-testing/test'; <del>import QUnitAdapter from 'ember-testing/adapters/qunit'; <del>import 'ember-testing/initializers'; // ensure the i...
10
Javascript
Javascript
add test case
dda231ed471db3e6279307f3e62a29cd15f72b9d
<ide><path>test/fixtures/buildDependencies/run.js <ide> webpack( <ide> type: "filesystem", <ide> cacheDirectory: path.resolve(__dirname, "../../js/buildDepsCache"), <ide> buildDependencies: { <del> config: [__filename] <del> } <add> config: [ <add> __filename, <add> path.resolve(__dirname, "../...
1