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 | apply suggestions from code review | 2688e7e56bf2983670d6a1e187006fe3a8feba3b | <ide><path>Library/Homebrew/style.rb
<ide> def check_style_impl(files, output_type,
<ide> run_shellcheck(shell_files, output_type)
<ide> end
<ide>
<del> run_shfmt(shell_files, inplace: fix) if ruby_files.none? || shell_files.any?
<add> run_shfmt(shell_files, fix: fix) if ruby_files.none? || she... | 1 |
Python | Python | fix refactoring error in static_folder docstring | 11d2eec3acb7d0cf291b572e3b6b493df5fadc6b | <ide><path>flask/app.py
<ide> class Flask(_PackageBoundObject):
<ide> :param static_folder: the folder with static files that should be served
<ide> at `static_url_path`. Defaults to the ``'static'``
<ide> folder in the root path of the application.
<del> ... | 1 |
Go | Go | fix spelling of 'existent' | 899caaca9c990067d541231c6d288de89dbb79e7 | <ide><path>integration-cli/docker_cli_volume_test.go
<ide> func (s *DockerSuite) TestVolumeCliInspect(c *check.C) {
<ide> c.Assert(
<ide> exec.Command(dockerBinary, "volume", "inspect", "doesntexist").Run(),
<ide> check.Not(check.IsNil),
<del> check.Commentf("volume inspect should error on non-existant volume"),
... | 3 |
Text | Text | replace string with template string | 76dbde19a73d4b86ce24f4221d9a8d01a9e14303 | <ide><path>doc/api/stream.md
<ide> available data. In the latter case, [`stream.read()`][stream-read] will return
<ide> const fs = require('fs');
<ide> const rr = fs.createReadStream('foo.txt');
<ide> rr.on('readable', () => {
<del> console.log('readable:', rr.read());
<add> console.log(`readable: ${rr.read()}`);
<id... | 1 |
Ruby | Ruby | add edge test cases for integer and string types | 25b3cbb241a334d750eed24f5094151e52ed7c69 | <ide><path>activemodel/test/cases/type/integer_test.rb
<ide> class IntegerTest < ActiveModel::TestCase
<ide> assert_equal 7200, type.cast(2.hours)
<ide> end
<ide>
<add> test "casting empty string" do
<add> type = Type::Integer.new
<add> assert_nil type.cast("")
<add> assert_nil ... | 2 |
PHP | PHP | add comparefields() method | a37d9554dfe66c8bcb1946a784d109489462e3f6 | <ide><path>src/Validation/Validation.php
<ide> public static function comparison($check1, $operator, $check2)
<ide> * @param string $field The field to check $check against. This field must be present in $context.
<ide> * @param array $context The validation context.
<ide> * @return bool
<add> * @dep... | 2 |
Python | Python | fix spelling on line 44 of bucket sort (#824) | c1130490d7534412bea66cb3864e2bb7f7e13dd7 | <ide><path>sorts/bucket_sort.py
<ide> def bucket_sort(my_list,bucket_size=DEFAULT_BUCKET_SIZE):
<ide>
<ide>
<ide> #test
<del>#besd on python 3.7.3
<add>#best on python 3.7.3
<ide> user_input =input('Enter numbers separated by a comma:').strip()
<ide> unsorted =[int(item) for item in user_input.split(',')]
<ide> print... | 1 |
Java | Java | avoid infinite loop in annotationscanner | 650cbeee1433aa38619691946c316d9d03a6512d | <ide><path>spring-core/src/main/java/org/springframework/core/annotation/AnnotationsScanner.java
<ide> private static <C, R> R processClassInheritedAnnotations(C context, Class<?> sou
<ide> return result;
<ide> }
<ide> if (isFiltered(source, context, classFilter)) {
<add> source = source.getSuperclass(... | 2 |
Ruby | Ruby | add missing space to error message | bb8f9d3d0c54b2565893c25dae0403c6531830ea | <ide><path>activerecord/lib/active_record/encryption/scheme.rb
<ide> def validate_keys!
<ide>
<ide> def validate_credential(key, error_message = "is not configured")
<ide> unless ActiveRecord::Encryption.config.public_send(key).present?
<del> raise Errors::Configuration, "#{key} #{error_me... | 1 |
Javascript | Javascript | remove usereducer eager bailout | 66388150ef1dfef1388c634a2d2ce6760a92012f | <ide><path>packages/react-reconciler/src/ReactFiberHooks.new.js
<ide> const {ReactCurrentDispatcher, ReactCurrentBatchConfig} = ReactSharedInternals;
<ide> type Update<S, A> = {|
<ide> lane: Lane,
<ide> action: A,
<del> eagerReducer: ((S, A) => S) | null,
<add> hasEagerState: boolean,
<ide> eagerState: S | null... | 3 |
Python | Python | remove infunc imports | 0dc662a910c8c012bb5ec1740527e3ec4c31bbf6 | <ide><path>numpy/distutils/command/scons.py
<ide> import os
<add>import sys
<ide> import os.path
<ide> from os.path import join as pjoin, dirname as pdirname
<ide>
<ide> from numpy.distutils.exec_command import find_executable
<ide> from numpy.distutils import log
<ide> from numpy.distutils.misc_util import is_bootstr... | 1 |
PHP | PHP | set exception handler even on non daemon | d5bbda95a6435fa8cb38b8b640440b38de6b7f83 | <ide><path>src/Illuminate/Queue/Console/WorkCommand.php
<ide> public function fire()
<ide> */
<ide> protected function runWorker($connection, $queue, $delay, $memory, $daemon = false)
<ide> {
<add> $this->worker->setDaemonExceptionHandler(
<add> $this->laravel['Illuminate\Contracts\Debug\... | 1 |
Python | Python | fix issue #260 | d71b29482e77875a835c5dbefd9ec7bf21cba72c | <ide><path>glances/glances.py
<ide> batinfo_lib_tag = False
<ide> else:
<ide> batinfo_lib_tag = True
<add>else:
<add> batinfo_lib_tag = False
<ide>
<ide> try:
<ide> # HTML output (optional) | 1 |
PHP | PHP | add missing mailgun.domain option | ffe21c53e1de9b0731849fb43b0b24df16093f36 | <ide><path>app/config/services.php
<ide> */
<ide>
<ide> 'mailgun' => array(
<add> 'domain' => '',
<ide> 'secret' => '',
<ide> ),
<ide> | 1 |
Javascript | Javascript | remove this.$() jquery integration | 26145d2899658102cf9681a4341edcaffe814311 | <ide><path>packages/@ember/-internals/glimmer/tests/integration/components/curly-components-test.js
<ide> import { DEBUG } from '@glimmer/env';
<ide> import { alias, set, get, observer, on, computed, tracked } from '@ember/-internals/metal';
<ide> import Service, { inject as injectService } from '@ember/service';
<ide>... | 5 |
Text | Text | fix typo in the changelog_v6 | 80478a5240d2cafe51110fac43480f8827cc5930 | <ide><path>doc/changelogs/CHANGELOG_V6.md
<ide> October 2016.
<ide>
<ide> ### Notable changes
<ide>
<del>* **buffer**: Added `buffer.swap64()` to compliment `swap16()` & `swap32()`. (Zach Bjornson) [#7157](https://github.com/nodejs/node/pull/7157)
<add>* **buffer**: Added `buffer.swap64()` to complement `swap16()` & ... | 1 |
PHP | PHP | remove duplicate newlines according to cs | 036954b52d7bbbbcd6986fdb65669f6dfc804245 | <ide><path>lib/Cake/Test/Case/Controller/ComponentTest.php
<ide> class SomethingWithEmailComponent extends Component {
<ide> public $components = array('Email');
<ide> }
<ide>
<del>
<ide> /**
<ide> * ComponentTest class
<ide> *
<ide><path>lib/Cake/Test/Case/Controller/ControllerMergeVarsTest.php
<ide> class MergePo... | 7 |
PHP | PHP | add _ext test in route | 9eca07a3002b2034c3dc65e44e11aa53095cc798 | <ide><path>lib/Cake/Test/TestCase/Routing/Route/RouteTest.php
<ide> public function testMatchWithPassedArgs() {
<ide> $this->assertFalse($result);
<ide> }
<ide>
<add>/**
<add> * Test that extensions work.
<add> *
<add> * @return void
<add> */
<add> public function testMatchWithExtension() {
<add> $route = new Rout... | 1 |
Ruby | Ruby | relocate all text files | b9cdfe21fc7c1dbfa2f6ce7a087a47556dfff5df | <ide><path>Library/Homebrew/keg.rb
<ide> require "extend/pathname"
<del>require "keg_fix_install_names"
<add>require "keg_relocate"
<ide> require "formula_lock"
<ide> require "ostruct"
<ide>
<add><path>Library/Homebrew/keg_relocate.rb
<del><path>Library/Homebrew/keg_fix_install_names.rb
<ide> def relocate_install_name... | 2 |
Java | Java | remove rxjava 1.x variants of webclient adapters | 11aa920785151c76c381f482e8b3810ccf59929f | <ide><path>spring-web/src/main/java/org/springframework/web/client/reactive/support/RxJava1ClientWebRequestBuilder.java
<del>/*
<del> * Copyright 2002-2016 the original author or authors.
<del> *
<del> * Licensed under the Apache License, Version 2.0 (the "License");
<del> * you may not use this file except in complian... | 5 |
Ruby | Ruby | require clt on 10.9 | ed3343565a6b02f85d6e0a21b8f64be81c1cd0a3 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_broken_symlinks
<ide> end
<ide>
<ide> def check_xcode_clt
<del> if MacOS::Xcode.installed?
<add> if MacOS.version >= :mavericks
<add> __check_clt_up_to_date
<add> elsif MacOS::Xcode.installed?
<ide> __check_xcode_up_to_date
<ide> elsif MacOS.ver... | 1 |
PHP | PHP | contain verbose debug | 6d9aaea8213254b05c156b968240377cb26c350f | <ide><path>src/TestSuite/Constraint/Console/ContentsContain.php
<ide> public function matches($other): bool
<ide> */
<ide> public function toString(): string
<ide> {
<del> return sprintf('is in %s', $this->output);
<add> return sprintf('is in %s,' . PHP_EOL . 'actual result:' . PHP_EOL . $thi... | 2 |
PHP | PHP | fix failing test | ffb812c44502a2f19293c47cbf28b992f1f8ceec | <ide><path>tests/Database/DatabaseConnectionTest.php
<ide> public function testTransactionRetriesOnSerializationFailure()
<ide>
<ide> $pdo = $this->getMockBuilder(DatabaseConnectionTestMockPDO::class)->setMethods(['beginTransaction', 'commit', 'rollBack'])->getMock();
<ide> $mock = $this->getMockConnec... | 1 |
PHP | PHP | move fixture cleanup to teardown | e6bf47ee2d51c8344e7382e267fc39cee70778d3 | <ide><path>src/TestSuite/Fixture/TruncationStrategy.php
<ide> public function __construct(FixtureLoader $loader)
<ide> *
<ide> * @return void
<ide> */
<del> public function setupTest(): void
<add> public function teardownTest(): void
<ide> {
<ide> $connections = ConnectionManager::confi... | 2 |
PHP | PHP | apply fixes from styleci | 6c0ffe3b274aeff16661efc33921ae5211b5f7d2 | <ide><path>tests/Validation/ValidationValidatorTest.php
<ide> public function message()
<ide> $this->assertSame('my custom message', $v->messages()->first('name'));
<ide>
<ide> $trans = $this->getIlluminateArrayTranslator();
<del> $v = new Validator($trans, ['name' => 'Ryan'], ['name' => $rule],... | 1 |
Javascript | Javascript | add side effects to avoid optimization | 6d64eb0eae2986a18a688f64e40d039b54100c27 | <ide><path>test/cases/parsing/webpack-is-included/moduleUnused.js
<ide> export default 2;
<add>console.log.bind();
<ide><path>test/cases/parsing/webpack-is-included/moduleUsed.js
<ide> export default 1;
<add>console.log.bind(); | 2 |
PHP | PHP | add missing import at redisbroadcaster | 9edd86235328fa805b9ad23eb7f6a61d04562b2e | <ide><path>src/Illuminate/Broadcasting/Broadcasters/RedisBroadcaster.php
<ide> namespace Illuminate\Broadcasting\Broadcasters;
<ide>
<ide> use Illuminate\Support\Arr;
<add>use Illuminate\Support\Str;
<ide> use Illuminate\Contracts\Redis\Database as RedisDatabase;
<ide> use Symfony\Component\HttpKernel\Exception\HttpEx... | 1 |
Javascript | Javascript | remove unused popup classes | 295889b36b15d9f4b296384c347b780bfb8d42e2 | <ide><path>src/js/popup/popup-button.js
<del>/**
<del> * @file popup-button.js
<del> */
<del>import ClickableComponent from '../clickable-component.js';
<del>import Component from '../component.js';
<del>
<del>/**
<del> * A button class for use with {@link Popup} controls
<del> *
<del> * @extends ClickableComponent
<de... | 2 |
Text | Text | fix weird documentation line | 89d66410892b9c42bf2a11f7308d6c8bf8d656c8 | <ide><path>guides/source/active_model_basics.md
<ide> class Person
<ide> end
<ide>
<ide> def last_name
<del> @last_nameperson.changes # => {"first_name"=>[nil, "First Name"]}
<add> @last_name
<ide> end
<ide>
<ide> def last_name=(value) | 1 |
Text | Text | add instructions on installing numpy (#68) | b1f7d549dc1d3be088eecd1f8de682d17eb090e3 | <ide><path>syntaxnet/README.md
<ide> source. You'll need to install:
<ide> * upgrade to a supported version with `pip install -U protobuf==3.0.0b2`
<ide> * asciitree, to draw parse trees on the console for the demo:
<ide> * `pip install asciitree`
<del>
<add>* numpy, package for scientific computing:
<a... | 1 |
Ruby | Ruby | extract messageid concern | 456d79b853aaec14f14c4c4deaa04cfb66c5b357 | <ide><path>app/controllers/action_mailroom/inbound_emails_controller.rb
<ide> class ActionMailroom::InboundEmailsController < ActionController::Base
<ide> before_action :require_rfc822_message, only: :create
<ide>
<ide> def create
<del> ActionMailroom::InboundEmail.create_from_raw_email!(params[:message])
<add>... | 4 |
Python | Python | allow uppercase methods in action decorator | fa9f5fb8dcf6d51b2db70d4e2a991779b056d1d4 | <ide><path>rest_framework/routers.py
<ide> def get_routes(self, viewset):
<ide> attr = getattr(viewset, methodname)
<ide> httpmethods = getattr(attr, 'bind_to_methods', None)
<ide> if httpmethods:
<add> httpmethods = [method.lower() for method in httpmethods]
<ide> ... | 1 |
Javascript | Javascript | use template literlals | a1cfed33d60a20c6f20b0026e2040140bce720a1 | <ide><path>lib/ExtendedAPIPlugin.js
<ide> class ExtendedAPIPlugin {
<ide> compilation.dependencyFactories.set(ConstDependency, new NullFactory());
<ide> compilation.dependencyTemplates.set(ConstDependency, new ConstDependency.Template());
<ide> compilation.mainTemplate.plugin("require-extensions", function(sou... | 1 |
Python | Python | fix flakes from master | f5bcca4fd4cedc3c8c65a3ddadc5d93da6363374 | <ide><path>celery/bin/__init__.py
<ide> from __future__ import absolute_import
<ide>
<del>from collections import defaultdict
<del>
<ide> from .base import Option # noqa
<ide><path>celery/bootsteps.py
<ide> from kombu.utils import symbol_by_name
<ide>
<ide> from .datastructures import DependencyGraph
<del>from .util... | 5 |
Python | Python | add callback for consumer start | efc6f43291e3d77396d22ef7fd21d8eec546d036 | <ide><path>celery/worker/consumer.py
<ide> class Consumer(object):
<ide> #: Will only be called once, even if the connection is lost and
<ide> #: re-established.
<ide> init_callback = None
<del>
<add>
<add>
<add> #: List of callbacks to be called when the connection is started/reset,
<add> #: ... | 1 |
Text | Text | fix changelog for v10.18.1 | 5170daaca51bc9383df78b06ac1234867549c663 | <ide><path>doc/changelogs/CHANGELOG_V10.md
<ide>
<ide> * [[`a80c59130e`](https://github.com/nodejs/node/commit/a80c59130e)] - **build**: fix configure script to work with Apple Clang 11 (Saagar Jha) [#28071](https://github.com/nodejs/node/pull/28071)
<ide> * [[`68b2b5cc51`](https://github.com/nodejs/node/commit/68b2b5... | 1 |
Javascript | Javascript | replace concatenation with template literal | cf253244763a9401b110dc67133fcb348dfee837 | <ide><path>test/parallel/test-require-extensions-same-filename-as-dir-trailing-slash.js
<ide> 'use strict';
<ide> const common = require('../common');
<ide> const assert = require('assert');
<del>
<del>const content = require(common.fixturesDir +
<del> '/json-with-directory-name-module/module-stub/one-trailing-slash/t... | 1 |
Ruby | Ruby | add relation#size and relation#empty? | f290e685f0497427b348a2fae760300429d5f0cd | <ide><path>activerecord/lib/active_record/relation.rb
<ide> def last
<ide> end
<ide> end
<ide>
<add> def size
<add> loaded? ? @records.length : count
<add> end
<add>
<add> def empty?
<add> loaded? ? @records.empty? : count.zero?
<add> end
<add>
<ide> def destroy_all
<ide> to_a... | 2 |
Go | Go | update daemon to new swarmkit | a83bba467a8bd24924b1a0cf55b954ac49937b5b | <ide><path>daemon/cluster/cluster.go
<ide> func New(config Config) (*Cluster, error) {
<ide> select {
<ide> case <-time.After(swarmConnectTimeout):
<ide> logrus.Errorf("swarm component could not be started before timeout was reached")
<del> case <-n.Ready(context.Background()):
<add> case <-n.Ready():
<ide> case <... | 3 |
Javascript | Javascript | apply the review comment to gltfexporter | 28f5d746b861edf65e1878e4ac881367c1f56967 | <ide><path>examples/js/exporters/GLTFExporter.js
<ide> THREE.GLTFExporter.prototype = {
<ide>
<ide> var target = {};
<ide>
<add> var warned = false;
<add>
<ide> for ( var attributeName in geometry.morphAttributes ) {
<ide>
<ide> // glTF 2.0 morph supports only POSITION/NORMAL/TANGENT.
<del> ... | 1 |
Mixed | Javascript | add autocomplete prop | f15145639dab1e8d7a1c79a127b7d45c91d025a8 | <ide><path>Libraries/Components/TextInput/TextInput.js
<ide> type IOSProps = $ReadOnly<{|
<ide> |}>;
<ide>
<ide> type AndroidProps = $ReadOnly<{|
<add> autoCompleteType?: ?(
<add> | 'cc-csc'
<add> | 'cc-exp'
<add> | 'cc-exp-month'
<add> | 'cc-exp-year'
<add> | 'cc-number'
<add> | 'email'
<add> | ... | 2 |
Ruby | Ruby | remove checks for enumerator#size method | 90f851a18b1aca6323c77d21153761e36f864079 | <ide><path>activerecord/test/cases/batches_test.rb
<ide> def test_each_should_return_an_enumerator_if_no_block_is_present
<ide> end
<ide> end
<ide>
<del> if Enumerator.method_defined? :size
<del> def test_each_should_return_a_sized_enumerator
<del> assert_equal 11, Post.find_each(batch_size: 1).size
<de... | 3 |
Python | Python | add root imports | bfbdbb05bc349257e0ac0eef186f7bdb91a89e17 | <ide><path>keras/__init__.py
<add>from __future__ import absolute_import
<ide> __version__ = '1.0.1'
<add>from . import backend
<add>from . import datasets
<add>from . import engine
<add>from . import layers
<add>from . import preprocessing
<add>from . import utils
<add>from . import wrappers
<add>from . import callbac... | 1 |
Ruby | Ruby | fix two message typos | a0540058833dcf89d4bba3734828393d8ac4164d | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_homepage
<ide> # "Software" is redirected to https://wiki.freedesktop.org/www/Software/project_name
<ide> if homepage =~ %r[^http://((?:www|nice|libopenraw|liboil|telepathy|xorg)\.)?freedesktop\.org/(?:wiki/)?]
<ide> if homepage =~ /Software/
<del> ... | 1 |
Ruby | Ruby | fix false positive audit warning | 0bf3ec593de9d20b873c947f420e8b19b84d50ad | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_line(line, lineno)
<ide> problem "Use new-style option definitions"
<ide> end
<ide>
<del> if line =~ /def test/
<add> if line =~ /def test$/
<ide> problem "Use new-style test definitions (test do)"
<ide> end
<ide> | 1 |
Ruby | Ruby | document the csrf whitelisting on get requests | 39856627e0e3d50db4eb400bdfaca3bc0958d211 | <ide><path>actionpack/lib/action_controller/metal/request_forgery_protection.rb
<ide> class InvalidAuthenticityToken < ActionControllerError #:nodoc:
<ide> # Controller actions are protected from Cross-Site Request Forgery (CSRF) attacks
<ide> # by including a token in the rendered html for your application. This t... | 1 |
PHP | PHP | require native prepares for most drivers | 2044d6db296c27bff734c28442b40cf469adeb39 | <ide><path>src/Database/Driver/Mysql.php
<ide> public function connect()
<ide> $config['flags'] += [
<ide> PDO::ATTR_PERSISTENT => $config['persistent'],
<ide> PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,
<del> PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
<add> PDO::A... | 7 |
Javascript | Javascript | use webpack for transpiling too | 577e2c27a76712de0ef585d3965d53a6731a9fb3 | <ide><path>server/build/bundle.js
<del>import { resolve, dirname, basename } from 'path'
<del>import webpack from 'webpack'
<del>
<del>export default function bundle (src, dst) {
<del> const compiler = webpack({
<del> entry: src,
<del> output: {
<del> path: dirname(dst),
<del> filename: basename(dst),
... | 3 |
Ruby | Ruby | fix reference to self | 4a457d191d8136fada802eb203b2769ebd92d130 | <ide><path>Library/Homebrew/formula.rb
<ide> def outdated_versions
<ide>
<ide> if oldname && !rack.exist? && (dir = HOMEBREW_CELLAR/oldname).directory? &&
<ide> !dir.subdirs.empty? && tap == Tab.for_keg(dir.subdirs.first).tap
<del> raise Migrator::MigrationNeededError.new(f)
<add> raise Mig... | 1 |
Text | Text | add section about extensions | 14c89f8f6350653038efbb19362ff8f095e682a2 | <ide><path>guide/english/swift/view-controller/index.md
<ide> This is an example of what a basic view in Swift looks like.
<ide> ```
<ide> 1. Loads view after the controller loads.
<ide> 2. Overrides the UIViewController class. This is a necessary step for any view controller.
<del>3. Sets background color to white.
<... | 1 |
Text | Text | add article for vue.js components | e9713ceb775cd012f3150cbc5831c9bc5f806cc7 | <ide><path>client/src/pages/guide/english/vue/components/index.md
<add>---
<add>title: Components
<add>---
<add>
<add>## Components
<add>
<add>A classic problem that web developers face when working is HTML duplication, not
<add>in a simple example such as a list, but sometimes all you want is a "import" to
<add>be abl... | 1 |
Go | Go | remove deprecated fields for cluster-advertise | 494dadb8a38d0e1d566dc33cd0ba1f1e324d57de | <ide><path>api/types/types.go
<ide> type Info struct {
<ide> Labels []string
<ide> ExperimentalBuild bool
<ide> ServerVersion string
<del> ClusterStore string `json:",omitempty"` // Deprecated: host-discovery and overlay networks with external k/v stores are deprecated
<del> ClusterAdvertise ... | 1 |
Javascript | Javascript | add dataview test case for v8 serdes | c14284fb0bf4b99cf021f17274c190f55d8debc3 | <ide><path>test/parallel/test-v8-serdes.js
<ide> const objects = [
<ide> { bar: 'baz' },
<ide> new Uint8Array([1, 2, 3, 4]),
<ide> new Uint32Array([1, 2, 3, 4]),
<add> new DataView(new ArrayBuffer(42)),
<ide> Buffer.from([1, 2, 3, 4]),
<ide> undefined,
<ide> null, | 1 |
Python | Python | add missing variable assignment | 2ed6882a73d00df6baa465435980c2dbf3c2a835 | <ide><path>libcloud/httplib_ssl.py
<ide> def set_http_proxy(self, proxy_url):
<ide> self.proxy_scheme = scheme
<ide> self.proxy_host = host
<ide> self.proxy_port = port
<add> self.http_proxy_used = True
<ide>
<ide> self._setup_http_proxy()
<ide> | 1 |
Python | Python | fix textcat simple train example | 42a0fbf29168f12a4bc3afc53bbf7148b9d008f6 | <ide><path>spacy/tests/pipeline/test_textcat.py
<add># coding: utf8
<add>
<ide> from __future__ import unicode_literals
<ide> from ...language import Language
<ide>
<add>
<ide> def test_simple_train():
<ide> nlp = Language()
<del>
<ide> nlp.add_pipe(nlp.create_pipe('textcat'))
<del> nlp.get_pipe('textcat').... | 1 |
Python | Python | add auto_name to config | c6c3a0247c70fbea7344ef2e5ea710a9244e7745 | <ide><path>keras/layers/core.py
<ide> def get_config(self):
<ide> config = {"name": self.__class__.__name__,
<ide> "layers": [l.get_config() for l in self.layers],
<ide> "mode": self.mode,
<del> "concat_axis": self.concat_axis}
<add> "concat_... | 1 |
Text | Text | fix dead link in oracle.md | ffda2035e5a9e6a723c4c84cd5f88c5f4a9dc2ba | <ide><path>docs/sources/installation/oracle.md
<ide> Request at [My Oracle Support](http://support.oracle.com).
<ide>
<ide> If you do not have an Oracle Linux Support Subscription, you can use the [Oracle
<ide> Linux
<del>Forum](https://community.oracle.com/community/server_%26_storage_systems/linux/
<del>oracle_linux... | 1 |
Python | Python | remove print from gogrid | f2515273bc74870d8ae5015a8a3297be492efead | <ide><path>test/test_gogrid.py
<ide> def setUp(self):
<ide>
<ide> def test_list_nodes(self):
<ide> ret = self.conn.list_nodes()
<del> print ret | 1 |
Javascript | Javascript | remove fieldset from wrapmap | 378ab82865f92a5aec4324d22c7345eff0a737a0 | <ide><path>src/manipulation.js
<ide> var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>
<ide>
<ide> // Support: IE 9
<ide> option: [ 1, "<select multiple='multiple'>" ],
<del> legend: [ 1, "<fieldset>" ],
<ide> param: [ 1, "<object>" ],
<ide> thead: [ 1, "<table>" ],
<ide> tr:... | 1 |
Javascript | Javascript | add doc for refreshcontrol | b34f6c9f7451421678d7e4785bab9e6dad819d53 | <ide><path>website/server/extractDocs.js
<ide> var components = [
<ide> '../Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js',
<ide> '../Libraries/Components/ProgressViewIOS/ProgressViewIOS.ios.js',
<ide> '../Libraries/PullToRefresh/PullToRefreshViewAndroid.android.js',
<add> '../Libraries/C... | 1 |
Text | Text | add "labels" key to output of /containers/json | b245bcd458492c9b348b790a9422dd7478f9af83 | <ide><path>docs/reference/api/docker_remote_api_v1.18.md
<ide> List containers
<ide> "Created": 1367854155,
<ide> "Status": "Exit 0",
<ide> "Ports": [{"PrivatePort": 2222, "PublicPort": 3333, "Type": "tcp"}],
<add> "Labels": {
<add> ... | 4 |
Javascript | Javascript | add a failing test for | 8ec69ba1cb086faa21d5d66fd09aa0f386c1c943 | <ide><path>packages/ember-glimmer/tests/integration/components/curly-components-test.js
<ide> moduleFor('Components test: curly components', class extends RenderingTest {
<ide> this.assertComponentElement(this.firstChild, { content: 'yielded: [hello] - In component' });
<ide> }
<ide>
<add> ['@test it can render... | 1 |
Ruby | Ruby | enable use of mysql stored procedures by default | c9d3c48dc6389feb2001372cd76e96274e773c9b | <ide><path>activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
<ide> def self.mysql_connection(config) # :nodoc:
<ide> raise
<ide> end
<ide> end
<add>
<ide> MysqlCompat.define_all_hashes_method!
<ide>
<ide> mysql = Mysql.init
<ide> mysql.ssl_set(config[:sslkey]... | 3 |
PHP | PHP | add use closure; | 034c63b39deb190fd909294022bc8d80d5cf7ae9 | <ide><path>laravel/database/schema.php
<ide> <?php namespace Laravel\Database;
<ide>
<add>use Closure;
<ide> use Laravel\Fluent;
<ide> use Laravel\Database as DB;
<ide> | 1 |
Javascript | Javascript | resize stderr on sigwinch | bf2cd225a84a686d94549ee00100772d02f17551 | <ide><path>src/node.js
<ide> er = er || new Error('process.stderr cannot be closed.');
<ide> stderr.emit('error', er);
<ide> };
<add> if (stderr.isTTY) {
<add> process.on('SIGWINCH', function() {
<add> stderr._refreshSize();
<add> });
<add> }
<ide> return std... | 1 |
Javascript | Javascript | destroy $rootscope after each test | b75c0d8d0549261ece551210a11d8be48c3ab3cc | <ide><path>src/ngMock/angular-mocks.js
<ide> if (window.jasmine || window.mocha) {
<ide>
<ide> if (injector) {
<ide> injector.get('$rootElement').off();
<add> injector.get('$rootScope').$destroy();
<ide> }
<ide>
<ide> // clean up jquery's fragment cache
<ide><path>test/ngMock/angular-mocksSpec.... | 2 |
PHP | PHP | extract a trait that provides repository() | 8a8ac0f01d755356fd1382b40ce44249524bc059 | <ide><path>Cake/Controller/Controller.php
<ide> use Cake\Utility\ClassRegistry;
<ide> use Cake\Utility\Inflector;
<ide> use Cake\Utility\MergeVariablesTrait;
<add>use Cake\Utility\RepositoryAwareTrait;
<ide> use Cake\Utility\ViewVarsTrait;
<ide> use Cake\View\View;
<ide>
<ide> class Controller extends Object implement... | 2 |
Java | Java | expose status in subprotocolwebsockethandler | fe92486cca981d3040124748221345f2fbc8dfe3 | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/messaging/SubProtocolWebSocketHandler.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "Lice... | 1 |
Java | Java | fix typo in javadoc for @requestmapping | d2e1150c7999b347d159ffc8247b123a406bf382 | <ide><path>spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java
<ide> * produces = "text/plain;charset=UTF-8"
<ide> * </pre>
<ide> * <p>If a declared media type contains a parameter (e.g. "charset=UTF-8",
<del> * "type=feed", type="entry") and if a compatible media type from the r... | 1 |
Java | Java | implement fabricuimanagermodule in android | 4371d1e1d0318c3aa03738583a24b833f0a33ba1 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java
<ide> public List<String> getViewManagerNames() {
<ide> } else {
<ide> return new UIManagerModule(
<ide> reactContext,
<del> mReactInstanceManager.createAllViewManagers(reactContext),
<add> m... | 6 |
Python | Python | fix indentation for epytext | 22c9289eb95a925f838ccc1260f104ff44fee704 | <ide><path>libcloud/drivers/slicehost.py
<ide> def destroy_node(self, node):
<ide> """Destroys the node
<ide>
<ide> Requires 'Allow Slices to be deleted or rebuilt from the API' to be
<del> ticked at https://manage.slicehost.com/api, otherwise returns:
<del>
<del> <errors>
<del> ... | 1 |
Ruby | Ruby | ensure pop stack | 8749ecc3839c6093f56c6b80ebf794266a611472 | <ide><path>Library/Homebrew/dependency.rb
<ide> def expand(dependent, deps = dependent.deps, &block)
<ide> end
<ide> end
<ide>
<del> @expand_stack.pop
<ide> merge_repeats(expanded_deps)
<add> ensure
<add> @expand_stack.pop
<ide> end
<ide>
<ide> def action(dependent, dep, &_blo... | 1 |
Javascript | Javascript | remove special case for edge | 70b801f3269738290e8edb2cd1326da7920d11f9 | <ide><path>test/AngularSpec.js
<ide> describe('angular', function() {
<ide> protocol = 'browserext:'; // Upcoming standard scheme.
<ide> }
<ide>
<del>
<del> if (protocol === 'ms-browser-extension:') {
<del> // Support: Edge 13-15
<del> // In Edge, URLs with protoco... | 1 |
Javascript | Javascript | tohavebeencalledonce jasmine matcher | b99b0a80723ad3a9b43e9ef36869f521eaec19ec | <ide><path>test/testabilityPatch.js
<ide> beforeEach(function(){
<ide> return "Expected " + expected + " to match an Error with message " + toJson(messageRegexp);
<ide> };
<ide> return this.actual.name == 'Error' && messageRegexp.test(this.actual.message);
<add> },
<add>
<add> toHaveBeenCalled... | 1 |
PHP | PHP | fix redis docblocks | df527d731c2fc21d9c18d513a515e1ba09e550d4 | <ide><path>src/Illuminate/Redis/Connectors/PredisConnector.php
<ide> class PredisConnector
<ide> * Create a new clustered Predis connection.
<ide> *
<ide> * @param array $config
<del> * @param array $clusterOptions
<ide> * @param array $options
<del> * @return \Illuminate\Redis\PredisC... | 1 |
PHP | PHP | fix cs errors | 03b6149217edd7d4971ef0987b3ff584f8ad20eb | <ide><path>Cake/ORM/Association/BelongsToMany.php
<ide> public function cascadeDelete(Entity $entity, $options = []) {
<ide> $conditions = array_combine($foreignKey, $entity->extract((array)$primaryKey));
<ide> }
<ide>
<del>
<ide> $table = $this->junction();
<ide> $hasMany = $this->source()->association($tabl... | 3 |
Java | Java | add application/*+xml to jaxb2xmlencoder | 6d4c0091b545e6dd4596b6856e957e90797365e5 | <ide><path>spring-web/src/main/java/org/springframework/http/codec/xml/Jaxb2XmlEncoder.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may ... | 2 |
PHP | PHP | move skiplog handling to exceptiontrap | 63585377e7c06311bcc66e8688a646b0566491e6 | <ide><path>src/Error/ErrorLogger.php
<ide> class ErrorLogger implements ErrorLoggerInterface
<ide> /**
<ide> * Default configuration values.
<ide> *
<del> * - `skipLog` List of exceptions to skip logging. Exceptions that
<del> * extend one of the listed exceptions will also not be logged.
<ide> ... | 2 |
Text | Text | make notice in the readme into a link | d94e186442ef4ba3103a6ad72666782179d3c2b8 | <ide><path>README.md
<ide> We are always open to suggestions on process improvements, and are always lookin
<ide> ### Legal
<ide>
<ide> *Brought to you courtesy of our legal counsel. For more context,
<del>please see the "NOTICE" document in this repo.*
<add>please see the [NOTICE](https://github.com/docker/docker/blo... | 1 |
PHP | PHP | add method for consistency | ed24e391a965d0eb2a73daeb625bb235257e6745 | <ide><path>src/Illuminate/Mail/Mailer.php
<ide> public function queue($view, array $data, $callback, $queue = null)
<ide> * @param \Closure|string $callback
<ide> * @return mixed
<ide> */
<del> public function queueOn($queue, $view, array $data, $callback)
<add> public function onQueue($queue, $v... | 1 |
Text | Text | fix typo in actionview changelog [ci skip] | 6ff026a1cdad6166bf2771ea24b7fa0f6a61e565 | <ide><path>actionview/CHANGELOG.md
<ide> * Change the default template handler from `ERB` to `Raw`.
<ide>
<del> Files without a template handler in their extension will be rended using the raw
<add> Files without a template handler in their extension will be rendered using the raw
<ide> handler instead of ... | 1 |
Go | Go | improve chroot driver by mounting proc | 92e6db7beba8ad58e425119cc9885c355a5755e7 | <ide><path>execdriver/chroot/driver.go
<ide> package chroot
<ide>
<ide> import (
<del> "fmt"
<ide> "github.com/dotcloud/docker/execdriver"
<del> "io/ioutil"
<ide> "os/exec"
<del> "path"
<ide> "time"
<ide> )
<ide>
<ide> func NewDriver() (execdriver.Driver, error) {
<ide> return &driver{}, nil
<ide> }
<ide>
<add>f... | 5 |
Text | Text | add release notes for action text [ci skip] | 1a2de86568b34bab46b1a2b6e5b8e4567f914ded | <ide><path>actiontext/CHANGELOG.md
<del>* Add method to confirm rich text content existence by adding `?` after content name.
<add>* Add method to confirm rich text content existence by adding `?` after rich
<add> text attribute.
<add>
<add> ```ruby
<add> message = Message.create!(body: "<h1>Funny times!</... | 2 |
PHP | PHP | adjust deprecation texts | 1c3d6af547114f90fa7a9322134b7014ec96c598 | <ide><path>src/ORM/Table.php
<ide> public function hasBehavior($name)
<ide> /**
<ide> * Returns an association object configured for the specified alias if any.
<ide> *
<del> * @deprecated 3.6.0 Use getAssociation() instead.
<add> * @deprecated 3.6.0 Use getAssociation() and Table::hasAssocation()... | 1 |
Javascript | Javascript | handle file checksumming errors | 5a66a14226912ec873c039e6e681f837b0fde2e0 | <ide><path>activestorage/app/javascript/activestorage/direct_upload.js
<ide> export class DirectUpload {
<ide>
<ide> create(callback) {
<ide> FileChecksum.create(this.file, (error, checksum) => {
<add> if (error) {
<add> callback(error)
<add> return
<add> }
<add>
<ide> const blob = ... | 1 |
Ruby | Ruby | add bintray class | e303a97aa710e781c9ccb0b5b7c7675f26862be3 | <ide><path>Library/Homebrew/bottles.rb
<ide> def bottle_filename_formula_name filename
<ide> basename.rpartition("-#{version}").first
<ide> end
<ide>
<add>class Bintray
<add> def self.repository(tap=nil)
<add> return "bottles" if tap.to_s.empty?
<add> "bottles-#{tap.sub(/^homebrew\/homebrew-/i, "")}"
<add> e... | 1 |
Javascript | Javascript | add a filter to issue-2895 | ff2342001a15997ed025ba6516ecfd7a34dbb94b | <ide><path>test/cases/parsing/issue-2895/test.filter.js
<add>var supportsBlockScoping = require("../../../helpers/supportsBlockScoping");
<add>
<add>module.exports = function(config) {
<add> return !config.minimize && supportsBlockScoping();
<add>};
<ide><path>test/helpers/supportsBlockScoping.js
<add>module.exports = ... | 2 |
Python | Python | add format class attributes | 12905449a5591cef2b2fc94d68cc273dc6df0463 | <ide><path>rest_framework/fields.py
<ide> class DateField(WritableField):
<ide> 'invalid': _("Date has wrong format. Use one of these formats instead: %s"),
<ide> }
<ide> empty = None
<add> input_formats = api_settings.DATE_INPUT_FORMATS
<add> output_format = api_settings.DATE_OUTPUT_FORMAT
<ide> ... | 1 |
Ruby | Ruby | add missing comma | 62133326df3c7edff67a2e57ae32c95bf6e8a818 | <ide><path>actionpack/lib/action_dispatch/testing/integration.rb
<ide> def non_kwarg_request_warning
<ide> get '/profile',
<ide> params: { id: 1 },
<ide> headers: { 'X-Extra-Header' => '123' },
<del> env: { 'action_dispatch.custom' => 'custom' }
<add> en... | 1 |
Ruby | Ruby | cache the engine in the formatter | 020b03749fff4b1fcea52553846ece822ea8e840 | <ide><path>lib/arel/engines/sql/formatters.rb
<ide> module Arel
<ide> module Sql
<ide> class Formatter
<del> attr_reader :environment, :christener
<add> attr_reader :environment, :christener, :engine
<ide>
<ide> def initialize(environment)
<ide> @environment = environment
<ide> @c... | 1 |
Javascript | Javascript | move commonjschunkformat into separate plugin | 6ac97b3f58efca64df9c7102eb24801ec8dab9de | <ide><path>lib/javascript/CommonJsChunkFormatPlugin.js
<add>/*
<add> MIT License http://www.opensource.org/licenses/mit-license.php
<add> Author Tobias Koppers @sokra
<add>*/
<add>
<add>"use strict";
<add>
<add>const { ConcatSource } = require("webpack-sources");
<add>const RuntimeGlobals = require("../RuntimeGlobals")... | 2 |
PHP | PHP | add plugin shell | 37f542d72d8f731aa08008d64d5e26c7d39e777b | <ide><path>src/Shell/PluginShell.php
<add><?php
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copyright and license information, please see t... | 3 |
Ruby | Ruby | fix rubocop warnings | 5e0c22202955243e07ab18a56ea8019b3dd200c6 | <ide><path>Library/Homebrew/cmd/desc.rb
<ide> def desc
<ide> results.print
<ide> elsif search_type.size > 1
<ide> odie "Pick one, and only one, of -s/--search, -n/--name, or -d/--description."
<add> elsif arg = ARGV.named.first
<add> regex = Homebrew.query_regexp(arg)
<add> results = Descri... | 1 |
Ruby | Ruby | remove need for macro instance var | 8c263d53b3b9d190a8ae564ca043b96b76c76877 | <ide><path>activerecord/lib/active_record/reflection.rb
<ide> class MacroReflection < AbstractReflection
<ide> # <tt>has_many :clients</tt> returns <tt>:clients</tt>
<ide> attr_reader :name
<ide>
<del> # Returns the macro type.
<del> #
<del> # <tt>composed_of :balance, class_name: 'Money'</t... | 1 |
Ruby | Ruby | remove redefined method | c967c5eb8331569f69de4f04b5a73f2a8923565b | <ide><path>actionpack/lib/action_dispatch/http/response.rb
<ide> def delete_cookie(key, value={})
<ide> end
<ide>
<ide> # The location header we'll be responding with.
<del> def location
<del> headers[LOCATION]
<del> end
<ide> alias_method :redirect_url, :location
<ide>
<ide> # Sets the loc... | 1 |
Python | Python | avoid dropout at runtime | f8a1c1afd6fff111b4434e6d19a2b1aec5b55501 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy-nightly"
<del>__version__ = "3.0.0a40"
<add>__version__ = "3.0.0a41"
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-models/master/compa... | 2 |
Ruby | Ruby | remove unused require | 88aaa36bec984ed84d148dee6c3d56d92c96f026 | <ide><path>Library/Homebrew/cmd/list.rb
<ide> def list
<ide> return unless HOMEBREW_CELLAR.exist?
<ide>
<ide> if ARGV.include? '--pinned'
<del> require 'formula'
<ide> list_pinned
<ide> elsif ARGV.include? '--versions'
<ide> list_versions | 1 |
Go | Go | prevent user from deleting pre-defined networks | ead62b59522bba132b9a14712e4350439e7fa2a5 | <ide><path>api/server/router/network/network_routes.go
<ide> import (
<ide> "github.com/docker/docker/daemon"
<ide> "github.com/docker/docker/daemon/network"
<ide> "github.com/docker/docker/pkg/parsers/filters"
<add> "github.com/docker/docker/runconfig"
<ide> "github.com/docker/libnetwork"
<ide> )
<ide>
<ide> func... | 4 |
Python | Python | remove manual check for regularizers (use auto) | 4d267f5ba3c24781dd190aeb633f93558c0100f6 | <ide><path>tests/manual/check_activity_reg.py
<del>from keras.datasets import mnist
<del>from keras.models import Sequential
<del>from keras.layers.core import Dense, Flatten, ActivityRegularization
<del>from keras.utils import np_utils
<del>from keras.regularizers import activity_l1
<del>
<del>import numpy as np
<del>... | 1 |
Ruby | Ruby | fix dependency equality | 6eced20b351a4dab4a1cbf75fe7a9d1975602512 | <ide><path>Library/Homebrew/dependencies.rb
<ide> def to_s
<ide> end
<ide>
<ide> def ==(other_dep)
<del> @name = other_dep.to_s
<add> @name == other_dep.to_s
<ide> end
<ide>
<ide> def options | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.