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
PHP
PHP
refactor some code
5f8062c0dab1cfcd3959c7661fd778ed85cc9b2d
<ide><path>src/Illuminate/Pagination/Paginator.php <ide> public function appends($key, $value) <ide> return $this->addQuery($key, $value); <ide> } <ide> <del> /** <del> * The pagination environment. <del> * <del> * @var \Illuminate\Pagination\Environment <del> */ <del> public function getEnvironment() <del> { <...
1
Javascript
Javascript
define jquery.uniquesort in selector-native too
bf591fb597a056bf2fc9bc474010374695b18d1a
<ide><path>src/selector-native.js <ide> var hasDuplicate, <ide> <ide> // Not directly comparable, sort on existence of method <ide> return a.compareDocumentPosition ? -1 : 1; <add> }, <add> uniqueSort = function( results ) { <add> var elem, <add> duplicates = [], <add> i = 0, <add> j = 0; <add> <add> hasDu...
1
Python
Python
add reporting of stats and turn off dist_strat
1b3c9ba6a68c1e9ec2f9d570113ffbb3eae681f5
<ide><path>official/resnet/keras/keras_cifar_main.py <ide> def __init__(self, batch_size): <ide> <ide> """ <ide> self._batch_size = batch_size <add> self.last_exp_per_sec = 0 <ide> super(TimeHistory, self).__init__() <ide> <ide> def on_train_begin(self, logs=None): <ide> def on_batch_end(self, batch,...
1
Ruby
Ruby
pull no args check into a method
7535ba3be475674748f588cf21d2feea2951dff4
<ide><path>Library/Contributions/cmd/brew-test-bot.rb <ide> def initialize argument <ide> FileUtils.mkdir_p @brewbot_root <ide> end <ide> <add> def no_args? <add> @hash == 'HEAD' <add> end <add> <ide> def git arguments <ide> Dir.chdir HOMEBREW_REPOSITORY do <ide> `git #{arguments}` <ide> def sin...
1
Text
Text
fix older release notes
df1d222dd0b4ed00e241a4b0709d2d5c0397b063
<ide><path>CHANGELOG.md <ide> with the `$route` service <ide> (e.g. `ng:init="$location = $service('$location'), ...`) in the view or more correctly create <ide> a service like this: <ide> <del> angular.service('published-svc-shim', function() { <del> this.$location = this.$service('$location'); <del> ...
1
Ruby
Ruby
remove check for present? from delete_all
2512bd717bbf60364935afdbacb422d9248a1ba8
<ide><path>activerecord/lib/active_record/associations/collection_association.rb <ide> def transaction(*args) <ide> # <ide> # See delete for more info. <ide> def delete_all(dependent = nil) <del> if dependent.present? && ![:nullify, :delete_all].include?(dependent) <add> if dependent && ...
1
Ruby
Ruby
use gcc instead of gfortran
326d3e07e913cdcaab2191c71a49ecdbee8a6973
<ide><path>Library/Homebrew/requirements/fortran_dependency.rb <ide> class FortranDependency < Requirement <ide> fatal true <ide> <del> default_formula 'gfortran' <add> default_formula 'gcc' <ide> <ide> env { ENV.fortran } <ide>
1
Python
Python
implement mapped value unpacking
46a337c8cda6fcc515fffe9a4e4cc324edaefa0a
<ide><path>airflow/cli/commands/task_command.py <ide> def _run_task_by_local_task_job(args, ti): <ide> <ide> def _run_raw_task(args, ti: TaskInstance) -> None: <ide> """Runs the main task handling code""" <del> ti.task = ti.task.unmap() <ide> ti._run_raw_task( <ide> mark_success=args.mark_success, <...
17
Text
Text
move trevnorris to tsc emeritus
636bac712508725b218e6ba112872470f5a23def
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> **Michaël Zasso** &lt;targos@protonmail.com&gt; (he/him) <ide> * [thefourtheye](https://github.com/thefourtheye) - <ide> **Sakthipriyan Vairamani** &lt;thechargingvolcano@gmail.com&gt; (he/him) <del>* [trevnorris](htt...
1
Ruby
Ruby
fix the tests to test what they should be testing
825447130d1a34557d7ba6d8985d2e0715fcbf8e
<ide><path>railties/test/application/middleware/cache_test.rb <ide> def test_cache_works_with_etags <ide> assert_equal "miss, store", last_response.headers["X-Rack-Cache"] <ide> assert_equal "public", last_response.headers["Cache-Control"] <ide> <del> body = last_response.body <ide> etag = last_...
1
Java
Java
implement elementat as operator
f0fea5fa67bc9ed770ddfa55845e276d4a766e69
<ide><path>rxjava-core/src/main/java/rx/Observable.java <ide> public final void onNext(T args) { <ide> * @see <a href="https://github.com/Netflix/RxJava/wiki/Filtering-Observables#wiki-elementat">RxJava Wiki: elementAt()</a> <ide> */ <ide> public final Observable<T> elementAt(int index) { <del> ret...
2
Javascript
Javascript
allocate iteration structures lazily (pt. 2)
797446a228e34c9d0649518a50887c542f145b4a
<ide><path>packages/ember-metal/lib/meta.js <ide> export class Meta { <ide> while (pointer !== undefined) { <ide> let map = pointer[key]; <ide> if (map) { <del> seen = seen || Object.create(null); <ide> let innerMap = map[subkey]; <ide> if (innerMap) { <ide> for (let inn...
1
PHP
PHP
correct more docs and add an assertion
9da7e9d44664b02f55d2f69e240be23a29c498a1
<ide><path>src/ORM/Table.php <ide> public function rulesChecker() { <ide> } <ide> <ide> /** <del> * Returns rules chaker object after modifying the one that was passed. Subclasses <add> * Returns rules checker object after modifying the one that was passed. Subclasses <ide> * can override this method in order to ini...
2
Python
Python
remove detection generator
a4b2ed32c01c9666456d739763e6e1c2aca49cf3
<ide><path>official/vision/beta/projects/yolo/modeling/layers/detection_generator.py <del>"""Contains common building blocks for yolo neural networks.""" <del>import tensorflow as tf <del>import tensorflow.keras as ks <del>import tensorflow.keras.backend as K <del> <del># from official.vision.beta.projects.yolo.ops imp...
2
Go
Go
fix flaky testeventscontainerfilterbeforecreate
e372883fcd38aab4d18c11be41e38574250c4c25
<ide><path>integration-cli/docker_cli_events_unix_test.go <ide> package main <ide> <ide> import ( <ide> "bufio" <add> "bytes" <ide> "fmt" <ide> "io/ioutil" <ide> "os" <ide> func (s *DockerSuite) TestEventsContainerFilterByName(c *check.C) { <ide> // #18453 <ide> func (s *DockerSuite) TestEventsContainerFilterBefor...
1
Javascript
Javascript
fix a bug with zero-duration transitions
bbcf25ef7d188d8e1fcf56ad4e6becffa0756398
<ide><path>d3.js <del>d3 = {version: "0.26.0"}; // semver <add>d3 = {version: "0.26.1"}; // semver <ide> if (!Date.now) Date.now = function() { <ide> return +new Date(); <ide> }; <ide> function d3_transition(groups) { <ide> te, // ease(t) <ide> tk, // tween key <ide> ik = interpolators[k...
7
Ruby
Ruby
define word boundary for unanchored path regexp
c94754e2f0bc488907157382ece309baf4ddb1b0
<ide><path>actionpack/lib/action_dispatch/journey/path/pattern.rb <ide> def visit_OR(node) <ide> <ide> class UnanchoredRegexp < AnchoredRegexp # :nodoc: <ide> def accept(node) <del> %r{\A#{visit node}} <add> %r{\A#{visit node}\b} <ide> end <ide> end <ide> <ide...
3
Javascript
Javascript
flow strict in viewpagerandroid.android.js
636e146c4a27990547c81c2d36411d36b2c8e788
<ide><path>Libraries/Components/ViewPager/ViewPagerAndroid.android.js <ide> * LICENSE file in the root directory of this source tree. <ide> * <ide> * @format <del> * @flow <add> * @flow strict-local <ide> */ <ide> <ide> 'use strict'; <ide> const requireNativeComponent = require('requireNativeComponent'); <ide> <i...
1
Java
Java
add fb4a native modules to snapshot tests
dc22bd638fcc68ecab55d1175318822cf8972967
<ide><path>ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactAppTestActivity.java <ide> <ide> package com.facebook.react.testing; <ide> <del>import javax.annotation.Nullable; <del> <del>import java.util.concurrent.CountDownLatch; <del>import java.util.concurrent.TimeUnit; <del> <ide> import android.gr...
3
Python
Python
fix two bugs with assignment in linode dns driver
ab047b952aea70ee27114478140d848642f9819f
<ide><path>libcloud/dns/drivers/linode.py <ide> def create_record(self, name, zone, type, data, extra=None): <ide> valid_keys=VALID_RECORD_EXTRA_PARAMS, <ide> extra=extra) <ide> <del> data = self.connection.request(API_ROOT, params=...
1
PHP
PHP
fix php-cs (missing spaces)
91dcfdf38733581321c268da3ccc3f1cd6974835
<ide><path>src/View/ViewBlock.php <ide> public function end() <ide> $mode = end($this->_active); <ide> $active = key($this->_active); <ide> $content = ob_get_clean(); <del> if($mode === ViewBlock::OVERRIDE) { <add> if ($mode === ViewBlock::OVERRIDE) { <ide> ...
1
Text
Text
add quotes to api
636d3aeda753301657cf9f2e9faa8e947392bfe2
<ide><path>docs/advanced-features/react-18.md <ide> Ensure you have the `rc` npm tag of React installed: <ide> npm install next@latest react@rc react-dom@rc <ide> ``` <ide> <del>That's all! You can now start using React 18's new APIs like `startTransition` and Suspense in Next.js. <add>That's all! You can now start us...
1
Javascript
Javascript
pass session object directly into connect-mongo
093bbfd679f3cc75a214e6270527646cee853d34
<ide><path>app.js <ide> var csrf = require('lusca').csrf(); <ide> var methodOverride = require('method-override'); <ide> <ide> var _ = require('lodash'); <del>var MongoStore = require('connect-mongo')({ session: session }); <add>var MongoStore = require('connect-mongo')(session); <ide> var flash = require('express-fla...
1
Ruby
Ruby
correct the parameter name for deserialize
6852a53821a4da20943592601582d488e384810d
<ide><path>activejob/lib/active_job/serializers/object_serializer.rb <ide> def serialize(hash) <ide> end <ide> <ide> # Deserializes an argument from a JSON primitive type. <del> def deserialize(_argument) <add> def deserialize(json) <ide> raise NotImplementedError <ide> end <ide>
1
Python
Python
describe memory considerations in in1d/isin
7cb937c37f2cb33c096055b3783a006f71c938df
<ide><path>numpy/lib/arraysetops.py <ide> def in1d(ar1, ar2, assume_unique=False, invert=False, method='auto'): <ide> The algorithm to use. This will not affect the final result, <ide> but will affect the speed. Default is 'auto'. <ide> <del> - If 'sort', will use a sort-based approach. <add> ...
1
Mixed
Text
remove old documentation
df1d146ee784868b44ddba802edfcc30c6ad9795
<ide><path>docs/api-guide/filtering.md <ide> By default, the search parameter is named `'search`', but this may be overridden <ide> To dynamically change search fields based on request content, it's possible to subclass the `SearchFilter` and override the `get_search_fields()` function. For example, the following subcl...
3
Javascript
Javascript
use the functions
5d87002b3f07687f71186baec75b5acc98bc7cc1
<ide><path>src/git-repository-async.js <ide> export default class GitRepositoryAsync { <ide> }) <ide> .then(statuses => { <ide> return Promise.all(statuses.map(s => s.statusBit())).then(bits => { <del> let directoryStatus = 0 <del> const filteredBits = bits.filter(b => b > 0) <del>...
1
Text
Text
add some tutorials
a9aaebb70c45e3913d0c6430bfb3739e6ad42e94
<ide><path>docs/introduction/Ecosystem.md <ide> On this page we will only feature a few of them that the Redux maintainers have <ide> <ide> * [redux-devtools](http://github.com/gaearon/redux-devtools) — An action logger with time travel UI, hot reloading and error handling for the reducers, [first demoed at React Euro...
1
PHP
PHP
throw error when psy/psysh is not loaded
01d03b7dcb8807474402f36c0cb474fcfa92301a
<ide><path>src/basics.php <ide> function breakpoint() <ide> if (PHP_SAPI === 'cli' && class_exists('\Psy\Shell')) { <ide> return 'extract(\Psy\Shell::debug(get_defined_vars(), isset($this) ? $this : null));'; <ide> } <add> trigger_error( <add> "psy/psysh must be loaded and ...
1
PHP
PHP
fix deprecationwarning message
1a684f97c337234c67297878cf34af4a486403b6
<ide><path>src/Database/Schema/TableSchema.php <ide> public function temporary($temporary = null) <ide> { <ide> deprecationWarning( <ide> 'TableSchema::temporary() is deprecated. ' . <del> 'Use TableSchema::setTemporary()/getTemporary() instead.' <add> 'Use TableSchema::set...
1
Ruby
Ruby
pass explicit sort to handle apfs
ac799d9f2d8cff87d01b69174056f65552517721
<ide><path>Library/Homebrew/cmd/list.rb <ide> def filtered_list <ide> end <ide> if ARGV.include? "--pinned" <ide> pinned_versions = {} <del> names.each do |d| <add> names.sort.each do |d| <ide> keg_pin = (HOMEBREW_PINNED_KEGS/d.basename.to_s) <ide> if keg_pin.exist? || keg_pin.sy...
1
Javascript
Javascript
read color info from jpx stream
1ccc8a64b7beeb79f5dc4aee1a03ef04f23997ee
<ide><path>src/core/image.js <ide> * See the License for the specific language governing permissions and <ide> * limitations under the License. <ide> */ <del>/* globals ColorSpace, DecodeStream, error, isArray, ImageKind, isStream, <del> JpegStream, Name, Promise, Stream, warn, LegacyPromise */ <add>/* glo...
2
Mixed
Javascript
remove unused vars from the test execution scope
63d0a2682fc7ac473ed6340f68e6f05273bc7c5e
<ide><path>client/src/client/frame-runner.js <ide> if (window.frameElement && window.frameElement.id === testId) { <ide> } <ide> <ide> function initTestFrame() { <del> const frameReady = document.__frameReady; <del> const source = document.__source; <del> const __getUserInput = document.__getUserInput || (x => x); ...
2
Java
Java
fix classcastexception when setting media types
9f9f1ed2533110081c4a62b20d2b5658c8a68496
<ide><path>spring-web/src/main/java/org/springframework/web/accept/ContentNegotiationManagerFactoryBean.java <ide> import java.util.List; <ide> import java.util.Locale; <ide> import java.util.Map; <add>import java.util.Map.Entry; <ide> import java.util.Properties; <ide> <ide> import javax.servlet.ServletContext; <ide>...
4
Python
Python
add unpack_inputs decorator to mbart
9042dfe35caa2b6ff0e51d554fa50c795558e488
<ide><path>src/transformers/models/mbart/modeling_tf_mbart.py <ide> TFPreTrainedModel, <ide> TFSharedEmbeddings, <ide> TFWrappedEmbeddings, <del> input_processing, <ide> keras_serializable, <add> unpack_inputs, <ide> ) <ide> from ...tf_utils import shape_list <ide> from ...utils import logging <id...
1
Ruby
Ruby
use travel_to convention in existing test
59cb9e31fd9a2671697fb8d4b652b7a1b2a02a32
<ide><path>activesupport/test/time_zone_test.rb <ide> def test_unknown_timezones_delegation_to_tzinfo <ide> end <ide> <ide> def test_today <del> Time.stubs(:now).returns(Time.utc(2000, 1, 1, 4, 59, 59)) # 1 sec before midnight Jan 1 EST <add> travel_to(Time.utc(2000, 1, 1, 4, 59, 59)) # 1 sec before midnight...
1
Python
Python
fix flake8 styling
cb21d010dddaf482200c3f8b6fef482b938a53ac
<ide><path>libcloud/compute/drivers/softlayer.py <ide> crypto = False <ide> <ide> from libcloud.common.softlayer import SoftLayerConnection, SoftLayerException <del>from libcloud.common.types import LibcloudError <ide> from libcloud.compute.types import Provider, NodeState <ide> from libcloud.compute.base import N...
1
Javascript
Javascript
use nonce attribute for inline script if provided
f1f83507dbf655ceb67a07b41a2765e00499add3
<ide><path>server/document.js <ide> export class Main extends Component { <ide> } <ide> <ide> export class NextScript extends Component { <add> static propTypes = { <add> nonce: PropTypes.string <add> } <add> <ide> static contextTypes = { <ide> _documentProps: PropTypes.any <ide> } <ide> export class Next...
1
Ruby
Ruby
eliminate key_generator ivar
197141a8c7461b79074e1f9ebaddc2990eea6bf8
<ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb <ide> module ChainedCookieJars <ide> # cookies.permanent.signed[:remember_me] = current_user.id <ide> # # => Set-Cookie: remember_me=BAhU--848956038e692d7046deab32b7131856ab20e14e; path=/; expires=Sun, 16-Dec-2029 03:24:16 GMT <ide> d...
1
Javascript
Javascript
avoid allocations in executecommand()
6c698519cdb6d3fdcb561828f0ad52b3e45b114b
<ide><path>src/core/fonts.js <ide> var Type1CharString = (function Type1CharStringClosure() { <ide> if (keepStack) { <ide> this.stack.splice(start, howManyArgs); <ide> } else { <del> this.stack = []; <add> this.stack.length = 0; <ide> } <ide> return false; <ide> }
1
Text
Text
fix typo in fs.md
36bc8b905c78c57195aad13dc4f1012fbe3e5a06
<ide><path>doc/api/fs.md <ide> changes: <ide> * `bytesRead` {integer} <ide> * `buffer` {Buffer} <ide> <del>Similar to the `fs.read90` function, this version takes an optional `options` <del>object. If no `options` object is specified, it will default with the above <del>values. <add>Similar to the [`fs.read()`][] ...
1
Python
Python
remove unittest.main() in test modules
7e98e211f0e86e414b22946bd89391e49d2ea900
<ide><path>examples/summarization/test_utils_summarization.py <ide> def test_compute_token_type_ids(self): <ide> <ide> result = compute_token_type_ids(batch, separator) <ide> np.testing.assert_array_equal(result, expected) <del> <del> <del>if __name__ == "__main__": <del> unittest.main() <ide><path>...
51
PHP
PHP
remove removecookie() method
c4833ec82bfb58eaf83680a7ee1cc64406ed1b04
<ide><path>src/Http/Client.php <ide> public function addCookie(CookieInterface $cookie) <ide> return $this; <ide> } <ide> <del> /** <del> * Removes a cookie from the Client collection. <del> * <del> * @param string $name Cookie name. <del> * @return $this <del> */ <del> public fun...
2
PHP
PHP
remove old constraints
939264f91edc5d33da5ce6cf95a271a6f4a2e1f2
<ide><path>src/Illuminate/Foundation/Testing/Constraints/FormFieldConstraint.php <del><?php <del> <del>namespace Illuminate\Foundation\Testing\Constraints; <del> <del>use Symfony\Component\DomCrawler\Crawler; <del> <del>abstract class FormFieldConstraint extends PageConstraint <del>{ <del> /** <del> * The name o...
11
Ruby
Ruby
use relation#delete_all for model.delete_all
13989ff8c690b9b9e5282bd4098666c909ea64d3
<ide><path>activerecord/lib/active_record/base.rb <ide> def destroy_all(conditions = nil) <ide> # Both calls delete the affected posts all at once with a single DELETE statement. If you need to destroy dependent <ide> # associations or call your <tt>before_*</tt> or +after_destroy+ callbacks, use the +destr...
2
PHP
PHP
apply fixes from styleci
72c92621d946ef01e1b4258f0f4b4769f4d58ddd
<ide><path>tests/Auth/AuthAccessGateTest.php <ide> namespace Illuminate\Tests\Auth; <ide> <ide> use stdClass; <del>use InvalidArgumentException; <ide> use PHPUnit\Framework\TestCase; <ide> use Illuminate\Auth\Access\Gate; <ide> use Illuminate\Container\Container; <ide><path>tests/Container/ContainerTest.php <ide> name...
7
Python
Python
enhance code coverage for blueprint.endpoint
954b7ef7bbc261ac455feb122b56e897653de826
<ide><path>tests/test_blueprints.py <ide> def foo_foo_foo(): <ide> rv = c.get('/py/bar/123') <ide> assert rv.status_code == 404 <ide> <add> <add>def test_endpoint_decorator(): <add> from werkzeug.routing import Rule <add> app = flask.Flask(__name__) <add> app.url_map.add(Rule('/foo', endpoint='bar')) ...
1
Ruby
Ruby
initialize our instance variables
8662722f4fea34259da4d37abd6c55ec717f9d2a
<ide><path>railties/lib/rails/engine.rb <ide> class Engine < Railtie <ide> autoload :Configuration, "rails/engine/configuration" <ide> autoload :Railties, "rails/engine/railties" <ide> <add> def initialize <add> @_all_autoload_paths = nil <add> @_all_load_paths = nil <add> @app ...
1
Javascript
Javascript
add tests for repositoryfordirectorysync
16b8c293a19f2d39166ecfd6e9bd76070a600754
<ide><path>spec/git-repository-provider-spec.js <ide> describe('GitRepositoryProvider', () => { <ide> }) <ide> }) <ide> <del> describe('when specified a Directory without existsSync()', () => { <add> describe('when specified a Directory without exists()', () => { <ide> let directory <ide> <ide> ...
1
Python
Python
fix wrong merge for manifest version
cb7133004d86bec7686d625a6f898913ca5f4380
<ide><path>numpy/distutils/mingw32ccompiler.py <ide> def rc_name(config): <ide> def generate_manifest(config): <ide> msver = get_build_msvc_version() <ide> if msver is not None: <del> if msver >= 9: <add> if msver >= 8: <ide> check_embedded_msvcr_match_linked(msver) <ide> m...
1
PHP
PHP
add throws back in
b82101fb977798d695de03e1513653a893814584
<ide><path>src/Illuminate/Container/Container.php <ide> public function singletonIf($abstract, $concrete = null) <ide> * @param string $abstract <ide> * @param \Closure $closure <ide> * @return void <add> * <add> * @throws \InvalidArgumentException <ide> */ <ide> public function exte...
1
Python
Python
add test for empty subspace
2c37d3b6ec81ee6a86e4ae8f5713d48b6405cfb3
<ide><path>numpy/core/tests/test_ufunc.py <ide> def test_inplace_fancy_indexing(self): <ide> np.invert.at(a, [2, 5, 2]) <ide> assert_equal(a, [0, 1, 2, 3, 4, 5 ^ 0xffffffff, 6, 7, 8, 9]) <ide> <add> # Test empty subspace <add> orig = np.arange(4) <add> a = orig[:,None][:,0:0] <add>...
1
Javascript
Javascript
implement action helper for htmlbars
18e41644485785ef05b953149e28ba9db1cfa526
<ide><path>packages/ember-routing-handlebars/lib/helpers/action.js <ide> ActionHelper.registerAction = function(actionNameOrStream, options, allowedKeys) <ide> if (actionNameOrStream.isStream) { <ide> actionName = actionNameOrStream.value(); <ide> <del> if (typeof actionName === 'undefined' || typ...
4
Javascript
Javascript
use document instead of $document
0a3ec5f8bbc1b51c9188f661df1697cc6a32c6a5
<ide><path>src/ng/urlUtils.js <ide> 'use strict'; <ide> <ide> function $$UrlUtilsProvider() { <del> this.$get = ['$document', function($document) { <del> var urlParsingNode = $document[0].createElement("a"), <del> // NOTE: The usage of window instead of $window here is deliberate. When the browser <del> ...
1
Java
Java
introduce alias for 'value' attribute in @payload
250787a35a2422c0bc12b43232d89df75ca8b4a3
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/Payload.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
Java
Java
adjust logging of resource locations
76c9306dda572ab1be9b888feeb7b56ceb989d85
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/resource/ResourceWebHandler.java <ide> public void setUseLastModified(boolean useLastModified) { <ide> public void afterPropertiesSet() throws Exception { <ide> resolveResourceLocations(); <ide> <del> if (logger.isWarnEnabled() && CollectionU...
2
Ruby
Ruby
remove duplicated logic from fromurlloader
633f29af5d3c96efb79c513375a8914ee0a0c163
<ide><path>Library/Homebrew/formulary.rb <ide> def initialize url <ide> super formula, HOMEBREW_CACHE_FORMULA/File.basename(uri.path) <ide> end <ide> <del> # Downloads the formula's .rb file <del> def fetch <del> begin <del> have_klass = Formulary.formula_class_defined? class_name <del> ...
1
PHP
PHP
change the default value of empty to false
c90008344884522cae43d2d386dea44683e24132
<ide><path>src/View/Helper/FormHelper.php <ide> public function select($fieldName, $options = [], $attributes = []) { <ide> 'hiddenField' => true, <ide> 'multiple' => null, <ide> 'secure' => true, <del> 'empty' => isset($attributes['multiple']) ? false : true <add> 'empty' => false, <ide> ]; <ide> <ide>...
2
Javascript
Javascript
fix broken download button
4fc64ceb76162d01d9ec38a869a7a96f9b13a4f2
<ide><path>web/compatibility.js <ide> var isAndroidPre3 = /Android\s[0-2][^\d]/.test(userAgent); <ide> var isAndroidPre5 = /Android\s[0-4][^\d]/.test(userAgent); <ide> var isChrome = userAgent.indexOf('Chrom') >= 0; <ide> var isChromeWithRangeBug = /Chrome\/(39|40)\./.test(userAgent); <add>var isIOSChrome = userAgent.i...
2
Javascript
Javascript
fix regex to include .jsx
5fbc2253c493d0feb7b5d23b8492e2b0d56bfeb6
<ide><path>examples/todomvc/webpack.config.js <ide> module.exports = { <ide> }, <ide> module: { <ide> loaders: [{ <del> test: /\.js?$/, <add> test: /\.jsx?$/, <ide> loaders: ['react-hot', 'babel'], <ide> exclude: /node_modules/ <ide> }, {
1
Ruby
Ruby
fix rubocop warnings
17a7c2388193de0c7aed556df92ca955ffec2753
<ide><path>Library/Homebrew/extend/ARGV.rb <ide> def kegs <ide> <ide> dirs = rack.directory? ? rack.subdirs : [] <ide> <del> raise NoSuchKegError.new(rack.basename) if dirs.empty? <add> raise NoSuchKegError, rack.basename if dirs.empty? <ide> <ide> linked_keg_ref = HOMEBREW_LIBRARY.join("Linked...
1
Text
Text
add explanation for returning payload
ef87f059131ec607305c3cfe963c37359b601e0e
<ide><path>docs/tutorials/essentials/part-5-async-logic.md <ide> const usersSlice = createSlice({ <ide> export default usersSlice.reducer <ide> ``` <ide> <add>You may noticed that our reducer is not using the `state` variable at all. <add>Instead, we are returning the action payload directly. <add>This has the effect ...
1
Ruby
Ruby
move no insecure redirect check to _fetch
75ab94c8ea8940f1609e62d23d45d8729dd4a83f
<ide><path>Library/Homebrew/download_strategy.rb <ide> def fetch <ide> ohai "Downloading #{@url}" <ide> <ide> unless cached_location.exist? <del> urls = actual_urls <del> unless urls.empty? <del> ohai "Downloading from #{urls.last}" <del> if !ENV["HOMEBREW_NO_INSECURE_REDIRECT"].nil? &&...
1
Text
Text
add documentation about templating support on…
4571ad05dba48eda9d138c4db20bd2a63022ff63
<ide><path>docs/reference/commandline/service_create.md <ide> accessible at the target port on every node regardless if there is a task for <ide> the service running on the node. For more information refer to <ide> [Use swarm mode routing mesh](https://docs.docker.com/engine/swarm/ingress/). <ide> <add>### Create serv...
2
Javascript
Javascript
unify constructor inspection in `util.inspect`
370ddefc14a0bae1027749e0b75b65d0b6b786e9
<ide><path>lib/internal/util/inspect.js <ide> function getKeys(value, showHidden) { <ide> return keys; <ide> } <ide> <del>function getCtxStyle(constructor, tag) { <del> return constructor || tag || 'Object'; <add>function getCtxStyle(value, constructor, tag) { <add> let fallback = ''; <add> if (constructor === nu...
2
Javascript
Javascript
fix global leaks
a0159b4b295f69e5653ef96d88de579746dcfdc8
<ide><path>lib/http.js <ide> OutgoingMessage.prototype._storeHeader = function(firstLine, headers) { <ide> if (headers) { <ide> var keys = Object.keys(headers); <ide> var isArray = (Array.isArray(headers)); <add> var field, value; <ide> <ide> for (var i = 0, l = keys.length; i < l; i++) { <ide> ...
159
Text
Text
fix doc styles
1d60fc3aa5b7a6032665595c29bdb382bd526e43
<ide><path>BUILDING.md <ide> and not a newer version. <ide> <ide> To run the tests: <ide> <del>``` <add>```console <ide> $ make test <ide> ``` <ide> <ide> Prerequisites: <ide> including the Community edition (remember to select <ide> "Common Tools for Visual C++ 2015" feature during installation). <ide> * ...
5
Python
Python
remove debug print in scons command
7134947e9d1aeff12cd2a74aa8c7af2111db5d88
<ide><path>numpy/distutils/command/scons.py <ide> def run(self): <ide> # nothing to do, just leave it here. <ide> return <ide> <del> print "is bootstrapping ? %s" % is_bootstrapping() <ide> # XXX: when a scons script is missing, scons only prints warnings, and <ide> # doe...
1
Ruby
Ruby
use #inspect instead of wrapping symbols
de7ef64f6150806957161fd4b28e6486fd866a88
<ide><path>Library/Homebrew/rubocops/lines.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> shell_parameter_format = if shell_parameter_stripped.empty? <ide> nil <ide> elsif shell_parameter_stripped == "--" <del> ":flag" <add> ...
1
Javascript
Javascript
remove unused map util
8f239cb3e5fb887ef8f4a43dc4ce02e5e30f4bbd
<ide><path>api-server/server/utils/map.js <del>import _ from 'lodash'; <del>import { Observable } from 'rx'; <del> <del>import { unDasherize, nameify } from '../../../utils/slugs'; <del>import { <del> addNameIdMap as _addNameIdToMap, <del> checkMapData, <del> getFirstChallenge as _getFirstChallenge <del>} from '../....
1
Javascript
Javascript
fix $location to handle updates to empty hash well
c648fee5c2c46cbd2ea8b5bd4cec8005f182db1c
<ide><path>src/services.js <ide> angularServiceInject("$location", function($browser) { <ide> extend(location, parseHref(href)); <ide> } else { <ide> if (isDefined(href.hash)) { <del> extend(href, parseHash(href.hash)); <add> extend(href, isString(href.hash) ? parseHash(href.hash) : href.h...
2
Javascript
Javascript
fix redeclared vars in test-url
680fb1ea0374ce8a7bf20f7afc7b22726e43763c
<ide><path>test/parallel/test-url.js <ide> var parseTests = { <ide> <ide> }; <ide> <del>for (var u in parseTests) { <del> var actual = url.parse(u); <del> var spaced = url.parse(' \t ' + u + '\n\t'); <del> var expected = parseTests[u]; <add>for (const u in parseTests) { <add> let actual = url.parse(u); <add>...
1
Text
Text
normalize react as a product name
0fd3fe3fc6deb41113c19bbb9285205f22e2ce6b
<ide><path>guide/portuguese/react/index.md <ide> const Component2 = () => { <ide> 2. React é declarativo para a maior parte em que estamos mais preocupados com o que fazer, em vez de como fazer uma tarefa específica. A programação declarativa é um paradigma de programação que expressa a lógica de uma computação sem de...
1
Javascript
Javascript
add utilities for bundle creation
eda09f89c9f2daa2125409beb8d9d8cce15dde82
<ide><path>packager/react-packager/src/ModuleGraph/output/__tests__/util-test.js <add>/** <add> * Copyright (c) 2016-present, Facebook, Inc. <add> * All rights reserved. <add> * <add> * This source code is licensed under the BSD-style license found in the <add> * LICENSE file in the root directory of this source tree. ...
2
Text
Text
remove unused line from log readme.md
23c9e2f218b2d24ac672edc8d8f32a9f5cf204f5
<ide><path>src/Log/README.md <ide> You can define as many or as few loggers as your application needs. Loggers <ide> should be configured using `Cake\Core\Log.` An example would be: <ide> <ide> ```php <del>use Cake\Cache\Cache; <del> <ide> use Cake\Log\Log; <ide> <ide> // Short classname
1
Javascript
Javascript
fix documentation for {{each}} helper
82fd051b09b2814fa098f21a493eec73bd8e6074
<ide><path>packages/ember-htmlbars/lib/helpers/each.js <ide> import { get } from "ember-metal/property_get"; <ide> import { forEach } from "ember-metal/enumerable_utils"; <ide> import normalizeSelf from "ember-htmlbars/utils/normalize-self"; <ide> <add>/** <add> The `{{#each}}` helper loops over elements in a collect...
1
Go
Go
add new adjectives to the names generator
88ce14ca1a382ddd39f981200e9f562cf35ff035
<ide><path>pkg/namesgenerator/names-generator.go <ide> var ( <ide> "amazing", <ide> "angry", <ide> "awesome", <add> "beautiful", <ide> "blissful", <ide> "bold", <ide> "boring", <ide> "brave", <add> "busy", <ide> "charming", <ide> "clever", <ide> "cocky", <ide> var ( <ide> "elegant", <ide> "elo...
1
PHP
PHP
remove unneeded variable assignment
8f25dfe3cd86e0bc9edd9bc892e1f4573c25cee9
<ide><path>src/Core/functions.php <ide> function env(string $key, $default = null) <ide> */ <ide> function triggerWarning(string $message): void <ide> { <del> $stackFrame = 1; <ide> $trace = debug_backtrace(); <del> if (isset($trace[$stackFrame])) { <del> $frame = $trace[$s...
1
Javascript
Javascript
remove some useless boilerplate
9d992a91f2b1bf8977ae63c9a044a5500b3e94a0
<ide><path>examples/async/server.js <ide> var port = 3000; <ide> <ide> var compiler = webpack(config); <ide> app.use(webpackDevMiddleware(compiler, { noInfo: true, publicPath: config.output.publicPath })); <del>app.use(webpackHotMiddleware(compiler, { log: console.log, path: '/__webpack_hmr', heartbeat: 10 * 1000 }));...
10
Text
Text
add ternary example
c2de333137b149e30d0997570f563e56cbee2ff0
<ide><path>guide/english/php/if-else-statement/index.md <ide> For instance: <ide> <ide> ## Ternary Operators <ide> <del>Another important option to consider when using short If/Else statements is the ternary operator. <add>Another option to consider when using short If/Else statements is the ternary operator. <ide> ...
1
Ruby
Ruby
add a deprecation for helpers_dir
49be3316c21ae1b779fc26a5eb51890deff56915
<ide><path>actionpack/lib/action_controller/metal/helpers.rb <ide> module Helpers <ide> end <ide> <ide> module ClassMethods <add> def helpers_dir <add> ActiveSupport::Deprecation.warn "ActionController::Base.helpers_dir is deprecated. " << <add> "Please use ActionController::Base.helpers_p...
2
Javascript
Javascript
fix lint error
75435b9b08cd7eebb25394ae45b3f888dd001027
<ide><path>src/renderers/webgl/WebGLLights.js <ide> function WebGLLights() { <ide> hash.hemiLength = hemiLength; <ide> hash.shadowsLength = shadows.length; <ide> <del> hash.value++; <add> hash.value ++; <ide> <ide> } <ide>
1
Mixed
Ruby
stringify keys in session.merge!
2bdd29a6e48fe04c6fb6b7c73471a03ecae0ab7c
<ide><path>actionpack/CHANGELOG.md <add>* Make `Session#merge!` stringify keys. <ide> <add> Previously `Session#update` would, but `merge!` wouldn't. <add> <add> *Drew Bragg* <ide> <ide> Please check [7-0-stable](https://github.com/rails/rails/blob/7-0-stable/actionpack/CHANGELOG.md) for previous changes. <id...
4
Text
Text
fix the example (for realz)
9af5f33a1629f16c56137e2b9903bc977455075f
<ide><path>actionpack/CHANGELOG.md <ide> <ide> class ApplicationController < ActionController::Base <ide> before_action :authenticate <del> protect_from_forgery prepend: true, unless: -> { @authenticated_by.oauth? } <add> protect_from_forgery prepend: false, unless: -> { @authentica...
1
PHP
PHP
restore only error handler
e39b2f50fe5cc5aba9975d47810f3abd6293f683
<ide><path>tests/TestCase/Error/ErrorHandlerTest.php <ide> public function testHandleErrorDebugOn() <ide> */ <ide> public function testHandleErrorTraceOffset() <ide> { <del> $this->_restoreError = true; <del> <ide> set_error_handler(function ($code, $message, $file, $line, $context = null) {...
1
Java
Java
enrich websockethandler context
a11d1c8510c34cdb0889a13af969c3cf424464f3
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/ContextWebSocketHandler.java <add>/* <add> * Copyright 2002-2020 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 ...
9
Go
Go
remove defaultstopsignal const
e53f65a9168aaf4289a490bd56d9e05b46c08bec
<ide><path>container/container.go <ide> func (container *Container) StopSignal() int { <ide> } <ide> <ide> if int(stopSignal) == 0 { <del> stopSignal, _ = signal.ParseSignal(signal.DefaultStopSignal) <add> stopSignal, _ = signal.ParseSignal(defaultStopSignal) <ide> } <ide> return int(stopSignal) <ide> } <ide><pa...
5
Javascript
Javascript
add example to file list
3434106cef5a8c0770d68b3b3b0e782ab60655a7
<ide><path>examples/files.js <ide> var files = { <ide> "webgl_postprocessing_sobel", <ide> "webgl_postprocessing_ssao", <ide> "webgl_postprocessing_taa", <del> "webgl_postprocessing_unreal_bloom" <add> "webgl_postprocessing_unreal_bloom", <add> "webgl_postprocessing_unreal_bloom_selective" <ide> ], <ide> "we...
1
Javascript
Javascript
fix parse errors on older android webviews
1cc9c9ca9d9698356ea541517b3d06ce6556c01d
<ide><path>src/ng/animateCss.js <ide> var $CoreAnimateCssProvider = function() { <ide> return this.getPromise().then(f1,f2); <ide> }, <ide> 'catch': function(f1) { <del> return this.getPromise().catch(f1); <add> return this.getPromise()['catch'](f1); <ide> }, <ide> 'finally...
1
PHP
PHP
use correct template name
8c8ed0f2b285f493e527b6d509ba2c446bdb339e
<ide><path>src/View/Cell.php <ide> public function render($template = null) <ide> if (!$builder->getTemplatePath()) { <ide> $builder->setTemplatePath('Cell' . DIRECTORY_SEPARATOR . str_replace('\\', DIRECTORY_SEPARATOR, $name)); <ide> } <add> $template = $builder->getT...
1
Text
Text
fix nits in esm.md
b4b7ac6ae811b2b5a3082468115dfb5a5246fe3f
<ide><path>doc/api/esm.md <ide> <ide> <!--name=esm--> <ide> <del>Node contains support for ES Modules based upon the [the Node EP for ES Modules][]. <add>Node.js contains support for ES Modules based upon the <add>[Node.js EP for ES Modules][]. <ide> <del>Not all features of the EP are complete and will be landing a...
1
Javascript
Javascript
update support comments related to ie
693f1b537b0a19cda8b7e8f5379bffa5351b8a6e
<ide><path>src/ajax.js <ide> jQuery.extend( { <ide> if ( s.crossDomain == null ) { <ide> urlAnchor = document.createElement( "a" ); <ide> <del> // Support: IE8-11+ <del> // IE throws exception if url is malformed, e.g. http://example.com:80x/ <add> // Support: IE <=8 - 11, Edge 12 - 13 <add> // IE throws ...
8
Text
Text
fix unnatural spaces in readme
1930d7364deeb3bc745026f81e0c1688f5c2f250
<ide><path>packages/next/README.md <ide> Every `import` you declare gets bundled and served with each page. That means pa <ide> import cowsay from 'cowsay-browser' <ide> <ide> function CowsayHi() { <del> return ( <del> <pre> <del> {cowsay.say({ text: 'hi there!' })} <del> </pre> <del> ) <add> return <pre...
1
Javascript
Javascript
remove unused callback argument
179f6611d59a23df086fc34dc72cc40fc9fdf074
<ide><path>test/sequential/test-http-max-http-headers.js <ide> function test1() { <ide> headers = fillHeaders(headers, currentSize); <ide> <ide> const server = net.createServer((sock) => { <del> sock.once('data', (chunk) => { <add> sock.once('data', () => { <ide> writeHeaders(sock, headers); <ide> ...
1
Javascript
Javascript
add touch support to force layout
07e64e94fc195ec08ae15d84f8419e4298aaed1c
<ide><path>d3.js <ide> if (!Object.create) Object.create = function(o) { <ide> f.prototype = o; <ide> return new f(); <ide> }; <del>var d3_array = d3_arraySlice; // conversion for NodeLists <add>d3.array = d3_arraySlice; // conversion for NodeLists <ide> <ide> function d3_arrayCopy(psuedoarray) { <ide> var i = -...
8
PHP
PHP
collect garbage for cycles
2439b05189292c4b9e0ae907caa4c1f9d2e5d2de
<ide><path>tests/Database/DatabaseQueryBuilderMemoryLeakTest.php <ide> protected function runMemoryTest(\Closure $callback) <ide> <ide> $last = null; <ide> <add> gc_collect_cycles(); <add> <ide> while($i--) <ide> { <ide> $callback();
1
Text
Text
add missing quotes [skip ci]
58e6e5c8989a5387c94badf333e9329705c92b44
<ide><path>guides/source/security.md <ide> Here is the most straightforward test to check for XSS: <ide> This JavaScript code will simply display an alert box. The next examples do exactly the same, only in very uncommon places: <ide> <ide> ```html <del><img src=javascript:alert('Hello')> <add><img src="javascript:ale...
1
Text
Text
add ubuntu arch note
b2f1f7ee00070aa5ae0265296baee2a268aa3cbc
<ide><path>docs/installation/linux/ubuntulinux.md <ide> packages from the new repository: <ide> <ide> deb https://apt.dockerproject.org/repo ubuntu-wily main <ide> <del> > **Note**: Docker does not provide packages for all architectures. To install docker on <add> > **Note**: Docker does not provide...
1
Text
Text
fix napi version for node_api_symbol_for
0818b525ad966db1e859b94dafd7ab113447f053
<ide><path>doc/api/n-api.md <ide> of the ECMAScript Language Specification. <ide> added: <ide> - v17.5.0 <ide> - v16.15.0 <del>napiVersion: <del> - v17.5.0 <del> - v16.15.0 <ide> --> <ide> <ide> > Stability: 1 - Experimental
1
Javascript
Javascript
remove feature test from invokeguardedcallbackdev
6c66d38d2549d14a3775a6a0687be6375967d009
<ide><path>scripts/jest/fiber.setup.js <ide> jest.mock('ReactFeatureFlags', () => { <ide> const flags = require.requireActual('ReactFeatureFlags'); <ide> return Object.assign({}, flags, { <ide> disableNewFiberFeatures: true, <del> forceInvokeGuardedCallbackDev: true, <ide> }); <ide> }); <ide> jest.mock('Re...
3