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 input type inference when type=>checkbox | 30e139412de537160f34a51e4482482abd908e4a | <ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php
<ide> public function testInputOverridingMagicSelectType() {
<ide> $this->assertTags($result, $expected);
<ide> }
<ide>
<add>/**
<add> * Test that inferred types do not override developer input
<add> *
<add> * @return void
<add> */
<add> public function t... | 2 |
Javascript | Javascript | move next-tick to misc/next-tick-breadth | 7e5cd08061dc17f38dec307ae8fc43e44b85a777 | <ide><path>benchmark/misc/next-tick-breadth.js
<add>
<add>var common = require('../common.js');
<add>var bench = common.createBenchmark(main, {
<add> millions: [2]
<add>});
<add>
<add>function main(conf) {
<add> var N = +conf.millions * 1e6;
<add> var n = 0;
<add>
<add> function cb() {
<add> n++;
<add> if (n ... | 2 |
Text | Text | suggest eager load in ci in the testing guide | e74012c7baf1e1efc4b48b5dc86989a9fe96c82b | <ide><path>guides/source/testing.md
<ide> class ChatRelayJobTest < ActiveJob::TestCase
<ide> end
<ide> ```
<ide>
<add>Testing Eager Loading
<add>---------------------
<add>
<add>Normally, applications do not eager load in the `development` or `test` environments to speed things up. But they do in the `production` envi... | 1 |
Ruby | Ruby | use ruby instead of mocha | a0ea528b612f9d8cdd14a5b76fdcf6719b7db56a | <ide><path>actioncable/test/channel/stream_test.rb
<ide> class StreamTest < ActionCable::TestCase
<ide> test "stream_for" do
<ide> run_in_eventmachine do
<ide> connection = TestConnection.new
<del> connection.pubsub.expects(:subscribe).with("action_cable:stream_tests:chat:Room#1-Campfire", kind... | 3 |
Mixed | Javascript | update viewconfig for scrollview | f6b8736b090185da936eb979621fac5d2a03e525 | <ide><path>Libraries/Components/ScrollView/ScrollViewViewConfig.js
<ide>
<ide> 'use strict';
<ide>
<del>import type {PartialViewConfig} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
<add>import type {PartialViewConfig} from '../../Renderer/shims/ReactNativeTypes';
<ide>
<ide> const ScrollViewViewCon... | 3 |
Javascript | Javascript | make notifications.clear public and emit event | c629a1aac48252b319ce50348939312b098b066e | <ide><path>src/notification-manager.js
<ide> class NotificationManager {
<ide> /*
<ide> Section: Managing Notifications
<ide> */
<del>
<add>
<add> // Public: Clear all the notifications.
<ide> clear () {
<ide> this.notifications = []
<add> this.emitter.emit('did-clear-notifications')
<ide> }
<ide> } | 1 |
Go | Go | fix incorrect permissions (staticcheck) | fdc1b22030f2a04931fb0005f34020109b0562b8 | <ide><path>integration-cli/docker_api_containers_test.go
<ide> func (s *DockerSuite) TestContainerAPICreateMountsBindRead(c *testing.T) {
<ide> tmpDir, err := ioutil.TempDir("", "test-mounts-api-bind")
<ide> assert.NilError(c, err)
<ide> defer os.RemoveAll(tmpDir)
<del> err = ioutil.WriteFile(filepath.Join(tmpDir, "... | 2 |
Text | Text | remove abi guide | fd6a7d4db185db6c0084b6a593d698568f0ffe9f | <ide><path>doc/guides/abi-stability.md
<del># ABI Stability
<del>
<del>## Introduction
<del>An Application Binary Interface (ABI) is a way for programs to call functions
<del>and use data structures from other compiled programs. It is the compiled version
<del>of an Application Programming Interface (API). In other wor... | 1 |
Ruby | Ruby | update tap readme template | 47fedf2951d9579ffc3245b577d1ce51b147169a | <ide><path>Library/Contributions/cmd/brew-tap-readme.rb
<ide> You can also install via URL:
<ide>
<ide> ```
<del>brew install https://raw.github.com/Homebrew/homebrew-#{name}/master/<formula>.rb
<add>brew install https://raw.githubusercontent.com/Homebrew/homebrew-#{name}/master/<formula>.rb
<ide> ```
<ide>
<ide> Doc... | 1 |
Javascript | Javascript | remove unnecessary clearcontainer call | ceee524a8f45b97c5fa9861aec3f36161495d2e1 | <ide><path>packages/react-reconciler/src/ReactFiberWorkLoop.new.js
<ide> import {
<ide> cancelTimeout,
<ide> noTimeout,
<ide> afterActiveInstanceBlur,
<del> clearContainer,
<ide> getCurrentEventPriority,
<ide> supportsMicrotasks,
<ide> errorHydratingContainer,
<ide> function recoverFromConcurrentError(root... | 2 |
Text | Text | fix typo in dynamic import with multiple modules | 3a9c419160c33613cadf3e44b0aba82767c44d3a | <ide><path>readme.md
<ide> import dynamic from 'next/dynamic'
<ide>
<ide> const HelloBundle = dynamic({
<ide> modules: (props) => {
<del> const components {
<add> const components = {
<ide> Hello1: import('../components/hello1'),
<ide> Hello2: import('../components/hello2')
<ide> } | 1 |
Javascript | Javascript | fix path when copying resource | 80bf68edbc3e8f58ed9cc0c9d0b43c1556e15e24 | <ide><path>script/lib/package-application.js
<ide> function copyNonASARResources(packagedAppPath, bundledResourcesPath) {
<ide> 'folder.ico'
<ide> ].forEach(file =>
<ide> fs.copySync(
<del> path.join('resources', 'win', file),
<add> path.join(CONFIG.repositoryRootPath, 'resources', 'win', ... | 1 |
Text | Text | fix image links and sizes | 0b36e28dd9a2aad94087707f7c34e23fbec93d91 | <ide><path>guide/english/tools/source-code-editors/index.md
<ide> title: Source Code Editors
<ide> ---
<ide>
<del>##Source Code Editors
<add>## Source Code Editors
<ide>
<ide> Source code editors are the programs that allow for code creation and
<ide> editing. Any text editor can be used to write code. But dedicate... | 1 |
Ruby | Ruby | move libgtextutils to homebrew-science | 5f58cd9e5370b59c5209988f3f4672226c47adec | <ide><path>Library/Homebrew/tap_migrations.rb
<ide> 'ipopt' => 'homebrew/science',
<ide> 'qfits' => 'homebrew/boneyard',
<ide> 'blackbox' => 'homebrew/boneyard',
<add> 'libgtextutils' -> 'homebrew/science',
<ide> } | 1 |
Mixed | Python | replace relu6 with relu layers | 468f080c98f06780c950e5a78c9eeeaf9fff002e | <ide><path>docs/templates/applications.md
<ide> MobileNet model, with weights pre-trained on ImageNet.
<ide>
<ide> Note that this model only supports the data format `'channels_last'` (height, width, channels).
<ide>
<del>To load a MobileNet model via `load_model`, import the custom object `relu6` and pass it to the ... | 3 |
PHP | PHP | add a test that the "blacklist" does something | ddcbcae7c06d0e779b910c9672c2b8ca45ec0c77 | <ide><path>tests/TestCase/View/Helper/FormHelperTest.php
<ide> public function testFormInputs() {
<ide> $this->assertTags($result, $expected);
<ide> }
<ide>
<add>/**
<add> * testFormInputsBlacklist
<add> *
<add> * @return void
<add> */
<add> public function testFormInputsBlacklist() {
<add> $this->Form->create($th... | 1 |
Javascript | Javascript | update @emails in react-displayname-test | 4dcc1161faaaa62201e51b60ca263ea51981a531 | <ide><path>vendor/fbtransform/transforms/__tests__/react-displayName-test.js
<ide> * LICENSE file in the root directory of this source tree. An additional grant
<ide> * of patent rights can be found in the PATENTS file in the same directory.
<ide> *
<del> * @emails jeffmo@fb.com
<add> * @emails react-core
<ide> */
... | 1 |
Javascript | Javascript | improve the code in test-process-hrtime | 2685464e34731d9ea14e97616309f4e7b7292551 | <ide><path>test/parallel/test-process-hrtime.js
<ide> require('../common');
<ide> const assert = require('assert');
<ide>
<ide> // the default behavior, return an Array "tuple" of numbers
<del>var tuple = process.hrtime();
<add>const tuple = process.hrtime();
<ide>
<ide> // validate the default behavior
<ide> validat... | 1 |
Javascript | Javascript | reduce offset module. close gh-1139 | cbe0c2ef90669c4c145227a2ddf41993583f5437 | <ide><path>src/offset.js
<ide> jQuery.fn.offset = function( options ) {
<ide> }
<ide>
<ide> var docElem, win,
<del> box = { top: 0, left: 0 },
<ide> elem = this[ 0 ],
<add> box = { top: 0, left: 0 },
<ide> doc = elem && elem.ownerDocument;
<ide>
<ide> if ( !doc ) {
<ide> jQuery.fn.offset = function( options ... | 1 |
Java | Java | remove variance on defer | 803f59bfa7a4c754dfd6b01287c0e00ad5e1f9b9 | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> public final static <T> Observable<T> concat(Observable<? extends T> t1, Observa
<ide> * @see <a href="https://github.com/Netflix/RxJava/wiki/Creating-Observables#defer">RxJava wiki: defer</a>
<ide> * @see <a href="http://msdn.microsoft.com/en-us/l... | 1 |
Javascript | Javascript | fill available params on deprecation notice | dcff8c833f7806c8dfdb1e79763646bfbb6702f5 | <ide><path>lib/optimize/CommonsChunkPlugin.js
<ide> function CommonsChunkPlugin(options) {
<ide> " names: string[]\n" +
<ide> " filename: string\n" +
<ide> " minChunks: number\n" +
<add> " chunks: string[]\n" +
<add> " children: boolean\n" +
<ide> " async: boolean\n" +
<ide> " mi... | 1 |
Ruby | Ruby | convert activemodel to 1.9 hash syntax | eebb9ddf9ba559a510975c486fe59a4edc9da97d | <ide><path>activemodel/lib/active_model/attribute_methods.rb
<ide> def instance_method_already_implemented?(method_name) #:nodoc:
<ide> # significantly (in our case our test suite finishes 10% faster with
<ide> # this cache).
<ide> def attribute_method_matchers_cache #:nodoc:
<del> @att... | 43 |
Ruby | Ruby | remove useless code | 446b6855dc88715315ce1ea15c25d1e821f8e598 | <ide><path>actionpack/lib/abstract_controller/rendering.rb
<ide> module Rendering
<ide> def render(*args, &block)
<ide> options = _normalize_render(*args, &block)
<ide> self.response_body = render_to_body(options)
<del> _process_format(rendered_format) if rendered_format
<ide> if options[:pla... | 1 |
PHP | PHP | implement implementedevents on all core components | da143545fd6d0a82536753442dff918c76dc629c | <ide><path>src/Controller/Component/AuthComponent.php
<ide> public function startup(Event $event) {
<ide> return $this->_unauthorized($controller);
<ide> }
<ide>
<add>/**
<add> * Events supported by this component.
<add> *
<add> * @return array
<add> */
<add> public function implementedEvents() {
<add> return [
<a... | 7 |
Text | Text | update license fix for github | 98d8967b0239602ca94c36973f0d6231141c84a0 | <ide><path>LICENSE.md
<add>Attribution-ShareAlike 4.0 International
<add>
<add>=======================================================================
<add>
<add>Creative Commons Corporation ("Creative Commons") is not a law firm and
<add>does not provide legal services or legal advice. Distribution of
<add>Creative Co... | 1 |
Ruby | Ruby | fix bug in configs_for | 2791b7c280ac65b3de5976141d79d2c1328b798e | <ide><path>activerecord/lib/active_record/database_configurations.rb
<ide> def initialize(configurations = {})
<ide> # * <tt>env_name:</tt> The environment name. Defaults to +nil+ which will collect
<ide> # configs for all environments.
<ide> # * <tt>spec_name:</tt> The specification name (i.e. primary, a... | 2 |
Javascript | Javascript | avoid duplicate jqlite wrappers | 2e3c6404f27bf41b8874078d751ec1987992c0e5 | <ide><path>src/ng/directive/ngRepeat.js
<ide> var ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) {
<ide>
<ide> if (getBlockStart(block) != nextNode) {
<ide> // existing item which got moved
<del> $animate.move(getBlockNodes(block.clone), null, jqLite(... | 1 |
Ruby | Ruby | hide gcc warnings in `config` output | a59c1ae6cb90644869862e6432ed8e82ac361ebe | <ide><path>Library/Homebrew/os/mac.rb
<ide> def default_compiler
<ide> def gcc_40_build_version
<ide> @gcc_40_build_version ||=
<ide> if (path = locate("gcc-4.0"))
<del> `#{path} --version`[/build (\d{4,})/, 1].to_i
<add> `#{path} --version 2>/dev/null`[/build (\d{4,})/, 1].to_i
<ide... | 1 |
Text | Text | fix the desc for image_alt change [ci skip] | 1ba8412607ae7190dc1c59718099e2f04372905d | <ide><path>guides/source/5_2_release_notes.md
<ide> Please refer to the [Changelog][action-view] for detailed changes.
<ide> ### Deprecations
<ide>
<ide> * Deprecated `image_alt` helper which used to add default alt text to
<del> the image text.
<add> the images generated by `image_tag`.
<ide> ([Pull Reque... | 1 |
PHP | PHP | add original parameters to route | 14b1b506d3cb14bf7aa70e8134f32416c9ef0f0f | <ide><path>src/Illuminate/Routing/Route.php
<ide> class Route
<ide> */
<ide> public $compiled;
<ide>
<add> /**
<add> * The matched parameters' original state.
<add> *
<add> * @var array
<add> */
<add> protected $originalParameters;
<add>
<ide> /**
<ide> * The router instance use... | 1 |
PHP | PHP | fix failing test | 9089bba84b519ca312b9100bb048c96fab59fb2b | <ide><path>lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
<ide> public function testLink() {
<ide> );
<ide> $this->assertTags($result, $expected);
<ide>
<del> Configure::write('Asset.timestamp', 'force');
<del>
<ide> $result = $this->Html->link($this->Html->image('../favicon.ico'), '#', array('escape' => fal... | 1 |
Javascript | Javascript | remove unused frustumboundingbox file | 74d0bca4fa8c78ea00b1132f3c5f03b89d3d1887 | <ide><path>examples/jsm/csm/FrustumBoundingBox.js
<del>/**
<del> * @author vHawk / https://github.com/vHawk/
<del> */
<del>
<del>export default class FrustumBoundingBox {
<del>
<del> constructor() {
<del>
<del> this.min = {
<del> x: 0,
<del> y: 0,
<del> z: 0
<del> };
<del> this.max = {
<del> x: 0,
<del> y:... | 1 |
Ruby | Ruby | allow deprecated options on new @ formulae | 1980af52deb5629c9f605017c6261a94f9e2b3e7 | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_options
<ide>
<ide> return unless @new_formula
<ide> return if formula.deprecated_options.empty?
<add> return if formula.name.include?("@")
<ide> problem "New formulae should not use `deprecated_option`."
<ide> end
<ide> | 1 |
Python | Python | add max_results param | da56ad5f684ebf99b892030c89748edbf5aada60 | <ide><path>libcloud/compute/drivers/gce.py
<ide> def paginated_request(self, *args, **kwargs):
<ide> """
<ide> more_results = True
<ide> items = []
<del> params = {"maxResults": 500}
<add> max_results = kwargs["max_results"] if "max_results" in kwargs else 500
<add> params =... | 1 |
Javascript | Javascript | fix typo in animationclip | a7a9edc24048078843e35b1d069a77961924a1f8 | <ide><path>src/animation/AnimationClip.js
<ide> AnimationClip.prototype = {
<ide>
<ide> var track = this.tracks[ i ];
<ide>
<del> duration = Math.max(
<del> duration, track.times[ track.times.length - 1 ] );
<add> duration = Math.max( duration, track.times[ track.times.length - 1 ] );
<ide>
<ide> }
<ide... | 1 |
Javascript | Javascript | add moment.isdate method | 9b68dacfbb61633de96fe34054cd3c4d4974c413 | <ide><path>moment.js
<ide> return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
<ide> };
<ide>
<add> moment.isDate = isDate;
<add>
<ide> /************************************
<ide> Moment Prototype
<ide> ************************************/
<ide><path>test/moment/is_date.js
<add>var... | 2 |
PHP | PHP | add test case | c2df1fb71aa06e0daa484561d21f5f34f80d670e | <ide><path>tests/TestCase/Datasource/PaginatorTest.php
<ide> public function testDefaultPaginateParams()
<ide> $this->Paginator->paginate($table, [], $settings);
<ide> }
<ide>
<add> /**
<add> * Tests that flat default pagination parameters work for multi order.
<add> *
<add> * @return void
<... | 1 |
Python | Python | handle odd scipy installations | d04bb02f393f0122e52b804bf548e0e18a0a2ecc | <ide><path>numpy/dual.py
<ide> have_scipy = 0
<ide> try:
<ide> import scipy
<del> if scipy.__version__ >= '0.4.4':
<add> if getattr(scipy, '__version__', None) >= '0.4.4':
<ide> have_scipy = 1
<ide> except ImportError:
<ide> pass | 1 |
Javascript | Javascript | replace frustumboundingbox use with box3 | f54797b4c33aaa51896ba57d9927370feb0eb84f | <ide><path>examples/jsm/csm/CSM.js
<ide> import {
<ide> BufferGeometry,
<ide> BufferAttribute,
<ide> Line,
<del> Matrix4
<add> Matrix4,
<add> Box3
<ide> } from '../../../build/three.module.js';
<ide> import Frustum from './Frustum.js';
<del>import FrustumBoundingBox from './FrustumBoundingBox.js';
<ide> import Shade... | 1 |
Javascript | Javascript | simplify d8-runner and add simple app | 9d31a6d0aca41f0c0cd901ee01948394078e90c8 | <ide><path>d8-app.js
<add>var Router = Ember.Router.extend({
<add> location: 'none',
<add> rootURL: '/'
<add>});
<add>Router.map(function() {
<add> this.route('my-route', { path: '/my-route' }, function () {
<add> });
<add>});
<add>Ember.TEMPLATES['index'] = Ember.HTMLBars.template({"id":null,"block":"{\"statements... | 2 |
Python | Python | add tests for non-iterable input.. | 4aac3ae8dd02d070b8641113e0c486e7213a5c9a | <ide><path>numpy/core/tests/test_shape_base.py
<ide> def test_3D_array(self):
<ide>
<ide>
<ide> class TestHstack(TestCase):
<add> def test_non_iterable(self):
<add> assert_raises(TypeError, hstack, 1)
<add>
<ide> def test_0D_array(self):
<ide> a = array(1)
<ide> b = array(2)
<ide> def te... | 2 |
Text | Text | add v3.24.5 to changelog.md | c166010bac915977bda513d389e80d37074e0da2 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<del>## v3.28.0 (August 9, 2021)
<add>### v3.28.0 (August 9, 2021)
<ide>
<ide> - [#19697](https://github.com/emberjs/ember.js/pull/19697) [BUGFIX] Ensure `deserializeQueryParam` is called for lazy routes
<ide> - [#19681](https://github.com/emberjs/ember.js/pull/19... | 1 |
Javascript | Javascript | allow missing callback for socket.connect | c6cbbf92630069f7f7c29e4dff2f622d48d741d5 | <ide><path>lib/net.js
<ide> function connect(self, address, port, addressType, localAddress, localPort) {
<ide> }
<ide>
<ide>
<del>Socket.prototype.connect = function(options, cb) {
<add>Socket.prototype.connect = function() {
<add> const args = new Array(arguments.length);
<add> for (var i = 0; i < arguments.lengt... | 2 |
Python | Python | azure key vault optional lookup | 3ff7e0743a1156efe1d6aaf7b8f82136d0bba08f | <ide><path>airflow/providers/microsoft/azure/secrets/azure_key_vault.py
<ide> class AzureKeyVaultBackend(BaseSecretsBackend, LoggingMixin):
<ide> if you provide ``{"variables_prefix": "airflow-variables"}`` and request variable key ``hello``.
<ide>
<ide> :param connections_prefix: Specifies the prefix of the s... | 2 |
Go | Go | return devmapper errors with additional text | 69640123826cf73d3d83182cb81e5de4ad0cc3a7 | <ide><path>daemon/graphdriver/devmapper/devmapper.go
<ide> func createPool(poolName string, dataFile, metadataFile *os.File) error {
<ide>
<ide> size, err := GetBlockDeviceSize(dataFile)
<ide> if err != nil {
<del> return fmt.Errorf("Can't get data size")
<add> return fmt.Errorf("Can't get data size %s", err)
<ide... | 1 |
Text | Text | fix broken link for childprocess | 760a6c80e5cd7c1b47f8788efd5f26902e5822a4 | <ide><path>doc/api/child_process.md
<ide> or [`child_process.fork()`][].
<ide> [`'error'`]: #child_process_event_error
<ide> [`'exit'`]: #child_process_event_exit
<ide> [`'message'`]: process.md#process_event_message
<del>[`ChildProcess`]: #child_process_child_process
<add>[`ChildProcess`]: #child_process_class_childpr... | 1 |
Text | Text | add link to abi guide | 157d507d64d471cfcd77ce0e10d80fb102ca065c | <ide><path>doc/api/n-api.md
<ide> the underlying JavaScript runtime (ex V8) and is maintained as part of
<ide> Node.js itself. This API will be Application Binary Interface (ABI) stable
<ide> across versions of Node.js. It is intended to insulate Addons from
<ide> changes in the underlying JavaScript engine and allow m... | 1 |
Python | Python | fix typos and update docs | 89132a6986781ae6519e3ee912336b50caa11a31 | <ide><path>examples/neural_turing_machine_copy.py
<ide> from keras.layers.core import TimeDistributedDense, Activation
<ide> from keras.layers.recurrent import LSTM
<ide> from keras.optimizers import Adam
<add>from keras.utils import generic_utils
<ide>
<ide> from keras.layers.ntm import NeuralTuringMachine as NTM
<id... | 1 |
Javascript | Javascript | fix json for grouped optional params | 6222e5b76d0f37fe8b5049bd23ca0271cab1821e | <ide><path>tools/doc/json.js
<ide> function parseSignature(text, sig) {
<ide> var params = text.match(paramExpr);
<ide> if (!params) return;
<ide> params = params[1];
<del> // the [ is irrelevant. ] indicates optionalness.
<del> params = params.replace(/\[/g, '');
<ide> params = params.split(/,/);
<add> var ... | 1 |
Python | Python | fix qa sample | ab229663b580e5e14a8a292d5a2ed372ca3b661c | <ide><path>src/transformers/utils/doc.py
<ide> def _prepare_output_docstrings(output_type, config_class, min_indent=None):
<ide>
<ide> ```python
<ide> >>> # target is "nice puppet"
<del> >>> target_start_index, target_end_index = torch.tensor([14]), torch.tensor([15])
<add> >>> target_start_index = torch... | 1 |
Python | Python | use name instead of city for location | 79cf4402834423e411778973639978acf120d4be | <ide><path>libcloud/compute/drivers/maxihost.py
<ide> def list_locations(self, available=True):
<ide> return locations
<ide>
<ide> def _to_location(self, data):
<del> name = data.get('location').get('city', '')
<add> name = data.get('name')
<ide> country = data.get('location').get... | 1 |
Ruby | Ruby | fix clear_all_connections! nomethoderror | 6e9675c6bf885c17c154bbcc697a8c9d49277e5b | <ide><path>actioncable/test/subscription_adapter/postgresql_test.rb
<ide> def setup
<ide> def teardown
<ide> super
<ide>
<del> ActiveRecord::Base.connection.clear_all_connections!
<add> ActiveRecord::Base.connection_handler.clear_all_connections!
<ide> end
<ide>
<ide> def cable_config | 1 |
Python | Python | add versionadded 1.4.0 for deprecated decorator | 759e989edf36a77648c2fdb970ba469e37ebc53a | <ide><path>numpy/testing/decorators.py
<ide> def deprecated(conditional=True):
<ide> Decorator, which, when applied to a function, causes SkipTest
<ide> to be raised when the skip_condition was True, and the function
<ide> to be called normally otherwise.
<add>
<add> Notes
<add> -----
<add... | 1 |
Ruby | Ruby | use present tense on examples | db4f0ac025a53017b35337f81e1096a58fdce1fb | <ide><path>actionpack/lib/abstract_controller/layouts.rb
<ide> module AbstractController
<ide> # layout nil
<ide> #
<ide> # In these examples:
<del> # * The InformationController will use the "bank_standard" layout, which is inherited from BankController
<del> # * The TellerController will follow convention... | 1 |
PHP | PHP | upgrade shell - option to specify extensions | a7d69701ba7bdcaa67799b170c52a15132e64168 | <ide><path>cake/console/shells/upgrade.php
<ide> protected function _filesRegexpUpdate($patterns) {
<ide> $this->_paths = array(App::pluginPath($this->params['plugin']));
<ide> }
<ide>
<del> $this->_findFiles();
<add> $extensions = 'php|ctp|thtml|inc|tpl';
<add> if (!empty($this->params['ext'])) {
<add> $ext... | 1 |
PHP | PHP | add missing docblock | 0064e25ddb006b0a287a6535679ce09d06e3f822 | <ide><path>src/Routing/Router.php
<ide> class Router
<ide> */
<ide> const UUID = '[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}';
<ide>
<add> /**
<add> * The route collection routes would be added to.
<add> *
<add> * @var \Cake\Routing\RouteCollection
<add> */... | 1 |
Python | Python | fix pickle dump in run_squad example | 257a35134a1bd378b16aa985ee76675289ff439c | <ide><path>examples/run_squad.py
<ide> def main():
<ide> if args.local_rank == -1 or torch.distributed.get_rank() == 0:
<ide> logger.info(" Saving train features into cached file %s", cached_train_features_file)
<ide> with open(cached_train_features_file, "wb") as writer:
<d... | 1 |
Python | Python | fix typo in docstrings | b04fc0d0b392368fcc4819fd38a6a09e9feb0da4 | <ide><path>keras/layers/multi_head_attention.py
<ide> class MultiHeadAttention(Layer):
<ide> indicates no attention. Broadcasting can happen for the missing batch
<ide> dimensions and the head dimension.
<ide> return_attention_scores: A boolean to indicate whether the output should
<del> be attenti... | 1 |
Java | Java | fix checkstyle nohttp violation | 1607f1db0bccce2d1a12102cc4a190356e8962e1 | <ide><path>spring-web/src/test/java/org/springframework/http/converter/feed/RssChannelHttpMessageConverterTests.java
<ide>
<ide> import com.rometools.rome.feed.rss.Channel;
<ide> import com.rometools.rome.feed.rss.Item;
<del>import org.junit.jupiter.api.BeforeEach;
<ide> import org.junit.jupiter.api.Test;
<ide>
<ide>... | 1 |
PHP | PHP | add declare statements | 166e6ec4362a7793572d9ebd4ede713afb25769a | <ide><path>src/Form/Form.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide><path>src/Form/Schema.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
... | 4 |
Ruby | Ruby | improve associated no reflection error | a4c4a0dc1382483303f1cb06236e8a71f12215a5 | <ide><path>activerecord/lib/active_record/relation/query_methods.rb
<ide> def not(opts, *rest)
<ide> # # WHERE "authors"."id" IS NOT NULL AND "comments"."id" IS NOT NULL
<ide> def associated(*associations)
<ide> associations.each do |association|
<del> reflection = @scope.klass._reflect_... | 2 |
Python | Python | change default value verbose=1 to verbose=0 | 21b80642d0d050bf40c66c2841955ffb48506b66 | <ide><path>keras/models.py
<ide> def test_on_batch(self, x, y,
<ide> return self.model.test_on_batch(x, y,
<ide> sample_weight=sample_weight)
<ide>
<del> def predict_proba(self, x, batch_size=32, verbose=1):
<add> def predict_proba(self, x, batch_size=32, verbose=0... | 1 |
Python | Python | add more information about using googleadshook | ef98edf4da2d9b74d5cf5b21e81577b3151edb79 | <ide><path>airflow/providers/google/ads/hooks/ads.py
<ide>
<ide> class GoogleAdsHook(BaseHook):
<ide> """
<del> Hook for the Google Ads API
<add> Hook for the Google Ads API.
<add>
<add> This hook requires two connections:
<add>
<add> - gcp_conn_id - provides service account details (like any other... | 1 |
PHP | PHP | add typehints to console classes | 2e3c5c441c3a280a679ec592c7037e636305ca50 | <ide><path>src/Command/HelpCommand.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide> class HelpCommand extends Command implements CommandCollectionAware... | 45 |
Text | Text | fix minor doc grammar issues | f50d0d7fdb11ce36715adfbf857e4668c0fd8f75 | <ide><path>docs/userguide/networking/default_network/container-communication.md
<ide> automatically when you install Docker.
<ide>
<ide> Whether a container can talk to the world is governed by two factors. The first
<ide> factor is whether the host machine is forwarding its IP packets. The second is
<del>whether the ... | 1 |
Javascript | Javascript | log all parameters in ie 9, not just the first two | b277e3ead7296ae27106fe7ac37696635c6bfda1 | <ide><path>src/ng/log.js
<ide> function $LogProvider() {
<ide>
<ide> function consoleLog(type) {
<ide> var console = $window.console || {},
<del> logFn = console[type] || console.log || noop,
<del> hasApply = false;
<add> logFn = console[type] || console.log || noop;
<ide>
<del> ... | 2 |
Mixed | Javascript | support abortsignal in constructor | 040a27ae5f586305ee52d188e3654563f28e99ce | <ide><path>doc/api/stream.md
<ide> method.
<ide> #### `new stream.Writable([options])`
<ide> <!-- YAML
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/36431
<add> description: support passing in an AbortSignal.
<ide> - version: v14.0.0
<ide> pr-url: https://githu... | 8 |
Javascript | Javascript | transform empty responses into empty blobs | 9a8c06b502c774f7a0bff1bdc064fbfe16ca75be | <ide><path>Libraries/Blob/FileReader.js
<ide> class FileReader extends (EventTarget(...READER_EVENTS): any) {
<ide> throw new Error('FileReader.readAsArrayBuffer is not implemented');
<ide> }
<ide>
<del> readAsDataURL(blob: Blob) {
<add> readAsDataURL(blob: ?Blob) {
<ide> this._aborted = false;
<ide>
<add... | 2 |
Python | Python | add missing license headers | 81852763cf7f6304ff05493bf861040ccfc406db | <ide><path>libcloud/test/common/test_aliyun.py
<add># Licensed to the Apache Software Foundation (ASF) under one or more
<add># contributor license agreements. See the NOTICE file distributed with
<add># this work for additional information regarding copyright ownership.
<add># The ASF licenses this file to You under ... | 4 |
Javascript | Javascript | name all anonymous watch functions in angular | ca30fce28ca13284bfa1c926e810ed75cdcde499 | <ide><path>docs/src/templates/js/docs.js
<ide> docsApp.controller.DocsController = function($scope, $location, $window, $cookie
<ide> tutorial: 'Tutorial',
<ide> cookbook: 'Examples'
<ide> };
<del> $scope.$watch(function() {return $location.path(); }, function(path) {
<add> $scope.$watch(function docsPathWa... | 17 |
Python | Python | add aliases for commonly used `arraylike` objects | 864848ebc58d4eb3a5e79ce1ce3c0f07bf77e8f3 | <ide><path>numpy/typing/__init__.py
<ide> class _8Bit(_16Bit): ... # type: ignore[misc]
<ide> _ScalarLike,
<ide> _VoidLike,
<ide> )
<del>from ._array_like import _SupportsArray, ArrayLike
<ide> from ._shape import _Shape, _ShapeLike
<ide> from ._dtype_like import _SupportsDType, _VoidDTypeLike, DTypeLike
<add>... | 2 |
Text | Text | fix minor typos in the changelog | 4eeeca405ecff7fc26f27f43aa37bc3a31da0942 | <ide><path>CHANGELOG.md
<ide> languages:
<ide> * [2097](https://github.com/moment/moment/issues/2097) add ar-tn locale
<ide>
<ide> deprecations:
<del>* [2074](https://github.com/moment/moment/issues/2074) Implement `moment.fn.utcOffset`, deprecate `momen.fn.zone`
<add>* [2074](https://github.com/moment/moment/issues/2... | 1 |
Python | Python | fix deprecation for configuration.getsection | f7fe363255801f7342b8a92e119b7e75e26ab5cb | <ide><path>airflow/configuration.py
<ide> def getsection(*args, **kwargs): # noqa: D103
<ide> DeprecationWarning,
<ide> stacklevel=2,
<ide> )
<del> return conf.getint(*args, **kwargs)
<add> return conf.getsection(*args, **kwargs)
<ide>
<ide>
<ide> def has_option(*args, **kwargs): # noqa: D... | 1 |
Javascript | Javascript | use comment nodes for empty components | 358140679cbda686f8c3a7d04887342188572cb0 | <ide><path>src/renderers/dom/client/ReactDOMComponentTree.js
<ide> function precacheChildNodes(inst, node) {
<ide> // We assume the child nodes are in the same order as the child instances.
<ide> for (; childNode !== null; childNode = childNode.nextSibling) {
<ide> if (childNode.nodeType === 1 &&
<del> ... | 9 |
PHP | PHP | fix typo causing notice errors | 4b3d8612e9928701b0be5808cdbc504cc0b3588b | <ide><path>lib/Cake/Core/App.php
<ide> protected static function _mapped($name, $plugin = null) {
<ide> if ($plugin) {
<ide> $key = 'plugin.' . $name;
<ide> }
<del> return isset(self::$_map[$key]) ? self::$_map[$name] : false;
<add> return isset(self::$_map[$key]) ? self::$_map[$key] : false;
<ide> }
<ide>
<... | 1 |
Python | Python | fix cache for gpt-neo-x | fdb120805c93d101efc03ec716e9153562054db7 | <ide><path>src/transformers/modeling_utils.py
<ide> def _find_mismatched_keys(
<ide>
<ide> if offload_state_dict:
<ide> # Load back temporarily offloaded state dict
<del> load_offloaded_weights(model, state_dict_index, state_dict_folder)
<add> load_offloaded_we... | 3 |
Text | Text | capitalize "effect" in the title | e30deb67e1428e1d8c754cb927fca4a1a746f394 | <ide><path>guide/english/3d/blender/iceberg-scene/index.md
<del>---
<del>title: Blender Water Shader effect
<del>---
<del>
<del># This is a simple scene to render polar waters.
<del>
<del>**_To make the cube look like water, mix the following shaders:_**
<del>
<del>1. Glass BSDF Shader : Roughness = 0.850
<del> ... | 1 |
Text | Text | fix apache directives [ci skip] | 02ef0313419f50ac09ec782cf042ed7f43d129c7 | <ide><path>guides/source/asset_pipeline.md
<ide> For Apache:
<ide> # `mod_expires` to be enabled.
<ide> <Location /assets/>
<ide> # Use of ETag is discouraged when Last-Modified is present
<del> Header unset ETag FileETag None
<add> Header unset ETag
<add> FileETag None
<ide> # RFC says only cache for 1 year
<d... | 1 |
PHP | PHP | use symfonystyle in command | fde58c362d2f736040d3601920c711a9ae1555a7 | <ide><path>src/Illuminate/Console/Command.php
<ide> use Symfony\Component\Console\Input\ArrayInput;
<ide> use Symfony\Component\Console\Output\NullOutput;
<ide> use Symfony\Component\Console\Question\Question;
<add>use Symfony\Component\Console\Style\SymfonyStyle;
<ide> use Symfony\Component\Console\Input\InputInterfac... | 1 |
Ruby | Ruby | add tasks to automatize changelog headers | d52baa851480ca79d60333187cd0dab9338b7c5f | <ide><path>tasks/release.rb
<ide> end
<ide>
<ide> namespace :changelog do
<add> task :header do
<add> (FRAMEWORKS + ['guides']).each do |fw|
<add> require 'date'
<add> fname = File.join fw, 'CHANGELOG.md'
<add>
<add> header = "## Rails #{version} (#{Date.today.strftime('%B %d, %Y')}) ##\n\n* No ch... | 1 |
Javascript | Javascript | remove last uses of {' '} in docs and tests | 09333a3819a8e1e6606536f9b572d9042a9426cb | <ide><path>src/browser/ui/dom/components/__tests__/ReactDOMInput-test.js
<ide> describe('ReactDOMInput', function() {
<ide> render: function() {
<ide> return (
<ide> <div>
<del> <input ref="a" type="radio" name="fruit" checked={true} />A{' '}
<del> <input ref="b" type="radi... | 2 |
Text | Text | add changelog entry for on master too | f8ca941f4a0a5a6115a05d06646a6411ebe5aa44 | <ide><path>actionpack/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Fix input name when `:multiple => true` and `:index` are set.
<add>
<add> Before:
<add>
<add> check_box("post", "comment_ids", { :multiple => true, :index => "foo" }, 1)
<add> #=> <input name=\"post[foo][comment_ids... | 1 |
PHP | PHP | unify database chunk methods, and add each methods | 55259e5178a61dc3393df33a6dd4d8bcbf2c3e59 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function value($column)
<ide> *
<ide> * @param int $count
<ide> * @param callable $callback
<del> * @return void
<add> * @return bool
<ide> */
<ide> public function chunk($count, callable $callback)
<ide> {
<ide... | 3 |
Text | Text | correct 404 link for object detection tutorial | acbd8837870e0ed87d015a76096d30a6e69135e4 | <ide><path>research/object_detection/g3doc/running_notebook.md
<ide> jupyter notebook
<ide> ```
<ide>
<ide> The notebook should open in your favorite web browser. Click the
<del>[`object_detection_tutorial.ipynb`](../object_detection_tutorial.ipynb) link to
<add>[`object_detection_tutorial.ipynb`](../colab_tutorials/o... | 1 |
Python | Python | add default name and lang to meta | 74c2c6a58cabdb31b77df3b24f6068355d9738bb | <ide><path>spacy/cli/train.py
<ide> def train(cmd, lang, output_dir, train_data, dev_data, n_iter=10, n_sents=0,
<ide> if not isinstance(meta, dict):
<ide> prints("Expected dict but got: {}".format(type(meta)),
<ide> title="Not a valid meta.json format", exits=1)
<add> meta.setdefault('lan... | 1 |
PHP | PHP | increase coverage by covering another failure case | 15638b1a2aa3e8d6ea1fdebac60baef6b63fa20b | <ide><path>tests/TestCase/ORM/Association/BelongsToManyTest.php
<ide> public function emptyProvider()
<ide> ];
<ide> }
<ide>
<add> /**
<add> * Test that saveAssociated() fails on non-empty, non-iterable value
<add> *
<add> * @expectedException InvalidArgumentException
<add> * @expectedEx... | 1 |
Python | Python | persist tags params in pagination | f878ec6c599a089a6d7516b7a66eed693f0c9037 | <ide><path>airflow/www/utils.py
<ide> def should_hide_value_for_key(key_name):
<ide>
<ide> def get_params(**kwargs):
<ide> """Return URL-encoded params"""
<del> return urlencode({d: v for d, v in kwargs.items() if v is not None})
<add> return urlencode({d: v for d, v in kwargs.items() if v is not None}, True... | 3 |
Text | Text | add inspiration & thanks | df17224af6859c34515e47993b897d4f9d41062f | <ide><path>README.md
<ide> function (state, action) {
<ide> ```
<ide>
<ide> [Read more](https://github.com/sebmarkbage/ecmascript-rest-spread) about the spread properties ES7 proposal.
<add>
<add>## Inspiration and Thanks
<add>
<add>* [Webpack Hot Module Replacement](https://github.com/webpack/docs/wiki/hot-module-rep... | 1 |
Javascript | Javascript | add rfc232 variants | 81568674fdbfdf26221708b94c08340f97279c9a | <ide><path>blueprints/instance-initializer-test/qunit-rfc-232-files/tests/unit/instance-initializers/__name__-test.js
<add>import Application from '@ember/application';
<add>import { run } from '@ember/runloop';
<add>
<add>import { initialize } from '<%= dasherizedModulePrefix %>/initializers/<%= dasherizedModuleName %... | 3 |
Mixed | Ruby | take hash with options inside array in #url_for | d04c4fac3bb6f75ba15704dd03faeb5f2d7033f7 | <ide><path>actionpack/CHANGELOG.md
<add>* Take a hash with options inside array in #url_for
<add>
<add> Example:
<add>
<add> url_for [:new, :admin, :post, { param: 'value' }]
<add> # => http://example.com/admin/posts/new?params=value
<add>
<add> *Andrey Ognevsky*
<add>
<ide> * Add `session#fetch... | 4 |
Python | Python | fix index error, to support non-square kernels | d4a6670ade6ebd007b7974f85d70c4c879ba99d6 | <ide><path>research/slim/nets/mobilenet_v1.py
<ide> def _fixed_padding(inputs, kernel_size, rate=1):
<ide> input, either intact (if kernel_size == 1) or padded (if kernel_size > 1).
<ide> """
<ide> kernel_size_effective = [kernel_size[0] + (kernel_size[0] - 1) * (rate - 1),
<del> ker... | 1 |
Python | Python | fix some fatal pyflakes issues | f6ae27e631e6f2408441f92164b2f0be66dd1a6e | <ide><path>libcloud/common/base.py
<ide> def makefile(self, *args, **kwargs):
<ide>
<ide> return cls(b(self.s))
<ide> rr = r
<del> original_data = body
<ide> headers = lowercase_keys(dict(r.getheaders()))
<ide>
<ide> encoding = headers.get('content-encoding', None)
<ide>... | 4 |
Javascript | Javascript | fix language type | 816350374b203f24d47b87b98285a243c810a603 | <ide><path>packages/ember-handlebars/lib/controls/checkbox.js
<ide> var set = Ember.set, get = Ember.get;
<ide> You can add a `label` tag yourself in the template where the `Ember.Checkbox`
<ide> is being used.
<ide>
<del> ```html
<add> ```handlebars
<ide> <label>
<ide> {{view Ember.Checkbox classNames="ap... | 1 |
Python | Python | remove is_base_form from french lemmatizer | 923affd091dac4c1a7e11168f7c8f1f05dcc224e | <ide><path>spacy/lang/fr/lemmatizer.py
<ide> def __call__(self, string, univ_pos, morphology=None):
<ide> univ_pos = "sconj"
<ide> else:
<ide> return [self.lookup(string)]
<del> # See Issue #435 for example of where this logic is requied.
<del> if self.is_base_form(univ_pos... | 1 |
Text | Text | correct the file name to preprocessor | ade9645ae8d18e335cf7221b79d830acd7b6768a | <ide><path>docs/Testing.md
<ide> Note: In order to run your own tests, you will have to first follow the Getting
<ide> },
<ide> ...
<ide> "jest": {
<del> "scriptPreprocessor": "node_modules/react-native/jestSupport/scriptPreprocess.js",
<add> "scriptPreprocessor": "node_modules/react-native/jestSupport/preprocessor.j... | 1 |
Text | Text | remove repl.it links spanish challenge articles | b5e5f116745d6a018c6882a4f8ea92d02ede4e72 | <ide><path>guide/spanish/certifications/coding-interview-prep/algorithms/find-the-symmetric-difference/index.md
<ide> A = {1, 2, 3}
<ide>
<ide> ```](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce)
<ide>
<del> [ — Ruthlessly simple bindings to keep React Router and Redux in sync
<add>* [redial](https:/... | 1 |
PHP | PHP | add support for assoc keys in cli table helper | dc7ebfd1151689186098fe00ef169eab1950152b | <ide><path>src/Shell/Helper/TableHelper.php
<ide> protected function _calculateWidths($rows)
<ide> {
<ide> $widths = [];
<ide> foreach ($rows as $line) {
<del> for ($i = 0, $len = count($line); $i < $len; $i++) {
<del> $columnLength = mb_strlen($line[$i]);
<del> ... | 1 |
PHP | PHP | allow only classname strings for type map | 913a6d0a47a0bdd43b940ee2fb5f49da629f09f1 | <ide><path>src/Database/Type.php
<ide> class Type
<ide> * identifier is used as key and a complete namespaced class name as value
<ide> * representing the class that will do actual type conversions.
<ide> *
<del> * @var string[]|\Cake\Database\TypeInterface[]
<add> * @var string[]
<ide> */
<... | 2 |
Javascript | Javascript | use existing handlers instead of duplicated code | a892d9a0c1facba70753398a41d9dbd74ba83396 | <ide><path>lib/internal/url.js
<ide> function onParseProtocolComplete(flags, protocol, username, password,
<ide> ctx.port = port;
<ide> }
<ide>
<del>function onParseHostComplete(flags, protocol, username, password,
<del> host, port, path, query, fragment) {
<del> const ctx = this[context... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.