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 |
|---|---|---|---|---|---|
Javascript | Javascript | add linkto test | 479d6bb6ec9d3dfc202a1576ff1e6d71009ede2c | <ide><path>packages/ember-routing/lib/handlebars_ext.js
<ide> Ember.onLoad('Ember.Handlebars', function(Handlebars) {
<ide> });
<ide>
<ide> });
<add>
<add>function args(linkView) {
<add> var ret = [ linkView.namedRoute ],
<add> params = linkView.parameters,
<add> contexts = params.contexts,
<add> roo... | 4 |
Python | Python | reuse repositories when possible | fb7c4214ced3b0533316e3eebd90ac07fe7b2933 | <ide><path>contrib/brew/brew/brew.py
<ide> level='INFO')
<ide> client = docker.Client()
<ide> processed = {}
<add>processed_folders = []
<ide>
<ide>
<ide> def build_library(repository=None, branch=None, namespace=None, push=False,
<ide> def build_library(repository=None, branch=None, namespace=Non... | 2 |
Javascript | Javascript | add en_gb locale for d3.time.format | 7a2553dccf2c057ddc80fd76edd0161ec84ee2ae | <ide><path>src/time/format-en_GB.js
<add>// The date and time format (%c), date format (%x) and time format (%X).
<add>var d3_time_formatDateTime = "%a %b %e %H:%M:%S %Y",
<add> d3_time_formatDate = "%d/%m/%y",
<add> d3_time_formatTime = "%H:%M:%S";
<add>
<add>// The weekday and month names.
<add>var d3_time_days... | 1 |
Python | Python | improve coverage reporting | 39d9ac9d1ba8635629891f3fb7d4ed7a134c984c | <ide><path>djangorestframework/runtests/runcoverage.py
<ide> import sys
<ide> os.environ['DJANGO_SETTINGS_MODULE'] = 'djangorestframework.runtests.settings'
<ide>
<del>from django.conf import settings
<del>from django.test.utils import get_runner
<ide> from coverage import coverage
<ide> from itertools import chain
<d... | 1 |
Javascript | Javascript | remove all overrides and overridables related code | d403b8cf2eff23c9c4996ceafe00722589331233 | <ide><path>test/configCases/container/overridables/cjs/test1.js
<del>module.exports = "original1-cjs";
<ide><path>test/configCases/container/overridables/cjs/test2.js
<del>module.exports = "original2-cjs";
<ide><path>test/configCases/container/overridables/cjs/test3.js
<del>module.exports = "original3-cjs";
<ide><path>... | 17 |
Text | Text | clarify automatic updates in deployment. | 14fb7df7f14b30b58a37b0bbb2a2ee8b669c52cb | <ide><path>docs/deployment.md
<ide> When you deploy your Next.js application, you want to see the latest version wit
<ide>
<ide> Next.js will automatically load the latest version of your application in the background when routing. For client-side navigation, `next/link` will temporarily function as a normal `<a>` tag... | 1 |
Mixed | Go | implement optional ring buffer for container logs | 054abff3b67bb5d66323e5418a43c845a3eac8a1 | <ide><path>api/types/container/host_config.go
<ide> func (rp *RestartPolicy) IsSame(tp *RestartPolicy) bool {
<ide> return rp.Name == tp.Name && rp.MaximumRetryCount == tp.MaximumRetryCount
<ide> }
<ide>
<add>// LogMode is a type to define the available modes for logging
<add>// These modes affect how logs are handle... | 11 |
Javascript | Javascript | use sortableset in chunks | 747efcadf90f6ba157a18daa509a6743cc9f59ca | <ide><path>lib/Chunk.js
<ide>
<ide> const util = require("util");
<ide> const compareLocations = require("./compareLocations");
<add>const SortableSet = require("./util/SortableSet");
<ide> let debugId = 1000;
<ide>
<del>const byId = (a, b) => {
<del> if(a.id < b.id) return -1;
<del> if(b.id < a.id) return 1;
<del> r... | 1 |
Javascript | Javascript | adjust comments for upcoming lint rule | f593f9e9ef48f3b41b7f4f40691d42b9512f0f2d | <ide><path>test/async-hooks/test-enable-disable.js
<del>/*
<del> * Test Steps Explained
<del> * ====================
<del> *
<del> * Initializing hooks:
<del> *
<del> * We initialize 3 hooks. For hook2 and hook3 we register a callback for the
<del> * "before" and in case of hook3 also for the "after" invocations.
... | 58 |
Python | Python | use single backticks when link needed | 42fcdd0cc381a96d8096af7acda007317d08851f | <ide><path>numpy/core/numeric.py
<ide> def allclose(a, b, rtol=1.e-5, atol=1.e-8, equal_nan=False):
<ide> The comparison of `a` and `b` uses standard broadcasting, which
<ide> means that `a` and `b` need not have the same shape in order for
<ide> ``allclose(a, b)`` to evaluate to True. The same is true for... | 1 |
Java | Java | provide common cache config | 3c28301ded03b7163c8450cb3cc4787cb79a8595 | <ide><path>spring-context/src/main/java/org/springframework/cache/annotation/AnnotationCacheOperationSource.java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2014 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License... | 9 |
PHP | PHP | add coding standards ignore comments to fileengine | 0891073d191f179a024c6c1f372082d489c96938 | <ide><path>lib/Cake/Cache/Engine/FileEngine.php
<ide> public function delete($key) {
<ide> }
<ide> $path = $this->_File->getRealPath();
<ide> $this->_File = null;
<add>
<add> //@codingStandardsIgnoreStart
<ide> return @unlink($path);
<add> //@codingStandardsIgnoreEnd
<ide> }
<ide>
<ide> /**
<ide> protected ... | 1 |
Text | Text | change line21 '燒毀vs燒毀圖表' to '燃尽vs燃尽图表' | 6e9eccc792a3e7720cee214685ec8ece48e97d00 | <ide><path>guide/chinese/agile/burndown-charts-and-burnup-charts/index.md
<ide> Burnup图表非常相似,但它们显示已完成的工作与总工作量和
<ide>
<ide> #### 更多信息:
<ide>
<del>[Burndown图表 - 维基百科](https://en.wikipedia.org/wiki/Burn_down_chart) [烧毁vs烧毁图表 - LinkedIn](https://www.linkedin.com/pulse/burn-up-vs-down-chart-alaa-el-beheri-cisa-rmp-pmp-bcp... | 1 |
Javascript | Javascript | handle line width of zero in svg | ddabeb06452494b60fc366016bbdaa3df6eb655c | <ide><path>src/display/svg.js
<ide> SVGGraphics = (function SVGGraphicsClosure() {
<ide>
<ide> // Path properties
<ide> setLineWidth: function SVGGraphics_setLineWidth(width) {
<del> this.current.lineWidth = width;
<add> if (width > 0) {
<add> this.current.lineWidth = width;
<add> }
<ide>... | 1 |
Mixed | Ruby | invalidate transaction as early as possible | bf24af73ff146e884339a215ebe30d3fc5a88091 | <ide><path>activerecord/CHANGELOG.md
<add>* Invalidate transaction as early as possible
<add>
<add> After rescuing a `TransactionRollbackError` exception Rails invalidates transactions earlier in the flow
<add> allowing the framework to skip issuing the `ROLLBACK` statement in more cases.
<add> Only affects ... | 5 |
Python | Python | move setuptools import to the top. thanks iksaif | c79e95d789658c68ed7b4a2f55000b28af8b7669 | <ide><path>setup.py
<ide> #!/usr/bin/env python
<ide> # -*- coding: utf-8 -*-
<add>
<add>try:
<add> from setuptools import setup, find_packages
<add> from setuptools.command.test import test
<add>except ImportError:
<add> raise
<add> from ez_setup import use_setuptools
<add> use_setuptools()
<add> fro... | 1 |
Ruby | Ruby | use file/line from call to helper_module | 4ab00cfac0c5bda7b66c5f80c63a8e858d4eac02 | <ide><path>actionpack/lib/abstract_controller/helpers.rb
<ide> def helper_method(*meths)
<ide> meths.flatten!
<ide> self._helper_methods += meths
<ide>
<add> location = caller_locations(1, 1).first
<add> file, line = location.path, location.lineno
<add>
<ide> meths.each do |meth|
... | 1 |
Javascript | Javascript | remove the deprecated transform proptypes | 731d4a061085558a302c3e76304140973e7b57b4 | <ide><path>website/server/extractDocs.js
<ide> function renderComponent(filepath) {
<ide> docgenHelpers.findExportedOrFirst,
<ide> docgen.defaultHandlers.concat(docgenHelpers.stylePropTypeHandler)
<ide> );
<add>
<ide> return componentsToMarkdown('component', json, filepath, n++, styleDocs);
<ide> }
<ide>
<... | 1 |
Ruby | Ruby | add links to changelog and blog | 9fd2319afa9ad3c40b365bff7e5668f640aed82b | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def update_report
<ide> install_core_tap_if_necessary
<ide>
<ide> updated = false
<add> new_repository_version = nil
<ide>
<ide> initial_revision = ENV["HOMEBREW_UPDATE_BEFORE"].to_s
<ide> current_revision = ENV["HOMEBREW_UPDATE_AFTER"].to_s
<i... | 1 |
Text | Text | add withfiletypes option to fspromises.readdir | de37ba34c5d6f3a2d18daf482f850be8fddb4621 | <ide><path>doc/api/fs.md
<ide> a colon, Node.js will open a file system stream, as described by
<ide> ### fsPromises.readdir(path[, options])
<ide> <!-- YAML
<ide> added: v10.0.0
<add>changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/22020
<add> description: New option `withFi... | 1 |
PHP | PHP | convert routesshell into commands | fc51fa63be586ed742aa9daba0ed80e9c9e7e27a | <ide><path>src/Command/RoutesCheckCommand.php
<add><?php
<add>declare(strict_types=1);
<add>
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full ... | 5 |
Ruby | Ruby | fix failing tests | 1b8a7b8293e0ff944eb9a5ed84a17b51a87be696 | <ide><path>activerecord/lib/active_record/attribute.rb
<ide> def with_cast_value(value)
<ide> end
<ide>
<ide> def with_type(type)
<del> self.class.new(name, value_before_type_cast, type, original_attribute)
<add> if changed_in_place?
<add> with_value_from_user(value).with_type(type)
<add> ... | 3 |
Javascript | Javascript | throw an error, not string | bbb2dccd1b650db656918f12311f04efa2495ee6 | <ide><path>lib/_tls_wrap.js
<ide> Server.prototype.setOptions = function(options) {
<ide> // SNI Contexts High-Level API
<ide> Server.prototype.addContext = function(servername, context) {
<ide> if (!servername) {
<del> throw 'Servername is required parameter for Server.addContext';
<add> throw new Error('Serve... | 1 |
Text | Text | fix typos and clarify explanations | 704f7fa4c7670d5959dc9b11899adff6a20f790f | <ide><path>guide/english/css/css3-media-queries/index.md
<ide> title: CSS3 Media Queries
<ide> ---
<ide> ## CSS3 Media Queries
<ide>
<del>Media Queries allow you to have different styles for different devices/screen sizes. Their introduction in CSS3 has greatly eased the building
<del>of responsive webpages.
<add>Medi... | 1 |
Text | Text | clarify child_process promise rejections | 43506f1013c5568243dc800c42536d5aa72a3589 | <ide><path>doc/api/child_process.md
<ide> the existing process and uses a shell to execute the command.
<ide>
<ide> If this method is invoked as its [`util.promisify()`][]ed version, it returns
<ide> a Promise for an object with `stdout` and `stderr` properties. In case of an
<del>error, a rejected promise is returned... | 1 |
Javascript | Javascript | unify legacy class binding into ast preprocessor | 47ddf42b2c10324d9e8d35397db8195c9108a465 | <ide><path>packages/ember-htmlbars/lib/helpers/-concat.js
<add>/** @private
<add> This private helper is used by the legacy class bindings AST transformer
<add> to concatenate class names together.
<add>*/
<add>export default function concat(params, hash) {
<add> return params.join(hash.separator);
<add>}
<ide><path... | 7 |
PHP | PHP | fix indentation and double slashes | e48a2d723ba6b00131b2fbb406b3698663b97013 | <ide><path>application/config/application.php
<ide> 'Blade' => 'Laravel\\Blade',
<ide> 'Bundle' => 'Laravel\\Bundle',
<ide> 'Cache' => 'Laravel\\Cache',
<del> 'Command' => 'Laravel\CLI\Command',
<add> 'Command' => 'Laravel\\CLI\\Command',
<ide> 'Config' => 'Laravel\\Config',
<ide> ... | 1 |
PHP | PHP | clarify error message | c4b80d2f7d4f47e68baafaa2510d6c85ee19f609 | <ide><path>src/ORM/Table.php
<ide> public function save(EntityInterface $entity, $options = []) {
<ide> * @param \Cake\Datasource\EntityInterface $entity the entity to be saved
<ide> * @param array $options the options to use for the save operation
<ide> * @return \Cake\Datasource\EntityInterface|bool
<add> * @throw... | 2 |
Java | Java | improve performance of stringutils#trimwhitespace | 6545cab42c238170f770b1e574088238574275e9 | <ide><path>spring-core/src/main/java/org/springframework/util/StringUtils.java
<ide> public static String trimWhitespace(String str) {
<ide> return str;
<ide> }
<ide>
<del> StringBuilder sb = new StringBuilder(str);
<del> while (sb.length() > 0 && Character.isWhitespace(sb.charAt(0))) {
<del> sb.deleteCharAt(... | 1 |
Text | Text | add v3.6.0-beta.3 to changelog | 0f55cd9d21a6de8202e3d761b00f0d9e95d5501e | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.6.0-beta.3 (November 5, 2018)
<add>
<add>- [#17169](https://github.com/emberjs/ember.js/pull/17169) [BUGFIX] Add default implementations of Component lifecycle hooks
<add>- [#17165](https://github.com/emberjs/ember.js/pull/17165) [BUGFIX] Fix RouteInfo.... | 1 |
Text | Text | remove extraneous paragraph from assert doc | 2f1f48ac2ad2b75169b909d112d760ce68d01abc | <ide><path>doc/api/assert.md
<ide> The `assert` module provides a simple set of assertion tests that can be used to
<ide> test invariants.
<ide>
<del>The API for the `assert` module is [Locked][]. This means that there will be no
<del>additions or changes to any of the methods implemented and exposed by the
<del>modul... | 1 |
Ruby | Ruby | add test for command help strings | 2c8544832eb75d2ce7a76ac178d1018c166d653a | <ide><path>Library/Homebrew/cask/lib/hbc/cli/base.rb
<ide> def self.cask_tokens_from(args)
<ide> end
<ide>
<ide> def self.help
<del> "No help available for the #{command_name} command"
<add> nil
<ide> end
<ide>
<ide> def self.needs_init?
<ide><path>Library/Homebrew/cask/lib/hbc/c... | 3 |
Text | Text | apply sentence case to headers in pull-requests.md | 7c7b98339cef7738232117d336569103c95ac78b | <ide><path>doc/guides/contributing/pull-requests.md
<ide> * [Setting up your local environment](#setting-up-your-local-environment)
<ide> * [Step 1: Fork](#step-1-fork)
<ide> * [Step 2: Branch](#step-2-branch)
<del>* [The Process of Making Changes](#the-process-of-making-changes)
<add>* [The process of making chang... | 1 |
Javascript | Javascript | add source location to debug logging info | 2245206c4ce7b5c47ba67e677ca7e9127b8c2926 | <ide><path>src/backend/renderer.js
<ide> export function attach(
<ide> owners,
<ide>
<ide> // Location of component in source coude.
<del> source: _debugSource,
<add> source: _debugSource || null,
<ide> };
<ide> }
<ide>
<ide> export function attach(
<ide> if (nativeNodes !== null) {
<i... | 3 |
Ruby | Ruby | fix typo in connection base documentation | 7ea5619e760edc0adc6eb0749113e129221f4a13 | <ide><path>lib/action_cable/connection/base.rb
<ide> def initialize(server, env)
<ide> end
<ide>
<ide> # Called by the server when a new websocket connection is established. This configures the callbacks intended for overwriting by the user.
<del> # This method should now be called directly. Rely on t... | 1 |
Javascript | Javascript | check ecdsa psychic signature | 8d0f49c09355647f711eb14ec3a22471dbd056b3 | <ide><path>test/parallel/test-crypto-psychic-signatures.js
<add>'use strict';
<add>const common = require('../common');
<add>if (!common.hasCrypto)
<add> common.skip('missing crypto');
<add>
<add>const assert = require('assert');
<add>
<add>const crypto = require('crypto');
<add>
<add>// Tests for CVE-2022-21449
<add>... | 1 |
PHP | PHP | move missingpluginexception under core/error | bdcf810b018d0c5cc2aa6c2d4ea7111db33d1a66 | <add><path>src/Core/Error/MissingPluginException.php
<del><path>src/Error/MissingPluginException.php
<ide> * @since 3.0.0
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide> */
<del>namespace Cake\Error;
<add>namespace Cake\Core\Error;
<add>
<add>use Cake\Error\Excep... | 3 |
Text | Text | add redux-history-transitions to ecosystem | 34bcdd9fd01ad433daa51ddf919d320802a10990 | <ide><path>docs/introduction/Ecosystem.md
<ide> On this page we will only feature a few of them that the Redux maintainers have
<ide> ## Store Enhancers
<ide>
<ide> * [redux-batched-subscribe](https://github.com/tappleby/redux-batched-subscribe) — Customize batching and debouncing calls to the store subscribers
<add>*... | 1 |
Python | Python | fix string interpolation in times | 6025cdb992db9446d747ae0855a11e74a5e311c9 | <ide><path>spacy/en/tokenizer_exceptions.py
<ide> # Times
<ide>
<ide> for h in range(1, 12 + 1):
<del> hour = str(h)
<ide> for period in ["a.m.", "am"]:
<del> _exc[hour+period] = [
<del> {ORTH: hour},
<add> _exc["%d%s" % (h, period)] = [
<add> {ORTH: "%d" % h},
<ide> ... | 2 |
Python | Python | add import fr | dbe47902bcfc61bbb9ca35c86baa81a648aeaeb2 | <ide><path>spacy/__init__.py
<ide> from . import zh
<ide> from . import es
<ide> from . import it
<add>from . import fr
<ide> from . import pt
<ide>
<ide> | 1 |
Java | Java | improve support for content-disposition types | 6e640c806f90b1d116f8613c5aa7ddb7c5af8f39 | <ide><path>spring-web/src/main/java/org/springframework/http/ContentDisposition.java
<ide> public final class ContentDisposition {
<ide> private static final String INVALID_HEADER_FIELD_PARAMETER_FORMAT =
<ide> "Invalid header field parameter format (as defined in RFC 5987)";
<ide>
<add> /**
<add> * The {@literal... | 6 |
Ruby | Ruby | add on_macos/on_linux to softwarespec | 16270ba185e889cfb92265301b34061a123692d4 | <ide><path>Library/Homebrew/software_spec.rb
<ide> require "compilers"
<ide> require "global"
<ide> require "os/mac/version"
<add>require "extend/on_os"
<ide>
<ide> class SoftwareSpec
<ide> extend T::Sig
<ide>
<ide> extend Forwardable
<add> include OnOS
<ide>
<ide> PREDEFINED_OPTIONS = {
<ide> universal: ... | 1 |
Python | Python | use @admin decorator | 4ac0fae75b3e9d2a4c011a87310c910762c84cb1 | <ide><path>rest_framework/authtoken/admin.py
<ide> from rest_framework.authtoken.models import Token
<ide>
<ide>
<add>@admin.register(Token)
<ide> class TokenAdmin(admin.ModelAdmin):
<ide> list_display = ('key', 'user', 'created')
<ide> fields = ('user',)
<ide> ordering = ('-created',)
<del>
<del>
<del>ad... | 1 |
Python | Python | add shape partial inference to theano reshape | 00cbeecf6c345b5e4964c4d212ed9463126a0492 | <ide><path>keras/backend/theano_backend.py
<ide> def to_dense(tensor):
<ide> return tensor
<ide>
<ide>
<add>def is_explicit_shape(shape):
<add> if hasattr(shape, '__iter__'):
<add> for x in shape:
<add> if x is not None:
<add> if not isinstance(x, int):
<add> ... | 1 |
Ruby | Ruby | add fast path for cvs dep | bb5e0812fb387f2b2a920c9a89e9750fe28943f8 | <ide><path>Library/Homebrew/dependency_collector.rb
<ide> def resource_dep(spec, tags)
<ide> when strategy <= BazaarDownloadStrategy
<ide> Dependency.new("bazaar", tags)
<ide> when strategy <= CVSDownloadStrategy
<del> Dependency.new("cvs", tags) unless MacOS::Xcode.provides_cvs?
<add> Dependenc... | 1 |
PHP | PHP | prevent command double calling | ac42a58f42dbbd25afa1eceb32db8c3334c04bfe | <ide><path>src/Illuminate/Foundation/Testing/PendingCommand.php
<ide> class PendingCommand
<ide> */
<ide> protected $expectedExitCode;
<ide>
<add> /**
<add> * Determine if command was called.
<add> *
<add> * @var bool
<add> */
<add> private $isCalled = false;
<add>
<ide> /**
<ide> ... | 1 |
Python | Python | allow the same config in the auto mapping | 10c15d2d1e0eb1e0ec41de2e863c15a6bc7579ef | <ide><path>src/transformers/models/auto/configuration_auto.py
<ide> def __getitem__(self, key):
<ide> module_name = model_type_to_module_name(key)
<ide> if module_name not in self._modules:
<ide> self._modules[module_name] = importlib.import_module(f".{module_name}", "transformers.models")
<... | 1 |
Python | Python | remove deprecation warnings | dff3c1f90af9053128e6e241e1b5f19d858670f4 | <ide><path>tools/refguide_check.py
<ide>
<ide> if parse_version(sphinx.__version__) >= parse_version('1.5'):
<ide> # Enable specific Sphinx directives
<del> from sphinx.directives import SeeAlso, Only
<add> from sphinx.directives.other import SeeAlso, Only
<ide> directives.register_directive('seealso', S... | 1 |
Java | Java | fix notification task timeout crashing | 3580de541db600d39d4182b59a536c69477e46d3 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/jstasks/HeadlessJsTaskContext.java
<ide> public synchronized int startTask(final HeadlessJsTaskConfig taskConfig) {
<ide> " while in foreground, but this is not allowed.");
<ide> }
<ide> final int taskId = mLastTaskId.incrementAndGet();
<add> ... | 2 |
Python | Python | fix task adoption in ``kubernetesexecutor`` | 344e8296d7e8a9af61edd0aae4f7784ecf33e5a2 | <ide><path>airflow/executors/kubernetes_executor.py
<ide> def _change_state(self, key: TaskInstanceKey, state: Optional[str], pod_id: str,
<ide> self.event_buffer[key] = state, None
<ide>
<ide> def try_adopt_task_instances(self, tis: List[TaskInstance]) -> List[TaskInstance]:
<del> tis_to_flush = [t... | 2 |
Javascript | Javascript | import only jquery instead of ember in ember-views | 72b16349ed083fd5e40735823dbf7e5d95007166 | <ide><path>packages/ember-views/lib/views/states/in_buffer.js
<ide> import _default from "ember-views/views/states/default";
<ide> import EmberError from "ember-metal/error";
<ide>
<del>import Ember from "ember-metal/core"; // Ember.assert
<add>import jQuery from "ember-views/system/jquery";
<ide> import { create } fr... | 1 |
Ruby | Ruby | improve empty installation detection | 6826cd68da17560e8440b880c05741a5820358a6 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> require "cleaner"
<ide> require "formula_cellar_checks"
<ide> require "install_renamed"
<add>require "cmd/audit"
<ide> require "cmd/postinstall"
<ide> require "hooks/bottles"
<ide> require "debrew"
<ide> def build
<ide> end
<ide> end
<ide>
<del> raise... | 1 |
PHP | PHP | fix other test checking error message | c7042b1fb6bc803d1b8f2ad6e0e56bd554fd8f80 | <ide><path>tests/TestCase/Controller/ComponentTest.php
<ide> public function testMultipleComponentInitialize()
<ide> public function testDuplicateComponentInitialize()
<ide> {
<ide> $this->expectException(\RuntimeException::class);
<del> $this->expectExceptionMessage('The "Banana" alias has alrea... | 1 |
Javascript | Javascript | improve error handling and reporting | 7343b2a89cacce56d36292f109d8cb65df6a2570 | <ide><path>lib/container/ContainerEntryModule.js
<ide> class ContainerEntryModule extends Module {
<ide> "? moduleMap[module]()",
<ide> `: Promise.resolve().then(${runtimeTemplate.basicFunction(
<ide> "",
<del> 'throw new Error("Module " + module + " does not exist in container.");'
<add> ... | 14 |
Javascript | Javascript | add stream map tests | ce41395f89414dfd459084ea61a7eeac1f67713a | <ide><path>test/parallel/test-stream-map.js
<ide> const {
<ide> Readable,
<ide> } = require('stream');
<ide> const assert = require('assert');
<add>const { once } = require('events');
<ide> const { setTimeout } = require('timers/promises');
<ide>
<ide> {
<ide> // Map works on synchronous streams with a synchronous... | 1 |
Ruby | Ruby | restrict frameworks to load in engine test | 6adc3da727a8b658784fad9d92927f8a53236793 | <ide><path>railties/test/railties/engine_test.rb
<ide> def up
<ide> end
<ide> RUBY
<ide>
<add> restrict_frameworks
<ide> boot_rails
<ide>
<ide> Dir.chdir(app_path) do
<del> # Install Active Storage, Action Mailbox, and Action Text migration files first so as not to affect test.
<... | 1 |
Ruby | Ruby | remove our use of #outside_transaction? | 61951427903dbc0d92f6106ec5874025e2185056 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
<ide> def delete(arel, name = nil, binds = [])
<ide> exec_delete(to_sql(arel, binds), name, binds)
<ide> end
<ide>
<del> # Checks whether there is currently no transaction active. This is done
<del> # ... | 3 |
Python | Python | apply `imports` fixer | 09a52ed47bb26498c97a579ce1147861df696d84 | <ide><path>doc/cdoc/numpyfilter.py
<ide> import os
<ide> import textwrap
<ide> import optparse
<del>import cPickle as pickle
<add>
<add>if sys.version_info[0] >= 3:
<add> import pickle
<add>else:
<add> import cPickle as pickle.
<ide>
<ide> CACHE_FILE = 'build/rst-cache.pck'
<ide>
<ide><path>doc/numpybook/runcod... | 44 |
PHP | PHP | remove use of non-existent controller property | 667220ab9269e0d37d78ee2d553fe7c0aa7931b9 | <ide><path>src/Controller/Component/RequestHandlerComponent.php
<ide> public function renderAs(Controller $controller, $type, $options = array()) {
<ide> $controller->layout = $this->ajaxLayout;
<ide> return $this->respondAs('html', $options);
<ide> }
<del> $controller->ext = '.ctp';
<ide>
<ide> $viewClassM... | 2 |
Javascript | Javascript | replace assert.equal with assert.strictequal | 18016d3b3fd27fd2744a17a54f15631af6206df1 | <ide><path>test/addons/async-hello-world/test.js
<ide> var assert = require('assert');
<ide> const binding = require(`./build/${common.buildType}/binding`);
<ide>
<ide> binding(5, common.mustCall(function(err, val) {
<del> assert.equal(null, err);
<del> assert.equal(10, val);
<add> assert.strictEqual(err, null);
<a... | 7 |
Javascript | Javascript | improve the changelog script | 07a58dd7669431d33b61f8c3213c31eff744d02a | <ide><path>changelog.js
<ide> var parseRawCommit = function(raw) {
<ide> msg.breaks = [];
<ide>
<ide> lines.forEach(function(line) {
<del> match = line.match(/Closes\s#(\d+)/);
<add> match = line.match(/(?:Closes|Fixes)\s#(\d+)/);
<ide> if (match) msg.closes.push(parseInt(match[1]));
<ide> });
<del>
... | 2 |
PHP | PHP | check main mail config for from | fa463b0998853faadc302ed21c4dd704c99144cc | <ide><path>src/Illuminate/Mail/MailManager.php
<ide> protected function guzzle(array $config)
<ide> */
<ide> protected function setGlobalAddress($mailer, array $config, string $type)
<ide> {
<del> $address = Arr::get($config, $type);
<add> $address = Arr::get($config, $type, $this->app['confi... | 1 |
Java | Java | remove unnecessary observable constructor | c968effdbba6e9d8e885f8316c288ae36cb9e86b | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> * <p>
<ide> * <img width="640" src="https://github.com/Netflix/RxJava/wiki/images/rx-operators/legend.png">
<ide> * <p>
<del> * For more information see the <a href="https://github.com/Netflix/RxJava/wiki/Observable">RxJava
<del> * Wiki</a>
<add> * For mo... | 19 |
Go | Go | remove some duplicated code, and preserve context | 56a68c15f8a093b1761e77a74d8b7acdfbcb30a2 | <ide><path>integration/internal/swarm/states.go
<add>package swarm
<add>
<add>import (
<add> "context"
<add>
<add> "github.com/docker/docker/api/types"
<add> "github.com/docker/docker/api/types/filters"
<add> "github.com/docker/docker/client"
<add> "gotest.tools/poll"
<add>)
<add>
<add>// NoTasksForService verifies tha... | 4 |
Ruby | Ruby | install binstubs by default | f34c27a452418d8aa17f92bb0fd7ae97b5f7e252 | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def bundle_command(command)
<ide> end
<ide>
<ide> def run_bundle
<del> bundle_command('install') unless options[:skip_gemfile] || options[:skip_bundle] || options[:pretend]
<add> bundle_command('install --binstubs') unless options[:sk... | 2 |
Ruby | Ruby | remove useless conditional | 3a156ec8e79b88ff90e8f5ed34dd05b89e94b72f | <ide><path>activerecord/lib/active_record/core.rb
<ide> def update_attributes_from_transaction_state(transaction_state, depth)
<ide> @reflects_state[depth] = true
<ide> end
<ide>
<del> if transaction_state.parent && !@reflects_state[depth+1]
<add> if transaction_state.parent
<ide> ... | 1 |
PHP | PHP | add test for | 6152546e1aa8670d6a7647d856729a8a05d5fd73 | <ide><path>tests/TestCase/ORM/QueryRegressionTest.php
<ide> public function testTypemapInFunctions()
<ide> 'Output values for functions are not cast yet.'
<ide> );
<ide> }
<add>
<add> public function testBooleanConditionsInContain()
<add> {
<add> $table = TableRegistry::get('Article... | 1 |
Python | Python | update core layers | bf4dab3501c62836f94ea17d2f0e198348f5293d | <ide><path>keras/constraints.py
<ide> def get_config(self):
<ide> unitnorm = UnitNorm
<ide>
<ide> from .utils.generic_utils import get_from_module
<del>
<del>
<ide> def get(identifier, kwargs=None):
<del> return get_from_module(identifier, globals(), 'constraint', instantiate=True, kwargs=kwargs)
<add> return ge... | 9 |
Python | Python | stop change cwd to .env/.flaskenv location | 84cbfc0698f429c93450cd6f1600e56b41a30247 | <ide><path>src/flask/cli.py
<ide> def load_dotenv(path=None):
<ide> If an env var is already set it is not overwritten, so earlier files in the
<ide> list are preferred over later files.
<ide>
<del> Changes the current working directory to the location of the first file
<del> found, with the assumption t... | 2 |
Python | Python | remove agg setting from docs | 49a798c27d08f244207829c57d9621c9514e8c82 | <ide><path>numpy/core/function_base.py
<ide> def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None,
<ide>
<ide> >>> import matplotlib
<ide> >>> import matplotlib.pyplot
<del> >>> matplotlib.pyplot.switch_backend('agg')
<ide> >>> import matplotlib.pyplot as plt
<ide> >>> N = 8
<i... | 4 |
Ruby | Ruby | fix rubocop violations | fb9e846be9a1e1a907c84f5d0336bec56fe2a5bc | <ide><path>actionview/lib/action_view/digestor.rb
<ide> def tree(name, finder, partial = false, seen = {})
<ide> node
<ide> end
<ide> else
<del> unless name.include?('#') # Dynamic template partial names can never be tracked
<add> unless name.include?("#") # Dynamic templ... | 2 |
Mixed | Text | update license documentation | 3c55d8e528a2eed012a7b73bb46839bbe44d6aa0 | <ide><path>Library/Homebrew/formula.rb
<ide> def method_added(method)
<ide> # @!attribute [w]
<ide> # The SPDX ID of the open-source license that the formula uses.
<ide> # Shows when running `brew info`.
<del> # Use `:any`, `:all` or `:with` to describe complex license expressions.
<del> # `:any` shou... | 4 |
PHP | PHP | fix boolean operators | 6c2a68891a7069b9e6ffa9c23d0f125720b6307a | <ide><path>src/Illuminate/Foundation/Console/TinkerCommand.php
<ide> protected function prompt()
<ide> */
<ide> protected function supportsBoris()
<ide> {
<del> return (extension_loaded('readline') and extension_loaded('posix') and extension_loaded('pcntl'));
<add> return extension_loaded('readline') && extension... | 1 |
Ruby | Ruby | remove unused #await_close | d09bce96b4ee0e2e2434caaed5ff07fe7d9fd1c9 | <ide><path>actionpack/lib/action_controller/metal/live.rb
<ide> def connected?
<ide> !@aborted
<ide> end
<ide>
<del> def await_close
<del> synchronize do
<del> @cv.wait_until { @closed }
<del> end
<del> end
<del>
<ide> def on_error(&block)
<ide> @error_callb... | 1 |
Javascript | Javascript | run tests against chrome 91 on macos catalina | 56b0ee32756d9ac7ab39145e6c6df656fa649c07 | <ide><path>protractor-circleci-conf.js
<ide> config.sauceKey = process.env.SAUCE_ACCESS_KEY;
<ide> config.multiCapabilities = [
<ide> capabilitiesForSauceLabs({
<ide> browserName: 'chrome',
<del> platform: 'OS X 10.14',
<del> version: '81'
<add> platform: 'OS X 10.15',
<add> version: '91'
<ide> }),
... | 1 |
Ruby | Ruby | remove unused methods | f6cf909476c032524ed7c404ee7c0fb270d39d58 | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def self.path(name, path, comment = nil)
<ide> new(name, comment, nil, path: path)
<ide> end
<ide>
<del> def github; options[:github]; end
<del> def path; options[:path]; end
<del> def platforms; options[:platforms]; end
... | 1 |
Javascript | Javascript | prevent simultaneous heap snapshots | 16a9ab142c804c90c1990eef01dc6116bc786d16 | <ide><path>lib/internal/debugger/inspect_repl.js
<ide> function createRepl(inspector) {
<ide> const history = { control: [], debug: [] };
<ide> const watchedExpressions = [];
<ide> const knownBreakpoints = [];
<add> let heapSnapshotPromise = null;
<ide> let pauseOnExceptionState = 'none';
<ide> let lastComma... | 3 |
Python | Python | use input shape instead of input layer | a4552fb00492c47f67261a8c1b9538a0614cbb71 | <ide><path>keras/layers/core.py
<ide> class Lambda(Layer):
<ide>
<ide> Arguments
<ide> ---------
<del> function - The function to be evaluated. Takes one argument : ouput of previous layer
<del> output_shape - Expected output shape from function. Could be a tuple or a function of input layer
<add> fun... | 1 |
Ruby | Ruby | improve the performance of `save` and friends | 136fc65c9b8b66e1fb56f3a17f0d1fddff9b4bd0 | <ide><path>activemodel/lib/active_model/dirty.rb
<ide> def changes_include?(attr_name)
<ide> # Returns +true+ if attr_name were changed before the model was saved,
<ide> # +false+ otherwise.
<ide> def previous_changes_include?(attr_name)
<del> @previously_changed.include?(attr_name)
<add> ... | 3 |
Go | Go | save start error into state.error | fb6ee865a949905f678aa7c7066c809664a8a4aa | <ide><path>daemon/container.go
<ide> func (container *Container) Start() (err error) {
<ide> // setup has been cleaned up properly
<ide> defer func() {
<ide> if err != nil {
<add> container.setError(err)
<add> container.toDisk()
<ide> container.cleanup()
<ide> }
<ide> }()
<ide><path>daemon/state.go
<ide> ... | 3 |
Java | Java | remove unnecessary code from prior commit | 310f0bfb6c396ac09e0d712fc0706a8e0c8a8d52 | <ide><path>spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java
<ide> public static Flux<DataBuffer> write(
<ide>
<ide> }
<ide>
<del> public void handle() {
<del> Number n = 5;
<del> inspect(n);
<del> }
<del>
<del> public <U extends Number> void inspect(U u){
<del> }
<del>
<del>
<ide> ... | 1 |
PHP | PHP | rename the method and fix docblock return type | 49ea72e53e6c3755fccbbe110c366012f41ae902 | <ide><path>lib/Cake/Model/Model.php
<ide> public function save($data = null, $validate = true, $fieldList = array()) {
<ide> if (!empty($this->id)) {
<ide> $success = (bool)$db->update($this, $fields, $values);
<ide> } else {
<del> if (empty($this->data[$this->alias][$this->primaryKey]) && $this->_isUUID($... | 1 |
Java | Java | use assertthat from hamcrest instead of junit 4 | d616e10dca686b12b4cc95ae103e6680bd4e4224 | <ide><path>spring-beans/src/test/java/org/springframework/beans/factory/ConcurrentBeanFactoryTests.java
<ide> import org.junit.Before;
<ide> import org.junit.Test;
<ide>
<del>import org.springframework.beans.PropertyEditorRegistrar;
<del>import org.springframework.beans.PropertyEditorRegistry;
<ide> import org.springf... | 103 |
Text | Text | add link to forums thread | 6009668c631aa5773c66aa30c6bfd9c191e2a6be | <ide><path>ISSUES.md
<ide> In general the best way to figure out what works the best is learn from issues p
<ide>
<ide> Thank you for reading this somewhat lengthy document. We would like to conclude that these are not absolute rules, but a friendly advice that will help maximize the chances for us to understand what ... | 1 |
PHP | PHP | fix styleci issue | e01f5483a70c853314ead2a3f0a3d075f5c3e42e | <ide><path>src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php
<ide> public function compileDisableForeignKeyConstraints()
<ide> }
<ide>
<ide> /**
<del> * Compile the command to drop all foreign keys
<add> * Compile the command to drop all foreign keys.
<ide> *
<ide> * @return string... | 1 |
Text | Text | fix encoderdecoder wikisplit example | 0724c0f3a2d302246d0bd0b7d2f721fa902dee1b | <ide><path>model_cards/google/roberta2roberta_L-24_wikisplit/README.md
<ide> model = AutoModelForSeq2SeqLM.from_pretrained("google/roberta2roberta_L-24_wikis
<ide>
<ide> long_sentence = """Due to the hurricane, Lobsterfest has been canceled, making Bob very happy about it and he decides to open Bob 's Burgers for cust... | 1 |
Ruby | Ruby | pass explicit sort to handle apfs | e98d0fda86719794fd35f42b25a22fad408fd7ef | <ide><path>Library/Homebrew/tap.rb
<ide> def self.each
<ide>
<ide> # an array of all installed {Tap} names.
<ide> def self.names
<del> map(&:name)
<add> map(&:name).sort
<ide> end
<ide>
<ide> # @private | 1 |
Java | Java | fix javadoc warnings on empty <p> | 27ce955dfc9b2457ae09cdbbe3c9a0542c5eb2a6 | <ide><path>src/main/java/io/reactivex/Flowable.java
<ide> public final T blockingFirst(T defaultItem) {
<ide> * <em>Note:</em> the method will only return if the upstream terminates or the current
<ide> * thread is interrupted.
<ide> * <p>
<del> * <p>This method executes the {@code Consumer} on the c... | 2 |
Go | Go | fix tarsum for go 1.10 | a422774e593b33bd287d9890544ad9e09b380d8c | <ide><path>pkg/tarsum/tarsum.go
<ide> func (sth simpleTHash) Hash() hash.Hash { return sth.h() }
<ide>
<ide> func (ts *tarSum) encodeHeader(h *tar.Header) error {
<ide> for _, elem := range ts.headerSelector.selectHeaders(h) {
<add> // Ignore these headers to be compatible with versions
<add> // before go 1.10
<add... | 2 |
Javascript | Javascript | use custom inspection for linked lists | d8baf67d4af2a9e388c82eccab2d3366a0a61c7e | <ide><path>lib/internal/timers.js
<ide> const {
<ide> } = require('internal/errors').codes;
<ide> const { validateNumber } = require('internal/validators');
<ide>
<add>const { inspect } = require('util');
<add>
<ide> // Timeout values > TIMEOUT_MAX are set to 1.
<ide> const TIMEOUT_MAX = 2 ** 31 - 1;
<ide>
<ide> func... | 3 |
Javascript | Javascript | add more jsdoc to make eslint happuy | 1a2bbc5303194054653a45d2d88df7b030a97a5c | <ide><path>lib/compareLocations.js
<ide>
<ide> /**
<ide> * Compare two locations
<del> * @param {string|NodeLocation} a
<del> * @param {string|NodeLocation} b
<del> * @returns {-1|0|1}
<add> * @param {string|NodeLocation} a A location node
<add> * @param {string|NodeLocation} b A location node
<add> * @returns {-1|0|... | 1 |
Text | Text | add typescript to next-mdx readme | af890406221ff7af4310ef1b4ac56e54913db889 | <ide><path>packages/next-mdx/readme.md
<ide> module.exports = withMDX({
<ide> pageExtensions: ['js', 'jsx', 'mdx'],
<ide> })
<ide> ```
<add>
<add>## Typescript
<add>
<add>Follow [this guide](https://mdxjs.com/advanced/typescript) from the MDX docs. | 1 |
Javascript | Javascript | remove progress events | 7764dd95c02c14211ec225dda911ec9b6b29ff60 | <ide><path>src/util.js
<ide> function isPDFFunction(v) {
<ide> * Promise/A+ spec. Some notable differences from other promise libaries are:
<ide> * - There currently isn't a seperate deferred and promise object.
<ide> * - Unhandled rejections eventually show an error if they aren't handled.
<del> * - Progress events... | 1 |
Javascript | Javascript | add assertstablererender rendering test helper | 6a58171a27393cb5719dcaa52ac49c56611c2e48 | <ide><path>packages/ember-glimmer/tests/utils/abstract-test-case.js
<ide> export class TestCase {
<ide> this.assertSameNode(newSnapshot[i], oldSnapshot[i]);
<ide> }
<ide> }
<add>
<add> assertStableRerender() {
<add> this.takeSnapshot();
<add> this.runTask(() => this.rerender());
<add> this.assertI... | 1 |
Go | Go | keep linebreaks and generalize code | c349b4d56c338bc43c81667bb927518b923998cb | <ide><path>utils/utils.go
<ide> func GetResolvConf() ([]byte, error) {
<ide> // CheckLocalDns looks into the /etc/resolv.conf,
<ide> // it returns true if there is a local nameserver or if there is no nameserver.
<ide> func CheckLocalDns(resolvConf []byte) bool {
<del> var parsedResolvConf = ParseResolvConf(resolvConf)... | 1 |
Python | Python | switch python intersphinx link from dev to stable | 4f1283028f9f1e271cf4cbedc9ebe044a5c25be5 | <ide><path>doc/source/conf.py
<ide> def setup(app):
<ide> # -----------------------------------------------------------------------------
<ide> intersphinx_mapping = {
<ide> 'neps': ('https://numpy.org/neps', None),
<del> 'python': ('https://docs.python.org/dev', None),
<add> 'python': ('https://docs.python.o... | 1 |
PHP | PHP | show the last 200 queries instead of the first 200 | 3e0fa0009bf91651ddebe9f08265095f9cfb31b3 | <ide><path>lib/Cake/Model/Datasource/DboSource.php
<ide> public function logQuery($sql, $params = array()) {
<ide> $this->_queriesCnt++;
<ide> $this->_queriesTime += $this->took;
<ide> $this->_queriesLog[] = array(
<del> 'query' => $sql,
<del> 'params' => $params,
<del> 'affected' => $this->affected,
<del>... | 1 |
Text | Text | add v3.1.3 to changelog | 16b8df445f008d34cd56e6395ba9b1cea62a872e | <ide><path>CHANGELOG.md
<ide> - [#16462](https://github.com/emberjs/ember.js/pull/16462) [CLEANUP] Remove deprecated `MODEL_FACTORY_INJECTIONS`.
<ide> - [emberjs/rfcs#286](https://github.com/emberjs/rfcs/blob/master/text/0286-block-let-template-helper.md) [FEATURE] Enabled block `let` handlebars helper by default.
<ide... | 1 |
Ruby | Ruby | blame controller files #684 | 8322ea45c1087325fd428a201749791550bc7859 | <ide><path>activesupport/lib/active_support/dependencies.rb
<ide> def path() [] end
<ide>
<ide> # Load the source file at the given file path
<ide> def load_file!(file_path)
<del> root.module_eval(IO.read(file_path), file_path, 1)
<add> begin root.module_eval(IO.read(file_path), file_path, 1)
<ad... | 1 |
Javascript | Javascript | use the same coding style as the other lines | df1c4369ebe7201eb6e97504b4acc574090450fc | <ide><path>examples/js/postprocessing/RenderPass.js
<ide> THREE.RenderPass.prototype = Object.assign( Object.create( THREE.Pass.prototype
<ide> var oldAutoClear = renderer.autoClear;
<ide> renderer.autoClear = false;
<ide>
<del> var oldOverrideMaterial = this.scene.overrideMaterial;
<add> var oldClearColor, oldC... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.