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
add unit tests for vectorized quicksort
12d02f582c2f6a2694ebbe19e651d127c2bbf754
<ide><path>numpy/core/tests/test_multiarray.py <ide> def test_non_c_contiguous(self): <ide> [[1284, 1798], [4368, 4882]], <ide> [[2312, 2826], [5396, 5910]]] <ide> assert_array_equal(x.view('<i2'), expected) <add> <add> <add>## Test various array sizes that hit different ...
1
Go
Go
ignore socket rm errors on daemon suite teardown
e34244842ca968ff96769d1b5eab52fecddee80d
<ide><path>integration-cli/check_test.go <ide> import ( <ide> "testing" <ide> <ide> "github.com/docker/docker/cliconfig" <del> "github.com/docker/docker/pkg/integration/checker" <ide> "github.com/docker/docker/pkg/reexec" <ide> "github.com/docker/engine-api/types/swarm" <ide> "github.com/go-check/check" <ide> fun...
1
Ruby
Ruby
allow debugging patch failures
8cc5aabfcf2a5ae8413ec7222b971c18daa69697
<ide><path>Library/Homebrew/debrew.rb <ide> def raise(*) <ide> end <ide> <ide> module Formula <del> def install <add> def brew <ide> Debrew.debrew { super } <ide> end <ide>
1
Javascript
Javascript
remove remnants of the load event alias handling
38a669735d08bcbd28cfb0d77eee82c67aa89eeb
<ide><path>src/ajax/load.js <ide> define([ <ide> "../ajax", <ide> "../traversing", <ide> "../manipulation", <del> "../selector", <del> // Optional event/alias dependency <del> "../event/alias" <add> "../selector" <ide> ], function( jQuery ) { <ide> <del>// Keep a copy of the old load method <del>var _load = jQuery....
1
Javascript
Javascript
fix awkward wording
dc5bba861582d32e7db67be4ec383a14aff9f88d
<ide><path>src/ng/directive/ngBind.js <ide> var ngBindTemplateDirective = ['$interpolate', '$compile', function($interpolate <ide> * @name ngBindHtml <ide> * <ide> * @description <del> * Creates a binding that will innerHTML the result of evaluating the `expression` into the current <del> * element in a secure way. ...
1
Javascript
Javascript
remove incorrect debug() in test-policy-integrity
4f7440cd88dd6e6fb08945f85fc72eec9156f5fa
<ide><path>test/pummel/test-policy-integrity.js <ide> for (const permutation of permutations({ <ide> ); <ide> } <ide> debug(`spawning ${tests.size} policy integrity permutations`); <del>debug( <del> 'use NODE_DEBUG=test:policy-integrity:NUMBER to log a specific permutation' <del>); <add> <ide> for (const config of t...
1
Javascript
Javascript
remove explicit requires of map and set
c95071e7d22115657ad9ca34321aa33d8aace443
<ide><path>Libraries/BugReporting/BugReporting.js <ide> 'use strict'; <ide> <ide> const RCTDeviceEventEmitter = require('RCTDeviceEventEmitter'); <del>const Map = require('Map'); <ide> const infoLog = require('infoLog'); <ide> <ide> import type EmitterSubscription from 'EmitterSubscription'; <ide><path>Libraries/Expe...
5
Ruby
Ruby
flip deferrable autoload convention
ace20bd25e3818b7f29c222643dd445c48b36425
<ide><path>actionmailer/lib/action_mailer.rb <ide> module ActionMailer <ide> extend ::ActiveSupport::Autoload <ide> <del> autoload :AdvAttrAccessor <del> autoload :DeprecatedBody <del> autoload :Base <del> autoload :DeliveryMethod <del> autoload :MailHelper <del> autoload :Part <del> autoload :PartContainer <...
13
PHP
PHP
fix fatal error
2ebf5d7c9043f0fe753b1d685f5a03fd4d1170f1
<ide><path>Cake/TestSuite/TestCase.php <ide> protected function skipUnless($condition, $message = '') { <ide> * @return Model <ide> */ <ide> public function getMockForModel($model, $methods = array(), $config = array()) { <del> $config += ClassRegistry::config('Model'); <add> $config += (array)ClassRegistry::confi...
1
Java
Java
update reactor2 support
7891c0d5ca208ef4f123f2dfa92cd13e6cb25042
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/tcp/reactor/Reactor2TcpClient.java <ide> import reactor.core.config.DispatcherConfiguration; <ide> import reactor.core.config.ReactorConfiguration; <ide> import reactor.core.support.NamedDaemonThreadFactory; <del>import reactor.fn.BiFunction; <ide>...
2
Text
Text
add text " unlike the `while` loop," to article
006d69e427c3487c192d2ee2e4059a60b0f5c828
<ide><path>guide/english/java/loops/do-while-loop/index.md <ide> Output: <ide> iter_DoWhile Value: 21 <ide> ``` <ide> <del>**Remember**: The condition of a `do-while` loop is checked after the code body is executed once. <add>**Remember**: Unlike the `while` loop, the condition of a `do-while` loop is checked afte...
1
Ruby
Ruby
remove obsolete doctor check
4f8be5bb66033ae1cd3e15a75f1a35ac1174440b
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_linked_keg_only_brews <ide> end <ide> end <ide> <del>def check_for_MACOSX_DEPLOYMENT_TARGET <del> target = ENV.fetch('MACOSX_DEPLOYMENT_TARGET') { return } <del> <del> unless target == MacOS.version.to_s then <<-EOS.undent <del> MACOSX_DEPLOYMENT_TAR...
1
Text
Text
fix typo in changelog entry [ci skip]
bc7821f519cbe6ec5a1eea1801b0c6e3c44c0c1e
<ide><path>activestorage/CHANGELOG.md <ide> * Replace `Blob.create_after_upload!` with `Blob.create_and_upload!` and deprecate the former. <ide> <ide> `create_after_upload!` has been removed since it could lead to data <del> curruption by uploading to a key on the storage service which happened to <add> co...
1
Javascript
Javascript
upgrade namedmodulesplugin to es6
6cad87f5fecc0db52a0a0211beb64c68eda2cadb
<ide><path>lib/NamedModulesPlugin.js <ide> MIT License http://www.opensource.org/licenses/mit-license.php <ide> Author Tobias Koppers @sokra <ide> */ <del>function NamedModulesPlugin(options) { <del> this.options = options || {}; <add>"use strict"; <add> <add>class NamedModulesPlugin { <add> constructor(options) { <a...
1
Mixed
Javascript
fix version picker bug in html.js
6f64cda1ee578d121e328756ac7401f0ee8e1d62
<ide><path>test/doctool/test-doctool-html.js <ide> const testData = [ <ide> html: '<ol><li>fish</li><li>fish</li></ol>' + <ide> '<ul><li>Red fish</li><li>Blue fish</li></ul>', <ide> }, <add> { <add> file: fixtures.path('altdocs.md'), <add> html: '<li><a href="https://nodejs.org/docs/latest-v8.x/api/f...
3
Text
Text
fix casing typo in jsx-in-depth.md
92665e2cb10598604d47d368e093f0606370768b
<ide><path>docs/docs/jsx-in-depth.md <ide> You can pass any JavaScript expression as a prop, by surrounding it with `{}`. F <ide> <MyComponent foo={1 + 2 + 3 + 4} /> <ide> ``` <ide> <del>For `MyComponent`, The value of `props.foo` will be `10` because the expression `1 + 2 + 3 + 4` gets evaluated. <add>For `MyComponen...
1
Javascript
Javascript
restore helpful comment about inline templates
90e77f5af84e46ebcdc3777477d2dcf527148790
<ide><path>packages/sproutcore-handlebars/lib/loader.js <ide> SC.$(document).ready(function() { <ide> view, viewPath; <ide> <ide> if (templateName) { <add> // For templates which have a name, we save them and then remove them from the DOM <ide> SC.TEMPLATES[templateName] = template; <ide> <ide> ...
1
PHP
PHP
remove extra semicolon
536fe29b6b306588536e68d188ff6482f3fab899
<ide><path>app/Console/Kernel.php <ide> class Kernel extends ConsoleKernel { <ide> */ <ide> protected function schedule(Schedule $schedule) <ide> { <del> $schedule->artisan('inspire'); <add> $schedule->artisan('inspire') <ide> ->hourly(); <ide> } <ide>
1
Ruby
Ruby
remove some indirection in rake dbs test
97229c69eaa6e4aec76e9ed1d14e8eba1c66d183
<ide><path>railties/test/application/rake/dbs_test.rb <ide> def set_database_url <ide> FileUtils.rm_rf("#{app_path}/config/database.yml") <ide> end <ide> <del> def expected <del> @expected ||= {} <del> end <del> <del> def db_create_and_drop <add> def db_create_and_drop(expected...
1
Text
Text
fix serializer example in docs
be96939ec1482ce3453fb210460ab795f7704b4a
<ide><path>docs/api-guide/serializers.md <ide> Serializer classes can also include reusable validators that are applied to the <ide> <ide> class Meta: <ide> # Each room only has one event per day. <del> validators = UniqueTogetherValidator( <del> queryset=Event.objects.all...
1
PHP
PHP
fix bug in form builder
6881e798b5276134e8c278cff918070387b5085c
<ide><path>src/Illuminate/Html/FormBuilder.php <ide> public function getValueAttribute($name, $value = null) <ide> if ( ! is_null($value)) return $value; <ide> <ide> if (isset($this->model) and isset($this->model[$name])) <add> { <add> return $this->getModelValueAttribute($name); <add> } <add> } <add> <add> /*...
1
Text
Text
preach what we practise
6a38b0189c2a321580ede867870bf10b79dc365c
<ide><path>docs/Formula-Cookbook.md <ide> system "make", "target", "VAR2=value1", "VAR2=value2", "VAR3=values can have spa <ide> ``` <ide> <ide> ```ruby <del>args = %W[ <del> CC=#{ENV.cc} <del> PREFIX=#{prefix} <del>] <del> <del>system "make", *args <add>system "make", "CC=#{ENV.cc}", "PREFIX=#{prefix}" <ide> ``` <i...
1
Go
Go
move context stuff to its own package
f790496d8bd0930d7b1bc4adf120ae5ef169a958
<ide><path>api/server/auth.go <ide> import ( <ide> "encoding/json" <ide> "net/http" <ide> <del> "golang.org/x/net/context" <del> <ide> "github.com/docker/docker/api/types" <ide> "github.com/docker/docker/cliconfig" <add> "github.com/docker/docker/context" <ide> ) <ide> <ide> func (s *Server) postAuth(ctx context....
11
Java
Java
introduce @suite for testng tests
40c51efee806fbb36de4f3337d76c36cb31aac65
<ide><path>spring-test/src/test/java/org/springframework/test/context/testng/TestNGTestSuite.java <add>/* <add> * Copyright 2002-2021 the original author or authors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file except in compliance with the License. <...
1
Text
Text
clarify availability of analytics
6e3acddc44379eb5d13c923ec08d2f51f0475af9
<ide><path>docs/Analytics.md <ide> As far as we can tell it would be impossible for Google to match the randomly ge <ide> Homebrew's analytics are sent throughout Homebrew's execution to Google Analytics over HTTPS. <ide> <ide> ## Who? <del>Homebrew's analytics are accessible to Homebrew's current maintainers. Contact...
1
Text
Text
clarify new use of tag revision
af66c12108466fe541403638a8742a9dc78039e3
<ide><path>share/doc/homebrew/Formula-Cookbook.md <ide> end <ide> <ide> Homebrew understands `git`, `svn`, and `hg` URLs, and has a way to specify `cvs` repositories as a URL as well. You can test whether the `HEAD` is being built with `build.head?`. <ide> <del>To use a specific commit, tag, or branch from a reposito...
1
Mixed
Javascript
use url module instead of punycode for idna
d85e1f070302babcb4649eae8705103eb49db7ac
<ide><path>doc/api/intl.md <ide> option: <ide> | `String.prototype.toLocale*Case()` | partial (not locale-aware) | full | full | full | <ide> | [`Number.prototype.toLocaleString()`][] | partial (not locale-aware) | partial/full (depends on OS) | partial...
5
Javascript
Javascript
fix lint errors
16b2fba851e851b497c9f6e7d10b61faa3c68a6f
<ide><path>src/text-editor-component.js <ide> class LinesTileComponent { <ide> } <ide> <ide> renderHighlights () { <del> const {top, height, width, lineHeight, highlightDecorations} = this.props <add> const {top, lineHeight, highlightDecorations} = this.props <ide> <ide> let children = null <ide> if...
1
Javascript
Javascript
add test for instance method on getinitialprops.
2c916137b277f018849b6a9daa0503d71ac19f01
<ide><path>test/integration/basic/pages/instance-get-initial-props.js <add>import React from 'react' <add> <add>export default class InstanceInitialPropsPage extends React.Component { <add> async getInitialProps () { <add> return fetchData() <add> } <add> <add> render () { <add> return <p>{this.props.name}</p>...
2
Javascript
Javascript
reduce duplication with factory
5c6c02996b7f0d21fd92e75937dedbda0dc44ac7
<ide><path>lib/async_hooks.js <ide> const init_symbol = Symbol('init'); <ide> const before_symbol = Symbol('before'); <ide> const after_symbol = Symbol('after'); <ide> const destroy_symbol = Symbol('destroy'); <add>const emitBeforeNative = emitHookFactory(before_symbol, 'emitBeforeNative'); <add>const emitAfterNative =...
1
Go
Go
fix couple of panics in networkdb
774399fd661ff5b6fba453891646001a79675535
<ide><path>libnetwork/networkdb/cluster.go <ide> func (nDB *NetworkDB) reapTableEntries() { <ide> func (nDB *NetworkDB) gossip() { <ide> networkNodes := make(map[string][]string) <ide> nDB.RLock() <del> for nid := range nDB.networks[nDB.config.NodeName] { <add> thisNodeNetworks := nDB.networks[nDB.config.NodeName] <a...
2
Javascript
Javascript
remove redundant setupdatepriority call
64983aab5d4dbd99ca06bb85e69bb193928ea0c7
<ide><path>packages/react-reconciler/src/ReactFiberHooks.new.js <ide> import { <ide> markRootMutableRead, <ide> } from './ReactFiberLane.new'; <ide> import { <del> DefaultEventPriority, <ide> ContinuousEventPriority, <ide> getCurrentUpdatePriority, <ide> setCurrentUpdatePriority, <ide> function startTransition...
2
PHP
PHP
add sparse insert support
f5cbbc3730865ec0f3e654ec0d26b255260ffc81
<ide><path>lib/Cake/Model/Datasource/Database/Expression/ValuesExpression.php <ide> class ValuesExpression implements Expression { <ide> <ide> protected $_values = []; <add> protected $_columns = []; <add> <add> public function __construct($columns) { <add> $this->_columns = $columns; <add> } <ide> <ide> /** <ide> ...
3
Text
Text
mention `corepack prepare` supports tag or range
4e659be9f8008db9539470e0b33bed6ab5b913b0
<ide><path>doc/api/corepack.md <ide> package manager version you wish to set: <ide> corepack prepare yarn@x.y.z --activate <ide> ``` <ide> <add>Alternately, a tag or range may be used: <add> <add>```bash <add>corepack prepare pnpm@latest --activate <add>corepack prepare yarn@stable --activate <add>``` <add> <ide> ### ...
1
PHP
PHP
extract an interface for fixtures and connections
cefc37f9775dde7e4b92e9cbe4c2c2145c3151f2
<ide><path>src/Database/Connection.php <ide> */ <ide> namespace Cake\Database; <ide> <add>use Cake\Datasource\ConnectionInterface; <ide> use Cake\Database\Exception\MissingConnectionException; <ide> use Cake\Database\Exception\MissingDriverException; <ide> use Cake\Database\Exception\MissingExtensionException; <ide> ...
5
Javascript
Javascript
add assets to module stats
ebda43139916569128e6def5eff0da12f9893380
<ide><path>lib/Stats.js <ide> Stats.prototype.toJson = function toJson(options, forToString) { <ide> chunks: module.chunks.map(function(chunk) { <ide> return chunk.id; <ide> }), <add> assets: Object.keys(module.assets || {}), <ide> issuer: module.issuer, <ide> profile: module.profile, <ide> failed:...
1
PHP
PHP
move driver specific code into mysqldialect
394321339b81900154da0b434eebd18f7af2f8cd
<ide><path>lib/Cake/Model/Datasource/Database/Connection.php <ide> public function describe($table) { <ide> $schema = []; <ide> <ide> $fieldParams = $this->_driver->extraSchemaColumns(); <del> <del> while ($row = $statement->fetch('assoc')) { <del> list($type, $length) = $this->_driver->columnType($row['Type'])...
3
Ruby
Ruby
add xcode 5.0.2 to compiler map
a82276b2cbc007f75d4aa7d9e332a7cd3e9a241c
<ide><path>Library/Homebrew/os/mac.rb <ide> def preferred_arch <ide> "4.6.3" => { :llvm_build => 2336, :clang => "4.2", :clang_build => 425 }, <ide> "5.0" => { :clang => "5.0", :clang_build => 500 }, <ide> "5.0.1" => { :clang => "5.0", :clang_build => 500 }, <add> "5.0.2" => { :clang => "5.0", ...
1
Python
Python
fix the array_api submodule __init__.py imports
ba4e21ca150a2d8b3cc08a3e8c981f7042aacf6f
<ide><path>numpy/_array_api/__init__.py <ide> __all__ = [] <ide> <del>from .constants import e, inf, nan, pi <add>from ._constants import e, inf, nan, pi <ide> <ide> __all__ += ['e', 'inf', 'nan', 'pi'] <ide> <del>from .creation_functions import arange, empty, empty_like, eye, full, full_like, linspace, ones, ones_l...
1
Mixed
Python
update examples from master
47a7d4ec147d9411e9f5f5d382078eb07721f2b3
<ide><path>README.md <ide> python run_squad.py \ <ide> --num_train_epochs 2.0 \ <ide> --max_seq_length 384 \ <ide> --doc_stride 128 \ <del> --output_dir ../debug_squad/ <add> --output_dir /tmp/debug_squad/ <ide> ``` <ide> <ide> Training with the previous hyper-parameters gave us the following results: <ide><pa...
3
Python
Python
fix otto example
22012fdecc1deec6827624de1a6f4bf17e416b38
<ide><path>examples/kaggle_otto_nn.py <ide> def make_submission(y_prob, ids, encoder, fname): <ide> y, encoder = preprocess_labels(labels) <ide> <ide> X_test, ids = load_data('test.csv', train=False) <del>X_test, _ = preprocess_data(X_test) <add>X_test, _ = preprocess_data(X_test, scaler) <ide> <ide> nb_classes = y.s...
1
Text
Text
use colon consistently in assert.md
954fe25a58a6b7243c3c7a9510e55fbc9e02cecf
<ide><path>doc/api/assert.md <ide> assert.notDeepEqual(obj1, obj1); <ide> // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } } <ide> <ide> assert.notDeepEqual(obj1, obj2); <del>// OK, obj1 and obj2 are not deeply equal <add>// OK: obj1 and obj2 are not deeply equal <ide> <ide> assert.notDeepEqual(obj1, obj...
1
PHP
PHP
fix entity class inflection for mocked models
b6b8c24539d3cbc7aa9745c58b957f4f1147dcef
<ide><path>src/TestSuite/TestCase.php <ide> public function getMockForModel($alias, array $methods = [], array $options = [] <ide> <ide> if (empty($options['entityClass']) && $mock->getEntityClass() === Entity::class) { <ide> $parts = explode('\\', $className); <del> $entityAlias = Infle...
1
Text
Text
update permanent redirect field documentation
a9ad8cbbd92ba73ae13e4b28d9851f3e240f960a
<ide><path>docs/api-reference/next.config.js/redirects.md <ide> module.exports = { <ide> <ide> - `source` is the incoming request path pattern. <ide> - `destination` is the path you want to route to. <del>- `permanent` if the redirect is permanent or not. <add>- `permanent` `true` or `false` - if `true` will use the 3...
1
Ruby
Ruby
access the homepage attribute once
e717508b7b63b5bb0f84b2c62d3c621857baa67c
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_conflicts <ide> end <ide> <ide> def audit_urls <del> unless f.homepage =~ %r[^https?://] <del> problem "The homepage should start with http or https (url is #{f.homepage})." <add> homepage = f.homepage <add> <add> unless homepage =~ %r[^https?:...
1
Go
Go
fix some wrong vars or funcs in builder.go
ee8a3eee4fac23fcba9f9b95c5c627419f0b230d
<ide><path>builder/builder.go <ide> type PathFileInfo struct { <ide> os.FileInfo <ide> // FilePath holds the absolute path to the file. <ide> FilePath string <del> // Name holds the basename for the file. <add> // FileName holds the basename for the file. <ide> FileName string <ide> } <ide> <ide> type Backend inte...
1
Text
Text
describe fipsdir environment variable
9f71a3109e8b6ff870244f89df19065d4a35025b
<ide><path>README.md <ide> Instructions: <ide> Appendix A in the [security policy] <ide> (http://csrc.nist.gov/groups/STM/cmvp/documents/140-1/140sp/140sp1747.pdf). <ide> The only exception is that `./config no-asm` can be <del> used in place of `./config` ) <add> used in place of `./config`, and the FIPSD...
1
Javascript
Javascript
update validatebaseurl to use latest regex
33ef82ce6dfd31e1f990d438c925a0e52723e16b
<ide><path>Libraries/Blob/URL.js <ide> export class URLSearchParams { <ide> <ide> function validateBaseUrl(url: string) { <ide> // from this MIT-licensed gist: https://gist.github.com/dperini/729294 <del> return /^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){...
1
PHP
PHP
fix bugs in routing
b9f235706c58ff4f1a8945b5800e3386b64b5018
<ide><path>src/Illuminate/Routing/RouteCollection.php <ide> public function match(Request $request) <ide> */ <ide> protected function checkForAlternateVerbs($request) <ide> { <del> $others = array_diff(Router::VERBS, array($request->getMethod())); <add> $others = array_diff(Router::$verbs, array($request->getMeth...
2
Text
Text
remove trailing whitespace [ci skip]
fb2f8d2b75b1999b7ff7adef16ba7fb34600fa0d
<ide><path>guides/source/active_record_migrations.md <ide> such features, the `execute` method can be used to execute arbitrary SQL. <ide> Migrations and Seed Data <ide> ------------------------ <ide> <del>The main purpose of Rails' migration feature is to issue commands that modify the <del>schema using a consistent...
1
Javascript
Javascript
add tests for dock sizing behavior
d40a14be29d7b44ca8c63aea230509f8ab775957
<ide><path>spec/dock-spec.js <ide> describe('Dock', () => { <ide> }) <ide> }) <ide> }) <add> <add> describe('when you add an item to an empty dock', () => { <add> describe('when the item has a preferred size', () => { <add> it('is takes the preferred size of the item', async () => { <add> ja...
2
Java
Java
fix linkedcaseinsensitivemap collection methods
aa69703f3b0f92b1c7eaaf62b34ef8c7b251fc5c
<ide><path>spring-core/src/main/java/org/springframework/util/LinkedCaseInsensitiveMap.java <ide> /* <del> * Copyright 2002-2018 the original author or authors. <add> * Copyright 2002-2019 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may ...
3
Javascript
Javascript
use built-ins to format numbers
f66e59e20c7e66515bb40994b247cdb9fe29d9c1
<ide><path>client/src/components/Supporters.js <ide> import React, { Fragment } from 'react'; <ide> import PropTypes from 'prop-types'; <ide> import { Button, ProgressBar } from '@freecodecamp/react-bootstrap'; <ide> <del>import { commaNumber } from '../utils'; <ide> import FullWidthRow from '../components/helpers/Ful...
3
Mixed
Python
add feminine form of word "one" in french
028cbad05ef215e124ebe4c71ec5ad62fd038ba7
<ide><path>.github/contributors/fonfonx.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or project <a...
2
Java
Java
remove some unused fields
70d44071d361fcc99458b062709b7b4b2d9d6bf0
<ide><path>src/main/java/io/reactivex/internal/operators/flowable/BlockingFlowableIterator.java <ide> volatile boolean done; <ide> Throwable error; <ide> <del> volatile boolean cancelled; <del> <ide> public BlockingFlowableIterator(int batchSize) { <ide> this.queue = new SpscLinkedArrayQueue<T>(...
4
Text
Text
prepare tests for recursion-protection
090a1caa7a76bd1e35377e19a0fc0da13dbab064
<ide><path>curriculum/challenges/english/03-front-end-development-libraries/react-and-redux/manage-state-locally-first.md <ide> assert( <ide> The `DisplayMessages` component should render a `div` containing an `h2` element, a `button` element, a `ul` element, and `li` elements as children. <ide> <ide> ```js <del>async...
3
PHP
PHP
use terser assertions
c1b2ca581c7282685743d68e6a4fb0ec94e2686f
<ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php <ide> public function testTagIsInvalid() { <ide> <ide> $this->Form->setEntity('Contact.1.email'); <ide> $result = $this->Form->tagIsInvalid(); <del> $expected = false; <del> $this->assertSame($expected, $result); <add> $this->assertFalse($result); <id...
1
Java
Java
try defaulcontenttype for application/octet-stream
8ff7cc73bcffca02117aab069017e857b17d59f3
<ide><path>spring-web/src/main/java/org/springframework/http/converter/AbstractHttpMessageConverter.java <ide> /* <del> * Copyright 2002-2014 the original author or authors. <add> * Copyright 2002-2015 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide...
2
PHP
PHP
update componentmakecommand.php
22e3efcf909095828cc347f185fc29cdb8e3a947
<ide><path>src/Illuminate/Foundation/Console/ComponentMakeCommand.php <ide> protected function writeView($onSuccess = null) <ide> file_put_contents( <ide> $path, <ide> '<div> <del> <!-- '.Inspiring::quote().' --> <add> <!-- '.Inspiring::quotes()->random().' --> <ide> </div>' <ide> ...
1
Go
Go
fix logmode enum
6948ab4fa187e0fec2455e51073a92b932818617
<ide><path>api/types/container/host_config.go <ide> type LogMode string <ide> <ide> // Available logging modes <ide> const ( <del> LogModeUnset = "" <add> LogModeUnset LogMode = "" <ide> LogModeBlocking LogMode = "blocking" <ide> LogModeNonBlock LogMode = "non-blocking" <ide> ) <ide><path>daemon/logger...
2
Python
Python
add parameters to ex_create_address
8a3de717efdd904006015b0372fdc0973001094e
<ide><path>libcloud/compute/drivers/gce.py <ide> def ex_list_zones(self): <ide> return list_zones <ide> <ide> def ex_create_address(self, name, region=None, address=None, <del> description=None): <add> description=None, address_type='EXTERNAL', <add> ...
1
Text
Text
add fansworld-claudio to collaborators
856822efe784fba12efdf69499f1f592552a4fa4
<ide><path>README.md <ide> information about the governance of the Node.js project, see <ide> * [brendanashworth](https://github.com/brendanashworth) - **Brendan Ashworth** &lt;brendan.ashworth@me.com&gt; <ide> * [calvinmetcalf](https://github.com/calvinmetcalf) - **Calvin Metcalf** &lt;calvin.metcalf@gmail.com&gt; <id...
1
PHP
PHP
remove unneeded "use" statements
0247146f3163ebd04c07780d8ace0e99ab3ea6ba
<ide><path>src/Console/Shell.php <ide> <ide> use Cake\Console\Exception\ConsoleException; <ide> use Cake\Console\Exception\StopException; <del>use Cake\Core\Configure; <ide> use Cake\Core\Plugin; <ide> use Cake\Datasource\ModelAwareTrait; <ide> use Cake\Filesystem\File; <ide><path>src/Controller/Component/PaginatorCom...
29
Python
Python
remove flaky test
534f6b7975dcd334f6d68eef14598d75c79e7921
<ide><path>tests/test_model_saving.py <ide> <ide> @keras_test <ide> def test_sequential_model_saving(): <del> model = Sequential() <del> model.add(Dense(2, input_dim=3)) <del> model.add(Dense(3)) <del> model.compile(loss='mse', optimizer='rmsprop', metrics=['acc']) <del> <del> x = np.random.random((1, 3...
1
Ruby
Ruby
find query_source_location using lazy enumerator
0bab6310d623f9f8ed382c93ddeb9f4d1a0b8f75
<ide><path>activerecord/lib/active_record/log_subscriber.rb <ide> def log_query_source <ide> end <ide> <ide> def extract_query_source_location(locations) <del> backtrace_cleaner.clean(locations).first <add> backtrace_cleaner.clean(locations.lazy).first <ide> end <ide> end <ide> end <i...
3
Ruby
Ruby
fix rubocop offenses
ea37ccddba06466ddcde67d6c2814e401d1e2c5c
<ide><path>actionpack/lib/action_controller/metal/request_forgery_protection.rb <ide> class InvalidCrossOriginRequest < ActionControllerError #:nodoc: <ide> # allowed via {CORS}[https://en.wikipedia.org/wiki/Cross-origin_resource_sharing] <ide> # will also be able to create XHR requests. Be sure to check your <ide>...
2
Text
Text
update some i18n references in guides
fc55c34bea1a499a201b0516b8493d0596e01934
<ide><path>guides/source/i18n.md <ide> Internationalization is a complex problem. Natural languages differ in so many w <ide> <ide> As part of this solution, **every static string in the Rails framework** - e.g. Active Record validation messages, time and date formats - **has been internationalized**. _Localization_ o...
1
PHP
PHP
remove invalid test
7ad5e59a7130143db98d6302a9427fd7dc033062
<ide><path>tests/View/ViewBladeCompilerTest.php <ide> public function testDontIncludeEmptyPath() <ide> $compiler->compile(); <ide> } <ide> <del> public function testDontIncludeNullPath() <del> { <del> $compiler = new BladeCompiler($files = $this->getFiles(), __DIR__); <del> $files->shou...
1
Python
Python
add dialogpt support for pytorch->tf
90f6e73a35ee85e94b898a6867f19707b264d387
<ide><path>transformers/modeling_tf_pytorch_utils.py <ide> def load_pytorch_weights_in_tf2_model(tf_model, pt_state_dict, tf_inputs=None, a <ide> new_key = key.replace('gamma', 'weight') <ide> if 'beta' in key: <ide> new_key = key.replace('beta', 'bias') <add> # DialoGPT format <a...
1
Python
Python
use imp.find_module to remove task package
854020079e1cd4d202691276c5008072c05490b0
<ide><path>setup.py <ide> if sys.version_info < (2, 5): <ide> raise Exception("Celery requires Python 2.5 or higher.") <ide> <add>try: <add> import imp <add> import celery.app <add> _, task_path, _ = imp.find_module("task", celery.app.__path__) <add> if "__init__.py" in task_path: <add> print("-...
1
PHP
PHP
add allowdynamicproperties attributes
7c71397bdfb68863bed47ebc01f506b99f480f3b
<ide><path>src/Mailer/Mailer.php <ide> * @method array|string getBody(?string $type = null) Get generated message body as array. <ide> * {@see \Cake\Mailer\Message::getBody()} <ide> */ <add>#[\AllowDynamicProperties] <ide> class Mailer implements EventListenerInterface <ide> { <ide> use ModelAwareTrait; <ide><...
4
PHP
PHP
fix incorrect error message when using arrays
e8aef48810d5803c515f476e194092f0aa0e371b
<ide><path>src/Illuminate/Validation/Validator.php <ide> public function __construct(TranslatorInterface $translator, array $data, array <ide> /** <ide> * Parse the data and hydrate the files array. <ide> * <del> * @param array $data <add> * @param array $data <add> * @param string $arrayKey <ide> * @r...
1
Javascript
Javascript
add ascii fast path to getstringwidth()
ab841d5fbab1a9d2f8323d1ae3f71f37c6f636a1
<ide><path>benchmark/misc/getstringwidth.js <add>'use strict'; <add> <add>const common = require('../common.js'); <add> <add>const bench = common.createBenchmark(main, { <add> type: ['ascii', 'mixed', 'emojiseq', 'fullwidth'], <add> n: [10e4] <add>}, { <add> flags: ['--expose-internals'] <add>}); <add> <add>function...
3
Javascript
Javascript
remove unnecessary instantiations
1d192327f1a032dd022e1314386adfee777caad5
<ide><path>examples/js/controls/EditorControls.js <ide> THREE.EditorControls = function ( object, domElement ) { <ide> <ide> var scope = this; <ide> var vector = new THREE.Vector3(); <add> var delta = new THREE.Vector3(); <add> var box = new THREE.Box3(); <ide> <ide> var STATE = { NONE: - 1, ROTATE: 0, ZOOM: 1, PA...
1
Javascript
Javascript
use proper circular reference checking
859a2285940202014a5d13c2d3897e4bc870a02b
<ide><path>lib/util.js <ide> function formatValue(ctx, value, recurseTimes) { <ide> } <ide> } <ide> <del> ctx.seen.push(value); <del> <del> var output = formatter(ctx, value, recurseTimes, visibleKeys, keys); <add> // TODO(addaleax): Make `seen` a Set to avoid linear-time lookup. <add> if (ctx.seen.includes(...
1
Text
Text
add hints and solution for this challenge
64efcac19938405cf40ff0e93d4551c322530b9a
<ide><path>guide/english/certifications/front-end-libraries/react-and-redux/extract-local-state-into-redux/index.md <ide> title: Extract Local State into Redux <ide> --- <ide> ## Extract Local State into Redux <ide> <del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certificatio...
1
PHP
PHP
remove empty class content
9d0487bd04b8799cb7da3898b1277d6ac32969dc
<ide><path>tests/Bus/BusDispatcherTest.php <ide> class BusDispatcherTestSpecificQueueAndDelayCommand implements Illuminate\Contra <ide> <ide> class StandAloneCommand <ide> { <del> <ide> } <ide> <ide> class StandAloneHandler
1
Javascript
Javascript
fix unit determination when autoskip is enabled
f606c23f2fbea2612208ffb49511b66e37ce4335
<ide><path>src/scales/scale.time.js <ide> function determineUnitForAutoTicks(minUnit, min, max, capacity) { <ide> <ide> for (i = UNITS.indexOf(minUnit); i < ilen - 1; ++i) { <ide> interval = INTERVALS[UNITS[i]]; <del> factor = interval.steps ? interval.steps / 2 : MAX_INTEGER; <add> factor = interval.steps ? inte...
2
PHP
PHP
accept strings as disabled value
e52f8241387afb81eda9b57306ca77cc3f8930f7
<ide><path>src/View/Widget/MultiCheckbox.php <ide> protected function _isDisabled($key, $disabled) { <ide> if ($disabled === null || $disabled === false) { <ide> return false; <ide> } <del> if ($disabled === true) { <add> if ($disabled === true || is_string($disabled)) { <ide> return true; <ide> } <ide> ...
2
Ruby
Ruby
return an enumerable when no block given
1c3ece12b997206fd9cb0b2bf98c25da8332fe10
<ide><path>Library/Homebrew/tap.rb <ide> def ==(other) <ide> def self.each <ide> return unless TAP_DIRECTORY.directory? <ide> <add> return to_enum unless block_given? <add> <ide> TAP_DIRECTORY.subdirs.each do |user| <ide> user.subdirs.each do |repo| <ide> yield fetch(user.basename.to_s, repo...
2
Javascript
Javascript
fix css tests on opera
9a6967755116f14b6f27fc00b5976b58f0bc6fcd
<ide><path>test/BinderSpec.js <ide> describe('Binder', function(){ <ide> it('BindStyle', function(){ <ide> var scope = this.compile('<div ng:style="style"/>'); <ide> <del> scope.$eval('style={color:"red"}'); <add> scope.$eval('style={height: "10px"}'); <ide> scope.$eval(); <ide> <del> assertEquals(...
3
Mixed
Go
add negotiation process for driver scope
304bfd6261ee7bbac245c60bb34a8c193c86c58d
<ide><path>libnetwork/docs/remote.md <ide> When loaded, a remote driver process receives an HTTP POST on the URL `/Plugin.A <ide> <ide> Other entries in the list value are allowed; `"NetworkDriver"` indicates that the plugin should be registered with LibNetwork as a driver. <ide> <add>### Set capability <add> <add>Af...
4
Text
Text
add distinct to readme
1ee6710b54c013d31951ce22c74ac72377ebbbf6
<ide><path>README.md <ide> The `OR` operator works like this: <ide> users.where(users[:name].eq('bob').or(users[:age].lt(25))) <ide> ``` <ide> <del>The `AND` operator behaves similarly. <add>The `AND` operator behaves similarly. The exception is the `DISTINCT` operator, which is not chainable: <add> <add>``` <add>post...
1
Java
Java
fix examples using markdown instead of @code
5aef7fee1add9bd0d64a38f1f671eeac3abe0db0
<ide><path>src/main/java/io/reactivex/Flowable.java <ide> public final <K> Flowable<T> distinct(Function<? super T, K> keySelector, <ide> * {@code CharSequence}s or {@code List}s where the objects will actually have the same <ide> * references when they are modified and {@code distinctUntilChanged} will evalu...
2
PHP
PHP
add short-cuts for status and content
2e8d837e72375e6c2c1b4cb91cd65bb16dd6e0af
<ide><path>src/Illuminate/Http/ResponseTrait.php <ide> <ide> trait ResponseTrait { <ide> <add> /** <add> * Get the status code for the response. <add> * <add> * @return int <add> */ <add> public function status() <add> { <add> return $this->getStatusCode(); <add> } <add> <add> /** <add> * Get the content of the...
1
Javascript
Javascript
convert openstream to promise
6e30fe7a7f9ae15f78827884e330104d6e2666a3
<ide><path>lib/internal/quic/core.js <ide> const { <ide> Promise, <ide> PromiseAll, <ide> PromiseReject, <add> PromiseResolve, <ide> RegExp, <ide> Set, <ide> Symbol, <ide> const kDestroy = Symbol('kDestroy'); <ide> const kEndpointBound = Symbol('kEndpointBound'); <ide> const kEndpointClose = Symbol('kEndpo...
27
Ruby
Ruby
add an options argument
8bf28477a3da58ea5c6113d9ce3228c08c4c0ec0
<ide><path>Library/Homebrew/utils/popen.rb <ide> module Utils <del> def self.popen_read(*args, &block) <del> popen(args, "rb", &block) <add> def self.popen_read(*args, **options, &block) <add> popen(args, "rb", options, &block) <ide> end <ide> <del> def self.popen_write(*args, &block) <del> popen(args, "...
1
Java
Java
update copyright header
d4dd8baed569f0ce1236aafffd578b0aa69a51f3
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/config/MethodInvokingFactoryBean.java <ide> /* <del> * Copyright 2002-2014 the original author or authors. <add> * Copyright 2002-2017 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License");...
1
Javascript
Javascript
replace function with arrow function
3c62f33d7ba0f0ec6124d5dc721811808803b8b7
<ide><path>test/parallel/test-assert.js <ide> const a = assert; <ide> <ide> function makeBlock(f) { <ide> const args = Array.prototype.slice.call(arguments, 1); <del> return function() { <del> return f.apply(this, args); <add> return () => { <add> return f.apply(null, args); <ide> }; <ide> } <ide> <ide> a...
5
Mixed
Python
adjust kb_id visualizer templating and docs
6bb0324b8181b91832d19de8c00f530c26a8c16e
<ide><path>spacy/displacy/render.py <ide> <ide> from .templates import TPL_DEP_SVG, TPL_DEP_WORDS, TPL_DEP_WORDS_LEMMA, TPL_DEP_ARCS <ide> from .templates import TPL_ENT, TPL_ENT_RTL, TPL_FIGURE, TPL_TITLE, TPL_PAGE <del>from .templates import TPL_ENTS <add>from .templates import TPL_ENTS, TPL_KB_LINK <ide> from ..uti...
3
Text
Text
add font family details
8a2927ff9911bb833176e3f732a90a107b3954a6
<ide><path>guide/english/certifications/responsive-web-design/basic-css/set-the-font-family-of-an-element/index.md <ide> title: Set the Font Family of an Element <ide> --- <ide> ## Set the Font Family of an Element <ide> <del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifi...
1
Text
Text
add note clarifying pnpm args handling
760750d8516c5627bb0bd5c2f1618552dbd0388e
<ide><path>docs/getting-started.md <ide> If you want to start with a TypeScript project you can use the `--typescript` fl <ide> npx create-next-app@latest --typescript <ide> # or <ide> yarn create next-app --typescript <del># or <add># or (the extra '--' is expected and tells pnpm to pass the args down) <ide> pnpm crea...
1
Ruby
Ruby
clarify gnu url warning message
21314474cdfa99e85b291bfc7480b3e253774fc8
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_urls <ide> <ide> # Check GNU urls; doesn't apply to mirrors <ide> urls.grep(%r[^(?:https?|ftp)://(?!alpha).+/gnu/]) do |u| <del> problem "\"ftpmirror.gnu.org\" is preferred for GNU software (url is #{u})." <add> problem "\"http://ftpmirror.gnu....
1
Javascript
Javascript
add `eventtarget` support
a600408b284e92ed3d801d7f4e37d10b5da06b10
<ide><path>packages/legacy-events/EventPluginUtils.js <ide> if (__DEV__) { <ide> */ <ide> export function executeDispatch(event, listener, inst) { <ide> const type = event.type || 'unknown-event'; <del> event.currentTarget = getNodeFromInstance(inst); <add> event.currentTarget = <add> inst.tag !== undefined ? g...
9
Javascript
Javascript
add two test cases
d24da7574c42fbacb290b1f8517d39504245d699
<ide><path>test/UglifyJsPlugin.test.js <add>/* globals describe, it, beforeEach*/ <ide> "use strict"; <del>const should = require("should"); <add>require("should"); <ide> const sinon = require("sinon"); <ide> const UglifyJsPlugin = require("../lib/optimize/UglifyJsPlugin"); <ide> const PluginEnvironment = require("./he...
1
PHP
PHP
add setters and getters for request and response
4fdab63c96c94d86eed7dc3e7b00e7cecc876c2d
<ide><path>src/Controller/Controller.php <ide> class Controller implements EventListenerInterface, EventDispatcherInterface <ide> * <ide> * @var \Cake\Http\ServerRequest <ide> * @link https://book.cakephp.org/3.0/en/controllers/request-response.html#request <add> * @deprecated 3.5.0 Use getRequest()/...
2
Text
Text
allow usage of gray in css
3e797480edde91268bf680f06751a86ab5634557
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-basic-css-by-building-a-cafe-menu/step-081.md <ide> assert(hasAVisited); <ide> You should set the `color` property to `grey`. <ide> <ide> ```js <del>const hasColor = new __helpers.CSSHelp(document).getCSSRules().some(x => x.style.color === 'gre...
1
Java
Java
maintain cursor position when text changes
de44184e01d74e4da18f1cba9b01d4c259ef5d9c
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.java <ide> public void maybeSetSelection(int eventCounter, int start, int end) { <ide> } <ide> <ide> if (start != UNSET && end != UNSET) { <add> // clamp selection values for safety <add> start = clampToTextLength(...
2
Javascript
Javascript
introduce a wrapper for requestanimationframe
04d7317cdd95ba00783389f89f6e9a7e1fc418f8
<ide><path>angularFiles.js <ide> angularFiles = { <ide> 'src/ng/log.js', <ide> 'src/ng/parse.js', <ide> 'src/ng/q.js', <add> 'src/ng/raf.js', <ide> 'src/ng/rootScope.js', <ide> 'src/ng/sanitizeUri.js', <ide> 'src/ng/sce.js', <ide><path>src/AngularPublic.js <ide> $SnifferProvider, <ide> ...
5
Python
Python
add support for lr decay in all optimizers
b2e8d5ab7c476fbed088ebee27ec3373e508af47
<ide><path>keras/optimizers.py <ide> def __init__(self, lr=0.01, momentum=0., decay=0., <ide> self.lr = K.variable(lr) <ide> self.momentum = K.variable(momentum) <ide> self.decay = K.variable(decay) <add> self.inital_decay = decay <ide> <ide> def get_updates(self, params, constraints...
2