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
show bundled gems
47db62bf8dc380d31f1c106a2cb39b18b7cbf36f
<ide><path>ci/ci_build.rb <ide> def rake(*tasks) <ide> puts "[CruiseControl] #{`pg_config --version`}" <ide> puts "[CruiseControl] SQLite3: #{`sqlite3 -version`}" <ide> `gem env`.each_line {|line| print "[CruiseControl] #{line}"} <del># Commented until bundler supports --list again <del># puts "[CruiseControl] ...
1
Python
Python
add defaults for security
1a67ca1adb517b7ae78bc17106847bc9c9648345
<ide><path>airflow/configuration.py <ide> class AirflowConfigException(Exception): <ide> 'smtp': { <ide> 'smtp_starttls': True, <ide> }, <add> 'security': { <add> 'ccache': '/tmp/airflow_krb5_ccache', <add> 'principal': 'airflow', # gets augmented with fqdn <add> ...
1
Ruby
Ruby
remove validations from example components
05a2a939f0e4e87800b2b1ded5c4708052be13b7
<ide><path>actionpack/test/lib/test_component.rb <ide> # frozen_string_literal: true <ide> <ide> class TestComponent < ActionView::Base <del> include ActiveModel::Validations <del> <del> validates :title, presence: true <ide> delegate :render, to: :view_context <ide> <ide> def initialize(title:) <ide> def initi...
3
Go
Go
add syncpipe for passing context
2412656ef54cb4df36df2f8122e1fda24ec8e8a4
<ide><path>pkg/libcontainer/nsinit/exec.go <ide> package nsinit <ide> <ide> import ( <del> "encoding/json" <ide> "fmt" <ide> "github.com/dotcloud/docker/pkg/libcontainer" <ide> "github.com/dotcloud/docker/pkg/libcontainer/network" <ide> func Exec(container *libcontainer.Container, stdin io.Reader, stdout, stderr io...
4
Python
Python
add type hinting for discord provider
a518801f8d5abe4ceb8b8678c27e6858f51f288a
<ide><path>airflow/providers/discord/hooks/discord_webhook.py <ide> # <ide> import json <ide> import re <add>from typing import Any, Dict, Optional <ide> <ide> from airflow.exceptions import AirflowException <ide> from airflow.providers.http.hooks.http import HttpHook <ide> class DiscordWebhookHook(HttpHook): <ide> ...
2
Javascript
Javascript
add explanation why keep var with for loop
4506991aafa59f311024a7290b5195cf030cee7c
<ide><path>lib/internal/async_hooks.js <ide> function emitInitNative(asyncId, type, triggerAsyncId, resource) { <ide> active_hooks.call_depth += 1; <ide> // Use a single try/catch for all hooks to avoid setting up one per iteration. <ide> try { <add> // Using var here instead of let because "for (var ...)" is ...
1
Javascript
Javascript
add tspan to jsx transform
8e0d17c756ae2b0485316ba63530079ed9608a18
<ide><path>vendor/fbtransform/transforms/xjs.js <ide> var knownTags = { <ide> title: true, <ide> tr: true, <ide> track: true, <add> tspan: true, <ide> u: true, <ide> ul: true, <ide> 'var': true,
1
Javascript
Javascript
remove `symbol()` from real-world example
734a2833e801b68cf64464d55ac98e8d75568004
<ide><path>examples/real-world/src/middleware/api.js <ide> export const Schemas = { <ide> } <ide> <ide> // Action key that carries API call info interpreted by this Redux middleware. <del>export const CALL_API = Symbol('Call API') <add>export const CALL_API = 'Call API' <ide> <ide> // A Redux middleware that interpre...
1
Ruby
Ruby
fix code style
3b366d05b9c8a29a89bbf773fd2557024ea977b1
<ide><path>Library/Homebrew/cask/dsl.rb <ide> def auto_updates(auto_updates = nil) <ide> <ide> def livecheck(&block) <ide> @livecheck ||= Livecheck.new(self) <del> return @livecheck unless block_given? <add> return @livecheck unless block <ide> <ide> raise CaskInvalidError.new(cask, "'livech...
3
Text
Text
add example for caching
82b8a64a02ccc4ff678ac9f9565f25463ecad871
<ide><path>docs/api-guide/caching.md <ide> provided in Django. <ide> <ide> Django provides a [`method_decorator`][decorator] to use <ide> decorators with class based views. This can be used with <del>other cache decorators such as [`cache_page`][page] and <del>[`vary_on_cookie`][cookie]. <add>other cache decorators su...
1
Ruby
Ruby
use gcc if we tested against the latest llvm
d71e1d07863f3fcfb6e24a425c7ab07e54bad88d
<ide><path>Library/Homebrew/formula.rb <ide> def std_cmake_parameters <ide> def handle_llvm_failure llvm <ide> case ENV.compiler <ide> when :llvm, :clang <add> # version 2335 is the latest version as of Xcode 4.1, so it is the <add> # latest version we have tested against so we will switch to GCC an...
1
Python
Python
raise valueerror for narrow unicode build
6db1ddd9c7776cf07222ae58dc9b2c44135ac59a
<ide><path>spacy/__init__.py <ide> # coding: utf8 <ide> from __future__ import unicode_literals <ide> import warnings <add>import sys <ide> <ide> warnings.filterwarnings("ignore", message="numpy.dtype size changed") <ide> warnings.filterwarnings("ignore", message="numpy.ufunc size changed") <ide> from .errors import W...
1
Javascript
Javascript
fix lint errors 2/2
4d00df41b451e5223ac75e6914454b7e44105aa4
<ide><path>packager/blacklist.js <ide> function escapeRegExp(pattern) { <ide> } else if (typeof pattern === 'string') { <ide> var escaped = pattern.replace(/[\-\[\]\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'); <ide> // convert the '/' into an escaped local file separator <del> return escaped.replace(/\//g,'\\' + p...
23
Ruby
Ruby
add tests for sanitize named bind arity
199d4e28e01ce2e7c54aba69a09557f7b3bf7e4f
<ide><path>activerecord/test/cases/finder_test.rb <ide> def test_named_bind_variables_with_quotes <ide> end <ide> <ide> def test_bind_arity <del> assert_nothing_raised { bind '' } <add> assert_nothing_raised { bind '' } <ide> assert_raise(Act...
1
Python
Python
add migration doc for legacy_tf_layers/core.py
14336659f21a1dbaa81d3ae23d972049cc0a4f7a
<ide><path>keras/legacy_tf_layers/core.py <ide> class Dense(keras_layers.Dense, base.Layer): <ide> bias_constraint: Constraint function for the bias. <ide> kernel: Weight matrix (TensorFlow variable or tensor). <ide> bias: Bias vector, if applicable (TensorFlow variable or tensor). <add> <add> <add> @compa...
1
Ruby
Ruby
show http method in routing error message
a8870d140ececc6327533d08b112cece03c41499
<ide><path>actionpack/lib/action_dispatch/middleware/show_exceptions.rb <ide> def call(env) <ide> # Only this middleware cares about RoutingError. So, let's just raise <ide> # it here. <ide> if headers['X-Cascade'] == 'pass' <del> raise ActionController::RoutingError, "No route matches...
1
Javascript
Javascript
expose router.transitionto as a public method
d56f929aa0b76f96d5a48c3dc2427041ba943b0f
<ide><path>packages/ember-routing/lib/system/router.js <ide> var EmberRouter = EmberObject.extend(Evented, { <ide> containing a mapping of query parameters <ide> @return {Transition} the transition object associated with this <ide> attempted transition <del> @private <add> @public <ide> */ <ide>...
1
Javascript
Javascript
bind chunk promises to avoid scope problems
328cfd0246c61aa6cba2b2cd86f2406ebbb1b79e
<ide><path>src/evaluator.js <ide> var PartialEvaluator = (function PartialEvaluatorClosure() { <ide> case 'TJ': <ide> var chunkPromise = new Promise(); <ide> chunkPromises.push(chunkPromise); <del> fontPromise.then(function(items, font) { <add> ...
1
PHP
PHP
fix remaining failing tests
6d53ecbb54d187d7171459738b5464857e379e7b
<ide><path>lib/Cake/Test/TestCase/Routing/Route/RedirectRouteTest.php <ide> public function setUp() { <ide> * @return void <ide> */ <ide> public function testParsing() { <add> Router::connect('/:controller', array('action' => 'index')); <add> Router::connect('/:controller/:action/*'); <add> <ide> $route = new Re...
2
Javascript
Javascript
make menu button title a component
2f0834f43f596211c4d81013d218d86b48d076ca
<ide><path>src/js/menu/menu-button.js <ide> class MenuButton extends Component { <ide> <ide> // Add a title list item to the top <ide> if (this.options_.title) { <del> const title = Dom.createEl('li', { <add> const titleEl = Dom.createEl('li', { <ide> className: 'vjs-menu-title', <ide> ...
1
Ruby
Ruby
convert generic artifact test to spec
24d50599410dacbb36decfc957a5933e19d6a205
<add><path>Library/Homebrew/cask/spec/cask/artifact/generic_artifact_spec.rb <del><path>Library/Homebrew/cask/test/cask/artifact/generic_artifact_test.rb <del>require "test_helper" <add>require "spec_helper" <ide> <ide> describe Hbc::Artifact::Artifact do <ide> let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTUR...
1
Javascript
Javascript
add callback to ondidreplaceatomproject
607b3ffe52ab529c337c3e25f00293050ea5dc0c
<ide><path>src/project.js <ide> class Project extends Model { <ide> this.emitter.emit('replaced-atom-project', newSettings) <ide> } <ide> <del> onDidReplaceAtomProject () { <del> return this.emitter.on('replaced-atom-project') <add> onDidReplaceAtomProject (callback) { <add> return this.emitter.on('repla...
1
Javascript
Javascript
improve performance through bitwise operations
cb62a57d438f94dff32218ba095a6a63b1db958f
<ide><path>src/ng/directive/ngClass.js <ide> function classDirective(name, selector) { <ide> <ide> if (name !== 'ngClass') { <ide> scope.$watch('$index', function($index, old$index) { <del> var mod = $index % 2; <del> if (mod !== old$index % 2) { <del> if (mod == selector) { <add> ...
1
Text
Text
remove duplicate contributing.md
a7fe1ae2c25588149094d7f74209f3974c224cf6
<ide><path>project/CONTRIBUTING.md <del>../CONTRIBUTING.md <ide>\ No newline at end of file
1
Python
Python
remove kwargs argument from ibert mlm forward pass
c85547af2b69f9082bcd7bac97092b1d162f3fdc
<ide><path>src/transformers/models/ibert/modeling_ibert.py <ide> def forward( <ide> output_attentions: Optional[bool] = None, <ide> output_hidden_states: Optional[bool] = None, <ide> return_dict: Optional[bool] = None, <del> **kwargs, <ide> ) -> Union[MaskedLMOutput, Tuple[torch.Float...
1
Text
Text
update changelog with 9.x eol
195480a8bc3a7ffca675210b260086f979e8f4de
<ide><path>CHANGELOG.md <ide> release lines. <ide> <ide> Select a Node.js version below to view the changelog history: <ide> <del>* [Node.js 10](doc/changelogs/CHANGELOG_V10.md) <del>* [Node.js 9](doc/changelogs/CHANGELOG_V9.md) <del>* [Node.js 8](doc/changelogs/CHANGELOG_V8.md) <del>* [Node.js 7](doc/changelogs/CHAN...
1
Javascript
Javascript
add tests for contextdependencytemplateasid
6ada39f0a516a58e5b7afae756dde9c09f9a3a07
<ide><path>test/ContextDependencyTemplateAsId.test.js <add>"use strict"; <add> <add>const _ = require("lodash"); <add>const should = require("should"); <add>const sinon = require("sinon"); <add>const ContextDependencyTemplateAsId = require("../lib/dependencies/ContextDependencyTemplateAsId"); <add> <add>const requestSh...
1
PHP
PHP
fix a link
d90b33f38181fda28f029cb8a5788fd8413847c8
<ide><path>src/Auth/DefaultPasswordHasher.php <ide> class DefaultPasswordHasher extends AbstractPasswordHasher <ide> * <ide> * @param string $password Plain text password to hash. <ide> * @return bool|string Password hash or false on failure <del> * @link https://book.cakephp.org/3.0/en/core-librarie...
1
Javascript
Javascript
add path to spawn enoent error
f09b02786ffd1f987df623aa670c26216b0682c9
<ide><path>lib/child_process.js <ide> function ChildProcess() { <ide> this.signalCode = null; <ide> this.exitCode = null; <ide> this.killed = false; <add> this.spawnfile = null; <ide> <ide> this._handle = new Process(); <ide> this._handle.owner = this; <ide> function ChildProcess() { <ide> // <ide> ...
2
Javascript
Javascript
support the `type == all` properly
6718500eaaeb92b8a74320dcee961ac96f6f12fa
<ide><path>packages/react-native-codegen/src/generators/RNCodegen.js <ide> type LibraryOptions = $ReadOnly<{ <ide> outputDirectory: string, <ide> packageName?: string, // Some platforms have a notion of package, which should be configurable. <ide> assumeNonnull: boolean, <add> componentsOutputDir?: string, // op...
5
Javascript
Javascript
replace var with let/const
a412a97a73b8325b057bc749cffdd3c6c014ebe9
<ide><path>lib/zlib.js <ide> const codes = { <ide> }; <ide> <ide> const ckeys = ObjectKeys(codes); <del>for (var ck = 0; ck < ckeys.length; ck++) { <del> var ckey = ckeys[ck]; <add>for (let ck = 0; ck < ckeys.length; ck++) { <add> const ckey = ckeys[ck]; <ide> codes[codes[ckey]] = ckey; <ide> } <ide> <ide> functi...
1
Javascript
Javascript
apply camelcase in test-net-reconnect-error
4c6ef4b7e28afb31228ce29bf3a20f94b90554dc
<ide><path>test/sequential/test-net-reconnect-error.js <ide> const common = require('../common'); <ide> const net = require('net'); <ide> const assert = require('assert'); <ide> const N = 20; <del>let client_error_count = 0; <del>let disconnect_count = 0; <add>let clientErrorCount = 0; <add>let disconnectCount = 0; <id...
1
Java
Java
reduce code duplication in contextloaderutils
33d5b011d3e6e85767e910896f5dacf5930eb08a
<ide><path>spring-test/src/main/java/org/springframework/test/context/ContextLoaderUtils.java <ide> <ide> import java.util.ArrayList; <ide> import java.util.Arrays; <del>import java.util.Collections; <ide> import java.util.HashSet; <ide> import java.util.List; <ide> import java.util.Set; <ide> private ContextLoaderUti...
2
Javascript
Javascript
make easy changes as per code review
0e1edd910553c2c6f3e9624c4572ab5420aa9799
<ide><path>src/lib/duration/constructor.js <ide> import { getLocale } from '../locale/locales'; <ide> import isDurationValid from './valid.js'; <ide> <ide> export function Duration (duration) { <del> var normalizedInput = normalizeObjectUnits(duration); <add> var normalizedInput = normalizeObjectUnits(duration),...
5
Javascript
Javascript
fix top level detection in the parser
a8b32acad59407e2c707401c9af850d1b7fc009b
<ide><path>lib/Parser.js <ide> class Parser extends Tapable { <ide> } <ide> <ide> walkFunctionDeclaration(statement) { <add> const wasTopLevel = this.scope.topLevelScope; <add> this.scope.topLevelScope = false; <ide> for (const param of statement.params) this.walkPattern(param); <ide> this.inScope(statement.pa...
1
Text
Text
fix broken link
05f61b22adb4d7d636bbaad531cb6eb2ff5fc391
<ide><path>examples/ssr-caching/README.md <ide> React Server Side rendering is very costly and takes a lot of server's CPU power for that. One of the best solutions for this problem is cache already rendered pages. <ide> That's what this example demonstrate. <ide> <del>This app uses Next's [custom server and routing](...
1
Python
Python
set version to v2.0.14
41adf3572b30813d7e6fe8e07e29824ce9f87979
<ide><path>spacy/about.py <ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py <ide> <ide> __title__ = 'spacy' <del>__version__ = '2.0.14.dev0' <add>__version__ = '2.0.14' <ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython' <ide> __uri__ = 'https:/...
1
Java
Java
update copyright year of changed file
c204cc7ba0a2a62994b7275ad0743624c1344597
<ide><path>spring-context/src/main/java/org/springframework/cache/annotation/EnableCaching.java <ide> /* <del> * Copyright 2002-2018 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 ...
1
Ruby
Ruby
build quoted strings
d38352ef9e63ec6e1ffee3e4fe78101df36bd6d8
<ide><path>lib/arel/factory_methods.rb <ide> def grouping expr <ide> ### <ide> # Create a LOWER() function <ide> def lower column <del> Nodes::NamedFunction.new 'LOWER', [column] <add> Nodes::NamedFunction.new 'LOWER', [Nodes.build_quoted(column)] <ide> end <ide> end <ide> end <ide><path>lib...
3
Go
Go
remove use of docker/docker/errdefs in tests
570c5f9e764339effe6be9d57ea0aa3e81147695
<ide><path>libnetwork/libnetwork_test.go <ide> import ( <ide> "sync" <ide> "testing" <ide> <del> "github.com/docker/docker/errdefs" <ide> "github.com/docker/docker/pkg/plugins" <ide> "github.com/docker/docker/pkg/reexec" <ide> "github.com/docker/libnetwork" <ide> func getPortMapping() []types.PortBinding { <ide> ...
1
Javascript
Javascript
add tests for harmony with devtools
ba7b3aabbfc5399f89652a2d3ea106219e39b4cc
<ide><path>test/configCases/devtools/harmony-eval-source-map/index.js <add>export {} <add>it("should run fine", function() {}); <ide><path>test/configCases/devtools/harmony-eval-source-map/webpack.config.js <add>module.exports = { <add> devtool: "eval-source-map" <add>}; <ide><path>test/configCases/devtools/harmony-eva...
4
Python
Python
prefer filter to remove empty strings
1d152b6e51c97f8527d1a675084f8bc15444d7f4
<ide><path>tools/test.py <ide> def ProcessOptions(options): <ide> options.arch = options.arch.split(',') <ide> options.mode = options.mode.split(',') <ide> options.run = options.run.split(',') <del> options.skip_tests = options.skip_tests.split(',') <del> options.skip_tests.remove("") <add> # Split at commas a...
1
Javascript
Javascript
add example on how to use the element.injector
b4d44e12987131bfd23399947fe9b2f860cc5729
<ide><path>src/auto/injector.js <ide> * $rootScope.$digest(); <ide> * }); <ide> * </pre> <add> * <add> * Sometimes you want to get access to the injector of a currently running Angular app <add> * from outside Angular. Perhaps, you want to inject and compile some markup after the <add> * application has been ...
1
Text
Text
remove extra space
d9262a84156c104f97f110ccc0e78d45a031d7fd
<ide><path>docs/publishing-a-package.md <ide> This guide will show you how to publish a package or theme to the <ide> [atom.io][atomio] package registry. <ide> <del>Publishing a package allows other people to install it and use it in Atom. It <add>Publishing a package allows other people to install it and use it in A...
1
Javascript
Javascript
remove duplicate comment
1c84914c5a3bfc71969ca1930818d43192ae3ae8
<ide><path>lib/_http_common.js <ide> const parsers = new FreeList('parsers', 1000, function() { <ide> parser.incoming = null; <ide> parser.outgoing = null; <ide> <del> // Only called in the slow case where slow means <del> // that the request headers were either fragmented <del> // across multiple TCP packets o...
1
Javascript
Javascript
use countdown in http-agent test
f373a1d8145785b03aa535c739984d832fa0000a
<ide><path>test/parallel/test-http-agent.js <ide> <ide> 'use strict'; <ide> const common = require('../common'); <add>const Countdown = require('../common/countdown'); <ide> const assert = require('assert'); <ide> const http = require('http'); <ide> common.crashOnUnhandledRejection(); <ide> const server = http.Server(...
1
Javascript
Javascript
add a pointermove with animatedevent example
89f090016d8aa5366b8498d7a0227f8ad0e413d6
<ide><path>packages/rn-tester/js/examples/Experimental/Compatibility/CompatibilityAnimatedPointerMove.js <add>/** <add> * Copyright (c) Meta Platforms, Inc. and affiliates. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <ad...
2
Mixed
Javascript
update json header parsing for backticks
be46a7257b36ce5519d56e50db12f91b82d194f4
<ide><path>test/doctool/test-doctool-json.js <ide> const testData = [ <ide> } <ide> ] <ide> } <add> }, <add> { <add> file: fixtures.path('doc_with_backticks_in_headings.md'), <add> json: { <add> type: 'module', <add> source: 'foo', <add> modules: [ <add> { <add> ...
3
Javascript
Javascript
use a constant for the default y0
886c4db94dc99425f96431e37fbf9f889687bfe3
<ide><path>d3.js <ide> function d3_svg_lineMonotone(points) { <ide> } <ide> d3.svg.area = function() { <ide> var x = d3_svg_lineX, <del> y0 = d3_svg_areaY0, <add> y0 = 0, <ide> y1 = d3_svg_lineY, <ide> interpolate = "linear", <ide> interpolator = d3_svg_lineInterpolators[interpolate], <ide...
3
Python
Python
use six to reload module
29f5ce7aeb57abde3924527f63bb761e0c2342d3
<ide><path>rest_framework/tests/utils.py <ide> from contextlib import contextmanager <add>from rest_framework.compat import six <ide> from rest_framework.settings import api_settings <ide> <ide> <ide> def temporary_setting(setting, value, module=None): <ide> setattr(api_settings, setting, value) <ide> <ide> ...
1
Javascript
Javascript
use object.prototype.hasownproperty for doc in ie8
550795445e04a1b2c985ce2f58b125d0abe2817d
<ide><path>src/browser/ReactEventEmitter.js <ide> var topEventMapping = { <ide> var topListenersIDKey = "_reactListenersID" + String(Math.random()).slice(2); <ide> <ide> function getListeningForDocument(mountAt) { <del> if (!mountAt.hasOwnProperty(topListenersIDKey)) { <add> // In IE8, `mountAt` is a host object and...
1
Text
Text
add improvement of the translation
5e387d2561674978fb92328cfd662911d0071b83
<ide><path>guide/chinese/java/abstract-class/index.md <ide> localeTitle: Java中的抽象类 <ide> --- <ide> 让我们讨论抽象类。在深入学习本教程之前,最好先了解一下类的概念 和继承。 <ide> <del>抽象类是可以子类化(即扩展)但不能实例化的类。您可以将它们视为接口的**类版本** ,或者作为附加到方法的实际代码的接口。 <add>抽象类是可以子类化(即扩展)但不能实例化的类。您可以将它们视为接口的**类版本** ,或者作为方法中有具体代码的接口。 <ide> <ide> 请考虑以下示例来理解抽象类: 您有一个类Vehicle,它定义机...
1
Ruby
Ruby
avoid useless string allocations
7056e2aa18647319eb5a5e4cce34ed2d3d3553d7
<ide><path>actionpack/lib/abstract_controller/rendering.rb <ide> def _process_format(format) <ide> end <ide> <ide> def _get_content_type(rendered_format) # :nodoc: <del> rendered_format.to_s <ide> end <ide> <ide> def _set_content_type(type) # :nodoc: <ide><path>actionpack/lib/action_controller/me...
2
Javascript
Javascript
move immediates to react batchedupdates
4c74f01b85cb26a23292c44118ad1e28f43deaa3
<ide><path>Libraries/Utilities/MessageQueue.js <ide> class MessageQueue { <ide> '__callFunction' : '__invokeCallback'; <ide> guard(() => this[method].apply(this, call.args)); <ide> }); <del> BridgeProfiling.profile('ReactUpdates.batchedUpdates()'); <add> <add> this.__callImme...
1
Javascript
Javascript
remove css-sourcemap's when bundling for dist
93c3dc54b66166fd5df7d081a9b2c2ca76a2af00
<ide><path>packages/react-devtools-inline/webpack.config.js <ide> module.exports = { <ide> { <ide> loader: 'css-loader', <ide> options: { <del> sourceMap: true, <add> sourceMap: __DEV__, <ide> modules: true, <ide> localIdentName: '[...
1
Ruby
Ruby
move nil config_or_env handling
0946cb929c30ee4cf6460a401f4229f2147d3fdb
<ide><path>activerecord/lib/active_record/connection_handling.rb <ide> module ConnectionHandling <ide> # The exceptions AdapterNotSpecified, AdapterNotFound and +ArgumentError+ <ide> # may be returned on an error. <ide> def establish_connection(config_or_env = nil) <add> config_or_env ||= DEFAULT_ENV.c...
1
Python
Python
replace input args by set and get method
0a0be7bbd7b3d555c77b6af1d50ebd84ad34b388
<ide><path>glances/core/glances_stats.py <ide> def update(self): <ide> <ide> # For each plugins, call the update method <ide> for p in self._plugins: <add> # Set the input method to SNMP <add> self._plugins[p].set_input('snmp') <ide> # print "DEBUG: Update %s stats usi...
23
Java
Java
fix broken javadoc link to rome tools project
19aceebb961bd7fe24477a8e15830c668f519385
<ide><path>spring-web/src/main/java/org/springframework/http/converter/feed/AbstractWireFeedHttpMessageConverter.java <ide> /* <del> * Copyright 2002-2010 the original author or authors. <add> * Copyright 2002-2012 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "Li...
1
Javascript
Javascript
add test for readstream.path when fd is specified
eafdeab97b6757485781f19b90786a87b2b36369
<ide><path>test/parallel/test-fs-read-stream-fd.js <ide> fs.writeFileSync(file, input); <ide> const fd = fs.openSync(file, 'r'); <ide> const stream = fs.createReadStream(null, { fd: fd, encoding: 'utf8' }); <ide> <add>assert.strictEqual(stream.path, undefined); <add> <ide> stream.on('data', common.mustCallAtLeast((dat...
1
Javascript
Javascript
add spec for imageeditor
d2ef1145382b63d95f1f3374384e55487adee130
<ide><path>Libraries/Image/ImageEditor.js <ide> * @format <ide> */ <ide> 'use strict'; <del> <del>const RCTImageEditingManager = require('../BatchedBridge/NativeModules') <del> .ImageEditingManager; <add>import NativeImageEditor from './NativeImageEditor'; <ide> <ide> type ImageCropData = { <ide> /** <ide> class ...
2
Javascript
Javascript
implement review feedback
e1ea0a717c1db11e0e079b27e7d536faccad14e7
<ide><path>lib/optimize/CommonsChunkPlugin.js <ide> The available options are: <ide> this.children = normalizedOptions.children; <ide> this.async = normalizedOptions.async; <ide> this.minSize = normalizedOptions.minSize; <del> this.ident = normalizedOptions.ident; <add> this.ident = __filename + (nextIdent++); ...
1
PHP
PHP
fix foreach error when usetable = false
08cde9f5a2dec46422db058e682ca4e872aae71b
<ide><path>lib/Cake/Model/Model.php <ide> public function schema($field = false) { <ide> if ($this->useTable !== false && (!is_array($this->_schema) || $field === true)) { <ide> $db = $this->getDataSource(); <ide> $db->cacheSources = ($this->cacheSources && $db->cacheSources); <del> if (method_exists($db, 'de...
2
Java
Java
remove replaceokhttpclient method
7cbdd7b6ac7db2192f7d0193d22326041517a63e
<ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/network/OkHttpClientProvider.java <ide> public static OkHttpClient getOkHttpClient() { <ide> } <ide> return sClient; <ide> } <del> <del> // okhttp3 OkHttpClient is immutable <del> // This allows app to init an OkHttpClient with custom settin...
1
PHP
PHP
explain unusual parent call
8a41e8467893a6604303d240d6e30bc6c9c5f9c9
<ide><path>src/ORM/Query.php <ide> public function delete($table = null) <ide> $repository = $this->getRepository(); <ide> $this->from([$repository->getAlias() => $repository->getTable()]); <ide> <add> // We do not pass $table to parent class here <ide> return parent::delete(); <ide> ...
1
Python
Python
fix secure propagation issue
1e5945f8b04a1d123a89c87e855b7e38fcb45a1a
<ide><path>libcloud/common/base.py <ide> def connect(self, host=None, port=None, base_url=None, **kwargs): <ide> if not hasattr(kwargs, 'port'): <ide> kwargs.update({'port': port}) <ide> <add> if not hasattr(kwargs, 'secure'): <add> kwargs.update({'secure': self.secure}) <add> <id...
2
PHP
PHP
choice
061a24a2c1b1898bf39997bade3105867c848f7f
<ide><path>src/Illuminate/Translation/Translator.php <ide> protected function sortReplacements(array $replace) <ide> */ <ide> public function choice($key, $number, array $replace = array(), $locale = null) <ide> { <del> $line = $this->get($key, $replace, $locale = $locale ?: $this->locale); <add> $line = $this->g...
1
Ruby
Ruby
use existing support for previous types
0ee7f4a5f1bbb578f04bb75728cf0c16b87b28ac
<ide><path>activerecord/lib/active_record/encryption/encryptable_record.rb <ide> module EncryptableRecord <ide> <ide> included do <ide> class_attribute :encrypted_attributes <del> class_attribute :_deterministic_encrypted_attributes # For memoization, we want to let each child keep its own <ide> ...
2
Python
Python
add region to snowflake uri.
0a37be3e3cf9289f63f1506bc31db409c2b46738
<ide><path>airflow/providers/snowflake/hooks/snowflake.py <ide> def get_uri(self) -> str: <ide> """Override DbApiHook get_uri method for get_sqlalchemy_engine()""" <ide> conn_config = self._get_conn_params() <ide> uri = ( <del> 'snowflake://{user}:{password}@{account}/{database}/{sche...
2
Text
Text
remove wrong remark on readable.read
8987ae843e034745f7247f63928d39f06ed7b116
<ide><path>doc/api/stream.md <ide> in object mode. <ide> The optional `size` argument specifies a specific number of bytes to read. If <ide> `size` bytes are not available to be read, `null` will be returned *unless* <ide> the stream has ended, in which case all of the data remaining in the internal <del>buffer will be...
1
Java
Java
restore handling of 0 bytes read
551505bd93003e983fb97bbf30221a45de138178
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerReadPublisher.java <ide> <T> void request(AbstractListenerReadPublisher<T> publisher, long n) { <ide> <T> void onDataAvailable(AbstractListenerReadPublisher<T> publisher) { <ide> if (publisher.changeState(this, READING))...
2
Python
Python
improve error message for bad fk resolution
ade34c44dae4f5cf9d51bf7f900bf06efa98ff12
<ide><path>django/db/models/fields/related.py <ide> def __init__(self, to, from_fields, to_fields, **kwargs): <ide> def resolve_related_fields(self): <ide> if len(self.from_fields) < 1 or len(self.from_fields) != len(self.to_fields): <ide> raise ValueError('Foreign Object from and to fields must...
1
Ruby
Ruby
remove redundant assignning to `current_env`
9ed7c7e9e2d61d60bc40aed421444cddc40d51f8
<ide><path>activerecord/test/cases/migration_test.rb <ide> def test_internal_metadata_stores_environment_when_other_data_exists <ide> current_env = ActiveRecord::ConnectionHandling::DEFAULT_ENV.call <ide> migrations_path = MIGRATIONS_ROOT + "/valid" <ide> <del> current_env = ActiveRecord::ConnectionHand...
1
Java
Java
copy cookies and hints in built serverresponse
d8215e7c79d7734da06f724e56d4e6a3d3d04c0d
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/server/DefaultEntityResponseBuilder.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 (th...
4
Python
Python
fix minio website from the driver
7633f49f82a60ee83825a4ebbfad1aa65e620868
<ide><path>libcloud/storage/drivers/minio.py <ide> def __init__(self, user_id, key, secure=True, host=None, port=None, <ide> <ide> class MinIOStorageDriver(BaseS3StorageDriver): <ide> name = 'MinIO Storage Driver' <del> website = 'http://cloud.google.com/storage' <add> website = 'https://min.io/' <ide> c...
1
PHP
PHP
add test case
9fd2af96a87c079483b01ce26cad180015bdb9c9
<ide><path>lib/Cake/Test/Case/Controller/ControllerTest.php <ide> public function beforeRender(Controller $controller) { <ide> <ide> class Test2Component extends TestComponent { <ide> <add> public $model; <add> <add> public function __construct(ComponentCollection $collection, $settings) { <add> $this->controller = ...
1
Go
Go
add constants for aufs whiteout files
2fb5d0c32376951ef41a6f64bb7dbd8f6fd14fba
<ide><path>daemon/graphdriver/aufs/aufs.go <ide> func (a *Driver) Diff(id, parent string) (archive.Archive, error) { <ide> // AUFS doesn't need the parent layer to produce a diff. <ide> return archive.TarWithOptions(path.Join(a.rootPath(), "diff", id), &archive.TarOptions{ <ide> Compression: archive.Uncompresse...
4
Text
Text
remove react 18 issue template
b76103d66fdb7396cbfcc66a032b31a0cd8ad342
<ide><path>.github/ISSUE_TEMPLATE/react_18.md <del>--- <del>name: "💬 React 18" <del>about: Bug reports, questions, and general feedback about React 18 <del>title: 'React 18 ' <del>labels: 'Type: Discussion, React 18' <del> <del>--- <del> <del><!-- <del> Ask a question or share feedback about the React 18 release here...
1
Python
Python
finish last commit
03d55d273251fe7612bbe0e729b7d2eaf3b50e17
<ide><path>test/test_linode.py <ide> def d(response): return base64.b64decode(response) <ide> avail_distributions = "eyJFUlJPUkFSUkFZIjpbXSwiQUNUSU9OIjoiYXZhaWwuZGlzdHJpYnV0aW9ucyIsIkRBVEEiOlt7IklTNjRCSVQiOjAsIkxBQkVMIjoiQXJjaCBMaW51eCAyMDA3LjA4IiwiTUlOSU1BR0VTSVpFIjo0MzYsIkRJU1RSSUJVVElPTklEIjozOCwiQ1JFQVRFX0RUIjoiMjA...
1
Javascript
Javascript
add note about using the `g` flag
19ec9936fe2ab272d6df42854fb4af57419476c1
<ide><path>src/ng/directive/input.js <ide> var inputType = { <ide> * as in the ngPattern directive. <ide> * @param {string=} ngPattern Sets `pattern` validation error key if the ngModel value does not match <ide> * a RegExp found by evaluating the Angular expression given in the attribute value. <del> ...
1
Text
Text
add cdn link
4fe60f500f7b15c360e06dabbaeabf1a124b865b
<ide><path>guide/english/bootstrap/index.md <ide> Adding the JavaScript elements of Bootstrap is similar with `<script>` elements <ide> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin=...
1
Javascript
Javascript
remove unused parameter
0004ffa5da1437c5c104ab64c170b158e596f22d
<ide><path>lib/zlib.js <ide> Zlib.prototype._transform = function(chunk, encoding, cb) { <ide> req.callback = callback; <ide> <ide> var self = this; <del> function callback(availInAfter, availOutAfter, buffer) { <add> function callback(availInAfter, availOutAfter) { <ide> if (self._hadError) <ide> retu...
1
Python
Python
remove columns before passing to data collator
7b95825d7dddb5896397c806119d1819325c25ff
<ide><path>src/transformers/trainer.py <ide> def _set_signature_columns_if_needed(self): <ide> # Inspect model forward signature to keep only the arguments it accepts. <ide> signature = inspect.signature(self.model.forward) <ide> self._signature_columns = list(signature.parameters.ke...
2
Mixed
Go
add typetmpfs to api/types/mount
18768fdc2e76ec6c600c8ab57d2d487ee7877794
<ide><path>api/types/mount/mount.go <ide> package mount <ide> <add>import ( <add> "os" <add>) <add> <ide> // Type represents the type of a mount. <ide> type Type string <ide> <add>// Type constants <ide> const ( <del> // TypeBind BIND <add> // TypeBind is the type for mounting host dir <ide> TypeBind Type = "bind" <...
14
Python
Python
move db call out of __init__
f0e24218077d4dff8015926d7826477bb0d07f88
<ide><path>airflow/providers/microsoft/azure/hooks/azure_cosmos.py <ide> """ <ide> import uuid <ide> <del>import azure.cosmos.cosmos_client as cosmos_client <add>from azure.cosmos.cosmos_client import CosmosClient <ide> from azure.cosmos.errors import HTTPFailure <ide> <ide> from airflow.exceptions import AirflowBadR...
3
Java
Java
fix multipart request test with jetty server
8b5f5d9f653d0656787e285065f5bdd66fc9427e
<ide><path>spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestPartIntegrationTests.java <ide> public void standardMultipartResolver() throws Exception { <ide> <ide> @Test // SPR-13319 <ide> public void standardMultipartResolverWithEncodedFileName() throws Exception { <del> byt...
1
Python
Python
remove deprecated assertequals
37709b59099bd984858ca1884c6c70403420347d
<ide><path>tests/test_tokenization_fast.py <ide> def assert_embeded_special_tokens(self, tokenizer_r, tokenizer_p): <ide> self.assertSequenceEqual(tokens_p["input_ids"], [0, 250, 6, 50264, 3823, 487, 21992, 3645, 4, 2]) <ide> <ide> # token_type_ids should put 0 everywhere <del> self.assertEquals...
1
Javascript
Javascript
add test for stream unpipe with 'data' listeners
ee67dd0a47b2fd5c1dd062349bdfccd5e2e0681a
<ide><path>test/parallel/test-stream-pipe-flow-after-unpipe.js <add>'use strict'; <add>const common = require('../common'); <add>const { Readable, Writable } = require('stream'); <add> <add>// Tests that calling .unpipe() un-blocks a stream that is paused because <add>// it is waiting on the writable side to finish a w...
1
Python
Python
add unittests for celery.datastructures
6392bee2de2ccd442884aeeaa089f1840e17db77
<ide><path>celery/tests/test_datastructures.py <add>import unittest <add>import sys <add> <add>from celery.datastructures import PositionQueue, ExceptionInfo <add> <add> <add>class TestPositionQueue(unittest.TestCase): <add> <add> def test_position_queue_unfilled(self): <add> q = PositionQueue(length=10) <add...
1
PHP
PHP
use assertfileexists
cabb61012f67c4a1ad9278dc88ce47b710dbe9d3
<ide><path>tests/Filesystem/FilesystemTest.php <ide> public function testCopyCopiesFileProperly() <ide> mkdir($this->tempDir.'/foo'); <ide> file_put_contents($this->tempDir.'/foo/foo.txt', $data); <ide> $filesystem->copy($this->tempDir.'/foo/foo.txt', $this->tempDir.'/foo/foo2.txt'); <del> ...
1
PHP
PHP
remove redundant code
d45c5bc6cfaea63fc6a470119027cf1711dd7a93
<ide><path>tests/TestCase/Datasource/ConnectionManagerTest.php <ide> */ <ide> namespace Cake\Test\TestCase\Datasource; <ide> <del>use Cake\Core\Plugin; <ide> use Cake\Datasource\ConnectionManager; <ide> use Cake\TestSuite\TestCase; <ide> <ide> public function tearDown() <ide> { <ide> parent::tearDown(); ...
1
Ruby
Ruby
run actionpack test cases in random order
dad40bf9eae66413eb4ef6cf432cd80aaacfaeda
<ide><path>actionpack/test/abstract_unit.rb <ide> def translate_exceptions(result) <ide> # Use N processes (N defaults to 4) <ide> Minitest.parallel_executor = ForkingExecutor.new(PROCESS_COUNT) <ide> end <del> <del># FIXME: we have tests that depend on run order, we should fix that and <del># remove this method ca...
1
Javascript
Javascript
ignore nan in d3.scale.quantile
bfed47b9d9531398c5645075829e6e14f32afe65
<ide><path>d3.js <del>d3 = {version: "0.28.5"}; // semver <add>d3 = {version: "0.28.6"}; // semver <ide> if (!Date.now) Date.now = function() { <ide> return +new Date(); <ide> }; <ide> d3.scale.quantile = function() { <ide> <ide> scale.domain = function(x) { <ide> if (!arguments.length) return domain; <del> ...
4
Javascript
Javascript
add the bloomberg app to the showcase
45bccef20df389aff1398d7a81a56e95b4c293c4
<ide><path>website/src/react-native/showcase.js <ide> var featured = [ <ide> linkAppStore: 'http://apple.co/2dfkYH9', <ide> infoLink: 'https://blog.getchop.io/how-we-built-chop-bae3d8acd131#.7y8buamrq', <ide> infoTitle: 'How we built Chop', <add> }, <add> { <add> name: 'Bloomberg', <add> icon: 'http...
1
Javascript
Javascript
remove unused branches
c00d08f5ec874de5e9b7c969d71117d32340e270
<ide><path>lib/fs.js <ide> function writeAll(fd, isUserFd, buffer, offset, length, position, callback_) { <ide> fs.write(fd, buffer, offset, length, position, function(writeErr, written) { <ide> if (writeErr) { <ide> if (isUserFd) { <del> if (callback) callback(writeErr); <add> callback(writeE...
1
Javascript
Javascript
fix use of reserved keyword as a parameter name
2ddd5ff88c041042826f45382623bf4fc94db320
<ide><path>src/platforms/platform.dom.js <ide> module.exports = function(Chart) { <ide> return canvas; <ide> } <ide> <del> function createEvent(type, chart, x, y, native) { <add> function createEvent(type, chart, x, y, nativeEvent) { <ide> return { <ide> type: type, <ide> chart: chart, <del> native: nativ...
1
Ruby
Ruby
organize relation methods into separate modules
7aabaac0f5ba108f917af2c65a79511694393b85
<ide><path>activerecord/lib/active_record.rb <ide> module ActiveRecord <ide> autoload :AttributeMethods <ide> autoload :Attributes <ide> autoload :AutosaveAssociation <add> <ide> autoload :Relation <del> autoload :RelationalCalculations <add> <add> autoload_under 'relation' do <add> autoload ...
5
PHP
PHP
apply fixes from styleci
9edd46fc6dcd550e4fd5d081bea37b0a43162165
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function update(array $attributes = [], array $options = []) <ide> <ide> return $this->fill($attributes)->save($options); <ide> } <del> <add> <ide> /** <ide> * Update the model in the database without raising any events. <ide> ...
1
Text
Text
improve documentation for commit subject line
a4d396d85874046ffe6647ecb953fd78e16bcba3
<ide><path>CONTRIBUTING.md <ide> Writing good commit logs is important. A commit log should describe what <ide> changed and why. Follow these guidelines when writing one: <ide> <ide> 1. The first line should be 50 characters or less and contain a short <del> description of the change prefixed with the name of the ch...
1
Text
Text
add some articles
8a61e2b151c9b8ed985c9d508fb4f31c84c155f7
<ide><path>docs/reference/run.md <ide> Dockerfile `USER` instruction, but the operator can override it: <ide> <ide> -u="": Username or UID <ide> <del>> **Note:** if you pass numeric uid, it must be in range 0-2147483647. <add>> **Note:** if you pass a numeric uid, it must be in the range 0-2147483647. <ide> <ide...
1
Mixed
Go
change autolock flag description
41b84e0994f9ec72990b7f0fc758f602f6241bc6
<ide><path>cli/command/swarm/init.go <ide> func newInitCommand(dockerCli *command.DockerCli) *cobra.Command { <ide> flags.Var(&opts.listenAddr, flagListenAddr, "Listen address (format: <ip|interface>[:port])") <ide> flags.StringVar(&opts.advertiseAddr, flagAdvertiseAddr, "", "Advertised address (format: <ip|interface...
5