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 | add tests for idempotent methods and csrf tokens | 322ebd49971578c955c0600307d3399d5c755e5e | <ide><path>tests/TestCase/Controller/Component/CsrfComponentTest.php
<ide> public function testSettingCookie()
<ide> $this->assertEquals($cookie['value'], $controller->request->params['_csrfToken']);
<ide> }
<ide>
<add> /**
<add> * Data provider for HTTP method tests.
<add> *
<add> * @return... | 1 |
PHP | PHP | fix corrupted global state | 75207a00c1b98c1b1240b6f82fe01082ad58249f | <ide><path>tests/TestCase/Routing/Filter/LocaleSelectorFilterTest.php
<ide> */
<ide> class LocaleSelectorFilterTest extends TestCase {
<ide>
<add>/**
<add> * setup
<add> *
<add> * @return void
<add> */
<add> public function setUp() {
<add> parent::setUp();
<add> $this->locale = Locale::getDefault();
<add> }
<add>
<... | 1 |
PHP | PHP | add missing tests | 5b2bc35ecd271eaf7d4dc8f37f1399811edd2a37 | <ide><path>tests/Foundation/FoundationApplicationTest.php
<ide> public function testBeforeBootstrappingAddsClosure()
<ide> $this->assertArrayHasKey(0, $app['events']->getListeners('bootstrapping: Illuminate\Foundation\Bootstrap\RegisterFacades'));
<ide> }
<ide>
<add> public function testTerminationTests... | 1 |
Python | Python | change description in image | a3dfe223dc98151e9eb85fb04e72a867576e9b16 | <ide><path>libcloud/compute/drivers/outscale.py
<ide> def ex_create_image_export_task(
<ide>
<ide> :param osu_export_api_secret_key: The secret key of the
<ide> OSU account that enables you to access the bucket.
<del> :type osu_export_api_secret_key: ``bool``
<add> :type ... | 1 |
Javascript | Javascript | remove temp files | d87fb0e29d21eaab5c1548c821462663f7ebad94 | <ide><path>test/fixtures/temp-1000/file.js
<del>require('./file2')
<ide>\ No newline at end of file
<ide><path>test/fixtures/temp-1000/file2.js
<del>original
<ide>\ No newline at end of file | 2 |
PHP | PHP | expand complex conditional | 388940cd8be7d378a18ed557bdbad97f94f1ae4b | <ide><path>src/Database/Expression/QueryExpression.php
<ide> public function __call($method, $args)
<ide> */
<ide> public function isCallable($c)
<ide> {
<del> return (
<del> !is_string($c) &&
<del> (
<del> (is_array($c) && isset($c[0]) && is_object($c[0]) && is_... | 1 |
Ruby | Ruby | remove deprecated calls from the tests | 0507bc3f58b7d6a36d93dcd5c21d7f40e9322c80 | <ide><path>lib/arel/visitors/mssql.rb
<ide> def select_count? x
<ide> x.projections.length == 1 && Arel::Nodes::Count === x.projections.first
<ide> end
<ide>
<del> # fixme raise exception of there is no pk?
<del> # fixme!! Table.primary_key will be depricated. What is the replacement??
<add> ... | 3 |
Javascript | Javascript | add more benchmark cases | 78839b2352d48b9025ae85aa550fd722bf820133 | <ide><path>test/benchmarkCases/libraries/webpack.config.js
<add>module.exports = {
<add> entry: ["react", "react-dom", "lodash"]
<add>}
<ide><path>test/benchmarkCases/many-modules-source-map/a.js
<add>require("./b?0" + __resourceQuery);
<add>require("./b?1" + __resourceQuery);
<add>require("./b?2" + __resourceQuery);
<... | 12 |
Python | Python | update the train script, fixing gpu memory leak | 3376d4d6e85ae1da26f0c86711f5c12b3ad3b1b3 | <ide><path>spacy/cli/train.py
<ide>
<ide>
<ide> def train(language, output_dir, train_data, dev_data, n_iter, n_sents,
<del> use_gpu, tagger, parser, ner, parser_L1):
<add> use_gpu, no_tagger, no_parser, no_entities, parser_L1):
<ide> output_path = util.ensure_path(output_dir)
<ide> train_pa... | 1 |
Javascript | Javascript | tune a worker executor | cc0b504224415bf9ad2dd338fb61c627f1d3c929 | <ide><path>client/src/templates/Challenges/rechallenge/transformers.js
<ide> async function transformSASS(element) {
<ide> await Promise.all(
<ide> [].map.call(styleTags, async style => {
<ide> style.type = 'text/css';
<del> style.innerHTML = await sassWorker.execute(style.innerHTML, 2000);
<add> ... | 2 |
Ruby | Ruby | improve error when no url given | 5193d835a443d6901bb28cbe451aaa0c08e299e7 | <ide><path>Library/Homebrew/formula.rb
<ide> def initialize name='__UNKNOWN__'
<ide> @version='HEAD'
<ide> end
<ide>
<del> raise if @url.nil?
<add> raise "No url provided for formula #{name}" if @url.nil?
<ide> @name=name
<ide> validate_variable :name
<ide> | 1 |
Javascript | Javascript | add .extend test for defined accessor properties | 9748e436ad80d6a2e1661ba4cf8d7391ed87c3ad | <ide><path>test/unit/core.js
<ide> QUnit.test( "jQuery.extend(Object, Object)", function( assert ) {
<ide> assert.deepEqual( options2, options2Copy, "Check if not modified: options2 must not be modified" );
<ide> } );
<ide>
<add>QUnit.test( "jQuery.extend(Object, Object {created with \"defineProperties\"})", function... | 1 |
Python | Python | use the yield syntax in pytest's fixtures | 5963cb5a5172bce3a1ff7b0f8c64230f043c9cfd | <ide><path>examples/minitwit/tests/test_minitwit.py
<ide>
<ide>
<ide> @pytest.fixture
<del>def client(request):
<add>def client():
<ide> db_fd, minitwit.app.config['DATABASE'] = tempfile.mkstemp()
<ide> client = minitwit.app.test_client()
<ide> with minitwit.app.app_context():
<ide> minitwit.init_... | 3 |
Python | Python | fix bad use of .dtype | ee91d88c01947723ae6ee7f0255f8357f7d8845c | <ide><path>numpy/lib/polynomial.py
<ide> def poly(seq_of_zeros):
<ide> for k in range(len(seq_of_zeros)):
<ide> a = NX.convolve(a, [1, -seq_of_zeros[k]], mode='full')
<ide>
<del> if issubclass(a.dtype, NX.complexfloating):
<add> if issubclass(a.dtype.type, NX.complexfloating):
<ide> # if comp... | 1 |
Java | Java | introduce alias for 'value' attribute in @scope | 2d23f42609c2e6a2ee6b0507f4b800870a63ca26 | <ide><path>spring-context/src/main/java/org/springframework/context/annotation/AnnotationScopeMetadataResolver.java
<ide> /*
<del> * Copyright 2002-2013 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Lice... | 5 |
Javascript | Javascript | fix occasional test failures | 7038b623e07aa2f4f08a4b6c8115020ee940c57f | <ide><path>run-tests.js
<ide> const UNIT_TEST_EXT = '.unit.test.js'
<ide> const DEV_TEST_EXT = '.dev.test.js'
<ide> const PROD_TEST_EXT = '.prod.test.js'
<ide>
<add>const NON_CONCURRENT_TESTS = ['test/integration/basic/test/index.test.js']
<add>
<ide> // which types we have configured to run separate
<ide> const confi... | 2 |
Text | Text | fix typo on api.md | f5c51afd5186b2389250159a333a1160c09aee4b | <ide><path>docs/developers/api.md
<ide> To get an item that was clicked on, `getElementsAtEventForMode` can be used.
<ide>
<ide> ```javascript
<ide> function clickHandler(evt) {
<del> const points = myChart.getElementAtEventForMode(evt, 'nearest', { intersect: true }, true);
<add> const points = myChart.getEleme... | 1 |
Javascript | Javascript | add special values to legacy `{{each}}`s' keypath | 930513b5c86007baa3e81c4d94f6ea8715a17880 | <ide><path>packages/ember-htmlbars/lib/helpers/-legacy-each-with-controller.js
<ide> import { get } from "ember-metal/property_get";
<ide> import { forEach } from "ember-metal/enumerable_utils";
<ide> import normalizeSelf from "ember-htmlbars/utils/normalize-self";
<add>import decodeEachKey from "ember-htmlbars/utils/d... | 4 |
Javascript | Javascript | set listener first, emit 'data' later | 45941811dce8988a4cc296436a8843d511ae35af | <ide><path>lib/_stream_readable.js
<ide> Readable.prototype.unpipe = function(dest) {
<ide> // This is *not* part of the new readable stream interface.
<ide> // It is an ugly unfortunate mess of history.
<ide> Readable.prototype.on = function(ev, fn) {
<add> var res = Stream.prototype.on.call(this, ev, fn);
<add>
<ide... | 2 |
Mixed | Ruby | add missing keys from journey on failed url format | 0b6175ac2df96ebfca1baac89c20deaa13e61142 | <ide><path>actionpack/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* When building a URL fails, add missing keys provided by Journey. Failed URL
<add> generation now returns a 500 status instead of a 404.
<add>
<add> *Richard Schneeman*
<add>
<ide> * Deprecate availbility of ActionView::Recor... | 6 |
Ruby | Ruby | fix github & gitlab url processing | 74fd700445c94b76a72fc67452fec934645e0389 | <ide><path>Library/Homebrew/livecheck/livecheck.rb
<ide> module Homebrew
<ide> module Livecheck
<ide> module_function
<ide>
<add> GITEA_INSTANCES = %w[
<add> codeberg.org
<add> gitea.com
<add> opendev.org
<add> tildegit.org
<add> ].freeze
<add>
<add> GOGS_INSTANCES = %w[
<add> l... | 1 |
PHP | PHP | fix flash handling to be vastly simpler | a761f383373db8863a4f5a93673ad8bd6cf60be7 | <ide><path>src/Illuminate/Session/FlashBag.php
<del><?php namespace Illuminate\Session;
<del>
<del>/*
<del> * This file is part of the Symfony package.
<del> *
<del> * (c) Fabien Potencier <fabien@symfony.com>
<del> *
<del> * For the full copyright and license information, please view the LICENSE
<del> * file that was ... | 4 |
PHP | PHP | wrap long lines and fix incorrect assertions | fad068d84552c95bd1079dd825f6953ff2293f82 | <ide><path>tests/TestCase/ORM/AssociationTest.php
<ide> public function testTargetPlugin()
<ide> $table = $this->association->target();
<ide> $this->assertInstanceOf('TestPlugin\Model\Table\CommentsTable', $table);
<ide>
<del> $this->assertTrue(TableRegistry::exists('TestPlugin.ThisAssociationNa... | 1 |
Go | Go | remove unnecessary line | 145dfd924c8489cb2099bc1a86a01cd1fff19b70 | <ide><path>plugin/backend_linux.go
<ide> func (pm *Manager) Upgrade(ctx context.Context, ref reference.Named, name string
<ide> defer pm.muGC.RUnlock()
<ide>
<ide> // revalidate because Pull is public
<del> nameref, err := reference.ParseNormalizedNamed(name)
<del> if err != nil {
<add> if _, err := reference.ParseN... | 1 |
Go | Go | remove unnecessary string formats | 23ac56fdd0edf55b1bd8d90e4774a10975384571 | <ide><path>libnetwork/api/api_test.go
<ide> func TestSandboxOptionParser(t *testing.T) {
<ide> }
<ide>
<ide> if len(sb.parseOptions()) != 9 {
<del> t.Fatalf("Failed to generate all libnetwork.SandboxOption methods")
<add> t.Fatal("Failed to generate all libnetwork.SandboxOption methods")
<ide> }
<ide> }
<ide>
<i... | 42 |
Javascript | Javascript | propagate signal.reason in awaitable question | 07fbed3d5f5520a97c7c0521f76addc6550b8fcb | <ide><path>lib/readline.js
<ide> Interface.prototype.question[promisify.custom] = function(query, options) {
<ide> options = typeof options === 'object' && options !== null ? options : {};
<ide>
<ide> if (options.signal && options.signal.aborted) {
<del> return PromiseReject(new AbortError());
<add> return P... | 3 |
Ruby | Ruby | move the mime registration code to setup so that | cdbbf6fd6bef3f286503859c585ada8fe66a3875 | <ide><path>actionpack/test/controller/mime_responds_test.rb
<ide> def custom_type_handling
<ide> end
<ide> end
<ide>
<del> Mime::Type.register("text/x-mobile", :mobile)
<ide>
<ide> def custom_constant_handling
<ide> respond_to do |type|
<ide> def all_types_with_layout
<ide> end
<ide> end
<ide>
<de... | 1 |
Ruby | Ruby | eliminate warnings for am on 1.8 | cd9ffd11e13ef6e62eba2cbd5c3760ff04132820 | <ide><path>actionmailer/lib/action_mailer/old_api.rb
<ide> module OldApi #:nodoc:
<ide> # replies to this message.
<ide> adv_attr_accessor :reply_to
<ide>
<del> # Specify additional headers to be added to the message.
<del> adv_attr_accessor :headers
<del>
<ide> # Specify the order in which... | 11 |
Ruby | Ruby | require formula name to be in issue title | 1937625d861ef1ef7bc0796477fdb81e7dbb9cf4 | <ide><path>Library/Homebrew/utils/github.rb
<ide> def search_code(**qualifiers)
<ide>
<ide> def issues_for_formula(name, options = {})
<ide> tap = options[:tap] || CoreTap.instance
<del> search_issues(name, state: "open", repo: "#{tap.user}/homebrew-#{tap.repo}")
<add> search_issues(name, state: "open", re... | 1 |
Javascript | Javascript | remove meteor-package from bump_version files | d6e4005204108c6253cf525ff67ae9c328ecbe1a | <ide><path>tasks/bump_version.js
<ide> module.exports = function (grunt) {
<ide> }
<ide> });
<ide>
<del> grunt.config('string-replace.meteor-package-js', {
<del> files: {'meteor/package.js': 'meteor/package.js'},
<del> options: {
<del> replacements: [
<de... | 1 |
Javascript | Javascript | use const in toolbar.js | 790b0aede6d328a6a2b8c4ea786951e0c2b96a99 | <ide><path>web/toolbar.js
<ide> * See the License for the specific language governing permissions and
<ide> * limitations under the License.
<ide> */
<add>/* eslint no-var: error, prefer-const: error */
<ide>
<ide> import {
<ide> animationStarted, DEFAULT_SCALE, DEFAULT_SCALE_VALUE, MAX_SCALE,
<ide> class Toolbar... | 1 |
Javascript | Javascript | add hascrypto check to tls-socket-close | 5a71cb6d32c2e2b12cc5db9b7533fe42aba50c46 | <ide><path>test/parallel/test-tls-socket-close.js
<ide> 'use strict';
<ide> const common = require('../common');
<add>if (!common.hasCrypto) {
<add> common.skip('missing crypto');
<add> return;
<add>}
<ide> const assert = require('assert');
<ide>
<ide> const tls = require('tls'); | 1 |
Javascript | Javascript | move offscreen logic from suspense fiber | 9ab90de602357407fb03a27715b61761a258a8c4 | <ide><path>packages/react-reconciler/src/ReactFiberCommitWork.new.js
<ide> function commitMutationEffectsOnFiber(finishedWork: Fiber, root: FiberRoot) {
<ide> case SuspenseComponent: {
<ide> const newState: OffscreenState | null = finishedWork.memoizedState;
<ide> const isHidden = newState !== nul... | 5 |
Javascript | Javascript | allow non-indexed buffergeometries | 8874516ec257f1782adfb7276a557973ab0d928d | <ide><path>src/renderers/WebGLRenderer.js
<ide> THREE.WebGLRenderer = function ( parameters ) {
<ide>
<ide> if ( object instanceof THREE.Mesh ) {
<ide>
<del> var offsets = geometry.offsets;
<add> var index = geometry.attributes["index"];
<add> if (index) {
<add> // Indexed triangles
<add> ... | 1 |
Go | Go | increase the coverage of pkg/plugins | 8dd100a2297a34a0aef422383117fb0c3314fba1 | <ide><path>pkg/plugins/client.go
<ide> func NewClient(addr string, tlsConfig *tlsconfig.Options) (*Client, error) {
<ide> }
<ide>
<ide> // NewClientWithTimeout creates a new plugin client (http).
<del>func NewClientWithTimeout(addr string, tlsConfig *tlsconfig.Options, timeoutInSecs int) (*Client, error) {
<add>func N... | 6 |
PHP | PHP | remove unused "use" statements | 4d5cdc7c1ca67b47da7e92973d337b14ec123663 | <ide><path>tests/TestCase/View/ViewTest.php
<ide> use Cake\Event\EventInterface;
<ide> use Cake\Event\EventListenerInterface;
<ide> use Cake\Http\ServerRequest;
<del>use Cake\Routing\Router;
<ide> use Cake\TestSuite\TestCase;
<ide> use Cake\View\Helper;
<ide> use Cake\View\View;
<ide><path>tests/test_app/TestApp/Contro... | 4 |
Python | Python | save pod name to xcom for kubernetespodoperator | 37d549bde79cd560d24748ebe7f94730115c0e88 | <ide><path>airflow/providers/cncf/kubernetes/operators/kubernetes_pod.py
<ide> def execute(self, context) -> Optional[str]:
<ide>
<ide> label_selector = self._get_pod_identifying_label_string(labels)
<ide>
<del> self.namespace = self.pod.metadata.namespace
<del>
<ide> pod_list = cli... | 4 |
Java | Java | delete unused imports | 24adc7d3c6a27102696ebacd14bbc247a6acba8b | <ide><path>spring-web/src/main/java/org/springframework/http/codec/json/Jackson2SmileDecoder.java
<ide> package org.springframework.http.codec.json;
<ide>
<ide> import java.nio.charset.StandardCharsets;
<del>import java.util.Arrays;
<del>import java.util.Collections;
<del>import java.util.List;
<ide>
<ide> import com... | 6 |
Ruby | Ruby | add didyoumean suggestions for missing templates | 6fa9cd88b9f66c83ae7608e7ae166c0abf6fe76c | <ide><path>actionview/lib/action_view/template/error.rb
<ide> def message
<ide> end
<ide>
<ide> class MissingTemplate < ActionViewError #:nodoc:
<del> attr_reader :path
<add> attr_reader :path, :paths, :prefixes
<ide>
<ide> def initialize(paths, path, prefixes, partial, details, *)
<add> if partial... | 4 |
Text | Text | add stack service and fix typos | 0a56e81ca4d7af22e5c623569a89d800a6778ed1 | <ide><path>docs/reference/commandline/attach.md
<ide> Options:
<ide> --sig-proxy Proxy all received signals to the process (default true)
<ide> ```
<ide>
<del>The `docker attach` command allows you to attach to a running container using
<del>the container's ID or name, either to view its ongoing outpu... | 2 |
Ruby | Ruby | move number_to_human test from ap to as | 38f347a825cf132b1e0da9402532b40d6ea68522 | <ide><path>actionpack/test/template/number_helper_test.rb
<ide> def test_number_to_human_with_custom_units
<ide> assert_equal '100<script></script>000 Quadrillion', number_to_human(10**20, :delimiter => "<script></script>")
<ide> end
<ide>
<del> def test_number_to_human_with_custom_units_that_are_mi... | 2 |
PHP | PHP | update docblocks in association | 5a127ec5c372f3efb4d94488bc414b7790a4185d | <ide><path>Cake/ORM/Association.php
<ide> abstract class Association {
<ide> protected $_canBeJoined = false;
<ide>
<ide> /**
<del> * The className of the target table object
<add> * The class name of the target table object
<ide> *
<ide> * @var string
<ide> */
<ide> abstract class Association {
<ide>
<ide> /**
<... | 1 |
Python | Python | make sorting benchmarks all sort integers | a083ce52b673c6dcadd800d64bb098d89f1e8e12 | <ide><path>benchmarks/sorting.py
<ide>
<ide> N = 10000
<ide> b.title = 'Sorting %d elements' % N
<del>b['numarray'] = ('a=N.array(None,shape=%d);a.sort()'%N,'')
<del>b['numpy'] = ('a=N.empty(shape=%d);a.sort()'%N,'')
<del>b['Numeric'] = ('a=N.empty(shape=%d);N.sort(a)'%N,'')
<add>b['numarray'] = ('a=N.array(None,shape... | 1 |
Text | Text | add line-height to unitless css props | 9ed72b43e8b15877d74a170fb369b19773bb285d | <ide><path>docs/cookbook/cb-06-style-prop-value-px tip.md
<ide> Sometimes you _do_ want to keep the CSS properties unitless. Here's a list of pr
<ide>
<ide> - fillOpacity
<ide> - fontWeight
<add>- lineHeight
<ide> - opacity
<ide> - orphans
<ide> - zIndex
<ide><path>docs/cookbook/cb-06-style-prop-value-px.md
<ide> Some... | 2 |
Python | Python | fix the loss calculation of prophetnet | 143738214cb83e471f3a43652617c8881370342c | <ide><path>src/transformers/models/prophetnet/modeling_prophetnet.py
<ide> def forward(
<ide> >>> last_hidden_states = outputs.last_hidden_state # main stream hidden states
<ide> >>> last_hidden_states_ngram = outputs.last_hidden_state_ngram # predict hidden states
<ide> """
<del>
<del... | 1 |
Python | Python | fix number_of_digits bug | d687030d9e582534c850493ebc8a22fb4cf1ec81 | <ide><path>data_structures/binary_tree/basic_binary_tree.py
<ide> class Node:
<ide> """
<ide> A Node has data variable and pointers to Nodes to its left and right.
<ide> """
<add>
<ide> def __init__(self, data: int) -> None:
<ide> self.data = data
<ide> self.left: Optional[Node] = None
<... | 2 |
Ruby | Ruby | restore tests for 6.0 new framework defaults | a6711d6e9d72ee72615d5c24d761dff5e94b6573 | <ide><path>railties/test/application/configuration_test.rb
<ide> def index
<ide> assert_equal "https://example.org/", last_response.location
<ide> end
<ide>
<del> test "ActiveSupport::MessageEncryptor.use_authenticated_message_encryption can be configured via config.active_support.use_authenticated_messag... | 1 |
PHP | PHP | consolidate more configuration data | b4d655a3c859da494deacc7261994d7cf64d73b8 | <ide><path>App/Config/app.php
<ide> namespace App\Config;
<ide>
<ide> use Cake\Core\Configure;
<add>use Cake\Core\ClassLoader;
<ide>
<ide> /**
<ide> * CakePHP Debug Level:
<ide> */
<ide> Configure::write('debug', 2);
<ide>
<add>/**
<add> * The root namespace your application uses. This should match
<add> * the t... | 8 |
Go | Go | make more package in system support darwin | c6dc4f85abd3b9722bf34265366e21cc7675623b | <ide><path>pkg/system/process_unix.go
<del>// +build linux freebsd solaris
<add>// +build linux freebsd solaris darwin
<ide>
<ide> package system
<ide> | 1 |
PHP | PHP | apply fixes from styleci | b373f74ed21bcb04cd86bd71a017e8293fb43ab8 | <ide><path>src/Illuminate/Auth/RequestGuard.php
<ide> public function validate(array $credentials = [])
<ide> public function setRequest(Request $request)
<ide> {
<ide> $this->user = null;
<del>
<add>
<ide> $this->request = $request;
<ide>
<ide> return $this; | 1 |
PHP | PHP | fix cs errors | 2db808bcc7a2bd725752abf123504a63eabb2b71 | <ide><path>src/Shell/Task/ViewTask.php
<ide> protected function _associations(Table $model) {
<ide> $assocName = $assoc->name();
<ide> $alias = $target->alias();
<ide> $targetClass = get_class($target);
<del> list($_, $className) = namespaceSplit($targetClass);
<add> list(, $className) = namespaceSpli... | 2 |
PHP | PHP | retrieve the real original content. | e37d48720bea14c3ca4fff7f53bd2273481258ef | <ide><path>src/Illuminate/Http/ResponseTrait.php
<ide> public function content()
<ide> */
<ide> public function getOriginalContent()
<ide> {
<del> return $this->original;
<add> $original = $this->original;
<add>
<add> return $original instanceof self ? $original->{__FUNCTION__}() : $or... | 2 |
Ruby | Ruby | move build methods into a class | 67694b8c6064e4424a05e79a7e7907c5f9f744fb | <ide><path>Library/Homebrew/build.rb
<ide> def main
<ide> # can be inconvenient for the user. But we need to be safe.
<ide> system "/usr/bin/sudo", "-k"
<ide>
<del> install(Formula.factory($0))
<add> Build.new(Formula.factory($0)).install
<ide> rescue Exception => e
<ide> unless error_pipe.nil?
<ide> e.con... | 1 |
Javascript | Javascript | add contentparsercallback to d3.xhr constructor | 88fc68cf8bffc6dd7b245ed39bc410852694ecc9 | <ide><path>src/xhr/html.js
<ide> import "../core/document";
<ide> import "xhr";
<ide>
<ide> d3.html = function(url, callback) {
<del> return d3.xhr(url, "text/html", callback).response(d3_html);
<add> return d3.xhr(url, "text/html", callback, d3_html);
<ide> };
<ide>
<ide> function d3_html(request) {
<ide><path>src... | 5 |
PHP | PHP | remove duplicate value | f0eb51b3320fb655cea56e595b7222e2c17777a5 | <ide><path>src/Console/Command/Task/ControllerTask.php
<ide> public function bake($controllerName) {
<ide> 'actions',
<ide> 'helpers',
<ide> 'components',
<del> 'prefix',
<ide> 'namespace'
<ide> );
<ide> $data['name'] = $controllerName; | 1 |
Java | Java | add databuffer bodyinserter/bodyextractor | 735e288d465ca36ae1eeccbd8a4d044d7bd3ad50 | <ide><path>spring-web/src/main/java/org/springframework/http/codec/BodyExtractors.java
<ide> import reactor.core.publisher.Mono;
<ide>
<ide> import org.springframework.core.ResolvableType;
<add>import org.springframework.core.io.buffer.DataBuffer;
<ide> import org.springframework.http.HttpMessage;
<ide> import org.spr... | 4 |
Text | Text | add v3.14.0-beta.2 to changelog | 1b9349622c4c96f909e22d07474f79ebf1848084 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.14.0-beta.2 (September 24, 2019)
<add>
<add>- [#18273](https://github.com/emberjs/ember.js/pull/18273) [BUGFIX] Fix issues with SSR rehydration of <title>.
<add>- [#18415](https://github.com/emberjs/ember.js/pull/18415) [BUGFIX] Fix hbs import path in t... | 1 |
Text | Text | remove windows xperf from tierlist | dca76e7990c0ac27029e91a6730126e2adadb614 | <ide><path>doc/contributing/diagnostic-tooling-support-tiers.md
<ide> The tools are currently assigned to Tiers as follows:
<ide> | Tracing | trace\_events (API) | No | Yes | 1 |
<ide> | Tracing | trace\_gc | No ... | 1 |
Javascript | Javascript | add inlinecurve3 check | 5408bd8978e9be03ef7ca70d8f57963bdb780878 | <ide><path>src/extras/core/CurvePath.js
<ide> CurvePath.prototype = Object.assign( Object.create( Curve.prototype ), {
<ide> var curve = curves[ i ];
<ide> var resolution = ( curve && curve.isEllipseCurve ) ? divisions * 2
<ide> : ( curve && curve.isLineCurve ) ? 1
<del> : ( curve && curve.isSplineCurve )... | 1 |
Javascript | Javascript | add some hints for breaking changes | 038d056aed8c195139910fa389a4309d8467e99e | <ide><path>lib/Module.js
<ide> class Module extends DependenciesBlock {
<ide> }
<ide> }
<ide>
<add>Object.defineProperty(Module.prototype, "isUsed", {
<add> get() {
<add> throw new Error(
<add> "Module.isUsed was renamed (use getUsedName, isExportUsed or isModuleUsed instead)"
<add> );
<add> }
<add>});
<add>
<add... | 1 |
Python | Python | remove the internal benchmark class | 1846ac335da808cb8bf6f9b1950933348a40d200 | <ide><path>benchmarks/benchmarks/bench_app.py
<ide> from __future__ import absolute_import, division, print_function
<ide>
<del>from .common import Benchmark
<del>
<ide> import numpy as np
<ide>
<ide> from six.moves import xrange
<ide>
<ide>
<del>class LaplaceInplace(Benchmark):
<add>class LaplaceInplace(object):
<... | 14 |
Ruby | Ruby | add tests for curldownloadstrategy#tarball_path | ba830df4e6759c7f3e5c5772484ed28ef6fba3f9 | <ide><path>Library/Homebrew/test/cask/download_strategy_spec.rb
<ide> expect(curl_args.each_cons(2)).to include(["-e", "http://somehost/also"])
<ide> end
<ide> end
<add>
<add> context "with a file name trailing the URL path" do
<add> describe "#tarball_path" do
<add> subject { downloade... | 1 |
Javascript | Javascript | use globalhotkeys to catch keyup events | 023df092895614eacf9bc8e85acbd70ea488f98e | <ide><path>client/src/templates/Challenges/components/Hotkeys.js
<ide> import React from 'react';
<ide> import PropTypes from 'prop-types';
<del>import { HotKeys } from 'react-hotkeys';
<add>import { HotKeys, GlobalHotKeys } from 'react-hotkeys';
<ide> import { navigate } from 'gatsby';
<ide>
<ide> const keyMap = {
<i... | 1 |
Java | Java | prefer use of "java ee" over "j2ee" | 14f27bda3708eee64ce21807d4284cdf6ca26566 | <ide><path>spring-jms/src/main/java/org/springframework/jms/connection/TransactionAwareConnectionFactoryProxy.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2015 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Licen... | 7 |
PHP | PHP | change some paths | 46aedf54af4a5c495b7c463874e3f3eb0ecb3691 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function routesAreCached()
<ide> */
<ide> public function getRouteCachePath()
<ide> {
<del> return $this['path.storage'].'/meta/routes.php';
<add> return $this['path.storage'].'/framework/routes.php';
<ide> }
<ide>
<ide> /**
<ide><path>src/Illum... | 3 |
Python | Python | remove unused import | 9e09477b2f2a115192d6481dfdf754aeeee963e1 | <ide><path>spacy/tests/test_matcher.py
<ide>
<ide> from ..matcher import Matcher, PhraseMatcher
<ide> from .util import get_doc
<del>from ..util import get_lang_class
<ide>
<ide> import pytest
<ide> | 1 |
Javascript | Javascript | pass number format to tooltip | 7966227df36fdb3a79f35ac238ea8b5c84b3f3a8 | <ide><path>src/scales/scale.linearbase.js
<ide> export default class LinearScaleBase extends Scale {
<ide> }
<ide>
<ide> getLabelForValue(value) {
<del> return formatNumber(value, this.chart.options.locale);
<add> return formatNumber(value, this.chart.options.locale, this.options.ticks.format);
<ide> }
<id... | 2 |
Mixed | Ruby | fix undefined method `to_i' introduced since 3.2.8 | 8d98c83bbceb905cd65c487cfa714d2fca92501c | <ide><path>activerecord/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<del>* Rename `update_attributes` to `update`, keep `update_attributes` as an alias for `update` method.
<add>* Fix undefined method `to_i` when calling `new` on a scope that uses an Array.
<add> Fixes #8718, #8734.
<add>
<add> ... | 4 |
Javascript | Javascript | fix portuguese weekdaysmin | ed06d372009d1d149d09bcc98693e142d3282a56 | <ide><path>lang/pt.js
<ide> monthsShort : "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),
<ide> weekdays : "Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),
<ide> weekdaysShort : "Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),
<del> ... | 4 |
Text | Text | remove inaccurate docs | a023d0d057ca2dbc948585152363515df419d73e | <ide><path>docs/Performance.md
<ide> but their receipt is not necessary for the scroll to occur).
<ide>
<ide> When running a bundled app, these statements can cause a big bottleneck in the JavaScript thread. This includes calls from debugging libraries such as [redux-logger](https://github.com/evgenyrodionov/redux-log... | 1 |
Text | Text | fix documentation of process.argv | 475dc439e21dd257e75ffe5e5ba8a954618fb403 | <ide><path>doc/api/process.md
<ide> console.log(`This processor architecture is ${process.arch}`);
<ide> added: v0.1.27
<ide> -->
<ide>
<del>The `process.argv` property returns a array containing the command line
<add>The `process.argv` property returns an array containing the command line
<ide> arguments passed when ... | 1 |
PHP | PHP | allow empty name for selectbox widget | c86a9aef4a4abdd9d2c163e5ded3a6da648f9935 | <ide><path>src/View/Widget/SelectBoxWidget.php
<ide> public function render(array $data, ContextInterface $context)
<ide> 'val' => null,
<ide> ];
<ide>
<del> if (empty($data['name'])) {
<del> throw new \RuntimeException('Cannot make inputs with empty name attributes.');
<del> ... | 1 |
PHP | PHP | fix another typo in memcached engine comments | b8789cddaa990864cbcf8549d592bf4bd84e3db8 | <ide><path>src/Cache/Engine/MemcachedEngine.php
<ide> * control you have over expire times far in the future. See MemcachedEngine::write() for
<ide> * more information.
<ide> *
<del> * Memcached engine support of binary protocol and igbinary
<add> * Memcached engine support binary protocol and igbinary
<ide> * seri... | 1 |
PHP | PHP | add lastoutput property | 6b185832af11badaef1c47547db435a5124e0b88 | <ide><path>src/Illuminate/Console/Application.php
<ide> class Application extends SymfonyApplication implements ApplicationContract {
<ide> */
<ide> protected $events;
<ide>
<add> /**
<add> * The output from the previous command.
<add> *
<add> * @var \Symfony\Component\Console\Output\OutputInterface
<add> */
<a... | 1 |
Python | Python | add scalar squeeze tests | a3c7204a311036e891ec0c3e1e0b09cf7a614354 | <ide><path>numpy/core/tests/test_regression.py
<ide> def test_structarray_title(self):
<ide> structure = np.array([1], dtype=[(('x', 'X'), np.object_)])
<ide> structure[0]['x'] = np.array([2])
<ide> gc.collect()
<add>
<add> def test_dtype_scalar_squeeze(self):
<add> # gh-11... | 1 |
Python | Python | fix cyclic imports | ce589d896eb02597b2b13f05024ff3e4c01dfc82 | <ide><path>airflow/settings.py
<ide> import logging
<ide> import os
<ide> import sys
<del>from typing import TYPE_CHECKING, Optional
<add>from typing import Optional
<ide>
<ide> import pendulum
<ide> from sqlalchemy import create_engine, exc
<ide> # pylint: disable=unused-import
<ide> from airflow.configuration import... | 3 |
Python | Python | add cli registry | b470062153e52983b1aca661cd2c96c6f38e88d4 | <ide><path>spacy/cli/_util.py
<ide> from configparser import InterpolationError
<ide>
<ide> from ..schemas import ProjectConfigSchema, validate
<del>from ..util import import_file, run_command, make_tempdir
<add>from ..util import import_file, run_command, make_tempdir, registry
<ide>
<ide> if TYPE_CHECKING:
<ide> ... | 2 |
Java | Java | add callback for connection/disconnection to metro | 3d5dc872a4eefa1557554b3b338227959d166370 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/devsupport/DevServerHelper.java
<ide> import com.facebook.react.packagerconnection.FileIoHandler;
<ide> import com.facebook.react.packagerconnection.JSPackagerClient;
<ide> import com.facebook.react.packagerconnection.NotificationOnlyHandler;
<add>import com.face... | 4 |
Go | Go | fix the create api when fromsrc has a bad url | e050f1760dd8a3d48d95bb3d2de503fc4177ff5f | <ide><path>daemon/import.go
<ide> import (
<ide> "net/http"
<ide> "net/url"
<ide> "runtime"
<add> "strings"
<ide> "time"
<ide>
<ide> "github.com/docker/distribution/reference"
<ide> func (daemon *Daemon) ImportImage(src string, repository, tag string, msg string
<ide> rc = inConfig
<ide> } else {
<ide> inCon... | 2 |
Text | Text | optimize description for feature highlights | dde0f86a88989c02256a8b301ff8388752d88eed | <ide><path>docs/swarm/index.md
<ide> a swarm.
<ide> * **Decentralized design:** Instead of handling differentiation between node
<ide> roles at deployment time, the Docker Engine handles any specialization at
<ide> runtime. You can deploy both kinds of nodes, managers and workers, using the
<del>Docker Engine. This mea... | 1 |
PHP | PHP | add phar to list | 2d1f76ab752ced011da05cf139799eab2a36ef90 | <ide><path>src/Illuminate/Validation/Concerns/ValidatesAttributes.php
<ide> protected function shouldBlockPhpUpload($value, $parameters)
<ide> }
<ide>
<ide> $phpExtensions = [
<del> 'php', 'php3', 'php4', 'php5', 'phtml',
<add> 'php', 'php3', 'php4', 'php5', 'phtml', 'phar'
<ide> ... | 1 |
Text | Text | add iansu to collaborators | 9237280559b3296e6ae8baef8eaa0dc16aafc3c3 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Zeyu Yang** <himself65@outlook.com> (he/him)
<ide> * [hiroppy](https://github.com/hiroppy) -
<ide> **Yuta Hiroto** <hello@hiroppy.me> (he/him)
<add>* [iansu](https://github.com/iansu) -
<add>**Ian Sutherland*... | 1 |
PHP | PHP | add reference links to docblock | 31c7b01c3a7b5af29cbffe3e587c7a91b5217bab | <ide><path>lib/Cake/I18n/I18n.php
<ide> public static function domains() {
<ide> * @param string $header Type
<ide> * @param int $n Number
<ide> * @return int plural match
<del> * @see
<add> * @link http://localization-guide.readthedocs.org/en/latest/l10n/pluralforms.html
<add> * @link https://developer.mozilla.org/... | 1 |
Mixed | Javascript | fix non selectable text in flatlist | c360b1d92b69e1d298b390ec88c4d29c1023945a | <ide><path>ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextView.java
<ide> public class ReactTextView extends AppCompatTextView implements ReactCompoundVie
<ide> private boolean mAdjustsFontSizeToFit = false;
<ide> private int mLinkifyMaskType = 0;
<ide> private boolean mNotifyOnInlineViewLayout... | 3 |
Text | Text | fix code block fences and typo | 08fe24c2d5ef415d2b94f8e3f28d0299db2d7b6a | <ide><path>docs/extend/index.md
<ide> Hub or on a private registry.
<ide>
<ide> You install the plugin using a single command: `docker plugin install <PLUGIN>`.
<ide> The `plugin install` command pulls the plugin from the Docker Hub or private
<del>registry. If necessary the CLI prompts you to accept any privilige req... | 2 |
Text | Text | add shallow nesting to the routing guide | 2610797d08c2d356e5a2e33f0d3bf6864adeddfc | <ide><path>guides/source/routing.md
<ide> The corresponding route helper would be `publisher_magazine_photo_url`, requirin
<ide>
<ide> TIP: _Resources should never be nested more than 1 level deep._
<ide>
<add>#### Shallow Nesting
<add>
<add>One way to avoid deep nesting (as recommended above) is to generate the coll... | 1 |
Python | Python | add test for cudnn rnns + bidirectional | a8a59c71eccb0bea3ef17feeed6970112ab4aa8e | <ide><path>tests/keras/layers/cudnn_recurrent_test.py
<ide> def test_load_weights_into_noncudnn_lstm():
<ide> assert_allclose(out, cudnn_out, atol=1e-4)
<ide>
<ide>
<add>@keras_test
<add>@pytest.mark.skipif((keras.backend.backend() != 'tensorflow'),
<add> reason='Requires TensorFlow backend')
<... | 2 |
Javascript | Javascript | expand quickstart widget with cuda 11.1 and 11.2 | fd6eebbfdca942d207ffa43900868b4c6d0d943a | <ide><path>website/src/widgets/quickstart-install.js
<ide> const CUDA = {
<ide> '10.1': 'cuda101',
<ide> '10.2': 'cuda102',
<ide> '11.0': 'cuda110',
<add> '11.1': 'cuda111',
<add> '11.2': 'cuda112',
<ide> }
<ide> const LANG_EXTRAS = ['ja'] // only for languages with models
<ide> | 1 |
Text | Text | remove spaces inside code span elements | 63f5a76c1dd9e9c3d4851d41eb1593d9838bad71 | <ide><path>doc/api/buffer.md
<ide> changes:
<ide> * `value` {string|Buffer|Uint8Array|integer} What to search for.
<ide> * `byteOffset` {integer} Where to begin searching in `buf`. If negative, then
<ide> offset is calculated from the end of `buf`. **Default:**
<del> [`buf.length`][] `- 1`.
<add> `buf.length - 1`.
... | 2 |
Go | Go | use waitandassert to test node state changes | f02ec39e99bfd36f34a965f78d853e19234e513b | <ide><path>integration-cli/daemon_swarm.go
<ide> func (d *SwarmDaemon) updateSwarm(c *check.C, f ...specConstructor) {
<ide> c.Assert(err, checker.IsNil)
<ide> c.Assert(status, checker.Equals, http.StatusOK, check.Commentf("output: %q", string(out)))
<ide> }
<add>
<add>func (d *SwarmDaemon) checkLocalNodeState(c *che... | 2 |
Go | Go | fix error reporting on executor wait | c895a76f1076c782011e9decf58ab6548cf0fb35 | <ide><path>daemon/cluster/executor/container/controller.go
<ide> func (r *controller) Wait(pctx context.Context) error {
<ide> defer cancel()
<ide>
<ide> err := r.adapter.wait(ctx)
<del> if err != nil {
<del> return err
<del> }
<ide> if ctx.Err() != nil {
<ide> return ctx.Err()
<ide> }
<ide> func (r *controller... | 1 |
Python | Python | add 3.10 classifier | 79a8e16ed2de533dc91e474c912cfaef8e1a1e92 | <ide><path>setup.py
<ide> Programming Language :: Python :: 3.6
<ide> Programming Language :: Python :: 3.7
<ide> Programming Language :: Python :: 3.8
<add>Programming Language :: Python :: 3.9
<ide> Programming Language :: Python :: 3 :: Only
<ide> Programming Language :: Python :: Implementation :: CPython
<ide> Top... | 1 |
PHP | PHP | add docblock methods in schema facade | 0b54f945bafc0185a7959901772cae6c9b36646f | <ide><path>src/Illuminate/Support/Facades/Schema.php
<ide> namespace Illuminate\Support\Facades;
<ide>
<ide> /**
<add> * @method static \Illuminate\Database\Schema\Builder create(string $table, \Closure $callback)
<add> * @method static \Illuminate\Database\Schema\Builder drop(string $table)
<add> * @method static \Il... | 1 |
Go | Go | create rw and rootfs directory if they don't exist | 9e8278134d73ffa0a4e72c2202aa1e5c2bcffc98 | <ide><path>graph/image.go
<ide> func (image *Image) Mount(root, rw string) error {
<ide> if err != nil {
<ide> return err
<ide> }
<add> // Create the target directories if they don't exist
<add> if err := os.Mkdir(root, 0755); err != nil && !os.IsExist(err) {
<add> return err
<add> }
<add> if err := os.Mkdir(rw, 0... | 1 |
Python | Python | remove unused imports | ab2f63b0892637c5c7c29562944ce0a53fc32d84 | <ide><path>libcloud/drivers/ecp.py
<ide> import base64
<ide> import httplib
<ide> import socket
<del>import struct
<ide> import os
<ide>
<ide> # JSON is included in the standard library starting with Python 2.6. For 2.5
<ide><path>libcloud/drivers/slicehost.py
<ide> from libcloud.base import NodeSize, NodeImage, Node... | 2 |
Javascript | Javascript | remove unneeded comma from boxhelper test | bdfdbd3dc9bf3f83f7e6c485d63efc9e71acc6b5 | <ide><path>test/unit/extras/helpers/BoxHelper.tests.js
<ide> 'use strict';
<ide>
<ide> var parameters = {
<del> diameter: 10,
<add> diameter: 10
<ide> };
<ide>
<ide> var geometries; | 1 |
PHP | PHP | fix allowempty calculation | a29aec16339118e44104631d9c2e782d17f78508 | <ide><path>src/Console/Command/Task/ModelTask.php
<ide> public function fieldValidation($fieldName, $metaData, $primaryKey) {
<ide> }
<ide>
<ide> $allowEmpty = false;
<del> if ($rule !== 'notEmpty' && $metaData['null'] === false) {
<add> if ($rule !== 'notEmpty' && $metaData['null'] === true) {
<ide> $allowEm... | 2 |
Text | Text | update missed yarn -> pnpm in contributing | 1420dd9a098d29a49376cfa1d0ed493b7462413b | <ide><path>contributing.md
<ide> There are two options to develop with your local version of the codebase:
<ide> 3. In your app's root directory, run:
<ide>
<ide> ```sh
<del> yarn
<add> pnpm i
<ide> ```
<ide>
<ide> to re-install all of the dependencies. | 1 |
Text | Text | fix example output | 55f8d5478ecb5fd913a3a5fe7c469e8bc8a4f038 | <ide><path>website/docs/api/cli.md
<ide> training -> dropout field required
<ide> training -> optimizer field required
<ide> training -> optimize extra fields not permitted
<ide>
<del>{'vectors': 'en_vectors_web_lg', 'seed': 0, 'accumulate_gradient': 1, 'init_tok2vec': None, 'raw_text': None, 'patience': 1600... | 1 |
Python | Python | fix bugs in test_hql | 7ee537b7f8ec339807b58ed0da21b637f5bb8443 | <ide><path>airflow/hooks/hive_hooks.py
<ide> def test_hql(self, hql):
<ide> """
<ide> create, insert, other = [], [], []
<ide> for query in hql.split(';'): # naive
<add> query_original = query
<ide> query = query.lower().strip()
<add>
<ide> if query.startswith... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.