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
fix trailing whitespace
e58c93c39d6e56ab3d19fc32fcf61e3ec2459572
<ide><path>lib/Cake/Console/ShellDispatcher.php <ide> public function dispatch() { <ide> return $Shell->main(); <ide> } <ide> } <del> <add> <ide> throw new MissingShellMethodException(array('shell' => $shell, 'method' => $command)); <ide> } <ide>
1
Javascript
Javascript
create textprops (flow for text props)
f71f4e7906648766e1a5b630abbad8935daef955
<ide><path>Libraries/Text/TextProps.js <add>/** <add> * Copyright (c) 2013-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. An additional grant <add> * of patent righ...
1
PHP
PHP
improve comments in application/routes.php
3698315dc9a4e326003d8f1ce5de8c9870d96688
<ide><path>application/routes.php <ide> | Here is the public API of your application. To add functionality to your <ide> | application, you just add to the array located in this file. <ide> | <del> | It's a breeze. Simply tell Laravel the HTTP verbs and request URIs it <del> | should respond to. The GET, POST, PUT, ...
1
Ruby
Ruby
remove rendered_format from lookupcontext
3e2158442b8e6e993bb6bee64c9f3f5e0c02e550
<ide><path>actionview/lib/action_view/lookup_context.rb <ide> module ActionView <ide> # view paths, used in the resolver cache lookup. Since this key is generated <ide> # only once during the request, it speeds up all cache accesses. <ide> class LookupContext # :nodoc: <del> attr_accessor :prefixes, :rendered_...
1
PHP
PHP
correct doc blocks
4f1e24aac2f6c208a52473793560319840d2748c
<ide><path>src/Validation/ValidationSet.php <ide> public function rules() <ide> * <ide> * ``` <ide> * $set <del> * ->add('notEmpty', ['rule' => 'notEmpty']) <add> * ->add('notBlank', ['rule' => 'notBlank']) <ide> * ->add('inRange', ['rule' => ['between', 4, 10...
3
Java
Java
fix cachingresourceresolver key generation
bb3f26483b78bfd03341bab979c00210f1792cd6
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/resource/CachingResourceResolver.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"); ...
3
PHP
PHP
remove unneeded tests
5721d82315de50adc81eb0fe8167c4c8b18138c6
<ide><path>tests/View/ViewBladeCompilerTest.php <ide> public function testEscapedWithAtEchosAreCompiled() <ide> ')); <ide> } <ide> <del> public function testReversedEchosAreCompiled() <del> { <del> $compiler = new BladeCompiler($this->getFiles(), __DIR__); <del> $compiler->setEscape...
1
Javascript
Javascript
extend image.android to support analyticstag prop
1c10568967231cce2be01d2341f4edb79d57ec48
<ide><path>Libraries/Image/Image.android.js <ide> const ImageProps = { <ide> ]): React$PropType$Primitive<{uri?: string, ...} | number>), <ide> progressiveRenderingEnabled: PropTypes.bool, <ide> fadeDuration: PropTypes.number, <add> /** <add> * Analytics Tag used by this Image <add> */ <add> analyticTag: Pr...
2
PHP
PHP
support multiple guesses for policy resolution
d88dfe1e5925fa61f62837359e1b26f799e4110b
<ide><path>src/Illuminate/Auth/Access/Gate.php <ide> public function getPolicyFor($class) <ide> return $this->resolvePolicy($this->policies[$class]); <ide> } <ide> <del> if (class_exists($guessedPolicy = $this->guessPolicyName($class))) { <del> return $this->resolvePolicy($guessed...
2
Ruby
Ruby
move `select_rows` implementation to super class
c1ab4a2dbf89a52d90318323885834008aff3007
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb <ide> def select_values(arel, name = nil, binds = []) <ide> # Returns an array of arrays containing the field values. <ide> # Order is the same as that returned by +columns+. <ide> def select_rows(sql, name =...
2
Text
Text
fix typo in homebrew/linuxbrew-core repo name
3771a607204f3670155bbb29c2ccd497110f4797
<ide><path>docs/Homebrew-linuxbrew-core-Maintainer-Guide.md <del># Homebrew linuxbrew-core Maintainer Guide <add># Homebrew/linuxbrew-core Maintainer Guide <ide> <ide> ## Merging formulae updates from Homebrew/homebrew-core <ide>
1
Javascript
Javascript
use null for the error argument
2b32985c626b57d7ea3e68d6ce088ea3183e3a58
<ide><path>lib/internal/streams/writable.js <ide> function afterWrite(stream, state, count, cb) { <ide> <ide> while (count-- > 0) { <ide> state.pendingcb--; <del> cb(); <add> cb(null); <ide> } <ide> <ide> if (state.destroyed) { <ide> Writable.prototype.end = function(chunk, encoding, cb) { <ide> } <...
3
Javascript
Javascript
convert ambient to class
273871385e5651212d69ac8a3c06f43b9414fa11
<ide><path>src/lights/AmbientLight.js <ide> import { Light } from './Light.js'; <ide> <del>function AmbientLight( color, intensity ) { <add>class AmbientLight extends Light { <ide> <del> Light.call( this, color, intensity ); <add> constructor( color, intensity ) { <ide> <del> this.type = 'AmbientLight'; <add> super...
1
Mixed
Ruby
remove standard_compilers & references to it
178a4e55c2ccc75773c2bf22d48158f9ec6432eb
<ide><path>Library/Homebrew/os/mac.rb <ide> def preferred_arch <ide> end <ide> end <ide> <del> STANDARD_COMPILERS = { <del> "6.0" => { clang: "6.0", clang_build: 600 }, <del> "6.0.1" => { clang: "6.0", clang_build: 600 }, <del> "6.1" => { clang: "6.0", clang_build: 600 }, <del> ...
2
PHP
PHP
allow wherehas on belongsto relations
e21766c81d30bbe06c4860b7f6ff9a055abb27a0
<ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsTo.php <ide> use LogicException; <ide> use Illuminate\Database\Eloquent\Model; <ide> use Illuminate\Database\Eloquent\Builder; <add>use Illuminate\Database\Query\Expression; <ide> use Illuminate\Database\Eloquent\Collection; <ide> <ide> class BelongsTo exten...
1
Text
Text
update links and workflow
a45c2c4f1510bee79916d515fbddaa25d4e32161
<ide><path>docs/devops.md <ide> <!-- do not translate this --> <add> <ide> | [Read these guidelines in other languages](/docs/i18n-languages) | <del>|-| <add>| ---------------------------------------------------------------- | <add> <add> <ide> <!-- do not translate this --> <ide> <ide> # Developer Operations at freeC...
1
PHP
PHP
fix 5.4 only syntax
1ce89545bd9f267713d6238e97387d9412cc25c6
<ide><path>lib/Cake/Test/Case/Cache/CacheTest.php <ide> public function testSetOnAlternateConfigs() { <ide> */ <ide> public function testRemember() { <ide> $expected = 'This is some data 0'; <del> $result = Cache::remember('test_key', [$this, 'cacher'], 'default'); <add> $result = Cache::remember('test_key', arra...
1
Javascript
Javascript
remove trailing comma
1b43272ae81ff8154fff7182a03fe3c18d46569b
<ide><path>index.js <ide> export { <ide> formatSpecifier, <ide> precisionFixed, <ide> precisionPrefix, <del> precisionRound, <add> precisionRound <ide> } from "d3-format"; <ide> <ide> export {
1
Javascript
Javascript
remove assert message
c7d291366eb9cd87e8aa3f9fad93e5c8f072b22f
<ide><path>test/pummel/test-stream-pipe-multi.js <ide> FakeStream.prototype.close = function() { <ide> <ide> // expect all streams to close properly. <ide> process.on('exit', function() { <del> assert.strictEqual(cnt, wclosed, 'writable streams closed'); <del> assert.strictEqual(cnt, rclosed, 'readable streams close...
1
Ruby
Ruby
memoize the result of gsubbing @virtual_path
05eaa07627376626902bd7acde35406edf1bb2f2
<ide><path>actionview/lib/action_view/helpers/translation_helper.rb <ide> def localize(*args) <ide> <ide> private <ide> def scope_key_by_partial(key) <del> if key.to_s.first == "." <add> stringified_key = key.to_s <add> if stringified_key.first == "." <ide> if @virt...
1
Ruby
Ruby
remove unreachable branch
6545e6dad3081baac176e1519206b2b9de7ff233
<ide><path>Library/Homebrew/formula_installer.rb <ide> def check_requirements(req_map) <ide> <ide> def install_requirement_default_formula?(req, dependent, build) <ide> return false unless req.default_formula? <del> return false if build.without?(req) && (req.recommended? || req.optional?) <ide> return tr...
1
Python
Python
remove old deprecation classes for 3.14 release
f34f1562ffc880078ac8517dcd818f7cc56edff5
<ide><path>rest_framework/__init__.py <ide> default_app_config = 'rest_framework.apps.RestFrameworkConfig' <ide> <ide> <del>class RemovedInDRF313Warning(DeprecationWarning): <del> pass <del> <del> <del>class RemovedInDRF314Warning(PendingDeprecationWarning): <del> pass <del> <del> <ide> class RemovedInDRF31...
1
Ruby
Ruby
apply suggestions from code review
5657e109afb8a0c2a9cfaadf6b7aa2a872c5f7f0
<ide><path>Library/Homebrew/dev-cmd/tap-new.rb <ide> def tap_new <ide> titleized_repo = tap.repo.dup <ide> titleized_user[0] = titleized_user[0].upcase <ide> titleized_repo[0] = titleized_repo[0].upcase <del> <del> pr_pull_env = {} <del> pr_pull_env["HOMEBREW_GITHUB_API_TOKEN"] = "${{ github.token }}"...
1
Python
Python
add spacy evaluate
69c7c642c2c3a9c51d0b7c1c1e5e67848f9b7953
<ide><path>spacy/__main__.py <ide> import plac <ide> import sys <ide> from spacy.cli import download, link, info, package, train, convert, model <del> from spacy.cli import profile <add> from spacy.cli import profile, evaluate <ide> from spacy.util import prints <ide> <ide> commands = { <ide>...
3
Text
Text
update dead link for getstaticpaths in docs
127bbc0ba69463638bcf2b059846fc6a481747d5
<ide><path>errors/conflicting-ssg-paths.md <ide> export default function CatchAll() { <ide> <ide> ### Useful Links <ide> <del>- [`getStaticPaths` Documentation](https://nextjs.org/docs/basic-features/data-fetching/get-static-paths.md) <add>- [`getStaticPaths` Documentation](https://nextjs.org/docs/api-reference/data-...
1
Javascript
Javascript
add tests for dnspromises.lookup
211834234622f4da6347b1bec04333471a8443e3
<ide><path>test/parallel/test-dns-lookup.js <ide> // Flags: --expose-internals <ide> 'use strict'; <ide> const common = require('../common'); <add>const { addresses } = require('../common/internet'); <ide> const assert = require('assert'); <ide> const cares = process.binding('cares_wrap'); <ide> const dns = require('dn...
1
Text
Text
use ascii apostrophes consistently
895cc572ac9dee8287a2365ca0087940070ff632
<ide><path>SECURITY.md <ide> <ide> Report security bugs in Node.js via [HackerOne](https://hackerone.com/nodejs). <ide> <del>Your report will be acknowledged within 5 days, and you’ll receive a more <add>Your report will be acknowledged within 5 days, and you'll receive a more <ide> detailed response to your report w...
18
Javascript
Javascript
fix enterleaveeventplugin test in jsdom
73d9d286ee84770c10fd84022fde92bd2efc8eaa
<ide><path>src/eventPlugins/__tests__/EnterLeaveEventPlugin-test.js <ide> * @emails react-core <ide> */ <ide> <add>/*jslint evil: true */ <add> <ide> "use strict"; <ide> <ide> var EnterLeaveEventPlugin; <ide> describe('EnterLeaveEventPlugin', function() { <ide> var iframe = document.createElement('iframe'); <id...
1
PHP
PHP
fix some higher phpstan issues
c802a9c3ba8c45a3d3db91b8941ee583c55b4e87
<ide><path>src/Database/Connection.php <ide> public function begin() <ide> <ide> $this->_transactionLevel++; <ide> if ($this->isSavePointsEnabled()) { <del> $this->createSavePoint($this->_transactionLevel); <add> $this->createSavePoint((string)$this->_transactionLevel); <ide> ...
7
PHP
PHP
apply fixes from styleci
f46a96c8b5fec4a8778f27b786c5d9f6f49b2949
<ide><path>src/Illuminate/Http/ResponseTrait.php <ide> public function status() <ide> public function statusText() <ide> { <ide> return $this->statusText; <del> } <add> } <ide> <ide> /** <ide> * Get the content of the response. <ide><path>tests/Http/HttpResponseTest.php <ide> public ...
2
Ruby
Ruby
remove bad test
17439e3a4027a813d8b746ea892c1c3373c26df3
<ide><path>activesupport/test/caching_test.rb <ide> def test_local_store_strategy <ide> end <ide> assert_nil @cache.read("name") <ide> end <del> <del> def test_setting_nil_cache_store <del> assert ActiveSupport::Cache.lookup_store.class.name, ActiveSupport::Cache::NullStore.name <del> end <ide> end <ide>...
1
Python
Python
remove the deprecated flask.modules property
6af9690ae9800f5a6074c70498cba4b26335ec72
<ide><path>flask/app.py <ide> def wsgi_app(self, environ, start_response): <ide> error = None <ide> ctx.auto_pop(error) <ide> <del> @property <del> def modules(self): <del> from warnings import warn <del> warn(DeprecationWarning('Flask.modules is deprecated, use ' <del> ...
1
Python
Python
remove unused code
f09d133625d7df602b01b22e82350a2774f0da4a
<ide><path>libcloud/test/compute/test_openstack.py <ide> <ide> <ide> def test_driver_instantiation_invalid_auth(): <del> forced_auth = 'http://x.y.z.y:5000' <ide> with pytest.raises(LibcloudError): <ide> d = OpenStackNodeDriver( <ide> 'user', 'correct_password',
1
Ruby
Ruby
add basic json serializer to amo
fbdf706fffbfb17731a1f459203d242414ef5086
<ide><path>activemodel/lib/active_model.rb <ide> module ActiveModel <ide> autoload :TestCase, 'active_model/test_case' <ide> autoload :Validations, 'active_model/validations' <ide> autoload :ValidationsRepairHelper, 'active_model/validations_repair_helper' <add> <add> module Serializers <add> autoload :JSON, ...
5
PHP
PHP
fix failing tests due to prefixes
858a5edcd5015fab1853ecd8a244e193ae61842c
<ide><path>lib/Cake/Test/TestCase/View/Helper/PaginatorHelperTest.php <ide> public function testSortDirFallbackToParams() { <ide> public function testSortAdminLinks() { <ide> Configure::write('Routing.prefixes', array('admin')); <ide> Router::reload(); <del> Router::connect('/admin/:controller/:action/*', array('...
2
Python
Python
standardize the airflow cli help descriptions
5e25c167cde301c95a03dd951e97af0ffdf1deb9
<ide><path>airflow/cli/cli_parser.py <ide> class GroupCommand(NamedTuple): <ide> ), <ide> GroupCommand( <ide> name="kubernetes", <del> help='tools to help run the KubernetesExecutor', <add> help='Tools to help run the KubernetesExecutor', <ide> subcommands=KUBERNETES_COMMANDS <ide>...
1
Text
Text
release notes for 1.0.0rc6 runny-nose
983c3095428d3055fa2f99e8df7d9532c3ca0517
<ide><path>CHANGELOG.md <add><a name="v1.0.0rc6"></a> <add># v1.0.0rc6 runny-nose (2012-04-20) <add> <add> <add>## Bug Fixes <add> <add>- **select:** properly handle empty & unknown options without ngOptions <add> ([904b69c7](https://github.com/angular/angular.js/commit/904b69c745ea4afc1d6ecd2a5f3138c6f947b157)) <add>...
1
Javascript
Javascript
use strict in user.js
9634eab60b7a786a95ba60a76d93872d127f2bc4
<ide><path>test/resources/firefox/user.js <del>user_pref("browser.console.showInPanel", true); <del>user_pref("browser.dom.window.dump.enabled", true); <del>user_pref("browser.firstrun.show.localepicker", false); <del>user_pref("browser.firstrun.show.uidiscovery", false); <del>user_pref("dom.allow_scripts_to_close_wind...
1
Javascript
Javascript
remove useless cwd in posix.resolve
b255cd48b105b02fb1ee26a8012b764e83a6a419
<ide><path>lib/path.js <ide> const posix = { <ide> resolve: function resolve() { <ide> var resolvedPath = ''; <ide> var resolvedAbsolute = false; <del> var cwd; <ide> <ide> for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) { <ide> var path; <ide> if (i >= 0) <ide> ...
1
Text
Text
fix typo in streams.md
a6e416270d116da5c3bf565adcb1e6dddb92d2b6
<ide><path>doc/api/stream.md <ide> implement streams using JavaScript's prototypal inheritance model. <ide> <ide> First, a stream developer would declare a new JavaScript class that extends one <ide> of the four basic stream classes (`stream.Writable`, `stream.Readable`, <del>`stream.Duplex`, or `stream.Transform`), m...
1
Ruby
Ruby
teach brew about mksh
6e691320f8a87b50c0f25c284fdc89aefc3332d6
<ide><path>Library/Homebrew/utils/shell.rb <ide> def from_path(path) <ide> shell_name = File.basename(path) <ide> # handle possible version suffix like `zsh-5.2` <ide> shell_name.sub!(/-.*\z/m, "") <del> shell_name.to_sym if %w[bash csh fish ksh sh tcsh zsh].include?(shell_name) <add> shell_...
1
Javascript
Javascript
handle invalid unsubscriptions
9504a5cae644c048ea2b466ccc7c1a60cec74291
<ide><path>server/boot/randomAPIs.js <ide> module.exports = function(app) { <ide> req.checkParams('email', 'Must send a valid email').isEmail(); <ide> return User.findOne({ where: { email: req.params.email } }, (err, user) => { <ide> if (err) { return next(err); } <add> if (!user) { <add> req....
1
Text
Text
fix typo in table
ccdf68bdeae8e5a41f7c8d93fcb8be65d8da5627
<ide><path>docs/how-to-work-on-the-component-library.md <ide> npm run gen-component MyComponent <ide> <ide> The command will generate a new folder inside the `ui-components` directory, with the following files: <ide> <del>| File name | Purpose | <del>| -...
1
Text
Text
fix typo in docs
249a14704b9f577628770ead5130cbb2e3b2abc7
<ide><path>docs/writing-specs.md <ide> Atom uses [Jasmine](http://jasmine.github.io/2.0/introduction.html) as its spec <ide> expect("oranges").not.toEqual("apples") <ide> ``` <ide> <del>## Runnings specs <add>## Running specs <ide> <ide> Most of the time you'll want to run specs by triggering the `window:run-...
1
Go
Go
use fnv1-a to construct the spi
ddff1b5a876631de0326bf41b1f22f6816572bbb
<ide><path>libnetwork/drivers/overlay/encryption.go <ide> import ( <ide> "encoding/binary" <ide> "encoding/hex" <ide> "fmt" <add> "hash/fnv" <ide> "net" <ide> "sync" <ide> "syscall" <ide> func spExists(sp *netlink.XfrmPolicy) (bool, error) { <ide> } <ide> <ide> func buildSPI(src, dst net.IP, st uint32) int { <de...
1
Javascript
Javascript
remove unused calculation from bad merge
a77efa0587b7f30ed8e9849a96c8c093c6d412c4
<ide><path>src/core/evaluator.js <ide> var PartialEvaluator = (function PartialEvaluatorClosure() { <ide> dir: bidiResult.dir <ide> }; <ide> var renderParams = textState.calcRenderParams(preprocessor.ctm); <del> bidiText.x = renderParams.renderMatrix[4] - (textState.font...
1
Text
Text
add alternatives alternative to symlinks
efc730dc2fac17087f7c27ac3da3e953cc1ab21f
<ide><path>docs/build-instructions/linux.md <ide> have Node.js installed, or node isn't identified as Node.js on your machine. <ide> If it's the latter, entering `sudo ln -s /usr/bin/nodejs /usr/bin/node` into <ide> your terminal may fix the issue. <ide> <add>## You can also use Alternatives: <add> <add>On some varian...
1
Mixed
Ruby
preserve entry ttl when incrementing
4af6d50d44fe25df304b7f682b43b7a29125a807
<ide><path>activesupport/CHANGELOG.md <add>* Fix MemoryStore to preserve entries TTL when incrementing or decrementing <add> <add> This is to be more consistent with how MemCachedStore and RedisCacheStore behaves. <add> <add> *Jean Boussier* <add> <ide> * `Rails.error.handle` and `Rails.error.record` filter n...
3
Python
Python
correct some minor pep8 error
f863ec5ece72694702a5775a2f2950217ca33493
<ide><path>glances/exports/glances_elasticsearch.py <ide> def export(self, name, columns, points): <ide> "_source": { <ide> "value": str(p), <ide> "timestamp": datetime.now() <del> } <add> } <ide> } <ide> a...
3
Ruby
Ruby
fix rubocop warnings
f9c621304da00c0645950506a4d7eddab70ccbdf
<ide><path>Library/Homebrew/cmd/prune.rb <ide> def prune <ide> end <ide> end <ide> <del> if ObserverPathnameExtension.total.zero? <del> puts "Nothing pruned" if ARGV.verbose? <del> else <del> n, d = ObserverPathnameExtension.counts <del> print "Pruned #{n} symbolic links " <del> pri...
1
Python
Python
add pad_to_multiple_of on tokenizers (reimport)
135791e8ef12802ceb21a4abbb3a93f7da1bf390
<ide><path>src/transformers/tokenization_roberta.py <ide> def create_token_type_ids_from_sequences( <ide> <ide> def prepare_for_tokenization(self, text, is_pretokenized=False, **kwargs): <ide> add_prefix_space = kwargs.pop("add_prefix_space", self.add_prefix_space) <del> if (is_pretokenized or add_p...
5
Text
Text
update documentation for setting up database tests
b4ee2d5f6568a6edbf5ab521e6babd10639747f0
<ide><path>guides/source/contributing_to_ruby_on_rails.md <ide> $ SEED=15002 bundle exec ruby -w -Itest test/mail_layout_test.rb <ide> First, create the databases you'll need. You can find a list of the required <ide> table names, usernames, and passwords in `activerecord/test/config.example.yml`. <ide> <del>For MySQL...
1
Python
Python
modernise parser tests and don't depend on models
d0e37b56705f4a26ffb2e832af8f780cbcb87796
<ide><path>spacy/tests/parser/test_parse.py <add># coding: utf-8 <ide> from __future__ import unicode_literals <ide> <add>from ..util import get_doc, apply_transition_sequence <add> <ide> import pytest <ide> <ide> <del>@pytest.mark.models <del>def test_root(EN): <del> tokens = EN(u"i don't have other assistance")...
1
Javascript
Javascript
use .test domain for not found address
8645a3610e1b2eb89fdb96ae795017ec239410c8
<ide><path>test/common/internet.js <ide> const addresses = { <ide> MX_HOST: 'nodejs.org', <ide> // On some systems, .invalid returns a server failure/try again rather than <ide> // record not found. Use this to guarantee record not found. <del> NOT_FOUND: 'come.on.fhqwhgads', <add> NOT_FOUND: 'come.on.fhqwhgads...
1
Javascript
Javascript
add geometries es6 unit tests
1061e2e0cd220d84c1a6a14814ae8514cd04ef78
<ide><path>test/unit/src/geometries/BoxGeometry.tests.js <add>/** <add> * @author TristanVALCKE / https://github.com/Itee <add> * @author Anonymous <add> */ <add>/* global QUnit */ <add> <add>import { <add> BoxGeometry, <add> BoxBufferGeometry <add>} from '../../../../src/geometries/BoxGeometry'; <add> <add>export defa...
22
Python
Python
use bind=true in example
20ac02664bf06d4814f142e7f2105d750da5c07c
<ide><path>examples/django/tasks/__init__.py <ide> celery.autodiscover_tasks(settings.INSTALLED_APPS) <ide> <ide> <del>@celery.task <del>def debug_task(): <del> print(repr(debug_task.request)) <add>@celery.task(bind=True) <add>def debug_task(self): <add> print(repr(self.request))
1
Python
Python
improve api of activityregularization
cbde35fdf5fa72cbc725eb1103c2063cdc81add2
<ide><path>keras/layers/core.py <ide> from .. import activations, initializations <ide> from ..utils.theano_utils import shared_zeros, floatX <ide> from ..utils.generic_utils import make_tuple <del>from .. import regularizers <add>from ..regularizers import ActivityRegularizer <ide> from .. import constraints <ide> <i...
1
Ruby
Ruby
add method for bottle checksums
5de0b4964a730591a9f948906d0499bcee214c27
<ide><path>Library/Homebrew/software_spec.rb <ide> def #{cksum}(val=nil) <ide> end <ide> EOS <ide> end <add> <add> def checksums <add> checksums = {} <add> Checksum::TYPES.each do |checksum_type| <add> checksum_os_versions = send checksum_type <add> next unless checksum_os_versions <add> ...
1
Javascript
Javascript
upgrade importplugin to es6
def1d086a4496c910626af2195216615835fdbd2
<ide><path>lib/dependencies/ImportPlugin.js <ide> MIT License http://www.opensource.org/licenses/mit-license.php <ide> Author Tobias Koppers @sokra <ide> */ <del>var ImportDependency = require("./ImportDependency"); <del>var ImportContextDependency = require("./ImportContextDependency"); <del>var ImportParserPlugin =...
1
Ruby
Ruby
add apipublicexception middleware
3adb5eac3b6d81a0943bebd8dffa25a3b63681eb
<ide><path>actionpack/lib/action_dispatch.rb <ide> class IllegalStateError < StandardError <ide> autoload :ExceptionWrapper <ide> autoload :Flash <ide> autoload :ParamsParser <add> autoload :ApiPublicExceptions <ide> autoload :PublicExceptions <ide> autoload :Reloader <ide> autoload :RemoteIp...
3
Python
Python
add `long_description` field in setup.py
5959d34aca8d6605b3e4b3f9c905b030cae600e3
<ide><path>setup.py <ide> from setuptools import setup <ide> from setuptools import find_packages <ide> <add>long_description = ''' <add>Keras is a high-level neural networks API, <add>written in Python and capable of running on top of <add>TensorFlow, CNTK, or Theano. <add> <add>Use Keras if you need a deep learning ...
1
Javascript
Javascript
remove relative path to babel-runtime
8eb80342362c545e511c3b0c5416f4542610ca46
<ide><path>server/build/babel/preset.js <add>const babelRuntimePath = require.resolve('babel-runtime/package').replace(/[\\/]package\.json$/, '') <ide> const relativeResolve = require('../root-module-relative-path').default(require) <ide> <ide> // Resolve styled-jsx plugins <ide> module.exports = (context, opts = {}) ...
2
Go
Go
add c.assert in docker_cli_ps_test.go
83b03b00578a27f24dc80bb110d36b1f6eed7684
<ide><path>integration-cli/docker_cli_ps_test.go <ide> import ( <ide> "os" <ide> "os/exec" <ide> "path/filepath" <del> "reflect" <ide> "strconv" <ide> "strings" <ide> "time" <ide> <add> "github.com/docker/docker/pkg/integration/checker" <ide> "github.com/go-check/check" <ide> "sort" <ide> <ide> func (s *Docke...
1
Ruby
Ruby
add test for bug fixed in 4f2bf64
b8c85de62004868a34a27e58731f2a9e37aeebd0
<ide><path>actionpack/test/dispatch/request_test.rb <ide> def url_for(options = {}) <ide> assert_equal '9.9.9.9', request.remote_ip <ide> end <ide> <add> test "remote ip when the remote ip middleware returns nil" do <add> request = stub_request 'REMOTE_ADDR' => '127.0.0.1' <add> assert_equal '127.0.0.1', ...
1
Ruby
Ruby
fix wrong `assert_equal` argument order
6158355f2eb51f6768c60077a177af370e95a14b
<ide><path>activerecord/test/cases/connection_management_test.rb <ide> def test_connections_closed_if_exception_and_explicitly_not_test <ide> app = lambda { |_| [200, {}, body] } <ide> response_body = ConnectionManagement.new(app).call(@env)[2] <ide> assert response_body.respond_to?(:to_path) <d...
1
Python
Python
fix fixture scopes
f432bb4b48d84d541420d3888c4487b4e0d57622
<ide><path>spacy/tests/conftest.py <ide> # only used for tests that require loading the models <ide> # in all other cases, use specific instances <ide> <del>@pytest.fixture(params=_models['en'], scope="session") <add>@pytest.fixture(params=_models['en'], scope='session') <ide> def EN(request): <ide> return load_te...
1
PHP
PHP
remove usage of arr from cookie class
629122a5a965b0734251494f54ce57fac0e8f09e
<ide><path>system/cookie.php <ide> public static function has($name) <ide> */ <ide> public static function get($name, $default = null) <ide> { <del> return Arr::get($_COOKIE, $name, $default); <add> return (array_key_exists($name, $_COOKIE)) ? $_COOKIE[$name] : $default; <ide> } <ide> <ide> /**
1
Java
Java
update javadoc on @responsestatus
042519043f774385b30591bf2e6476b7cbee9dfc
<ide><path>spring-web/src/main/java/org/springframework/web/bind/annotation/ResponseStatus.java <ide> <ide> /** <ide> * The <em>reason</em> to be used for the response. <del> * <p>If this attribute is not set, it will default to the standard status <del> * message for the status code. Note that due to the use of ...
1
Javascript
Javascript
support symbol events
66cb4bcf0c032adc0f6abf7452150875c8a82243
<ide><path>src/node.js <ide> var signalWraps = {}; <ide> <ide> function isSignal(event) { <del> return event.slice(0, 3) === 'SIG' && <add> return typeof event === 'string' && <add> event.slice(0, 3) === 'SIG' && <ide> startup.lazyConstants().hasOwnProperty(event); <ide> ...
2
Javascript
Javascript
avoid deprecation warning for viewstate tests
946cefdc2ec93a36205fa8f32a1e1644bd61451f
<ide><path>packages/ember-viewstates/tests/view_state_test.js <ide> var get = Ember.get, set = Ember.set, getPath = Ember.getPath, setPath = Ember.setPath; <ide> <del>module("Ember.ViewState"); <add>module("Ember.ViewState", { <add> setup: function() { <add> Ember.TESTING_DEPRECATION = true; <add> }, <add> <add> ...
1
Python
Python
set the --clone_model_in_keras_dist_strat to none.
2d4cfad039a75b22bcfa4cc283723f1d9d0ece69
<ide><path>official/recommendation/ncf_keras_benchmark.py <ide> def benchmark_1_gpu(self): <ide> self._setup() <ide> self._run_and_report_benchmark() <ide> <del> def benchmark_1_gpu_no_cloning(self): <del> self._setup() <del> FLAGS.clone_model_in_keras_dist_strat = False <del> self._run_and_report_be...
4
Ruby
Ruby
fix definition of find_name
0dea211f44d85e9c28963784286838bfa6c343f9
<ide><path>railties/lib/rails/vendor_gem_source_index.rb <ide> def load_specification(gem_dir) <ide> YAML.load_file(spec_file) if File.exist?(spec_file) <ide> end <ide> <del> def find_name(gem_name, version_requirement = Gem::Requirement.default) <del> search(/^#{gem_name}$/, version_requirement) <ad...
1
Java
Java
fix typo in test method names
5a12e7b2c513731e9bc36589583c7e5b5d96059f
<ide><path>spring-test/src/test/java/org/springframework/test/util/JsonPathExpectationsHelperTests.java <ide> /* <del> * Copyright 2004-2019 the original author or authors. <add> * Copyright 2004-2020 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide>...
1
Python
Python
remove doc/reference from setup
4dbfac0dad8d629b83ce64f2d1aa8cbaee88649c
<ide><path>numpy/setup.py <ide> def configuration(parent_package='',top_path=None): <ide> config.add_subpackage('random') <ide> config.add_subpackage('ma') <ide> config.add_subpackage('doc') <del> config.add_subpackage('doc/reference') <ide> config.add_data_dir('doc') <ide> config.add_data_dir('t...
1
PHP
PHP
make gettokenforrequest public
71040ec51e58d96f521ab5d5ccf600ea3c4305be
<ide><path>src/Illuminate/Auth/TokenGuard.php <ide> public function user() <ide> * <ide> * @return string <ide> */ <del> protected function getTokenForRequest() <add> public function getTokenForRequest() <ide> { <ide> $token = $this->request->input($this->inputKey); <ide>
1
Javascript
Javascript
add chunkid declaration
2101892e3c3ee435d2ef2be7a42482413970ccc8
<ide><path>lib/HotModuleReplacement.runtime.js <ide> var hotDownloadManifest = undefined; <ide> var hotDownloadUpdateChunk = undefined; <ide> var hotDisposeChunk = undefined; <ide> var modules = undefined; <add>var chunkId = undefined; <ide> <ide> module.exports = function() { <ide> var hotApplyOnUpdate = true; <ide>...
1
Python
Python
fix d202 issue
01a52ccb53bc805308bd085dc51ae4674dd5eb4a
<ide><path>airflow/www/security.py <ide> def _sync_dag_view_permissions(self, dag_id, access_control): <ide> :param access_control: a dict where each key is a rolename and <ide> each value is a set() of action names (e.g. {'can_read'}) <ide> """ <del> <ide> dag_resource_name = permis...
1
Javascript
Javascript
remove post-processing ("attributes") hook
d280c5353c3031272a3fda59e619e1d8f6fc6e02
<ide><path>packages/ember-htmlbars/lib/env.js <ide> import lookupHelper from 'ember-htmlbars/hooks/lookup-helper'; <ide> import hasHelper from 'ember-htmlbars/hooks/has-helper'; <ide> import invokeHelper from 'ember-htmlbars/hooks/invoke-helper'; <ide> import element from 'ember-htmlbars/hooks/element'; <del>import att...
3
Javascript
Javascript
remove debugging code
535ab939685216c81fecab0ae9f01b13c4c1f033
<ide><path>script/lib/create-debian-package.js <ide> module.exports = function(packagedAppPath) { <ide> path.join(debianPackageBinDirPath, apmExecutableName) <ide> ); <ide> <del> try { <del> fs.chmodSync(path.join(debianPackageAtomDirPath, 'chrome-sandbox'), '4755'); <del> } catch (ex) { <del> console.lo...
1
Python
Python
fix bug in flax-speech-encoder-decoder test
1da84ae02ce2776bf1babbe7eba1f9a2572dcd44
<ide><path>tests/speech_encoder_decoder/test_modeling_flax_speech_encoder_decoder.py <ide> def compute_loss( <ide> inputs, <ide> attention_mask, <ide> decoder_input_ids, <del> decoder_attention_mask, <ide> freeze_feature_encoder: bool = False, <ide> ): ...
1
Text
Text
fix broken internal link in http.md
42e85c705c3573c266a9c9cec31e0607a05e3a71
<ide><path>doc/api/http.md <ide> try { <ide> [`net.Socket`]: net.md#net_class_net_socket <ide> [`net.createConnection()`]: net.md#net_net_createconnection_options_connectlistener <ide> [`new URL()`]: url.md#url_new_url_input_base <del>[`outgoingMessage.socket`]: #http_outgoingMessage.socket <add>[`outgoingMessage.socke...
1
Ruby
Ruby
change internal implementation to use a tree
90997f9300eef08d380f2e0fb5874885b5d57a26
<ide><path>actionview/lib/action_view/digestor.rb <ide> class << self <ide> def digest(name:, finder:, **options) <ide> options.assert_valid_keys(:dependencies, :partial) <ide> <del> cache_key = ([ name, finder.details_key.hash ].compact + Array.wrap(options[:dependencies])).join('.') <add> ...
2
Ruby
Ruby
add support for error_messages_for(@obj)
c4d1075bd366e89a070afd5d6bf859af276c9507
<ide><path>actionpack/lib/action_view/helpers/active_model_helper.rb <ide> def error_message_on(object, method, *args) <ide> # <ide> # error_messages_for 'user' <ide> # <add> # You can also supply an object: <add> # <add> # error_messages_for @user <add> # <add> # This wil...
4
Ruby
Ruby
fix undefined method error
47afde940a70f2a3a597f01bf52f1b8ad096e65f
<ide><path>Library/Homebrew/formula.rb <ide> def eligible_kegs_for_cleanup <ide> # If the cellar only has one version installed, don't complain <ide> # that we can't tell which one to keep. Don't complain at all if the <ide> # only installed version is a pinned formula. <del> opoo "Skipping #{ful...
1
Javascript
Javascript
remove material.combine from webglprogram
95c1ca3777626e7d0a0d83c8185e73e101eba194
<ide><path>src/renderers/webgl/WebGLProgram.js <ide> function generateEnvMapModeDefine( parameters ) { <ide> <ide> } <ide> <del>function generateEnvMapBlendingDefine( parameters, material ) { <add>function generateEnvMapBlendingDefine( parameters ) { <ide> <ide> var envMapBlendingDefine = 'ENVMAP_BLENDING_MULTIPLY'...
1
Javascript
Javascript
fix locale generation on linux
63979e25d7e1082d73de3ae4e54387d98951b07d
<ide><path>src/locale.js <ide> var fs = require("fs"), <ide> formats = {}, <ide> kvRe = /=/, <ide> valueRe = /;/g, <del> quotedRe = /"([^"]+?)"/g, <add> quotedRe = /"([^"]*?)"/g, <ide> data = []; <ide> <ide> process.stdin.resume();
1
Javascript
Javascript
fix typo in hmr api
ccc431756c5f0e5bf1ef1a08dfcde5e17355de01
<ide><path>lib/HotModuleReplacement.runtime.js <ide> module.exports = function() { <ide> type: "self-accept-error-handler-errored", <ide> moduleId: moduleId, <ide> error: err2, <del> orginalError: err <add> orginalError: err, // TODO remove in webpack 4 <add> originalError: ...
1
Python
Python
fix resources __eq__ check
6b308446eae2f83bf379f976c7d7801aa53370a3
<ide><path>airflow/utils/operator_resources.py <ide> def __init__(self, name, units_str, qty): <ide> self._qty = qty <ide> <ide> def __eq__(self, other): <add> if not isinstance(other, self.__class__): <add> return NotImplemented <ide> return self.__dict__ == other.__dict__ <ide> ...
2
Java
Java
add missing @nullable declaration
5105b74f6e7cdb80cd1dc1f1d426ad931e038184
<ide><path>spring-aop/src/main/java/org/springframework/aop/scope/ScopedProxyUtils.java <ide> public static String getTargetBeanName(String originalBeanName) { <ide> * @see #getTargetBeanName(String) <ide> * @see #isScopedTarget(String) <ide> */ <del> public static String getOriginalBeanName(String targetBeanName...
1
Javascript
Javascript
remove an unused dependency
d98c5f03a4cee88a3f0a383c217e3b2f84bbaa25
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide, $$sanitizeUriProvider) { <ide> <ide> this.$get = [ <ide> '$injector', '$interpolate', '$exceptionHandler', '$templateRequest', '$parse', <del> '$controller', '$rootScope', '$document', '$sce', '$animate', '$$sanitizeUri', <...
1
Javascript
Javascript
use path2d as cache
e530a4d1a0bd264885a559b1bb5213e26d898454
<ide><path>src/elements/element.line.js <ide> import {_bezierInterpolation, _pointInLine, _steppedInterpolation} from '../help <ide> import {_computeSegments, _boundSegments} from '../helpers/helpers.segment'; <ide> import {_steppedLineTo, _bezierCurveTo} from '../helpers/helpers.canvas'; <ide> import {_updateBezierCon...
2
Javascript
Javascript
use symbol for object hash when possible
bbd9784a81413c3dcc3c618997efd2a469f2c863
<ide><path>dist/Immutable.js <ide> function invariant(condition, error) { <ide> throw new Error(error); <ide> } <ide> var DELETE = 'delete'; <del>var ITERATOR = typeof Symbol === 'undefined' ? '@@iterator' : Symbol.iterator; <add>var ITERATOR = typeof Symbol !== 'undefined' ? Symbol.iterator : '@@iterator'; <ide> f...
4
PHP
PHP
add reverse assertion
9297ad762f2db3744db7ed7588dae844a282277f
<ide><path>tests/Database/DatabaseEloquentIntegrationTests.php <ide> public function testBasicHasManyEagerLoading() <ide> $user = EloquentTestUser::with('posts')->where('email', 'taylorotwell@gmail.com')->first(); <ide> <ide> $this->assertEquals('First Post', $user->posts->first()->name); <add> <add> $post = Eloq...
1
Java
Java
ignore blockhound tests on java 19
94da3609af8505ec98c7cb482eb7ad44327d9e4e
<ide><path>spring-core/src/test/java/org/springframework/core/SpringCoreBlockHoundIntegrationTests.java <ide> * @author Sam Brannen <ide> * @since 5.2.4 <ide> */ <del>@DisabledOnJre(JRE.JAVA_18) // BlockHound is not compatible with JDK 18 yet <add>@DisabledOnJre(value= {JRE.JAVA_18, JRE.JAVA_19}, disabledReason = "B...
1
PHP
PHP
return null if undefined
54f6990d0cb5f33526ff9b47c48de74c389cc4a2
<ide><path>src/Mailer/Mailer.php <ide> public function offsetExists($offset) <ide> public function offsetGet($offset) <ide> { <ide> if (!$this->offsetExists($offset)) { <del> throw \Exception(); <add> return null; <ide> } <ide> <ide> if (isset($this->{$offset})) {
1
Go
Go
fix testrmi race condition
fef41ef7bf83ed04c7df8e0247e60c0d495eefdc
<ide><path>integration/server_test.go <ide> func TestRmi(t *testing.T) { <ide> t.Fatal(err) <ide> } <ide> <add> if _, err := srv.ContainerWait(containerID); err != nil { <add> t.Fatal(err) <add> } <add> <ide> imageID, err := srv.ContainerCommit(containerID, "test", "", "", "", nil) <ide> if err != nil { <ide> ...
1
Ruby
Ruby
improve test descriptions
1d8372cbc86cb5391140e8b78b61de59496045f8
<ide><path>Library/Homebrew/test/rubocops/components_order_spec.rb <ide> describe RuboCop::Cop::FormulaAudit::ComponentsOrder do <ide> subject(:cop) { described_class.new } <ide> <del> context "When auditing formula components order" do <add> context "when auditing formula components order" do <ide> it "report...
8
Python
Python
register priority for mx records
f29960fbe01f6c3204eea84e62bfb51c7c9fb4c7
<ide><path>libcloud/dns/drivers/gandi.py <ide> def delete_zone(self, zone): <ide> return res.object <ide> <ide> def _to_record(self, record, zone): <add> extras = {'ttl': record['ttl']} <add> value = record['value'] <add> if record['type'] == 'MX': <add> extras['priority'] =...
1
Python
Python
replace line that was errantly removed in
58c604c1aa765d37f0d0324efb1852ddf4d9d9ef
<ide><path>numpy/core/fromnumeric.py <ide> def nonzero(a): <ide> array([[1, 0, 0], <ide> [0, 2, 0], <ide> [1, 1, 0]]) <del> >>> (array([0, 1, 2, 2], dtype=int64), array([0, 1, 0, 1], dtype=int64)) <add> >>> np.nonzero(x) <add> (array([0, 1, 2, 2], dtype=int64), array([0, 1, 0, 1], dty...
1
Javascript
Javascript
fix error message of hrtime()
a0f728434617c1b84e20a56da33ed888dc254508
<ide><path>lib/internal/errors.js <ide> E('ERR_HTTP_INVALID_CHAR', 'Invalid character in statusMessage.'); <ide> E('ERR_HTTP_INVALID_STATUS_CODE', <ide> (originalStatusCode) => `Invalid status code: ${originalStatusCode}`); <ide> E('ERR_INDEX_OUT_OF_RANGE', 'Index out of range'); <add>E('ERR_INVALID_ARRAY_LENGTH', <a...
3