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 |
|---|---|---|---|---|---|
Ruby | Ruby | return self from #distinct so it's chainable | acdd8e4f08e230926a7174903cf905e8a415a1d4 | <ide><path>lib/arel/select_manager.rb
<ide> def distinct(value = true)
<ide> else
<ide> @ctx.set_quantifier = nil
<ide> end
<add> self
<ide> end
<ide>
<ide> def order *expr
<ide><path>test/test_select_manager.rb
<ide> def test_manager_stores_bind_values
<ide> manager.distinct(f... | 2 |
Ruby | Ruby | remove unnecessary puts | ceca0c34fa99e2e7a7c697cdd8b6284de7fa9cf4 | <ide><path>railties/test/railties/engine_test.rb
<ide> def new
<ide>
<ide> env = Rack::MockRequest.env_for("/bukkits/posts/new")
<ide> response = AppTemplate::Application.call(env)
<del> p rack_body(response[2])
<ide> assert rack_body(response[2]) =~ /name="post\[title\]"/
<ide> end
<ide> | 1 |
Javascript | Javascript | use fixture files | 32482baeaa617ff7feb90aec5147782bbff15bb3 | <ide><path>node-tests/blueprints/component-test.js
<ide> var chai = require('ember-cli-blueprint-test-helpers/chai');
<ide> var expect = chai.expect;
<ide>
<ide> var generateFakePackageManifest = require('../helpers/generate-fake-package-manifest');
<add>var fixture = require('../helpers/file');
<ide>
<ide> describe(... | 7 |
PHP | PHP | apply suggestions from code review | 15c2b20b5052a2f5978407d37600533913139c26 | <ide><path>tests/TestCase/Controller/ControllerTest.php
<ide> public function testRedirectBeforeRedirectListenerReturnResponse(): void
<ide> public function testReferer(): void
<ide> {
<ide> $request = new ServerRequest([
<del> 'environment' => ['HTTP_REFERER' => 'http://localhost/posts/index... | 1 |
Javascript | Javascript | update proptypes for reactelement & reactnode | 770b579aa2f517f2a323234ccaa1445a0b7ca9cb | <ide><path>src/core/ReactPropTypes.js
<ide> var ReactElement = require('ReactElement');
<ide> var ReactPropTypeLocationNames = require('ReactPropTypeLocationNames');
<ide>
<add>var deprecated = require('deprecated');
<ide> var emptyFunction = require('emptyFunction');
<ide>
<ide> /**
<ide> var emptyFunction = require... | 3 |
Javascript | Javascript | fix rendersubtreeintocontainer to update context | 25f9f4563edb0b0daa4687da0c75b3ae010e9816 | <ide><path>src/addons/__tests__/renderSubtreeIntoContainer-test.js
<ide> 'use strict';
<ide>
<ide> var React = require('React');
<add>var ReactDOM = require('ReactDOM');
<ide> var ReactTestUtils = require('ReactTestUtils');
<ide> var renderSubtreeIntoContainer = require('renderSubtreeIntoContainer');
<ide>
<ide> desc... | 4 |
Python | Python | fix typo in documentation | 7b0a05f5013f03b4897e3aac462352fa6b0e26c6 | <ide><path>keras/layers/preprocessing/text_vectorization.py
<ide> def vocabulary_size(self):
<ide> """Gets the current size of the layer's vocabulary.
<ide>
<ide> Returns:
<del> The integer size of the voculary, including optional mask and oov indices.
<add> The integer size of the vocabulary, includ... | 1 |
Go | Go | remove unused constants and fields (unused) | d9483062555ec7021da786c3af5dc9eedaf8f8b3 | <ide><path>integration/container/create_test.go
<ide> func TestCreateWithCustomReadonlyPaths(t *testing.T) {
<ide> ctx := context.Background()
<ide>
<ide> testCases := []struct {
<del> doc string
<ide> readonlyPaths []string
<ide> expected []string
<ide> }{
<ide><path>integration/image/remove_un... | 3 |
Javascript | Javascript | modify tests for russian locale | c2d97c5a78023d8abb357b64fc87acd90c37c5bd | <ide><path>test/locale/ru.js
<ide> exports['locale:ru'] = {
<ide> },
<ide>
<ide> 'calendar last week' : function (test) {
<del> var i, m;
<add> var i, m, now;
<ide>
<del> function makeFormat(d) {
<add> function makeFormatLast(d) {
<ide> switch (d.day()) {
<ide> ... | 1 |
Text | Text | remove tip on parse_query | b4f4de050010aef2982c46b1b878a6deb1318429 | <ide><path>guides/source/form_helpers.md
<ide> action for a Person model, `params[:person]` would usually be a hash of all the
<ide>
<ide> Fundamentally HTML forms don't know about any sort of structured data, all they generate is name-value pairs, where pairs are just plain strings. The arrays and hashes you see in y... | 1 |
Javascript | Javascript | update lowlevel renderer | e3ccd9682678d1423ad1bba4120593db644f6f9d | <ide><path>src/renderers/webgl/renderer.js
<ide> THREE.WebGLRenderer2.LowLevelRenderer = function(parameters){
<ide> _clearColor = parameters.clearColor !== undefined ? new THREE.Color( parameters.clearColor ) : new THREE.Color( 0x000000 ),
<ide> _clearAlpha = parameters.clearAlpha !== undefined ? parameters.clearAlp... | 1 |
PHP | PHP | remove overloadable from helper class | f5fa56ff3cbf5ec396c8a46358186347484a209b | <ide><path>cake/libs/view/helper.php
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide> */
<ide>
<del>/**
<del> * Included libs
<del> */
<del>App::import('Core', 'Overloadable');
<del>
<ide> /**
<ide> * Abstract base class for all other Helpers in CakePHP.
<ide> * Provide... | 1 |
PHP | PHP | handle dynamic channels | 30f9a32bde4ac95c59fd028548872205d8ba894c | <ide><path>src/Illuminate/Notifications/Channels/Notification.php
<ide> public function action($text, $url)
<ide> */
<ide> public function via($channels)
<ide> {
<del> $this->via = (array) $channels;
<add> $this->via = is_string($channels) ? func_get_args() : (array) $channels;
<ide>
<ide> ... | 1 |
Text | Text | add text to describe how activities interact | fce3fefc09ee7889961e6f01c704f6027c1667fd | <ide><path>guide/english/android-development/core-components/index.md
<ide> Core components are the essential elements contained in an Android app. Each of
<ide> - Content providers
<ide>
<ide> ### [Activities](https://developer.android.com/guide/components/activities/)
<del>An _activity_ is a component that has a use... | 1 |
Python | Python | fix bugs from porting master to develop | fc6e34c3a13b93caaed7b2c0cf60dcc0df59c0f4 | <ide><path>bin/wiki_entity_linking/wikidata_train_entity_linker.py
<ide> def main(
<ide> kb=kb,
<ide> labels_discard=labels_discard,
<ide> )
<del> docs, golds = zip(*train_batch)
<ide> try:
<ide> ... | 2 |
Javascript | Javascript | materialize typed array in one place | d44bf272ad1ffb9adfd21de760645840ffdaec86 | <ide><path>src/backend/renderer.js
<ide> export function attach(
<ide> }
<ide>
<ide> let pendingOperations: Array<number> = [];
<del> let pendingOperationsQueue: Array<Array<number>> | null = [];
<add> let pendingOperationsQueue: Array<Uint32Array> | null = [];
<ide>
<ide> let nextOperation: Array<number> = [... | 1 |
Mixed | Javascript | add missing deprecation code | ff5a1cf5a8d61fd16d5190e7117e97e49d7edcb2 | <ide><path>doc/api/deprecations.md
<ide> Type: Documentation-only (supports [`--pending-deprecation`][])
<ide> The `process._tickCallback` property was never documented as
<ide> an officially supported API.
<ide>
<del><a id="DEP0XXX"></a>
<del>### DEP0XXX: `WriteStream.open()` and `ReadStream.open()` are internal
<add... | 4 |
Java | Java | fix broken tostringvisitortests | 9b1c8a3a5cd72a1a5301c6966d124783f7e17ffb | <ide><path>spring-webflux/src/test/java/org/springframework/web/reactive/function/server/ToStringVisitorTests.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2022 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Licen... | 2 |
Go | Go | fix regresion on first boot | 8da449055fd2fb60e45391c8482865dca3d0232f | <ide><path>daemon/start.go
<ide> func (daemon *Daemon) containerStart(container *Container) (err error) {
<ide> mounts = append(mounts, container.ipcMounts()...)
<ide>
<ide> container.command.Mounts = mounts
<del> return daemon.waitForStart(container)
<add> if err := daemon.waitForStart(container); err != nil {
<add... | 1 |
Text | Text | improve metadata for http.request | fadafef4f4e673b71cb33078a588daddf8deed3a | <ide><path>doc/api/http.md
<ide> added: v0.3.6
<ide> changes:
<ide> - version: v10.9.0
<ide> pr-url: https://github.com/nodejs/node/pull/21616
<del> description: allow both url and options to be passed to `http.get()`
<add> description: The `url` parameter can now be passed along with a separate
<add> ... | 2 |
Text | Text | update license name | 8f82e89d0b26108e32a10b5d95b67e5e21ff0df6 | <ide><path>README.md
<ide> Homebrew's current maintainers are [Misty De Meo](https://github.com/mistydemeo)
<ide> Former maintainers with significant contributions include [Dominyk Tiller](https://github.com/DomT4), [Brett Koonce](https://github.com/asparagui), [Jack Nagel](https://github.com/jacknagel), [Adam Vandenbe... | 1 |
Text | Text | update the version with hooks proposal in readme | e489c3f9c114e3c30ccecc32743c9b6255fea058 | <ide><path>packages/eslint-plugin-react-hooks/README.md
<ide> It is a part of the [Hooks proposal](https://reactjs.org/docs/hooks-intro.html)
<ide>
<ide> ## Experimental Status
<ide>
<del>This is an experimental release and is intended to be used for testing the Hooks proposal with React 16.7 alpha. The exact heurist... | 1 |
Text | Text | fix the link for plugin documentation | 701021ebd8f7bba22347be71f58563506fcc7b74 | <ide><path>experimental/plugins_graphdriver.md
<ide> being started.
<ide>
<ide> # Write a graph driver plugin
<ide>
<del>See the [plugin documentation](/docs/extend/plugins.md) for detailed information
<add>See the [plugin documentation](/docs/extend/index.md) for detailed information
<ide> on the underlying plugin p... | 1 |
Mixed | Text | cleanup the whitelisting references after | ca62dfeede0c5352baf6c65688c71b9cd909c831 | <ide><path>actionpack/CHANGELOG.md
<ide> * Introduce ActionDispatch::HostAuthorization
<ide>
<ide> This is a new middleware that guards against DNS rebinding attacks by
<del> white-listing the allowed hosts a request can be made to.
<add> explicitly permitting the hosts a request can be made to.
<ide>
<id... | 6 |
Mixed | Python | remove exception detail from doctest | aa0ace4df7dfff3a70685466e96c51dd264e5083 | <ide><path>DIRECTORY.md
<ide> * [Binary Shifts](https://github.com/TheAlgorithms/Python/blob/master/bit_manipulation/binary_shifts.py)
<ide> * [Binary Twos Complement](https://github.com/TheAlgorithms/Python/blob/master/bit_manipulation/binary_twos_complement.py)
<ide> * [Binary Xor Operator](https://github.com/T... | 2 |
Ruby | Ruby | push rails app testing up | 9b15828b5c347395b42066a588c88e5eb4e72279 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def mount(app, options = nil)
<ide>
<ide> raise "A rack application must be specified" unless path
<ide>
<del> options[:as] ||= app_name(app)
<add> rails_app = rails_app? app
<add>
<add> if rails_app
<add> ... | 1 |
PHP | PHP | add wherepivotin test | e9831b3b683c2135834ba5650f81ac531af7a244 | <ide><path>tests/Integration/Database/EloquentBelongsToManyTest.php
<ide> public function test_where_pivot_on_string()
<ide> $post = Post::create(['title' => Str::random()]);
<ide>
<ide> DB::table('posts_tags')->insert([
<del> ['post_id' => $post->id, 'tag_id' => $tag->id, 'flag' => 'empty']... | 1 |
Java | Java | fix broken test missed in merge | c263cbfbe486d7712b9e46b80ed151c1eda98c74 | <ide><path>integration-tests/src/test/java/org/springframework/context/annotation/jsr330/ClassPathBeanDefinitionScannerJsr330ScopeIntegrationTests.java
<ide> else if (annDef.getMetadata().getMetaAnnotationTypes(type).contains(jakarta.inje
<ide> metadata.setScopedProxyMode(scopedProxyMode);
<ide> break;
<ide... | 1 |
Java | Java | consolidate annotation processing constants | 2bc3527f76247a3b8fd81ba5373b4b155e3a48b8 | <ide><path>org.springframework.context/src/main/java/org/springframework/cache/config/AnnotationDrivenCacheBeanDefinitionParser.java
<ide>
<ide> package org.springframework.cache.config;
<ide>
<add>import static org.springframework.context.annotation.AnnotationConfigUtils.CACHE_ADVISOR_BEAN_NAME;
<add>import static o... | 5 |
PHP | PHP | fix return type of pool | be961c33d08d3892c797b6bc883c8c7a1e561a3f | <ide><path>src/Illuminate/Http/Client/Factory.php
<ide> * @method \Illuminate\Http\Client\PendingRequest dump()
<ide> * @method \Illuminate\Http\Client\PendingRequest dd()
<ide> * @method \Illuminate\Http\Client\PendingRequest async()
<del> * @method \Illuminate\Http\Client\Pool pool(callable $callback)
<add> * @met... | 2 |
Text | Text | add 2 new commands and some word edits | 97616fe6fa7c43440332e6fca11672698266fd96 | <ide><path>guide/english/terminal-commandline/macos-terminal/index.md
<ide> title: Mac OS Terminal
<ide> Most of the time users interact through a Graphical User Interface to interact with the computer. You use the mouse to point and click to open, move, or create new files or open applications. But, you can also use t... | 1 |
Text | Text | remove unused link definition | ef8acccfde4f4916b62deb8f15a5930a2bdac546 | <ide><path>doc/api/fs.md
<ide> The following constants are meant for use with the [`fs.Stats`][] object's
<ide> [`kqueue`]: https://www.freebsd.org/cgi/man.cgi?kqueue
<ide> [`net.Socket`]: net.html#net_class_net_socket
<ide> [`stat()`]: fs.html#fs_fs_stat_path_callback
<del>[`util.inspect(stats)`]: util.html#util_util_... | 1 |
Ruby | Ruby | add closederror message to the initializer | 90ecad0bc944fc3adb847c0c754d8f0dc2bed4b5 | <ide><path>actionpack/lib/action_dispatch.rb
<ide> module ActionDispatch
<ide> autoload :Static
<ide> end
<ide>
<add> autoload :ClosedError, 'action_dispatch/middleware/closed_error'
<ide> autoload :MiddlewareStack, 'action_dispatch/middleware/stack'
<ide> autoload :Routing
<ide>
<ide><path>actionpack/lib/... | 3 |
Go | Go | fix ci failure due to conflicting merges | 3528fd9830cae0c3205dec45c6751a178fb08070 | <ide><path>libnetwork/drivers/bridge/bridge_test.go
<ide> func TestCreateFullOptions(t *testing.T) {
<ide> }
<ide>
<ide> func TestCreateNoConfig(t *testing.T) {
<del> defer osl.SetupTestOSContext(t)()
<add> defer testutils.SetupTestOSContext(t)()
<ide> d := newDriver()
<ide>
<ide> netconfig := &networkConfiguration... | 1 |
Python | Python | avoid pymodulelevel, deprecated in sphinx 4 | e5158d9ceb22ad072da701337de5ba19efda030c | <ide><path>celery/contrib/sphinx.py
<ide> """
<ide> from __future__ import absolute_import, unicode_literals
<ide>
<del>from sphinx.domains.python import PyModulelevel
<add>from sphinx.domains.python import PyFunction
<ide> from sphinx.ext.autodoc import FunctionDocumenter
<ide>
<ide> from celery.app.task import Base... | 1 |
Javascript | Javascript | fix linting issues | 30307231e63a57d8bedac103be0ad88d4e33e95f | <ide><path>src/main-process/file-recovery-service.js
<ide> export default class FileRecoveryService {
<ide>
<ide> if (!this.observedWindows.has(window)) {
<ide> this.observedWindows.add(window)
<del> window.webContents.on("crashed", () => this.recoverFilesForWindow(window))
<del> window.on("closed"... | 1 |
Javascript | Javascript | add clearer invariant in processupdates | 945d041160cb2fca3bde2c2422c46e6fe99af4dd | <ide><path>src/browser/ui/dom/DOMChildrenOperations.js
<ide> var Danger = require('Danger');
<ide> var ReactMultiChildUpdateTypes = require('ReactMultiChildUpdateTypes');
<ide>
<ide> var getTextContentAccessor = require('getTextContentAccessor');
<add>var invariant = require('invariant');
<ide>
<ide> /**
<ide> * The... | 1 |
Python | Python | add scaffolds to default layer imports | 3bb3f185c14c6c2db8131cfbb438ed06b5633169 | <ide><path>official/nlp/modeling/layers/__init__.py
<ide> from official.nlp.modeling.layers.position_embedding import PositionEmbedding
<ide> from official.nlp.modeling.layers.self_attention_mask import SelfAttentionMask
<ide> from official.nlp.modeling.layers.transformer import Transformer
<add>from official.nlp.model... | 2 |
Javascript | Javascript | use correct property name | 5596b5a1ad299dcd622acac3585f6ef588826da3 | <ide><path>lib/Module.js
<ide> function Module() {
<ide> this.debugId = debugId++;
<ide> this.lastId = -1;
<ide> this.id = null;
<del> this.portableIdentifier = null;
<add> this.portableId = null;
<ide> this.index = null;
<ide> this.index2 = null;
<ide> this.used = null; | 1 |
Javascript | Javascript | replace var with let/const | deb412743ec2da20bd70f2b749fc7b2344880acd | <ide><path>lib/child_process.js
<ide> function fork(modulePath /* , args, options */) {
<ide> validateString(modulePath, 'modulePath');
<ide>
<ide> // Get options and args arguments.
<del> var execArgv;
<del> var options = {};
<del> var args = [];
<del> var pos = 1;
<add> let execArgv;
<add> let options = {}... | 1 |
Javascript | Javascript | use euclideanmodulo in mathutils.pingpong | c214c8a5ba8a638a72494e81758a858d25059942 | <ide><path>src/math/MathUtils.js
<ide> const MathUtils = {
<ide>
<ide> pingPong: function ( x, length = 1 ) {
<ide>
<del> return length - Math.abs( x % ( length * 2 ) - length );
<add> return length - Math.abs( MathUtils.euclideanModulo( x, length * 2 ) - length );
<ide>
<ide> },
<ide>
<ide><path>test/unit/src/... | 2 |
Python | Python | add `python_requires` metadata for pypi | 732c5b0509a8138a504d48a8c5e0be493f1ed603 | <ide><path>setup.py
<ide> include_package_data=True,
<ide> zip_safe=False,
<ide> platforms='any',
<add> python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*',
<ide> install_requires=[
<ide> 'Werkzeug>=0.14',
<ide> 'Jinja2>=2.10', | 1 |
Javascript | Javascript | add services stamp | fe16a74faabe3932dbd63a05e71c08885464d5b7 | <ide><path>common/app/Cat.js
<ide> import { Cat } from 'thundercats';
<add>import stamp from 'stampit';
<add>import { Disposable, Observable } from 'rx';
<ide>
<ide> import { AppActions, AppStore } from './flux';
<del>import { HikesActions, HikesStore } from './routes/Hikes/flux';
<add>import { HikesActions } from './... | 1 |
Text | Text | add missing commas | 8296fe8142d28b7d23c42d6669322720d802ea3e | <ide><path>docs/recipes/reducers/RefactoringReducersExample.md
<ide> function editTodo(todosState, action) {}
<ide>
<ide> const todosReducer = createReducer([], {
<ide> 'ADD_TODO' : addTodo,
<del> 'TOGGLE_TODO' : toggleTodo
<add> 'TOGGLE_TODO' : toggleTodo,
<ide> 'EDIT_TODO' : editTodo
<ide> });
<ide>
<... | 1 |
Javascript | Javascript | avoid jquery data calls when there is no data | 9efb0d5ee961b57c8fc144a3138a15955e4010e2 | <ide><path>src/jqLite.js
<ide> function jqLiteAcceptsData(node) {
<ide> return nodeType === NODE_TYPE_ELEMENT || !nodeType || nodeType === NODE_TYPE_DOCUMENT;
<ide> }
<ide>
<add>function jqLiteHasData(node) {
<add> for (var key in jqCache[node.ng339]) {
<add> return true;
<add> }
<add> return false;
<add>}
<ad... | 4 |
Javascript | Javascript | improve read/write speed with assert | 7393740c7b4c35205db27dbe3cfe03a624ee5704 | <ide><path>lib/buffer.js
<ide> Buffer.prototype.asciiWrite = function(string, offset) {
<ide> return this.write(string, offset, 'ascii');
<ide> };
<ide>
<del>Buffer.prototype.readUInt8 = function(offset, noAssert) {
<del> var buffer = this;
<ide>
<del> if (!noAssert) {
<del> assert.ok(offset !== undefined && o... | 1 |
Javascript | Javascript | add lint fixer for `require-buffer` | 0319a5e1805bf7728d6116990cb9b7f00f726653 | <ide><path>test/parallel/test-eslint-require-buffer.js
<ide> const ruleTester = new RuleTester({
<ide> const message = "Use const Buffer = require('buffer').Buffer; " +
<ide> 'at the beginning of this file';
<ide>
<add>const useStrict = '\'use strict\';\n\n';
<add>const bufferModule = 'const { Buffer }... | 2 |
Mixed | Javascript | remove unused jsdevsupport module | 34e7d48472565ec4502c56d42adc17b66c71c4bc | <ide><path>Libraries/Core/setUpBatchedBridge.js
<ide> if (global.RN$Bridgeless === true && global.RN$registerCallableModule) {
<ide> | $TEMPORARY$string<'GlobalPerformanceLogger'>
<ide> | $TEMPORARY$string<'HMRClient'>
<ide> | $TEMPORARY$string<'HeapCapture'>
<del> | $TEMPORARY$string<'JSDevSuppo... | 4 |
PHP | PHP | update exception handling for integration tests | fc8548545185df770a1d6949fd149362a3a4ab9c | <ide><path>src/TestSuite/IntegrationTestTrait.php
<ide> use Cake\Utility\Security;
<ide> use Exception;
<ide> use Laminas\Diactoros\Uri;
<del>use LogicException;
<del>use PHPUnit\Framework\Error\Error as PhpUnitError;
<add>use PHPUnit\Exception as PHPUnitException;
<ide> use Throwable;
<ide>
<ide> /**
<ide> public fun... | 1 |
PHP | PHP | add stringable method | 2488eba6f85092af7cb4d3b8271d8024d3978379 | <ide><path>src/Illuminate/Support/Stringable.php
<ide> public function beforeLast($search)
<ide> return new static(Str::beforeLast($this->value, $search));
<ide> }
<ide>
<add> /**
<add> * Get the portion of a string between a given values.
<add> *
<add> * @param string $before
<add> * ... | 1 |
Text | Text | update changelog for unreleased 16.0 changes | cdfbe6bb04e6c37a2ee3c64139cfa0fea643f392 | <ide><path>CHANGELOG.md
<add>## [Unreleased]
<add><details>
<add> <summary>
<add> Changes that have landed in master but are not yet released.
<add> Click to see more.
<add> </summary>
<add>
<add>### New JS Environment Requirements
<add>
<add> * React 16 depends on the collection types [Map](https://developer.m... | 1 |
Javascript | Javascript | fix isvalid for unix timestamp parser | 65df5fb7ae35e791110e38dfcf65dc2ad79363d6 | <ide><path>moment.js
<ide> // UNIX TIMESTAMP WITH MS
<ide> case 'X':
<ide> config._d = new Date(parseFloat(input) * 1000);
<add> config._isValid = !isNaN(config._d.getTime());
<ide> break;
<ide> // TIMEZONE
<ide> case 'Z' : // fall through to ZZ | 1 |
PHP | PHP | remove unneeded connection cloning in tests | 2ac08e3e6c839c7973882f302edfd369f7731ed2 | <ide><path>tests/TestCase/Database/ConnectionTest.php
<ide> class ConnectionTest extends TestCase
<ide> public function setUp(): void
<ide> {
<ide> parent::setUp();
<del> $this->connection = clone ConnectionManager::get('test');
<add> $this->connection = ConnectionManager::get('test');
<id... | 3 |
PHP | PHP | add strict_types to events | 1304bf770052a10d521ed138649e88b937934509 | <ide><path>src/Event/Decorator/AbstractDecorator.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide><path>src/Event/Decorator/ConditionDecorator.php
<ide> <?p... | 17 |
Ruby | Ruby | fix ruby warnings | eb80dd39dc8d2f022d8b7682051ed09be872cb7f | <ide><path>actionpack/lib/action_controller/metal/testing.rb
<ide> module Testing
<ide> # Behavior specific to functional tests
<ide> module Functional # :nodoc:
<ide> def clear_instance_variables_between_requests
<del> if @_ivars
<add> if defined?(@_ivars)
<ide> new_ivars = instan... | 1 |
Text | Text | prefer file name instead of filename [ci skip] | 13e8c8036375589ad3fe7405d7fffba24135e8a4 | <ide><path>guides/source/api_documentation_guidelines.md
<ide> end
<ide> The API is careful not to commit to any particular value, the method has
<ide> predicate semantics, that's enough.
<ide>
<del>Filenames
<del>---------
<add>File Names
<add>----------
<ide>
<ide> As a rule of thumb, use filenames relative to the ... | 1 |
Text | Text | refactor the refactor challenge | 89544496256d11f05f1c669ce29fd069718f5dfe | <ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md
<ide> Rewrite the code so the global array `bookList` is not changed inside either fun
<ide> `bookList` should not change and still equal `["The Hound of the Baskerv... | 1 |
Ruby | Ruby | cache the new type object on the stack | ad1d0b8408f08bc08d54adfd66040bea14b44fe4 | <ide><path>actionpack/lib/action_dispatch/http/mime_type.rb
<ide> def register_alias(string, symbol, extension_synonyms = [])
<ide> end
<ide>
<ide> def register(string, symbol, mime_type_synonyms = [], extension_synonyms = [], skip_lookup = false)
<del> Mime.const_set(symbol.upcase, Type.new(string,... | 1 |
Javascript | Javascript | simplify the ngoptions regular expression | 587e8e2ba5feb275f14d259afb72ae6b77dfef18 | <ide><path>src/ng/directive/select.js
<ide>
<ide> var ngOptionsDirective = valueFn({ terminal: true });
<ide> var selectDirective = ['$compile', '$parse', function($compile, $parse) {
<del> //00001111100000000000222200000000000000000000003333000000000000004444444444444444400000000055555555555... | 1 |
PHP | PHP | use class notation in container tests | 8f0f9bf0269df7200069485d3dd854aa633589a9 | <ide><path>tests/Container/ContainerTest.php
<ide> public function testCallWithAtSignBasedClassReferencesWithoutMethodThrowsExcepti
<ide> public function testCallWithAtSignBasedClassReferences()
<ide> {
<ide> $container = new Container;
<del> $result = $container->call('Illuminate\Tests\Container... | 1 |
Text | Text | add readme files 1/7 | 47dd31f4a1aaa371f3b822e178fd273c68f45962 | <ide><path>arithmetic_analysis/README.md
<add># Arithmetic analysis
<add>
<add>Arithmetic analysis is a branch of mathematics that deals with solving linear equations.
<add>
<add>* <https://en.wikipedia.org/wiki/System_of_linear_equations>
<add>* <https://en.wikipedia.org/wiki/Gaussian_elimination>
<add>* <https://en.w... | 5 |
Javascript | Javascript | remove helper object from fallbackcompositionstate | a869f992a88692f9d9a964e20ee7dc844bc7760a | <ide><path>packages/react-dom/src/events/FallbackCompositionState.js
<ide> import getTextContentAccessor from '../client/getTextContentAccessor';
<ide>
<ide> /**
<del> * This helper object stores information about text content of a target node,
<add> * These variables store information about text content of a target n... | 1 |
Python | Python | preserve norm dtype for order 0 | 8cfc788643af035298a038410b73e044da695842 | <ide><path>numpy/linalg/linalg.py
<ide> def norm(x, ord=None, axis=None, keepdims=False):
<ide> return abs(x).min(axis=axis, keepdims=keepdims)
<ide> elif ord == 0:
<ide> # Zero norm
<del> return (x != 0).astype(float).sum(axis=axis, keepdims=keepdims)
<add> return ... | 1 |
Ruby | Ruby | tell the user to run doctor after installing | 46a9c9b6a09a67d8ebfc0fd07fc942a627f135a0 | <ide><path>Library/Contributions/install_homebrew.rb
<ide> def macos_version
<ide> end
<ide>
<ide> ohai "Installation successful!"
<add>puts "You should run `brew doctor' *before* you install anything."
<ide> puts "Now type: brew help" | 1 |
Javascript | Javascript | check splitdata for null and undefined | 9f055206860ab2e110c33e1e6fab3a3232284565 | <ide><path>lib/optimize/AggressiveSplittingPlugin.js
<ide> class AggressiveSplittingPlugin {
<ide> newChunk._fromAggressiveSplitting = true;
<ide> if(j < savedSplits.length)
<ide> newChunk._fromAggressiveSplittingIndex = j;
<del> if(splitData.id !== null) newChunk.id = splitData.id;
<add... | 1 |
Javascript | Javascript | remove async transition docs | 2ae680f7fc4ccb16478811c91d2eefabaa89b18e | <ide><path>packages/ember-states/lib/state.js
<ide> Ember.State = Ember.Object.extend(Ember.Evented,
<ide>
<ide> @event
<ide> @param {Ember.StateManager} manager
<del> @param {Object} transition
<del> @param {Function} transition.async
<del> @param {Function} transition.resume
<ide> */
<ide> enter... | 3 |
Javascript | Javascript | fix tests with same names | 8bfaf7fba84decc5123133be7b1aaaff68a3582d | <ide><path>packages/ember/tests/routing/basic_test.js
<ide> asyncTest("Events are triggered on the current state", function() {
<ide> action.handler(event);
<ide> });
<ide>
<del>asyncTest("Events are triggered on the current state", function() {
<add>asyncTest("Events are triggered on the current state when routes a... | 1 |
Javascript | Javascript | add new test for node.fs.stat() | 88ad880556673c06f44acacd5bf1c0eee8a71e52 | <ide><path>test/mjsunit/test-fs-stat.js
<add>include("mjsunit.js");
<add>
<add>var got_error = false;
<add>var got_success = false;
<add>var stats;
<add>
<add>var promise = node.fs.stat(".");
<add>
<add>promise.addCallback(function (_stats) {
<add> stats = _stats;
<add> p(stats);
<add> got_success = true;
<add>});
<... | 1 |
Javascript | Javascript | replace callback with arrow function | f85b43537d6dff4004081fcc81f8aa771efbe1e5 | <ide><path>test/parallel/test-child-process-kill.js
<ide> cat.stdout.on('end', common.mustCall());
<ide> cat.stderr.on('data', common.mustNotCall());
<ide> cat.stderr.on('end', common.mustCall());
<ide>
<del>cat.on('exit', common.mustCall(function(code, signal) {
<add>cat.on('exit', common.mustCall((code, signal) => {... | 1 |
PHP | PHP | use 256 cbc | 6cacd3e3cb43f1e672c992eaf8b4fadef36d9ac6 | <ide><path>tests/Encryption/EncrypterTest.php
<ide> public function testOpenSslEncrypterCanDecryptMcryptedData()
<ide> $key = str_random(32);
<ide> $encrypter = new Illuminate\Encryption\McryptEncrypter($key);
<ide> $encrypted = $encrypter->encrypt('foo');
<del> $openSslEncrypter = new Il... | 1 |
Ruby | Ruby | fix possible memory leak of connectionhandler | 20a72627900330cf9c95cf506458cdec4d16a836 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
<ide> def checkout_and_verify(c)
<ide> # about the model. The model needs to pass a specification name to the handler,
<ide> # in order to look up the correct connection pool.
<ide> class ConnectionHandler
<add> d... | 1 |
Python | Python | create separate *nullableonetoonetests testcase | a897eb5480348838b11fdb428ce0d110e8bc8da1 | <ide><path>rest_framework/tests/models.py
<ide> class NullableForeignKeySource(RESTFrameworkModel):
<ide> target = models.ForeignKey(ForeignKeyTarget, null=True, blank=True,
<ide> related_name='nullable_sources')
<ide>
<add>
<add># OneToOne
<add>class OneToOneTarget(RESTFrameworkMode... | 4 |
Text | Text | clarify a step in the quick start | 040e94b7f5c426db7e7a13a4d0c9b9b13e4ed249 | <ide><path>docs/docs/getting-started.md
<ide> In the root directory of the starter kit, create a `helloworld.html` with the fo
<ide> </html>
<ide> ```
<ide>
<del>The XML syntax inside of JavaScript is called JSX; check out the [JSX syntax](/react/docs/jsx-in-depth.html) to learn more about it. In order to translate it... | 1 |
Javascript | Javascript | fix typos in js and css selector | 1ce5d216c7b31fb711fce736af0b061d5f6b4bba | <ide><path>src/ngAnimate/module.js
<ide> * ngModule.directive('greetingBox', ['$animate', function($animate) {
<ide> * return function(scope, element, attrs) {
<ide> * attrs.$observe('active', function(value) {
<del> * value ? $animate.addClass(element, 'on') ? $animate.removeClass(element, 'on');
<add> ... | 1 |
Python | Python | remove global statement | 643b46454c8a2049064744dbf207a3b85f0d91b7 | <ide><path>numpy/linalg/linalg.py
<ide> class LinAlgError(Exception):
<ide> """
<ide> pass
<ide>
<del># Dealing with errors in _umath_linalg
<del>
<del>_linalg_error_extobj = None
<ide>
<ide> def _determine_error_states():
<del> global _linalg_error_extobj
<ide> errobj = geterrobj()
<ide> bufsize =... | 1 |
PHP | PHP | add getter for the defferedservice property | f44f335e29dca1198814e45df473489cb18305cc | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function getLoadedProviders()
<ide> return $this->loadedProviders;
<ide> }
<ide>
<add> /**
<add> * Get the application's deferred services.
<add> *
<add> * @return array
<add> */
<add> public function getDeferredServices()
<add> ... | 1 |
Text | Text | copy editing as guide [ci skip] | 2f0a5c7ac506b900d101620c4cc338a88ee620e3 | <ide><path>guides/source/active_support_core_extensions.md
<ide> NOTE: Defined in `active_support/core_ext/object/with_options.rb`.
<ide>
<ide> ### JSON support
<ide>
<del>Active Support provides a better implemention of `to_json` than the json gem ordinarily provides for Ruby objects. This is because some classes, ... | 1 |
Mixed | Ruby | remove deprecated argument `name` from `#indexes` | d6b779ecebe57f6629352c34bfd6c442ac8fba0e | <ide><path>activerecord/CHANGELOG.md
<add>* Remove deprecated argument `name` from `#indexes`.
<add>
<add> *Rafael Mendonça França*
<add>
<ide> * Remove deprecated method `ActiveRecord::Migrator.schema_migrations_table_name`.
<ide>
<ide> *Rafael Mendonça França*
<ide><path>activerecord/lib/active_record/con... | 7 |
Text | Text | add the contributing.md file | 92fd4918807749ebc9dfd21d6e063edbc00f01be | <ide><path>CONTRIBUTING.md
<add># Contributing to Glances
<add>
<add>Looking to contribute something to Glances ? **Here's how you can help.**
<add>
<add>Please take a moment to review this document in order to make the contribution
<add>process easy and effective for everyone involved.
<add>
<add>Following these guide... | 1 |
Javascript | Javascript | eliminate unit test timing flakiness | 8edf4e9e3adcc85743e3c86a25ab3748b276a3da | <ide><path>Libraries/Pressability/__tests__/Pressability-test.js
<ide> const createMockPressEvent = (
<ide> describe('Pressability', () => {
<ide> beforeEach(() => {
<ide> jest.resetModules();
<add> jest.restoreAllMocks();
<ide> jest.spyOn(Date, 'now');
<ide> jest.spyOn(HoverState, 'isHoverEnabled');
<... | 1 |
Go | Go | fix docker info with lxc 1.0.0 | f30f823bf50de6581f547aee842286584c4b6990 | <ide><path>execdriver/lxc/driver.go
<ide> func (d *driver) Restore(c *execdriver.Command) error {
<ide> }
<ide>
<ide> func (d *driver) version() string {
<del> version := ""
<del> if output, err := exec.Command("lxc-version").CombinedOutput(); err == nil {
<del> outputStr := string(output)
<del> if len(strings.Split... | 1 |
Ruby | Ruby | use spec key, when given as spec_id | 79154a3281eb25a573dfcb5d5db31c3c481311f9 | <ide><path>activerecord/lib/active_record/connection_adapters/connection_specification.rb
<ide> def resolve_all
<ide> # spec.config
<ide> # # => { "host" => "localhost", "database" => "foo", "adapter" => "sqlite3" }
<ide> #
<del> def spec(config, id = "primary")
<add> def spec(... | 2 |
Java | Java | remove trailing whitespace | a006ca254272bebe7b8e3828dd6cd53a8b52542b | <ide><path>spring-context/src/test/java/org/springframework/beans/factory/xml/XmlBeanFactoryTests.java
<ide>
<ide> /**
<ide> * Miscellaneous tests for XML bean definitions.
<del> *
<add> *
<ide> * @author Juergen Hoeller
<ide> * @author Rod Johnson
<ide> * @author Rick Evans
<ide><path>spring-test/src/main/java/o... | 5 |
Javascript | Javascript | introduce asyncrequire function | a7b231a3278e4fc2d7e4269ce106f22712f2e5a8 | <ide><path>Libraries/Utilities/BundleSegments.js
<del>/**
<del> * Copyright (c) 2015-present, Facebook, Inc.
<del> * All rights reserved.
<del> *
<del> * This source code is licensed under the BSD-style license found in the
<del> * LICENSE file in the root directory of this source tree. An additional grant
<del> * of p... | 2 |
Text | Text | update dataset examples | e302950da3bcd8c6bbdf4ac3897282decedb83e4 | <ide><path>research/deeplab/g3doc/cityscapes.md
<ide> A local training job using `xception_65` can be run with the following command:
<ide> # From tensorflow/models/research/
<ide> python deeplab/train.py \
<ide> --logtostderr \
<add><<<<<<< HEAD
<add>=======
<add> --training_number_of_steps=90000 \
<add>>>>>>>>... | 2 |
PHP | PHP | remove deprecated code in cache package | 7301e8ad56f70093bc520cd3b2652f8e6ce2cada | <ide><path>src/Cache/Cache.php
<ide> class Cache
<ide> * @var array
<ide> */
<ide> protected static $_dsnClassMap = [
<del> 'apc' => 'Cake\Cache\Engine\ApcuEngine', // @deprecated Since 3.6. Use apcu instead.
<ide> 'apcu' => 'Cake\Cache\Engine\ApcuEngine',
<ide> 'file' => 'Cake\Cach... | 6 |
Javascript | Javascript | use octal integer literal | cf329d0f6312918ef996c89cf4464d4d26aff296 | <ide><path>spec/main-process/file-recovery-service.test.js
<ide> describe("FileRecoveryService", () => {
<ide> const mockWindow = {}
<ide> const filePath = temp.path()
<ide> fs.writeFileSync(filePath, "content")
<del> fs.chmodSync(filePath, 0444)
<add> fs.chmodSync(filePath, 0o444)
<ide>
<i... | 1 |
Ruby | Ruby | convert version test to spec | 32565eb96efcda28f4c255afc4e25467b8560379 | <ide><path>Library/Homebrew/cask/spec/cask/cli/version_spec.rb
<add>require "spec_helper"
<add>
<add>describe "brew cask --version" do
<add> it "respects the --version argument" do
<add> expect {
<add> expect {
<add> Hbc::CLI::NullCommand.new("--version").run
<add> }.not_to output.to_stderr
<add> ... | 2 |
Text | Text | fix metalness description | e1450376e24f043dd0c6035363bac5b0f05b4a10 | <ide><path>threejs/lessons/threejs-materials.md
<ide> have hard reflections whereas something that's not rough, like a billiard ball,
<ide> is very shiny. Roughness goes from 0 to 1.
<ide>
<ide> The other setting, [`metalness`](MeshStandardMaterial.metalness), says
<del>how metal the material is. Metals behave differe... | 1 |
Javascript | Javascript | define mix as const | b723b90889f084c8026e2d92ecb125deb6087816 | <ide><path>src/Illuminate/Foundation/Console/Presets/react-stubs/webpack.mix.js
<del>let mix = require('laravel-mix');
<add>const mix = require('laravel-mix');
<ide>
<ide> /*
<ide> |--------------------------------------------------------------------------
<ide><path>src/Illuminate/Foundation/Console/Presets/vue-stub... | 2 |
Python | Python | pin good version of huggingface_hub | 12a4457c565064f981dd56ed40a459d1cf0e12ac | <ide><path>setup.py
<ide> "flake8>=3.8.3",
<ide> "flax>=0.3.4",
<ide> "fugashi>=1.0",
<del> "huggingface-hub==0.0.11",
<add> "huggingface-hub==0.0.12",
<ide> "importlib_metadata",
<ide> "ipadic>=1.0.0,<2.0",
<ide> "isort>=5.5.4",
<ide><path>src/transformers/dependency_versions_table.py
<id... | 2 |
PHP | PHP | fix implementation of bufferedstatement | 35dcf38514900b6e4163d5a5ee502ba9f87913e6 | <ide><path>src/Database/Schema/SqliteSchema.php
<ide> public function truncateTableSql(TableSchema $schema)
<ide> */
<ide> public function hasSequences()
<ide> {
<del> $result = $this->_driver
<del> ->prepare('SELECT 1 FROM sqlite_master WHERE name = "sqlite_sequence"');
<add> $res... | 6 |
Javascript | Javascript | move setting of controller data to single location | 0d55298b56fcd67570374441c0bba76c0bf0d1f0 | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide, $$sanitizeUriProvider) {
<ide> }
<ide> }
<ide>
<del> // Initialize controllers
<add> // Initialize bindToController bindings
<ide> for (var name in elementControllers) {
<ide> var controllerDirectiv... | 1 |
Javascript | Javascript | add missing runtask | 2a5e2c7bf99755a0b270f36b8181e0dda3943ccc | <ide><path>packages/internal-test-helpers/lib/test-cases/abstract-application.js
<ide> export default class AbstractApplicationTestCase extends AbstractTestCase {
<ide>
<ide> async visit(url, options) {
<ide> // Create the instance
<del> let instance = await this._ensureInstance(options).then(instance => inst... | 1 |
Java | Java | add support for websocket protocol extensions | 6d00a3f0ee795e1a5bd9ffe02c584623828dbc37 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/websocket/SubProtocolHandler.java
<ide> void handleMessageFromClient(WebSocketSession session, WebSocketMessage message,
<ide> /**
<ide> * Resolve the session id from the given message or return {@code null}.
<ide> *
<del> * @param th... | 17 |
Text | Text | add dataview to appropriate crypto methods | 42185730954dd2aaef9f7149b1bae03b3115e505 | <ide><path>doc/api/crypto.md
<ide> changes:
<ide> description: The default encoding for `password` if it is a string changed
<ide> from `binary` to `utf8`.
<ide> -->
<del>- `password` {string|Buffer|TypedArray}
<del>- `salt` {string|Buffer|TypedArray}
<add>- `password` {string|Buffer|TypedArray|Dat... | 1 |
Javascript | Javascript | adapt test-linux-perf to v8 changes | ce4b4cc0aff75cc91dc9cf61b09aedc5fbb061c3 | <ide><path>test/v8-updates/test-linux-perf.js
<ide> for (const perfArgs of perfArgsList) {
<ide> output += perfScript.stdout;
<ide> }
<ide>
<del>const interpretedFunctionOneRe = /InterpretedFunction:functionOne/;
<del>const compiledFunctionOneRe = /LazyCompile:\*functionOne/;
<del>const interpretedFunctionTwoRe = /I... | 1 |
Text | Text | add dep on datasets | 0054a48cdd64e7309184a64b399ab2c58d75d4e5 | <ide><path>CONTRIBUTING.md
<ide> Follow these steps to start contributing:
<ide> it with `pip uninstall transformers` before reinstalling it in editable
<ide> mode with the `-e` flag.)
<ide>
<add> To run the full test suite, you might need the additional dependency on `datasets` which requires a separate sourc... | 1 |
Ruby | Ruby | remove owner_name from db_config | 4a95e9aa5f6a5d67bd796110c1ff86f442bfde86 | <ide><path>activerecord/lib/active_record/database_configurations/database_config.rb
<ide> class DatabaseConfigurations
<ide> class DatabaseConfig # :nodoc:
<ide> attr_reader :env_name, :name
<ide>
<del> attr_accessor :owner_name
<del>
<ide> def initialize(env_name, name)
<ide> @env_name =... | 2 |
Javascript | Javascript | fix typos in navigationexperimental | b098d0e8393cde31ce971e320c250b950761625a | <ide><path>Libraries/CustomComponents/NavigationExperimental/NavigationLegacyNavigator.js
<ide> class NavigationLegacyNavigator extends React.Component<any, Props, State> {
<ide> return this._stack.toArray();
<ide> }
<ide>
<del> // Lyfe cycle and private methods below.
<add> // Life cycle and private methods b... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.