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
Python
Python
fix invalid syntax
7651f312c06070b7d08e582649eca5ef2f32a6d6
<ide><path>libcloud/test/compute/test_gridscale.py <ide> def test_get_image_success(self): <ide> <ide> def test_list_nodes_fills_created_datetime(self): <ide> nodes = self.driver.list_nodes() <del> self.assertEqual(nodes[0].created_at, datetime(2019, 6, 7, 12, 56, 44, tzinfo=UTC) <add> self.a...
1
Ruby
Ruby
add tests for formula path string 1
9c9c280c8aeb97a6ec8956242727208d80247826
<ide><path>Library/Homebrew/rubocops/lines_cop.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> end <ide> end <ide> <del> # # Prefer formula path shortcuts in strings <del> # formula_path_strings(body_node, :prefix) do |p| <del> # ne...
2
Ruby
Ruby
fix `test_two_classes_autoloading` failure
1494fadd0df6d29ead33280977786e694b37bf75
<ide><path>activesupport/lib/active_support/cache/mem_cache_store.rb <ide> end <ide> <ide> require "active_support/core_ext/enumerable" <add>require "active_support/core_ext/marshal" <ide> require "active_support/core_ext/array/extract_options" <ide> <ide> module ActiveSupport
1
PHP
PHP
fix failing test from merge with 2.3
1c1701813bfc965f3d61bef4886a04fa2dcf0c94
<ide><path>lib/Cake/Utility/CakeTime.php <ide> public static function timeAgoInWords($dateTime, $options = array()) { <ide> ); <ide> <ide> // When time has passed <add> if (!$backwards && $relativeDate) { <add> return sprintf($relativeString, $relativeDate); <add> } <ide> if (!$backwards) { <del> if ($rela...
1
Go
Go
add test for validation
c1671abf14595923c6930d284c55689709efd34b
<ide><path>volume/local/local_linux_test.go <ide> package local // import "github.com/docker/docker/volume/local" <ide> import ( <ide> "os" <ide> "path/filepath" <add> "strconv" <ide> "testing" <ide> <add> "github.com/docker/docker/errdefs" <ide> "github.com/docker/docker/pkg/idtools" <ide> "github.com/docker/doc...
1
Ruby
Ruby
remove unused variable
a4697b0cc310fd8986b9dfa226fc5c921cde603e
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb <ide> def transaction(options = {}) <ide> @_current_transaction_records.last.concat(save_point_records) <ide> end <ide> end <del> rescue Exception => database_transaction_roll...
1
Ruby
Ruby
add documentation for indexdefinition
92887ca315d20d55959d950438b98e4c876fc57b
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb <ide> <ide> module ActiveRecord <ide> module ConnectionAdapters #:nodoc: <add> # Abstract representation of an index definition on a table. Instances of <add> # this type are typically created and returned by methods i...
1
Text
Text
add node_debug_native to api docs
399bb3c95af821350774c18f469ab700387f38e1
<ide><path>doc/api/cli.md <ide> added: v0.1.32 <ide> <ide> `','`-separated list of core modules that should print debug information. <ide> <add>### `NODE_DEBUG_NATIVE=module[,…]` <add> <add>`','`-separated list of core C++ modules that should print debug information. <add> <ide> ### `NODE_DISABLE_COLORS=1` <ide> <!--...
1
Javascript
Javascript
bind mousedown listener with capture=true
dc6e2ed6f8c451a9dbb4ca58df0df7303d8cb265
<ide><path>web/pdf_scripting_manager.js <ide> class PDFScriptingManager { <ide> this._eventBus._on(name, listener); <ide> } <ide> for (const [name, listener] of this._domEvents) { <del> window.addEventListener(name, listener); <add> window.addEventListener(name, listener, true); <ide> } <ide...
1
PHP
PHP
add collation to identifierexpression
8d0f3807e5f49ab605f3921ef7d67951d5aa727c
<ide><path>src/Database/Driver/Postgres.php <ide> <ide> use Cake\Database\Driver; <ide> use Cake\Database\Expression\FunctionExpression; <add>use Cake\Database\Expression\IdentifierExpression; <ide> use Cake\Database\Expression\StringExpression; <ide> use Cake\Database\PostgresCompiler; <ide> use Cake\Database\Query; ...
4
Python
Python
add support for s3 ap-southeast2 region
5585a26d11f1683db577d064daf599709cb5c5eb
<ide><path>libcloud/storage/drivers/s3.py <ide> S3_CN_NORTH_HOST = 's3.cn-north-1.amazonaws.com.cn' <ide> S3_EU_WEST_HOST = 's3-eu-west-1.amazonaws.com' <ide> S3_AP_SOUTHEAST_HOST = 's3-ap-southeast-1.amazonaws.com' <add>S3_AP_SOUTHEAST2_HOST = 's3-ap-southeast-2.amazonaws.com' <ide> S3_AP_NORTHEAST1_HOST = 's3-ap-nort...
3
Text
Text
add apapirovski to collaborators
0a090d324f03227e71af3d8c4d5b341fc609160d
<ide><path>README.md <ide> For more information about the governance of the Node.js project, see <ide> **Andreas Madsen** &lt;amwebdk@gmail.com&gt; (he/him) <ide> * [AnnaMag](https://github.com/AnnaMag) - <ide> **Anna M. Kedzierska** &lt;anna.m.kedzierska@gmail.com&gt; <add>* [apapirovski](https://github.com/apapirovsk...
1
PHP
PHP
fix bad error message in sqlite driver
794395163fd060cb0be3798637edbf6dcd03b75e
<ide><path>src/Database/Driver/Sqlite.php <ide> use Cake\Database\Statement\PDOStatement; <ide> use Cake\Database\Statement\SqliteStatement; <ide> use Cake\Database\StatementInterface; <add>use InvalidArgumentException; <ide> use PDO; <ide> <ide> /** <ide> public function connect(): bool <ide> PDO::ATTR_EM...
1
Python
Python
fix syntax error for dimensiondatastatus object
4632db2d1ee5329ab2c7421c1c5c7ee1ef1e36b4
<ide><path>libcloud/common/dimensiondata.py <ide> def __repr__(self): <ide> return (('<DimensionDataStatus: action=%s, request_time=%s, ' <ide> 'user_name=%s, number_of_steps=%s, update_time=%s, ' <ide> 'step_name=%s, step_number=%s, ' <del> 'step_percent_comple...
1
Ruby
Ruby
prefer self.class.name to self.class.to_s
502078099fb59212164d757fe2b66e58adfaa0d4
<ide><path>Library/Homebrew/debrew.rb <ide> def debrew(exception, formula=nil) <ide> raise exception unless $debugged_exceptions.add?(exception) <ide> <ide> puts "#{exception.backtrace.first}" <del> puts "#{Tty.red}#{exception.class.to_s}#{Tty.reset}: #{exception.to_s}" <add> puts "#{Tty.red}#{exception.class.na...
2
Python
Python
add ex_fetch_status option to list_nodes()
419352ca427e8234143ff04e587979138beadedf
<ide><path>libcloud/common/azure_arm.py <ide> def get_token_from_credentials(self): <ide> Log in and get bearer token used to authorize API requests. <ide> """ <ide> <del> conn = self.conn_class(self.login_host, 443) <add> conn = self.conn_class(self.login_host, 443, timeout=self.timeout)...
2
PHP
PHP
update sqs config
41ea79f20e4e31a9078b37a6dabff81478c8b345
<ide><path>config/queue.php <ide> <ide> 'sqs' => [ <ide> 'driver' => 'sqs', <del> 'key' => 'your-public-key', <del> 'secret' => 'your-secret-key', <del> 'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id', <del> 'queue' => 'your-queue-name',...
1
Python
Python
fix some compat issues with json/simplejson
762a52edde09297e87c640797219c9bb8255d50a
<ide><path>djangorestframework/compat.py <ide> def http_method_not_allowed(self, request, *args, **kwargs): <ide> # 'request': self.request <ide> # } <ide> #) <del> return http.HttpResponseNotAllowed(allowed_methods) <ide>\ No newline at end of file <add> ...
7
Javascript
Javascript
fix popover problem for rtl 1/n
a527ef2032747a88e705ef7fa3047b6db48cbbe3
<ide><path>Libraries/Modal/Modal.js <ide> */ <ide> 'use strict'; <ide> <add>const I18nManager = require('I18nManager'); <ide> const Platform = require('Platform'); <ide> const PropTypes = require('react/lib/ReactPropTypes'); <ide> const React = require('React'); <ide> class Modal extends React.Component { <ide> } <...
1
Python
Python
add batch option to `sqssensor`
9b4a053bc6496e5e35caabb3f68ef64c1381e48b
<ide><path>airflow/providers/amazon/aws/sensors/sqs.py <ide> """Reads and then deletes the message from SQS queue""" <ide> import json <ide> import warnings <del>from typing import TYPE_CHECKING, Any, Optional, Sequence <add>from typing import TYPE_CHECKING, Any, Collection, List, Optional, Sequence <ide> <ide> from j...
3
Text
Text
add v3.22.0-beta.2 to changelog
6b4f58971096decca38849b7081a56178b83d2b1
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.22.0-beta.2 (August 31, 2020) <add> <add>- [#19106](https://github.com/emberjs/ember.js/pull/19106) [BUGFIX] Ensure `destroy` methods on `CoreObject` are invoked. <add>- [#19111](https://github.com/emberjs/ember.js/pull/19111) [BUGFIX] Fixes `ArrayProxy...
1
Python
Python
remove unused kwargs
2b8b6c929e282958a920ba2aa26ee59106986ec3
<ide><path>src/transformers/modeling_utils.py <ide> def generate( <ide> repetition_penalty=repetition_penalty, <ide> no_repeat_ngram_size=no_repeat_ngram_size, <ide> bad_words_ids=bad_words_ids, <del> bos_token_id=bos_token_id, <ide> pad_tok...
1
Python
Python
fix syntax error
5bee0fe0f43a8a8dd11177a3b7fe2b831077a51a
<ide><path>celery/management/commands/celerystats.py <ide> class Command(BaseCommand): <ide> """Run the celery daemon.""" <ide> option_list = BaseCommand.option_list <del> help = "Collect/flush and dump a report from the currently available " <del> "statistics" <add> help = "Collect/flush and du...
1
Text
Text
add gpg fingerprint for fishrock123
8c6c376a9403496a7e4aab3a667c708e3e65ea33
<ide><path>README.md <ide> information about the governance of the io.js project, see <ide> * **Thorsten Lorenz** ([@thlorenz](https://github.com/thlorenz)) &lt;thlorenz@gmx.de&gt; <ide> * **Stephen Belanger** ([@qard](https://github.com/qard)) &lt;admin@stephenbelanger.com&gt; <ide> * **Jeremiah Senkpiel** ([@fishrock...
1
Text
Text
clarify availability of renderers
b36f4af69db693a4c2a6466352b1bbfc0062380a
<ide><path>README.md <ide> three.js <ide> <ide> #### JavaScript 3D library #### <ide> <del>The aim of the project is to create an easy to use, lightweight, 3D library. The library provides Canvas 2D, SVG, CSS3D and WebGL renderers. <add>The aim of the project is to create an easy to use, lightweight, 3D library with ...
1
Text
Text
add universal moderators handbook
7140a48787bd73629f1f58d73be6a506fe10df01
<ide><path>docs/_sidebar.md <ide> - **<i class="fad fa-hourglass-start"></i> Getting Started** <ide> - [Introduction](/index.md 'Contribute to the freeCodeCamp.org Community') <del>- **<i class="fad fa-code"></i> Code Contribution Guides** <add>- **<i class="fad fa-code"></i> Code Contribution** <ide> - [Work on co...
2
Ruby
Ruby
fix unexpected wrong variable name
cfc1821e2c6b0c162cb2d675fae33ca6f08a62bb
<ide><path>Library/Homebrew/tap.rb <ide> def fix_remote_configuration(requested_remote: nil, quiet: false) <ide> path.git_origin_set_head_auto <ide> <ide> new_upstream_head = path.git_origin_branch <del> return if new_upstream_head == old_upstream_head <add> return if new_upstream_head == current_upstrea...
1
Text
Text
use es6 in animation examples
6a133d78a8fe78f92f1c33dfa969896b96e2e38d
<ide><path>docs/Animations.md <ide> UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationE <ide> ![](img/LayoutAnimationExample.gif) <ide> <ide> ```javascript <del>var App = React.createClass({ <add>class App extends React.Component { <add> constructor(props) { <add> super(props); <add> ...
1
Ruby
Ruby
use grep instead of select + is_a?
828bb94d5a41695d30cb46ccafb152c98cdeae0a
<ide><path>activerecord/lib/active_record/reflection.rb <ide> def reflections <ide> <ide> # Returns an array of AggregateReflection objects for all the aggregations in the class. <ide> def reflect_on_all_aggregations <del> reflections.values.select { |reflection| reflection.is_a?(AggregateReflection...
1
Javascript
Javascript
support meridiemhour in locales
c70661abc8e98a9ce872abfe1185d5bff101d6d3
<ide><path>moment.js <ide> formatTokenFunctions.DDDD = padToken(formatTokenFunctions.DDD, 3); <ide> <ide> <add> function meridiemFixWrap(locale, hour, meridiem) { <add> var isPm; <add> <add> if (meridiem == null) { <add> // nothing to do <add> return hour; <add> } <ad...
1
Mixed
Javascript
overhaul the flexbox documentation
64cdc3547c7253114435870621209ad51f3c8e01
<ide><path>Libraries/StyleSheet/LayoutPropTypes.js <ide> var ReactPropTypes = require('ReactPropTypes'); <ide> * <ide> * The implementation in css-layout is slightly different from what the <ide> * Flexbox spec defines - for example, we chose more sensible default <del> * values. Please refer to the css-layout READM...
3
Python
Python
add sdist command
252299ca2a518ea2d6e1e04208bce516e9d1ef59
<ide><path>fabfile.py <ide> def make(): <ide> local('pip install -r requirements.txt') <ide> local('python setup.py build_ext --inplace') <ide> <add>def sdist(): <add> with virtualenv(VENV_DIR): <add> with lcd(path.dirname(__file__)): <add> local('python setup.py sdist') <i...
1
Python
Python
add unit tests for mssqlhook
42fbf9df4751f64a0ff71762466388a676de5946
<ide><path>tests/providers/microsoft/mssql/hooks/__init__.py <add># <add># Licensed to the Apache Software Foundation (ASF) under one <add># or more contributor license agreements. See the NOTICE file <add># distributed with this work for additional information <add># regarding copyright ownership. The ASF licenses t...
3
Mixed
Javascript
revise image example with layouts near the top
17a53e27656cb74700d1da3296179e94f3646e59
<ide><path>examples/image-component/README.md <ide> <ide> This example shows how to use the [Image Component in Next.js](https://nextjs.org/docs/api-reference/next/image) serve optimized, responsive images. <ide> <del>The index page ([`pages/index.js`](pages/index.js)) has a couple images, one internal image and one ...
2
Java
Java
introduce write aggregator to databufferutils
69ccba30e978351acdee12b990f989e97b8a72b0
<ide><path>spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java <ide> /* <del> * Copyright 2002-2017 the original author or authors. <add> * Copyright 2002-2018 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may...
2
Python
Python
fix type annotations in skipmixin
93cd12747bb0355f68e65880b199ecf03fcc643b
<ide><path>airflow/models/skipmixin.py <ide> # under the License. <ide> <ide> import warnings <del>from typing import TYPE_CHECKING, Iterable, List, Optional, Sequence, Union, cast <add>from typing import TYPE_CHECKING, Iterable, Optional, Sequence, Union <ide> <ide> from airflow.models.taskinstance import TaskInstan...
1
Text
Text
update relation to other libraries.md
1096c55ae670303ad6bbcf238e13fee495569e9e
<ide><path>docs/Basics/Relation to Other Libraries.md <ide> Most of the functionality Baobab provides is related to updating the data with c <ide> <ide> Unlike Immutable, Baobab doesn’t yet implement any special efficient data structures under the hood, so you don’t really win anything from using it together with Redu...
1
Python
Python
show arch in the log when building import library
6ce9a33b042965a8c536f46b3494a6cae699ccfa
<ide><path>numpy/distutils/mingw32ccompiler.py <ide> def build_import_library(): <ide> raise ValueError("Unhandled arch %s" % arch) <ide> <ide> def _build_import_library_amd64(): <del> pass <add> log.info('Building import library (arch=AMD64): "%s"' % (out_file)) <ide> <ide> def _build_import_library_x8...
1
Text
Text
add eugeneo to collaborators
b35f22b135e8110a4468e7e5ee1e83f9237a9fde
<ide><path>README.md <ide> more information about the governance of the Node.js project, see <ide> **Robert Jefe Lindstaedt** &lt;robert.lindstaedt@gmail.com&gt; <ide> * [estliberitas](https://github.com/estliberitas) - <ide> **Alexander Makarenko** &lt;estliberitas@gmail.com&gt; <add>* [eugeneo](https://github.com/eug...
1
Javascript
Javascript
add support for inspector overlay
8ac467c51b94c82d81930b4802b2978c85539925
<ide><path>Libraries/Components/Pressable/Pressable.js <ide> import type { <ide> AccessibilityState, <ide> AccessibilityValue, <ide> } from '../View/ViewAccessibility'; <add>import {PressabilityDebugView} from '../../Pressability/PressabilityDebug'; <ide> import usePressability from '../../Pressability/usePressabil...
1
Go
Go
simplify control flow
7ff4b643199757f301b9d8f98fd4431044b219ea
<ide><path>daemon/logger/journald/read.go <ide> drain: <ide> } <ide> <ide> func (s *journald) followJournal(logWatcher *logger.LogWatcher, j *C.sd_journal, cursor *C.char, untilUnixMicro uint64) *C.char { <del> defer close(logWatcher.Msg) <del> <ide> waitTimeout := C.uint64_t(250000) // 0.25s <ide> <ide> LOOP: <ide>...
1
Python
Python
add assertjsonequal method to testcase
089d9ca1df43fb36eaa857e2d617a94a82c6b906
<ide><path>django/test/testcases.py <ide> def assertInHTML(self, needle, haystack, count = None, msg_prefix=''): <ide> self.assertTrue(real_count != 0, <ide> msg_prefix + "Couldn't find '%s' in response" % needle) <ide> <add> def assertJSONEqual(self, raw, expected_data, msg=None): <add>...
1
Text
Text
add hiding comments note to contributor guide
810597d3353c85eb0aebdf16509a75e4f7dfb6e1
<ide><path>doc/guides/contributing/pull-requests.md <ide> opportunity for the contributor to learn a bit more about the project. <ide> It is always good to clearly indicate nits when you comment: e.g. <ide> `Nit: change foo() to bar(). But this is not blocking.` <ide> <add>If your comments were addressed but were not ...
1
Javascript
Javascript
remove unconditional getpeername() call
1bb820a339e64898a4b1d66cfc3e7a6d2e6b8ef0
<ide><path>lib/net_uv.js <ide> Socket.prototype.setEncoding = function(encoding) { <ide> }; <ide> <ide> <add>Socket.prototype._getpeername = function() { <add> if (!this._handle || !this._handle.getpeername) { <add> return {}; <add> } <add> if (!this._peername) { <add> this._peername = this._handle.getpeerna...
1
Text
Text
fix a typo in 5.10.1's changelog
31524d73106624e218d5d79c2c8496609d0606e8
<ide><path>CHANGELOG.md <ide> ### Notable changes <ide> <ide> **http**: <del> * Enclose IPv6 Host header in square brackets. This will enable proper seperation of the host adress from any port reference (Mihai Potra) [#5314](https://github.com/nodejs/node/pull/5314) <add> * Enclose IPv6 Host header in square bracket...
1
Javascript
Javascript
adjust params from uvexceptionwithhostport
4aec4216a0e3c24fffc428f11ed40b0157401365
<ide><path>lib/internal/errors.js <ide> function uvException(ctx) { <ide> * @param {string} syscall <ide> * @param {string} address <ide> * @param {number} [port] <del> * @param {string} [additional] <ide> * @returns {Error} <ide> */ <del>function uvExceptionWithHostPort(err, syscall, address, port, additional) { ...
1
Javascript
Javascript
add tests for hasitems method in freelist
ac56dc96e32a4f9468c869fc5af293129c20a6cd
<ide><path>test/parallel/test-freelist.js <ide> assert.strictEqual(flist1.free({ id: 'test5' }), false); <ide> assert.strictEqual(flist1.alloc().id, 'test3'); <ide> assert.strictEqual(flist1.alloc().id, 'test2'); <ide> assert.strictEqual(flist1.alloc().id, 'test1'); <add> <add>// Check list has elements <add>const flis...
1
Javascript
Javascript
add hascrypto check to https-agent-constructor
b5ae22dd1c7455178178c56a1eca3d5f72eff39e
<ide><path>test/parallel/test-https-agent-constructor.js <ide> 'use strict'; <del>require('../common'); <add>const common = require('../common'); <add>if (!common.hasCrypto) { <add> common.skip('missing crypto'); <add> return; <add>} <ide> const assert = require('assert'); <ide> const https = require('https'); <ide>
1
Text
Text
add changelog entry for [ci skip]
159dc60bee254d981fdd3958b5f1c7a415114f81
<ide><path>activemodel/CHANGELOG.md <add>* Fix `ActiveModel::Serializers::JSON#as_json` method for timestamps. <add> <add> Before: <add> ``` <add> contact = Contact.new(created_at: Time.utc(2006, 8, 1)) <add> contact.as_json["created_at"] # => 2006-08-01 00:00:00 UTC <add> ``` <add> <add> Afte...
1
Mixed
Go
add support to accepting arbitrary network id
7d7b9f2405ad7f0bf5d08513788119153f5fe7b9
<ide><path>libnetwork/README.md <ide> func main() { <ide> <ide> // Create a network for containers to join. <ide> // NewNetwork accepts Variadic optional arguments that libnetwork and Drivers can use. <del> network, err := controller.NewNetwork(networkType, "network1") <add> network, err := controller.NewNetwork(net...
11
Text
Text
use cookie in request.setheader() examples
862b7a1c7be9322c565a40a3e18f06b0e927bda9
<ide><path>doc/api/http.md <ide> The type of the return value depends on the arguments provided to <ide> ```js <ide> request.setHeader('content-type', 'text/html'); <ide> request.setHeader('Content-Length', Buffer.byteLength(body)); <del>request.setHeader('Set-Cookie', ['type=ninja', 'language=javascript']); <add>reque...
1
Python
Python
remove image_shape in conv layers
76b28524d15cf05f935d7063687b119b5db59858
<ide><path>keras/layers/convolutional.py <ide> class Convolution1D(Layer): <ide> def __init__(self, nb_filter, stack_size, filter_length, <ide> init='uniform', activation='linear', weights=None, <del> image_shape=None, border_mode='valid', subsample_length=1, <add> border_mode='valid', subsamp...
1
Javascript
Javascript
provide docs for the core $animator service
9f3935baffa9faaec0cac9b6b41cd845fa41d6fc
<ide><path>src/ng/animate.js <ide> var $AnimateProvider = ['$provide', function($provide) { <ide> }; <ide> <ide> this.$get = ['$timeout', function($timeout) { <add> <add> /** <add> * @ngdoc object <add> * @name ng.$animate <add> * <add> * @description <add> * The $animate service provides ru...
1
Java
Java
fix touchevents on text after state changes
00681c3660809887644c5abfaf018a5e46b06547
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManager.java <ide> public class TextLayoutManager { <ide> private static final int spannableCacheSize = 100; <ide> <ide> private static final Object sSpannableCacheLock = new Object(); <del> private static LruCache<Double, Spannable> sS...
1
Ruby
Ruby
add missing require for `remove_possible_method`
001fc80d8784670277af3b9dd3d22f16cbf965f9
<ide><path>activesupport/lib/active_support/core_ext/date_time/compatibility.rb <ide> require "active_support/core_ext/date_and_time/compatibility" <add>require "active_support/core_ext/module/remove_method" <ide> <ide> class DateTime <ide> include DateAndTime::Compatibility
1
Text
Text
update hall of fame
7f550a61d121b56943fecef49266c37ff7d9be9b
<ide><path>docs/security-hall-of-fame.md <ide> While we do not offer any bounties or swags at the moment, we are grateful to th <ide> <ide> - Mehul Mohan from [codedamn](https://codedamn.com) ([@mehulmpt](https://twitter.com/mehulmpt)) - [Vulnerability Fix](https://github.com/freeCodeCamp/freeCodeCamp/blob/bb5a9e81531...
1
Go
Go
add hostconfig to container inspect
c4c90e9cec1b3f3cc5aa652e4e9155f6a2e687aa
<ide><path>api.go <ide> func getContainersByName(srv *Server, version float64, w http.ResponseWriter, r <ide> return fmt.Errorf("Conflict between containers and images") <ide> } <ide> <del> return writeJSON(w, http.StatusOK, container) <add> container.readHostConfig() <add> c := APIContainer{container, container.ho...
2
Text
Text
remove mentions of bower support
39fd73f781b45836c637a0883f58f4de9484940c
<ide><path>COLLABORATOR_GUIDE.md <ide> git reset --hard upstream/master <ide> <ide> Releasing video.js is partially automated through [`conrib.json`](/contrib.json) scripts. To do a release, you need a couple of things: npm access, GitHub personal access token. <ide> <del>Releases in video.js are done on npm and bowe...
3
PHP
PHP
add afterdeletecommit event
bafd922f6006a3379440128ad52979bb6cffc143
<ide><path>src/ORM/Table.php <ide> public function delete(EntityInterface $entity, $options = []) <ide> }; <ide> <ide> if ($options['atomic']) { <del> return $this->connection()->transactional($process); <add> $connection = $this->connection(); <add> $success = $connect...
2
Python
Python
log the number of errors when importing dags
e94a5de80cce16b7e2bd73a57ff1a6e73466a2c6
<ide><path>airflow/models.py <ide> def collect_dags( <ide> 'collect_dags', (datetime.now() - start_dttm).total_seconds(), 1) <ide> Stats.gauge( <ide> 'dagbag_size', len(self.dags), 1) <add> Stats.gauge( <add> 'dagbag_import_errors', len(self.import_errors), 1) <ide> <i...
1
Javascript
Javascript
improve tests for streaming and server components
66af3cee556945f29cdf5178430d3827282cda66
<ide><path>test/integration/react-streaming-and-server-components/test/index.test.js <ide> /* eslint-env jest */ <ide> <del>import cheerio from 'cheerio' <ide> import { join } from 'path' <ide> import fs from 'fs-extra' <ide> import webdriver from 'next-webdriver' <ide> import { <ide> nextBuild as _nextBuild, <ide> ...
3
Javascript
Javascript
fix baseuri for hottestcases
e2706b8508dcc03d0de5c55d2edaa93856dd95b3
<ide><path>test/HotTestCases.template.js <ide> const describeCases = config => { <ide> if (name === "script") return []; <ide> throw new Error("Not supported"); <ide> } <add> }, <add> location: { <add> href: "https://test.cases/path/index.html", <add> ...
1
Python
Python
add tests for polyfit with deg specified as list
fd5d1a4893d1a4b04d6df94ff83e09a6e4f12df6
<ide><path>numpy/polynomial/tests/test_polynomial.py <ide> def test_polyfit(self): <ide> def f(x): <ide> return x*(x - 1)*(x - 2) <ide> <add> def f2(x): <add> return x**4 + x**2 + 1 <add> <ide> # Test exceptions <ide> assert_raises(ValueError, poly.polyfit, [1], [1...
1
Python
Python
improve the benchmarkfilelogger performance.
add588d68888e8ba869ffce17d214c48e41ca019
<ide><path>official/utils/logs/logger.py <ide> def __init__(self, logging_dir): <ide> self._logging_dir = logging_dir <ide> if not tf.gfile.IsDirectory(self._logging_dir): <ide> tf.gfile.MakeDirs(self._logging_dir) <add> self._metric_file_handler = tf.gfile.GFile( <add> os.path.join(self._loggin...
1
PHP
PHP
add isempty method to messagebag. closes
7b3f3fb32ac08a72b2e91134d6bd9ad5746bf3b4
<ide><path>src/Illuminate/Support/MessageBag.php <ide> public function setFormat($format = ':message') <ide> $this->format = $format; <ide> } <ide> <add> /** <add> * Determine if the message bag has any messages. <add> * <add> * @return bool <add> */ <add> public function isEmpty() <add> { <add> return $this->...
1
Javascript
Javascript
fix pixel swimming
6c687f4c8f0a8b7e6d46d3cea68502e0e5a0eb10
<ide><path>examples/jsm/csm/CSM.js <ide> export default class CSM { <ide> _bbox.getSize( _size ); <ide> _bbox.getCenter( _center ); <ide> _center.z = _bbox.max.z + this.lightMargin; <del> _center.applyMatrix4( light.shadow.camera.matrixWorld ); <ide> <del> let squaredBBWidth = Math.max( _size.x, _size.y )...
1
Java
Java
add perf marker for i18n assets module creation
904afaf8c7ceb387b2c4c995a9e58cfc4eaaed90
<ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarkerConstants.java <ide> public class ReactMarkerConstants { <ide> "I18N_MODULE_CONSTANTS_CONVERT_START"; <ide> public static final String I18N_MODULE_CONSTANTS_CONVERT_END = <ide> "I18N_MODULE_CONSTANTS_CONVERT_END"; <add> public static ...
1
Text
Text
add text overflow to text docs
1cd44868aa82e137d00ab9db9114c4eb4bf494ae
<ide><path>guide/english/css/text/index.md <ide> p { <ide> } <ide> ``` <ide> <add> <add>#### Text overflow <add> <add>``` css <add>p { <add> text-overflow: ellipsis; <add>} <add>``` <add> <add>The `text-overflow` property is used to specify how hidden overflowed content is ended, to communicate to users that the ...
1
Javascript
Javascript
fix handling of zero-sized nodes
7c3adbd771ed787e93b499bf7e304f4b18986f6c
<ide><path>d3.layout.js <ide> d3.layout.treemap = function() { <ide> n = row.length; <ide> while (++i < n) { <ide> r = row[i].area; <add> if (r <= 0 || isNaN(r)) continue; <ide> if (r < rmin) rmin = r; <ide> if (r > rmax) rmax = r; <ide> } <ide> s *= s; <ide> u *= u; <del>...
3
PHP
PHP
return specified default value in entitycontext
f4b90755f2a79841df888a204ac9bfec56d418ba
<ide><path>src/View/Form/EntityContext.php <ide> public function val($field, $options = []) <ide> if (is_array($entity)) { <ide> $key = array_pop($parts); <ide> <del> return isset($entity[$key]) ? $entity[$key] : null; <add> return isset($entity[$key]) ? $entity[$key] : $optio...
1
Javascript
Javascript
fix some repl context issues
7e977d7cd41cd57ce6bc6b7b639e88377d725cf3
<ide><path>lib/repl.js <ide> REPLServer.prototype.createContext = function() { <ide> context = vm.createContext(); <ide> }); <ide> for (const name of Object.getOwnPropertyNames(global)) { <del> Object.defineProperty(context, name, <del> Object.getOwnPropertyDescriptor(globa...
2
Javascript
Javascript
use blocks instead of async iife
ba4466e1b18cbcf56ac357974c09e1ccf9248c02
<ide><path>test/parallel/test-stream-readable-async-iterators.js <ide> async function tests() { <ide> AsyncIteratorPrototype); <ide> } <ide> <del> await (async function() { <add> { <ide> const readable = new Readable({ objectMode: true, read() {} }); <ide> readable.push(0); <ide> readable.push(1)...
1
Javascript
Javascript
add validateposition and use in read and readsync
0aaa804f4399ea4728971ff9ce3e7af5e9886436
<ide><path>lib/fs.js <ide> const { <ide> ERR_INVALID_ARG_VALUE, <ide> ERR_INVALID_ARG_TYPE, <ide> ERR_FEATURE_UNAVAILABLE_ON_PLATFORM, <del> ERR_OUT_OF_RANGE, <ide> }, <ide> hideStackFrames, <ide> uvErrmapGet, <ide> const { <ide> validateOffsetLengthRead, <ide> validateOffsetLengthWrite, <ide> ...
2
Ruby
Ruby
use ternary instead explicit return
c91a13f8f557cc1d21fccb5f964d50438cd60a52
<ide><path>activerecord/lib/active_record/associations/association_collection.rb <ide> def include?(record) <ide> return false unless record.is_a?(@reflection.klass) <ide> return include_in_memory?(record) unless record.persisted? <ide> load_target if @reflection.options[:finder_sql] && !loaded?...
1
PHP
PHP
fix failing test
0e7b0ad11173bb3c814eef092a2a8dfc35d29381
<ide><path>lib/Cake/Test/Case/View/Helper/RssHelperTest.php <ide> public function testElementNamespaceWithoutPrefix() { <ide> <ide> public function testElementNamespaceWithPrefix() { <ide> $item = array( <del> 'title' => 'Title', <del> 'dc:creator' => 'Alex', <del> 'xy:description' => 'descriptive words' <...
1
Ruby
Ruby
add tap to formula json output
a20b60112059a2f807406a79505bc066c86712d8
<ide><path>Library/Homebrew/formula.rb <ide> def to_hash <ide> hsh = { <ide> "name" => name, <ide> "full_name" => full_name, <add> "tap" => tap.name, <ide> "oldname" => oldname, <ide> "aliases" => ...
1
Java
Java
fix links and tests broken during merge
66e9095ee9b9293a1879f47326ca5c666f7414dc
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/support/RootBeanDefinition.java <ide> public Set<Member> getExternallyManagedConfigMembers() { <ide> /** <ide> * Register an externally managed configuration initialization method &mdash; <ide> * for example, a method annotated with JSR-250's ...
3
Python
Python
fix broken uplo of eigh in python3
e549e69020e3dcec08185695db6f7001a62dc934
<ide><path>numpy/linalg/linalg.py <ide> def eigvalsh(a, UPLO='L'): <ide> A complex- or real-valued matrix whose eigenvalues are to be <ide> computed. <ide> UPLO : {'L', 'U'}, optional <del> Same as `lower`, wth 'L' for lower and 'U' for upper triangular. <add> Same as `lower`, with 'L'...
2
Python
Python
update comments to reflect new functionality
5f64971731cfb0b8fbac5783e6ac4615aae2c16d
<ide><path>scripts/flaskext_migrate.py <ide> # <ide> # "import flask.ext.foo" <ide> # <del># these are converted to "import flask_foo" in the <del># main import statement, but does not handle function calls in the source. <ide> # <ide> # Run in the terminal by typing: `python flaskext_migrate.py <source_file.py>` <ide>...
1
Text
Text
fix incorrect markdown by removing extra space
1a6b0828085eac4a9e9ee1d003a927e7476c5af3
<ide><path>activerecord/CHANGELOG.md <ide> * Fix AR#dup to nullify the validation errors in the dup'ed object. Previously the original <ide> and the dup'ed object shared the same errors. <ide> <del> * Christian Seiler* <add> *Christian Seiler* <ide> <ide> * Raise `ArgumentError` if list of attributes to...
1
PHP
PHP
rename some methods
3615fa377dfab765b17e200566869a95502b2697
<ide><path>src/Illuminate/Database/Eloquent/Builder.php <ide> public function has($relation, $operator = '>=', $count = 1, $boolean = 'and', C <ide> * @param \Closure $callback <ide> * @return \Illuminate\Database\Eloquent\Builder|static <ide> */ <del> public function hasNot($relation, $boolean = 'and', Closure...
1
Text
Text
fix outdated head hash syntax
681f5a5914b3d0c4fb05ae63628e8d372959e18c
<ide><path>docs/Formula-Cookbook.md <ide> To use a specific commit, tag, or branch from a repository, specify [`head`](htt <ide> <ide> ```ruby <ide> class Foo < Formula <del> head "https://github.com/some/package.git", :revision => "090930930295adslfknsdfsdaffnasd13" <del> # or...
1
Python
Python
add test for multilevel
eef5dd14611a08691a961360d6fd7adcfb38cd78
<ide><path>research/object_detection/meta_architectures/faster_rcnn_meta_arch_test_lib.py <ide> <ide> from google.protobuf import text_format <ide> from object_detection.anchor_generators import grid_anchor_generator <add>from object_detection.anchor_generators import multiscale_grid_anchor_generator <ide> from object...
1
Python
Python
allow tokenization of sequences > 512 for caching
9775b2eb277c246f27dda08c6b1df29abee3da5b
<ide><path>pytorch_pretrained_bert/tokenization_openai.py <ide> def convert_tokens_to_ids(self, tokens): <ide> else: <ide> ids.append(self.encoder.get(token, 0)) <ide> if len(ids) > self.max_len: <del> raise ValueError( <add> logger.warning( <ide> ...
1
PHP
PHP
fix typo in docblock
4224d0d878a5dee7a7ecae2c1728a6e79c8cfce8
<ide><path>src/Illuminate/Routing/RouteCollection.php <ide> public function match(Request $request) <ide> * Determine if a route in the array matches the request. <ide> * <ide> * @param array $routes <del> * @param \Illuminate\http\Request $request <add> * @param \Illuminate\Http\Request $r...
1
Ruby
Ruby
add uniq to check multiple tap
a43633e0948dbbb1fceeebcad965c7ccbdc498cb
<ide><path>Library/Homebrew/cask/cask_loader.rb <ide> def self.for(ref) <ide> when 2..Float::INFINITY <ide> loaders = possible_tap_casks.map(&FromTapPathLoader.method(:new)) <ide> <del> raise TapCaskAmbiguityError.new(ref, loaders) if loaders.map(&:tap).map(&:name).size == 1 <add> raise Tap...
1
Text
Text
add v3.9.0-beta.4 to changelog
9b907dbf0a22be04943656dc43836f8bc495fdec
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.9.0-beta.4 (March 11, 2019) <add> <add>- [#17710](https://github.com/emberjs/ember.js/pull/17710) [BUGFIX] Allow accessors in mixins <add> <ide> ### v3.9.0-beta.3 (March 4, 2019) <ide> <ide> - [#17684](https://github.com/emberjs/ember.js/pull/17684) [B...
1
PHP
PHP
update serialization logic
c5dc9c870a8a1af6c7e827dd81bd15f0a1561cc4
<ide><path>src/Illuminate/Cookie/Middleware/EncryptCookies.php <ide> class EncryptCookies <ide> * <ide> * @var bool <ide> */ <del> protected $serialize = false; <add> protected static $serialize = false; <ide> <ide> /** <ide> * Create a new CookieGuard instance. <ide> protected function d...
2
Javascript
Javascript
use an array not an object to cache objects
5c06cd1de5547036a9733c63622ef01d7345ada8
<ide><path>pdf.js <ide> var XRef = (function() { <ide> error("Invalid root reference"); <ide> <ide> // prepare the XRef cache <del> this.cache = Object.create(null); <add> this.cache = []; <ide> } <ide> <ide> constructor.prototype = {
1
Javascript
Javascript
add test for addition of trailing newline
c5cba6e9c15aa2d6cd065b4fba7166cc58d37c84
<ide><path>changelog.js <ide> var generate = function(version, file) { <ide> <ide> // publish for testing <ide> exports.parseRawCommit = parseRawCommit; <add>exports.printSection = printSection; <ide> <ide> // hacky start if not run by jasmine :-D <ide> if (process.argv.join('').indexOf('jasmine-node') === -1) { <ide...
2
Go
Go
pass info rather than hash to setinitialized
74edcaf1e84aa8bf35e496b2bead833172a79fca
<ide><path>runtime/graphdriver/devmapper/deviceset.go <ide> func (devices *DeviceSet) MountDevice(hash, path string, mountLabel string) erro <ide> info.mountPath = path <ide> info.floating = false <ide> <del> return devices.setInitialized(hash) <add> return devices.setInitialized(info) <ide> } <ide> <ide> func (dev...
1
Ruby
Ruby
unfreeze forbidden licenses string
b06bcf3db154cfb27fc7ce240136719284e95b09
<ide><path>Library/Homebrew/formula_installer.rb <ide> def puts_requirement_messages <ide> end <ide> <ide> def forbidden_license_check <del> forbidden_licenses = Homebrew::EnvConfig.forbidden_licenses.to_s <add> forbidden_licenses = Homebrew::EnvConfig.forbidden_licenses.dup <ide> SPDX::ALLOWED_LICENSE_S...
1
Text
Text
add missing links to blog article
24d789deb6f0ee74ff7058bc6f132f8187317954
<ide><path>blog/2017-08-30-react-native-monthly-3.md <ide> Here are the notes from each team: <ide> <ide> - Released support for installing npm packages on [Snack](https://snack.expo.io). Usual Expo restrictions apply -- packages can't depend on custom native APIs that aren't already included in Expo. We are also work...
1
Ruby
Ruby
prefer gcc 5 on linux
221983dbcff442fa98d28c36cb2fb74af376d937
<ide><path>Library/Homebrew/compilers.rb <ide> def inspect <ide> # <ide> # @api private <ide> class CompilerSelector <add> extend T::Sig <ide> include CompilerConstants <ide> <ide> Compiler = Struct.new(:name, :version) <ide> def compiler <ide> <ide> private <ide> <add> sig { returns(String) } <add> def pre...
4
PHP
PHP
avoid code duplication
ab31e72dd271766fe6aaceab09816e334479a8f8
<ide><path>src/I18n/Translator.php <ide> * <ide> * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <ide> * @link https://cakephp.org CakePHP(tm) Project <del> * <del> * This file contains sections from the Aura Project <del> * @license https://github.com/auraphp/Aura...
1
Javascript
Javascript
fix reverse behavior for range and repeat
7dcd1ab80b85a59144acbc6f013265077d594d9e
<ide><path>dist/Immutable.js <ide> var $Range = Range; <ide> } <ide> value += reverse ? -step : step; <ide> } <del> return flipIndices ? this.length : ii; <add> return ii; <ide> }, <ide> __deepEquals: function(other) { <ide> return this._start === other._start && this._end === other._end &...
4
Python
Python
remove the collectstatisticstask (was not optimal)
69e117791a84a1f3b3cfe08548d29d7867603c7f
<ide><path>celery/bin/celeryd.py <ide> def run_worker(concurrency=DAEMON_CONCURRENCY, detach=False, <ide> print(". Launching celery, please hold on to something...") <ide> <ide> if statistics: <del> from celery.task import tasks, CollectStatisticsTask <del> tasks.register(CollectStatisticsTask) <...
2
Text
Text
fix markdown syntax error in aufs-driver
ea047640597929436f13099fb3dc1e52f98f685b
<ide><path>docs/userguide/storagedriver/aufs-driver.md <ide> Storage Driver: aufs <ide> Dirperm1 Supported: false <ide> Execution Driver: native-0.2 <ide> ...output truncated... <del>```` <add>``` <ide> <ide> The output above shows that the Docker daemon is running the AUFS storage driver on top of an existing ext4 b...
1
Java
Java
remove unnecessary iteration over headers
a7bb5ca473e55cd7fe1aaddfb30c4ec1ee913054
<ide><path>spring-test/src/main/java/org/springframework/mock/web/HeaderValueHolder.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 "License"); <ide> * you may not...
5
Javascript
Javascript
improve err_invalid_opt_value error
8da8ec9c7e66e8f249757d3bdccc8588135c2ed7
<ide><path>lib/internal/child_process.js <ide> function getValidStdio(stdio, sync) { <ide> if (typeof stdio === 'string') { <ide> stdio = stdioStringToArray(stdio); <ide> } else if (!ArrayIsArray(stdio)) { <del> throw new ERR_INVALID_OPT_VALUE('stdio', inspect(stdio)); <add> throw new ERR_INVALID_OPT_VALU...
9