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 |
|---|---|---|---|---|---|
Mixed | Python | fix return type in prev-date context variables | 62a5b2dfa41b2928c35be954d13b5ed6e2b5b339 | <ide><path>UPDATING.md
<ide> This is to align the name with the actual code where the Scheduler launches the
<ide> `[scheduler] parsing_processes` to Parse DAG files, calculates next DagRun date for each DAG,
<ide> serialize them and store them in the DB.
<ide>
<add>### Context variables `prev_execution_date_success` ... | 3 |
PHP | PHP | update redis to return default values | 7596faa60c110b1f8507ee8df1f9984d52795eb0 | <ide><path>src/Cache/Engine/RedisEngine.php
<ide> public function set($key, $value, $ttl = null)
<ide> *
<ide> * @param string $key Identifier for the data
<ide> * @param mixed $default Default value to return if the key does not exist.
<del> * @return mixed The cached data, or false if the data does... | 2 |
PHP | PHP | add random() function to query builder | 9197863f0a6304afca17f0d88071bee471cbe949 | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function take($value)
<ide> return $this->limit($value);
<ide> }
<ide>
<add> /**
<add> * Add statements to query to get one or many random records.
<add> *
<add> * @param int $value
<add> * @return $this
<add> */
<ad... | 1 |
Text | Text | add note about latest github release | 5815e3e232ef31221f25a9b1997c1f161c5cffdc | <ide><path>doc/contributing/releases.md
<ide> This script will use the promoted builds and changelog to generate the post. Run
<ide> * Select the tag version you pushed earlier.
<ide> * For release title, copy the title from the changelog.
<ide> * For the description, copy the rest of the changelog entry.
<add>* If you... | 1 |
Javascript | Javascript | load the testswarm listener via https | d225639a8ea62863482bd20249077688f60235db | <ide><path>test/data/testinit.js
<ide> this.loadTests = function() {
<ide>
<ide> // Load the TestSwarm listener if swarmURL is in the address.
<ide> if ( QUnit.isSwarm ) {
<del> require( [ "http://swarm.jquery.org/js/inject.js?" + ( new Date() ).getTime() ],
<add> require( [ "https://swarm.jquery.org/j... | 1 |
Java | Java | update resttemplate javadoc | 09b19d7aa6344998fffac70cb9fdf9a3dd775558 | <ide><path>spring-web/src/main/java/org/springframework/http/client/support/InterceptingHttpAccessor.java
<ide> /*
<del> * Copyright 2002-2020 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 "License");
<id... | 2 |
Python | Python | add tf/th kernel conversion util | ed0cd2c60db98e6f4a315c420e1fed9968fe34d7 | <ide><path>keras/utils/np_utils.py
<ide> def probas_to_classes(y_pred):
<ide>
<ide> def categorical_probas_to_classes(p):
<ide> return np.argmax(p, axis=1)
<add>
<add>
<add>def convert_kernel(kernel, dim_ordering='th'):
<add> '''Converts a kernel matrix (numpy array)
<add> from Theano format to TensorFlow fo... | 2 |
Text | Text | add gitter badge to readme.md | 7869f83ddd5a3156a358284cbef6837b5e7a2a62 | <ide><path>README.md
<ide>
<ide> [](https://app.fossa.io/projects/git%2Bgithub.com%2Fjquery%2Fjquery?ref=badge_shield)
<ide>
<add>[](https://gitter.im/jquery/jquery... | 1 |
Java | Java | kill bridge only after cleaning up nativemodules | 5328d952a8dd0945005d9f7305aba913f438ffa7 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/cxxbridge/CatalystInstanceImpl.java
<ide> public void destroy() {
<ide>
<ide> // TODO: tell all APIs to shut down
<ide> mDestroyed = true;
<del> mHybridData.resetNative();
<ide> mReactQueueConfiguration.getNativeModulesQueueThread().runOnQueue(new... | 2 |
PHP | PHP | fix comment error | 27bacf6cca5040ff6ceaa3764f005ba22c795a9d | <ide><path>src/Http/Cookie/Cookie.php
<ide> public function isSecure()
<ide> /**
<ide> * Create a cookie with Secure updated
<ide> *
<del> * @param bool $httpOnly HTTP Only
<add> * @param bool $secure Secure attribute value
<ide> * @return static
<ide> */
<ide> public function withSe... | 1 |
PHP | PHP | add failing test for mass composer registration | e86ada0d62d92fe8cc6df6b7d08b92bdfaeec1e5 | <ide><path>tests/View/ViewFactoryTest.php
<ide> public function testComposersCanBeMassRegistered()
<ide> 'baz@baz' => array('qux', 'foo'),
<ide> ));
<ide>
<add> $this->assertCount(3, $composers);
<ide> $reflections = array(
<ide> new ReflectionFunction($composers[0]),
<ide> new ReflectionFunction($compos... | 1 |
PHP | PHP | pass proper value to class | 423487fa9ac58a37ef22f32abe54e546b482d013 | <ide><path>src/Illuminate/Queue/Console/WorkCommand.php
<ide> protected function runWorker($connection, $queue, $delay, $memory, $daemon = fal
<ide> {
<ide> $this->worker->setCache($this->laravel['cache']->driver());
<ide>
<del> $this->worker->setDaemonExceptionHandler($this->laravel['exception']);
<add> $thi... | 1 |
Ruby | Ruby | fix additional quotes already handled by #inspect | 2c4ef98f0d880142766ed181743af7f8f2d7f724 | <ide><path>Library/Homebrew/rubocops/lines.rb
<ide> def audit_formula(_node, _class_node, _parent_class_node, body_node)
<ide> elsif shell_parameter_stripped == "--shell="
<ide> :arg
<ide> else
<del> "\"#{shell_parameter_stripped}\""
<add> shell_parameter_... | 1 |
Ruby | Ruby | avoid improper, late usage of formula dsl | 15280ba1073afc13f239b9606de8f9623e8bc0a3 | <ide><path>Library/Homebrew/test/build_environment_spec.rb
<ide> end
<ide>
<ide> describe BuildEnvironment::DSL do
<del> subject(:build_environment_dsl) { double.extend(described_class) }
<add> let(:build_environment_dsl) do
<add> klass = described_class
<add> Class.new do
<add> extend(klass... | 9 |
Text | Text | fix typo in 1.bug_report.md | 29694572ed499f18b63ac329173a9b893dd611a2 | <ide><path>.github/ISSUE_TEMPLATE/1.Bug_report.md
<ide> about: Create a bug report for the Next.js core / examples
<ide> labels: 'template: bug'
<ide> ---
<ide>
<del><!-- NOTE: This template is not optional. If you remove it or leave out sections there is a high likelyhood it will be moved to the GitHub Discussions "H... | 1 |
Javascript | Javascript | remove errant return assignment | 4b163fee1c494c35ac8b4ba49cd41e9c573b7a7b | <ide><path>packages/react-reconciler/src/ReactFiberBeginWork.js
<ide> function updateSuspenseComponent(
<ide> } else {
<ide> // The current tree has not already timed out. That means the primary
<ide> // children are not wrapped in a fragment fiber.
<del> const currentPrimaryChild: Fiber = (current... | 2 |
Ruby | Ruby | remove accidental raise! | 02fc45a057878c49b6397900e5dcf828fdb8c09d | <ide><path>activerecord/lib/active_record/fixtures.rb
<ide> def self.identify(label)
<ide> attr_reader :table_name, :name, :fixtures, :model_class
<ide>
<ide> def initialize(connection, table_name, class_name, fixture_path, file_filter = DEFAULT_FILTER_RE)
<del> raise if file_filter != DEFAULT_FILTER_RE
<ide> ... | 1 |
Text | Text | enclose variables in back quote | ae0f9189fc07c77b3c19bde4ebed72eaa6e0d3b7 | <ide><path>docs/docs/10.4-test-utils.md
<ide> Pass a mocked component module to this method to augment it with useful methods
<ide> boolean isElement(ReactElement element)
<ide> ```
<ide>
<del>Returns true if `element` is any ReactElement.
<add>Returns `true` if `element` is any ReactElement.
<ide>
<ide> ### isElemen... | 1 |
Javascript | Javascript | make 'getreference' monomorphic | 97c6703aab3dbb2f336f893aada9c105b3ea0cc7 | <ide><path>lib/dependencies/HarmonyExportImportedSpecifierDependency.js
<ide> const HarmonyImportDependency = require("./HarmonyImportDependency");
<ide> const Template = require("../Template");
<ide>
<add>const EMPTY_MAP = new Map();
<add>
<add>class ExportMode {
<add> constructor(type) {
<add> this.type = type;
<ad... | 1 |
PHP | PHP | use better assertion | 9d9e6ad4fff39ac7c3f0eb3538755206b252dc28 | <ide><path>tests/TestCase/Utility/HashTest.php
<ide> public function testMaxDimensions()
<ide> {
<ide> $data = [];
<ide> $result = Hash::maxDimensions($data);
<del> $this->assertEquals(0, $result);
<add> $this->assertSame(0, $result);
<ide>
<ide> $data = ['a', 'b'];
<ide> ... | 1 |
Python | Python | add timestamp history for each batch in training | ae655521533ee1c35ae4d8ac18a7e99e35e3012e | <ide><path>official/resnet/keras/keras_cifar_main.py
<ide> def run(flags_obj):
<ide> eval_output = model.evaluate(eval_input_dataset,
<ide> steps=num_eval_steps,
<ide> verbose=1)
<del> stats = keras_common.build_stats(history, eval_output)
<add> st... | 4 |
Python | Python | use nodeauthpassword in vcloud | 59afbb4a15aefd09ebd9714fa1e3cb7dcb1ae1e8 | <ide><path>libcloud/drivers/vcloud.py
<ide>
<ide> from libcloud.providers import Provider
<ide> from libcloud.types import NodeState, InvalidCredsException
<del>from libcloud.base import Node, Response, ConnectionUserAndKey, NodeDriver, NodeSize, NodeImage
<add>from libcloud.base import Node, Response, ConnectionUserA... | 1 |
Python | Python | add test for vocab serialization | 7b1ddcc04da5e4bc366cc6bba0d14924e1999782 | <ide><path>spacy/tests/serialize/test_serialization.py
<ide>
<ide> from ..util import get_doc, assert_docs_equal
<ide> from ...tokens import Doc
<add>from ...vocab import Vocab
<ide>
<ide> import pytest
<ide>
<ide> def test_serialize_empty_doc(en_vocab):
<ide> for token1, token2 in zip(doc, doc2):
<ide> ... | 1 |
PHP | PHP | update syslog to use namespaces | 8c57b0e4fc0e2fe956d8aef7f2da7e39b811314b | <ide><path>lib/Cake/Log/Engine/SyslogLog.php
<ide> * @since CakePHP(tm) v 2.4
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide> */
<add>namespace Cake\Log\Engine;
<ide>
<del>App::uses('BaseLog', 'Log/Engine');
<add>use Cake\Log\Engine\BaseLog;
<ide>
<ide> /**
<id... | 2 |
Python | Python | replace getters/setters with properties - round 3 | 3074e50bfc5ee1435adf5ebc6dace6693579dfa0 | <ide><path>glances/core/glances_client_browser.py
<ide> def serve_forever(self):
<ide> "Server list dictionnary change inside the loop (wait next update)")
<ide>
<ide> # Update the screen (list or Glances client)
<del> if self.screen.get_active() is None:
<add> if ... | 2 |
Javascript | Javascript | fix bug with the readywait dom ready addition | 1ac3713e7fa187838b04290ada9e4fc56e01f145 | <ide><path>src/core.js
<ide> jQuery.extend({
<ide> }
<ide>
<ide> // Make sure that the DOM is not already loaded
<del> if ( !jQuery.readyWait && !jQuery.isReady ) {
<add> if ( !jQuery.readyWait || (wait !== true && !jQuery.isReady) ) {
<ide> // Make sure body exists, at least, in case IE gets a little overzea... | 1 |
Javascript | Javascript | fix spelling error and reword for clarity | 72ad746b85e3dcfefd794d7dc376e7ade798ff49 | <ide><path>src/ng/directive/input.js
<ide> var VALID_CLASS = 'ng-valid',
<ide> * @description
<ide> *
<ide> * `NgModelController` provides API for the `ng-model` directive. The controller contains
<del> * services for data-binding, validation, CSS update, value formatting and parsing. It
<del> * specifically does no... | 1 |
Javascript | Javascript | remove straggling test | aa3cb1eeac5ebe2e85b3bebf0b9f458d9b38237e | <ide><path>packages/ember-views/tests/views/view/nearest_view_test.js
<del>var set = Ember.set, get = Ember.get;
<del>
<del>module("Ember.View nearest view helpers");
<del>
<del>test("collectionView should return the nearest collection view", function() {
<del> var itemViewChild;
<del>
<del> var view = Ember.Collecti... | 1 |
Javascript | Javascript | remove unreachable code paths from plugins | 692d8a41281e65b66195835ff69b887dfa65af5f | <ide><path>src/plugins/plugin.filler.js
<ide> class simpleArc {
<ide> pathSegment(ctx, bounds, opts) {
<ide> const {x, y, radius} = this;
<ide> bounds = bounds || {start: 0, end: TAU};
<del> if (opts.reverse) {
<del> ctx.arc(x, y, radius, bounds.end, bounds.start, true);
<del> } else {
<del> c... | 2 |
Javascript | Javascript | fix tests for webworkermaintemplateplugin | 60900aaee7c9bee6da5ca22ca3ba9d9d286d612b | <ide><path>test/WebWorkerMainTemplatePlugin.test.js
<ide> const sinon = require("sinon");
<ide> const WebWorkerMainTemplatePlugin = require("../lib/webworker/WebWorkerMainTemplatePlugin");
<ide> const applyPluginWithOptions = require("./helpers/applyPluginWithOptions");
<ide>
<del>describe("WebWorkerMainTemplatePlugin... | 1 |
Javascript | Javascript | fix undefined reference in fs.js | 6bd11f147ab6277a672f8e36e707306752d93538 | <ide><path>lib/fs.js
<ide> var sys = require('./sys'),
<ide> events = require('events');
<ide>
<add>var fs = exports;
<add>
<ide> exports.Stats = process.Stats;
<ide>
<ide> process.Stats.prototype._checkModeProperty = function (property) { | 1 |
Javascript | Javascript | fix names of options to match the exported types | 0f22db981dc615d76be1c7dd74fc840fae41827c | <ide><path>lib/config/defaults.js
<ide> const applyJavascriptParserOptionsDefaults = (
<ide> D(parserOptions, "wrappedContextRecursive", true);
<ide> D(parserOptions, "wrappedContextCritical", false);
<ide> D(parserOptions, "strictThisContextOnImports", false);
<del> if (futureDefaults) D(parserOptions, "exportPrese... | 7 |
Javascript | Javascript | adopt box3 in buffergeometry | d782e3a17e3c0bff7151e5270aefd8ea1151bbfd | <ide><path>src/core/BufferGeometry.js
<ide> THREE.BufferGeometry.prototype = {
<ide>
<ide> if ( ! this.boundingBox ) {
<ide>
<del> this.boundingBox = {
<del>
<del> min: new THREE.Vector3( Infinity, Infinity, Infinity ),
<del> max: new THREE.Vector3( -Infinity, -Infinity, -Infinity )
<del>
<del> };
<add> ... | 1 |
PHP | PHP | add missing parameter to optionparser | 3fa46f58bf51f90833c2a9cc5222b4fe56de7be3 | <ide><path>src/Console/Command/Task/TestTask.php
<ide> public function getOptionParser() {
<ide> ])->addOption('force', [
<ide> 'short' => 'f',
<ide> 'help' => __d('cake_console', 'Force overwriting existing files without prompting.')
<add> ])->addOption('fixtures', [
<add> 'help' => __d('cake_console', 'A c... | 1 |
Ruby | Ruby | reset raw_post_data between test requests | 7a8d9649cdefe5706003e1e377e22722962dff22 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def head(action, **args)
<ide> def process(action, method: "GET", params: {}, session: nil, body: nil, flash: {}, format: nil, xhr: false, as: nil)
<ide> check_required_ivars
<ide>
<del> if body
<del> @request.set_header "RAW_... | 2 |
Text | Text | add notes about creating a ui theme | 201677eb1d81dedc0e7db9981bee114d724fca10 | <ide><path>docs/creating-a-theme.md
<ide> contains all of the variables provided by the [core themes][ui-variables].
<ide> Syntax themes don't need to provide any variables to other themes and only
<ide> target elements within the editor.
<ide>
<add>To create a UI theme, do the following:
<add>
<add>1. Fork one of the... | 1 |
Ruby | Ruby | fix spelling mistakes | f55fe55d5aeb7f58c47d2b12f2e805c6df9690bd | <ide><path>activejob/test/cases/test_case_test.rb
<ide>
<ide> class ActiveJobTestCaseTest < ActiveJob::TestCase
<ide> # this tests that this job class doesn't get its adapter set.
<del> # that's the correct behaviour since we don't want to break
<del> # the `class_attribute` inheritence
<del> class TestClassAttri... | 1 |
Go | Go | add credentialspec from configs support | 04995fa7c71216969e17670cc3fb938de137af35 | <ide><path>daemon/cluster/executor/container/container.go
<ide> func (c *containerConfig) applyPrivileges(hc *enginecontainer.HostConfig) {
<ide> hc.SecurityOpt = append(hc.SecurityOpt, "credentialspec=file://"+credentials.GetFile())
<ide> case *api.Privileges_CredentialSpec_Registry:
<ide> hc.SecurityOpt = app... | 2 |
Ruby | Ruby | modernize size calculation in schema cache | f45084c746a79cee3ff6c08fc4e42be15cac2bba | <ide><path>activerecord/lib/active_record/connection_adapters/schema_cache.rb
<ide> def clear!
<ide> end
<ide>
<ide> def size
<del> [@columns, @columns_hash, @primary_keys, @data_sources].map(&:size).inject :+
<add> [@columns, @columns_hash, @primary_keys, @data_sources].sum(&:size)
<ide> ... | 1 |
Python | Python | add example for training text classifier | 2bc7d87c705b038d699309b25eec7ab3df4e9308 | <ide><path>examples/training/train_textcat.py
<add>from __future__ import unicode_literals
<add>import plac
<add>import random
<add>import tqdm
<add>
<add>from thinc.neural.optimizers import Adam
<add>from thinc.neural.ops import NumpyOps
<add>import thinc.extra.datasets
<add>
<add>import spacy.lang.en
<add>from spacy.... | 1 |
Text | Text | accept contributer agreement | 35272eade8b7088ce7159a67ae220891a05de886 | <ide><path>.github/CONTRIBUTOR_AGREEMENT.md
<ide> U.S. Federal law. Any choice of law rules will not apply.
<ide> 7. Please place an “x” on one of the applicable statement below. Please do NOT
<ide> mark both statements:
<ide>
<del> * [ ] I am signing on behalf of myself as an individual and no other person
<add> ... | 1 |
Javascript | Javascript | remove an internal argument to the remove method | 349edbd6c53aa93d4fd207d3c0c4c24a7b0314dd | <ide><path>src/manipulation.js
<ide> function domManip( collection, args, callback, ignored ) {
<ide> return collection;
<ide> }
<ide>
<add>function remove( elem, selector, keepData ) {
<add> var node,
<add> nodes = selector ? jQuery.filter( selector, elem ) : elem,
<add> i = 0;
<add>
<add> for ( ; (node = nodes[i]... | 1 |
Ruby | Ruby | write bottle metadata files | dbccff4d8019aedb414ff007a2578a2a46910484 | <ide><path>Library/Contributions/cmd/brew-test-bot.rb
<ide> class Step
<ide> attr_reader :command, :name, :status, :output, :time
<ide>
<del> def initialize test, command, puts_output_on_success = false
<add> def initialize test, command, options={}
<ide> @test = test
<ide> @category = test.category
<ide> ... | 1 |
Python | Python | improve assets and dvc handling | 8cb7f9ccff5da3a5eaeb3c3ebe99214f6673d084 | <ide><path>spacy/cli/project.py
<del>from typing import List, Dict, Any, Optional, Sequence
<add>from typing import List, Dict, Any, Optional, Sequence, Union
<ide> import typer
<ide> import srsly
<ide> from pathlib import Path
<ide> from ..util import get_hash, get_checksum, split_command
<ide>
<ide>
<del>CONFIG_FIL... | 2 |
PHP | PHP | add `wherehas` assertable json method | cbdfde20578553816a69ccd8f4d1f9e42958ba72 | <ide><path>src/Illuminate/Testing/Fluent/Concerns/Matching.php
<ide>
<ide> trait Matching
<ide> {
<add> /**
<add> * Assets that all values exist and match their expected values.
<add> *
<add> * @param string $key
<add> * @param array|string $expected
<add> *
<add> * @return $this
<add>... | 2 |
Javascript | Javascript | fix traversal up when unmounting | c5b6601536c621ab8d68b97268b5c6af66b1d37d | <ide><path>src/renderers/shared/fiber/ReactFiberCommitWork.js
<ide> module.exports = function<T, P, I, TI, C>(
<ide> }
<ide> node = node.return;
<ide> }
<add> node.sibling.return = node.return;
<ide> node = node.sibling;
<ide> while (node.tag !== HostComponent && node.tag !== Host... | 1 |
Go | Go | replace errextractpointnotdirectory with errdefs | 8cd244a318c8c1f16eeeb6a8fa48c0cb79cc16ab | <ide><path>daemon/archive.go
<ide> import (
<ide> "github.com/pkg/errors"
<ide> )
<ide>
<del>// ErrExtractPointNotDirectory is used to convey that the operation to extract
<del>// a tar archive to a directory in a container has failed because the specified
<del>// path does not refer to a directory.
<del>var ErrExtra... | 1 |
Javascript | Javascript | add tests of querystring benchmark | ee587f39ae44150e9105c7e401712e52cb9254fb | <ide><path>test/parallel/test-benchmark-querystring.js
<add>'use strict';
<add>
<add>require('../common');
<add>
<add>const runBenchmark = require('../common/benchmark');
<add>
<add>runBenchmark('querystring', [
<add> 'n=1',
<add> 'input="there is nothing to unescape here"',
<add> 'type=noencode'
<add>]); | 1 |
Javascript | Javascript | add strict equalities in src/core/function.js | 8f5894d81af75217ea6b8a0d286d92705b9d82ad | <ide><path>src/core/function.js
<ide> var PDFFunction = (function PDFFunctionClosure() {
<ide> //var mask = IR[8];
<ide> var range = IR[9];
<ide>
<del> if (m != args.length) {
<add> if (m !== args.length) {
<ide> error('Incorrect number of arguments: ' + m + ' != ' +
<ide> ... | 1 |
Text | Text | simplify text in pull-requests.md | 794d8be94e65a13cdbe12ea296637fe9e57e2878 | <ide><path>doc/guides/contributing/pull-requests.md
<ide> $ git remote add upstream https://github.com/nodejs/node.git
<ide> $ git fetch upstream
<ide> ```
<ide>
<del>It is recommended to configure `git` so that it knows who you are:
<add>Configure `git` so that it knows who you are:
<ide>
<ide> ```text
<ide> $ git c... | 1 |
Ruby | Ruby | build fix for observed_classes | f56d4de29c1d6f09f29797fb2fdfb9e010a9c2e2 | <ide><path>activerecord/test/cases/lifecycle_test.rb
<ide> def test_before_destroy
<ide> def test_auto_observer
<ide> topic_observer = TopicaAuditor.instance
<ide> assert_nil TopicaAuditor.observed_class
<del> assert_equal [Topic], TopicaAuditor.instance.observed_classes.to_a
<add> assert_equal [Topic],... | 1 |
Go | Go | return error instead of logging | ef490cae4520ff1c8aa765ec9107885417a2583b | <ide><path>api/server/httputils/httputils.go
<ide> import (
<ide>
<ide> "github.com/docker/docker/errdefs"
<ide> "github.com/pkg/errors"
<del> "github.com/sirupsen/logrus"
<ide> )
<ide>
<ide> // APIVersionKey is the client's requested API version.
<ide> func CheckForJSON(r *http.Request) error {
<ide> ct := r.Head... | 2 |
Python | Python | fix bugs in unused code paths | 3eb219fd97200282b6aed9fe760e843d4916bc06 | <ide><path>numpy/compat/_inspect.py
<ide> def ismethod(object):
<ide> __name__ name with which this method was defined
<ide> im_class class object in which this method belongs
<ide> im_func function object containing implementation of method
<del> im_self ins... | 2 |
PHP | PHP | add exists as alias to has | 183bf16a2c939889f4461e237a851b55cf858f8e | <ide><path>src/Illuminate/Http/Concerns/InteractsWithInput.php
<ide> public function bearerToken()
<ide> }
<ide> }
<ide>
<add> /**
<add> * Determine if the request contains a given input item key.
<add> *
<add> * @param string|array $key
<add> * @return bool
<add> */
<add> publi... | 1 |
Javascript | Javascript | fix flaky redirect tests | 4d529253cf01c0e3c2953eb022eef907c2b7edec | <ide><path>cypress/integration/legacy/redirects/adding-development.js
<add>// These tests require the client to be built and served with additional
<add>// redirect configuration. The Cypress action in .github/workflows/cypress.yml
<add>// contains the necessary commands to do this.
<add>
<ide> describe('Legacy redirec... | 1 |
Java | Java | update viewresolver registration classes | f54cee47b06c041c5c976ce23fc2079d70fad404 | <ide><path>spring-test/src/test/java/org/springframework/test/web/servlet/samples/context/JavaConfigTests.java
<ide> public void configureDefaultServletHandling(DefaultServletHandlerConfigurer conf
<ide> }
<ide>
<ide> @Override
<del> public void configureViewResolution(ViewResolutionRegistry registry) {
<add> pu... | 28 |
Javascript | Javascript | handle normal matrix for instancedmesh | 853a1812a8cbc1cea83f54f2861d83e4a7ff112a | <ide><path>src/renderers/shaders/ShaderChunk/defaultnormal_vertex.glsl.js
<ide> vec3 transformedNormal = objectNormal;
<ide>
<ide> #ifdef USE_INSTANCING
<ide>
<del> transformedNormal = mat3( instanceMatrix ) * transformedNormal;
<add> // this is in lieu of a per-instance normal-matrix
<add> // shear transforms in the... | 1 |
Javascript | Javascript | specify app-version and build-version | 9583c5b2cc48066487e54929bbbba0ceea248a14 | <ide><path>build/lib/package-application.js
<ide> module.exports = function () {
<ide> console.log(`Running electron-packager on ${CONFIG.intermediateAppPath}`)
<ide> // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md
<ide> electronPackager({
<del> arch: process.arch,
<del> as... | 1 |
Javascript | Javascript | remove duplicated code in fromobject | c0bfac6ba9fc48748db3f3558c1d6987013696d8 | <ide><path>lib/buffer.js
<ide> function fromString(string, encoding) {
<ide> return b;
<ide> }
<ide>
<add>function fromArrayLike(obj) {
<add> const length = obj.length;
<add> const b = allocate(length);
<add> for (let i = 0; i < length; i++)
<add> b[i] = obj[i] & 255;
<add> return b;
<add>}
<ide>
<ide> funct... | 2 |
Javascript | Javascript | convert `metadata` to use private `class` fields | 89785a23f3ad78fb27c6995bdd38c97f01947b2f | <ide><path>src/display/metadata.js
<ide> import { objectFromMap } from "../shared/util.js";
<ide>
<ide> class Metadata {
<add> #metadataMap;
<add>
<add> #data;
<add>
<ide> constructor({ parsedData, rawData }) {
<del> this._metadataMap = parsedData;
<del> this._data = rawData;
<add> this.#metadataMap = par... | 1 |
Java | Java | use new features in junit jupiter 5.8.2 | a0d54105e99111755489339e34b3cce3e525b8e9 | <ide><path>spring-jdbc/src/test/java/org/springframework/jdbc/datasource/init/ScriptUtilsUnitTests.java
<ide> public void readAndSplitScriptContainingMultiLineNestedComments() throws Excepti
<ide> }
<ide>
<ide> @ParameterizedTest
<del> @CsvSource(delimiter = '#', value = {
<del> // semicolon
<del> "'select 1\n sel... | 1 |
Javascript | Javascript | accept function as headers value | a7150f1256f2a97a931b3c0d16eab70f45e81cae | <ide><path>src/ng/http.js
<ide> function $HttpProvider() {
<ide> * - **params** – `{Object.<string|Object>}` – Map of strings or objects which will be turned to
<ide> * `?key1=value1&key2=value2` after the url. If the value is not a string, it will be JSONified.
<ide> * - **data** – `{string|O... | 2 |
Javascript | Javascript | add spero for cancer to react native showcase | 9023e19dc3489690f37053b39c58985a2a3d8462 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/us/app/youmeyou/id949540333?mt=8',
<ide> author: 'youmeyou, LLC',
<ide> },
<add> {
<add> name: 'Spero for Cancer',
<add> icon: 'https://s3-us-west-1.amazonaws.com/cancerspot/site_images/Spero1024.pn... | 1 |
PHP | PHP | fix schemacacheshell tests | 7718c6376be2db7950a40bd6c8d3242487939f7b | <ide><path>tests/TestCase/Shell/SchemaCacheShellTest.php
<ide> namespace Cake\Test\TestCase\Shell;
<ide>
<ide> use Cake\Cache\Cache;
<add>use Cake\Console\ConsoleIo;
<ide> use Cake\Console\Exception\StopException;
<add>use Cake\Database\SchemaCache;
<ide> use Cake\Datasource\ConnectionManager;
<ide> use Cake\Shell\Sch... | 1 |
Java | Java | fix scan(seed, f) to emit accumulated values asap | 28d13528c8eac75e454f567af6af41c84beb8bae | <ide><path>src/main/java/io/reactivex/internal/operators/flowable/FlowableScanSeed.java
<ide> package io.reactivex.internal.operators.flowable;
<ide>
<ide> import java.util.concurrent.Callable;
<add>import java.util.concurrent.atomic.*;
<ide>
<ide> import org.reactivestreams.*;
<ide>
<ide> import io.reactivex.except... | 3 |
Python | Python | fix external elasticsearch logs link | e31e515b28a745b7428b42f1559ab456305fb3a0 | <ide><path>airflow/providers/elasticsearch/log/es_task_handler.py
<ide> from airflow.utils.helpers import parse_template_string
<ide> from airflow.utils.log.file_task_handler import FileTaskHandler
<ide> from airflow.utils.log.json_formatter import JSONFormatter
<del>from airflow.utils.log.logging_mixin import LoggingM... | 7 |
Ruby | Ruby | fix the next version of rails from 5.3 to 6.0 | 1d264f0bcd5081dcb4e5049a8124706f7623e63b | <ide><path>activerecord/lib/active_record/relation/calculations.rb
<ide> def count(column_name = nil)
<ide> unless column_name.nil?
<ide> ActiveSupport::Deprecation.warn \
<ide> "When `count' is called with a block, it ignores other arguments. " \
<del> "This behavior is now dep... | 1 |
Javascript | Javascript | fix data loss with readable event | 12274a5c1b0a85f6f8eaf3f6e5c78b1de7617dfc | <ide><path>lib/internal/child_process.js
<ide> util.inherits(ChildProcess, EventEmitter);
<ide> function flushStdio(subprocess) {
<ide> if (subprocess.stdio == null) return;
<ide> subprocess.stdio.forEach(function(stream, fd, stdio) {
<del> if (!stream || !stream.readable)
<add> if (!stream || !stream.readabl... | 2 |
Ruby | Ruby | remove unused variable | 1308070e66b3b4dbf979eceb2f374d3a3a81bb5d | <ide><path>Library/Homebrew/cmd/pull.rb
<ide> def pull
<ide> begin
<ide> changed_formulae << Formula[name]
<ide> # Make sure we catch syntax errors.
<del> rescue Exception => e
<add> rescue Exception
<ide> next
<ide> end
<ide> end | 1 |
Go | Go | send archive options via pipe in chrootarchive | 908db51804635ce002e97e4efb867f7352204f8e | <ide><path>pkg/chrootarchive/archive.go
<ide> package chrootarchive
<ide>
<ide> import (
<add> "bytes"
<ide> "encoding/json"
<ide> "flag"
<ide> "fmt"
<ide> func untar() {
<ide>
<ide> var options *archive.TarOptions
<ide>
<del> if err := json.Unmarshal([]byte(os.Getenv("OPT")), &options); err != nil {
<add> //rea... | 2 |
Ruby | Ruby | use more and cleanup new args apis | a7fe0ed8472a67362793059cf633d3030ffa11d9 | <ide><path>Library/Homebrew/cmd/--cache.rb
<ide> def __cache_args
<ide> def __cache
<ide> __cache_args.parse
<ide>
<del> if ARGV.named.empty?
<add> if args.no_named?
<ide> puts HOMEBREW_CACHE
<ide> else
<del> Homebrew.args.formulae.each do |f|
<add> args.formulae.each do |f|
<ide> ... | 41 |
Go | Go | remove unused field | a46ad5e7044313d98431788d6177691c4645d527 | <ide><path>builder/dockerfile/imagecontext.go
<ide> func (m *imageSources) Add(im *imageMount) {
<ide>
<ide> // imageMount is a reference to an image that can be used as a builder.Source
<ide> type imageMount struct {
<del> image builder.Image
<del> source builder.Source
<del> layer builder.ROLayer
<add> image build... | 1 |
Python | Python | raise meaningful error when loss cannot be found | 44200a4b8ecbb72fc704bee8f10880206886bc90 | <ide><path>keras/engine/compile_utils.py
<ide> # ==============================================================================
<ide> """Utilities for `Model.compile`."""
<ide>
<del>import tensorflow.compat.v2 as tf
<ide>
<ide> import copy
<ide> from keras import losses as losses_mod
<ide> from keras import metrics a... | 3 |
Javascript | Javascript | simplify if statement in webgltextures | bb01ca7eb6dfab9cca85f440a5dfda292b184c7a | <ide><path>src/renderers/webgl/WebGLTextures.js
<ide> function WebGLTextures( _gl, extensions, state, properties, capabilities, paramT
<ide>
<ide> function textureNeedsPowerOfTwo( texture ) {
<ide>
<del> if ( texture.wrapS !== ClampToEdgeWrapping || texture.wrapT !== ClampToEdgeWrapping ) return true;
<del> if ( t... | 1 |
Javascript | Javascript | add test for error in aftereach | fdc0bb232a259faf791b901f583e09bba3213ba5 | <ide><path>test/scenario/RunnerSpec.js
<ide> describe('Runner', function(){
<ide> it('should execute afterEach after every it', function() {
<ide> Describe('describe name', function(){
<ide> AfterEach(logger('after;'));
<del> It('should text', logger('body;'));
<add> It('should... | 1 |
Ruby | Ruby | handle legacy formulae pr from homebrew/homebrew | deed8e566c096da391a92060f19e5093ec3cd1f6 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> # --junit: Generate a JUnit XML test results file.
<ide> # --no-bottle: Run brew install without --build-bottle
<ide> # --keep-old: Run brew bottle --keep-old to build new bottles for a single platform.
<add># --legacy Bulid formula from legacy ... | 1 |
PHP | PHP | add strict typing for translation related classes | 2a1afb47a103b77015174ae1c3f92b5ec6cc09e3 | <ide><path>src/I18n/ChainMessagesLoader.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> public function __construct(array $loaders)
<ide> * @retu... | 13 |
Javascript | Javascript | use common.pipe for emptytxt path | 1f79e4f4b499040bf927b5465c3ac286aa859d43 | <ide><path>test/simple/test-net-pipe-connect-errors.js
<ide> var accessErrorFired = false;
<ide>
<ide> // Test if ENOTSOCK is fired when trying to connect to a file which is not
<ide> // a socket.
<del>var emptyTxt = path.join(common.fixturesDir, 'empty.txt');
<add>var emptyTxt = common.PIPE + '.txt';
<add>function cl... | 1 |
Text | Text | remove trailing whitespace | 6fc98b04a930696246b8a40d5ca918c6506f1b40 | <ide><path>docs/recipes/ReducingBoilerplate.md
<ide> export const addTodo = makeActionCreator(ADD_TODO, 'todo')
<ide> export const editTodo = makeActionCreator(EDIT_TODO, 'id', 'todo')
<ide> export const removeTodo = makeActionCreator(REMOVE_TODO, 'id')
<ide> ```
<del>There are also utility libraries to aid in generati... | 1 |
Python | Python | fix digital ocean tests | dc1290f0213652eb5466cadda5cae291586f4bf1 | <ide><path>libcloud/test/common/test_digitalocean_v2.py
<ide> def _v2_actions_12345670(self, method, url, body, headers):
<ide>
<ide> def _v2_actions_page_1(self, method, url, body, headers):
<ide> body = self.fixtures.load('_v2_actions_page_1.json')
<del> return (self.response[None], body, {},
<del... | 1 |
Mixed | Text | fix the typo of urls | fa378413f88054d0a336d675e7280930ddc86cb2 | <ide><path>daemon/graphdriver/devmapper/README.md
<ide> This uses the `dm` prefix and would be used something like `docker daemon --stor
<ide>
<ide> These options are currently documented both in [the man
<ide> page](../../../man/docker.1.md) and in [the online
<del>documentation](https://docs.docker.com/engine/usergu... | 3 |
PHP | PHP | add more operators for various databases | 6debd53e976daf189637462f6040f64b1cbb25eb | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> class Builder {
<ide> protected $operators = array(
<ide> '=', '<', '>', '<=', '>=', '<>', '!=',
<ide> 'like', 'not like', 'between', 'ilike',
<add> '&', '|', '^', '<<', '>>',
<ide> );
<ide>
<ide> /**
<ide><path>src/Illuminate/Database/Query/Grammars/P... | 4 |
Java | Java | fix marble of maybe.flatmap events to maybesource | 835ab00699d39c092ef6e90cf1868722b9180fe1 | <ide><path>src/main/java/io/reactivex/Maybe.java
<ide> public final <R> Maybe<R> flatMap(Function<? super T, ? extends MaybeSource<? ex
<ide> * Maps the onSuccess, onError or onComplete signals of this Maybe into MaybeSource and emits that
<ide> * MaybeSource's signals.
<ide> * <p>
<del> * <img width... | 1 |
Python | Python | prepare 1.2.1 pypi release | 262e5751f474f51197ea13e3457bf348c7d6ff13 | <ide><path>keras/__init__.py
<ide> from . import optimizers
<ide> from . import regularizers
<ide>
<del>__version__ = '1.2.0'
<add>__version__ = '1.2.1'
<ide><path>setup.py
<ide>
<ide>
<ide> setup(name='Keras',
<del> version='1.2.0',
<add> version='1.2.1',
<ide> description='Deep Learning for Python'... | 2 |
Text | Text | fix the spelling error in stream.md | e9518254d79645c3c060ea8d7f4898f8e12af9bb | <ide><path>doc/api/stream.md
<ide> If the loop terminates with a `break` or a `throw`, the stream will be
<ide> destroyed. In other terms, iterating over a stream will consume the stream
<ide> fully. The stream will be read in chunks of size equal to the `highWaterMark`
<ide> option. In the code example above, data wil... | 1 |
Ruby | Ruby | extract variable out of loop | 1ed6ff1006fb5fd816b8b0267754b3113828e918 | <ide><path>actionmailer/lib/action_mailer/mail_helper.rb
<ide> def format_paragraph(text, len = 72, indent = 2)
<ide> end
<ide> end
<ide>
<add> indentation = " " * indent
<ide> sentences.map { |sentence|
<del> "#{" " * indent}#{sentence.join(' ')}"
<add> "#{indentation}#{sentence... | 1 |
Text | Text | add link to official string documentation | e5af318f13f3ca3c58e30a3ae9cf434f38396bc9 | <ide><path>guide/english/java/strings/index.md
<ide> The result will be:
<ide> My
<ide> ```
<ide>
<add>**More Information:**
<add>- [String Documentation](https://docs.oracle.com/javase/7/docs/api/java/lang/String.html) | 1 |
PHP | PHP | fix variable name | bf2d81458d18579443ffd2557298ef1e8aaf7fe3 | <ide><path>src/Illuminate/Mail/Transport/LogTransport.php
<ide> protected function getMimeEntityString(Swift_Mime_MimeEntity $entity)
<ide>
<ide> foreach ($entity->getChildren() as $children)
<ide> {
<del> $string .= PHP_EOL.PHP_EOL.$this->getMimeEntityString($entity);
<add> $string .= PHP_EOL.PHP_EOL.$this->g... | 1 |
Ruby | Ruby | add strategy to livecheck dsl | 72985277e84339912cc4f6771cfba12fd7e0b508 | <ide><path>Library/Homebrew/livecheck.rb
<ide> def initialize(formula)
<ide> @regex = nil
<ide> @skip = false
<ide> @skip_msg = nil
<add> @strategy = nil
<ide> @url = nil
<ide> end
<ide>
<ide> def skip?
<ide> @skip
<ide> end
<ide>
<add> # Sets the strategy instance variable to the provided... | 2 |
Go | Go | add a lockedmanageraction method to cluster… | 250e05e42773a875d2fb8248b94fa72f2934a4b6 | <ide><path>daemon/cluster/cluster.go
<ide> func detectLockedError(err error) error {
<ide> }
<ide> return err
<ide> }
<add>
<add>func (c *Cluster) lockedManagerAction(fn func(ctx context.Context, state nodeState) error) error {
<add> c.mu.RLock()
<add> defer c.mu.RUnlock()
<add>
<add> state := c.currentNodeState()
<a... | 7 |
Ruby | Ruby | move utilities out of `react_native_pods` - part 2 | 4f732ba9ee2a1e162729c97d5c12ea771b3a424a | <ide><path>scripts/cocoapods/__tests__/test_utils/InstallerMock.rb
<ide> def target_with_name(name)
<ide>
<ide> class PodsProjectMock
<ide> attr_reader :targets
<add> attr_reader :native_targets
<ide> attr_reader :path
<ide> attr_reader :build_configurations
<ide> @pod_group
<add> attr_reader :sa... | 4 |
PHP | PHP | add another method for more fluency | 75fa3461ee998bc1f8475de97917b94a25d5d35c | <ide><path>src/Illuminate/Filesystem/FilesystemManager.php
<ide> public function __construct($app)
<ide> $this->app = $app;
<ide> }
<ide>
<add> /**
<add> * Get a filesystem instance.
<add> *
<add> * @param string $name
<add> * @return \Illuminate\Contracts\Filesystem\Filesystem
<add> */
<add> public function... | 1 |
Javascript | Javascript | remove unneeded test statement | ff5766fc2e4c2964ff4278a08ce7146b59aa141a | <ide><path>test/parallel/test-event-emitter-subclass.js
<ide> function MyEE(cb) {
<ide>
<ide> const myee = new MyEE(common.mustCall());
<ide>
<del>myee.hasOwnProperty('usingDomains');
<del>
<ide> Object.setPrototypeOf(ErrorEE.prototype, EventEmitter.prototype);
<ide> Object.setPrototypeOf(ErrorEE, EventEmitter);
<ide... | 1 |
PHP | PHP | fix geturlrange docblock. | d298373a22f95ab5d13cfdf0cb3b3baa0d90e8f5 | <ide><path>src/Illuminate/Contracts/Pagination/LengthAwarePaginator.php
<ide> interface LengthAwarePaginator extends Paginator
<ide> *
<ide> * @param int $start
<ide> * @param int $end
<del> * @return string
<add> * @return array
<ide> */
<ide> public function getUrlRange($start, $en... | 2 |
Mixed | Python | remove dependency on pytest for running tests | 35401fe50fa3e460b2a4422630b017f106c79e03 | <ide><path>README.md
<ide> pip install [--editable] .
<ide>
<ide> A series of tests are included for the library and the example scripts. Library tests can be found in the [tests folder](https://github.com/huggingface/transformers/tree/master/transformers/tests) and examples tests in the [examples folder](https://gith... | 50 |
PHP | PHP | fix some formatting issues | 16c0e3e6c176055bef248eb88b385c881fb13ed6 | <ide><path>src/Illuminate/Console/Command.php
<ide> use Symfony\Component\Console\Input\InputInterface;
<ide> use Symfony\Component\Console\Output\OutputInterface;
<ide> use Symfony\Component\Console\Question\ChoiceQuestion;
<del>use Symfony\Component\Console\Command\Command as SymfonyCommand;
<ide> use Symfony\Compone... | 1 |
Python | Python | add type annotations to setup.py | 402274641168f412f44c545c34f3e7edf5cf1476 | <ide><path>setup.py
<ide> class CleanCommand(Command):
<ide> description = "Tidy up the project root"
<ide> user_options: List[str] = []
<ide>
<del> def initialize_options(self):
<add> def initialize_options(self) -> None:
<ide> """Set default values for options."""
<ide>
<del> def finalize_o... | 1 |
Java | Java | improve exceptions for multi-operand expressions | bff36fb1456ff498354960a725f63f9116ee5b74 | <ide><path>spring-expression/src/main/java/org/springframework/expression/spel/SpelMessage.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2013 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you ... | 4 |
Text | Text | update react lesson link (remove 404) | 7f6a653c289d61cc0286e887cbb836ae2a51d226 | <ide><path>curriculum/challenges/english/03-front-end-libraries/react/introducing-inline-styles.english.md
<ide> forumTopicId: 301395
<ide>
<ide> ## Description
<ide> <section id='description'>
<del>There are other complex concepts that add powerful capabilities to your React code. But you may be wondering about the m... | 1 |
Go | Go | create the bridge device with ioctl | 7a94cdf8edd917899a38a58917cd4439652047a1 | <ide><path>network.go
<ide> import (
<ide> "net"
<ide> "strconv"
<ide> "sync"
<add> "syscall"
<add> "unsafe"
<ide> )
<ide>
<ide> const (
<ide> DefaultNetworkBridge = "docker0"
<ide> DisableNetworkBridge = "none"
<ide> portRangeStart = 49153
<ide> portRangeEnd = 65535
<add> siocBRADDBR = 0... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.