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 | place alias adjacent to aliased method | be1822dd728b4ca3d6b3be528ae067de482810e4 | <ide><path>Library/Homebrew/compilers.rb
<ide> class CompilerFailure
<ide> attr_reader :compiler, :major_version
<ide> attr_rw :cause, :version
<ide>
<add> # Allows Apple compiler `fails_with` statements to keep using `build`
<add> # even though `build` and `version` are the same internally
<add> alias_method :... | 1 |
Python | Python | add a check on export stats | e33f11f1d57bf1ff434769ec5ec327155051439f | <ide><path>glances/exports/glances_export.py
<ide> def __build_export(self, stats):
<ide> if isinstance(stats, dict):
<ide> # Stats is a dict
<ide> # Is there a key ?
<del> if 'key' in iterkeys(stats):
<add> if 'key' in iterkeys(stats) and stats['key'] in iterkeys(s... | 1 |
Text | Text | fix changelog_v8 indentation | 737239a053bb8b1f368625cceb72c3c467335481 | <ide><path>doc/changelogs/CHANGELOG_V8.md
<ide> * [io.js](CHANGELOG_IOJS.md)
<ide> * [Archive](CHANGELOG_ARCHIVE.md)
<ide>
<del> <a id="8.8.1"></a>
<del> ## 2017-10-25, Version 8.8.1 (Current), @cjihrig
<del>
<del> ### Notable Changes
<del>
<del> * **net**:
<del> - Fix timeout with null handle issue. This i... | 1 |
Javascript | Javascript | remove un-needed tostring | 690dfdf06f621619540cee333dd3557dfbbc8ac9 | <ide><path>packages/ember-routing/lib/helpers/action.js
<ide> Ember.onLoad('Ember.Handlebars', function(Handlebars) {
<ide> };
<ide>
<ide> ActionHelper.registerAction = function(actionNameOrPath, options, allowedKeys) {
<del> var actionId = (++Ember.uuid).toString();
<add> var actionId = ++Ember.uuid;
<ide> ... | 1 |
Text | Text | add a description about like conditions | 4dc71e2880c87ac423da773884163c15c3688c81 | <ide><path>guides/source/active_record_querying.md
<ide> Book.where("created_at >= :start_date AND created_at <= :end_date",
<ide>
<ide> This makes for clearer readability if you have a large number of variable conditions.
<ide>
<add>#### Conditions That Use `LIKE`
<add>
<add>Although condition arguments are automati... | 1 |
Text | Text | add changes " print value using abs function" . | f7f69fca06b0aea36b1a6131cfcb26ba3eac6446 | <ide><path>guide/english/python/abs-function/index.md
<ide> The return value would be a positive number or zero. Even if a complex number is
<ide> print(abs(3.4)) # prints 3.4
<ide> print(abs(-6)) # prints 6
<ide> print(abs(3 + 4j)) # prints 5.0, because |3 + 4j| = 5
<add>print(abs(-4.6)) # prints 4.6
<ide> print(abs... | 1 |
Javascript | Javascript | remove unneeded get | 55a30aabc15c92d376d3208d029132740b7a56a9 | <ide><path>packages/ember-handlebars/lib/helpers/each.js
<ide> Ember.Handlebars.EachView = Ember.CollectionView.extend(Ember._Metamorph, {
<ide>
<ide> // If {{#each}} is looping over an array of controllers,
<ide> // point each child view at their respective controller.
<del> if (content && get(content, 'is... | 1 |
Text | Text | clarify workdir in docs | e87c6dd3e48135637d12067dd158252b5c27349b | <ide><path>docs/reference/builder.md
<ide> For example:
<ide> The output of the final `pwd` command in this `Dockerfile` would be
<ide> `/path/$DIRNAME`
<ide>
<add>On Windows, `WORKDIR` behaves differently depending on whether using Windows
<add>Server containers or Hyper-V containers. For Hyper-V containers, the engi... | 1 |
Text | Text | add docs for zlib#close() | 562ea8986fc7ea94db3a901710eff0ffe53b4bde | <ide><path>doc/api/zlib.md
<ide> The `zlib.bytesRead` property specifies the number of bytes read by the engine
<ide> before the bytes are processed (compressed or decompressed, as appropriate for
<ide> the derived class).
<ide>
<add>### zlib.close([callback])
<add><!-- YAML
<add>added: v0.9.4
<add>-->
<add>
<add>Clos... | 1 |
PHP | PHP | apply fixes from styleci | a9f00e68699001a46c7655dfd35c0fd3dcd5e0e2 | <ide><path>src/Illuminate/Foundation/Console/EventGenerateCommand.php
<ide>
<ide> use Illuminate\Support\Str;
<ide> use Illuminate\Console\Command;
<del>use Illuminate\Foundation\Support\Providers\EventServiceProvider;
<ide>
<ide> class EventGenerateCommand extends Command
<ide> { | 1 |
Ruby | Ruby | enable sandbox by default | 0c20957f5bdf93737107e4502aaec498ac0e6ba8 | <ide><path>Library/Homebrew/cmd/test.rb
<ide> def test
<ide> args << "--devel"
<ide> end
<ide>
<del> if Sandbox.available? && ARGV.sandbox?
<add> if Sandbox.available? && !ARGV.no_sandbox?
<ide> if Sandbox.auto_disable?
<ide> Sandbox.print_autodisable_warning
<ide>... | 1 |
Ruby | Ruby | add more test | b62a2c7e7f9fc7f45931b61d7a534a6d6b02f391 | <ide><path>Library/Homebrew/test/test_formulary.rb
<ide> def test_factory_from_alias
<ide> alias_dir.rmtree
<ide> end
<ide>
<del> def test_factory_from_rack
<add> def test_factory_from_rack_and_from_keg
<ide> formula = Formulary.factory(@path)
<ide> installer = FormulaInstaller.new(formula)
<ide> s... | 2 |
Text | Text | fix typo in 5_0_release_notes.md doc [ci skip] | 86c0dccac13d469ae148a8365ac008c380acf935 | <ide><path>guides/source/5_0_release_notes.md
<ide> Please refer to the [Changelog][active-record] for detailed changes.
<ide>
<ide> * Removed support for the legacy `mysql` database adapter from core. Most users should
<ide> be able to use `mysql2`. It will be converted to a separate gem when when we find someo... | 1 |
Javascript | Javascript | add a couple of `linkannotation` unit-tests | 171f908b892e43062586c25418c722861f98f6b0 | <ide><path>test/unit/annotation_layer_spec.js
<ide> /* globals expect, it, describe, Dict, Name, Annotation, AnnotationBorderStyle,
<del> AnnotationBorderStyleType, AnnotationFlag, PDFJS,
<del> beforeEach, afterEach, stringToBytes */
<add> AnnotationBorderStyleType, AnnotationType, Annota... | 1 |
Ruby | Ruby | use include_blank value as option label | d611036c7709d7c30cbab3110e20e248283af364 | <ide><path>actionview/lib/action_view/helpers/form_tag_helper.rb
<ide> def select_tag(name, option_tags = nil, options = {})
<ide> option_tags ||= ""
<ide> html_name = (options[:multiple] == true && !name.to_s.ends_with?("[]")) ? "#{name}[]" : name
<ide>
<del> if options.delete(:include_blank)
<... | 2 |
Javascript | Javascript | remove inlineblockneedslayout and shrinkwrapblocks | aa529696fb91eaa167ed4dad9c63957b3466a45c | <ide><path>src/effects.js
<ide> function defaultPrefilter( elem, props, opts ) {
<ide> if ( jQuery.css( elem, "display" ) === "inline" &&
<ide> jQuery.css( elem, "float" ) === "none" ) {
<ide>
<del> // inline-level elements accept inline-block;
<del> // block-level elements need to be inline with layout
<del... | 3 |
Go | Go | fix typo in overlay documentation | f1f6738d974a5bb4f798a1f01fd074bfb45f681f | <ide><path>daemon/graphdriver/overlay/overlay.go
<ide> func (d *naiveDiffDriverWithApply) ApplyDiff(id, parent string, diff archive.Rea
<ide> // data with the parent.
<ide>
<ide> // ActiveMount contains information about the count, path and whether is mounted or not.
<del>// This information is part of the Driver, tha... | 1 |
Text | Text | use proper link in docs issue template | 19206efaaf31ee3368a42c51d0825db03d8490d2 | <ide><path>.github/ISSUE_TEMPLATE/4_Documentation_issue.md
<ide> ---
<ide> name: "📚 Documentation Issue"
<del>about: 'For documentation issues, see: https://github.com/laravel/docs/issues'
<add>about: 'For documentation issues, open a pull request at https://github.com/laravel/docs'
<ide>
<ide> ---
<ide> | 1 |
Javascript | Javascript | add node.error(); p() outputs to stderr | 949f24305b06617487d4d13b81d4ce756c6a224c | <ide><path>src/util.js
<ide> puts = function (x) {
<ide> print(x.toString() + "\n");
<ide> };
<ide>
<add>node.debug = function (x) {
<add> node.stdio.writeError("DEBUG: " + x.toString() + "\n");
<add>};
<add>
<add>node.error = function (x) {
<add> node.stdio.writeError(x.toString() + "\n");
<add>};
<add>
<ide> p =... | 1 |
Python | Python | use single backticks around parameter names | fad2c4d391d6a14a01ef9fc17c45cdf011164992 | <ide><path>numpy/testing/_private/utils.py
<ide> def assert_allclose(actual, desired, rtol=1e-7, atol=0, equal_nan=True,
<ide>
<ide> Notes
<ide> -----
<del> When one of ``actual`` and ``desired`` is a scalar and the other is
<add> When one of `actual` and `desired` is a scalar and the other is
<ide> ... | 1 |
Text | Text | improve explanation for directory with fs.rename() | e7ca3987a2d88cee3523abe72e38f1ddc6cb13db | <ide><path>doc/api/fs.md
<ide> changes:
<ide>
<ide> Asynchronously rename file at `oldPath` to the pathname provided
<ide> as `newPath`. In the case that `newPath` already exists, it will
<del>be overwritten. No arguments other than a possible exception are
<add>be overwritten. If there is a directory at `newPath`, an... | 1 |
PHP | PHP | fix missing property | 54d2e2cd25304040eb34ae02c30d405a38d92a4a | <ide><path>src/Controller/ControllerFactory.php
<ide> */
<ide> class ControllerFactory implements ControllerFactoryInterface
<ide> {
<add> /**
<add> * @var \Psr\Container\ContainerInterface
<add> */
<add> protected $container;
<add>
<ide> /**
<ide> * Constructor
<ide> * | 1 |
Go | Go | add aaron swartz to the names generator | 5b8c8b1819d0f2dcbe7d708b1ae8f579a73401bd | <ide><path>pkg/namesgenerator/names-generator.go
<ide> var (
<ide> // Richard Matthew Stallman - the founder of the Free Software movement, the GNU project, the Free Software Foundation, and the League for Programming Freedom. He also invented the concept of copyleft to protect the ideals of this movement, and enshri... | 1 |
Go | Go | fix empty-lines (revive) | 0695a910c6bededc23ba6fd102528e40f0f9c445 | <ide><path>daemon/logger/adapter_test.go
<ide> func (l *mockLoggingPlugin) StartLogging(file string, info Info) error {
<ide>
<ide> l.c.Broadcast()
<ide> return
<del>
<ide> }
<ide>
<ide> l.c.L.Lock()
<ide> l.logs = append(l.logs, &msg)
<ide> l.c.L.Unlock()
<ide> l.c.Broadcast()
<ide> }
<del>
... | 7 |
Python | Python | set default loglevel to info | ddeb3a3ed750d2cbddee9abb78832f169efd8880 | <ide><path>celery/bin/celeryev.py
<ide> class EvCommand(Command):
<ide>
<ide> def run(self, dump=False, camera=None, frequency=1.0, maxrate=None,
<del> loglevel="WARNING", logfile=None, **kwargs):
<add> loglevel="INFO", logfile=None, **kwargs):
<ide> if dump:
<ide> return self.run... | 1 |
Text | Text | improve the git instructions to update a pr | 18a8bcf0720b394e22e28b1389589f1ebbdc5cfc | <ide><path>docs/sources/project/review-pr.md
<ide> need to update your pull request with additional changes.
<ide>
<ide> To update your existing pull request:
<ide>
<del>1. Change one or more files in your local `docker-fork` repository.
<add>1. Checkout the PR branch in your local `docker-fork` repository.
<ide>
... | 1 |
Ruby | Ruby | handle empty formula body in various cops | 6ede5d2dd5cf378729669dc02e8b324b86986dde | <ide><path>Library/Homebrew/rubocops/class.rb
<ide> module FormulaAuditStrict
<ide> #
<ide> # @api private
<ide> class TestPresent < FormulaCop
<del> def audit_formula(_node, _class_node, _parent_class_node, body_node)
<add> def audit_formula(_node, class_node, _parent_class_node, body_n... | 13 |
PHP | PHP | add new report helper | 2b676191b1688b8edc9d43317a2989642fe95b5d | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> use Illuminate\Contracts\Auth\Access\Gate;
<ide> use Illuminate\Contracts\Routing\UrlGenerator;
<ide> use Illuminate\Foundation\Bus\PendingDispatch;
<add>use Illuminate\Contracts\Debug\ExceptionHandler;
<ide> use Illuminate\Contracts\Routing\ResponseFactory;
<ide> ... | 1 |
Text | Text | improve grammar in .force_authenticate() docs | 971bc066c5d41b001a134b95b6fe357c726135c9 | <ide><path>docs/api-guide/testing.md
<ide> The `credentials` method is appropriate for testing APIs that require authentica
<ide>
<ide> #### .force_authenticate(user=None, token=None)
<ide>
<del>Sometimes you may want to bypass authentication, and simple force all requests by the test client to be automatically treat... | 1 |
Javascript | Javascript | fix rest of locale comments | 8e081f145b3096fae0b61e6b3ef16c788de30191 | <ide><path>src/locale/ar.js
<ide> //! moment.js locale configuration
<del>//! Locale: Arabic [ar]
<del>//! Author: Abdel Said: https://github.com/abdelsaid
<del>//! Changes in months, weekdays: Ahmed Elkhatib
<add>//! locale : Arabic [ar]
<add>//! author : Abdel Said: https://github.com/abdelsaid
<add>//! changes in mo... | 3 |
Text | Text | fix mistake in path.relative | 2ff23c5622c9738f48c19f078ba140efe2699871 | <ide><path>doc/api/path.md
<ide> path.relative('C:\\orandea\\test\\aaa', 'C:\\orandea\\impl\\bbb');
<ide> // Returns: '..\\..\\impl\\bbb'
<ide> ```
<ide>
<del>A [`TypeError`][] is thrown if neither `from` nor `to` is a string.
<add>A [`TypeError`][] is thrown if either `from` or `to` is not a string.
<ide>
<ide> ## p... | 1 |
Java | Java | fix javadoc in uricomponentsbuilder | 654e14a86a5035d5cc061fb8f6bb44cdc3b41e7c | <ide><path>spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java
<ide> public static UriComponentsBuilder fromUriString(String uri) {
<ide> * be parsed unambiguously. Such values should be substituted for URI
<ide> * variables to enable correct parsing:
<ide> * <pre class="code">
<del> ... | 1 |
Javascript | Javascript | add traceback to unhandled promise rejections | 316f60fd1433cc83f63c64fadfcde5cdf0033de5 | <ide><path>src/ng/q.js
<ide> function qFactory(nextTick, exceptionHandler, errorOnUnhandledRejections) {
<ide> if (!toCheck.pur) {
<ide> toCheck.pur = true;
<ide> var errorMessage = 'Possibly unhandled rejection: ' + toDebugString(toCheck.value);
<del> exceptionHandler(errorMessage);
<add> ... | 2 |
Java | Java | improve performance of formcontentfilter | 932f771380db98f80c75ccb16cd122db1bfdc970 | <ide><path>spring-web/src/main/java/org/springframework/web/filter/FormContentFilter.java
<ide> public InputStream getBody() throws IOException {
<ide> }
<ide>
<ide> private boolean shouldParse(HttpServletRequest request) {
<del> if (!HTTP_METHODS.contains(request.getMethod())) {
<del> return false;
<del> }
<del... | 1 |
Text | Text | remove trailing spaces from docs | bba29e591604fed8c1e3bc4cf911273d4c5e0f42 | <ide><path>docs/axes/README.md
<ide> There are a number of config callbacks that can be used to change parameters in
<ide> | Name | Arguments | Description
<ide> | ---- | --------- | -----------
<ide> | `beforeUpdate` | `axis` | Callback called before the update process starts.
<del>| `beforeSetDimensions` | `axis` | C... | 12 |
Text | Text | add retry ci in collaborator guide | 3ec88760e6a69419a6fc22a3b14bfeba137df666 | <ide><path>doc/contributing/collaborator-guide.md
<ide> current job but re-run everything else. Start a fresh CI if more than seven days
<ide> have elapsed since the original failing CI as the compiled binaries for the
<ide> Windows and ARM platforms are only kept for seven days.
<ide>
<add>If new commits are pushed t... | 1 |
Python | Python | add image_name assignment to _to_node() | 1f1433fdcfda399c96cc398b045a498ec5119a30 | <ide><path>libcloud/container/drivers/kubernetes.py
<ide> def _to_node(self, data):
<ide> cpu = data["status"].get("capacity", {}).get("cpu", "1")
<ide> if isinstance(cpu, str) and not cpu.isnumeric():
<ide> cpu = to_n_cpus_from_cpu_str(cpu)
<del> # TODO: Find image
<del> image... | 1 |
Javascript | Javascript | add setoverridemimetype() to xhrloader | 0d47a62f8df511929057023f3884dbad1d4ebfba | <ide><path>src/loaders/FileLoader.js
<ide> Object.assign( FileLoader.prototype, {
<ide> if ( this.responseType !== undefined ) request.responseType = this.responseType;
<ide> if ( this.withCredentials !== undefined ) request.withCredentials = this.withCredentials;
<ide>
<del> if ( request.overrideMimeType ) re... | 1 |
Python | Python | replace getters/setters with properties | 929b832b74ba874d4add74c6478fafab859db998 | <ide><path>glances/core/glances_client.py
<ide> def __init__(self, config=None, args=None, timeout=7, return_to_browser=False):
<ide> self.args = args
<ide> self.config = config
<ide>
<del> # Client mode:
<del> self.set_mode()
<add> # Default client mode
<add> self._client_m... | 1 |
Javascript | Javascript | add warningfilter handling for yellowbox | e295f4a39466eab6353fff08b7b7558f7fa54396 | <ide><path>Libraries/YellowBox/Data/YellowBoxRegistry.js
<ide>
<ide> const YellowBoxWarning = require('./YellowBoxWarning');
<ide>
<del>import type {Category} from './YellowBoxCategory';
<del>
<add>import type {Category, Message} from './YellowBoxCategory';
<add>import type {Stack} from './YellowBoxSymbolication';
<i... | 4 |
Ruby | Ruby | remove proc handling from buildenvironment | 7ee49db51e27b4403d3f24747262d9c9891c8477 | <ide><path>Library/Homebrew/build_environment.rb
<ide> require 'set'
<ide>
<ide> class BuildEnvironment
<del> attr_accessor :proc
<del>
<ide> def initialize(*settings)
<ide> @settings = Set.new(*settings)
<ide> end
<ide> def std?
<ide> def userpaths?
<ide> @settings.include? :userpaths
<ide> end
<del>... | 2 |
Javascript | Javascript | define shader name | 9d9fbee78e1fb22e0a128f68e00052a6020e3aaf | <ide><path>src/renderers/webgl/plugins/SpritePlugin.js
<ide> function SpritePlugin( renderer, sprites ) {
<ide>
<ide> 'precision ' + renderer.getPrecision() + ' float;',
<ide>
<add> '#define SHADER_NAME ' + 'SpriteMaterial',
<add>
<ide> 'uniform mat4 modelViewMatrix;',
<ide> 'uniform mat4 projectionMatrix;... | 1 |
Javascript | Javascript | add method `preventdefault()` to `navigationevent` | 326a66ba077a790211bf8d8842fdb784f1b38aac | <ide><path>Libraries/CustomComponents/Navigator/Navigation/NavigationEvent.js
<ide> /**
<del> * Copyright 2004-present Facebook. All Rights Reserved.
<add> * Copyright (c) 2015, Facebook, Inc. All rights reserved.
<add> *
<add> * Facebook, Inc. (“Facebook”) owns all right, title and interest, including
<add> * all int... | 2 |
Python | Python | fix await_container_completion condition | 42abbf0d61f94ec50026af0c0f95eb378e403042 | <ide><path>airflow/providers/cncf/kubernetes/utils/pod_manager.py
<ide> def consume_logs(*, since_time: Optional[DateTime] = None, follow: bool = True)
<ide> time.sleep(1)
<ide>
<ide> def await_container_completion(self, pod: V1Pod, container_name: str) -> None:
<del> while not self.containe... | 1 |
Java | Java | add httpserviceproxyfactory builder | b1384ddafa9c6aac76312c103ba69c901f7b75f1 | <ide><path>spring-web/src/main/java/org/springframework/web/service/invoker/HttpServiceProxyFactory.java
<ide>
<ide> import java.lang.reflect.Method;
<ide> import java.time.Duration;
<del>import java.util.HashMap;
<add>import java.util.ArrayList;
<ide> import java.util.List;
<ide> import java.util.Map;
<add>import jav... | 5 |
Text | Text | use gfm footnotes in webcrypto.md | a749c1f20c79d09b890cff91961126f84ff345ec | <ide><path>doc/api/webcrypto.md
<ide> async function digest(data, algorithm = 'SHA-512') {
<ide> The table details the algorithms supported by the Node.js Web Crypto API
<ide> implementation and the APIs supported for each:
<ide>
<del>| Algorithm | `generateKey` | `exportKey` | `importKey` | `encryp... | 1 |
Javascript | Javascript | fix jshint errors in grunt tasks | 4e7d258065c9737113ff9c510574dea00a524a14 | <ide><path>tasks/bump_version.js
<ide> module.exports = function (grunt) {
<ide> grunt.registerTask('bump_version', function (version) {
<ide> if (!version || version.split('.').length !== 3) {
<del> grunt.fail.fatal('malformed version. Use\n\n grunt bump_version:1.2.3')
<add> grunt... | 8 |
Javascript | Javascript | remove flaky setinterval test | cfb2e0683972e0b0f09f431483e2672640da0b0f | <ide><path>test/parallel/test-timers-promisified.js
<ide> process.on('multipleResolves', common.mustNotCall());
<ide> assert.strictEqual(loopCount, 5);
<ide> }));
<ide> }
<del>
<del> {
<del> // Check that if we abort when we have some callbacks left,
<del> // we actually call them.
<del> const con... | 1 |
Python | Python | add tests for sentence segmentation presetting | 5a67efecccb91f68efbe7b14406a14c8151a2e9e | <ide><path>spacy/tests/parser/test_preset_sbd.py
<add>'''Test that the parser respects preset sentence boundaries.'''
<add>import pytest
<add>from thinc.neural.optimizers import Adam
<add>from thinc.neural.ops import NumpyOps
<add>
<add>from ...attrs import NORM
<add>from ...gold import GoldParse
<add>from ...vocab imp... | 1 |
PHP | PHP | add method for getting associations by type | f3f5bc938cb80aabe3efd4696d7defd9f2024da5 | <ide><path>Cake/ORM/Associations.php
<ide> public function keys() {
<ide> return array_keys($this->_items);
<ide> }
<ide>
<add>/**
<add> * Get an array of associations matching a specific type.
<add> *
<add> * @return array
<add> */
<add> public function type($class) {
<add> $out = array_filter($this->_items, func... | 2 |
Javascript | Javascript | replace flag with option | 3f01710d3ce89518825c7216975d544d6e78afb2 | <ide><path>test/parallel/test-https-agent-additional-options.js
<del>// Flags: --tls-min-v1.1
<ide> 'use strict';
<ide> const common = require('../common');
<ide> if (!common.hasCrypto)
<ide> const fixtures = require('../common/fixtures');
<ide> const options = {
<ide> key: fixtures.readKey('agent1-key.pem'),
<ide> ... | 1 |
Python | Python | limit yandexcloud to < 0.142 | 5e7ad0b5133db6014b2996db8efd60664369c8cc | <ide><path>setup.py
<ide> def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version
<ide> 'pywinrm>=0.4',
<ide> ]
<ide> yandex = [
<del> # Yandexcloud 0.145 broke logging of the yandexcloud provider. The limitation can be removed once
<add> # Yandexcloud 0.142 broke logging of the yande... | 1 |
PHP | PHP | send optional fields to unfurl links and media | 418137f61e5a57d122145c301224564f7f5a4727 | <ide><path>src/Illuminate/Notifications/Channels/SlackWebhookChannel.php
<ide> protected function buildJsonPayload(SlackMessage $message)
<ide> 'icon_emoji' => data_get($message, 'icon'),
<ide> 'icon_url' => data_get($message, 'image'),
<ide> 'link_names' => data_get($message, 'linkN... | 1 |
Text | Text | apply suggestions from code review | a2d4aaee70947219f5968f039400c63da759b41f | <ide><path>website/docs/usage/projects.md
<ide> $ python -m spacy project push
<ide> ```
<ide>
<ide> The `remotes` section in your `project.yml` lets you assign names to the
<del>different storages. To download a state from a remote storage, you can use the
<add>different storages. To download state from a remote stor... | 2 |
Javascript | Javascript | move image proptypes to a new file | 67656991b32075e8b4a99c6409b0a131206c6941 | <ide><path>Libraries/Image/Image.ios.js
<ide> 'use strict';
<ide>
<ide> const EdgeInsetsPropType = require('EdgeInsetsPropType');
<add>const ImageProps = require('ImageProps');
<ide> const ImageResizeMode = require('ImageResizeMode');
<ide> const ImageSourcePropType = require('ImageSourcePropType');
<ide> const ImageS... | 2 |
Ruby | Ruby | fix typo in eagerloadpolymorphicerror [ci skip] | 26f2447252176e347091a04b26942b61e121f740 | <ide><path>activerecord/lib/active_record/associations.rb
<ide> class HasManyThroughNestedAssociationsAreReadonly < ThroughNestedAssociationsAre
<ide> class HasOneThroughNestedAssociationsAreReadonly < ThroughNestedAssociationsAreReadonly #:nodoc:
<ide> end
<ide>
<del> # This error is raised when trying to eager ... | 1 |
Javascript | Javascript | fix error handling in listen() | d6191f593df6c4e09f4a1dba14a868ddb74dfe75 | <ide><path>lib/net.js
<ide> var createServerHandle = exports._createServerHandle =
<ide> if (r) {
<ide> handle.close();
<ide> handle = null;
<del>
<del> process.nextTick(function() {
<del> self.emit('error', errnoException(errno, 'listen'));
<del> });
<del> return;
<ide> }
<ide>
<ide> retur... | 2 |
Java | Java | stream custom types in jackson2jsonencoder | 727ca4514a1886c0e8739417536382d534844f59 | <ide><path>spring-web/src/main/java/org/springframework/http/codec/json/Jackson2JsonEncoder.java
<ide> public Flux<DataBuffer> encode(Publisher<?> inputStream, DataBufferFactory buffe
<ide> return Flux.from(inputStream).map(value ->
<ide> encodeValue(value, mimeType, bufferFactory, elementType, hints));
<ide> ... | 2 |
Javascript | Javascript | convert test from latest master merge | 740e460942a638e2b70e2f4182cb74400004cea5 | <ide><path>test/configCases/parsing/import-ignore/index.js
<ide> const fs = require("fs");
<ide> const path = require("path");
<del>const should = require("should");
<ide>
<ide> it("should be able to ignore import()", () => {
<ide> const source = fs.readFileSync(path.join(__dirname, "bundle1.js"), "utf-8");
<del> sho... | 1 |
PHP | PHP | use new response class within tests | 56965febc43b69e89289a37b1d8620c449a1d4a3 | <ide><path>tests/Fixture/AssertIntegrationTestCase.php
<ide> <?php
<ide> namespace Cake\Test\Fixture;
<ide>
<del>use Cake\Network\Response;
<add>use Cake\Http\Response;
<ide> use Cake\TestSuite\IntegrationTestCase;
<ide>
<ide> /**
<ide><path>tests/TestCase/Auth/BasicAuthenticateTest.php
<ide>
<ide> use Cake\Auth\Bas... | 35 |
Ruby | Ruby | add tests for macos version consts usage | efabd4b5c2beadecf3282dbe730b1b6f779571e0 | <ide><path>Library/Homebrew/rubocops/extend/formula_cop.rb
<ide> def depends_on_name_type?(node, name = nil, type = :required)
<ide> # if block given, yield matching nodes
<ide> def find_const(node, const_name)
<ide> return if node.nil?
<del> node.each_child_node(:const) do |const_node|
<del>... | 3 |
Python | Python | add test -- dimensions for rot90 | 8ba0325c21e5c9ef4a3b70722cf77bc64abfbade | <ide><path>numpy/lib/tests/test_twodim_base.py
<ide> def check_basic(self):
<ide> for k in range(0,13,4):
<ide> assert_equal(rot90(a,k=k),b4)
<ide>
<add> def check_axes(self):
<add> a = ones((50,40,3))
<add> assert_equal(rot90(a).shape,(40,50,3))
<ide>
<ide> class test_histogram2d... | 1 |
Go | Go | fix missing hostname and links in exec env | e98145960988a2259074ae911b6478b7a940748b | <ide><path>container/container_solaris.go
<ide> type ExitStatus struct {
<ide> }
<ide>
<ide> // CreateDaemonEnvironment creates a new environment variable slice for this container.
<del>func (container *Container) CreateDaemonEnvironment(linkedEnv []string) []string {
<add>func (container *Container) CreateDaemonEnvir... | 7 |
PHP | PHP | use a supported plugin component in example | 344de871d96a98fe0123eaa2e4dfb3a09eda7c7f | <ide><path>src/Controller/Controller.php
<ide> public function components(?ComponentRegistry $components = null): ComponentRegi
<ide> * For example:
<ide> *
<ide> * ```
<del> * $this->loadComponent('Acl.Acl');
<add> * $this->loadComponent('Authentication.Authentication');
<ide> * ```
<ide> ... | 1 |
Python | Python | fix typo in gogrid driver | a4469f3e7488ef9510db239a9e0fc8eeb4dc9978 | <ide><path>libcloud/drivers/gogrid.py
<ide> def list_locations(self):
<ide>
<ide> def create_node(self, **kwargs):
<ide> name = kwargs['name']
<del> image = kwargs['iamge']
<add> image = kwargs['image']
<ide> size = kwargs['size']
<ide> first_ip = self.get_first_ip()
<ide> ... | 1 |
PHP | PHP | adjust the params | a13d06c45dd9b03bacd564129d3a433cfc24555b | <ide><path>src/Shell/I18nShell.php
<ide> public function init($language = null) {
<ide> }
<ide>
<ide> $this->_paths = [APP];
<del> if (!empty($this->params['plugin'])) {
<del> $plugin = Inflector::camelize($this->params['plugin']);
<add> if ($this->param('plugin')) {
<add> ... | 1 |
PHP | PHP | fix return type of docblock comment for bindif | 5b0593b168d8d0422fd72320407f2e94fb71d525 | <ide><path>src/Illuminate/Container/Container.php
<ide> protected function getClosure($abstract, $concrete)
<ide> * @param string $abstract
<ide> * @param Closure|string|null $concrete
<ide> * @param bool $shared
<del> * @return bool
<add> * @return void
<ide> */
<ide> publi... | 1 |
Javascript | Javascript | remove unnecessary require | e3c612b261d658f492d7456dc9c18ccb48f23aa6 | <ide><path>spec/workspace-element-spec.js
<ide> const {ipcRenderer} = require('electron')
<ide> const path = require('path')
<ide> const temp = require('temp').track()
<del>const PaneContainer = require('../src/pane-container')
<ide> const {Disposable} = require('event-kit')
<ide> const {it, fit, ffit, fffit, beforeEac... | 1 |
PHP | PHP | use new validator methods | f59aae3b42ee66e1435c1e8dfe748c85dec9e0ba | <ide><path>src/ORM/Marshaller.php
<ide> protected function _validate($data, $options, $isNew)
<ide> return [];
<ide> }
<ide> if ($options['validate'] === true) {
<del> $options['validate'] = $this->_table->validator('default');
<add> $options['validate'] = $this->_table... | 5 |
Javascript | Javascript | fix windows issue | 897e997a2d6938f30214c2f610a68edc853b4137 | <ide><path>test/cases/entry-exports-field/loader/node_modules/toml-parser/loader.js
<del>module.exports = c => `module.exports = ${JSON.stringify(c + "toml")}`;
<add>module.exports = c => `module.exports = ${JSON.stringify(c.trim() + "\ntoml")}`; | 1 |
Java | Java | increase timeout on parallel & completable tests | 21a7a0567a51193734e21b234fa3ed925e65d0ec | <ide><path>src/test/java/io/reactivex/completable/CompletableTest.java
<ide> public void assertSubscriptions(int n) {
<ide> /** An error Completable object. */
<ide> final ErrorCompletable error = new ErrorCompletable();
<ide>
<del> @Test(timeout = 1000)
<add> @Test(timeout = 5000)
<ide> public void ... | 2 |
Python | Python | fix flakey test test_disable_logging | ee4f39c67e3393c863c814b7e1ca3b1dc40625f0 | <ide><path>tests/providers/google/cloud/utils/test_credentials_provider.py
<ide> from __future__ import annotations
<ide>
<ide> import json
<add>import logging
<ide> import os
<ide> import re
<ide> import unittest
<ide> def test_get_credentials_and_project_id_with_mutually_exclusive_configuration(
<ide> )
<ide> ... | 1 |
Javascript | Javascript | add product pains to support | 11458d67d53157b655ee6640149259ad951fe9aa | <ide><path>website/src/react-native/support.js
<ide> var support = React.createClass({
<ide> <ul>
<ide> <li><a href="http://reactnative.cn">Chinese</a> (<a href="https://github.com/reactnativecn/react-native-docs-cn">source</a>)</li>
<ide> </ul>
<del>
<add>
<ide> ... | 1 |
PHP | PHP | allow json_encode options in jsontype | 6c17ca54a1be287ed2c6484247eab47f4fed9d33 | <ide><path>src/Database/Type/JsonType.php
<ide> */
<ide> class JsonType extends BaseType implements BatchCastingInterface
<ide> {
<add> /**
<add> * @var int
<add> */
<add> protected $_jsonOptions = 0;
<add>
<ide> /**
<ide> * Convert a value data into a JSON string
<ide> *
<ide> public funct... | 2 |
Python | Python | add test for recent fix | 562be02b6f5c3715ddb37b0ee9d4d7a6559bcef4 | <ide><path>numpy/core/tests/test_regression.py
<ide> def check_multiple_assign(self, level=rlevel):
<ide>
<ide> def check_empty_array_type(self, level=rlevel):
<ide> assert_equal(N.array([]).dtype, N.zeros(0).dtype)
<add>
<add> def check_void_coercion(self, level=rlevel):
<add> dt = N.dty... | 1 |
Python | Python | use flask_dont_load_env flag to disable load .env | bac5d6b9f458c7876163add793bdc53c2f8f413e | <ide><path>flask/cli.py
<ide> def main(self, *args, **kwargs):
<ide> # script that is loaded here also attempts to start a server.
<ide> os.environ['FLASK_RUN_FROM_CLI'] = 'true'
<ide>
<del> if self.load_dotenv:
<add> val = os.environ.get('FLASK_DONT_LOAD_ENV')
<add> load_dotenv = ... | 1 |
Text | Text | update readme to add py 3.8 in supported versions | 468e9507adb9b31d858f7f3c78ece1ad62b1a789 | <ide><path>README.md
<ide> Apache Airflow is tested with:
<ide>
<ide> ### Stable version (1.10.11)
<ide>
<del>* Python versions: 2.7, 3.5, 3.6, 3.7
<add>* Python versions: 2.7, 3.5, 3.6, 3.7, 3.8
<ide> * Postgres DB: 9.6, 10
<ide> * MySQL DB: 5.6, 5.7
<ide> * Sqlite - latest stable (it is used mainly for development ... | 1 |
Go | Go | fix volumes-from re-applying on each start | a738df0354cc615c8d0fa3254621b3db811fe0b9 | <ide><path>daemon/container.go
<ide> type Container struct {
<ide> VolumesRW map[string]bool
<ide> hostConfig *runconfig.HostConfig
<ide>
<del> activeLinks map[string]*links.Link
<del> monitor *containerMonitor
<del> execCommands *execStore
<add> activeLinks map[string]*links.Link
<add> monitor ... | 3 |
Ruby | Ruby | remove dead code | 8559871cd3c3e156aafdc3799dc6234c39ba3d62 | <ide><path>activesupport/lib/active_support/callbacks.rb
<ide> def filter; @key; end
<ide> def raw_filter; @filter; end
<ide>
<ide> def merge(chain, new_options)
<del> _options = {
<add> options = {
<ide> :if => @if.dup,
<ide> :unless => @unless.dup
<ide> }
<id... | 1 |
Go | Go | remove unused function from vfs storage driver | c1e04fbb150d71c243d505b79136108cb2f31f5c | <ide><path>daemon/graphdriver/vfs/driver.go
<ide> package vfs
<ide>
<ide> import (
<del> "bytes"
<ide> "fmt"
<ide> "os"
<del> "os/exec"
<ide> "path"
<ide>
<ide> "github.com/docker/docker/daemon/graphdriver"
<ide> func (d *Driver) Cleanup() error {
<ide> return nil
<ide> }
<ide>
<del>func isGNUcoreutils() bool {... | 1 |
Javascript | Javascript | fix onload and onerror on images | 3e34739cb9148c76f0a338ab694f8963d84b1c56 | <ide><path>src/browser/ui/dom/components/ReactDOMImg.js
<ide> var ReactDOMImg = ReactCompositeComponent.createClass({
<ide> },
<ide>
<ide> componentDidMount: function() {
<del> this.trapBubbledEvent(EventConstants.topLevelTypes.topReset, 'load');
<del> this.trapBubbledEvent(EventConstants.topLevelTypes.topSu... | 1 |
Javascript | Javascript | run some tests in node environment | 0deea326674077598e351803d7a204a1c744a578 | <ide><path>packages/react-cs-renderer/src/__tests__/ReactNativeCS-test.internal.js
<ide> * LICENSE file in the root directory of this source tree.
<ide> *
<ide> * @emails react-core
<add> * @jest-environment node
<ide> */
<ide>
<ide> 'use strict';
<ide><path>packages/react-dom/src/__tests__/ReactServerRendering-te... | 28 |
Ruby | Ruby | fix etag expectation to work with the sha256 | 809236bc4c608e50262de4f82df79b45da1df2d4 | <ide><path>railties/test/application/middleware_test.rb
<ide> def index
<ide> end
<ide> end
<ide>
<del> etag = "W/" + "5af83e3196bf99f440f31f2e1a6c9afe".inspect
<add> etag = "W/" + "c00862d1c6c1cf7c1b49388306e7b3c1".inspect
<ide>
<ide> get "/"
<ide> assert_equal 200, last_response.... | 1 |
Ruby | Ruby | add xcode 9.0 beta recognition | a0ae0346547266a6c55bc470fb51840da9008fbc | <ide><path>Library/Homebrew/os/mac.rb
<ide> def preferred_arch
<ide> "8.3.1" => { clang: "8.1", clang_build: 802 },
<ide> "8.3.2" => { clang: "8.1", clang_build: 802 },
<ide> "8.3.3" => { clang: "8.1", clang_build: 802 },
<add> "9.0" => { clang: "9.0", clang_build: 900 },
<ide> }.freeze
<id... | 1 |
Mixed | Ruby | fix typos in actioncable channel [ci skip] | 2ef18c1ebc33585432f46c1b2497268858f4532d | <ide><path>actioncable/README.md
<ide> App.cable.subscriptions.create "AppearanceChannel",
<ide> ```
<ide>
<ide> Simply calling `App.cable.subscriptions.create` will setup the subscription, which will call `AppearanceChannel#subscribed`,
<del>which in turn is linked to original `App.cable` -> `ApplicationCable::Connec... | 4 |
PHP | PHP | escape function call | f4dc2615ec22ab6cfdea14a73f0f047886db3393 | <ide><path>src/Illuminate/Encryption/Encrypter.php
<ide> public function encrypt($value)
<ide> {
<ide> $iv = Str::randomBytes($this->getIvSize());
<ide>
<del> $value = openssl_encrypt(serialize($value), $this->cipher, $this->key, 0, $iv);
<add> $value = \openssl_encrypt(serialize($value), $th... | 1 |
Python | Python | fix ticket 48 | 1bca125a3f0c1e86b7777adebcdde5671b713f92 | <ide><path>numpy/distutils/command/config_compiler.py
<ide> #XXX: Implement confic_cc for enhancing C/C++ compiler options.
<ide> #XXX: Linker flags
<ide>
<add>def show_fortran_compilers(_cache=[]):
<add> # Using cache to prevent infinite recursion
<add> if _cache: return
<add> _cache.append(1)
<add>
<add... | 1 |
Python | Python | fix bugs from task refactor + add eta, countdown | 121c33dbcfce3c94680e40eb4f03202ace6a0153 | <ide><path>celery/execute.py
<add>from carrot.connection import DjangoAMQPConnection
<add>from celery.conf import AMQP_CONNECTION_TIMEOUT
<add>from celery.result import AsyncResult
<add>from celery.messaging import TaskPublisher
<add>from functools import partial as curry
<add>
<add>
<add>def apply_async(task, args=Non... | 5 |
Javascript | Javascript | clarify itemcontroller out of range case | 32c1d6b1d0f0b83511691435a48a7b7282737ab7 | <ide><path>packages/ember-runtime/lib/controllers/array_controller.js
<ide> Ember.ArrayController = Ember.ArrayProxy.extend(Ember.ControllerMixin,
<ide> if (controllerClass && idx < length) {
<ide> return this.controllerAt(idx, object, controllerClass);
<ide> } else {
<add> // When controllerClass is... | 1 |
Java | Java | add remoteaddress() to serverrequest | 7e2726f40018ad83be9ae1d9d5b59f59e981d66a | <ide><path>spring-test/src/main/java/org/springframework/mock/web/reactive/function/server/MockServerRequest.java
<ide> public class MockServerRequest implements ServerRequest {
<ide> @Nullable
<ide> private Principal principal;
<ide>
<add> @Nullable
<add> private final InetSocketAddress remoteAddress;
<add>
<ide>
... | 6 |
Mixed | Text | add config to halt callback chain on return false | 9c65c539e2caa4590aded1975aead008f8135da4 | <ide><path>activemodel/CHANGELOG.md
<del>* Deprecate returning `false` as a way to halt callback chains.
<del>
<del> Returning `false` in a `before_` callback will display a
<del> deprecation warning explaining that the preferred method to halt a callback
<del> chain is to explicitly `throw(:abort)`.
<del>
<... | 12 |
PHP | PHP | add ttr to beanstalkd.. | 2038e4e625de390991d2ba5a027d7ca4ed1330b3 | <ide><path>src/Illuminate/Queue/BeanstalkdQueue.php
<ide> class BeanstalkdQueue extends Queue implements QueueInterface {
<ide> */
<ide> protected $default;
<ide>
<add> /**
<add> * The timeout for workers
<add> *
<add> * @var int
<add> */
<add> protected $ttr;
<add>
<ide> /**
<ide> * Create a new Beanstalkd ... | 2 |
Javascript | Javascript | remove literal error messages | ba6049f7f9e42995b165865546d455926cd2f428 | <ide><path>test/parallel/test-zlib-flush-drain.js
<ide> deflater.on('drain', function() {
<ide>
<ide> process.once('exit', function() {
<ide> assert.strictEqual(
<del> beforeFlush, true,
<del> 'before calling flush, writable stream should need to drain');
<add> beforeFlush, true);
<ide> assert.strictEqual... | 1 |
Ruby | Ruby | remove incorrect 7.0 framework default | 9bca2b7907fec3451211c635f246bd13e416f825 | <ide><path>railties/lib/rails/application/configuration.rb
<ide> def load_defaults(target_version)
<ide> end
<ide>
<ide> if respond_to?(:action_controller)
<del> action_controller.raise_on_missing_callback_actions = false
<ide> action_controller.raise_on_open_redirects = true... | 1 |
Text | Text | create list of ctc emeriti | 0c260f164b7ad014e287801f43047c0c1cc9b6fc | <ide><path>README.md
<ide> more information about the governance of the Node.js project, see
<ide> * [Trott](https://github.com/Trott) -
<ide> **Rich Trott** <rtrott@gmail.com> (he/him)
<ide>
<add>### CTC Emeriti
<add>
<add>* [chrisdickinson](https://github.com/chrisdickinson) -
<add>**Chris Dickinson** <chri... | 1 |
Text | Text | remove 5.7 changelog from master | 38278b29e05680ba5d2f992235c29d317e1c8309 | <ide><path>CHANGELOG-5.7.md
<del># Release Notes for 5.7.x
<del>
<del>## [Unreleased](https://github.com/laravel/framework/compare/v5.7.28...5.7)
<del>
<del>
<del>## [v5.7.28 (2019-02-26)](https://github.com/laravel/framework/compare/v5.7.27...v5.7.28)
<del>
<del>### Added
<del>- Add support for `Pheanstalk 4.x` ([#276... | 1 |
Javascript | Javascript | fix bug when comparing name lengths | 5161d96650b462922354bc1cef0f1d0c248e1533 | <ide><path>lib/Chunk.js
<ide> class Chunk {
<ide> otherChunk._groups.clear();
<ide>
<ide> if(this.name && otherChunk.name) {
<del> if(this.name.length !== otherChunk.name)
<add> if(this.name.length !== otherChunk.name.length)
<ide> this.name = this.name.length < otherChunk.name.length ? this.name : otherCh... | 1 |
Go | Go | add regression tests | bb241c10e2f124406f00c8e40e00fca67934638a | <ide><path>server_test.go
<ide> func TestContainerTagImageDelete(t *testing.T) {
<ide> if err := srv.runtime.repositories.Set("utest", "tag1", unitTestImageName, false); err != nil {
<ide> t.Fatal(err)
<ide> }
<del> if err := srv.runtime.repositories.Set("utest/docker", "tag2", unitTestImageName, false); err != nil... | 1 |
Text | Text | add two tips for speeding the dev builds | 36581f1d4e8f2f9d29709daaa25e0236021f0b16 | <ide><path>BUILDING.md
<ide> file a new issue.
<ide> * [Building the documentation](#building-the-documentation)
<ide> * [Building a debug build](#building-a-debug-build)
<ide> * [Building an ASAN build](#building-an-asan-build)
<add> * [Speeding up frequent rebuilds when developing](#speeding-up-frequen... | 1 |
Ruby | Ruby | reduce method calls | b3ae67dbb91a79f0f58528ba0ba4ffe592db1924 | <ide><path>activerecord/lib/active_record/reflection.rb
<ide> def source_reflection
<ide> end
<ide>
<ide> def has_inverse?
<del> !@options[:inverse_of].nil?
<add> @options[:inverse_of]
<ide> end
<ide>
<ide> def inverse_of | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.