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 |
|---|---|---|---|---|---|
Go | Go | fix wrong foo to zzz in docker_cli_build_test.go | 2276de8704d9b235306b50be748afa98a574a5cb | <ide><path>integration-cli/docker_cli_build_test.go
<ide> func (s *DockerSuite) TestBuildEnvironmentReplacementEnv(c *check.C) {
<ide> } else if strings.HasPrefix(parts[0], "env") {
<ide> envCount++
<ide> if parts[1] != "zzz" {
<del> c.Fatalf("%s should be 'foo' but instead its %q", parts[0], parts[1])
<add>... | 1 |
Python | Python | use pagesizepaginationmixin for cursorpagination | 30b36a594f3f262ca5fcab49ac03d29cab9f2f09 | <ide><path>rest_framework/pagination.py
<ide> def to_html(self):
<ide> return template.render(context)
<ide>
<ide>
<del>class CursorPagination(BasePagination):
<add>class CursorPagination(BasePageSizePagination):
<ide> """
<ide> The cursor pagination implementation is neccessarily complex.
<ide> F... | 2 |
Javascript | Javascript | hide caret during test runs | 397bfa6ad7dff71f4b6d27ac17acc76fe8a6bbb5 | <ide><path>Libraries/Components/TextInput/TextInput.js
<ide> function InternalTextInput(props: Props): React.Node {
<ide> ],
<ide> );
<ide>
<add> // Hide caret during test runs due to a flashing caret
<add> // makes screenshot tests flakey
<add> let caretHidden = props.caretHidden;
<add> if (Platform.isTesti... | 1 |
Java | Java | support selective filtering of error dispatches | 5d04ef4c4acbd3ce35161ce3c500163ee8729abe | <ide><path>spring-orm/src/main/java/org/springframework/orm/hibernate3/support/OpenSessionInViewFilter.java
<ide> protected boolean shouldNotFilterAsyncDispatch() {
<ide> return false;
<ide> }
<ide>
<add> /**
<add> * Returns "false" so that the filter may provide a Hibernate
<add> * {@code Session} to each error ... | 8 |
Ruby | Ruby | fix select tag helper used with enumerable choices | efe62b71d52c40849ead8855fb4f42fae91d4c54 | <ide><path>actionview/lib/action_view/helpers/tags/select.rb
<ide> def render
<ide> # [nil, []]
<ide> # { nil => [] }
<ide> def grouped_choices?
<del> !@choices.empty? && @choices.first.respond_to?(:last) && Array === @choices.first.last
<add> !@choices.blank? && ... | 2 |
Ruby | Ruby | change the string to use in test case | 37802dd51ec1e1b29743be2a3d02106f930e04ba | <ide><path>activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb
<ide> def test_tables_quoting
<ide> flunk
<ide> rescue => e
<ide> # assertion for *quoted* database properly
<del> assert_match(/Unknown database 'foo-bar': SHOW TABLES IN `foo-bar`/, e.inspect)
<add> a... | 2 |
Python | Python | fix bug in mark ti success api | d87ab6d3a54cb6937cfa1771c901f34dda6a2f65 | <ide><path>airflow/www/views.py
<ide> def success(self):
<ide> origin = get_safe_url(args.get('origin'))
<ide> execution_date = args.get('execution_date')
<ide>
<del> upstream = to_boolean(args.get('failed_upstream'))
<del> downstream = to_boolean(args.get('failed_downstream'))
<del> ... | 1 |
Text | Text | add metadata about ecdh curve options | 870186d69a9d2442b095e6d8783ba974f6893c60 | <ide><path>doc/api/tls.md
<ide> changes:
<ide> - version: v9.3.0
<ide> pr-url: https://github.com/nodejs/node/pull/14903
<ide> description: The `options` parameter can now include `clientCertEngine`.
<add> - version: v9.0.0
<add> pr-url: https://github.com/nodejs/node/pull/15206
<add> description: The ... | 1 |
PHP | PHP | fix closing non resource | 5ac60288fd6844179feb0e0bcd137bab41b6b09b | <ide><path>lib/Cake/Console/ConsoleOutput.php
<ide> public function outputAs($type = null) {
<ide> * Clean up and close handles
<ide> */
<ide> public function __destruct() {
<del> fclose($this->_output);
<add> if (is_resource($this->_output)) {
<add> fclose($this->_output);
<add> }
<ide> }
<ide>
<ide> } | 1 |
Python | Python | add masked array tests for '==' and '!=' | 173f65c02c8d654fc55f381665ec43c64d43d636 | <ide><path>numpy/ma/tests/test_core.py
<ide> "setting an item on a masked array which has a shared mask will not copy")
<ide>
<ide>
<add># For parametrized numeric testing
<add>num_dts = [np.dtype(dt_) for dt_ in '?bhilqBHILQefdgFD']
<add>num_ids = [dt_.char for dt_ in num_dts]
<add>
<add>
<ide> class TestMaskedA... | 1 |
Javascript | Javascript | update example to use a module | ba2f606143d2041d0cbbc9b641b95719319c4b0d | <ide><path>src/ng/directive/ngTransclude.js
<ide> * @element ANY
<ide> *
<ide> * @example
<del> <example module="transclude">
<add> <example module="transcludeExample">
<ide> <file name="index.html">
<ide> <script>
<del> function Ctrl($scope) {
<del> $scope.title = 'Lorem Ipsum';
<d... | 1 |
Text | Text | fix malformed changelog entries | f42d7a4552cdf3604833c61cf1d7923b9602833d | <ide><path>doc/changelogs/CHANGELOG_V012.md
<ide> will be maintained until December 31st, 2016.
<ide>
<ide> ### Commits:
<ide>
<del>* [[`a47fd4549d`](https://github.com/nodejs/node/commit/a47fd4549d) - build: add working lint-ci make target (Rod Vagg) https://github.com/nodejs/node/pull/9151
<del>* [[`830584ca59`](ht... | 1 |
PHP | PHP | fix remaining cs errors | aaf2d2ef71886a95cc5d31f74e09ca0f767b9857 | <ide><path>app/Config/Schema/i18n.php
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide> */
<ide>
<add>// @codingStandardsIgnoreStart
<add>
<ide> /*
<ide> *
<ide> * Using the Schema command line utility
<ide> * cake schema run create i18n
<del> *
<ide> */
<ide> class i1... | 9 |
Mixed | Javascript | add isdisposed method to components | 064fcafd44a0bb775c084c646d9947146693900e | <ide><path>docs/guides/player-workflows.md
<ide> Additionally, these actions are recursively applied to _all_ the player's child
<ide>
<ide> > **Note**: Do _not_ remove players via standard DOM removal methods: this will leave listeners and other objects in memory that you might not be able to clean up!
<ide>
<add>##... | 3 |
Python | Python | add comments to clarify cache handling in _raw_fft | 15f02e2515cf879900d5cb27adba23ab0e0ce235 | <ide><path>numpy/fft/fftpack.py
<ide> def _raw_fft(a, n=None, axis=-1, init_function=fftpack.cffti,
<ide> raise ValueError("Invalid number of FFT data points (%d) specified." % n)
<ide>
<ide> try:
<add> # Thread-safety note: We rely on list.pop() here to atomically
<add> # retrieve-and-remove... | 1 |
Python | Python | remove 405 method not allowed immediateresponse | 474780f9d6cdb593f82130d39b6a6ff7ef8b78e0 | <ide><path>djangorestframework/exceptions.py
<ide> def __init__(self, detail=None):
<ide> self.detail = detail or self.default_detail
<ide>
<ide>
<add>class MethodNotAllowed(Exception):
<add> status_code = status.HTTP_405_METHOD_NOT_ALLOWED
<add> default_detail = "Method '%s' not allowed"
<add>
<add> ... | 3 |
Java | Java | fix uimanager detection in touch event emitter | 9bc6c0f8a5cb779b9df394893cc097605dea37f6 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/events/ReactEventEmitter.java
<ide> public void receiveTouches(
<ide> @Override
<ide> public void receiveTouches(TouchEvent event) {
<ide> int reactTag = event.getViewTag();
<del> @UIManagerType int uiManagerType = ViewUtil.getUIManagerType(r... | 1 |
Ruby | Ruby | avoid query from exists? on contradictory relation | 3b622bc0d63c2089ffff7b96e35f90e458ac2de4 | <ide><path>activerecord/lib/active_record/relation/finder_methods.rb
<ide> def exists?(conditions = :none)
<ide> end
<ide>
<ide> relation = construct_relation_for_exists(conditions)
<add> return false if relation.where_clause.contradiction?
<ide>
<ide> skip_query_cache_if_necessary { connection... | 2 |
Javascript | Javascript | remove magictouch require | 576b3b3a5cdeb70bb1796b252c9b421827c17e09 | <ide><path>packages/sproutcore-touch/lib/system.js
<ide> require('sproutcore-touch/system/gesture');
<ide> require('sproutcore-touch/system/view');
<del>require('sproutcore-touch/system/magictouch');
<ide> require('sproutcore-touch/system/gesture_manager');
<ide> require('sproutcore-touch/system/gestures'); | 1 |
Text | Text | add list of extracted plugins to rails4 guide | ce7a493a3033abf270ff480b2e1d32e11a5127e3 | <ide><path>guides/source/4_0_release_notes.md
<ide> $ ruby /path/to/rails/railties/bin/rails new myapp --dev
<ide> Major Features
<ide> --------------
<ide>
<add>Moved to a Plugin
<add>-----------------
<add>
<add>With Rails 4 several pieces have been extracted. While Rails won't ship with these features anymore,
<add... | 1 |
Text | Text | move volume filters to api 1.24 docs | 8ef76f779d6ea59cb1a8c6fde52e4d719a8c073a | <ide><path>docs/reference/api/docker_remote_api_v1.23.md
<ide> Status Codes:
<ide>
<ide> Query Parameters:
<ide>
<del>- **filters** - JSON encoded value of the filters (a `map[string][]string`) to process on the volumes list. Available filters:
<del> - `name=<volume-name>` Matches all or part of a volume name.
<de... | 2 |
Text | Text | prepare entry to the changelog.md | eca847f4ba5733c4cb3cc1ecabbd117a4443cd74 | <ide><path>activerecord/CHANGELOG.md
<add>* Add `rake db:prepare` runs setup if database does not exist, or runs migrations if it does.
<add>
<add> *Roberto Miranda*
<add>
<ide> * Add `after_save_commit` callback as shortcut for `after_commit :hook, on: [ :create, :update ]`.
<ide>
<ide> *DHH* | 1 |
Mixed | Javascript | add `maxstrlength` option to `inspect` function | 944d8626b37d3096f4c4a0e881c52f3ac2da0213 | <ide><path>doc/api/util.md
<ide> stream.write('With ES6');
<ide> <!-- YAML
<ide> added: v0.3.0
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/32392
<add> description: The `maxStringLength` option is supported now.
<ide> - version: v13.5.0
<ide> pr-url: https://g... | 3 |
Python | Python | fix scoring normalization | e0b29f8ef7e4693355e481795af04413ccdf0d55 | <ide><path>spacy/tests/pipeline/test_pipe_factories.py
<ide> def test_language_factories_invalid():
<ide>
<ide>
<ide> @pytest.mark.parametrize(
<del> "weights,expected",
<add> "weights,override,expected",
<ide> [
<del> ([{"a": 1.0}, {"b": 1.0}, {"c": 1.0}], {"a": 0.33, "b": 0.33, "c": 0.33}),
<del> ... | 2 |
Ruby | Ruby | improve deprecation message for leaking scope | c90bca75724037c097b1bb954ef932b46f8abc4c | <ide><path>activerecord/lib/active_record/scoping/named.rb
<ide> def all
<ide> ActiveSupport::Deprecation.warn(<<~MSG.squish)
<ide> Class level methods will no longer inherit scoping from `#{scope._deprecated_scope_source}`
<ide> in Rails 6.1. To continue using the scoped r... | 1 |
Javascript | Javascript | put react.fragment under a feature flag | 0e15ff5669271f5f5956e30a4fe1ae5963778e89 | <ide><path>packages/react-cs-renderer/src/ReactNativeCSFeatureFlags.js
<ide> import type {FeatureFlags} from 'shared/ReactFeatureFlags';
<ide> var ReactNativeCSFeatureFlags: FeatureFlags = {
<ide> enableAsyncSubtreeAPI: true,
<ide> enableAsyncSchedulingByDefaultInReactDOM: false,
<add> enableReactFragment: false,
... | 7 |
Ruby | Ruby | fix has_one through reflection casting check | d739c835bc0dfe9d2ee4d6a7588df7989f756480 | <ide><path>activerecord/lib/active_record/reflection.rb
<ide> def through_reflection?
<ide> def klass
<ide> @klass ||= delegate_reflection.compute_class(class_name).tap do |klass|
<ide> if !parent_reflection.is_a?(HasAndBelongsToManyReflection) &&
<del> !klass.reflections.include?(op... | 2 |
Ruby | Ruby | add actioncontroller#head example | 419d4c09dfcc5cbd898ce52d779603c6a29ac3bc | <ide><path>actionpack/lib/action_controller/metal/head.rb
<ide> module Head
<ide> #
<ide> # head :created, :location => person_path(@person)
<ide> #
<add> # head :created, :location => @person
<add> #
<ide> # It can also be used to return exceptional conditions:
<ide> #
<ide> # retur... | 1 |
PHP | PHP | propagate root names to sub commands | 2489da888a2aa03879a8ed860fd7482956682c1b | <ide><path>src/Console/ConsoleOptionParser.php
<ide> public function help($subcommand = null, $format = 'text', $width = 72)
<ide> $subparser->setDescription($command->getRawHelp());
<ide> }
<ide> $subparser->setCommand($this->getCommand() . ' ' . $subcommand);
<add> $... | 2 |
Java | Java | remove redundant check | ab96bb54280544fb060ecad6d80bf39617b28dc7 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/view/AbstractView.java
<ide> public AbstractView(ReactiveAdapterRegistry registry) {
<ide> public void setSupportedMediaTypes(@Nullable List<MediaType> supportedMediaTypes) {
<ide> Assert.notEmpty(supportedMediaTypes, "MediaType List mus... | 2 |
Java | Java | fix jira issue number in @ignore comments | c0e4387cbcb9ef0b62372ae8a7a0fbca567b955a | <ide><path>spring-orm/src/test/java/org/springframework/orm/jpa/openjpa/OpenJpaEntityManagerFactoryWithAspectJWeavingIntegrationTests.java
<ide> * @author Ramnivas Laddad
<ide> * @author Chris Beams
<ide> */
<del>@Ignore("This test causes gradle to hang. See SPR-103333.")
<add>@Ignore("This test causes gradle to han... | 2 |
Python | Python | add error message in oom situations | 18e2c1de776c8c3bc42c984ea0d31515788b6572 | <ide><path>airflow/task/task_runner/standard_task_runner.py
<ide> def terminate(self):
<ide> if self._rc is None:
<ide> # Something else reaped it before we had a chance, so let's just "guess" at an error code.
<ide> self._rc = -9
<add>
<add> if self._rc == -9:
<add> # ... | 2 |
PHP | PHP | apply fixes from styleci | 01a1474aa2fad999902b606efaa214dd7d607178 | <ide><path>src/Illuminate/Foundation/Vite.php
<ide> public function reactRefresh()
<ide> }
<ide>
<ide> $attributes = $this->parseAttributes([
<del> 'nonce' => $this->cspNonce()
<add> 'nonce' => $this->cspNonce(),
<ide> ]);
<ide>
<ide> return new HtmlString( | 1 |
PHP | PHP | remove unused "closure" class import | 9fade488f9f427fe140cef4e59f5d6d257fd00bd | <ide><path>src/Illuminate/Validation/Validator.php
<ide>
<ide> namespace Illuminate\Validation;
<ide>
<del>use Closure;
<ide> use RuntimeException;
<ide> use BadMethodCallException;
<ide> use Illuminate\Support\Arr; | 1 |
Javascript | Javascript | fix mocks in navigationexperimental | 21ee7fde6e6f3054fe15e77e3d61cacca2948608 | <ide><path>Libraries/NavigationExperimental/Reducer/__tests__/NavigationFindReducer-test.js
<ide> 'use strict';
<ide>
<ide> jest
<del> .autoMockOff()
<del> .mock('ErrorUtils');
<add> .dontMock('NavigationFindReducer');
<ide>
<ide> const NavigationFindReducer = require('NavigationFindReducer');
<ide>
<ide><path>Libra... | 4 |
Text | Text | fix typo in description | 2f27b6e6875cccf461239ae28662d8a9cd153164 | <ide><path>curriculum/challenges/english/01-responsive-web-design/basic-css/use-attribute-selectors-to-style-elements.english.md
<ide> videoUrl: 'https://scrimba.com/c/cnpymfJ'
<ide>
<ide> ## Description
<ide> <section id='description'>
<del>You have been giving <code>id</code> or <code>class</code> attributes to elem... | 1 |
Javascript | Javascript | add support comment | 9db9316609c2881dbb6abc49efc3aa91a57a02ad | <ide><path>src/event.js
<ide> function returnFalse() {
<ide> return false;
<ide> }
<ide>
<add>// Support: IE9
<add>// See #13393 for more info
<ide> function safeActiveElement() {
<ide> try {
<ide> return document.activeElement;
<ide> jQuery.event = {
<ide> delegateCount = handlers.delegateCount,
<ide> cur =... | 1 |
Javascript | Javascript | add test for | cb8afda183e9c931978279d3a1706d1d9c905484 | <ide><path>packages/react-native-renderer/src/__tests__/ReactFabric-test.internal.js
<ide> describe('ReactFabric', () => {
<ide> expect(TextInputState.focusTextInput).toHaveBeenCalledTimes(1);
<ide> expect(TextInputState.focusTextInput).toHaveBeenCalledWith(viewRef.current);
<ide> });
<add>
<add> it('should ... | 1 |
PHP | PHP | simplify opening routes | 2d9b6958ecef4c9195dc6036ae66b5f7ff575206 | <ide><path>app/Http/Controllers/WelcomeController.php
<del><?php namespace App\Http\Controllers;
<del>
<del>class WelcomeController extends Controller
<del>{
<del> /*
<del> |--------------------------------------------------------------------------
<del> | Welcome Controller
<del> |-------------------------... | 2 |
PHP | PHP | remove double space and fix return type hint | 9cf2b41bfcfbb8eb4a6f242e1f634dbf28efe14d | <ide><path>tests/TestCase/Controller/Component/SecurityComponentTest.php
<ide> public function fail(): void
<ide> * @param int $status
<ide> * @return \Cake\Http\Response|null
<ide> */
<del> public function redirect($url, int $status = null): ?\Cake\Http\Response
<add> public function redirect($ur... | 1 |
Text | Text | fix toc links in faq and recipes | 1a1c7ac2a8768127d89bc866acce73340148bdc4 | <ide><path>docs/FAQ.md
<ide> - [Can Redux only be used with React?](/docs/faq/General.md#can-redux-only-be-used-with-react)
<ide> - [Do I need to have a particular build tool to use Redux?](/docs/faq/General.md#do-i-need-to-have-a-particular-build-tool-to-use-redux)
<ide> - **Reducers**
<del> - [How do I share sta... | 12 |
Ruby | Ruby | add benchmark inject code" | 2f44990ea9e0439db24c8b6ef932c608f3f0069b | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit
<ide> ENV.activate_extensions!
<ide> ENV.setup_build_environment
<ide>
<del> if ARGV.switch? "D"
<del> FormulaAuditor.module_eval do
<del> instance_methods.grep(/audit_/).map do |name|
<del> method = instance_method(name)
<del> ... | 1 |
Java | Java | update jctools code | 07fb3280cd777bc79c7f59fdeb07dd814c9cc9e1 | <ide><path>rxjava-core/src/main/java/rx/internal/util/unsafe/ConcurrentCircularArrayQueue.java
<ide> import java.util.AbstractQueue;
<ide> import java.util.Iterator;
<ide>
<del>abstract class ConcurrentCircularArrayQueueL0Pad<E> extends AbstractQueue<E>{
<add>abstract class ConcurrentCircularArrayQueueL0Pad<E> extends... | 10 |
PHP | PHP | tweak a few remote functions | 21c86791fd6a4d3f22a4b62464e187919a72d76b | <ide><path>src/Illuminate/Remote/Connection.php
<ide> class Connection implements ConnectionInterface {
<ide> */
<ide> protected $gateway;
<ide>
<add> /**
<add> * The name of the connection.
<add> *
<add> * @var string
<add> */
<add> protected $name;
<add>
<ide> /**
<ide> * The host name of the server.
<ide>... | 2 |
Javascript | Javascript | reduce rollup rebuilds by restricting inputs.. | 67532742036d74e16e53e02da0559d56457da379 | <ide><path>ember-cli-build.js
<ide> function rollupPackage(packagesES, name) {
<ide> 'backburner',
<ide> ];
<ide>
<del> return new Rollup(packagesES, {
<add> // this prevents broccoli-rollup from "seeing" changes in
<add> // its input that are unrelated to what we are building
<add> // and therefore noop on ... | 1 |
Ruby | Ruby | add option for building bottles | a3db9a42e878b04747100f5b70bbd999eac7cdbf | <ide><path>Library/Homebrew/extend/ARGV.rb
<ide> def build_32_bit?
<ide> include? '--32-bit'
<ide> end
<ide>
<add> def build_bottle?
<add> MacOS.bottles_supported? and include? '--build-bottle'
<add> end
<add>
<ide> def build_from_source?
<del> return true if flag? '--build-from-source' or ENV['HOMEBRE... | 2 |
Javascript | Javascript | simplify the check for isdefaultprevented | c9e8a95709e12c6838a312850ce645e96a53ff5d | <ide><path>src/event.js
<ide> jQuery.Event = function( src ) {
<ide> this.type = src.type;
<ide> // Events bubbling up the document may have been marked as prevented
<ide> // by a handler lower down the tree; reflect the correct value.
<del> this.isDefaultPrevented =
<del> (src.defaultPrevented===true ? true :... | 1 |
Javascript | Javascript | remove precautionary variable `readyfiring` | fcb8a1b3ebf53007637c12c376e3101681f57c02 | <ide><path>src/core/ready-no-deferred.js
<ide> define( [
<ide> "use strict";
<ide>
<ide> var readyCallbacks = [],
<del> readyFiring = false,
<ide> whenReady = function( fn ) {
<ide> readyCallbacks.push( fn );
<ide> },
<ide> jQuery.extend( {
<ide> whenReady = function( fn ) {
<ide> readyCallbacks.push( fn );
<... | 1 |
PHP | PHP | remove unneeded stub class | 9003836c20d18b930b6cb9225a78241b3ba22eb9 | <ide><path>tests/Database/DatabaseMigrationMakeCommandTest.php
<ide> public function tearDown()
<ide>
<ide> public function testBasicCreateDumpsAutoload()
<ide> {
<del> $command = new DatabaseMigrationMakeCommandTestStub(
<add> $command = new MigrateMakeCommand(
<ide> $creator = m::mock('Illuminate\Database\Mig... | 1 |
Text | Text | fix broken link | e1af2634677b0a301345afa363525bc9268415be | <ide><path>guides/source/3_0_release_notes.md
<ide> Deprecations
<ide>
<ide> More Information:
<ide> * [The Rails 3 Router: Rack it Up](http://yehudakatz.com/2009/12/26/the-rails-3-router-rack-it-up/)
<del>* [Revamped Routes in Rails 3](http://rizwanreza.com/2009/12/20/revamped-routes-in-rails-3)
<add>* [Revamped Rout... | 1 |
Mixed | Javascript | add support for abortsignal in readfile | b5a136cd67e39411bb16ae78f7d972846d12e55f | <ide><path>doc/api/fs.md
<ide> If `options.withFileTypes` is set to `true`, the result will contain
<ide> <!-- YAML
<ide> added: v0.1.29
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/35911
<add> description: The options argument may include an AbortSignal to abort an... | 7 |
Java | Java | fix outdated javadoc in the testcontext framework | 726655af50b6747b8c87ed023aa7911c2b4fe2ed | <ide><path>spring-test/src/main/java/org/springframework/test/context/junit4/AbstractJUnit4SpringContextTests.java
<ide>
<ide> import org.apache.commons.logging.Log;
<ide> import org.apache.commons.logging.LogFactory;
<add>
<ide> import org.junit.runner.RunWith;
<add>
<ide> import org.springframework.context.Applicati... | 5 |
Ruby | Ruby | push key checking up | 55d0e6f87719bb9a7040d59db7e5beaa6701e55e | <ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb
<ide> def array_of_permitted_scalars?(value)
<ide> end
<ide>
<ide> def array_of_permitted_scalars_filter(params, key)
<del> if has_key?(key) && array_of_permitted_scalars?(self[key])
<add> if array_of_permitted_scalars?(se... | 1 |
Go | Go | add detection for f2fs and jfs | 7e2d05b4938c010bf15224bd2857e2dca92ec9b3 | <ide><path>daemon/graphdriver/driver.go
<ide> import (
<ide> type FsMagic uint32
<ide>
<ide> const (
<del> FsMagicBtrfs = FsMagic(0x9123683E)
<ide> FsMagicAufs = FsMagic(0x61756673)
<del> FsMagicExtfs = FsMagic(0x0000EF53)
<add> FsMagicBtrfs = FsMagic(0x9123683E)
<ide> FsMagicCramfs = F... | 1 |
PHP | PHP | fix bug with setting save keys | 3a5f0f1910b2dd76853917277a4531f30d137ed4 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> abstract class Model implements ArrayAccess, ArrayableInterface, JsonableInterfa
<ide>
<ide> /**
<ide> * The accessors to append to the model's array form.
<del> *
<add> *
<ide> * @var array
<ide> */
<ide> protected $appends = array();
<ide> protec... | 1 |
PHP | PHP | remove duplicate code | 5a5b58849b78359c750270f467a3d9b9376834b8 | <ide><path>src/ORM/Query.php
<ide> public function applyOptions(array $options)
<ide> public function cleanCopy()
<ide> {
<ide> $clone = clone $this;
<del> $clone->_iterator = null;
<ide> $clone->triggerBeforeFind();
<del> $clone->eagerLoader(clone $this->eagerLoader());
<del> ... | 1 |
Text | Text | add load_defaults doc for query_log_tags_format | 8afcad4f1daa86819729aeebe765ff40bb8eced4 | <ide><path>guides/source/configuring.md
<ide> Below are the default values associated with each target version. In cases of co
<ide> - [`config.action_dispatch.default_headers`](#config-action-dispatch-default-headers): `{ "X-Frame-Options" => "SAMEORIGIN", "X-XSS-Protection" => "0", "X-Content-Type-Options" => "nosnif... | 1 |
Javascript | Javascript | fix resize issue in outlinepass | 976404aa285c092cdf5dd3d2bd282b4d9b3be94a | <ide><path>examples/js/postprocessing/OutlinePass.js
<ide> THREE.OutlinePass.prototype = Object.assign( Object.create( THREE.Pass.prototype
<ide> setSize: function ( width, height ) {
<ide>
<ide> this.renderTargetMaskBuffer.setSize( width, height );
<add> this.renderTargetDepthBuffer.setSize( width, height );
<ide... | 2 |
Java | Java | fix accessibility role/label | fa6035bda6c606868977179534cb941f26fbdb92 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/AccessibilityDelegateUtil.java
<ide> public static void setDelegate(final View view) {
<ide> // if a view already has an accessibility delegate, replacing it could cause problems,
<ide> // so leave it alone.
<ide> if (!ViewCompat.hasAccessib... | 1 |
Ruby | Ruby | keep a cache of writer methods | 55ac7db11bd2fc0cf06d7184f013018fa4be0e9a | <ide><path>activerecord/lib/active_record/attribute_methods/write.rb
<ide> module ActiveRecord
<ide> module AttributeMethods
<ide> module Write
<add> WriterMethodCache = Class.new {
<add> include Mutex_m
<add>
<add> def initialize
<add> super
<add> @module = Module.new
<add> ... | 1 |
Text | Text | update citation information. | 659a4ba0b7035380e721db029e64c2b7bf24c07f | <ide><path>docs/templates/getting-started/faq.md
<ide> Please cite Keras in your publications if it helps your research. Here is an exa
<ide> title={Keras},
<ide> author={Chollet, Fran\c{c}ois and others},
<ide> year={2015},
<del> publisher={GitHub},
<del> howpublished={\url{https://github.com/keras-team/keras}... | 1 |
Javascript | Javascript | add testid, helps tests find items in the list | b5de89755d15bb9b2d5e8b350cd3c25f302ab71e | <ide><path>packages/rn-tester/js/components/RNTesterExampleList.js
<ide> const ExampleCard = ({
<ide> const onAndroid = !platform || platform === 'android';
<ide> return (
<ide> <TouchableHighlight
<add> testID={item.module.title}
<ide> onShowUnderlay={onShowUnderlay}
<ide> onHideUnderlay={onHi... | 1 |
Text | Text | fix syntax errors in person.js example | badf7bb0949280d543b6928ee1d942eb5a2073f9 | <ide><path>guide/english/react/state-vs-props/index.md
<ide> See the below example to get an idea of state:
<ide> super(props);
<ide> this.state = {
<ide> age:0
<add> }
<ide> this.incrementAge = this.incrementAge.bind(this)
<ide> }
<ide> | 1 |
Javascript | Javascript | return empty object for no user | c459572fcf7d4f0b936b6bb014592e6d25435081 | <ide><path>common/models/user.js
<ide> module.exports = function(User) {
<ide> if (!username) {
<ide> // Zalgo!!
<ide> return nextTick(() => {
<del> cb(new TypeError(
<del> `username should be a string but got ${ username }`
<del> ));
<add> cb(null, {});
<ide> });
<... | 1 |
PHP | PHP | fix readability for api | 240a85802e7afedee8dd0a69ec153478c0175154 | <ide><path>src/ORM/Entity.php
<ide> class Entity implements EntityInterface {
<ide>
<ide> /**
<ide> * Initializes the internal properties of this entity out of the
<del> * keys in an array
<del> *
<del> * ### Example:
<del> *
<del> * ``$entity = new Entity(['id' => 1, 'name' => 'Andrew'])``
<del> *
<del> * @param arr... | 1 |
Javascript | Javascript | update atomenvironment specs for async confirm | 58f351e5985c2f2a3e022adc4afd3b7a7294e139 | <ide><path>spec/atom-environment-spec.js
<del>const {it, fit, ffit, fffit, beforeEach, afterEach} = require('./async-spec-helpers')
<add>const {it, fit, ffit, beforeEach, afterEach, conditionPromise} = require('./async-spec-helpers')
<ide> const _ = require('underscore-plus')
<ide> const path = require('path')
<ide> co... | 1 |
Text | Text | add snippet for asyncresource and ee integration | db3d6b38b6a20f0caf432077a585bf51af5d06f4 | <ide><path>doc/api/async_hooks.md
<ide> createHook({
<ide> }
<ide> }).enable();
<ide>
<del>const server = createServer(function(req, res) {
<add>const server = createServer((req, res) => {
<ide> executionAsyncResource()[sym] = { state: req.url };
<ide> setTimeout(function() {
<ide> res.end(JSON.stringify(exe... | 1 |
Javascript | Javascript | break dependence on api.js | 3972d2a89bfcfe177b12bb225302fc2937a1dbab | <ide><path>src/JSON.js
<ide> function fromJson(json, useNative) {
<ide> // TODO(misko): remove this once the $http service is checked in.
<ide> function transformDates(obj) {
<ide> if (isString(obj) && obj.length === DATE_ISOSTRING_LN) {
<del> return angularString.toDate(obj);
<add> return jsonStringT... | 7 |
Python | Python | fix flaky test | 3f67168c44f8c7d34e5266a99bbdd90669a8eaa6 | <ide><path>tests/keras/test_models.py
<ide> def data_generator(train):
<ide> model.fit_generator(data_generator(True), len(X_train), nb_epoch, show_accuracy=True, validation_data=(X_test, y_test))
<ide>
<ide> loss = model.evaluate(X_train, y_train, verbose=0)
<del> assert(loss < 0.8)
<add> assert(loss < ... | 1 |
Python | Python | fix sequence length for prepare_inputs for xlnet | f18ac4c28e6382c9fce4e4a5c8a3c645fe4bdd98 | <ide><path>src/transformers/modeling_xlnet.py
<ide> def prepare_inputs_for_generation(self, input_ids, **model_kwargs):
<ide> # Add dummy token at the end (no attention on this one)
<ide>
<ide> effective_batch_size = input_ids.shape[0]
<del> sequence_length = input_ids.shape[1]
<ide> dum... | 1 |
Python | Python | load all models on cpu | df5d9c3551a6405feb697a1cad903dddffa04bfe | <ide><path>pytorch_pretrained_bert/modeling.py
<ide> def from_pretrained(cls, pretrained_model_name_or_path, state_dict=None, cache_d
<ide> model = cls(config, *inputs, **kwargs)
<ide> if state_dict is None and not from_tf:
<ide> weights_path = os.path.join(serialization_dir, WEIGHTS_NAME)
<... | 4 |
Text | Text | add twitter to obtaining api keys | 1b0fdf33942d17912a0b983de23c248c15b72bd6 | <ide><path>README.md
<ide> Obtaining API Keys
<ide>
<ide> <hr>
<ide>
<del>
<add><img src="https://g.twimg.com/Twitter_logo_blue.png" width="200">
<add>- Sign in at [https://dev.twitter.com](https://dev.twitter.com/)
<add>- From the profile picture dropdown menu select **My Applications**
<add>- Click **Create a new a... | 1 |
Python | Python | remove private keras api usage | affbaa609d4d3afee36ff08866ecc82dcc0d36de | <ide><path>official/vision/beta/modeling/layers/nn_layers.py
<ide> def get_config(self):
<ide> base_config = super(Conv3D, self).get_config()
<ide> return dict(list(base_config.items()) + list(config.items()))
<ide>
<del> def build(self, input_shape):
<del> """Builds the layer with the given input shape.""... | 1 |
Python | Python | fix various typos | f961ae08d91cbe705df1f63736ebbf9079d554de | <ide><path>airflow/_vendor/connexion/apps/abstract.py
<ide> def add_api(self, specification, base_path=None, arguments=None,
<ide> auth_all_paths = auth_all_paths if auth_all_paths is not None else self.auth_all_paths
<ide> # TODO test if base_path starts with an / (if not none)
<ide> arguments ... | 4 |
Javascript | Javascript | cover dgram socket close during bind case | a196895ecceeda4f7ba1059a95a06f1463e517fa | <ide><path>test/parallel/test-dgram-close-during-bind.js
<add>'use strict';
<add>const common = require('../common');
<add>const dgram = require('dgram');
<add>const socket = dgram.createSocket('udp4');
<add>const lookup = socket._handle.lookup;
<add>
<add>// Test the scenario where the socket is closed during a bind o... | 1 |
Ruby | Ruby | use polymorphic proxies to remove duplicate code | a9da99ee5fd73b6d52c6fb443b2443cdfb262d5f | <ide><path>activerecord/lib/active_record/fixtures.rb
<ide> def table_rows
<ide> end
<ide> when :has_many
<ide> if association.options[:through]
<del> handle_hmt(rows, row, association)
<add> add_join_records(rows, row, HasManyThroughProxy.new(associ... | 1 |
Javascript | Javascript | use createelement instead of html generation | cfd6f7a1b8bdbe263ec9a8076ee549171fcb9534 | <ide><path>src/renderers/dom/client/ReactDOMIDOperations.js
<ide>
<ide> 'use strict';
<ide>
<del>var CSSPropertyOperations = require('CSSPropertyOperations');
<ide> var DOMChildrenOperations = require('DOMChildrenOperations');
<ide> var DOMPropertyOperations = require('DOMPropertyOperations');
<ide> var ReactMount = ... | 19 |
Python | Python | remove obsolete code in genapi | c9505e977de888295e1a912aeb152c95b4562736 | <ide><path>numpy/core/code_generators/genapi.py
<ide> def find_functions(filename, tag='API'):
<ide> fo.close()
<ide> return functions
<ide>
<del>def read_order(order_file):
<del> """
<del> Read the order of the API functions from a file.
<del>
<del> Comments can be put on lines starting with #
<del> ... | 1 |
Text | Text | add v3.8.0-beta.4 to changelog | 0dc1a511f4309fdfdcf109b931b1a9f29f4884b3 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.8.0-beta.4 (February 4, 2019)
<add>
<add>- [#17552](https://github.com/emberjs/ember.js/pull/17552) [BUGFIX] Support numbers in component names for Angle Brackets
<add>
<ide> ### v3.8.0-beta.3 (January 28, 2019)
<ide>
<ide> - [#17498](https://github.co... | 1 |
Ruby | Ruby | update clang version parsing for clt 12.5 | 0b39690e5c4c8b4b84c8e13c162ef77b8e9a4037 | <ide><path>Library/Homebrew/os/mac/xcode.rb
<ide> def detect_clang_version
<ide> end
<ide>
<ide> def detect_version_from_clang_version
<del> detect_clang_version&.sub(/^(\d+)00\./, "\\1.")
<add> detect_clang_version&.sub(/^(\d+)0(\d)\./, "\\1.\\2.")
<ide> end
<ide>
<ide> # Versio... | 1 |
Javascript | Javascript | implement server.prototype.address() for pipes | 9c11e8a1ca75c55b59c2794d3b3840f1df2e2a65 | <ide><path>lib/net.js
<ide> Server.prototype.listen = function() {
<ide>
<ide> } else if (isPipeName(arguments[0])) {
<ide> // UNIX socket or Windows pipe.
<del> listen(self, arguments[0], -1, -1);
<add> var pipeName = self._pipeName = arguments[0];
<add> listen(self, pipeName, -1, -1);
<ide>
<ide> }... | 2 |
Text | Text | add a changelog entry for [ci skip] | 9cdf38ff3443ac6de750518c40f696ddece8c288 | <ide><path>activerecord/CHANGELOG.md
<add>* Support index length and order options using both string and symbol
<add> column names.
<add>
<add> Fixes #27243.
<add>
<add> *Ryuta Kamizono*
<add>
<ide> * Raise `ActiveRecord::RangeError` when values that executed are out of range.
<ide>
<ide> *Ryuta Kamiz... | 1 |
Java | Java | fix resourceurlencodingfilter with context mapping | b3bfa95e2bff2a1e06b37c327a70aac54d727a1c | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceUrlEncodingFilter.java
<ide> private void initIndexLookupPath(ResourceUrlProvider urlProvider) {
<ide> if (this.indexLookupPath == null) {
<ide> String requestUri = urlProvider.getPathHelper().getRequestUri(this.request);
<id... | 2 |
Go | Go | fix bug in datapath key rotation in 1-1 nat case | 4a04857a681d15e9fed49c6e72ef1e8e11be5962 | <ide><path>libnetwork/drivers/overlay/encryption.go
<ide> func (d *driver) updateKeys(newKey, primary, pruneKey *key) error {
<ide> priIdx = -1
<ide> delIdx = -1
<ide> lIP = net.ParseIP(d.bindAddress)
<add> aIP = net.ParseIP(d.advertiseAddress)
<ide> )
<ide>
<ide> d.Lock()
<ide> func (d *driver) updateK... | 1 |
Text | Text | fix animation grouping | 7985416d39f8850c08f218cd4c6f5a584090cc0b | <ide><path>CHANGELOG.md
<ide>
<ide> ## Bug Fixes
<ide>
<del>### Core `ng` Module
<del>- **$animate:**
<add>- **Animation**
<add> - ensure that animate promises resolve when the document is hidden
<add> ([9a60408c](https://github.com/angular/angular.js/commit/9a60408c804a62a9517857bdb9a42182ab6769e3))
<add> - do no... | 1 |
Ruby | Ruby | fix rubocop warnings | 78603a24f687b75e5487953f9212667e14cba8d2 | <ide><path>Library/Homebrew/language/haskell.rb
<ide> def cabal_install_tools(*tools)
<ide> end
<ide>
<ide> def install_cabal_package(*args)
<del> options = if args[-1].kind_of?(Hash) then args.pop else {} end
<add> options = args[-1].is_a?(Hash) ? args.pop : {}
<ide>
<ide> cabal_san... | 1 |
Go | Go | move convertservice to composetransform package | 655e48e65309f0191bbbb8b2e9730b6976e148cd | <ide><path>cli/command/stack/common.go
<ide> import (
<ide> "github.com/docker/docker/api/types/filters"
<ide> "github.com/docker/docker/api/types/swarm"
<ide> "github.com/docker/docker/client"
<add> "github.com/docker/docker/opts"
<ide> "github.com/docker/docker/pkg/composetransform"
<ide> )
<ide>
<ide> func getS... | 8 |
PHP | PHP | add verbose logging | be211f86922cb69b3fd06eac5bd43749bf3ad380 | <ide><path>src/Console/Command/Task/ProjectTask.php
<ide> protected function _searchPath($path) {
<ide> foreach ($path as $dir) {
<ide> foreach ($composer as $cmd) {
<ide> if (file_exists($dir . DS . $cmd)) {
<add> $this->_io->verbose('Found composer executable on ' . $dir);
<ide> return $dir . DS . $... | 1 |
Java | Java | reduce overhead of char[] creation | c9b27af64f41cc4fd06ee41a0faaca867e3cba4e | <ide><path>spring-aop/src/main/java/org/springframework/aop/aspectj/AspectJAdviceParameterNameDiscoverer.java
<ide> private String maybeExtractVariableName(@Nullable String candidateToken) {
<ide> }
<ide> if (Character.isJavaIdentifierStart(candidateToken.charAt(0)) &&
<ide> Character.isLowerCase(candidateToken... | 9 |
Python | Python | use malformed response in ec2 driver | b11eb94452c5bbab2c1b87265db2f280448b4880 | <ide><path>libcloud/drivers/ec2.py
<ide> def parse_error(self):
<ide> raise InvalidCredsError(msg)
<ide>
<ide> try:
<del> body = ET.XML(self.body)
<add> body = ET.XML(self.body)
<ide> except:
<del> raise MalformedResponseError("Failed to parse XML", body=self.bo... | 1 |
PHP | PHP | add more quotes | 92b7bdeb4b8c40848fa276cfe1897c656302942f | <ide><path>src/Illuminate/Foundation/Inspiring.php
<ide> public static function quote()
<ide> 'Waste no more time arguing what a good man should be, be one. - Marcus Aurelius',
<ide> 'Well begun is half done. - Aristotle',
<ide> 'When there is no desire, all things are at peace. - La... | 1 |
Javascript | Javascript | remove unused argument | ccb6c39451b502c6b3ff3c014962827c54bae548 | <ide><path>packages/react-reconciler/src/ReactFiberWorkLoop.new.js
<ide> function handleError(root, thrownValue): void {
<ide> } while (true);
<ide> }
<ide>
<del>function pushDispatcher(root) {
<add>function pushDispatcher() {
<ide> const prevDispatcher = ReactCurrentDispatcher.current;
<ide> ReactCurrentDispatc... | 2 |
Javascript | Javascript | deprecate computed.any in favor of computed.or | e4392eb84f87504bf5748277dcc13c925ccd8ba1 | <ide><path>packages/ember-metal/lib/computed_macros.js
<ide> registerComputedWithProperties('or', function(properties) {
<ide> @param {String} dependentKey*
<ide> @return {Ember.ComputedProperty} computed property which returns
<ide> the first truthy value of given list of properties.
<add> @deprecated Use `Embe... | 1 |
Text | Text | improve node.js+fips instructions | 71b2df253d015dcb526af9fc1fb4ca21893a8d24 | <ide><path>BUILDING.md
<ide> to enable FIPS using the configuration flag `--openssl-is-fips`.
<ide> ### Configuring and building quictls/openssl for FIPS
<ide>
<ide> For quictls/openssl 3.0 it is possible to enable FIPS when dynamically linking.
<del>Node.js currently uses openssl-3.0.0+quic which can be configured as... | 1 |
Python | Python | replace labels with -100 to skip loss calc | 0a3d0e02c5af20bfe9091038c4fd11fb79175546 | <ide><path>src/transformers/data/data_collator.py
<ide> def __call__(self, examples: List[torch.Tensor]) -> Dict[str, torch.Tensor]:
<ide> inputs, labels = self.mask_tokens(batch)
<ide> return {"input_ids": inputs, "labels": labels}
<ide> else:
<del> return {"input_ids": batch... | 1 |
Javascript | Javascript | fix dropdown bug in searches | 6c55e9fc32d342d63208897a4f2128c30c069c01 | <ide><path>docs/source/_static/js/custom.js
<ide> function addVersionControl() {
<ide> const parts = location.toString().split('/');
<ide> let versionIndex = parts.length - 2;
<ide> // Index page may not have a last part with filename.html so we need to go up
<del> if (parts[parts.length - 1] != "" && ! ... | 1 |
Javascript | Javascript | remove scrollto on unload | eda1fe74f4cd8979226444f0e99cc120f563cc2a | <ide><path>web/viewer.js
<ide> window.addEventListener('load', function webViewerLoad(evt) {
<ide> sidebarScrollView.addEventListener('scroll', updateThumbViewArea, true);
<ide> }, true);
<ide>
<del>window.addEventListener('unload', function webViewerUnload(evt) {
<del> window.scrollTo(0, 0);
<del>}, true);
<del>
<... | 1 |
Javascript | Javascript | support the old format of ember.binding.transform | 158195a4d5a427ae414e9fde4bc6c72b8f944748 | <ide><path>packages/ember-metal/lib/binding.js
<ide> mixinProperties(Binding,
<ide> @see Ember.Binding.prototype.transform
<ide> */
<ide> transform: function(from, func) {
<add> if (!func) {
<add> func = from;
<add> from = null;
<add> }
<ide> var C = this, binding = new C(null, from);
<ide> ... | 1 |
PHP | PHP | fix error when wrapping email message content | 4e6c83595102f7071fd00374708edf3838d3566b | <ide><path>src/Mailer/Message.php
<ide> protected function wrap(?string $message = null, int $wrapLength = self::LINE_LE
<ide> $tmpLine .= $char;
<ide> $tmpLineLength++;
<ide> if ($tmpLineLength === $wrapLength) {
<del> $nextChar = $line[$i + 1];
<add> ... | 2 |
PHP | PHP | remove unneeded use statements | 894ec17dace6ca1d5e57adaa24555c6b81c38729 | <ide><path>src/Database/Dialect/PostgresDialectTrait.php
<ide> namespace Cake\Database\Dialect;
<ide>
<ide> use Cake\Database\Expression\FunctionExpression;
<del>use Cake\Database\Query;
<ide> use Cake\Database\SqlDialectTrait;
<ide>
<ide> /**
<ide><path>src/Database/Driver/PDODriverTrait.php
<ide> */
<ide> namespac... | 13 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.