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
remove 'warning' module from the js scheduler
0154a79fedef38a824a837c535bc853013dd4588
<ide><path>packages/react-scheduler/src/ReactScheduler.js <ide> type CallbackConfigType = {| <ide> export type CallbackIdType = CallbackConfigType; <ide> <ide> import {canUseDOM} from 'shared/ExecutionEnvironment'; <del>import warningWithoutStack from 'shared/warningWithoutStack'; <ide> <ide> // We capture a local re...
1
PHP
PHP
set headers if available
a5ceed11eb4ccaa53e3771140583ace7c2a5df08
<ide><path>lib/Cake/Network/Http/Client.php <ide> protected function _createRequest($method, $url, $data, $options) { <ide> $request->method($method) <ide> ->url($url) <ide> ->content($data); <add> if (isset($options['headers'])) { <add> $request->header($options['headers']); <add> } <ide> return $request...
1
Python
Python
fix tf doc bug
9dd054fba29271739c164157811d6cbf2f0d4866
<ide><path>src/transformers/models/bert/modeling_tf_bert.py <ide> def call( <ide> **kwargs, <ide> ) -> Union[TFBertForPreTrainingOutput, Tuple[tf.Tensor]]: <ide> r""" <add> labels (:obj:`torch.LongTensor` of shape ``(batch_size, sequence_length)``, `optional`): <add> Labels for com...
1
Python
Python
fix dtype in radnomly initialized head
344e2664d450eaa9167ce31f7d1fc0f0fe3b10af
<ide><path>src/transformers/modeling_utils.py <ide> def _fix_key(key): <ide> param = model_state_dict[key] <ide> if param.device == torch.device("meta"): <ide> if not load_in_8bit: <del> set_module_tensor_to_device(model, key, "cpu", torch.empty...
1
Javascript
Javascript
fix devtool spelling in test
48e496ce43cf81a6cdbdbc4dcef18baad5399d5d
<ide><path>test/TestCasesMinimizedSourceMap.test.js <ide> describe("TestCases", () => { <ide> describeCases({ <ide> name: "minimized-source-map", <ide> mode: "production", <del> devtool: "cheap-module-eval-source-map", <add> devtool: "eval-cheap-module-source-map", <ide> minimize: true <ide> }); <ide> });
1
Text
Text
add 0.70.6 changelog
c8c901513f0e3068c75e1450d918a3fc58f0174b
<ide><path>CHANGELOG.md <ide> # Changelog <ide> <add>## v0.70.6 <add> <add>### Fixed <add> <add>- Fixed regression: @jest/create-cache-key-function dependency was inadvertedly bumped to 29.x. We are bringing it back to 27.0.1. ([fb0e88beb9](https://github.com/facebook/react-native/commit/fb0e88beb9dc443abed3886e459e7a...
1
Text
Text
add note regarding windows volume limitations
020ec88542e88bb561c30a1ec984d0a17c74b7f9
<ide><path>docs/reference/builder.md <ide> This Dockerfile results in an image that causes `docker run`, to <ide> create a new mount point at `/myvol` and copy the `greeting` file <ide> into the newly created volume. <ide> <add>> **Note**: <add>> When using Windows-based containers, the destination of a volume inside...
1
Text
Text
document the remote driver protocol
65519600f003da75ff49ecd46b23e097fed0c78b
<ide><path>libnetwork/docs/remote.md <ide> Remote Drivers <ide> ============== <ide> <del>The remote driver package provides the integration point for dynamically-registered drivers. <add>The `drivers.remote` package provides the integration point for dynamically-registered drivers. Unlike the other driver packages, i...
1
PHP
PHP
add flashhelper tests
2abaf3dd8ed0e5ba40358a021578f5832ea93b3b
<ide><path>tests/TestCase/View/Helper/FlashHelperTest.php <add><?php <add>/** <add> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and...
1
Python
Python
set version to v3.0.0.dev9
58c8f731bd7614027d537f984e799d47cdacad1f
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy" <del>__version__ = "3.0.0" <add>__version__ = "3.0.0.dev9" <ide> __release__ = True <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/spacy-mod...
1
Text
Text
update pr template clarifying autoclosing issues
edc89b98a9412ce96e968d526f6d22c671050ccf
<ide><path>.github/PULL_REQUEST_TEMPLATE.md <ide> <ide> #### Type of Change <ide> <!-- What type of change does your code introduce? Put an `x` in the box that applies. --> <del>- [ ] Bug fix (non-breaking change which fixes an issue) <del>- [ ] New feature (non-breaking change which adds functionality) <del>- [ ] Bre...
1
PHP
PHP
remove unused static property
34f0c0102449e40f0d0c243190f0cccc1c233446
<ide><path>Cake/ORM/Table.php <ide> */ <ide> class Table { <ide> <del>/** <del> * A list of all table instances that has been built using the factory <del> * method. Instances are indexed by alias <del> * <del> * @var array <del> */ <del> protected static $_instances = []; <del> <ide> /** <ide> * Name of the table a...
1
Javascript
Javascript
add more tests for inherited listeners
6a877c80255294821d07c47231c65dc8b336f8cd
<ide><path>packages/@ember/-internals/meta/tests/listeners_test.js <ide> moduleFor( <ide> } <ide> <ide> ['@test inheritance'](assert) { <add> let matching; <ide> let target = {}; <ide> let parent = {}; <ide> let parentMeta = meta(parent); <ide> parentMeta.addToListeners('hello', ta...
1
PHP
PHP
show model type in missingmodelexception message
90586cd6325912cf4865b2598e11f357a78e481b
<ide><path>src/Model/Error/MissingModelException.php <ide> */ <ide> class MissingModelException extends Exception { <ide> <del> protected $_messageTemplate = 'Model class %s could not be found.'; <add> protected $_messageTemplate = 'Model class "%s" of type "%s" could not be found.'; <ide> <ide> } <ide><path>src/Mod...
3
Java
Java
reimplement the amb operator
b8a3cad8b684177be06e65a0bad7850d8e7e9382
<ide><path>rxjava-core/src/main/java/rx/operators/OperationAmb.java <ide> import java.util.concurrent.atomic.AtomicInteger; <ide> <ide> import rx.Observable; <del>import rx.Observable.OnSubscribeFunc; <add>import rx.Observable.OnSubscribe; <ide> import rx.Observer; <del>import rx.Subscription; <del>import rx.subscript...
2
Java
Java
provide more control over factory failure handling
12244b2e51bfde11209211c3ee56eef905cd96a7
<ide><path>spring-core/src/main/java/org/springframework/core/io/support/SpringFactoriesLoader.java <ide> import java.util.List; <ide> import java.util.Map; <ide> import java.util.Properties; <add>import java.util.function.BiConsumer; <add>import java.util.function.BiFunction; <ide> import java.util.function.Function; ...
2
Javascript
Javascript
add row style for multi-column lists
9e2d3c5d0dcd4b681b8a154678f1cf42d10f30dc
<ide><path>Libraries/Experimental/FlatList.js <ide> const VirtualizedList = require('VirtualizedList'); <ide> <ide> const invariant = require('invariant'); <ide> <add>import type {StyleObj} from 'StyleSheetTypes'; <ide> import type {Viewable} from 'ViewabilityHelper'; <ide> <ide> type Item = any; <ide> type Optional...
1
Ruby
Ruby
return templatepaths from all_template_paths
ef2cb320903c3e93e9d2625fb7da597eb135ce87
<ide><path>actionview/lib/action_view/dependency_tracker.rb <ide> def resolve_directories(wildcard_dependencies) <ide> return [] unless @view_paths <ide> return [] if wildcard_dependencies.empty? <ide> <del> # Remove trailing "*" <del> prefixes = wildcard_dependencies.map { |query...
4
Ruby
Ruby
use proper casting
501e979e186a3861581aa54f9930421223688d01
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb <ide> def can_perform_case_insensitive_comparison_for?(column) <ide> SELECT exists( <ide> SELECT * FROM pg_proc <ide> INNER JOIN pg_cast <del> ON casttarget::text::oidvector...
1
Mixed
Ruby
add option to verify origin header in csrf checks
85783534fcf1baefa5b502a2bfee235ae6d612d7
<ide><path>actionpack/lib/action_controller/metal/request_forgery_protection.rb <ide> module RequestForgeryProtection <ide> config_accessor :log_warning_on_csrf_failure <ide> self.log_warning_on_csrf_failure = true <ide> <add> # Controls whether the Origin header is checked in addition to the CSRF tok...
5
Python
Python
implement new language methods and pipeline api
212c8f071180c9ce134a74b85603e48c14199595
<ide><path>spacy/language.py <ide> def create_tokenizer(cls, nlp=None): <ide> prefix_search=prefix_search, suffix_search=suffix_search, <ide> infix_finditer=infix_finditer, token_match=token_match) <ide> <del> @classmethod <del> def create_tagger(cls, nlp=None, *...
2
PHP
PHP
apply fixes from styleci
d1c3faa3e70a5862287a10846dee5aedc13130f8
<ide><path>src/Illuminate/Foundation/Console/DocsCommand.php <ide> class DocsCommand extends Command <ide> protected $help = 'If you would like to perform a content search against the documention, you may call: <fg=green>php artisan docs -- </><fg=green;options=bold;>search query here</>'; <ide> <ide> /** <del...
1
Java
Java
fix checkstyle violations
282a4ad2f6c5fa5ebd3ca0c4a9fda8be3611e02e
<ide><path>spring-core/src/main/java/org/springframework/util/unit/DataSize.java <ide> * @author Stephane Nicoll <ide> * @since 5.1 <ide> */ <del>public class DataSize implements Comparable<DataSize> { <add>public final class DataSize implements Comparable<DataSize> { <ide> <ide> /** <ide> * The pattern for pars...
2
PHP
PHP
remove time echo from index.php. whoops!
b796ef1bd7ac0448edb831cd020a85d193fc150f
<ide><path>public/index.php <ide> * @link http://laravel.com <ide> */ <ide> <del>$time = microtime(true); <del> <ide> // -------------------------------------------------------------- <ide> // Define the framework paths. <ide> // -------------------------------------------------------------- <ide> // -----------...
1
PHP
PHP
add version shell and --version
5ce3e769c15e7257f7e77cd5be30d151710424db
<ide><path>src/Console/CommandRunner.php <ide> use Cake\Console\Exception\StopException; <ide> use Cake\Console\Shell; <ide> use Cake\Http\BaseApplication; <add>use Cake\Shell\VersionShell; <ide> use RuntimeException; <ide> <ide> /** <ide> class CommandRunner <ide> */ <ide> protected $root; <ide> <add> /*...
3
Ruby
Ruby
dup the env hash on header#env
c0c726849bf697f6c76b86e704ca51b04e252341
<ide><path>actionpack/lib/action_dispatch/http/headers.rb <ide> def merge!(headers_or_env) <ide> end <ide> end <ide> <del> def env; @req.env; end <add> def env; @req.env.dup; end <ide> <ide> private <ide>
1
Javascript
Javascript
add spec for devloadingview
35cf427365b8f58f7fec65a18c7cf9727ff54876
<ide><path>Libraries/Utilities/HMRLoadingView.ios.js <ide> 'use strict'; <ide> <ide> const processColor = require('../StyleSheet/processColor'); <del>const {DevLoadingView} = require('../BatchedBridge/NativeModules'); <add>import NativeDevLoadingView from './NativeDevLoadingView'; <ide> <ide> class HMRLoadingView { <...
2
PHP
PHP
fix typo in class alias
5e6983734a1232767110ad1b46a1c92532a3d4da
<ide><path>config/bootstrap.php <ide> class_alias('Cake\Network\Exception\SocketException', 'Cake\Error\SocketExceptio <ide> class_alias('Cake\Network\Exception\UnauthorizedException', 'Cake\Error\UnauthorizedException'); <ide> class_alias('Cake\Filesystem\File', 'Cake\Utility\File'); <ide> class_alias('Cake\Filesystem...
1
Python
Python
remove duplicate key from python dictionary
736a62f824d9062b52983633528e58c445d8cc56
<ide><path>airflow/providers/apache/hive/hooks/hive.py <ide> def max_partition( <ide> :type filter_map: map <ide> <ide> >>> hh = HiveMetastoreHook() <del> >>> filter_map = {'ds': '2015-01-01', 'ds': '2014-01-01'} <add> >>> filter_map = {'ds': '2015-01-01'} <ide> >>> t = 'static_ba...
1
Ruby
Ruby
use the new resolver api in dbconsole
f6e363309a6cffacd6087f3a901c562265c3b2ed
<ide><path>railties/lib/rails/commands/dbconsole.rb <ide> def config <ide> @config ||= begin <ide> require APP_PATH <ide> ActiveRecord::ConnectionAdapters::ConnectionSpecification::Resolver.new( <del> ENV['DATABASE_URL'], <del> (Rails.application.config.database_configuration || ...
1
Mixed
Text
inspect show right logpath in json-file driver
acf025ad1b806fd9b5eb3358a8e1d75c6aae890d
<ide><path>daemon/container.go <ide> func (container *Container) startLogging() error { <ide> if err != nil { <ide> return err <ide> } <add> container.LogPath = pth <ide> <ide> dl, err := jsonfilelog.New(pth) <ide> if err != nil { <ide><path>docs/sources/reference/api/docker_remote_api_v1.18.md <ide> Retur...
3
Ruby
Ruby
add audit for scons
758a60155538820e11bea5c473c2171cd4df183f
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_patches <ide> end <ide> <ide> def audit_text <add> if text =~ /system\s+['"]scons/ <add> problem "use \"scons, *args\" instead of \"system 'scons', *args\"" <add> end <add> <ide> if text =~ /system\s+['"]xcodebuild/ && text !~ /SYMROOT=/ <ide>...
1
Ruby
Ruby
remove the setter from `scope`
5e81e6ca31aa0d2a38f8db5c8fe9bcbce98d9689
<ide><path>actionpack/lib/action_dispatch/routing/mapper.rb <ide> def fetch(key, &block) <ide> def [](key) <ide> @hash.fetch(key) { @parent[key] } <ide> end <del> <del> def []=(k,v) <del> @hash[k] = v <del> end <ide> end <ide> <ide> def initialize(set) #:nod...
1
Javascript
Javascript
fix a typo in current time display component.
4658c7bad67dc0556b636aed7962d2d85f308fe8
<ide><path>src/js/control-bar/time-controls/current-time-display.js <ide> class CurrentTimeDisplay extends TimeDisplay { <ide> if (!this.player_.duration()) { <ide> return; <ide> } <del> this.updateFormattedTime_(this.player.duration()); <add> this.updateFormattedTime_(this.player_.duration()); <ide...
1
Ruby
Ruby
fix typo in cleaner.rb
4f8489faa109d03fbf4b4529e295bd9e7fd48920
<ide><path>Library/Homebrew/cleaner.rb <ide> def observe_file_removal(path) <ide> end <ide> <ide> # Removes any empty directories in the formula's prefix subtree <del> # Keeps any empty directions projected by skip_clean <add> # Keeps any empty directions protected by skip_clean <ide> # Removes any unresolved ...
1
Text
Text
fix dead link cli.md
b1dc0db56ac9a27d51ab2a3684ed398d7b80a80c
<ide><path>docs/sources/reference/commandline/cli.md <ide> To run the daemon with debug output, use `docker -d -D`. <ide> <ide> ### Daemon socket option <ide> <del>The Docker daemon can listen for [Docker Remote API](reference/api/docker_remote_api/) <add>The Docker daemon can listen for [Docker Remote API](/referenc...
1
Ruby
Ruby
freeze the middleware stack after it's built
42f6e9fb38101c0fe199d5425bd71965f9a6dfc9
<ide><path>actionpack/lib/action_dispatch/middleware/stack.rb <ide> def use(*args, &block) <ide> def build(app = nil, &block) <ide> app ||= block <ide> raise "MiddlewareStack#build requires an app" unless app <del> middlewares.reverse.inject(app) { |a, e| e.build(a) } <add> middlewares.freeze....
3
Go
Go
fix some tests
a08ffa0e934e5f8b95855cc5bd0cc2a6b3cf4091
<ide><path>integration-cli/docker_cli_daemon_plugins_test.go <ide> import ( <ide> "github.com/go-check/check" <ide> ) <ide> <del>var pluginName = "tiborvass/no-remove" <del> <ide> // TestDaemonRestartWithPluginEnabled tests state restore for an enabled plugin <ide> func (s *DockerDaemonSuite) TestDaemonRestartWithPlu...
4
Python
Python
support all unix wildcards in s3keysensor
12133861ecefd28f1d569cf2d190c2f26f6fd2fb
<ide><path>airflow/providers/amazon/aws/hooks/s3.py <ide> def get_wildcard_key( <ide> :return: the key object from the bucket or None if none has been found. <ide> :rtype: boto3.s3.Object <ide> """ <del> prefix = re.split(r'[*]', wildcard_key, 1)[0] <add> prefix = re.split(r'[\[\*\...
4
Text
Text
page_size addition in 3.1
c90cf828aeda3ebb1a599064ee6c39c03eb04242
<ide><path>docs/api-guide/settings.md <ide> See the pagination documentation for further guidance on [setting the pagination <ide> <ide> --- <ide> <del>The name of a query parameter, which can be used by the client to override the default page size to use for pagination. If set to `None`, clients may not override th...
1
Mixed
Javascript
improve error messages when nesting view in text
963e6e9d36bb8f88caaeccc1497fd7b68c26e2a6
<ide><path>Libraries/Components/View/View.js <ide> const ReactNativeViewAttributes = require('ReactNativeViewAttributes'); <ide> const StyleSheetPropType = require('StyleSheetPropType'); <ide> const ViewStylePropTypes = require('ViewStylePropTypes'); <ide> <add>const invariant = require('invariant'); <add> <ide> var T...
2
Text
Text
explain custom configuration debugging gotcha
b1892e609937d1107f729822423330cc70dfc0d2
<ide><path>docs/EmbeddedAppIOS.md <ide> Now compile and run your app. You shall now see your React Native app running in <ide> <ide> ![Example](img/EmbeddedAppExample.png) <ide> <del>Live reload and all of the debugging tools will work from the simulator (make sure that DEBUG=1 is set under Build Settings -> Preproce...
1
Javascript
Javascript
fix jshint warning
3cf1cfa3de538f13f64f31e5071a4fb40a8482ad
<ide><path>src/controllers/controller.polarArea.js <ide> module.exports = function(Chart) { <ide> updateElement: function(arc, index, reset) { <ide> var me = this; <ide> var chart = me.chart; <del> var chartArea = chart.chartArea; <ide> var dataset = me.getDataset(); <ide> var opts = chart.options; <ide...
1
Text
Text
start coffeescript styleguide
095320680f9dbd11183351a4f81f7c451cb48ada
<ide><path>CONTRIBUTING.md <ide> in the proper package's repository. <ide> <ide> ## Pull Requests <ide> * Include screenshots and animated GIFs whenever possible. <del> * Follow the [JavaScript](https://github.com/styleguide/javascript) and <del> [CSS](https://github.com/styleguide/css) styleguides <add> * Foll...
1
Text
Text
clarify timing of socket.connecting
ccc06a3c3291546c777da74cd3bdff903b33c607
<ide><path>doc/api/net.md <ide> added: v6.1.0 <ide> --> <ide> <ide> If `true`, <add>[`socket.connect(options[, connectListener])`][`socket.connect(options)`] was <add>called and has not yet finished. It will stay `true` until the socket becomes <add>connected, then it is set to `false` and the `'connect'` event is emi...
1
Python
Python
add default 'aws_conn_id' to sagemaker operators
5d1e6ff19ab4a63259a2c5aed02b601ca055a289
<ide><path>airflow/providers/amazon/aws/operators/sagemaker.py <ide> if TYPE_CHECKING: <ide> from airflow.utils.context import Context <ide> <add>DEFAULT_CONN_ID = 'aws_default' <add>CHECK_INTERVAL_SECOND = 30 <add> <ide> <ide> class SageMakerBaseOperator(BaseOperator): <ide> """This is the base operator for ...
2
Javascript
Javascript
fix bug in io benchmark
6e5217d3208f6792a500fc408b4dcef0a17c5412
<ide><path>benchmark/io.js <ide> function readtest(size, bsize) { <ide> <ide> function wt(tsize, bsize, done) { <ide> var start = Date.now(); <del> s = writetest(tsize, bsizes[0]); <add> s = writetest(tsize, bsize); <ide> s.addListener('close', function() { <ide> var end = Date.now(); <ide> var diff = en...
1
Python
Python
add a test for ndarray.diagonal()
d403fed2423caec4149937fe48781ac68b21fddb
<ide><path>numpy/core/tests/test_multiarray.py <ide> def test_dot(self): <ide> assert_equal(np.dot(a, b), a.dot(b)) <ide> assert_equal(np.dot(np.dot(a, b), c), a.dot(b).dot(c)) <ide> <add> def test_diagonal(self): <add> a = np.arange(12).reshape((3, 4)) <add> assert_equal(a.diagonal(),...
1
Javascript
Javascript
change authentication method
62bab604c8472a4c31acf7233545d6bd05a60ccf
<ide><path>script/vsts/lib/release-notes.js <ide> const childProcess = require('child_process'); <ide> module.exports.getRelease = async function(releaseVersion, githubToken) { <ide> if (githubToken) { <ide> octokit.authenticate({ <del> type: 'oauth', <add> type: 'token', <ide> token: githubToken ...
1
PHP
PHP
convert cacheengine to use instanceconfigsuite
27baf04149d22f5b7a4e1213108013ac6c90131b
<ide><path>src/Cache/CacheEngine.php <ide> */ <ide> namespace Cake\Cache; <ide> <add>use Cake\Core\InstanceConfigTrait; <ide> use Cake\Utility\Inflector; <ide> <ide> /** <ide> */ <ide> abstract class CacheEngine { <ide> <del>/** <del> * Runtime config <del> * <del> * This is the config of a particular instance <de...
1
Java
Java
improve documentation of cacheable
3a61930bd08ff85175b356ebf6e7cbed53588a98
<ide><path>spring-context/src/main/java/org/springframework/cache/annotation/Cacheable.java <ide> <ide> /** <ide> * Spring Expression Language (SpEL) expression used for making the method <del> * caching conditional. <add> * caching conditional. If condition is evaluated to {@code true}, result <add> * is cached...
1
Ruby
Ruby
replace test for checking formulae tap
ce7ab823ed5b93ae4588e754c3cc64974c0882f7
<ide><path>Library/Homebrew/test/cmd/info_spec.rb <ide> require "cmd/shared_examples/args_parse" <ide> <ide> describe "brew info" do <del> let(:tarball) do <del> if OS.linux? <del> TEST_FIXTURE_DIR/"tarballs/testball-0.1-linux.tbz" <del> else <del> TEST_FIXTURE_DIR/"tarballs/testball-0.1.tbz" <del> ...
2
Python
Python
remove unittest dependencies in numpy/lib/tests
8eee1b06b330f6ff23fd3604444ba20a8d2d6416
<ide><path>numpy/lib/tests/test__datasource.py <ide> from shutil import rmtree <ide> <ide> from numpy.testing import ( <del> run_module_suite, TestCase, assert_, SkipTest <add> run_module_suite, assert_, assert_equal, assert_raises, SkipTest, <ide> ) <ide> import numpy.lib._datasource as datasource <ide> <i...
17
Text
Text
propose the usual way of styling buttons
6671151e03d3230a2bd40ad6467be03d5f1a4525
<ide><path>guide/english/css/css-buttons/index.md <ide> To animate a button on click use 'button:active': <ide> } <ide> ``` <ide> <add>### Button Links <add> <add>In many cases buttons will have to link to an url. As we can't add an href attribute to the HTML button element without some JavaScript workarounds we need ...
1
Python
Python
support empty arrays in setxor1d and setdiff1d
bdadc1ba29ea2852a31233aa521b59c7e223f31f
<ide><path>numpy/lib/arraysetops.py <ide> def intersect1d_nu( ar1, ar2 ): <ide> def setxor1d( ar1, ar2 ): <ide> """Set exclusive-or of 1D arrays with unique elements.""" <ide> aux = numpy.concatenate((ar1, ar2)) <add> if aux.size == 0: <add> return aux <add> <ide> aux.sort() <ide> flag = e...
1
Javascript
Javascript
add unit test for possible state
e29fbe0e225ed9a76a1f128ede3542f4f3b10bf5
<ide><path>packages/sproutcore-touch/tests/system/gesture_support.js <ide> var set = SC.set; <ide> var get = SC.get; <ide> var application = null; <add>var view; <ide> <ide> function generateTouchEvent(touches) { <ide> <ide> module("Test Gesture Recognizer",{ <ide> <ide> teardown: function() { <ide> applicatio...
1
Javascript
Javascript
fix typo in _resetsubcontrollers
5f43e5bee2ac922240ad4d2c4bd0e218777e784e
<ide><path>packages/ember-runtime/lib/controllers/array_controller.js <ide> Ember.ArrayController = Ember.ArrayProxy.extend(Ember.ControllerMixin, <ide> var subControllers = get(this, '_subControllers'); <ide> <ide> forEach(subControllers, function(subController) { <del> if (subControllers) { subControlle...
1
Python
Python
fix mypy issues in airflow/jobs
9844b910470feac9e524832a3affdc657c340bcd
<ide><path>airflow/jobs/backfill_job.py <ide> from airflow.utils import helpers, timezone <ide> from airflow.utils.configuration import conf as airflow_conf, tmp_configuration_copy <ide> from airflow.utils.session import provide_session <del>from airflow.utils.state import State <add>from airflow.utils.state import Dag...
5
Go
Go
defer creation of trust key file until needed
0eed1f4d8da893d7c91be811197032a064053155
<ide><path>api/client/cli.go <ide> import ( <ide> flag "github.com/docker/docker/pkg/mflag" <ide> "github.com/docker/docker/pkg/term" <ide> "github.com/docker/docker/registry" <del> "github.com/docker/libtrust" <ide> ) <ide> <ide> type DockerCli struct { <ide> type DockerCli struct { <ide> in io.ReadCloser...
6
PHP
PHP
extract method for easier extension/overwriting
0b9fcb35628cf36a7b6bcb4194b64019832702ad
<ide><path>src/Controller/Component/AuthComponent.php <ide> protected function _unauthenticated(Controller $controller) <ide> */ <ide> protected function _loginActionRedirectUrl() <ide> { <del> $urlToRedirectBackTo = $this->request->here(false); <del> if (!$this->request->is('get')) { <del> ...
1
Ruby
Ruby
fix autocrlf warning (again)
77665053488c37c3ca02a145e77a799891e57fac
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_git_newline_settings <ide> return unless which "git" <ide> <ide> autocrlf = `git config --get core.autocrlf`.chomp <del> safecrlf = `git config --get core.safecrlf`.chomp <ide> <del> if !autocrlf.empty? && autocrlf != 'false' then <<-EOS.undent <add> if...
1
Java
Java
use xcompletable in completable and single
7a4d6330da7db2b954062b5b5fc042433db9c06a
<ide><path>src/main/java/io/reactivex/Completable.java <ide> public interface CompletableOperator extends Function<CompletableSubscriber, Com <ide> * Convenience interface and callback used by the compose operator to turn a Completable into another <ide> * Completable fluently. <ide> */ <del> public i...
14
Mixed
Python
upgrade pending deprecations to deprecations
1f996128458570a909d13f15c3d739fb12111984
<ide><path>docs/topics/3.1-announcement.md <ide> Thanks go to the latest member of our maintenance team, [José Padilla](https:// <ide> <ide> --- <ide> <add>## Deprecations <add> <add>The `request.DATA`, `request.FILES` and `request.QUERY_PARAMS` attributes move from pending deprecation, to deprecated. Use `request.da...
4
PHP
PHP
return a new instance from sortby and sortbydesc
e57cb0d968841bd67bf2b8eb589d4479de924ee1
<ide><path>src/Illuminate/Support/Collection.php <ide> public function sort(callable $callback) <ide> * @param callable|string $callback <ide> * @param int $options <ide> * @param bool $descending <del> * @return $this <add> * @return static <ide> */ <ide> public function sortBy($callback, $options = ...
2
Javascript
Javascript
update deprecation wording to be less aggressive
2be0583ed37ffc22fefe61292a12daee083e6ed9
<ide><path>src/isomorphic/React.js <ide> if (__DEV__) { <ide> warning( <ide> warnedForCreateMixin, <ide> 'React.createMixin is deprecated and should not be used. You ' + <del> 'can use your mixin directly instead.' <add> 'can use this mixin directly instead.' <ide> ); <ide> warnedForCr...
1
Ruby
Ruby
add some documentation for am.mailer_name
58533dc9bd8736c28b5ad8286e57b02f45939621
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> def register_interceptor(interceptor) <ide> Mail.register_interceptor(delivery_interceptor) <ide> end <ide> <add> # Returns the name of current mailer. This method also being used as a path for a view lookup. <add> # If this is an anonymou...
1
PHP
PHP
specify middleware directly
9ecfa9cf8ead645a762f7b42bed8cb035db5f2be
<ide><path>app/Http/Controllers/Auth/AuthController.php <ide> class AuthController extends Controller <ide> * <ide> * @var string <ide> */ <del> protected $redirectTo = '/'; <add> protected $redirectTo = '/home'; <ide> <ide> /** <ide> * Create a new authentication controller instance. <id...
1
Javascript
Javascript
collectionview cleans up emptyview - fixes
8c6064902d1221cc83b5fe5e1f391cf81d46fa48
<ide><path>packages/ember-views/lib/views/collection_view.js <ide> Ember.CollectionView = Ember.ContainerView.extend( <ide> if (content) { content.removeArrayObserver(this); } <ide> <ide> this._super(); <add> <add> if (this._createdEmptyView) { <add> this._createdEmptyView.destroy(); <add> } <ide> ...
1
Javascript
Javascript
fix simple typo, intial -> initial
f22ead10f09b89b33c996adc3cd848cfce7a635e
<ide><path>src/js/player.js <ide> class Player extends Component { <ide> } <ide> } <ide> <del> // update the source to the intial source right away <add> // update the source to the initial source right away <ide> // in some cases this will be empty string <ide> updateSourceCaches(e...
3
Python
Python
use unicode literals in train_ud
22189e60dbf92fe22ad49e296c4e41fc84b71f9d
<ide><path>bin/parser/train_ud.py <add>from __future__ import unicode_literals <ide> import plac <ide> import json <ide> from os import path <ide> import shutil <ide> import os <ide> import random <ide> import io <add>import pathlib <ide> <ide> from spacy.tokens import Doc <ide> from spacy.syntax.nonproj import Pseudo...
1
Javascript
Javascript
fix documentation typo in reactcomponent
419038f84602d75394f9983a899fd2ddf5ab06c5
<ide><path>src/modern/class/ReactComponent.js <ide> ReactComponent.prototype.setState = function(partialState, callback) { <ide> * You may want to call this when you know that some deeper aspect of the <ide> * component's state has changed but `setState` was not called. <ide> * <del> * This will not invoke `shouldUp...
1
Text
Text
add @mhdawson back to the ctc
997a3be3af1f202dc8058ee1072cbd4b4b77895c
<ide><path>README.md <ide> information about the governance of the Node.js project, see <ide> * [fishrock123](https://github.com/fishrock123) - **Jeremiah Senkpiel** &lt;fishrock123@rocketmail.com&gt; <ide> * [indutny](https://github.com/indutny) - **Fedor Indutny** &lt;fedor.indutny@gmail.com&gt; <ide> * [jasnell](htt...
1
Text
Text
suggest open index.html in browser regularly
a9d0135f8474b98924eaa4726766c7a674377f66
<ide><path>docs/docs/tutorial.md <ide> For this tutorial, we'll use prebuilt JavaScript files on a CDN. Open up your fa <ide> </html> <ide> ``` <ide> <del>For the remainder of this tutorial, we'll be writing our JavaScript code in this script tag. <add>For the remainder of this tutorial, we'll be writing our JavaScrip...
1
Javascript
Javascript
remove unnecessary reference
ea7e746d13f7c9173d2b3f3a4b66d1228aeb60c2
<ide><path>packages/ember-runtime/lib/core.js <ide> var errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'n <ide> @constructor <ide> */ <ide> Ember.Error = function() { <del> var tmp = Error.prototype.constructor.apply(this, arguments); <add> var tmp = Error.apply(this, arguments); <ide> <...
1
Python
Python
preserve call/errbacks of replaced tasks
5d72aeedb6329b609469c63998e9335e017bd204
<ide><path>celery/app/task.py <ide> from kombu.exceptions import OperationalError <ide> from kombu.utils.uuid import uuid <ide> <del>from celery import current_app, group, states <add>from celery import current_app, states <ide> from celery._state import _task_stack <del>from celery.canvas import _chain, signature <ad...
6
Javascript
Javascript
remove test repetition
88d7904c0ba66bd2ced87f674d3f6ee098db970c
<ide><path>test/parallel/test-buffer.js <ide> assert.equal(writeTest.toString(), 'nodejs'); <ide> <ide> var asciiString = 'hello world'; <ide> var offset = 100; <del>for (var j = 0; j < 500; j++) { <ide> <del> for (var i = 0; i < asciiString.length; i++) { <del> b[i] = asciiString.charCodeAt(i); <del> } <del> v...
1
Go
Go
fix image pipe with builder copy
4390a3182f9ea4fc1e215917c2c6494d6fc453ac
<ide><path>builder.go <ide> func (builder *Builder) Build(dockerfile io.Reader, stdout io.Writer) (*Image, e <ide> return nil, err <ide> } <ide> fmt.Fprintf(stdout, "===> %s\n", base.ShortId()) <add> <add> image = base <add> <ide> break <ide> default: <ide> fmt.Fprintf(stdout, "Skipping unknown op %...
1
Text
Text
add redirect.action_dispatch to action dispatch
dc6ddbd2b0a95740e32586397acd6b63bbd7ee0f
<ide><path>guides/source/active_support_instrumentation.md <ide> INFO. Additional keys may be added by the caller. <ide> | ------------- | ---------------------- | <ide> | `:middleware` | Name of the middleware | <ide> <add>#### redirect.action_dispatch <add> <add>| Key | Value | <add>| ---------...
1
Java
Java
add clientrequest attributes
74b4c028819c67b90d4d06d352d3083d91d8a3f8
<ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultWebTestClient.java <ide> import org.springframework.web.reactive.function.client.WebClient; <ide> import org.springframework.web.util.UriBuilder; <ide> <del>import static java.nio.charset.StandardCharsets.*; <del>import static org...
9
Javascript
Javascript
watch missing items as files not as directories
31f2e6d1f7e12fb8cadeb098f6aa9b8859e81c3a
<ide><path>lib/node/NodeWatchFileSystem.js <ide> class NodeWatchFileSystem { <ide> ); <ide> }); <ide> <del> this.watcher.watch( <del> cachedFiles.concat(missing), <del> cachedDirs.concat(missing), <del> startTime <del> ); <add> this.watcher.watch(cachedFiles.concat(missing), cachedDirs, startTime); <ide>...
1
Python
Python
convert floatx to ascii
92f66a279a3564420c9b7003f297c2fc12d40a7e
<ide><path>keras/backend/common.py <ide> def set_floatx(floatx): <ide> global _FLOATX <ide> if floatx not in {'float32', 'float64'}: <ide> raise Exception('Unknown floatx type: ' + str(floatx)) <add> if isinstance(floatx, unicode): <add> floatx = floatx.encode('ascii') <ide> _FLOATX = floa...
1
Javascript
Javascript
add ie 11 to the text/html data uri shim
74ee2958129fee1d26129d5b8a00c08148c7e86b
<ide><path>web/compatibility.js <ide> if (typeof PDFJS === 'undefined') { <ide> }; <ide> })(); <ide> <del>// IE9/10 text/html data URI <add>// IE9-11 text/html data URI <ide> (function checkDataURICompatibility() { <del> if (!('documentMode' in document) || <del> document.documentMode !== 9 && document.documen...
1
Text
Text
remove incorrect entry from changelog
60402b924b4b38196a658a023fad945421710457
<ide><path>CHANGELOG.md <ide> https://iojs.org/api/tls.html <ide> <ide> https://iojs.org/api/url.html <ide> <del>- Added support for `path` option in `url.format`, which encompasses `pathname`, `query`, and `search`. <ide> - Improved escaping of certain characters. <ide> - Improved parsing speed. <ide>
1
Ruby
Ruby
fix failing template tests
8e49fa607f539f9cf698ef5296e7d760b7a3f2c7
<ide><path>actionpack/test/template/template_test.rb <ide> def my_buffer <ide> end <ide> end <ide> <del> def new_template(body = "<%= hello %>", details = {format: html}) <add> def new_template(body = "<%= hello %>", details = { format: :html }) <ide> ActionView::Template.new(body, "hello template", detail...
1
Python
Python
fix reference to thinc copy_array util
490b38e6bbfb9d73402a14fba1d77ecac4c55daf
<ide><path>spacy/compat.py <ide> import sys <ide> import ujson <ide> <del>import thinc.neural.util <add>from thinc.neural.util import copy_array <ide> <ide> try: <ide> import cPickle as pickle <ide> CudaStream = CudaStream <ide> cupy = cupy <ide> fix_text = ftfy.fix_text <del>copy_array = thinc.neural.util.copy_a...
1
Mixed
Javascript
move convertnpnprotocols to end-of-life
4d00cd4ce7388893405a833531b56542f206c9e4
<ide><path>benchmark/tls/convertprotocols.js <ide> function main({ n }) { <ide> var m = {}; <ide> // First call dominates results <ide> if (n > 1) { <del> tls.convertNPNProtocols(input, m); <add> tls.convertALPNProtocols(input, m); <ide> m = {}; <ide> } <ide> bench.start(); <ide> for (var i = 0; i...
4
PHP
PHP
fix docblock e.g
8891f6d64e47a9d25070a982f3eb48598a1d3ec9
<ide><path>src/Controller/Controller.php <ide> public function components(?ComponentRegistry $components = null): ComponentRegi <ide> * $this->loadComponent('Authentication.Authentication'); <ide> * ``` <ide> * <del> * Will result in a `Toolbar` property being set. <add> * Will result in a `Authe...
1
Python
Python
ignore cython warnings in init
15b7ecdacdb37b6334e9c0312115ad0fabefb676
<ide><path>numpy/__init__.py <ide> def pkgload(*packages, **options): <ide> __all__.extend(lib.__all__) <ide> __all__.extend(['linalg', 'fft', 'random', 'ctypeslib', 'ma']) <ide> <add> # Filter out Cython harmless warnings <add> warnings.filterwarnings("ignore", message="numpy.dtype size changed") <add> ...
1
Ruby
Ruby
use reject to remove empty hash values
2852d9f0de7e49a138357b35f1f5c25e0607c15b
<ide><path>Library/Homebrew/github_packages.rb <ide> def upload_bottle(user, token, skopeo, formula_full_name, bottle_hash, dry_run:) <ide> "org.opencontainers.image.url" => bottle_hash["formula"]["homepage"], <ide> "org.opencontainers.image.vendor" => org, <ide> "org.opencontainers.i...
1
PHP
PHP
add array dependency to download function
ab5f4b1dcc2cf273339c0f1434edd810c6d8a2d1
<ide><path>src/Illuminate/Support/Facades/Response.php <ide> public static function stream($callback, $status = 200, array $headers = array() <ide> * @param array $headers <ide> * @return \Symfony\Component\HttpFoundation\BinaryFileResponse <ide> */ <del> public static function download($file, $name = null, $he...
1
Python
Python
add parametric softplus
36a9a3947368bc6763ba2c733d501c89ad1b2f67
<ide><path>keras/layers/advanced_activations.py <ide> from ..layers.core import Layer <del>from ..utils.theano_utils import shared_zeros <add>from ..utils.theano_utils import shared_zeros, shared_ones <ide> <ide> class LeakyReLU(Layer): <ide> def __init__(self, alpha=0.3): <ide> def get_output(self, train): <ide> ...
1
Javascript
Javascript
remove createreactclass from layouteventstest
89850583f4c8a19199c9a44ea1b7392c37b915b4
<ide><path>IntegrationTests/LayoutEventsTest.js <ide> 'use strict'; <ide> <ide> const React = require('react'); <del>const createReactClass = require('create-react-class'); <ide> const ReactNative = require('react-native'); <ide> const {Image, LayoutAnimation, StyleSheet, Text, View} = ReactNative; <ide> const {TestMo...
1
Ruby
Ruby
use tt in doc for railties [skip ci]
38b13929f09b87cae85fb1d9ae6dec413f175304
<ide><path>activesupport/lib/active_support/dependencies.rb <ide> def self.unload_interlock <ide> # handles the new constants. <ide> # <ide> # If child.rb is being autoloaded, its constants will be added to <del> # autoloaded_constants. If it was being `require`d, they will be discarded. <add> # autol...
4
Javascript
Javascript
use correct connect event for tls socket
f3686f2a4dc017d998a057f7fa6107e36a721641
<ide><path>lib/internal/http2/core.js <ide> class Http2Session extends EventEmitter { <ide> const setupFn = setupHandle(this, socket, type, options); <ide> if (socket.connecting) { <ide> this[kState].connecting = true; <del> socket.once('connect', setupFn); <add> const connectEvent = <add> ...
1
Python
Python
remove flask superclass
af4cb0ff2bb77c0c2f03227b17cc6ef67f28e63b
<ide><path>tests/__init__.py <ide> """ <ide> <ide> from __future__ import print_function <del>import pytest <ide> <ide> import os <ide> import sys <del>import flask <ide> import warnings <ide> from functools import update_wrapper <ide> from contextlib import contextmanager <ide> def new_f(self, *args, **kwargs): <ide...
15
Java
Java
remove unused imports from rctviewmanager
98604485c49b64c5c459735adecd2d621f8a1012
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/RCTViewManager.java <ide> import com.facebook.react.common.MapBuilder; <ide> import com.facebook.react.uimanager.PixelUtil; <ide> import com.facebook.react.uimanager.ReactProp; <del>import com.facebook.react.uimanager.ReactPropGroup; <del>import com.facebook...
1
Python
Python
add install/uninstall api to databricks hook
b0272231320a4975cc39968dec8f0abf7a5cca11
<ide><path>airflow/providers/databricks/hooks/databricks.py <ide> CANCEL_RUN_ENDPOINT = ('POST', 'api/2.0/jobs/runs/cancel') <ide> USER_AGENT_HEADER = {'user-agent': f'airflow-{__version__}'} <ide> <add>INSTALL_LIBS_ENDPOINT = ('POST', 'api/2.0/libraries/install') <add>UNINSTALL_LIBS_ENDPOINT = ('POST', 'api/2.0/libra...
2
Python
Python
add a function to generate a .def file from a dll
e9d5604aebc5e04a299bbb93dd9d6865a383974f
<ide><path>numpy/distutils/mingw32ccompiler.py <ide> def dump_table(dll): <ide> st = subprocess.Popen(["objdump.exe", "-p", dll], stdout=subprocess.PIPE) <ide> return st.stdout.readlines() <ide> <add>def generate_def(dll, dfile): <add> """Given a dll file location, get all its exported symbols and dump the...
1
Javascript
Javascript
fix truncate tests
3f1bca7d26eb63be968d70908fd4dafa2a3de5f7
<ide><path>Libraries/Utilities/truncate.js <ide> */ <ide> 'use strict'; <ide> <del>var merge = require('merge'); <del> <ide> type truncateOptions = { <ide> breakOnWords: boolean; <ide> minDelta: number; <ide> elipsis: string; <ide> } <ide> <del>var defaultOptions = { <add>const defaultOptions = { <ide> break...
1
Javascript
Javascript
throw errors on invalid paths synchronously
d8f73385e220d54de9f9c53da8d8693813e6d774
<ide><path>lib/fs.js <ide> function copyObject(source) { <ide> return target; <ide> } <ide> <add>// TODO(joyeecheung): explore how the deprecation could be solved via linting <add>// rules. See https://github.com/nodejs/node/pull/12976 <ide> function rethrow() { <del> // TODO(thefourtheye) Throw error instead of wa...
7