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
PHP
PHP
pass model binding value to callback
c3d3a52d670e1514ea9b9106c24982cb19d0280d
<ide><path>src/Illuminate/Routing/Router.php <ide> public function model($key, $class, Closure $callback = null) <ide> // developer a little greater flexibility to decide what will happen. <ide> if ($callback instanceof Closure) <ide> { <del> return call_user_func($callback); <add> return call_user_func_...
2
Ruby
Ruby
remove duplicate code
e2be6eacb86aa11f2c606d45a639802e946e911a
<ide><path>activerecord/lib/active_record/associations/belongs_to_association.rb <ide> def replace(record) <ide> set_inverse_instance(record) <ide> @updated = true <ide> else <del> update_counters_without_record <add> decrement_counters <ide> remove_keys <ide> ...
1
Python
Python
remove test for backend.is_successful
5692bb1c893182e5aac7271161e64fa9d1a03f2f
<ide><path>celery/tests/test_backends/test_base.py <ide> class TestBaseBackendInterface(unittest.TestCase): <ide> <ide> def test_get_status(self): <ide> self.assertRaises(NotImplementedError, <del> b.is_successful, "SOMExx-N0Nex1stant-IDxx-") <add> b.get_status, "SOMExx-N0Nex1...
1
Mixed
Javascript
add retrydelay option to rimraf
b7cdeb8a3a39000944106ddcd8ebcd5d1a8a5486
<ide><path>doc/api/fs.md <ide> changes: <ide> pr-url: https://github.com/nodejs/node/pull/30644 <ide> description: The `maxBusyTries` option is renamed to `maxRetries`, and its <ide> default is 0. The `emfileWait` option has been removed, and <del> `EMFILE` errors use the same r...
4
PHP
PHP
add unit testing for the withouttouchingon method
53510ea30b58dd4510b20b241202a896db1cd261
<ide><path>tests/Database/DatabaseEloquentModelTest.php <ide> public function testWithoutTouchingCallback() <ide> $this->assertTrue($model->shouldTouch()); <ide> } <ide> <add> public function testWithoutTouchingOnCallback() <add> { <add> $model = new EloquentModelStub(['id' => 1]); <add> <add>...
1
Javascript
Javascript
remove globals from ember.select documentation
a13e9894a027b28b9ad05bde62d103acb881532f
<ide><path>packages/ember-handlebars/lib/controls/select.js <ide> Ember.SelectOptgroup = Ember.CollectionView.extend({ <ide> Example: <ide> <ide> ```javascript <del> App.names = ["Yehuda", "Tom"]; <add> App.ApplicationController = Ember.Controller.extend({ <add> names: ["Yehuda", "Tom"] <add> }); <ide> ```...
1
Go
Go
run build session tests on non-experimental
becd29c6651dffc253027e15f903ae7e7c918594
<ide><path>integration/build/build_session_test.go <ide> import ( <ide> "testing" <ide> <ide> "github.com/docker/docker/api/types" <add> "github.com/docker/docker/api/types/versions" <ide> dclient "github.com/docker/docker/client" <del> "github.com/docker/docker/internal/test/daemon" <ide> "github.com/docker/docke...
2
Javascript
Javascript
remove use of jquery#each second argument
a4715f4216ace92fba6991106053415e66289686
<ide><path>src/ajax/load.js <ide> jQuery.fn.load = function( url, params, callback ) { <ide> // but they are ignored because response was set above. <ide> // If it fails, this function gets "jqXHR", "status", "error" <ide> }).always( callback && function( jqXHR, status ) { <del> self.each( callback, response ||...
1
Javascript
Javascript
remove unused variables
6ebee18d1348441f2f201e6a6faf5d14bc7fe361
<ide><path>IntegrationTests/ImageSnapshotTest.js <ide> <ide> const React = require('react'); <ide> const ReactNative = require('react-native'); <del>const {Image, View} = ReactNative; <add>const {Image} = ReactNative; <ide> const {TestModule} = ReactNative.NativeModules; <ide> <ide> class ImageSnapshotTest extends Re...
9
Java
Java
fix bug with the order of messaging arg resolvers
750930fa25dde35fcab82f9a210e42ce02d65d7d
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/handler/AnnotationMethodMessageHandler.java <ide> public void afterPropertiesSet() { <ide> <ide> initHandlerMethods(); <ide> <del> // Annotation-based argument resolution <del> this.argumentResolvers.addResolver(new MessageBodyMethodArgu...
1
PHP
PHP
throw exception for invalid log level
91b1db37740017e0c8480bfc639378a4e222cfc3
<ide><path>Cake/Log/Log.php <ide> public static function engine($name) { <ide> * @param string|array $scope The scope(s) a log message is being created in. <ide> * See Cake\Log\Log::config() for more information on logging scopes. <ide> * @return boolean Success <add> * @throws Cake\Error\Exception If invalid lev...
2
PHP
PHP
assertcount()
ad6928baacb69939fa0bfe4ea3083c3c178a3568
<ide><path>src/Illuminate/Support/Facades/Notification.php <ide> * @method static \Illuminate\Support\Collection sent(mixed $notifiable, string $notification, callable $callback = null) <ide> * @method static bool hasSent(mixed $notifiable, string $notification) <ide> * @method static mixed channel(string|null $name...
1
Text
Text
update translation bubble-sort
94b2b1cd8fd3e1bba6af19c2145d1f09f0bf4577
<ide><path>guide/portuguese/algorithms/sorting-algorithms/bubble-sort/index.md <ide> localeTitle: Tipo de bolha <ide> <ide> O Bubble Sort é o algoritmo de ordenação mais simples que funciona trocando repetidamente os elementos adjacentes se eles estiverem na ordem errada. <ide> <del>Este é um algoritmo de ordenação m...
1
Javascript
Javascript
add some missing glyphs
84c2e99bef768bfb7a47376ab08275dc3213aba3
<ide><path>PDFFont.js <ide> Type1Font.prototype = { <ide> var familyName = fontInfo.get("FamilyName"); <ide> var weight = fontInfo.get("Weight"); <ide> var strings = [version, notice, fullName, <del> familyName, weight]; <add> familyName, weight, "asteriskmath"]; <ide> ...
2
Text
Text
use yaml code fence [ci-skip]
a4dbfc0089eb1c8d512b7572e4d1fce35bfd3e4a
<ide><path>guides/source/command_line.md <ide> $ rails new petstore --database=postgresql <ide> ... <ide> ``` <ide> <del>Let's see what it put in our database configuration: <add>Let's see what it put in our `config/database.yml`: <ide> <del>```bash <del>$ cd petstore <del>$ cat config/database.yml <add>```yaml <ide>...
1
Javascript
Javascript
add missing space
b383fd9568f4e01f408b8c869a551bc386183887
<ide><path>examples/real-world/middleware/api.js <ide> function callApi(endpoint, schema) { <ide> <ide> return fetch(endpoint) <ide> .then(response => <del> response.json().then(json => ({ json, response})) <add> response.json().then(json => ({ json, response })) <ide> ).then(({ json, response }) =...
1
Python
Python
add a new bar class to display bar in curse ui
f4cca4071770679b1ed3dd52584b17261f27ce1a
<ide><path>glances/outputs/glances_bars.py <add># -*- coding: utf-8 -*- <add># <add># This file is part of Glances. <add># <add># Copyright (C) 2015 Nicolargo <nicolas@nicolargo.com> <add># <add># Glances is free software; you can redistribute it and/or modify <add># it under the terms of the GNU Lesser General Public ...
1
Javascript
Javascript
use tty methods instead of control sequences
8c9b2d1066380b3637ce77148a05127296999bf9
<ide><path>lib/readline.js <ide> Interface.prototype._refreshLine = function() { <ide> if (this._closed) return; <ide> <ide> // Cursor to left edge. <del> this.output.write('\x1b[0G'); <add> this.output.cursorTo(0); <ide> <ide> // Write the prompt and the current buffer content. <ide> this.output.write(this...
1
Javascript
Javascript
fix error message string
70c5bcea209bcf9037e29526d5005efe60557bc1
<ide><path>common/models/user.js <ide> module.exports = function(User) { <ide> if (!username) { <ide> // Zalgo!! <ide> return nextTick(() => { <del> cb( <del> new TypeError('FCC: username should be a string but got %s', username) <del> ); <add> cb(new TypeError( <add> ...
1
Javascript
Javascript
improve coverage for 'internal/errors'
09d8b3576fbe473608e11c5045f42bb1d8df6137
<ide><path>test/parallel/test-internal-errors.js <ide> assert.strictEqual( <ide> 'Request path contains unescaped characters' <ide> ); <ide> <add>// Test ERR_DNS_SET_SERVERS_FAILED <add>assert.strictEqual( <add> errors.message('ERR_DNS_SET_SERVERS_FAILED', ['err', 'servers']), <add> 'c-ares failed to set servers: ...
1
Mixed
Ruby
fix in_order_of for integer enums
8565463bfdc3371561dbafe06e603ddc0f96934a
<ide><path>activerecord/CHANGELOG.md <add>* Fix `ActiveRecord::QueryMethods#in_order_of` behavior for integer enums <add> <add> `ActiveRecord::QueryMethods#in_order_of` didn't work as expected for enums stored as integers in the database when passing an array of strings or symbols as the order argument. This unexp...
3
Ruby
Ruby
use json to marshal child errors
86b964745038eebff6218e97735e6344b6f3e42a
<ide><path>Library/Homebrew/build.rb <ide> def fixopt(f) <ide> build = Build.new(formula, options) <ide> build.install <ide> rescue Exception => e # rubocop:disable Lint/RescueException <del> Marshal.dump(e, error_pipe) <add> error_hash = JSON.parse e.to_json <add> <add> # Special case: need to recreate BuildE...
12
Python
Python
use _state.default_app for none check (issue )
28c1c8da3737bb33186a8a1ade152acd633dcca5
<ide><path>celery/fixups/django.py <ide> from datetime import datetime <ide> from importlib import import_module <ide> <add>from celery import _state <ide> from celery import signals <del>from celery.app import default_app <ide> from celery.exceptions import FixupWarning <ide> <ide> __all__ = ['DjangoFixup', 'fixup']...
2
Python
Python
use _umath_linalg for eigh()
cc7b048fafeb93150f118651438faf06aefe807b
<ide><path>numpy/linalg/linalg.py <ide> def eigh(a, UPLO='L'): <ide> <ide> Parameters <ide> ---------- <del> a : (M, M) array_like <del> A complex Hermitian or real symmetric matrix. <add> A : (..., M, M) array <add> Hermitian/Symmetric matrices whose eigenvalues and <add> eigenvecto...
1
Python
Python
add system tests for cloudkmshook
23f27c1b1cdbcb6bb50fd2aa772aeda7151d5634
<ide><path>airflow/providers/google/cloud/hooks/kms.py <ide> def decrypt( <ide> metadata=metadata, <ide> ) <ide> <del> plaintext = response.plaintext <del> return plaintext <add> return response.plaintext <ide><path>tests/providers/google/cloud/hooks/test_kms_system.py <add># L...
4
Javascript
Javascript
add tests and fix wasted render calculation
7b241d1d7fa285218fcdb3522b24de1bce9c8b25
<ide><path>src/isomorphic/ReactPerf.js <ide> function getExclusive(flushHistory = getFlushHistory()) { <ide> var aggregatedStats = {}; <ide> var affectedIDs = {}; <ide> <del> function updateAggregatedStats(treeSnapshot, instanceID, applyUpdate) { <add> function updateAggregatedStats(treeSnapshot, instanceID, tim...
2
Javascript
Javascript
remove a leftover console.log
64c4bfd566c3047c05656cf60c6f67cdda6051a5
<ide><path>controllers/courseware.js <ide> var _ = require('lodash'), <ide> */ <ide> <ide> exports.showAllCoursewares = function(req, res) { <del> console.log('i made it!'); <del> var completedCoursewares = req.user.completedCoursewares.map(function(elem) { <add> var completedCoursewares = req.user.completedCou...
1
Python
Python
add head masking and pruning to openai gpt
f12007e4216e2bdb278b40c731eb62626181cd28
<ide><path>pytorch_pretrained_bert/modeling_openai.py <ide> <ide> from .file_utils import cached_path, CONFIG_NAME, WEIGHTS_NAME <ide> from .modeling import BertLayerNorm as LayerNorm <add>from .modeling_gpt2 import prune_conv1d_layer <ide> <ide> logger = logging.getLogger(__name__) <ide> <ide> def forward(self, x):...
2
Ruby
Ruby
fix typo in action_view/template.rb [ci skip]
1d40743af7a98c22faec11af8d1a9f7fe322e67a
<ide><path>actionview/lib/action_view/template.rb <ide> def initialize(source, identifier, handler, details) <ide> end <ide> <ide> # Returns whether the underlying handler supports streaming. If so, <del> # a streaming buffer *may* be passed when it start rendering. <add> # a streaming buffer *may* be pa...
1
Javascript
Javascript
add missing intry case
c0a79c02572579f92e6e4d2d702cf1eb013405f0
<ide><path>lib/Compilation.js <ide> class Compilation { <ide> if (source !== sourceFromCache) { <ide> this.cache.store(cacheName, usedHash, source, err => { <ide> if (err) return errorAndCallback(err); <add> inTry = false; <ide> return callback(); <ide> }); <ide> ...
1
Python
Python
make benchmark script work in react 15
cab835d3a0b4a128ddc3e612fc05e432df20204d
<ide><path>scripts/bench/measure.py <ide> def _measure_ssr_ms(engine, react_path, bench_name, bench_path, measure_warm): <ide> var START = now(); <ide> globalEval(reactCode); <ide> var END = now(); <add> ReactDOMServer = React.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_...
1
Python
Python
fix linting errors
325f52e7cdf4aff135ec68a71e4fa451fb888312
<ide><path>libcloud/test/compute/test_dimensiondata.py <ide> def test_ex_update_node(self): <ide> <ide> def test_ex_reconfigure_node(self): <ide> node = self.driver.list_nodes()[0] <del> result = self.driver.ex_reconfigure_node(node, 4, 4, 1,'HIGHPERFORMANCE') <add> result = self.driver.ex_re...
1
Go
Go
use dockercmd in integration-cli tests
71868228c787f54501abec6556364d2ceaa4e645
<ide><path>integration-cli/docker_cli_rename_test.go <ide> package main <ide> <ide> import ( <del> "os/exec" <ide> "strings" <ide> <ide> "github.com/docker/docker/pkg/stringid" <ide> "github.com/go-check/check" <ide> ) <ide> <ide> func (s *DockerSuite) TestRenameStoppedContainer(c *check.C) { <del> runCmd := exec...
5
Mixed
Text
allow num_proxies=0 and include more docs
83da4949c099fcf7e7636c98b9052b502e1bf74b
<ide><path>docs/api-guide/settings.md <ide> The name of a parameter in the URL conf that may be used to provide a format suf <ide> <ide> Default: `'format'` <ide> <add>#### NUM_PROXIES <add> <add>An integer of 0 or more, that may be used to specify the number of application proxies that the API runs behind. This all...
3
Javascript
Javascript
fix typo in protocol handler installer popup
d848c15d4230221dae8e4e003639a661203c5512
<ide><path>src/protocol-handler-installer.js <ide> class ProtocolHandlerInstaller { <ide> notification = notifications.addInfo('Register as default atom:// URI handler?', { <ide> dismissable: true, <ide> icon: 'link', <del> description: 'Atom is not currently set as the defaut handler for atom:// U...
1
Javascript
Javascript
add plugin handling and forked paths
8e6a08ea4f3beb2127ec3d1595cf5f83df5816b6
<ide><path>packages/react-dom/src/__tests__/ReactBrowserEventEmitter-test.internal.js <ide> let ReactDOMComponentTree; <ide> let listenToEvent; <ide> let ReactDOMEventListener; <ide> let ReactTestUtils; <add>let ReactFeatureFlags; <ide> <ide> let idCallOrder; <ide> const recordID = function(id) { <ide> describe('React...
6
Ruby
Ruby
fix rubocop warnings
6cfb84152464097901a9b9a437b37cc8c5aeb45c
<ide><path>Library/Homebrew/utils/github.rb <ide> def api_credentials_error_message(response_headers) <ide> end <ide> end <ide> <del> def open(url, data=nil) <add> def open(url, data = nil) <ide> # This is a no-op if the user is opting out of using the GitHub API. <ide> return if ENV["HOMEBREW_NO_GITHU...
1
Python
Python
add args to log_received (fixes )
ad994719bafe6747af6cf8251efb0925284a9260
<ide><path>celery/app/trace.py <ide> def trace_task(uuid, args, kwargs, request=None): <ide> 'name': get_task_name(task_request, name), <ide> 'return_value': Rstr, <ide> 'runtime': T, <add> 'ar...
3
Javascript
Javascript
fix external links in presentation mode (issue )
87eb2dccbe0cc8257924f3bcd0cab155fdf5fdfa
<ide><path>web/page_view.js <ide> var PageView = function pageView(container, id, scale, <ide> } <ide> return false; <ide> }; <del> link.className = 'internalLink'; <add> if (dest) { <add> link.className = 'internalLink'; <add> } <ide> } <ide> <ide> function bindName...
1
Javascript
Javascript
remove duplicated call from navigatorsceneconfigs
176f96d7b6f752368efb12d5fbbdd5d7a92fdd4f
<ide><path>Libraries/CustomComponents/Navigator/NavigatorBreadcrumbNavigationBar.js <ide> function navStatePresentedIndex(navState) { <ide> } <ide> // TODO: rename `observedTopOfStack` to `presentedIndex` in `NavigatorIOS` <ide> return navState.observedTopOfStack; <del>}; <add>} <ide> <ide> <ide> /** <ide> func...
2
Javascript
Javascript
add tabindex attribute to searchbar
6a828328e17c64a026b447357a619a00f0356425
<ide><path>website/core/AlgoliaDocSearch.js <ide> var AlgoliaDocSearch = React.createClass({ <ide> render: function() { <ide> return ( <ide> <div className="algolia-search-wrapper"> <del> <input id="algolia-doc-search" type="text" placeholder="Search docs..." /> <add> <input id="algolia-doc-se...
1
Ruby
Ruby
fix a typo in s3service
993283a1ae9e9c7f07c78c2ac8372a6e91228cc2
<ide><path>lib/active_storage/service/s3_service.rb <ide> def initialize(access_key_id:, secret_access_key:, region:, bucket:, endpoint: n <ide> access_key_id: access_key_id, <ide> secret_access_key: secret_access_key, <ide> region: region, <del> bucket: bucket, ...
1
Ruby
Ruby
fix some types in schema_test.rb
7e1328464518e6cd85ab8a3c413bf811c87ffa48
<ide><path>activeresource/test/cases/base/schema_test.rb <ide> def teardown <ide> assert_nothing_raised { <ide> Person.schema = new_schema <ide> assert_equal new_schema, Person.schema, "should have saved the schema on the class" <del> assert_equal new_schema, Person.new.schema, "should have mde the...
1
Python
Python
add the number of sample points as suggested
fa5c5d1d66f7db17cb2bea137b5bb54deccd06b6
<ide><path>numpy/polynomial/_polybase.py <ide> def fit(cls, x, y, deg, domain=None, rcond=None, full=False, w=None, <ide> x : array_like, shape (M,) <ide> x-coordinates of the M sample points ``(x[i], y[i])``. <ide> y : array_like, shape (M,) <del> y-coordinates of the sample poin...
1
Ruby
Ruby
improve flag passing for debug-symbols
91065b9ddd24bcc3c279b1b120ec34a2b3810f8b
<ide><path>Library/Homebrew/formula_installer.rb <ide> def sanitized_argv_options <ide> args << "--debug" if debug? <ide> args << "--cc=#{@cc}" if @cc <ide> args << "--keep-tmp" if keep_tmp? <del> args << "--debug-symbols" if debug_symbols? <del> # Avoids dependecy error on flag <del> args << "--bu...
1
PHP
PHP
increment 4.1 version
1bbb6f16aa03c1de6d89ccbf4ca81bf98e1330ab
<ide><path>src/Illuminate/Foundation/Application.php <ide> class Application extends Container implements HttpKernelInterface, TerminableIn <ide> * <ide> * @var string <ide> */ <del> const VERSION = '4.1.29'; <add> const VERSION = '4.1.30'; <ide> <ide> /** <ide> * Indicates if the application has "booted".
1
PHP
PHP
remove default email for setcc
8538990434fc9fa425bfee6199ef2316595c4593
<ide><path>src/Mailer/Email.php <ide> public function addTo($email, $name = null) <ide> * @param string|null $name Name <ide> * @return $this <ide> */ <del> public function setCc($email = null, $name = null) <add> public function setCc($email, $name = null) <ide> { <ide> return $this->_...
2
Javascript
Javascript
move buffer constants at the top of net.js
fdae14070cde99d19de2ec03697b3151c1b8cb7f
<ide><path>lib/net.js <ide> var sys = require("sys"); <ide> var fs = require("fs"); <ide> var events = require("events"); <ide> <add>var kMinPoolSpace = 128; <add>var kPoolSize = 40*1024; <add> <ide> var debugLevel = process.env['NODE_DEBUG'] ? 1 : 0; <ide> function debug () { <ide> if (debugLevel > 0) sys.error.app...
1
PHP
PHP
apply fixes from styleci
7a0318ca268d8c60c37e156a601bf843d8864c55
<ide><path>src/Illuminate/Queue/DatabaseQueue.php <ide> <ide> namespace Illuminate\Queue; <ide> <del>use DateTime; <ide> use Carbon\Carbon; <ide> use Illuminate\Database\Connection; <ide> use Illuminate\Queue\Jobs\DatabaseJob;
1
Ruby
Ruby
use the body proxy to freeze headers
3df07d093a1e4207caa63fd2e3b67599211f5800
<ide><path>actionpack/lib/action_controller/metal/live.rb <ide> def write(string) <ide> end <ide> <ide> def each <add> @response.sending! <ide> while str = @buf.pop <ide> yield str <ide> end <add> @response.sent! <ide> end <ide> <ide> def close <ide> def...
5
PHP
PHP
fix typos in doc blocks
838c5fd086ebec1eb0fd0575bf6ec5df9fede920
<ide><path>src/Database/Expression/Comparison.php <ide> class Comparison implements ExpressionInterface, FieldInterface <ide> protected $_operator; <ide> <ide> /** <del> * Whether or not the value in this expressions is a traversable <add> * Whether or not the value in this expression is a traversable ...
3
Go
Go
move legacy stuff outside the job
16ca6a1c12ffe9a02da4e823646bee6461ffbad5
<ide><path>api.go <ide> import ( <ide> "fmt" <ide> "github.com/dotcloud/docker/archive" <ide> "github.com/dotcloud/docker/auth" <add> "github.com/dotcloud/docker/engine" <ide> "github.com/dotcloud/docker/pkg/systemd" <ide> "github.com/dotcloud/docker/utils" <ide> "github.com/gorilla/mux" <ide> func getImagesJSON(...
6
Java
Java
fix minor test issues
497944f0dd9a9cb49b5f41397cb41a07a67eaf25
<ide><path>spring-messaging/src/test/java/org/springframework/messaging/simp/broker/DefaultSubscriptionRegistryTests.java <ide> public void unregisterSubscription() { <ide> <ide> MultiValueMap<String, String> actual = this.registry.findSubscriptions(message(dest)); <ide> <del> assertEquals("Expected three elements...
2
Go
Go
fix config.cpuset from api < 1.20
8c63ce4f6b78bd1d87c92ecfbcc20ccfd80f7d63
<ide><path>api/types/versions/v1p19/types.go <ide> type ContainerConfig struct { <ide> Memory int64 <ide> MemorySwap int64 <ide> CPUShares int64 `json:"CpuShares"` <del> CPUSet string `json:"CpuSet"` <add> CPUSet string `json:"Cpuset"` <ide> } <ide><path>api/types/versions/v1p20/types.go <ide...
4
Python
Python
allow specification of terms to fit in chebfit
942f294c06b0285ea3cf2bf223a63700a1ed50f5
<ide><path>numpy/polynomial/chebyshev.py <ide> def chebfit(x, y, deg, rcond=None, full=False, w=None): <ide> y-coordinates of the sample points. Several data sets of sample <ide> points sharing the same x-coordinates can be fitted at once by <ide> passing in a 2D-array that contains one dataset ...
1
PHP
PHP
apply fixes from styleci
1242c57e64b1ab37096cca4d3b57e621d662ecf2
<ide><path>tests/View/Blade/BladeComponentTagCompilerTest.php <ide> <ide> class BladeComponentTagCompilerTest extends AbstractBladeTestCase <ide> { <del> public function tearDown() : void <add> public function tearDown(): void <ide> { <ide> Mockery::close(); <ide> }
1
Ruby
Ruby
make linkapps official
907ac79606537189a0a7c822be1210c4d4801df3
<ide><path>Library/Contributions/cmd/brew-linkapps.rb <del># Links any Applications (.app) found in installed prefixes to /Applications <del>require 'keg' <del> <del>TARGET_DIR = ARGV.include?("--local") ? File.expand_path("~/Applications") : "/Applications" <del> <del>unless File.exist? TARGET_DIR <del> opoo "#{TARGE...
2
Javascript
Javascript
run all the tests 😸
955d5a02e4c72310ac82a26421c3d2bffbaae067
<ide><path>karma.conf.js <ide> module.exports = function(config) { <ide> if (runAll || process.env.SAUCE_IE) { <ide> // TODO These need to be fixed <ide> // customLaunchers.SL_IE8 = createCustomLauncher('internet explorer', 8, 'Windows 7'); <del> customLaunchers.SL_IE9 = createCustomLauncher('inter...
2
Mixed
Go
add support for reading logs extra attrs
bd9d14a07b9f1c82625dc8483245caf3fa7fe9e6
<ide><path>api/client/logs.go <ide> func (cli *DockerCli) CmdLogs(args ...string) error { <ide> follow := cmd.Bool([]string{"f", "-follow"}, false, "Follow log output") <ide> since := cmd.String([]string{"-since"}, "", "Show logs since timestamp") <ide> times := cmd.Bool([]string{"t", "-timestamps"}, false, "Show ti...
12
Text
Text
reduce abbreviations in async_hooks.md
ddb1cbac476372360e68c7f77470763ce4d2e5a7
<ide><path>doc/api/async_hooks.md <ide> asyncHook.disable(); <ide> function init(asyncId, type, triggerAsyncId, resource) { } <ide> <ide> // Before is called just before the resource's callback is called. It can be <del>// called 0-N times for handles (e.g. TCPWrap), and will be called exactly 1 <del>// time for reque...
1
Javascript
Javascript
add test cases for fspromises"
4bfc03b57dfbf6ac245b56c62b718ccd68e12cd7
<ide><path>test/parallel/test-fs-promises.js <ide> const fsPromises = require('fs/promises'); <ide> const { <ide> access, <ide> chmod, <del> chown, <ide> copyFile, <ide> fchmod, <del> fchown, <ide> fdatasync, <ide> fstat, <ide> fsync, <ide> const { <ide> realpath, <ide> rename, <ide> rmdir, <del> ...
1
Go
Go
remove client-side for supported logging drivers
05dc9846e1266e6a3629c26851acb633a380dd17
<ide><path>cli/command/container/logs.go <ide> package container <ide> <ide> import ( <del> "fmt" <ide> "io" <ide> <ide> "golang.org/x/net/context" <ide> import ( <ide> "github.com/spf13/cobra" <ide> ) <ide> <del>var validDrivers = map[string]bool{ <del> "json-file": true, <del> "journald": true, <del>} <del> <i...
5
Python
Python
use float 16 in causal mask and masked bias
439e7abd2d4e0b2bfb592a1cf0eadbd2042d8a93
<ide><path>src/transformers/models/megatron_gpt2/convert_megatron_gpt2_checkpoint.py <ide> def convert_megatron_checkpoint(args, input_state_dict, config): <ide> ) and weight_or_bias == "weight": <ide> <ide> # Insert a tensor of 1x1xDxD bias. <del> causal_mask = torch.tril(torch.ones((n_...
1
Javascript
Javascript
remove extraneous files from dist during release
95c7ab68970ce201a2bbff48c8e951d38c228ce8
<ide><path>build/release.js <ide> module.exports = function( Release ) { <ide> <ide> module.exports.dependencies = [ <ide> "archiver@0.14.2", <del> "shelljs@0.2.6", <add> "shelljs@0.7.0", <ide> "npm@2.3.0", <ide> "chalk@1.1.1" <ide> ]; <ide><path>build/release/dist.js <ide> module.exports = function( Release, files...
2
Javascript
Javascript
fix typo and make it more in line with ngshow
f3e053cb6fec8279e09330481ba8906e185f94c6
<ide><path>src/ng/directive/ngShowHide.js <ide> var ngShowDirective = ngDirective(function(scope, element, attr){ <ide> * @name ng.directive:ngHide <ide> * <ide> * @description <del> * The `ngHide` and `ngShow` directives hide or show a portion <del> * of the HTML conditionally. <add> * The `ngHide` and `ngShow` dir...
1
Ruby
Ruby
update vendor version number
4a644575c83d78e751f49cb6ba47e1c98af693a8
<ide><path>actionmailer/lib/action_mailer/vendor.rb <ide> require 'rubygems' <ide> <ide> begin <del> gem 'tmail', '~> 1.2.1' <add> gem 'tmail', '~> 1.2.2' <ide> rescue Gem::LoadError <del> $:.unshift "#{File.dirname(__FILE__)}/vendor/tmail-1.2.1" <add> $:.unshift "#{File.dirname(__FILE__)}/vendor/tmail-1.2.2" <ide...
1
PHP
PHP
extract a method
153390164e8f93f6c7a49da03f244448f51c01c9
<ide><path>src/Illuminate/Session/Middleware/StartSession.php <ide> public function handle($request, Closure $next) <ide> // Again, if the session has been configured we will need to close out the session <ide> // so that the attributes may be persisted to some storage medium. We will also <ide> ...
1
Python
Python
fix compatibility for python3
8f16def11bd9ef4b874fbd86bb0f2792abbb07a0
<ide><path>object_detection/utils/variables_helper.py <ide> def get_variables_available_in_checkpoint(variables, checkpoint_path): <ide> ckpt_reader = tf.train.NewCheckpointReader(checkpoint_path) <ide> ckpt_vars = ckpt_reader.get_variable_to_shape_map().keys() <ide> vars_in_ckpt = {} <del> for variable_name, va...
1
Javascript
Javascript
fix broken link to panresponderexample.js
c06a1360a949fd4101a86907f66c0fb72281ce41
<ide><path>Libraries/Interaction/PanResponder.js <ide> const currentCentroidY = TouchHistoryMath.currentCentroidY; <ide> * ### Working Example <ide> * <ide> * To see it in action, try the <del> * [PanResponder example in UIExplorer](https://github.com/facebook/react-native/blob/master/Examples/UIExplorer/PanResponde...
1
Text
Text
create model card for spanbert-finetuned-squadv2
de697935a20470c1adc772cb1a592254dbdd3cfa
<ide><path>model_cards/mrm8488/spanbert-finetuned-squadv2/README.md <add>--- <add>language: english <add>thumbnail: <add>--- <add> <add># SpanBERT (spanbert-base-cased) fine-tuned on SQuAD v2 <add> <add>[SpanBERT](https://github.com/facebookresearch/SpanBERT) created by [Facebook Research](https://github.com/facebookre...
1
Ruby
Ruby
add missing require to inheritance test
e632d035db36092236f01ab1553405de65245d64
<ide><path>activerecord/test/cases/persistence_test.rb <ide> require 'models/warehouse_thing' <ide> require 'models/parrot' <ide> require 'models/minivan' <add>require 'models/owner' <ide> require 'models/person' <ide> require 'models/pet' <ide> require 'models/toy' <ide> require 'rexml/document' <ide> <ide> class Per...
2
Python
Python
fix typo in documentation
7e9af6bf4c3d376fd2533aa4bf6edef0dbd972bd
<ide><path>keras/layers/preprocessing/integer_lookup.py <ide> def adapt(self, data, batch_size=None, steps=None): <ide> During `adapt()`, the layer will build a vocabulary of all integer tokens <ide> seen in the dataset, sorted by occurance count, with ties broken by sort <ide> order of the tokens (high to ...
1
Python
Python
improve synthic data performance
c9972ad615c9752fc46bca37102848ba0a06d415
<ide><path>official/resnet/cifar10_main.py <ide> def input_fn(is_training, data_dir, batch_size, num_epochs=1, num_gpus=None): <ide> ) <ide> <ide> <del>def get_synth_input_fn(): <add>def get_synth_input_fn(dtype): <ide> return resnet_run_loop.get_synth_input_fn( <del> _HEIGHT, _WIDTH, _NUM_CHANNELS, _NUM_CLA...
5
Ruby
Ruby
use the as_flags method instead of map
c7444d34f783c7716d87ae7ea1074bec62f703bc
<ide><path>Library/Homebrew/formula.rb <ide> def to_hash <ide> <ide> hsh["installed"] << { <ide> "version" => keg.version.to_s, <del> "used_options" => tab.used_options.map(&:flag), <add> "used_options" => tab.used_options.as_flags, <ide> "built_as_bottle" => tab.built_bot...
3
Ruby
Ruby
use bind params in select with query monkeypatch
5c6978608d0b05613df6f9ebcb930d0850f44121
<ide><path>activerecord/test/connections/native_oracle/connection.rb <ide> ActiveRecord::Base.connection.class.class_eval do <ide> IGNORED_SELECT_SQL = [/^select .*nextval/i, /^SAVEPOINT/, /^ROLLBACK TO/, /^\s*select .* from ((all|user)_tab_columns|(all|user)_triggers|(all|user)_constraints)/im] <ide> <del> def sel...
1
Javascript
Javascript
use imagesource type in logbox implementation
7374dba6b0c13283341edc4d6fd55257b3cd2053
<ide><path>Libraries/LogBox/UI/LogBoxInspectorHeader.js <ide> import StatusBar from '../../Components/StatusBar/StatusBar'; <ide> import LogBoxButton from './LogBoxButton'; <ide> import * as LogBoxStyle from './LogBoxStyle'; <ide> import type {LogLevel} from '../Data/LogBoxLog'; <add>import type {ImageSource} from '../...
1
Text
Text
fix typo in radial linear scale docs
0ed652b39f7fc96cfcbfd916081d5d930850a231
<ide><path>docs/axes/radial/linear.md <ide> # Linear Radial Axis <ide> <del>The linear scale is use to chart numerical data. As the name suggests, linear interpolation is used to determine where a value lies in relation the center of the axis. <add>The linear scale is used to chart numerical data. As the name suggests...
1
Python
Python
add note clarifying why ifftshift is needed
1ab96d234d950f7d1232179deb38e73128b28194
<ide><path>numpy/fft/helper.py <ide> def fftshift(x, axes=None): <ide> <ide> def ifftshift(x, axes=None): <ide> """ <del> The inverse of fftshift. <add> The inverse of `fftshift`. Though identical for even-length `x`, the <add> functions differ by one sample for odd-length `x`. <ide> <ide> Parameters...
1
Javascript
Javascript
fix wrong greek tests
3e98e6fb3c5ca8bb36aed6f50ebfaaa888756c5c
<ide><path>src/test/locale/el.js <ide> test('parse meridiem', function (assert) { <ide> ['10 Μ', 22, true], <ide> ['10 am', 10, false], <ide> ['10 pm', 10, false] <del> ]; <add> ], <add> parsed; <ide> <ide> // test that a formatted moment including me...
1
Javascript
Javascript
kill last remaining use of `$` in react
89819de4f2a0eb506251290a72d662186a59d161
<ide><path>src/core/ReactMount.js <ide> var DOMProperty = require('DOMProperty'); <ide> var ReactEventEmitter = require('ReactEventEmitter'); <ide> var ReactInstanceHandles = require('ReactInstanceHandles'); <ide> <del>var $ = require('$'); <ide> var containsNode = require('containsNode'); <ide> var getReactRootElemen...
3
Java
Java
publish operator on observable
2e0d61d338020e1ad27298736528aced62265750
<ide><path>rxjava-core/src/main/java/rx/Observable.java <ide> import rx.plugins.RxJavaErrorHandler; <ide> import rx.plugins.RxJavaObservableExecutionHook; <ide> import rx.plugins.RxJavaPlugins; <add>import rx.subjects.PublishSubject; <ide> import rx.subjects.Subject; <ide> import rx.subscriptions.BooleanSubscription; <...
1
Javascript
Javascript
add missing semicolon in paintvivecontroller
f1db9e5f4d701cacf58dafc12595014f65407c43
<ide><path>examples/js/vr/PaintViveController.js <ide> THREE.PaintViveController = function ( id ) { <ide> mesh.position.set( 0, 0.005, 0.0495 ); <ide> mesh.rotation.x = - 1.45; <ide> mesh.scale.setScalar( 0.02 ); <del> this.add( mesh ) <add> this.add( mesh ); <ide> <ide> var geometry = new THREE.IcosahedronGeomet...
1
Python
Python
fix integration test levit
da71df1afcff0d119299393fabcfa2a808c5c9dc
<ide><path>tests/models/levit/test_modeling_levit.py <ide> def test_inference_image_classification_head(self): <ide> expected_shape = torch.Size((1, 1000)) <ide> self.assertEqual(outputs.logits.shape, expected_shape) <ide> <del> expected_slice = torch.tensor([0.0096, -1.0084, -1.4318]).to(torch_...
1
Javascript
Javascript
fix typo in counter container test
489968069a076f824f2148be03b55e19cb5d45d4
<ide><path>examples/counter/test/containers/App.spec.js <ide> describe('containers', () => { <ide> expect(p.textContent).toMatch(/^Clicked: 1 times/); <ide> }); <ide> <del> it('should display updated count after descrement button click', () => { <add> it('should display updated count after decrement bu...
1
PHP
PHP
return the status of $model->push()
9ba285a2ad66c9c6f57a2dc8253cb03713f680fb
<ide><path>laravel/database/eloquent/model.php <ide> public function has_many_and_belongs_to($model, $table = null, $foreign = null, <ide> */ <ide> public function push() <ide> { <del> $this->save(); <add> if (!$this->save()) return false; <ide> <ide> // To sync all of the relationships to the database, we wil...
1
PHP
PHP
fix bug in connection with custom grammars
5fd1ea527f9ad51760ae59ac8621724ebf78f4b9
<ide><path>laravel/database/connection.php <ide> protected function grammar() <ide> <ide> if (isset(\Laravel\Database::$registrar[$this->driver()])) <ide> { <del> \Laravel\Database::$registrar[$this->driver()]['query'](); <add> return $this->grammar = \Laravel\Database::$registrar[$this->driver()]['query'](); ...
1
Javascript
Javascript
improve ember.array slice implementation
531db2ef0b3b62315ba322fa69d0257ff34c9193
<ide><path>packages/ember-runtime/lib/mixins/array.js <ide> Ember.Array = Ember.Mixin.create(Ember.Enumerable, /** @scope Ember.Array.protot <ide> var length = get(this, 'length') ; <ide> if (none(beginIndex)) beginIndex = 0 ; <ide> if (none(endIndex) || (endIndex > length)) endIndex = length ; <add> <add> ...
2
Text
Text
add missing comma
8e2374964904b41a753368224265706453848511
<ide><path>model_cards/mrm8488/t5-base-finetuned-question-generation-ap/README.md <ide> Dataset ID: ```squad``` from [HugginFace/NLP](https://github.com/huggingface/nl <ide> How to load it from [nlp](https://github.com/huggingface/nlp) <ide> <ide> ```python <del>train_dataset = nlp.load_dataset('squad, split=nlp.Spl...
1
Python
Python
improve a number of error messages in core layers
1e8d286537fd10b328f1a307ff9727b97b8a8219
<ide><path>keras/layers/core/dense.py <ide> def __init__(self, <ide> self.units = int(units) if not isinstance(units, int) else units <ide> if self.units < 0: <ide> raise ValueError(f'Received an invalid value for `units`, expected ' <del> f'a positive integer, got {units}.') <add> ...
3
Text
Text
update the getting started tutorial
f591762ccf9a6ef373a5c4b279900e4a136fa89e
<ide><path>guides/source/getting_started.md <ide> are generated in Rails they are empty by default, unless you tell it <ide> your wanted actions during the generation process. <ide> <ide> To manually define an action inside a controller, all you need to do is to <del>define a new method inside the controller. <del>Ope...
1
Python
Python
explain the behavior of diff on unsigned types
ae3d1fa3e0f4a048618cb4e7c8fd694185df69b6
<ide><path>numpy/lib/function_base.py <ide> def diff(a, n=1, axis=-1): <ide> will contain `False` when consecutive elements are the same and <ide> `True` when they differ. <ide> <add> For unsigned integer arrays, the results will also be unsigned. This should <add> not be surprising, as the result is con...
1
PHP
PHP
use assertcount() where applicable
196b5f2e2d1f6112d72d6e5c5c92ec52886e16ba
<ide><path>tests/TestCase/ORM/QueryTest.php <ide> public function testContainFinderHasMany() <ide> ] <ide> ]); <ide> <del> $this->assertSame(2, count($resultWithArticles->first()->articles)); <del> $this->assertSame(2, count($resultWithArticlesArray->first()->articles)); <add>...
1
Javascript
Javascript
set event.target on ie<8
ce80576e0b8ac9ed5a5b1f1a4dbc2446434a0002
<ide><path>src/jqLite.js <ide> forEach({ <ide> event.cancelBubble = true; //ie <ide> }; <ide> } <add> if (!event.target) { <add> event.target = event.srcElement || document; <add> } <ide> forEach(eventHandler.fns, function(fn){ <ide> ...
2
PHP
PHP
remove invalid annotation
c55316cdfc8f90b07087428593344e24b15d71f9
<ide><path>src/TestSuite/TestCase.php <ide> protected function skipUnless($condition, $message = '') <ide> */ <ide> public function getMockForModel(string $alias, ?array $methods = [], array $options = []) <ide> { <del> /** @var string|\Cake\ORM\Table $className */ <ide> $className = $this->...
1
Javascript
Javascript
handle comments properly
6cf19103b63f4c33eb2c33590bc533ffa5a3e7e1
<ide><path>lib/repl.js <ide> const BLOCK_SCOPED_ERROR = 'Block-scoped declarations (let, ' + <ide> 'const, function, class) not yet supported outside strict mode'; <ide> <ide> <add>class LineParser { <add> <add> constructor() { <add> this.reset(); <add> } <add> <add> reset() { <add> this._literal = null;...
2
Python
Python
remove input and target reset after preprocessing
a63bd3675f3fa1a6154c8bf1d085c66eaea67e56
<ide><path>examples/pytorch/summarization/run_summarization.py <ide> def preprocess_function(examples): <ide> inputs.append(examples[text_column][i]) <ide> targets.append(examples[summary_column][i]) <ide> <del> inputs = examples[text_column] <del> targets = examples[summa...
1
Python
Python
return dataset (pytorch)
ce158a076f7089bf11d44e1581f5bcab4dcc5396
<ide><path>transformers/data/processors/squad.py <ide> <ide> from ...tokenization_bert import BasicTokenizer, whitespace_tokenize <ide> from .utils import DataProcessor, InputExample, InputFeatures <del>from ...file_utils import is_tf_available <add>from ...file_utils import is_tf_available, is_torch_available <add> <...
1
Javascript
Javascript
enable third cert
30d14b34e4ae9225c6759504ea6f3c698e4a28fb
<ide><path>config/i18n/all-langs.js <ide> const auditedCerts = { <ide> ], <ide> italian: [ <ide> 'responsive-web-design', <del> 'javascript-algorithms-and-data-structures' <add> 'javascript-algorithms-and-data-structures', <add> 'front-end-libraries' <ide> ], <ide> portuguese: ['responsive-web-desi...
1
Java
Java
replace use of pubsub header name literals
78d1063e37874b7ef0ed70d14f503aa3ab75ade6
<ide><path>spring-websocket/src/main/java/org/springframework/web/messaging/service/method/MessageBodyArgumentResolver.java <ide> import org.springframework.core.MethodParameter; <ide> import org.springframework.http.MediaType; <ide> import org.springframework.messaging.Message; <add>import org.springframework.web.mess...
2
Ruby
Ruby
fix documentation of number_to_currency helper
d261c5cc28d35ae3d493c42edd20d362b61556dc
<ide><path>actionview/lib/action_view/helpers/number_helper.rb <ide> def number_to_phone(number, options = {}) <ide> # <ide> # number_to_currency(-1234567890.50, negative_format: "(%u%n)") <ide> # # => ($1,234,567,890.50) <del> # number_to_currency(1234567890.50, unit: "&pound;", separator:...
1