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
Text
Text
add link to minitest rdoc & github
04e1281990fd1d18d95c6b609690380711d0b48a
<ide><path>guides/source/testing.md <ide> Ideally, you would like to include a test for everything which could possibly br <ide> By now you've caught a glimpse of some of the assertions that are available. Assertions are the worker bees of testing. They are the ones that actually perform the checks to ensure that thing...
1
Python
Python
extend layer api to multi inputs / ouputs
eac3bf8b587936782952539bafc6dfb1c9d49fa2
<ide><path>keras/layers/containers.py <ide> def __init__(self): <ide> self.constraints = [] <ide> self.updates = [] <ide> <del> def set_previous(self, layer): <del> if len(self.inputs) != 1 or len(self.outputs) != 1: <del> raise Exception('The Graph container can only be used as a ...
2
Text
Text
add some extra details to webhook docs
b4b899264ed892818ef31c3626acad8fb110aabb
<ide><path>docs/sources/docker-hub/builds.md <ide> repo on the Docker Hub. <ide> ### Webhooks <ide> <ide> Automated Builds also include a Webhooks feature. Webhooks can be called <del>after a successful repository push is made. <add>after a successful repository push is made. This includes when a new tag is added <add...
2
Javascript
Javascript
add todo comments
41343d1763d0a2088c43d0ffba775b9a886c2216
<ide><path>lib/Compilation.js <ide> class Compilation extends Tapable { <ide> this.dependencyFactories = new Map(); <ide> /** @type {Map<DepConstructor|string, DependencyTemplate|string>} */ <ide> this.dependencyTemplates = new Map(); <add> // TODO refactor this in webpack 5 to a custom DependencyTemplates class...
3
Java
Java
fix warnings from the sniff task
cb40908a7d3c6fb330d3813692f7679501d9a54b
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/config/WebSocketNamespaceUtils.java <ide> package org.springframework.web.socket.config; <ide> <ide> import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler; <add>import org.springframework.util.ClassUtils; <add>import org.spring...
3
Javascript
Javascript
fix the arguments order in `assert.strictequal`
b4af0c49eaa2f479476f021c5ff8dbd7a05fe38b
<ide><path>test/parallel/test-buffer-alloc.js <ide> assert.strictEqual((Buffer.from('Man')).toString('base64'), 'TWFu'); <ide> 'dWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZ' + <ide> 'GdlLCBleGNlZWRzIHRoZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm' + <ide> ...
1
Ruby
Ruby
calculate model class on construction
0ebbf6be8a5aa9b5c817b3ee0dfdd8135c525ac7
<ide><path>activerecord/lib/active_record/fixtures.rb <ide> def self.identify(label) <ide> Zlib.crc32(label.to_s) % MAX_ID <ide> end <ide> <del> attr_reader :table_name, :name, :fixtures <add> attr_reader :table_name, :name, :fixtures, :model_class <ide> <ide> def initialize(connection, table_name, class_na...
1
PHP
PHP
replace spaces with tabs
c35c9957a276960254274929bc966ec00a0ee18f
<ide><path>tests/Database/DatabaseQueryBuilderMemoryLeakTest.php <ide> <ide> class DatabaseJoinMemoryLeakTest extends PHPUnit_Framework_TestCase { <ide> <del> public function tearDown() <del> { <del> m::close(); <del> } <add> public function tearDown() <add> { <add> m::close(); <add> } <ide> <del> ...
1
Text
Text
add symlink information for process.execpath
8c177c467ac42dc8def8c90a3104dd0a80369c70
<ide><path>doc/api/process.md <ide> added: v0.1.100 <ide> * {string} <ide> <ide> The `process.execPath` property returns the absolute pathname of the executable <del>that started the Node.js process. <add>that started the Node.js process. Symbolic links, if any, are resolved. <ide> <ide> <!-- eslint-disable semi --> ...
1
Javascript
Javascript
expose the actual transformer in the config
e4621f4ce142c23067ef5ab83465c01ebce34ff4
<ide><path>local-cli/bundle/buildBundle.js <ide> async function buildBundle( <ide> sourceMapUrl = path.basename(sourceMapUrl); <ide> } <ide> <del> config.transformModulePath = args.transformer <add> config.transformerPath = args.transformer <ide> ? path.resolve(args.transformer) <del> : config.transform...
3
Javascript
Javascript
fix error fonts (#826)
3813f73ece6d5e541dd59d751d430a0963a5970c
<ide><path>lib/error-debug.js <ide> const styles = { <ide> }, <ide> <ide> message: { <del> fontFamily: '"SF Mono", "Roboto Mono", "Fira Mono", menlo-regular, monospace', <del> fontSize: '10px', <add> fontFamily: '"SF Mono", "Roboto Mono", "Fira Mono", consolas, menlo-regular, monospace', <add> fontSize...
1
Java
Java
remove reacttextviewmanager subclasses
bb460468a4bff2b6cdab7f8d65d739654ed456d2
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java <ide> protected @Nullable ReactTextViewManagerCallback mReactTextViewManagerCallback; <ide> <ide> public ReactTextViewManager() { <del> super(); <add> this(null); <add> } <ide> <add> public ReactTextViewManager(@...
1
PHP
PHP
remove unused route
f17ac36e6a3ea284aee6344e2432205b0ffe08e7
<ide><path>app/Http/Middleware/AuthMiddleware.php <ide> <?php namespace App\Http\Middleware; <ide> <ide> use Closure; <del>use Illuminate\Routing\Route; <ide> use Illuminate\Contracts\Auth\Authenticator; <ide> use Illuminate\Contracts\Routing\Middleware; <ide> use Illuminate\Contracts\Routing\ResponseFactory;
1
Javascript
Javascript
remove obsolete tests with new tree-walking
5becbe3f08f5286b8db772519144bf9f1e832d2b
<ide><path>src/renderers/dom/client/__tests__/ReactMount-test.js <ide> describe('ReactMount', function() { <ide> }); <ide> } <ide> <del> it('warns when using two copies of React before throwing', function() { <del> jest.resetModuleRegistry(); <del> var RD1 = require('ReactDOM'); <del> jest.resetModuleR...
2
PHP
PHP
apply changes from feedback
e7e2e2954d12041bd8642c19154fe7bdfa61e30c
<ide><path>src/TestSuite/HttpClientTrait.php <ide> public function cleanupMockResponses(): void <ide> * @param string $body The body for the response. <ide> * @return \Cake\Http\Client\Response <ide> */ <del> public function newResponse(int $code = 200, array $headers = [], string $body = ''): Respons...
2
Python
Python
use unicode.translate to speed up js escaping
44767f2caf028d89e1a283d04bb552d0e18bb936
<ide><path>django/utils/html.py <ide> def escape(text): <ide> return mark_safe(force_text(text).replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;').replace('"', '&quot;').replace("'", '&#39;')) <ide> escape = allow_lazy(escape, six.text_type) <ide> <del>_base_js_escapes = ( <del> ('\\', '\\u005C'), ...
1
PHP
PHP
fix cs error
df161adb4e98d4645cfa0ce40e656c0aa5c45b5a
<ide><path>tests/TestCase/Command/RoutesCommandTest.php <ide> public function testCheckHelp() <ide> $this->assertErrorEmpty(); <ide> } <ide> <del> <ide> /** <ide> * Ensure routes check with no input <ide> *
1
Javascript
Javascript
set default easing using jquery.easing._default
5f2ea402582c7b8f4773771e1529d60587f3435e
<ide><path>src/effects.js <ide> function Animation( elem, properties, options ) { <ide> animation = deferred.promise({ <ide> elem: elem, <ide> props: jQuery.extend( {}, properties ), <del> opts: jQuery.extend( true, { specialEasing: {} }, options ), <add> opts: jQuery.extend( true, { <add> specialEasing:...
3
PHP
PHP
remove beta tag from front controller
13d5c301b447b2f5b6b5732c52f8789bb0e6312e
<ide><path>public/index.php <ide> * Laravel - A clean and classy framework for PHP web development. <ide> * <ide> * @package Laravel <del> * @version 2.0.0 Beta 2 <add> * @version 2.0.0 <ide> * @author Taylor Otwell <taylorotwell@gmail.com> <ide> * @link http://laravel.com <ide> */
1
Text
Text
add dana indonesia to the companies uses airflow
7c9cc41f85a909645840c7c307954b7e7420b916
<ide><path>INTHEWILD.md <ide> Currently, **officially** using Airflow: <ide> 1. [Cyscale](https://cyscale.com) [[@ocical](https://github.com/ocical)] <ide> 1. [Dailymotion](http://www.dailymotion.com/fr) [[@germaintanguy](https://github.com/germaintanguy) & [@hc](https://github.com/hc)] <ide> 1. [Danamica](https://www....
1
Mixed
Ruby
update repology parser and bump command
32656502796910d573b1788ba10ab90187abf231
<ide><path>Library/Homebrew/dev-cmd/bump.rb <ide> def bump_args <ide> <ide> def bump <ide> bump_args.parse <del> puts "command run" <del> # parse_repology_api() <add> # puts "command run" <add> outdated_repology_pacakges = RepologyParser.parse_api_response() <add> puts RepologyParser.validate__pac...
11
Python
Python
map nr to propn
aad0610a853b4731806397537f867878fec5efa8
<ide><path>spacy/lang/zh/tag_map.py <ide> from __future__ import unicode_literals <ide> <ide> from ...symbols import POS, PUNCT, ADJ, SCONJ, CCONJ, NUM, DET, ADV, ADP, X <del>from ...symbols import NOUN, PART, INTJ, PRON, VERB, SPACE <add>from ...symbols import NOUN, PART, INTJ, PRON, VERB, SPACE, PROPN <ide> <ide> #...
1
Text
Text
fix typo in the new issue template
f9e07fcaab781d9d7e37348f5af37a832cd914ea
<ide><path>.github/ISSUE_TEMPLATE.md <ide> If Homebrew was updated on Aug 10-11th 2016 and `brew update` always says `Alrea <ide> <ide> - [ ] Ran `brew update` and retried your prior step? <ide> - [ ] Ran `brew doctor`, fixed as many issues as possible and retried your prior step? <del>- [ ] Confirmed this is problem ...
1
Javascript
Javascript
add jsdoc typings for child_process
9d3a592fffc117c08e4fbff7bb6be3b05a112bfd
<ide><path>lib/child_process.js <ide> const { <ide> <ide> const MAX_BUFFER = 1024 * 1024; <ide> <add>/** <add> * Spawns a new Node.js process + fork. <add> * @param {string} modulePath <add> * @param {string[]} [args] <add> * @param {{ <add> * cwd?: string; <add> * detached?: boolean; <add> * env?: Object; <add...
1
Javascript
Javascript
simplify browserslist syntax
d1970115a418e97f3fb95d8511c973a3843549e4
<ide><path>lib/config/browserslistTargetHandler.js <ide> <ide> "use strict"; <ide> <add>const path = require("path"); <ide> const browserslist = require("browserslist"); <ide> <del>// ?query|[///path/to/config][:env] <del>const inputRx = /^(?:\?(.+?)|(?:\/\/(.+?))?(?::(.+?))?)$/; <add>// query|[/path/to/config][:env...
5
PHP
PHP
fix pluralization of "chef"
11f2e58794714db053cdad0f558dd8dfc71bcd58
<ide><path>src/Utility/Inflector.php <ide> class Inflector <ide> '/(x|ch|ss|sh)$/i' => '\1es', <ide> '/([^aeiouy]|qu)y$/i' => '\1ies', <ide> '/(hive)$/i' => '\1s', <add> '/(chef)$/i' => '\1s', <ide> '/(?:([^f])fe|([lre])f)$/i' => '\1\2ves', <ide> '/sis$/i' => 'ses', <ide> ...
2
Python
Python
use gray and hsv colormaps in examples
a55e197cf4164926f0a16954a2d2ec3e19e119ef
<ide><path>numpy/core/code_generators/ufunc_docstrings.py <ide> def add_newdoc(place, name, doc): <ide> Plot the function over the complex plane: <ide> <ide> >>> xx = x + 1j * x[:, np.newaxis] <del> >>> plt.imshow(np.abs(xx), extent=[-10, 10, -10, 10]) <add> >>> plt.imshow(np.abs(xx), extent=[-10, 10, -1...
1
Javascript
Javascript
add comments to pipeline implementation
960be159ac3b21bf8a4f8c3bca7e733d483fb7d9
<ide><path>lib/internal/streams/pipeline.js <ide> function pipeline(...streams) { <ide> PassThrough = require('_stream_passthrough'); <ide> } <ide> <add> // If the last argument to pipeline is not a stream <add> // we must create a proxy stream so that pipeline(...) <add> // alwa...
1
PHP
PHP
allow scheduling of queued jobs
52016015ad9d51278bbe91310b9cf5315d2a7289
<ide><path>src/Illuminate/Console/Scheduling/Schedule.php <ide> <ide> use Illuminate\Console\Application; <ide> use Illuminate\Container\Container; <add>use Illuminate\Contracts\Queue\ShouldQueue; <ide> use Symfony\Component\Process\ProcessUtils; <ide> use Illuminate\Contracts\Cache\Repository as Cache; <ide> <ide> p...
1
Javascript
Javascript
fix atomenvironment tests
011766768a77e543bac0c23cde20ff211288c5da
<ide><path>spec/atom-environment-spec.js <ide> describe('AtomEnvironment', () => { <ide> const promise = new Promise((r) => { resolve = r }) <ide> envLoaded = () => { <ide> resolve() <del> promise <add> return promise <ide> } <ide> atomEnvironment = new AtomEnvironment({ <i...
2
Javascript
Javascript
check getreport when error with one line stack
c25cccf1302e779cebbefc9948f2fae700c5296f
<ide><path>test/report/test-report-getreport.js <ide> common.expectWarning('ExperimentalWarning', <ide> assert.deepStrictEqual(helper.findReports(process.pid, process.cwd()), []); <ide> } <ide> <add>{ <add> // Test with an error with one line stack <add> const error = new Error(); <add> error.stack = 'only one li...
1
Javascript
Javascript
fix fallback after new download
87d9651eb71d574b5d979f61375faf23938f5dd2
<ide><path>extensions/firefox/components/PdfStreamConverter.js <ide> ChromeActions.prototype = { <ide> searchEnabled: function() { <ide> return getBoolPref(PREF_PREFIX + '.searchEnabled', false); <ide> }, <del> fallback: function(url) { <add> fallback: function(url, sendResponse) { <ide> var self = this; ...
2
Python
Python
fix some tests for py3
87cf71e97cc256fb6e86c921c0c5d6c54a037910
<ide><path>numpy/compat/py3k.py <ide> <ide> """ <ide> <del>__all__ = ['bytes', 'asbytes', 'isfileobj', 'getexception'] <add>__all__ = ['bytes', 'asbytes', 'isfileobj', 'getexception', 'strchar'] <ide> <ide> import sys <ide> <ide> def asbytes(s): <ide> return s.encode('iso-8859-1') <ide> def isfileobj(f)...
2
Python
Python
fix typo in layer.add_loss.
a095c1b16f8368a996ec345c4f3fd0a77cdf54f3
<ide><path>keras/engine/topology.py <ide> def add_loss(self, losses, inputs=None): <ide> if hasattr(self, '_losses'): <ide> self._losses += losses <ide> # Update self._per_input_updates <del> if isinstance(input, list) and inputs == []: <add> if isinstance(inputs, list) and inp...
1
Python
Python
handle list when serializing expand_kwargs
b816a6b243d16da87ca00e443619c75e9f6f5816
<ide><path>airflow/serialization/serialized_objects.py <ide> """Serialized DAG and BaseOperator""" <ide> from __future__ import annotations <ide> <add>import collections.abc <ide> import datetime <ide> import enum <ide> import logging <ide> import warnings <ide> import weakref <ide> from dataclasses import dataclass <...
2
Python
Python
remove outdated comment in serializermethodfield
62ae241894fc49a7c6261cb1b6e3b9c98768ecf0
<ide><path>rest_framework/fields.py <ide> def __init__(self, method_name=None, **kwargs): <ide> super().__init__(**kwargs) <ide> <ide> def bind(self, field_name, parent): <del> # In order to enforce a consistent style, we error if a redundant <del> # 'method_name' argument has been used. For ...
1
Text
Text
remove note about python 3.10 support availability
b7f60d326718c3f19c19a41c90afeb25582695e2
<ide><path>README.md <ide> MariaDB is not tested/recommended. <ide> **Note**: SQLite is used in Airflow tests. Do not use it in production. We recommend <ide> using the latest stable version of SQLite for local development. <ide> <del>**Note**: Support for Python v3.10 will be available from Airflow 2.3.0. The `main` ...
1
Python
Python
replace field-errors with field_errors
904f197474ad3561d3d273961a70ab19d8175aaf
<ide><path>djangorestframework/tests/validators.py <ide> def validation_failed_due_to_no_content_returns_appropriate_message(self, valida <ide> try: <ide> validator.validate_request(content, None) <ide> except ErrorResponse, exc: <del> self.assertEqual(exc.response.raw_content, {'...
1
Ruby
Ruby
use symbol for mail preview format, not string
663548845b265d97118999eea83bf05a7d41161f
<ide><path>railties/lib/rails/mailers_controller.rb <ide> def preview <ide> end <ide> else <ide> @part = find_preferred_part(request.format, Mime[:html], Mime[:text]) <del> render action: "email", layout: false, formats: %w[html] <add> render action: "email", layout: false,...
1
Javascript
Javascript
update script.aculo.us scripts to fix some bugs
c9f2389c010ba9364a4454b45b3cedd4dd273c38
<ide><path>actionpack/lib/action_view/helpers/javascripts/controls.js <ide> Ajax.Autocompleter.prototype = (new Ajax.Base()).extend({ <ide> onComplete: function(request) { <ide> if(!this.changed) { <ide> this.update.innerHTML = request.responseText; <add> Element.cleanWhitespace(this.update.firstChild)...
3
Ruby
Ruby
persist glob when replacing a path
0f4d005501c4230fcdf8d64d530639f5bcda6086
<ide><path>railties/lib/rails/paths.rb <ide> def initialize(path) <ide> end <ide> <ide> def []=(path, value) <del> add(path, :with => value) <add> glob = self[path] ? self[path].glob : nil <add> add(path, :with => value, :glob => glob) <ide> end <ide> <ide> def add(path, o...
2
Python
Python
add test for unicode, parametrize for chunksize
370792b3929aa9c66403c9509f08cb7921347352
<ide><path>numpy/lib/tests/test_loadtxt.py <ide> def test_control_character_newline_raises(nl): <ide> np.loadtxt(txt, quotechar=nl) <ide> <ide> <del>def test_datetime_parametric_unit_discovery(): <add>@pytest.mark.parametrize( <add> ("generic_data", "long_datum", "unitless_dtype", "expected_dtype"), <add> ...
1
Text
Text
add dev notes
eb14a670e7b95fac283bf996f6225aad507a2d61
<ide><path>DEVELOPMENT.md <add># DEVELOPMENT NOTES <add> <add>## archiving old versions <add> <add>(hopefully automated someday) <add> <add>1. make repo on github <add>2. in threejsfundamentals.org <add> 1. git fetch origin gh-pages <add> 2. git checkout gh-pages <add> 3. git rebase origin/gh-pages? <add> 4. gi...
1
Text
Text
add upgrading guide from next.js 9 to 10
feb0cb497b61946f98bb00520704e09e23209730
<ide><path>docs/upgrading.md <ide> description: Learn how to upgrade Next.js. <ide> <ide> # Upgrade Guide <ide> <del>## Upgrading from version 8 to 9.0.x <add>## Upgrading from version 9 to 10 <add> <add>There were no breaking changes between version 9 and 10. <add> <add>To upgrade run the following command: <add> <a...
1
Python
Python
fix weight saving and loading
983c68bf4738f54e74921a52eb2b717b8b9ada41
<ide><path>keras/layers/core.py <ide> def connect(self, node): <ide> <ide> def get_weights(self): <ide> weights = [] <del> for m in encoders + decoders: <add> for m in self.encoders + self.decoders: <ide> weights += m.get_weights() <ide> return weights <ide> <ide> def...
1
Python
Python
fix bigquery_dts parameter docstring typo
73eb24f25c2d60fb3a2d8fe2ed64b3c165f8d4c6
<ide><path>airflow/providers/google/cloud/operators/bigquery_dts.py <ide> class BigQueryCreateDataTransferOperator(BaseOperator): <ide> :param project_id: The BigQuery project id where the transfer configuration should be <ide> created. If set to None or missing, the default project_id from the Google C...
1
Javascript
Javascript
update $location api close #62
1cad16c6f9144113e2b458ce91af8fcb0211c173
<ide><path>src/services.js <ide> angularServiceInject("$location", function(browser) { <ide> scope.$eval(); <ide> } <ide> }); <del> <add> <ide> this.$onEval(PRIORITY_FIRST, updateBrowser); <ide> this.$onEval(PRIORITY_LAST, updateBrowser); <del> <add> <ide> update(lastLocationHref); <ide> lastLoc...
1
Ruby
Ruby
use formula#tap to get the repository name
944ac75b2460859151c103efc2b49b31e133e9ec
<ide><path>Library/Contributions/cmd/brew-gist-logs.rb <ide> def gist_logs f <ide> puts 'and then set HOMEBREW_GITHUB_API_TOKEN to use --new-issue option.' <ide> exit 1 <ide> end <del> repo = repo_name(f) <ide> end <ide> <ide> files = load_logs(f.name) <ide> def gist_logs f <ide> url = create_...
1
Javascript
Javascript
add spec for datepickerandroid
34d88bc5976870e0de93f217f1c29c83e4648213
<ide><path>Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js <ide> <ide> 'use strict'; <ide> <del>const DatePickerModule = require('../../BatchedBridge/NativeModules') <del> .DatePickerAndroid; <ide> import type {Options, DatePickerOpenAction} from './DatePickerAndroidTypes'; <add>import NativeDate...
2
Python
Python
fix display of minutes in time+
168cdef81887b4df9b8033f2f590512ed5c53273
<ide><path>glances/glances.py <ide> def displayProcess(self, processcount, processlist, log_count=0): <ide> process_time = processlist[processes]['proc_time'] <ide> dtime = timedelta(seconds=sum(process_time)) <ide> dtime = "{0}:{1}.{2}".format( <del> ...
1
Text
Text
update pre-req to node.js 18
eba1ea58a2b3bcbdf335e9c32c28d28cfa29e582
<ide><path>docs/how-to-setup-freecodecamp-locally.md <ide> Some community members also develop on Windows 10 natively with Git for Windows <ide> <ide> | Prerequisite | Version | Notes ...
1
Python
Python
fix `pool3d` padding of theano
1c9a49781da2101507db23e2014e4e5d16bd2e52
<ide><path>keras/backend/theano_backend.py <ide> def pool3d(x, pool_size, strides=(1, 1, 1), padding='valid', <ide> w_pad = pool_size[0] - 2 if pool_size[0] % 2 == 1 else pool_size[0] - 1 <ide> h_pad = pool_size[1] - 2 if pool_size[1] % 2 == 1 else pool_size[1] - 1 <ide> d_pad = pool_size[2] - 2...
1
Javascript
Javascript
run the support test once only
1f16b168594f5b98341fd7db0b9fb5b3e84217c8
<ide><path>src/css.js <ide> jQuery.cssHooks.marginRight = { <ide> delete jQuery.cssHooks.marginRight; <ide> return; <ide> } <del> if ( computed ) { <del> // Support: Android 2.3 <del> // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right <del> // Work around by temporarily setting e...
1
Python
Python
remove datetime_parser argument from datetimefield
6ce9e3baf04eb8587e53ae05979c3c198cd51110
<ide><path>rest_framework/fields.py <ide> class DateTimeField(Field): <ide> default_timezone = timezone.get_default_timezone() if settings.USE_TZ else None <ide> datetime_parser = datetime.datetime.strptime <ide> <del> def __init__(self, format=empty, datetime_parser=None, input_formats=None, default_timezo...
1
Go
Go
ignore false positives
7c91fd4240ed7024cd1f23ac0a27a5338671c251
<ide><path>integration/build/build_session_test.go <ide> func TestBuildWithSession(t *testing.T) { <ide> assert.Check(t, is.Equal(du.BuilderSize, int64(0))) <ide> } <ide> <add>//nolint:unused // false positive: linter detects this as "unused" <ide> func testBuildWithSession(t *testing.T, client dclient.APIClient, dae...
3
Python
Python
use func.count to count rows
2111d73a9277c8e036279f2cc59f146270ef8e5b
<ide><path>airflow/models/trigger.py <ide> def assign_unassigned(cls, triggerer_id, capacity, session=None): <ide> """ <ide> from airflow.jobs.base_job import BaseJob # To avoid circular import <ide> <del> count = session.query(cls.id).filter(cls.triggerer_id == triggerer_id).count() <add> ...
2
Javascript
Javascript
improve coverage at `lib/internal/vm/module.js`
146f0fc495d1ceb19542dfc145e55060e0ad4eec
<ide><path>test/parallel/test-vm-module-synthetic.js <ide> const assert = require('assert'); <ide> code: 'ERR_VM_MODULE_STATUS', <ide> }); <ide> } <add> <add> { <add> assert.throws(() => { <add> SyntheticModule.prototype.setExport.call({}, 'foo'); <add> }, { <add> code: 'ERR_VM_MODULE_NOT_M...
1
Javascript
Javascript
improve test coverage
22b839845c204310e8d78e28dd0cf9f6b3fff6aa
<ide><path>test/simple/test-string-decoder.js <ide> var common = require('../common'); <ide> var assert = require('assert'); <ide> var StringDecoder = require('string_decoder').StringDecoder; <del>var decoder = new StringDecoder('utf8'); <del> <del> <del> <del>var buffer = new Buffer('$'); <del>assert.deepEqual('$', de...
1
Ruby
Ruby
preinstall any pre-fetch dependencies
508b48d19e1627db45d33b82e1a2159a010594a5
<ide><path>Library/Homebrew/dependency_collector.rb <ide> def fetch(spec) <ide> end <ide> <ide> def cache_key(spec) <del> if spec.is_a?(Resource) && spec.download_strategy == CurlDownloadStrategy <add> if spec.is_a?(Resource) && spec.download_strategy <= CurlDownloadStrategy <ide> File.extname(spec.url...
2
Python
Python
add backward compatible `deprecate_with_doc`
8dc57cd463d7ed28b1ec7bdd87a6e2f930f54dda
<ide><path>numpy/lib/utils.py <ide> from numpy.core import product, ndarray <ide> <ide> __all__ = ['issubclass_', 'get_numpy_include', 'issubsctype', <del> 'issubdtype', 'deprecate', 'get_numarray_include', <del> 'get_include', 'info', 'source', 'who', 'lookfor', <add> 'issubdtype', 'depr...
1
PHP
PHP
apply fixes from styleci
8cbdf8fa668898c98b750c394e555c2db682b2b2
<ide><path>tests/Integration/Foundation/Fixtures/EventDiscovery/UnionListeners/UnionListener.php <ide> <ide> class UnionListener <ide> { <del> public function handle(EventOne|EventTwo $event) <add> public function handle(EventOne | EventTwo $event) <ide> { <ide> // <ide> }
1
Ruby
Ruby
fix strategy error
a920f74671d0a9acf5bc50939333dbce98468b0c
<ide><path>Library/Homebrew/dev-cmd/pr-pull.rb <ide> def pr_pull <ide> next <ide> end <ide> <del> GitHub.fetch_artifact(user, repo, pr, dir, workflow_id: workflow, artifact_name: artifact) <add> GitHub.fetch_artifact(user, repo, pr, dir, workflow_id: workflow, <add> ...
1
Ruby
Ruby
follow the pattern more closely
769cab7e4f936c8ebb04852b1f6202479a34710f
<ide><path>Library/Homebrew/extend/os/dependency_collector.rb <add>require "dependency_collector" <add> <ide> if OS.mac? <ide> require "extend/os/mac/dependency_collector" <ide> elsif OS.linux? <ide><path>Library/Homebrew/extend/os/linux/dependency_collector.rb <del>def ant_dep(spec, tags) <del> Dependency.new(spec....
3
Javascript
Javascript
increase http2 coverage
340b3be1df9e8ade94c4767c7ff6d7c6d3003ea6
<ide><path>test/parallel/test-http2-getpackedsettings.js <ide> assert.doesNotThrow(() => http2.getPackedSettings({ enablePush: false })); <ide> assert.deepStrictEqual(packed, check); <ide> } <ide> <add>// check for not passing settings <add>{ <add> const packed = http2.getPackedSettings(); <add> assert.strictEqual...
1
Python
Python
fix use of mems in transformer-xl
812def00c9497513f5da4f51c795465b3cacd887
<ide><path>src/transformers/modeling_transfo_xl.py <ide> def get_output_embeddings(self): <ide> return self.crit.out_layers[-1] <ide> <ide> def prepare_inputs_for_generation(self, input_ids, past, **model_kwargs): <del> inputs = {"input_ids": input_ids} <add> inputs = {} <ide> <ide> ...
1
Python
Python
add copyto example
cf2b314a4c5fb7bb05c1d265d2ba3e22bd859203
<ide><path>numpy/core/multiarray.py <ide> def copyto(dst, src, casting=None, where=None): <ide> A boolean array which is broadcasted to match the dimensions <ide> of `dst`, and selects elements to copy from `src` to `dst` <ide> wherever it contains the value True. <add> <add> Examples <add> ...
1
Javascript
Javascript
throw tojson errors when formatting %j
455e6f1dd88dc43b9e6d95fadb24c2cad3798ac7
<ide><path>lib/util.js <ide> const inspectDefaultOptions = Object.seal({ <ide> breakLength: 60 <ide> }); <ide> <add>const CIRCULAR_ERROR_MESSAGE = 'Converting circular structure to JSON'; <add> <ide> var Debug; <ide> <ide> function tryStringify(arg) { <ide> try { <ide> return JSON.stringify(arg); <del> } cat...
2
Go
Go
use strings.index instead of strings.split
5702a89db6ce055c243a4197ba80738028aa5792
<ide><path>container/container.go <ide> func (container *Container) CreateDaemonEnvironment(tty bool, linkedEnv []string <ide> if os == "" { <ide> os = runtime.GOOS <ide> } <del> env := []string{} <add> <add> // Figure out what size slice we need so we can allocate this all at once. <add> envSize := len(container.C...
3
PHP
PHP
remove session.auto_start configuration
faa2cbd3c3fc1bbf83064727847789123110b8e3
<ide><path>lib/Cake/Model/Datasource/CakeSession.php <ide> protected static function _defaultConfig($name) { <ide> 'session.serialize_handler' => 'php', <ide> 'session.use_cookies' => 1, <ide> 'session.cookie_path' => self::$path, <del> 'session.auto_start' => 0, <ide> 'session.save_path' => TMP...
1
PHP
PHP
fix doc block
b88df5d77d490bf76befe022b67423358b16de62
<ide><path>src/Illuminate/Events/Dispatcher.php <ide> protected function addInterfaceListeners($eventName, array $listeners = []) <ide> /** <ide> * Register an event listener with the dispatcher. <ide> * <del> * @param \Closure|string $listener <add> * @param \Closure|string|array $listener <i...
1
Ruby
Ruby
fix initialization proccess of the query tags
18cd634e07be1ebea1d877b470d4076ef6c550a9
<ide><path>actionpack/lib/action_controller/railtie.rb <ide> class Railtie < Rails::Railtie # :nodoc: <ide> end <ide> <ide> initializer "action_controller.query_log_tags" do |app| <del> ActiveSupport.on_load(:active_record) do <del> if app.config.active_record.query_log_tags_enabled && app.config.a...
2
Javascript
Javascript
inline expectations in tests as they are used once
58c9fda94655327a35e239a2770031f93b8e9948
<ide><path>src/isomorphic/classic/element/__tests__/ReactElement-test.js <ide> describe('ReactElement', function() { <ide> expect(element.type).toBe(ComponentClass); <ide> expect(element.key).toBe(null); <ide> expect(element.ref).toBe(null); <del> var expectation = {}; <ide> expect(Object.isFrozen(el...
2
Java
Java
update copyright header for xstreammarshaller
c85b6116009ba41202ce6100aa23efc336be1120
<ide><path>spring-oxm/src/main/java/org/springframework/oxm/xstream/XStreamMarshaller.java <ide> /* <del> * Copyright 2002-2011 the original author or authors. <add> * Copyright 2002-2012 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may n...
1
Text
Text
fix some links
f88178906bd0e9678f70e8f95522192adc5b3872
<ide><path>doc/api/assert.md <ide> Primitive values are compared with the [Abstract Equality Comparison][] <ide> Only [enumerable "own" properties][] are considered. The <ide> [`assert.deepEqual()`][] implementation does not test the <ide> [`[[Prototype]]`][prototype-spec] of objects or enumerable own [`Symbol`][] <del...
4
Python
Python
fix barthez tokenizer
245cdb469d2a7f47316926fdbac925e0ed149332
<ide><path>src/transformers/models/auto/tokenization_auto.py <ide> (AlbertConfig, (AlbertTokenizer, AlbertTokenizerFast)), <ide> (CamembertConfig, (CamembertTokenizer, CamembertTokenizerFast)), <ide> (PegasusConfig, (PegasusTokenizer, PegasusTokenizerFast)), <del> (MBartConfig, (BarthezTo...
1
Ruby
Ruby
convert `digest` to only use kwargs
e4c3225b2c9475ebfac474c7196dec2feb290e5a
<ide><path>actionview/lib/action_view/digestor.rb <ide> class << self <ide> # * <tt>finder</tt> - An instance of <tt>ActionView::LookupContext</tt> <ide> # * <tt>dependencies</tt> - An array of dependent views <ide> # * <tt>partial</tt> - Specifies whether the template is a partial <del> def d...
1
Ruby
Ruby
add set union to options
b2ccbfe6af2adaf7cc4f0e2af691f428704d5658
<ide><path>Library/Homebrew/options.rb <ide> def &(o) <ide> Options.new(@options & o) <ide> end <ide> <add> def |(o) <add> Options.new(@options | o) <add> end <add> <ide> def *(arg) <ide> @options.to_a * arg <ide> end <ide><path>Library/Homebrew/test/test_options.rb <ide> def test_intersection <ide>...
2
Javascript
Javascript
avoid linear scan in _unrefactive
e5bb66886bfa40818de7a96e982c5964eef9eb78
<ide><path>lib/timers.js <ide> function unrefTimeout() { <ide> <ide> debug('unrefTimer fired'); <ide> <del> var diff, domain, first, threw; <del> while (first = L.peek(unrefList)) { <del> diff = now - first._idleStart; <add> var timeSinceLastActive; <add> var nextTimeoutTime; <add> var nextTimeoutDuration; ...
2
Text
Text
add sca for guerda
5d067bcc5e480ed6b446e0e80ddf97b6a42cc80e
<ide><path>.github/contributors/guerda.md <add># spaCy contributor agreement <add> <add>This spaCy Contributor Agreement (**"SCA"**) is based on the <add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf). <add>The SCA applies to any contribution that you make to any product or project <ad...
1
Text
Text
fix typo in doc/api/packages.md
d5c3ed0b09f74e3d76fd844e6684ad9d54c87f36
<ide><path>doc/api/packages.md <ide> New conditions definitions may be added to this list by creating a PR to the <ide> [Node.js documentation for this section][]. The requirements for listing a <ide> new condition definition here are that: <ide> <del>* The definition should be clear and unambigious for all implemente...
1
Go
Go
ensure workdir handled in platform semantics
6c56f917d3facec1438d03712f8a26d929fbe5ea
<ide><path>daemon/daemon.go <ide> func (daemon *Daemon) verifyContainerSettings(hostConfig *runconfig.HostConfig, <ide> <ide> // First perform verification of settings common across all platforms. <ide> if config != nil { <del> if config.WorkingDir != "" && !system.IsAbs(config.WorkingDir) { <del> return nil, fmt...
1
PHP
PHP
add a comment about the route
5049b298140846001963ab621e078b134b159d3a
<ide><path>src/Illuminate/Auth/Console/RemindersControllerCommand.php <ide> public function fire() <ide> $this->files->copy(__DIR__.'/stubs/controller.stub', $destination); <ide> <ide> $this->info('Password reminders controller created successfully!'); <add> <add> $this->comment("Route: Route::controller('pass...
1
Text
Text
add animation for heap sort
a170997eafc15733baa70a858600a47c34daacf2
<ide><path>README.md <ide> __Properties__ <ide> <ide> <ide> ### Heap <add>![alt text][heapsort-image] <ide> <ide> **Heapsort** is a _comparison-based_ sorting algorithm. It can be thought of as an improved selection sort. It divides its input into a sorted and an unsorted region, and it iteratively shrinks the unsor...
1
Javascript
Javascript
add more export tests for amp
20e4a5049e5b1f04107df0389946849f28fc657b
<ide><path>packages/next/export/index.js <ide> import { resolve, join } from 'path' <ide> import { existsSync, readFileSync } from 'fs' <ide> import loadConfig from 'next-server/next-config' <ide> import { tryAmp } from 'next-server/dist/server/require' <add>import { cleanAmpPath } from 'next-server/dist/server/utils' ...
8
Python
Python
add a couple of tests for nextafter
19b5dea4e52c96c08ee364295137f69af15c724e
<ide><path>numpy/core/tests/test_umath.py <ide> def test_copysign(): <ide> assert np.signbit(np.copysign(np.nan, -1)) <ide> assert not np.signbit(np.copysign(np.nan, 1)) <ide> <add>def test_nextafter(): <add> for t in [np.float32, np.float64, np.longdouble]: <add> one = t(1) <add> two = t(2) <...
1
Javascript
Javascript
move suppression to primary locations in xplat/js
a3d9e912036f6a87fb0479bc90703611ebbe5f4e
<ide><path>Libraries/Animated/src/nodes/AnimatedInterpolation.js <ide> type ExtrapolateType = 'extend' | 'identity' | 'clamp'; <ide> <ide> export type InterpolationConfigType = { <ide> inputRange: $ReadOnlyArray<number>, <del> /* $FlowFixMe(>=0.38.0 site=react_native_fb,react_native_oss) - Flow error <del> * dete...
14
Python
Python
add image_and_boxes_tensor to helper doc string
d3c73c21d939d5c2a736741e2303b5058bbd5f39
<ide><path>research/object_detection/exporter_lib_v2.py <ide> def __call__(self, input_tensor): <ide> _decode_tf_example) <ide> return self._run_inference_on_images(images, true_shapes) <ide> <del>DETECTION_MODULE_MAP = { <del> 'image_tensor': DetectionFromImageM...
2
Ruby
Ruby
compare sorted arrays in relations_test
acef8feafa8a44271eb28685e180f8c28b7e4a0f
<ide><path>activerecord/test/cases/relations_test.rb <ide> def test_finding_with_group <ide> <ide> def test_select_with_block <ide> even_ids = Developer.scoped.select {|d| d.id % 2 == 0 }.map(&:id) <del> assert_equal [2, 4, 6, 8, 10], even_ids <add> assert_equal [2, 4, 6, 8, 10], even_ids.sort <ide> end ...
1
Python
Python
remove extraenous whitespace using pystrip
2723ca06da0171116cb443249f90a20c8cce7f1b
<ide><path>celery/backends/__init__.py <ide> def get_backend_cls(backend): <ide> <ide> """ <ide> .. class:: DefaultBackend <del> <add> <ide> The default backend class used for storing task results and status, <ide> specified in :setting:`CELERY_BACKEND`. <ide> <ide><path>celery/backends/base.py <ide> def ...
7
Ruby
Ruby
expand requirements only once
12158b201dc67e96cf8cceb700f569d16aab756d
<ide><path>Library/Homebrew/build.rb <ide> def main <ide> end <ide> <ide> class Build <del> attr_reader :f, :deps <add> attr_reader :f, :deps, :reqs <ide> <ide> def initialize(f) <ide> @f = f <ide> @deps = expand_deps <add> @reqs = f.recursive_requirements <ide> end <ide> <ide> def post_superenv_h...
1
Javascript
Javascript
change callback function to arrow function
f63dc27eecf21b004e1656b779622742a863deb9
<ide><path>test/parallel/test-zlib-invalid-input.js <ide> const unzips = [ <ide> <ide> nonStringInputs.forEach(common.mustCall((input) => { <ide> // zlib.gunzip should not throw an error when called with bad input. <del> zlib.gunzip(input, function(err, buffer) { <add> zlib.gunzip(input, (err, buffer) => { <ide> ...
1
Text
Text
add container list filtering to api docs
37bdb05615763f94f7877cce3426752d43b48ff7
<ide><path>docs/sources/reference/api/docker_remote_api_v1.14.md <ide> Query Parameters: <ide> - **since** – Show only containers created since Id, include non-running ones. <ide> - **before** – Show only containers created before Id, include non-running ones. <ide> - **size** – 1/True/true or 0/False/false, Show...
3
Python
Python
log the found compiler version if too old
639085e410e805303b4511edee4c2a315006a7f8
<ide><path>configure.py <ide> def check_compiler(o): <ide> if not ok: <ide> warn('failed to autodetect C++ compiler version (CXX=%s)' % CXX) <ide> elif clang_version < (8, 0, 0) if is_clang else gcc_version < (6, 3, 0): <del> warn('C++ compiler too old, need g++ 6.3.0 or clang++ 8.0.0 (CXX=%s)' % CXX) <add> ...
1
Python
Python
add more type annotations to aws hooks
383a118d2df618e46d81c520cd2c4a31d81b33dd
<ide><path>airflow/providers/amazon/aws/hooks/aws_dynamodb.py <ide> """ <ide> This module contains the AWS DynamoDB hook <ide> """ <add>from typing import Iterable, List, Optional <add> <ide> from airflow.exceptions import AirflowException <ide> from airflow.providers.amazon.aws.hooks.base_aws import AwsBaseHook <ide> ...
10
Text
Text
add readme for http package
8702a908a9b275f66bae7e49838899e6bdd400d7
<ide><path>src/Http/README.md <add>[![Total Downloads](https://img.shields.io/packagist/dt/cakephp/http.svg?style=flat-square)](https://packagist.org/packages/cakephp/http) <add>[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE.txt) <add> <add># CakePHP Http Library <add> <add>Th...
1
Text
Text
fix error of a file name
a2fa326139bca583e97159d656b2ca06c2dbb7f4
<ide><path>guides/source/initialization.md <ide> load Gem.bin_path('railties', 'rails', version) <ide> ``` <ide> <ide> If you try out this command in a Rails console, you would see that this loads <del>`railties/exe/rails`. A part of the file `railties/exe/rails.rb` has the <add>`railties/exe/rails`. A part of the fil...
1
Text
Text
fix typo in "with-eslint" example docs
429f63dd76817f4a275a0caa73d3a0c90497c617
<ide><path>examples/with-eslint/README.md <ide> Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_mediu <ide> Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/doc...
1
Text
Text
remove usage of "node" in favor of "node.js"
d2d5c970158d01a4da8e644da3202a2666414d91
<ide><path>SECURITY.md <ide> the HackerOne platform. See <https://hackerone.com/nodejs> for further details. <ide> ## Reporting a Bug in a third party module <ide> <ide> Security bugs in third party modules should be reported to their respective <del>maintainers and should also be coordinated through the Node Ecosyste...
4
Text
Text
remove broken wiki link from test/common doc
cd075f488aedbbe712a2672e82ca2d1aea3ba5d0
<ide><path>test/common/README.md <ide> See [the WPT tests README][] for details. <ide> [Web Platform Tests]: https://github.com/web-platform-tests/wpt <ide> [`hijackstdio.hijackStdErr()`]: #hijackstderrlistener <ide> [`hijackstdio.hijackStdOut()`]: #hijackstdoutlistener <del>[internationalization]: https://github.com/n...
1
Ruby
Ruby
fix broken mysql test [frederick.cheung@gmail.com]
1abe5a2dedc25d0dcfdff74c65aebc20ccf3011f
<ide><path>activerecord/test/migration_test.rb <ide> def test_unabstracted_database_dependent_types <ide> Person.delete_all <ide> <ide> ActiveRecord::Migration.add_column :people, :intelligence_quotient, :tinyint <add> Person.reset_column_information <ide> Person.create :intelligence_quo...
1