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
fix rdoc markup [ci skip]
8e7998cd5aff3f1351118ee3b254548dce4ba08e
<ide><path>actionpack/lib/action_controller/metal/mime_responds.rb <ide> module MimeResponds <ide> # and accept Rails' defaults, life will be much easier. <ide> # <ide> # If you need to use a MIME type which isn't supported by default, you can register your own handlers in <del> # config/initializers/mim...
1
Java
Java
introduce defaultvaluesreactnativeconfig constant
5c9c901d0c76f9349ab2351510ce0e7e7ba07a26
<ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/ReactNativeConfig.java <ide> */ <ide> @DoNotStrip <ide> public interface ReactNativeConfig { <add> <add> public final ReactNativeConfig DefaultValuesReactNativeConfig = <add> new ReactNativeConfig() { <add> @Override <add> public boole...
2
Go
Go
use strconv instead of fmt.sprintf()
07b2e4cb7945e08feec99a7d1d2e80f0e6dc5aed
<ide><path>client/build_prune.go <ide> package client // import "github.com/docker/docker/client" <ide> import ( <ide> "context" <ide> "encoding/json" <del> "fmt" <ide> "net/url" <add> "strconv" <ide> <ide> "github.com/docker/docker/api/types" <ide> "github.com/docker/docker/api/types/filters" <ide> func (cli *Cl...
1
Text
Text
remove double reference
8135cf594b23206dd62ff619e91eec130d2862a1
<ide><path>CHANGELOG-5.6.md <ide> <ide> ### Requests <ide> - ⚠️ Return `false` from `expectsJson()` when requested content type isn't explicit ([#22506](https://github.com/laravel/framework/pull/22506), [3624d27](https://github.com/laravel/framework/commit/3624d2702c783d13bd23b852ce35662bee9a8fea)) <del>- Added `Reque...
1
Text
Text
document the location of experimental binary
01cfb70b0abb4a49c3f04101d8a8d6f59cd69ad0
<ide><path>experimental/README.md <ide> issues associated with it. If necessary, links are provided to additional <ide> documentation on an issue. As an active Docker user and community member, <ide> please feel free to provide any feedback on these features you wish. <ide> <del>## Install Docker experimental <add>#...
1
PHP
PHP
add `@since` tags
834c7cc827d5b33ab55227dda86a1034a10782cf
<ide><path>src/View/View.php <ide> public function loadHelper($name, array $config = []) <ide> * Check whether the view has been rendered. <ide> * <ide> * @return bool <add> * @since 3.7.0 <ide> */ <ide> public function hasRendered() <ide> { <ide> public function hasRendered() <ide> ...
1
Javascript
Javascript
remove stray console.log comment
07b7e8424def8408d6d394ebdfa00c5877c36f0c
<ide><path>src/browser/__tests__/validateDOMNesting-test.js <ide> var formattingTags = [ <ide> function isTagStackValid(stack) { <ide> for (var i = 0; i < stack.length; i++) { <ide> if (!isTagValidInContext(stack[i], stack.slice(0, i))) { <del> //console.log('invalid', stack[i], stack.slice(0, i)); <ide> ...
1
Ruby
Ruby
assign rails.cache to sprockets
4a2b3275a167d6452c4c6b4453bc7406d13e8377
<ide><path>actionpack/lib/sprockets/railtie.rb <ide> def asset_environment(app) <ide> <ide> env.logger = Rails.logger <ide> <add> if env.respond_to?(:cache) <add> env.cache = Rails.cache <add> end <add> <ide> if assets.compress <ide> # temporarily hardcode default JS c...
1
Javascript
Javascript
provide rtl support in navigationcardstack
fc864a22bd00464c4219c6ddb6aa3d923aeb26dc
<ide><path>Libraries/CustomComponents/NavigationExperimental/NavigationCardStackPanResponder.js <ide> 'use strict'; <ide> <ide> const Animated = require('Animated'); <add>const I18nManager = require('I18nManager'); <ide> const NavigationAbstractPanResponder = require('NavigationAbstractPanResponder'); <ide> <ide> con...
4
Javascript
Javascript
fix version check test
2435b66840179a62826f917ea811c512a5e6abc3
<ide><path>grunt/tasks/version-check.js <ide> var reactVersionExp = /\bReact\.version\s*=\s*['"]([^'"]+)['"];/; <ide> <ide> module.exports = function() { <ide> var reactVersion = reactVersionExp.exec( <del> grunt.file.read('./src/core/React.js') <add> grunt.file.read('./src/browser/React.js') <ide> )[1]; <id...
1
Python
Python
fix yolos onnx export test
c99e984657b64dd8f19de74405bbf13763ab4f2b
<ide><path>tests/onnx/test_onnx_v2.py <ide> def _onnx_export(self, test_name, name, model_name, feature, onnx_config_class_c <ide> model_class = FeaturesManager.get_model_class_for_feature(feature) <ide> config = AutoConfig.from_pretrained(model_name) <ide> model = model_class.from_config(config...
1
Java
Java
add aot processing of bean aliases
403cfefc28c1c4999023f0fa4d2daefbbaca275f
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/aot/BeanRegistrationsAotContribution.java <ide> import org.springframework.javapoet.ClassName; <ide> import org.springframework.javapoet.CodeBlock; <ide> import org.springframework.javapoet.MethodSpec; <add>import org.springframework.util.MultiValu...
4
Ruby
Ruby
do cleanup even without a cellar
04b350dce5d0ac7e87ab4b5882dd1a5f19f39a9d
<ide><path>Library/Homebrew/cmd/cleanup.rb <ide> <ide> module Homebrew <ide> def cleanup <del> # individual cleanup_ methods should also check for the existence of the <del> # appropriate directories before assuming they exist <del> return unless HOMEBREW_CELLAR.directory? <del> <ide> if ARGV.named.empt...
1
Javascript
Javascript
apply bidi algorithm to the text in the worker
bd4434a7ea7be878360997849a2079e0ca39bec7
<ide><path>src/evaluator.js <ide> var PartialEvaluator = (function PartialEvaluatorClosure() { <ide> <ide> getTextContent: function partialEvaluatorGetIRQueue(stream, resources, state) { <ide> if (!state) { <del> state = []; <add> var text = []; <add> var dirs = []; <add> state = ...
2
Mixed
Python
fix typo about receptive field size
c1cc94a33aca9304a5351b3da7c9ebd923eea396
<ide><path>spacy/ml/models/tok2vec.py <ide> def build_hash_embed_cnn_tok2vec( <ide> window_size (int): The number of tokens on either side to concatenate during <ide> the convolutions. The receptive field of the CNN will be <ide> depth * (window_size * 2 + 1), so a 4-layer network with window_size o...
2
PHP
PHP
fix no error on console preboot
14716e50812860f27fb0d3d93d13f79fe70b8d63
<ide><path>src/Illuminate/Exception/Handler.php <ide> public function handleException($exception) <ide> $response = $this->displayException($exception); <ide> } <ide> <del> return $this->responsePreparer->readyForResponses() <add> return $this->sendResponse($response); <add> } <add> <add> /** <add> * Send the ...
1
Ruby
Ruby
improve `_fetch` compatibility layer
ab04cfed831cf82232f4c1d815ada5f112133a71
<ide><path>Library/Homebrew/compat/early/download_strategy.rb <ide> # frozen_string_literal: true <ide> <ide> class AbstractDownloadStrategy <del> module Compat <add> module CompatFetch <ide> def fetch(timeout: nil) <ide> super() <ide> end <ide> end <ide> <add> module Compat_Fetch # rubocop:disable...
3
Javascript
Javascript
change bidi.js file format to unix
31839d8c7816ca1106daae9ff55c39ee65b651ee
<ide><path>src/bidi.js <del>/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ <del>/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ <del> <del>'use strict'; <del> <del>var bidi = PDFJS.bidi = (function bidiClosure() { <del> // Character types for symbols from 0000 to 0...
1
Javascript
Javascript
fix objexporter without normals
5989d08230a8d5a6c82cc9c70172d2c920e79b0d
<ide><path>examples/js/exporters/OBJExporter.js <ide> THREE.OBJExporter.prototype = { <ide> <ide> j = indices.getX( i + m ) + 1; <ide> <del> face[ m ] = ( indexVertex + j ) + '/' + ( uvs ? ( indexVertexUvs + j ) : '' ) + '/' + ( indexNormals + j ); <add> face[ m ] = ( indexVertex + j ) + '/' + ( uv...
1
PHP
PHP
add test for empty read() calls on cakesession
7501fcf46dc9106e47768c54dbf4e136585d61a2
<ide><path>cake/libs/cake_session.php <ide> public static function started() { <ide> * @param string $name Variable name to check for <ide> * @return boolean True if variable is there <ide> */ <del> public static function check($name) { <add> public static function check($name = null) { <ide> if (empty($name)) { <...
2
Python
Python
add default line (in case there's no stdout)
4ba1b1aeecb0b25c96502eacbde7abba8614e2ac
<ide><path>airflow/operators/bash_operator.py <ide> def execute(self, context): <ide> self.sp = sp <ide> <ide> logging.info("Output:") <add> line = '' <ide> for line in iter(sp.stdout.readline, b''): <ide> logging.info(line.strip()) <id...
1
Javascript
Javascript
improve testing on ci
da1c51f1492c48ba8738896d4256bc2d77302777
<ide><path>test/core.tooltip.tests.js <ide> describe('tooltip tests', function() { <ide> }], <ide> afterBody: [], <ide> footer: [], <del> x: 269, <del> y: 155, <ide> caretPadding: 2, <ide> labelColors: [{ <ide> borderColor: 'rgb(255, 0, 0)', <ide> describe('tooltip tests', function() { <ide> ...
1
Mixed
Ruby
remove deprecated method `supports_primary_key?`
c56ff22fc6e97df4656ddc22909d9bf8b0c2cbb1
<ide><path>activerecord/CHANGELOG.md <add>* Remove deprecated method `supports_primary_key?`. <add> <add> *Rafael Mendonça França* <add> <ide> * Remove deprecated method `supports_migrations?`. <ide> <ide> *Rafael Mendonça França* <ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapte...
3
Java
Java
refine throwable handling in spring-websocket
526d89e1e61807faffdb3686e4243ffa4c2831f0
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketHandlerAdapter.java <ide> /* <del> * Copyright 2002-2018 the original author or authors. <add> * Copyright 2002-2019 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the ...
15
Mixed
PHP
fix method psr-2 braces in docblock code examples
bf95aa1421394aa9d3086cc52db173ee7f261411
<ide><path>src/Auth/ControllerAuthorize.php <ide> * return a boolean to indicate whether or not the user is authorized. <ide> * <ide> * ``` <del> * public function isAuthorized($user) { <add> * public function isAuthorized($user) <add> * { <ide> * if ($this->request->param('admin')) { <ide> * retu...
4
PHP
PHP
apply fixes from styleci
ee7398572518e7fe768cbea10d4bfddd87314c18
<ide><path>src/Illuminate/Cache/CacheServiceProvider.php <ide> namespace Illuminate\Cache; <ide> <ide> use Illuminate\Support\ServiceProvider; <del>use Illuminate\Contracts\Support\DeferrableProvider; <ide> use Symfony\Component\Cache\Adapter\Psr16Adapter; <add>use Illuminate\Contracts\Support\DeferrableProvider; <ide...
1
Python
Python
fix unused imports
778ef8ec1d3c48f849aa13bee9f88419baeeb969
<ide><path>celery/utils/__init__.py <ide> """ <ide> from __future__ import absolute_import, print_function, unicode_literals <ide> <del>from kombu.utils.objects import cached_property # noqa: F401 <del>from kombu.utils.uuid import uuid # noqa: F401 <add>from kombu.utils.objects import cached_property <add>from kombu...
3
PHP
PHP
apply fixes from styleci
705642d1983443a94182973de3306b9144cee3bd
<ide><path>src/Illuminate/Routing/Router.php <ide> public function apiResource($name, $controller, array $options = []) <ide> * @return void <ide> */ <ide> public function group(array $attributes, $routes) <del> { <add> { <ide> foreach (Arr::wrap($routes) as $groupRoutes) { <ide> ...
1
Javascript
Javascript
improve explanation of attributes.$observe
40414827f42c8fb86abb835f7387d5b02923d532
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide) { <ide> * @function <ide> * <ide> * @description <del> * Observe an interpolated attribute. <del> * The observer will never be called, if given attribute is not interpolated. <del> * The interpolated value of t...
1
Text
Text
modify the translation.
d04713636c0df5ae876a85668b1aaf2448582f82
<ide><path>guide/chinese/algorithms/index.md <ide> localeTitle: 算法 <ide> <ide> #### 快速排序 <ide> <del>没有快速排序可以完成排序讨论。基本概念在以下链接中。 [快速排序](http://me.dt.in.th/page/Quicksort/) <add>几乎所有与排序相关的讨论都涉及快速排序。基本概念在以下链接中。 [快速排序](http://me.dt.in.th/page/Quicksort/) <ide> <ide> #### 合并排序 <ide> <ide> freeCodeCamp的课程强调创建算法。这是因为学习算法是练...
1
PHP
PHP
add more tests
4cafe8801cbad081c2b5d0a0fbd2816679fb9060
<ide><path>tests/TestCase/Console/ShellTest.php <ide> public function testInfo() <ide> $this->Shell->info('Just a test'); <ide> } <ide> <add> /** <add> * testInfo method with array <add> * <add> * @return void <add> */ <add> public function testInfoArray() <add> { <add> $thi...
1
Java
Java
remove stream#toblockingqueue use
b7b423a0033f22de8ce49c09fcb39e81eaecc94c
<ide><path>spring-web-reactive/src/main/java/org/springframework/core/io/buffer/support/DataBufferPublisherInputStream.java <ide> <ide> import java.io.IOException; <ide> import java.io.InputStream; <del>import java.util.concurrent.BlockingQueue; <add>import java.util.Iterator; <ide> import java.util.concurrent.atomic....
1
Go
Go
update id of trace messages
8ccbc2c40a063dbd4251b684ded1573d99ded337
<ide><path>builder/builder-next/builder.go <ide> func (b *Builder) Build(ctx context.Context, opt backend.BuildConfig) (*builder. <ide> } <ide> auxJSON := new(json.RawMessage) <ide> *auxJSON = auxJSONBytes <del> msgJSON, err := json.Marshal(&jsonmessage.JSONMessage{ID: "buildkit-trace", Aux: auxJSON}) <add> ...
1
Python
Python
fix fab train
bdacedc434e5aad4065278a08ba668db867b6c78
<ide><path>fabfile.py <ide> def train(json_dir=None, dev_loc=None, model_dir=None): <ide> with virtualenv(VENV_DIR): <ide> with lcd(path.dirname(__file__)): <ide> local('python bin/init_model.py en lang_data/ corpora/ ' + model_dir) <del> local('python bin/parser/train.py %s %s' % (js...
1
Javascript
Javascript
use gate pragma instead of if (__experimental__)
4f5fb56100fac50f2c8bb33f984301b550e71407
<ide><path>packages/react-dom/src/__tests__/ReactDOMServerIntegrationHooks-test.js <ide> describe('ReactDOMServerHooks', () => { <ide> expect(container.children[0].textContent).toEqual('0'); <ide> }); <ide> <del> if (__EXPERIMENTAL__) { <del> describe('useOpaqueIdentifier', () => { <del> it('generates u...
2
PHP
PHP
apply fixes from styleci
fffc0729425278165d29a0b9f1d98aeb43e71057
<ide><path>src/Illuminate/Foundation/Console/ModelMakeCommand.php <ide> protected function getOptions() <ide> ['migration', 'm', InputOption::VALUE_NONE, 'Create a new migration file for the model.'], <ide> <ide> ['pivot', 'p', InputOption::VALUE_NONE, 'Indicates if the generated model should b...
1
PHP
PHP
change argument order
520544dc24772b421410a2528ba01fd47818eeea
<ide><path>src/Illuminate/View/Compilers/BladeCompiler.php <ide> protected function compileComponentTags($value) <ide> } <ide> <ide> return (new ComponentTagCompiler( <del> $this, $this->classComponentAliases <add> $this->classComponentAliases, $this <ide> ))->compile($val...
3
Text
Text
add 4.13.4 changelog
51ebccc37482f84e41417ef2917b0e4e44cc7465
<ide><path>packages/react-devtools/CHANGELOG.md <ide> ## 4.13.4 (May 20, 2021) <ide> #### Bugfix <ide> * Fix edge-case Fast Refresh bug that caused Fibers with warnings/errors to be untracked prematurely (which broke componentinspection in DevTools) ([bvaughn](https://github.com/bvaughn) in [#21536](https://github.com/...
1
Javascript
Javascript
use the $jsonpcallbacks service
78e1ba1ef90c851204cfa816125bbd5b908468e3
<ide><path>src/ng/http.js <ide> function $HttpProvider() { <ide> * <ide> * @description <ide> * Shortcut method to perform `JSONP` request. <add> * If you would like to customise where and how the callbacks are stored then try overriding <add> * or decorating the {@link jsonpCallbacks} service. <...
3
Python
Python
remove unused import
ca0acc9a2cda57501e13f6e9741c6a92d730ad83
<ide><path>research/object_detection/utils/spatial_transform_ops.py <ide> from __future__ import print_function <ide> <ide> import tensorflow.compat.v1 as tf <del>import numpy as np <ide> <ide> <ide> def _coordinate_vector_1d(start, end, size, align_endpoints):
1
Python
Python
write teardowns for openstack tests
9be9f9f22c8f7714afc62ba0cb02d13dd044e687
<ide><path>libcloud/test/common/test_openstack.py <ide> import unittest <ide> <ide> from mock import Mock <del> <add>from libcloud.common.base import LibcloudConnection <ide> from libcloud.common.openstack import OpenStackBaseConnection <ide> from libcloud.utils.py3 import PY25 <ide> <ide> def setUp(self): <ide> ...
2
Ruby
Ruby
fix broken scaffold routes test
b09e5922e1d26b0867e7113309cc0696561cfd95
<ide><path>railties/test/generators/scaffold_generator_test.rb <ide> def test_scaffold_with_namespace_on_invoke <ide> <ide> # Route <ide> assert_file "config/routes.rb" do |route| <del> assert_match(/namespace :admin do resources :roles end$/, route) <add> assert_match(/^ namespace :admin do\n re...
1
Ruby
Ruby
disconnect defined options from the build object
2f1d40a76437f94720c9969d11ff10555efc5809
<ide><path>Library/Homebrew/build_options.rb <ide> require 'options' <ide> <del># This class holds the build-time options defined for a Formula, <del># and provides named access to those options during install. <ide> class BuildOptions <ide> include Enumerable <ide> <ide><path>Library/Homebrew/cmd/info.rb <ide> def...
6
Text
Text
add sandboxes for almost all examples
6ca30fbcda0db4ac007ddf451eba75920282113c
<ide><path>README.md <ide> For Offline docs, please see: [devdocs](http://devdocs.io/redux/) <ide> <ide> ### Examples <ide> <add>Almost all examples have a corresponding CodeSandbox sandbox. This is an interactive version of the code that you can play with online. <add> <ide> * [Counter Vanilla](http://redux.js.org/d...
1
Javascript
Javascript
fix reference to wpt testharness.js
87a6b601325358d43ea9b649144417d3532ac58f
<ide><path>test/common/wpt.js <ide> const path = require('path'); <ide> const { inspect } = require('util'); <ide> const { Worker } = require('worker_threads'); <ide> <del>// https://github.com/w3c/testharness.js/blob/master/testharness.js <add>// https://github.com/web-platform-tests/wpt/blob/master/resources/testhar...
1
Javascript
Javascript
fix rc7 version number
9c1a911eac841296fc483f8a26114c19f0151ae5
<ide><path>packages/ember-metal/lib/core.js <ide> Ember.toString = function() { return "Ember"; }; <ide> /** <ide> @property VERSION <ide> @type String <del> @default '1.0.0-rc.7.1' <add> @default '1.0.0-rc.7' <ide> @final <ide> */ <del>Ember.VERSION = '1.0.0-rc.7.1'; <add>Ember.VERSION = '1.0.0-rc.7'; <ide> <...
1
Ruby
Ruby
handle -—help for internal/external cmds
7ecffd2771c64356824a71e975a2216bc64fd159
<ide><path>Library/brew.rb <ide> $:.unshift(HOMEBREW_LIBRARY_PATH.to_s) <ide> require 'global' <ide> <del>if ARGV.empty? || ARGV[0] =~ /(-h$|--help$|--usage$|-\?$|help$)/ <del> # TODO - `brew help cmd` should display subcommand help <del> require 'cmd/help' <del> puts ARGV.usage <del> exit ARGV.any? ? 0 : 1 <del>e...
1
Python
Python
remove old comment
51d37033c8b2f280cfc0ddf2b1ecf0537f347532
<ide><path>spacy/tests/regression/test_issue4903.py <ide> def test_issue4903(): <ide> nlp.add_pipe(custom_component, after="parser") <ide> <ide> text = ["I like bananas.", "Do you like them?", "No, I prefer wasabi."] <del> # works without 'n_process' <ide> for doc in nlp.pipe(text, n_process=2): <ide> ...
1
Mixed
Text
fix doc references
4b5b3b43212c0a1883c56321aedbffc605be31f9
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) CmdHelp(args ...string) error { <ide> {"inspect", "Return low-level information on a container"}, <ide> {"kill", "Kill a running container"}, <ide> {"load", "Load an image from a tar archive"}, <del> {"login", "Register or log in to the Docker registr...
3
Javascript
Javascript
add tests for requirejsstuffplugin
b25189a8b66b62499d02eae26702e810b8d9f2ce
<ide><path>test/RequireJsStuffPlugin.test.js <add>var should = require("should"); <add>var sinon = require("sinon"); <add>var RequireJsStuffPlugin = require("../lib/RequireJsStuffPlugin"); <add>var applyPluginWithOptions = require("./helpers/applyPluginWithOptions"); <add>var PluginEnvironment = require("./helpers/Plug...
3
Python
Python
add new describequota api in outscale ec2 driver
e45b3d05200bd626d325c783158102dd8010f441
<ide><path>libcloud/compute/drivers/ec2.py <ide> class OutscaleConnection(EC2Connection): <ide> Connection class for Outscale <ide> """ <ide> <add> version = DEFAULT_OUTSCALE_API_VERSION <ide> host = None <ide> <ide> <ide> def list_sizes(self, location=None): <ide> sizes.append(NodeSize(dr...
1
Javascript
Javascript
fix printing of large numbers
d0c238cc81a7bc4d67453ae2952d7d9368069f89
<ide><path>benchmark/common.js <ide> Benchmark.prototype.end = function(operations) { <ide> Benchmark.prototype.report = function(value) { <ide> var heading = this.getHeading(); <ide> if (!silent) <del> console.log('%s: %s', heading, value.toPrecision(5)); <add> console.log('%s: %s', heading, value.toFixed(0)...
1
Javascript
Javascript
remove unnecessary loadgetinitialprops
c6535edc2736463dfc93b8543d7b8abd87e5ae39
<ide><path>packages/next/client/index.js <ide> const wrapApp = (App) => (props) => { <ide> } <ide> <ide> async function doRender({ App, Component, props, err }) { <del> // Usual getInitialProps fetching is handled in next/router <del> // this is for when ErrorComponent gets replaced by Component by HMR <del> if ( <...
1
Ruby
Ruby
add regression tests
bed91f842109c715903ebbe3ce9754629b3594fd
<ide><path>actionpack/test/controller/send_file_test.rb <ide> def test_send_file_with_action_controller_live <ide> response = process("file") <ide> assert_equal 200, response.status <ide> end <add> <add> def test_send_file_charset_with_type_options_key <add> @controller = SendFileWithActionControllerLive....
1
Python
Python
add an expected failng test for
6595fd81b17e83000f2ff2abce0e3a93036266f8
<ide><path>keras/engine/training_test.py <ide> import collections <ide> import io <ide> import tempfile <add>import unittest <ide> import sys <ide> <ide> from absl.testing import parameterized <ide> def test_outputs_are_floats(self): <ide> self.assertIsInstance(loss, float) <ide> self.assertIsInstance(accuracy...
1
Python
Python
add test for new span.to_array method
4fda02c7e602df778e0648fcb86c9e2c8224e64d
<ide><path>spacy/tests/spans/test_span.py <ide> from __future__ import unicode_literals <ide> <ide> from ..util import get_doc <add>from ...attrs import ORTH, LENGTH <ide> <ide> import pytest <ide> <ide> def test_spans_by_character(doc): <ide> assert span1.start_char == span2.start_char <ide> assert span1.en...
1
Javascript
Javascript
avoid stack overflow
d18d555fe234c6d77d277a26f36ddc1657a49fdf
<ide><path>lib/FileSystemInfo.js <ide> class FileSystemInfo { <ide> path: directory <ide> }); <ide> } <del> callback(); <add> process.nextTick(callback); <ide> break; <ide> } <ide> case RBDT_DIRECTORY_DEPENDENCIES: {
1
Mixed
Ruby
implement ar#inspect using paramterfilter
32b03b46150b0161eba2321ccac7678511e3d58e
<ide><path>activerecord/CHANGELOG.md <ide> specify sensitive attributes to specific model. <ide> <ide> ``` <del> Rails.application.config.filter_parameters += [:credit_card_number] <del> Account.last.inspect # => #<Account id: 123, name: "DHH", credit_card_number: [FILTERED] ...> <add> Rails.applicati...
7
Java
Java
fix simplejdbccall and simplejdbcinsert javadoc
2344412e040bf734595141f6af7d695da061c2ef
<ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcCall.java <ide> * when the stored procedure was created. <ide> * <ide> * <p>The meta data processing is based on the DatabaseMetaData provided by <del> * the JDBC driver. Since we rely on the JDBC driver this "auto-detection" <add> *...
2
Javascript
Javascript
initialize dev variables in dev mode only
a42dcf4f7b10eab60bc97d89719eca05731dda35
<ide><path>src/core/shouldUpdateReactComponent.js <ide> function shouldUpdateReactComponent(prevElement, nextElement) { <ide> prevElement.type === nextElement.type && <ide> prevElement.key === nextElement.key) { <ide> var ownersMatch = prevElement._owner === nextElement._owner; <del> ...
1
Javascript
Javascript
test nativewatcher removal
0325a77d591f12d56d604fde9b0657a2436dc1ba
<ide><path>spec/native-watcher-registry-spec.js <ide> /** @babel */ <ide> <add>import path from 'path' <add>import {Emitter} from 'event-kit' <add> <ide> import NativeWatcherRegistry from '../src/native-watcher-registry' <ide> <ide> class MockWatcher { <ide> class MockNative { <ide> this.attached = [] <ide> t...
1
PHP
PHP
add touchquietly convenience method
9a1ac305d4aaac772f12243aad2c84f19d774081
<ide><path>src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php <ide> public function touch($attribute = null) <ide> return $this->save(); <ide> } <ide> <add> /** <add> * Update the model's update timestamp without raising any events. <add> * <add> * @param string|null $attribute <a...
1
Python
Python
add compat helpers for urllib
da1f20036209af7950588ccb0877299ccf946f0e
<ide><path>spacy/compat.py <ide> except ImportError: <ide> from thinc.neural.optimizers import Adam as Optimizer <ide> <add>try: <add> import urllib <add>except ImportError: <add> import urllib2 as urllib <add> <add>try: <add> from urllib.error import HTTPError as url_error <add>except ImportError: <add> ...
1
Javascript
Javascript
replace lodash module imports with utils
9724f2cc2ed3cd02e20bb51f55ba95db087dbe70
<ide><path>src/components/createConnector.js <del>import identity from 'lodash/utility/identity'; <add>import identity from '../utils/identity'; <ide> import shallowEqual from '../utils/shallowEqual'; <del>import isPlainObject from 'lodash/lang/isPlainObject'; <add>import isPlainObject from '../utils/isPlainObject'; <i...
2
PHP
PHP
fix date_format validation for all formats
71bb4e419b8d8f1fc3bae5c98c75b3c5ee3fe191
<ide><path>src/Illuminate/Validation/Validator.php <ide> protected function validateDateFormat($attribute, $value, $parameters) <ide> if (! is_string($value) && ! is_numeric($value)) { <ide> return false; <ide> } <add> <add> $date = DateTime::createFromFormat($parameters[0], $...
1
Ruby
Ruby
remove unused requires
38baf946c31df229b3aac47671eef313aca05520
<ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb <ide> require 'active_support/core_ext/hash/keys' <del>require 'active_support/core_ext/module/attribute_accessors' <del>require 'active_support/core_ext/object/blank' <ide> require 'active_support/key_generator' <ide> require 'active_support/message_verif...
1
Mixed
Javascript
remove experimental warning for fs.promises
5583d4d73ef750b27c9068ea0f05fae0de9f7766
<ide><path>doc/api/fs.md <ide> this API: [`fs.write(fd, string...)`][]. <ide> <ide> ## fs Promises API <ide> <del>> Stability: 1 - Experimental <add>> Stability: 2 - Stable <ide> <ide> The `fs.promises` API provides an alternative set of asynchronous file system <ide> methods that return `Promise` objects rather tha...
3
Javascript
Javascript
shorten job name
0add0b30db54ecdc7f64c081d7abcb29ae5a8be4
<ide><path>grunt.js <ide> module.exports = function( grunt ) { <ide> }, { <ide> authUsername: "jquery", <ide> authToken: grunt.file.readJSON( configFile ).jquery.authToken, <del> jobName: 'jQuery commit #<a href="https://github.com/jquery/jquery/commit/' + commit + '">' + commit + '</a>', <add> jobName: 'jQ...
1
Javascript
Javascript
fix typo at i18n generation code
eb4afd45f77d7d67744e01ce63a831c13c2b22e8
<ide><path>i18n/src/parser.js <ide> function parsePattern(pattern) { <ide> var p = { <ide> minInt: 1, <ide> minFrac: 0, <del> macFrac: 0, <add> maxFrac: 0, <ide> posPre: '', <ide> posSuf: '', <ide> negPre: '',
1
Javascript
Javascript
remove warning comment about `createhtmldocument`
3bfb687de395b3b1dca75539427e54a223541c93
<ide><path>src/test/getTestDocument.js <ide> * @providesModule getTestDocument <ide> */ <ide> <del>/** <del> * We need to work around the fact that we have two different <del> * test implementations: once that breaks if we clobber document <del> * (open-source) and one that doesn't support createHTMLDocument() <del>...
1
Python
Python
add benchmarks for fp16 umath functions
6070491623528a648deb067fc5dce709de3631d5
<ide><path>benchmarks/benchmarks/bench_ufunc_strides.py <ide> <ide> stride = [1, 2, 4] <ide> stride_out = [1, 2, 4] <del>dtype = ['f', 'd'] <add>dtype = ['e', 'f', 'd'] <ide> <ide> class Unary(Benchmark): <ide> params = [UNARY_OBJECT_UFUNCS, stride, stride_out, dtype]
1
Python
Python
add names to keras application models
9f33f8af5f678a24e1585fdde893f1d7041640d4
<ide><path>keras/applications/inception_v3.py <ide> def InceptionV3(include_top=True, weights='imagenet', <ide> else: <ide> inputs = img_input <ide> # Create model. <del> model = Model(inputs, x) <add> model = Model(inputs, x, name='inception_v3') <ide> <ide> # load weights <ide> if weigh...
6
Python
Python
improve add_dag_code_table migration
88e756e54c8d38fecb3a0d2b0b0dd4f9562b37b6
<ide><path>airflow/migrations/versions/952da73b5eff_add_dag_code_table.py <ide> <ide> # revision identifiers, used by Alembic. <ide> from airflow.models.dagcode import DagCode <del>from airflow.models.serialized_dag import SerializedDagModel <ide> <ide> revision = '952da73b5eff' <ide> down_revision = '852ae6c715af' <...
1
Javascript
Javascript
fix sticky headers when rerendering
0518a0ba12e7cafc8228be0455403cc23b055a79
<ide><path>Libraries/Components/ScrollView/ScrollView.js <ide> const ScrollView = React.createClass({ <ide> }, <ide> <ide> _updateAnimatedNodeAttachment: function() { <add> if (this._scrollAnimatedValueAttachment) { <add> this._scrollAnimatedValueAttachment.detach(); <add> } <ide> if (this.props.sti...
1
PHP
PHP
allow both bare string and _path key
5c1560ad5202faa1f7300344353c87638e5203d0
<ide><path>src/Routing/Router.php <ide> public static function url($url = null, $full = false): string <ide> return $url; <ide> } <ide> <del> if (ctype_alnum($url[0]) && strpos($url, '::') > 0) { <del> $url = static::parseRoutePath($url) + ['plugin' => false, 'pref...
1
Text
Text
fix typo and adjust examples
179a6f6bc8128ad008c7c6dccc2450f236324080
<ide><path>client/src/pages/guide/english/javascript/popup-boxes/index.md <ide> There are three different kinds of popup methods used in JavaScript: <a href='ht <ide> The <a href='https://developer.mozilla.org/en-US/docs/Web/API/Window/alert' target='_blank' rel='nofollow'>alert method</a> displays messages that don't ...
1
Javascript
Javascript
fix missing documentation methods
3d1c1e6403b8c8fcf32ab58fd8fc3076ebaf8acb
<ide><path>pages/lib/collectMemberGroups.js <ide> function collectMemberGroups(interfaceDef, options) { <ide> }); <ide> <ide> def.extends && def.extends.forEach(e => { <del> var superModule = defs.Immutable.module[e.name]; <add> var superModule = defs.Immutable; <add> e.name.split('.').forEach(p...
1
Python
Python
apply `repr` fixer
011f8a20044a3982b2441cb53876e9689a3f6d0c
<ide><path>numpy/_import_tools.py <ide> class PackageLoaderDebug(PackageLoader): <ide> def _execcmd(self,cmdstr): <ide> """ Execute command in parent_frame.""" <ide> frame = self.parent_frame <del> print('Executing',`cmdstr`,'...', end=' ') <add> print('Executing',repr(cmdstr),'...', e...
22
PHP
PHP
add support for tinyint/smallint to mysql schema
c77e646c623105d8e94204c93ec480c1c68f561e
<ide><path>src/Database/Schema/MysqlSchema.php <ide> protected function _convertColumn($column) <ide> if (strpos($col, 'bigint') !== false || $col === 'bigint') { <ide> return ['type' => 'biginteger', 'length' => $length, 'unsigned' => $unsigned]; <ide> } <add> if ($col === 'tinyint')...
3
Python
Python
fix minor typos in numpy/core/fromnumeric.py
0d749ad8dd9468a44ef1e6ed67f22eab03646d53
<ide><path>numpy/core/fromnumeric.py <ide> def reshape(a, newshape, order='C'): <ide> Notes <ide> ----- <ide> It is not always possible to change the shape of an array without <del> copying the data. If you want an error to be raise if the data is copied, <add> copying the data. If you want an error t...
1
Python
Python
fix typo and grammar errors
59353708cdead64da92d29d6f38b970d7a8e0586
<ide><path>official/core/base_task.py <ide> def logging_dir(self) -> str: <ide> def initialize(self, model: tf.keras.Model): <ide> """A callback function used as CheckpointManager's init_fn. <ide> <del> This function will be called when no checkpoint found for the model. <add> This function will be called ...
1
Python
Python
add another test for ssl stuff
3ef5655840334aededf70ffb5d44f754ba41459f
<ide><path>test/test_httplib_ssl.py <ide> import unittest <ide> import os.path <ide> <add>import mock <add> <ide> import libcloud.security <ide> from libcloud.httplib_ssl import LibcloudHTTPSConnection <ide> <ide> class TestHttpLibSSLTests(unittest.TestCase): <ide> def setUp(self): <ide> self.httplib_obje...
1
Javascript
Javascript
add htmlbars component hook
549416bf59908c3844ace759478aca943bbe9496
<ide><path>packages/ember-htmlbars/lib/hooks.js <add>import Ember from "ember-metal/core"; <ide> import { lookupHelper } from "ember-htmlbars/system/lookup-helper"; <ide> import { sanitizeOptionsForHelper } from "ember-htmlbars/system/sanitize-for-helper"; <ide> <ide> export function content(morph, path, view, params,...
3
Text
Text
add question marks
afeb4768189d5e303af53c6db060deb78a5fb25c
<ide><path>docs/i18n-languages/spanish/README.md <ide> Nuestra comunidad además cuenta con: <ide> <ide> ### [Unite a nuestra comunidad aquí](https://www.freecodecamp.org/signin). <ide> <del>### Encontraste un bug? <add>### Informar bugs y problemas <ide> <del>Si piensas que encontraste un bug, primero lee [How to Re...
1
Ruby
Ruby
drop object allocation during routes setup
559e7f94506ac3c3e8553f9510f43923e7c804da
<ide><path>actionpack/lib/action_dispatch/journey/nodes/node.rb <ide> def initialize(left) <ide> end <ide> <ide> def each(&block) <del> Visitors::Each.new(block).accept(self) <add> Visitors::Each::INSTANCE.accept(self, block) <ide> end <ide> <ide> def to_s <del> ...
2
Python
Python
avoid deadlock when rescheduling task
6d110b565a505505351d1ff19592626fb24e4516
<ide><path>airflow/models/taskinstance.py <ide> from airflow.utils.platform import getuser <ide> from airflow.utils.retries import run_with_db_retries <ide> from airflow.utils.session import NEW_SESSION, create_session, provide_session <del>from airflow.utils.sqlalchemy import ExtendedJSON, UtcDateTime <add>from airflo...
1
Javascript
Javascript
fix cancellation error on build master.
c282e7ea8e5f714bfc19127c71edd4a6711534d1
<ide><path>test/specs/instance.spec.js <ide> describe('instance', function () { <ide> }); <ide> }); <ide> <del> it('should make an http request with url instead of baseURL', function () { <add> it('should make an http request with url instead of baseURL', function (done) { <ide> var instance = axios.create...
1
Ruby
Ruby
fix failure to retain value of allow_concurrency
37b0b36918f14519b28326057bba38ca6fcfbd3b
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb <ide> def set_connection(spec) #:nodoc: <ide> if spec.kind_of?(ActiveRecord::ConnectionAdapters::AbstractAdapter) <ide> active_connections[active_connection_name] = spec <ide> elsif spec.kind_of?(ActiveRe...
2
PHP
PHP
add test for carbon deserialization
0466d4aadfa8268db4fc8fd97e18b36247769192
<ide><path>tests/Support/SupportCarbonTest.php <ide> public function testSetStateReturnsCorrectType() <ide> <ide> $this->assertInstanceOf(Carbon::class, $carbon); <ide> } <add> <add> public function testDeserializationOccursCorrectly() <add> { <add> $carbon = new Carbon('2017-06-27 13:14:15.00...
1
Javascript
Javascript
add cache expire time to test server
74926995431cf3f0204fb8385d0b1fa45294d84a
<ide><path>test/test.js <ide> function startServer() { <ide> server.host = host; <ide> server.port = options.port; <ide> server.root = '..'; <add> server.cacheExpirationTime = 3600; <ide> server.start(); <ide> } <ide> <ide><path>test/webserver.js <ide> function WebServer() { <ide> this.port = 8000; <ide> ...
2
Java
Java
use andexpectall() in example in mockmvc javadoc
38f94799f4bd53b68a1409b02152b1d960e1f838
<ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/MockMvc.java <ide> * MockMvc mockMvc = webAppContextSetup(wac).build(); <ide> * <ide> * mockMvc.perform(get("/form")) <del> * .andExpect(status().isOk()) <del> * .andExpect(content().contentType("text/html")) <del> * .andExpect(for...
1
Javascript
Javascript
test strict mode
e83e9b8c233e465e05850f26813c943efce96f83
<ide><path>lib/FunctionModuleTemplatePlugin.js <ide> FunctionModuleTemplatePlugin.prototype.apply = function(moduleTemplate) { <ide> defaultArguments.push("__webpack_require__"); <ide> } <ide> source.add("/***/ function(" + defaultArguments.concat(module.arguments || []).join(", ") + ") {\n\n"); <del> if(module...
5
Java
Java
add missing package-info
c991aa9a78fc6a8cab6714f42e2ec30d7329344a
<ide><path>spring-core/src/main/java/org/springframework/aot/package-info.java <add>/** <add> * Core package for Spring AOT infrastructure. <add> */ <add>@NonNullApi <add>@NonNullFields <add>package org.springframework.aot; <add> <add>import org.springframework.lang.NonNullApi; <add>import org.springframework.lang.NonN...
1
PHP
PHP
fix additional failing tests
a830750838c5b8328587974a98bab77560e61742
<ide><path>lib/Cake/Test/TestCase/Network/Email/SmtpTransportTest.php <ide> public function testRcpt() { <ide> * @return void <ide> */ <ide> public function testRcptWithReturnPath() { <del> $email = new CakeEmail(); <add> $email = new Email(); <ide> $email->from('noreply@cakephp.org', 'CakePHP Test'); <ide> $e...
2
PHP
PHP
fix typo in validator class comment
808543844d473bd63a252fad142408d9ec4bb290
<ide><path>system/validator.php <ide> protected function has_rule($attribute, $rules) <ide> } <ide> <ide> /** <del> * Extrac the rule name and parameters from a rule. <add> * Extract the rule name and parameters from a rule. <ide> * <ide> * @param string $rule <ide> * @return array
1
Python
Python
remove hack by only importing when configured
5881436bea688ee49175192452dec18fad4ba9b2
<ide><path>airflow/executors/__init__.py <ide> from airflow.executors.local_executor import LocalExecutor <ide> from airflow.executors.sequential_executor import SequentialExecutor <ide> <del># TODO Fix this emergency fix <del>try: <del> from airflow.executors.celery_executor import CeleryExecutor <del>except: <del...
1
Javascript
Javascript
remove misleading comment
f065c87bcf65c3ffa50980bba5562ed7159b86db
<ide><path>lib/events.js <ide> EventEmitter.prototype.emit = function() { <ide> } <ide> }; <ide> <del>// EventEmitter is defined in src/node_events.cc <del>// EventEmitter.prototype.emit() is also defined there. <ide> EventEmitter.prototype.addListener = function(type, listener) { <ide> if ('function' !== typeof l...
1
Javascript
Javascript
fix small typo in the help text
b6719b247d3b650fc46ed65d9e62af9a0dd6afa3
<ide><path>Libraries/CustomComponents/Navigator/Navigator.js <ide> var Navigator = React.createClass({ <ide> * (route, routeStack) => Navigator.SceneConfigs.FloatFromRight <ide> * ``` <ide> * <del> * Available scene configutation options are: <add> * Available scene configuration options are: <id...
1
Text
Text
add translation kr/threejs-voxel-geometry.md
d30d88526bb8c4017084e473d2a125225590bc8e
<ide><path>threejs/lessons/kr/threejs-voxel-geometry.md <add>Title: Three.js 복셀 Geometry <add>Description: 마인크래프트 같은 복셀 geometry를 만드는 법을 알아봅니다 <add>TOC: 복셀 Geometry(마인크래프트) 만들기 <add> <add>※ [복셀](https://ko.wikipedia.org/wiki/%EB%B3%B5%EC%85%80): Voxel, 볼륨(volume, 부피)과 픽셀(pixel)의 합성어로, 마인크래프트의 블록처럼 부피가 있는 픽셀을 말합니다. 역주. ...
1
Javascript
Javascript
fix one warning
4bb58e59f70ef41da3bf50aa93ee771d23c4bed1
<ide><path>Examples/UIExplorer/NavigatorIOSColorsExample.js <ide> var NavigatorIOSColors = React.createClass({ <ide> tintColor="#FFFFFF" <ide> barTintColor="#183E63" <ide> titleTextColor="#FFFFFF" <del> translucent="true" <add> translucent={true} <ide> /> <ide> ); <ide> ...
1