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
allow empty values in checkboxes
605351d0c9706e33bde9b0354a5cf494d65d333b
<ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php <ide> public function testCheckboxHiddenField() { <ide> $this->assertTags($result, $expected); <ide> } <ide> <add>/** <add> * Test that a checkbox can have 0 for the value and 1 for the hidden input. <add> * <add> * @return void <add> */ <add> public func...
2
Text
Text
add doc page about writing custom layers
36a829c20d5dcd4d8ba120781235c278588b6bb7
<ide><path>docs/templates/layers/writing-your-own-keras-layers.md <add># Writing your own Keras layers <add> <add>For simple, stateless custom operations, you are probably better off using `layers.core.Lambda` layers. But for any custom operation that has trainable weights, you should implement your own layer. <add> <a...
1
Python
Python
set version to v3.0.0a7
a95a36ce2ad6ce4394c686c85aa3188d15c188ec
<ide><path>spacy/about.py <ide> # fmt: off <ide> __title__ = "spacy-nightly" <del>__version__ = "3.0.0a6" <add>__version__ = "3.0.0a7" <ide> __release__ = True <ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download" <ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/sp...
1
Javascript
Javascript
add eslint rule for documented errors
76b8803630f9a324810f38d00610792033e862c7
<ide><path>lib/internal/errors.js <add>/* eslint documented-errors: "error" */ <ide> /* eslint alphabetize-errors: "error" */ <ide> <ide> 'use strict'; <ide><path>test/parallel/test-eslint-documented-errors.js <add>'use strict'; <add> <add>require('../common'); <add> <add>const RuleTester = require('../../tools/eslint...
3
Ruby
Ruby
fix memcachestoretest stubbing
10e361179d80a7449d892c4118ee27635ab85df6
<ide><path>activesupport/test/cache/stores/mem_cache_store_test.rb <ide> def after_teardown <ide> def test_clear_also_clears_local_cache <ide> key = SecureRandom.uuid <ide> cache = lookup_store(raw: true) <del> client.stub(:flush_all, -> { client.delete(key) }) do <add> stub_called = false <add> <add> ...
1
Mixed
PHP
set default encryption mode to "cbc"
fc9760ad63e2421e484410394fd97e393fb21962
<ide><path>readme.md <ide> - Added `Html::mailto` and `Html::email` from Laravel 3. <ide> - Added `Mail::queue`, `Mail::later`, `Mail::queueOn`, and `Mail::laterOn`. Screencast forthcoming. <ide> - Added `URL::full` method as alias into `Request::fullUrl`. <add>- Set default encryption mode to `cbc`. `Crypt::setMode` i...
2
Python
Python
update ndarray.round docs to match travis' mods
0982d6e124e0728e227bda735a19c359900fcc4a
<ide><path>numpy/add_newdocs.py <ide> Round to the specified number of decimals. When 'decimals' is negative it <ide> specifies the number of positions to the left of the decimal point. The real <ide> and imaginary parts of complex numbers are rounded separately. Nothing is <del> done if the array is not...
1
PHP
PHP
remove redundant tests around debug()
bbb1567955ac91878be677bb4dfaa0b7e3799948
<ide><path>src/Error/Debug/ConsoleFormatter.php <ide> public static function environmentMatches(): bool <ide> } <ide> <ide> /** <del> * {@inheritDoc} <add> * @inheritDoc <ide> */ <del> public function formatWrapper(string $contents, array $location) <add> public function formatWrapper(string...
6
Ruby
Ruby
create generic codesign_patched_binary
39fc3862538fa5226f4d17e94f1e1c74b7eadeb2
<ide><path>Library/Homebrew/keg_relocate.rb <ide> def each_unique_binary_file(&block) <ide> end <ide> end <ide> <add> def codesign_patched_binary(_binary_file); end <add> <ide> def lib <ide> path/"lib" <ide> end
1
Ruby
Ruby
permit loads while queries are running
007e50d8e5a900547471b6c4ec79d9d217682c5d
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb <ide> def explain(arel, binds = []) <ide> <ide> # Executes the SQL statement in the context of this connection. <ide> def execute(sql, name = nil) <del> log(sql, name) { @connection.query(sql) } <add> log(...
5
Ruby
Ruby
adjust initializer signature
497123f7ecc6b82225b0c0afc81b2411679d64cc
<ide><path>Library/Homebrew/requirements/ld64_dependency.rb <ide> # formula is used as gcc's ld in place of the old version <ide> # that comes with the OS. <ide> class LD64Dependency < Dependency <del> def initialize(name='ld64', tags=[:build]) <add> def initialize(name='ld64', tags=[:build], env_proc=nil) <ide> ...
1
Javascript
Javascript
expose getresolvermainfields() config param
39d9d71adbb77eff543fe442bd3061edc9858dd6
<ide><path>local-cli/bundle/buildBundle.js <ide> async function buildBundle( <ide> extraNodeModules: config.extraNodeModules, <ide> getModulesRunBeforeMainModule: config.getModulesRunBeforeMainModule, <ide> getPolyfills: config.getPolyfills, <add> getResolverMainFields: config.getResolverMainFields, <ide...
3
Python
Python
add fp16 support for sagemaker model parallel
1690094bdb8f606685e46f26c17ddadb925d0a20
<ide><path>src/transformers/trainer.py <ide> def __init__( <ide> self.use_cuda_amp = False <ide> self.use_cpu_amp = False <ide> <add> # Mixed precision setup for SageMaker Model Parallel <add> if is_sagemaker_mp_enabled(): <add> # BF16 + model parallelism in SageMaker: currentl...
2
PHP
PHP
add coverage for deprecated method
b6d499b998997e1c0cb3ce977852da5e24f9c87f
<ide><path>tests/TestCase/Routing/Route/RouteTest.php <ide> public function testNoMatchParseExtension($url, array $ext) <ide> $this->assertNull($outExt); <ide> } <ide> <add> /** <add> * Expects extensions to be set <add> * <add> * @group deprecated <add> * @return void <add> */ <add>...
1
Text
Text
fix grammatical issues in readme.md
87eccd46be416ae97c23b1e72c898cf7d3b2beef
<ide><path>README.md <ide> The first section will teach you the basics of how webpages work and also introd <ide> <ide> Skills you'll practice include `HTML, CSS, JavaScript, jQuery` and `Bootstrap`. <ide> <del>To earn this certification you'll build **10 front-end projects** and implement many **JavaScript algorithm...
1
Ruby
Ruby
fix errorduringexecution status
d345864d7e6f98488ed6fc454c0338bb20b751b2
<ide><path>Library/Homebrew/exceptions.rb <ide> def initialize(cmd, status:, output: nil, secrets: []) <ide> when Integer <ide> status <ide> else <del> status.exitstatus <add> status&.exitstatus <ide> end <ide> <ide> redacted_cmd = redact_secrets(cmd.shelljoin.gsub('\=', "="), secrets) ...
1
Python
Python
simplify documentation of clip()
40c7e51f61b014f84debf6ad870a8078b6df1be0
<ide><path>numpy/core/fromnumeric.py <ide> def clip(a, a_min, a_max, out=None, **kwargs): <ide> ---------- <ide> a : array_like <ide> Array containing elements to clip. <del> a_min : array_like or None <del> Minimum value. If None, clipping is not performed on lower <del> interval edge....
1
Go
Go
fix testrunnonrootuserresolvname flackiness
30d4c70d282248ac218c6c505d5a316e5cc9ac01
<ide><path>integration-cli/docker_cli_run_test.go <ide> func (s *DockerSuite) TestRunDnsOptionsBasedOnHostResolvConf(c *check.C) { <ide> // Test to see if a non-root user can resolve a DNS name and reach out to it. Also <ide> // check if the container resolv.conf file has atleast 0644 perm. <ide> func (s *DockerSuite) ...
1
Javascript
Javascript
remove second param to `chunktemplate` constructor
678984b9e435414ec64584679ef752ff537ab6b0
<ide><path>lib/Compilation.js <ide> function Compilation(compiler) { <ide> this.performance = options && options.performance; <ide> <ide> this.mainTemplate = new MainTemplate(this.outputOptions); <del> this.chunkTemplate = new ChunkTemplate(this.outputOptions, this.mainTemplate); <add> this.chunkTemplate = new Chunk...
1
Javascript
Javascript
add link to built-in filters page
31f20b6db103a2d3dd095c5cd8fa668938adf7bb
<ide><path>src/ng/filter.js <ide> * @name $filter <ide> * @kind function <ide> * @description <del> * Filters are used for formatting data displayed to the user. <add> * Filters are used for formatting data displayed to the user. They can be used in view <add> * templates, controllers or services. Angular comes with...
1
Text
Text
update openssl 1.1.0 upgrade docs
160ac0f32513337214dc5a4cdb1fa8de3c2ed14c
<ide><path>deps/openssl/config/README.md <ide> Currently, one floating patch is needed to build S390 asm files. <ide> <ide> Cherry pick it from the previous commit. <ide> ```sh <del>$ git cherry-pick 094465362758ebf967b33c84d5c96230b46a34b3 <add>$ git cherry-pick 45b9f5df6ff1548f01ed646ebee75e3f0873cefd <ide> ``` <ide...
1
Javascript
Javascript
remove selected attribute from unselected options
b4769c371ecb79ebcd02183373c214c20aa31e41
<ide><path>src/ng/directive/ngOptions.js <ide> var ngOptionsDirective = ['$compile', '$document', '$parse', function($compile, <ide> var removeEmptyOption = function() { <ide> if (!providedEmptyOption) { <ide> emptyOption.remove(); <add> } else { <add> emptyOption.removeAttr('sel...
2
Javascript
Javascript
remove default export from controllers/index
37633c221ac41b4a4cbcc5093b2049c83bee19b8
<ide><path>src/controllers/index.js <del>import bar from './controller.bar'; <del>import bubble from './controller.bubble'; <del>import doughnut from './controller.doughnut'; <del>import horizontalBar from './controller.horizontalBar'; <del>import line from './controller.line'; <del>import polarArea from './controller....
3
PHP
PHP
fix wrong component generation
73060db7c5541fadf5e4f2874a89d18621d705a3
<ide><path>src/Illuminate/Foundation/Console/ComponentMakeCommand.php <ide> protected function buildClass($name) <ide> */ <ide> protected function getView() <ide> { <del> return collect(explode('/', $this->argument('name'))) <add> $name = str_replace('\\', '/', $this->argument('name')); <add>...
1
Ruby
Ruby
improve name detection of anonymous subclasses
f12442cce676bf88fca8dc56c2bd430171c346c6
<ide><path>Library/Homebrew/requirement.rb <ide> def mktemp(&block) <ide> private <ide> <ide> def infer_name <del> klass = self.class.name || self.class.to_s <del> klass = klass.sub(/(Dependency|Requirement)$/, "") <del> .sub(/^(\w+::)*/, "") <add> klass = self.class.name <add> klass = ...
1
PHP
PHP
shorten constant names
0863a51455ff12ccc16a1aa15903f5152a446fcb
<ide><path>src/Validation/Validation.php <ide> class Validation <ide> * <ide> * @var string <ide> */ <del> const COMPARE_GREATER_THAN_OR_EQUAL_TO = '>='; <add> const COMPARE_GREATER_OR_EQUAL = '>='; <ide> <ide> /** <ide> * Less than comparison operator. <ide> class Validation <ide> *...
2
Javascript
Javascript
destroy child scope when destroying dom
9483373c331343648e079420b3eb1f564d410ff2
<ide><path>src/ng/directive/ngIf.js <ide> var ngIfDirective = ['$animate', function($animate) { <ide> $$tlb: true, <ide> compile: function (element, attr, transclude) { <ide> return function ($scope, $element, $attr) { <del> var block = {}, childScope; <add> var block, childScope; <ide> ...
2
Java
Java
fix spel compilation of constructor invocation
aae221cb159b9b0de4d4bc7cc0174d12a015b510
<ide><path>spring-expression/src/main/java/org/springframework/expression/spel/CodeFlow.java <ide> package org.springframework.expression.spel; <ide> <ide> import java.lang.reflect.Constructor; <add>import java.lang.reflect.Member; <ide> import java.lang.reflect.Method; <ide> import java.util.ArrayList; <ide> import j...
7
Ruby
Ruby
remove redundant comments
b3ed5a367df7e551f5e3b30cb140486fa56ff3c7
<ide><path>Library/Homebrew/formula.rb <ide> def to_hash <ide> <ide> end <ide> <del> # For brew-fetch and others. <ide> def fetch <ide> active_spec.fetch <ide> end <ide> <del> # For FormulaInstaller. <ide> def verify_download_integrity fn <ide> active_spec.verify_download_integrity(fn) <ide> end ...
2
Python
Python
add separate noise vs orth level to train cli
f3906950d3f17681bff3b1bede1b81d8ebfb1bec
<ide><path>spacy/cli/train.py <ide> str, <ide> ), <ide> noise_level=("Amount of corruption for data augmentation", "option", "nl", float), <add> orth_variant_level=("Amount of orthography variation for data augmentation", "option", "ovl", float), <ide> eval_beam_widths=("Beam widths to evaluate, ...
1
Python
Python
update addition example
361a7cfe41f7663fd9f0c12345e4ca52b0a8a2a5
<ide><path>examples/addition_rnn.py <ide> Output: "596" <ide> Padding is handled by using a repeated sentinel character (space) <ide> <del>By default, the JZS1 recurrent neural network is used <del>JZS1 was an "evolved" recurrent neural network performing well on arithmetic benchmark in: <del>"An Empirical Exploration...
1
Go
Go
move "copy" to daemon/copy.go
06229a4b76aa221d08cfb1888b919da31c49194f
<ide><path>daemon/copy.go <add>package daemon <add> <add>import ( <add> "io" <add> <add> "github.com/docker/docker/engine" <add>) <add> <add>func (daemon *Daemon) ContainerCopy(job *engine.Job) engine.Status { <add> if len(job.Args) != 2 { <add> return job.Errorf("Usage: %s CONTAINER RESOURCE\n", job.Name) <add> } <ad...
4
Text
Text
update the readme file
b3b561e095081aeac7b1b6e293e45f7764fb9ff0
<ide><path>readme.md <ide> - Added `URL::previous` method for getting previous URL from `referer` $_SERVER variable. <ide> - Renamed `path` helper to `url` for consistency. <ide> - Added `App::shutdown` method for registering callbacks to be fired at very end of both web and Artisan life-cycle. <add>- Added `saveMany` ...
1
PHP
PHP
add failed job handling for syncqueue
8b7c5a42895f41028899f9dfeb0059bcdb250183
<ide><path>src/Illuminate/Queue/SyncQueue.php <ide> <?php namespace Illuminate\Queue; <ide> <add>use Exception; <ide> use Illuminate\Queue\Jobs\SyncJob; <add>use Illuminate\Contracts\Queue\Job; <ide> use Illuminate\Contracts\Queue\Queue as QueueContract; <ide> <ide> class SyncQueue extends Queue implements QueueContr...
2
Java
Java
check template availability in scripttemplateview
9e5435e6f2b9110969af9d581d1a05c6106b8dd7
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/view/script/ScriptTemplateView.java <ide> <ide> package org.springframework.web.servlet.view.script; <ide> <add>import java.io.FileNotFoundException; <ide> import java.io.IOException; <ide> import java.io.InputStreamReader; <ide> import java.nio.c...
2
Javascript
Javascript
remove unneeded tests
732620cfe91154d1b821cb1c04ebbfd4c7c44d04
<ide><path>test/parallel/test-async-wrap-check-providers.js <del>'use strict'; <del> <del>const common = require('../common'); <del>if (!common.hasCrypto) { <del> common.skip('missing crypto'); <del> return; <del>} <del> <del>const assert = require('assert'); <del>const crypto = require('crypto'); <del>const dgram = ...
7
Javascript
Javascript
skip flaky dynamic import tests
489ca73e436c54408b8769437d5fd51bb336d6f4
<ide><path>test/integration/react-streaming-and-server-components/test/index.test.js <ide> describe('concurrentFeatures - dev', () => { <ide> await killApp(context.server) <ide> }) <ide> <del> it('should support React.lazy and dynamic imports', async () => { <add> // TODO: re-enabled test when update webpack w...
1
Javascript
Javascript
fix typo in computed_macros.js
28a16f2b56584c7a786b85e393606aeb23d58802
<ide><path>packages/ember-metal/lib/computed_macros.js <ide> registerComputed('equal', function(dependentKey, value) { <ide> }); <ide> <ide> /** <del> A computed property that returns true if the provied dependent property <add> A computed property that returns true if the provided dependent property <ide> is grea...
1
Javascript
Javascript
clarify test types during scaffolding
5c8e787803af7337f8b7665bceb8b90be78dff5a
<ide><path>plopfile.js <ide> module.exports = function (plop) { <ide> type: 'list', <ide> name: 'type', <ide> message: 'Test type', <del> choices: ['e2e', 'unit', 'production', 'development'], <add> choices: [ <add> { <add> name: 'e2e - Test "next dev" and "next...
1
Java
Java
fix simple typo in comment
5c12a84c7790cdeeba9f0ad0a68c061240dddb32
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/JSTouchDispatcher.java <ide> public void handleTouchEvent(MotionEvent ev, EventDispatcher eventDispatcher) { <ide> mTargetCoordinates[1], <ide> mTouchEventCoalescingKeyHelper)); <ide> } else if (action == MotionEvent.ACTI...
1
Text
Text
correct typos in incidence matrix instruction
890ce894ccaf044643d083cc367cc8a3c4fc27b5
<ide><path>curriculum/challenges/english/08-coding-interview-prep/data-structures/incidence-matrix.english.md <ide> Graphs can also have <dfn>weights</dfn> on their edges. So far, we have <dfn>unw <ide> ## Instructions <ide> <section id='instructions'> <ide> Create an incidence matrix of an undirected graph with five n...
1
Python
Python
raise assertionerror instead of assert
05921b06c3ef486ff173645b915cd93e5f8cddd6
<ide><path>numpy/ma/testutils.py <ide> def assert_equal(actual,desired,err_msg=''): <ide> """ <ide> # Case #1: dictionary ..... <ide> if isinstance(desired, dict): <del> assert isinstance(actual, dict), repr(type(actual)) <add> if not isinstance(actual, dict): <add> raise AssertionE...
1
Ruby
Ruby
change one more place for json string to hash
ac49fb1aa92ac9f65e009eec2bb22f730f8c37f5
<ide><path>activemodel/lib/active_model/serializers/json.rb <ide> module JSON <ide> # The remainder of the examples in this section assume include_root_in_json is set to <ide> # <tt>false</tt>. <ide> # <del> # Without any +options+, the returned JSON string will include all the model's <add> ...
1
Java
Java
fix javadoc for httpheaders#setcontentlanguage
4523d01a5001835891b2f4160698521eef1256fe
<ide><path>spring-web/src/main/java/org/springframework/http/HttpHeaders.java <ide> public ContentDisposition getContentDisposition() { <ide> /** <ide> * Set the {@link Locale} of the content language, <ide> * as specified by the {@literal Content-Language} header. <del> * <p>Use {@code set(CONTENT_LANGUAGE, list...
1
Text
Text
resolve more crowdin issues
709018571bc1d6e686f67cb6883b3df30952e748
<ide><path>curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5f05a1d8e233dff4a68508d8.md <ide> Your new radio button should have an `id` attribute. Check that there is a space <ide> assert($('input')[1].hasAttribute('id')); <ide> ``` <ide> <del>Your new radio element shou...
2
Javascript
Javascript
add tests for .concat alongside template literals
08179b3860e0ac235cf766498d6fd36964136c10
<ide><path>test/cases/parsing/complex-require/amd.js <ide> it("should parse template strings in amd requires", function(done) { <ide> } <ide> } <ide> }) <add> <add>it("should parse .concat strings in amd requires", function(done) { <add> var name = "abc"; <add> var suffix = "Test"; <add> <add> var pending = [ <add> ...
3
PHP
PHP
add html escaping
b5b151e114702b420a9f3fe0c8d008bd8544fa7f
<ide><path>Cake/View/Input/SelectBox.php <ide> public function __construct($templates) { <ide> } <ide> <ide> public function render($data) { <add> $data += [ <add> 'name' => '', <add> 'empty' => false, <add> 'escape' => true, <add> 'options' => [], <add> 'disabled' => null, <add> 'value' => null, <add> ...
2
Javascript
Javascript
move initial addclass to the compile phase
b1ee5386d584f208bce6d3b613afdb3bae9df76a
<ide><path>src/ng/directive/form.js <ide> function FormController(element, attrs, $scope, $animate, $interpolate) { <ide> <ide> parentForm.$addControl(form); <ide> <del> // Setup initial state of the control <del> element.addClass(PRISTINE_CLASS); <del> <ide> /** <ide> * @ngdoc method <ide> * @name form.F...
2
Java
Java
fix failing headerassertiontests
7f845f7b5e6031aee2f1dc37f0965a5be4442a34
<ide><path>spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone/resultmatchers/HeaderAssertionTests.java <ide> /* <del> * Copyright 2002-2013 the original author or authors. <add> * Copyright 2002-2015 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Vers...
1
Text
Text
add link to logging drivers reference
7ca02f86de2ceef980cad98faefc15cbc628c91a
<ide><path>docs/reference/commandline/logs.md <ide> Options: <ide> -t, --timestamps Show timestamps <ide> ``` <ide> <del>> **Note**: this command is available only for containers with `json-file` and <del>> `journald` logging drivers. <del> <ide> The `docker logs` command batch-retrieves logs present at the time...
1
PHP
PHP
add knowledge, love and rain to uncountable array
964f69f66e2c9b4e3e0557ee26417dfe2936cf3d
<ide><path>src/Illuminate/Support/Pluralizer.php <ide> class Pluralizer <ide> 'fish', <ide> 'gold', <ide> 'information', <add> 'knowledge', <add> 'love', <add> 'rain', <ide> 'money', <ide> 'moose', <ide> 'offspring',
1
PHP
PHP
fix null value injected from container in routes
60027c4a1a0fd42fe00f38993167fc6e26fde694
<ide><path>src/Illuminate/Routing/RouteDependencyResolverTrait.php <ide> public function resolveMethodDependencies(array $parameters, ReflectionFunctionA <ide> <ide> $values = array_values($parameters); <ide> <add> $shouldSkipValue = new \StdClass; <add> <ide> foreach ($reflector->getParameters...
2
PHP
PHP
fix typo in description
602e0f923c94ff44cf0916c4a49ee8495c0ce3d9
<ide><path>src/Shell/CacheShell.php <ide> public function getOptionParser() <ide> 'description' => [ <ide> 'Clear the cache for a particular prefix.', <ide> 'For example, `cake cache clear _cake_model_` will clear the model cache', <del> 'Use `c...
1
PHP
PHP
add status code `429 too many requests`
4c3eeb1857f52a2027840bf15f48a01f4a5d2aa8
<ide><path>src/Network/Response.php <ide> class Response <ide> 415 => 'Unsupported Media Type', <ide> 416 => 'Requested range not satisfiable', <ide> 417 => 'Expectation Failed', <add> 429 => 'Too Many Requests', <ide> 500 => 'Internal Server Error', <ide> 501 => 'Not Impl...
1
PHP
PHP
remove invalid docblock
597f5ab16d0d2df67e50fedfd2fa66789b29998c
<ide><path>src/Illuminate/Database/Eloquent/SoftDeletes.php <ide> * @method static static|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder withTrashed(bool $withTrashed = true) <ide> * @method static static|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder onlyTrashed() ...
1
Javascript
Javascript
ignore more parent properties
6661f147e764f5275e4301ca5f4dadea1893a283
<ide><path>packages/ember-metal/lib/mixin.js <ide> function findNamespaces() { <ide> // globalStorage is a storage obsoleted by the WhatWG storage specification. See https://developer.mozilla.org/en/DOM/Storage#globalStorage <ide> if (prop === "globalStorage" && window.StorageList && window.globalStorage instan...
1
PHP
PHP
remove unneeded instanceof check
b200465653f1633a0fa644369fb6012976707f24
<ide><path>src/View/Form/ContextFactory.php <ide> public function addProvider(string $type, callable $check) <ide> * @param \Cake\Http\ServerRequest $request Request instance. <ide> * @param array $data The data to get a context provider for. <ide> * @return \Cake\View\Form\ContextInterface Context provi...
2
Javascript
Javascript
fix spelling of 'existence'
c0de6b51ff17ea94bfc57e66b801d54d1587adb3
<ide><path>src/browser/ui/ReactDOMComponent.js <ide> ReactDOMComponent.Mixin = { <ide> // we can do a cheap identity compare here to determine if this is a <ide> // superfluous reconcile. It's possible for state to be mutable but such <ide> // change should trigger an update of the owner which would r...
2
Ruby
Ruby
use presence method instead of checking for blank
6927fadbe7c3768f94d91dcd9197dc6c68cff6d7
<ide><path>actionpack/lib/action_view/lookup_context.rb <ide> def detail_args_for(options) <ide> # as well as incorrectly putting part of the path in the template <ide> # name instead of the prefix. <ide> def normalize_name(name, prefixes) #:nodoc: <del> prefixes = nil if prefixes.blank? <add> ...
1
Text
Text
remove extraneous full stop after exclamation mark
4f898f687d534cf08386dfc1874eb5027319d621
<ide><path>docs/tutorials/fundamentals/part-3-state-actions-reducers.md <ide> const todoAppState = { <ide> } <ide> ``` <ide> <del>It's important to note that **it's okay to have other state values outside of Redux!**. This example is small enough so far that we actually do have all our state in the Redux store, but as...
1
Python
Python
add type check to axis
96148d86f3b2fe52ac99c898d2adcb5cca7ddde5
<ide><path>keras/losses.py <ide> def categorical_crossentropy(y_true, <ide> Categorical crossentropy loss value. <ide> """ <ide> #axis assert <del> check_ops.assert_integer_v2(axis, message=('`axis` must be of type `int`.')) <add> check_ops.assert_integer_v2(int(axis), message=('`axis` must be of type `int`.'...
1
Ruby
Ruby
allow deprecated hash syntax in cask headers
5b593ebb8958cc57cfbbd7013ca3d275466d66bf
<ide><path>Library/Homebrew/cask/lib/hbc/source/path_base.rb <ide> def test_cask(header_token, &block) <ide> end <ide> <ide> def build_cask(cask_class, header_token, &block) <add> if header_token.is_a?(Hash) <add> # Cask file is using old `cask :v1 => 'token'` syntax <add> header_token = header_token....
3
Text
Text
add experimental note to docs for has
1cf7360788a35485c45d69b5f24427c3fe6fb6cc
<ide><path>docs/api-reference/next.config.js/headers.md <ide> module.exports = { <ide> <ide> ## Header, Cookie, and Query Matching <ide> <add>Note: this feature is still experimental and not covered by semver and is to be used at your own risk until it is made stable. <add> <ide> To only apply a header when either he...
3
Javascript
Javascript
transform html scripts
4bf89a873eed4802ff08362e7ade08f0b332c360
<ide><path>client/src/templates/Challenges/rechallenge/builders.js <ide> A required file can not have both a src and a link: src = ${src}, link = ${link} <ide> <ide> const body = Promise.all(files).then(files => <ide> files <del> .reduce( <del> (body, file) => [...body, file.contents + file.tail + ht...
2
Go
Go
fix wrapf args
2e30e9e6db42043cb2bd67d25a7152488c834f9f
<ide><path>daemon/graphdriver/aufs/aufs.go <ide> func atomicRemove(source string) error { <ide> case os.IsExist(err): <ide> // Got error saying the target dir already exists, maybe the source doesn't exist due to a previous (failed) remove <ide> if _, e := os.Stat(source); !os.IsNotExist(e) { <del> return errors...
1
Javascript
Javascript
add spec for heapcapture
94029eee546cc8f95cedbb1dd4be73a6a62e53a9
<ide><path>Libraries/Core/setUpBatchedBridge.js <ide> BatchedBridge.registerLazyCallableModule('JSTimers', () => <ide> require('./Timers/JSTimers'), <ide> ); <ide> BatchedBridge.registerLazyCallableModule('HeapCapture', () => <del> require('../Utilities/HeapCapture'), <add> require('../HeapCapture/HeapCapture'), <i...
3
Python
Python
fix remaining misuses of bool(dt.names)
483f565d85dadc899f94710531fba8355d554d59
<ide><path>numpy/lib/recfunctions.py <ide> def recursive_fill_fields(input, output): <ide> current = input[field] <ide> except ValueError: <ide> continue <del> if current.dtype.names: <add> if current.dtype.names is not None: <ide> recursive_fill_fields(current,...
1
Python
Python
fix backfill occassional deadlocking
6931fbf8f7c0e3dfe96ce51ef03f2b1502baef07
<ide><path>airflow/jobs/backfill_job.py <ide> def _get_dag_run(self, dagrun_info: DagRunInfo, dag: DAG, session: Session = Non <ide> return run <ide> <ide> @provide_session <del> def _task_instances_for_dag_run(self, dag_run, session=None): <add> def _task_instances_for_dag_run(self, dag, dag_run, se...
2
Python
Python
add __repr__ and __str__ methods
91f8df844a1dc0d288b969d89465b707a541efd6
<ide><path>libcloud/compute/ssh.py <ide> def __init__(self, cmd, timeout): <ide> message = 'Command didn\'t finish in %s seconds' % (timeout) <ide> super(SSHCommandTimeoutError, self).__init__(message) <ide> <add> def __repr__(self): <add> return ('<SSHCommandTimeoutError: cmd="%s",timeout=%s...
1
Javascript
Javascript
fix missing methods in keyboard module
5105c09f56035df595104666e370a9fc57ca4dcd
<ide><path>Libraries/Components/Keyboard/Keyboard.js <ide> */ <ide> 'use strict'; <ide> <add>const invariant = require('fbjs/lib/invariant'); <ide> const NativeEventEmitter = require('NativeEventEmitter'); <ide> const KeyboardObserver = require('NativeModules').KeyboardObserver; <ide> const dismissKeyboard = require(...
1
Text
Text
add require(atom) for home directory example
94d4ad618caa00a0b8b228a40cd46e4d3192fba5
<ide><path>CONTRIBUTING.md <ide> * Class methods (methods starting with a `@`) <ide> * Instance methods <ide> * Beware of platform differences <del> * Use `fs.getHomeDirectory()` to get home directory. <add> * Use `require('atom').fs.getHomeDirectory()` to get the home directory. <ide> * Use `path.j...
1
Javascript
Javascript
use switch in matchheader
54caeae38a66841b7f7119649dc78ce55c8a7c52
<ide><path>lib/_http_outgoing.js <ide> const { utcDate } = internalHttp; <ide> <ide> const kIsCorked = Symbol('isCorked'); <ide> <del>var RE_FIELDS = <del> /^(?:Connection|Transfer-Encoding|Content-Length|Date|Expect|Trailer|Upgrade)$/i; <ide> var RE_CONN_VALUES = /(?:^|\W)close|upgrade(?:$|\W)/ig; <ide> var RE_TE_C...
1
Ruby
Ruby
remove unused sheep fixture from av
7375c17114cd3782aae0bfa08d36a8ed816c2ff5
<ide><path>actionview/test/lib/controller/fake_models.rb <ide> def value <ide> end <ide> end <ide> <del>class Sheep <del> extend ActiveModel::Naming <del> include ActiveModel::Conversion <del> <del> attr_reader :id <del> def to_key; id ? [id] : nil end <del> def save; @id = 1 end <del> def new_record?; @id.nil...
2
Python
Python
add test for
ac9e3a4a8beec9bfa849aa2c0d64788e58e9999f
<ide><path>spacy/tests/regression/test_issue1773.py <add>from __future__ import unicode_literals <add> <add> <add>def test_issue1773(en_tokenizer): <add> """Test that spaces don't receive a POS but no TAG. This is the root cause <add> of the serialization issue reported in #1773.""" <add> doc = en_tokenizer('\...
1
Javascript
Javascript
fix uastc to bc7 target format selection
2a6c961acef8052ca2cd28ed601e672596aeecbd
<ide><path>examples/jsm/loaders/KTX2Loader.js <ide> class KTX2Container { <ide> <ide> } else if ( config.bptcSupported && texFormat === TextureFormat.UASTC4x4 ) { <ide> <del> targetFormat = hasAlpha ? TranscodeTarget.BC7_M5_RGBA : BC7_M6_RGB; <add> targetFormat = TranscodeTarget.BC7_M5_RGBA; <ide> this.trans...
1
Go
Go
fix typo in variable
aac6008800ab06047ff000d6af487f3b52ba3019
<ide><path>integration-cli/docker_cli_run_test.go <ide> func (s *DockerSuite) TestRunDnsOptionsBasedOnHostResolvConf(c *check.C) { <ide> c.Fatalf("/etc/resolv.conf does not exist") <ide> } <ide> <del> hostNamservers := resolvconf.GetNameservers(origResolvConf, types.IP) <add> hostNameservers := resolvconf.GetNamese...
1
Text
Text
add lts info to collaborator_guide.md
d394e9e6bb75dc6a15befb89f7cd0b30df51596f
<ide><path>COLLABORATOR_GUIDE.md <ide> * [Landing Pull Requests](#landing-pull-requests) <ide> - [Technical HOWTO](#technical-howto) <ide> - [I Just Made a Mistake](#i-just-made-a-mistake) <add> - [Long Term Support](#long-term-support) <ide> <ide> This document contains information for Collaborators of the Node.js ...
1
Ruby
Ruby
fix typo in test error message
a71bbed76aab9e8a9a6b2da18bcacd8ee32a0dd0
<ide><path>railties/test/generators/app_generator_test.rb <ide> def test_active_storage_install <ide> case command <ide> when "active_storage:install" <ide> @binstub_called += 1 <del> assert_equal 1, @binstub_called, "active_storage:install expected to be called once, but was called #{@instal...
1
Go
Go
forbid attach to ghost
b76d63cb0c97aacec6d81c07108d2a573fb8af05
<ide><path>commands.go <ide> func (srv *Server) CmdAttach(stdin io.ReadCloser, stdout rcli.DockerConn, args . <ide> return fmt.Errorf("No such container: %s", name) <ide> } <ide> <add> if container.State.Ghost { <add> return fmt.Errorf("Impossible to attach to a ghost container") <add> } <add> <ide> if container....
1
Javascript
Javascript
report bad dead code elimination to react devtools
aebd7f545442360388f61e0e7f5bbb9e8fbc30c9
<ide><path>packages/react-dom/index.js <ide> 'use strict'; <ide> <add>function checkDCE() { <add> /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ <add> if ( <add> typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' || <add> typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function' <add> ) { <add> return;...
1
Ruby
Ruby
fix const reference for sessionrestoreerror
89082004b0381ec67b4a2782ef4d4f63853e586f
<ide><path>actionpack/lib/action_dispatch/middleware/session/abstract_store.rb <ide> def stale_session_check! <ide> # Note that the regexp does not allow $1 to end with a ':' <ide> $1.constantize <ide> rescue LoadError, NameError => const_error <del> raise Ac...
1
Javascript
Javascript
fix regression which affected old jquery releases
ef64169db32ffdf5e0e3ae2154ac434c6a55378b
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide, $$sanitizeUriProvider) { <ide> if (jqLiteIsTextNode(directiveValue)) { <ide> $template = []; <ide> } else { <del> $template = jqLite(directiveValue); <add> $template = jqLite(trim(direc...
1
Mixed
Javascript
add sync enterwith to als
d368dcc63af2eb75d5dbef5c6669e5e8ab3be5d2
<ide><path>doc/api/async_hooks.md <ide> If this method is called outside of an asynchronous context initialized by <ide> calling `asyncLocalStorage.run` or `asyncLocalStorage.runAndReturn`, it will <ide> return `undefined`. <ide> <add>### `asyncLocalStorage.enterWith(store)` <add><!-- YAML <add>added: REPLACEME <add>-...
3
PHP
PHP
put a guard on getinvalidfield() call
5d91bee023f3e03fddfb6f871948f24b2d87df1f
<ide><path>src/View/Form/EntityContext.php <ide> use ArrayAccess; <ide> use Cake\Collection\Collection; <ide> use Cake\Datasource\EntityInterface; <add>use Cake\Datasource\InvalidPropertyInterface; <ide> use Cake\ORM\Entity; <ide> use Cake\ORM\Locator\LocatorAwareTrait; <ide> use Cake\ORM\Table; <ide> public function v...
1
Python
Python
use keyword args to make it more explicit
59ce9031b854bc29926596f627bd0a6e271a1dd5
<ide><path>libcloud/compute/drivers/cloudstack.py <ide> def ex_get_node(self, node_id, project=None): <ide> <ide> node = self._to_node(data=vm, public_ips=list(public_ips.keys())) <ide> <del> addresses = [CloudStackAddress(address_id, address, node.driver) <del> for address, address...
1
Javascript
Javascript
use dynamic port in 3 test-cluster-worker tests
2519757b800a21c6b93490372841bc58307c46b7
<ide><path>test/parallel/test-cluster-worker-disconnect.js <ide> if (cluster.isWorker) { <ide> const http = require('http'); <ide> http.Server(() => { <ide> <del> }).listen(common.PORT, '127.0.0.1'); <add> }).listen(0, '127.0.0.1'); <ide> const worker = cluster.worker; <ide> assert.strictEqual(worker.exitedA...
3
Java
Java
remove unused variable in reacttextinputmanager
2afc4e24824a2f949fed54ce879c9f46d3b4ebdb
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java <ide> import android.view.KeyEvent; <ide> import android.view.View; <ide> import android.view.inputmethod.EditorInfo; <del>import android.widget.EditText; <ide> import android.widget.TextView; <ide> import androidx.annot...
1
PHP
PHP
convert language php 5.4 arrays
01e97e13e25a45d26df39042d1bdaba62d9b39ad
<ide><path>resources/lang/en/validation.php <ide> <?php <ide> <del>return array( <add>return [ <ide> <ide> /* <ide> |-------------------------------------------------------------------------- <ide> "alpha_num" => "The :attribute may only contain letters and numbers.", <ide> "array" => "T...
1
Javascript
Javascript
add details in assertions in test-vm-context
51637574daa06f5f378d72c83336008f5ec0050d
<ide><path>test/parallel/test-vm-context.js <ide> try { <ide> } catch (e) { <ide> gh1140Exception = e; <ide> assert.ok(/expected-filename/.test(e.stack), <del> 'expected appearance of filename in Error stack'); <add> `expected appearance of filename in Error stack: ${e.stack}`); <ide> } <del>a...
1
Javascript
Javascript
fix common chunk chunkhash validation
e1590e005ee36885e58f673a87d8ea3048898639
<ide><path>lib/Module.js <ide> class Module extends DependenciesBlock { <ide> super.sortItems(); <ide> this.chunks.sort(byId); <ide> this.reasons.sort((a, b) => byId(a.module, b.module)); <add> if(Array.isArray(this.usedExports)) { <add> this.usedExports.sort(); <add> } <ide> } <ide> <ide> unbuild() {
1
Ruby
Ruby
add support for mysql2 adapter to dbconsole
bf2ee896594f389b378fb1f1351f6f315b1a4498
<ide><path>railties/lib/rails/commands/dbconsole.rb <ide> def find_cmd(*commands) <ide> end <ide> <ide> case config["adapter"] <del> when "mysql" <add> when /^mysql/ <ide> args = { <ide> 'host' => '--host', <ide> 'port' => '--port', <ide> def find_cmd(*comman...
1
Javascript
Javascript
fix incorrect link
e26bc2370b8a1d1b1190899f4b948172e4c8316f
<ide><path>src/ng/directive/ngInclude.js <ide> * **Note:** When using onload on SVG elements in IE11, the browser will try to call <ide> * a function with the name on the window element, which will usually throw a <ide> * "function is undefined" error. To fix this, ...
1
Javascript
Javascript
add binding unittest
4f88d97af577e4b4f51e1943782e0380637e5233
<ide><path>test/unit/src/math/Euler.tests.js <ide> export default QUnit.module( 'Maths', () => { <ide> <ide> QUnit.test( "_onChangeCallback", ( assert ) => { <ide> <add> var b = false; <add> var a = new Euler( 11, 12, 13, "XYZ" ); <ide> var f = function () { <ide> <del> var b = true; <add> b = true; <...
2
Python
Python
improve support in tflite model conversion
083ee92fd6fd0eab20f8f91826a61ebe969b474f
<ide><path>official/vision/serving/export_tflite.py <ide> <ide> FLAGS = flags.FLAGS <ide> <del>flags.DEFINE_string( <add>_EXPERIMENT = flags.DEFINE_string( <ide> 'experiment', <ide> None, <ide> 'experiment type, e.g. retinanet_resnetfpn_coco', <ide> required=True) <del>flags.DEFINE_multi_string( <add>...
2
Ruby
Ruby
fix the test based on the changes on
7101489293ece071013417aeed2da3aa1b0927c9
<ide><path>activerecord/test/cases/associations/inverse_associations_test.rb <ide> def test_trying_to_use_inverses_that_dont_exist_should_raise_an_error <ide> if defined?(DidYouMean) && DidYouMean.respond_to?(:correct_error) <ide> def test_trying_to_use_inverses_that_dont_exist_should_have_suggestions_for_fix <id...
1
Javascript
Javascript
add unit test for getscript(object)
7be448d41fa124474aeee8423d57df11073791fd
<ide><path>test/unit/ajax.js <ide> if ( typeof window.ArrayBuffer === "undefined" || typeof new XMLHttpRequest().re <ide> } ); <ide> } ); <ide> <add> QUnit.test( "jQuery.getScript( Object ) - with callback", 2, function( assert ) { <add> var done = assert.async(); <add> <add> Globals.register( "testBar" ); <add> ...
1
Ruby
Ruby
remove code duplication
f170453493dd7c2d62f7b866867f7a3c8ec623d7
<ide><path>actionpack/lib/action_view/helpers/number_helper.rb <ide> def number_to_percentage(number, options = {}) <ide> def number_with_delimiter(number, options = {}) <ide> options.symbolize_keys! <ide> <del> begin <del> Float(number) <del> rescue ArgumentError, TypeError <del> ...
1
PHP
PHP
remove registry clear calls
9829646ea2e56a005796714e52ded5b8ef48b09c
<ide><path>src/Console/Command/Task/ModelTask.php <ide> public function bakeTable($model, array $data = []) { <ide> $filename = $path . 'Table' . DS . $name . 'Table.php'; <ide> $this->out("\n" . __d('cake_console', 'Baking table class for %s...', $name), 1, Shell::QUIET); <ide> $this->createFile($filename, $out)...
3
PHP
PHP
move some things into the dispatcher
3800ecb1f28a40964df80d51b4230288d49ecc7a
<ide><path>src/Illuminate/Bus/Dispatcher.php <ide> public function __construct(Container $container, Closure $queueResolver = null) <ide> $this->queueResolver = $queueResolver; <ide> } <ide> <add> /** <add> * Marshal a command and dispatch it to its appropriate handler. <add> * <add> * @param mixed $command <a...
3
Python
Python
add mapping of roberta for qa
d440e21f5bdf2de787b616c2ab16bd3ca362ddc1
<ide><path>src/transformers/modeling_auto.py <ide> RobertaForSequenceClassification, <ide> RobertaForTokenClassification, <ide> RobertaModel, <add> RobertaForQuestionAnswering <ide> ) <ide> from .modeling_t5 import T5_PRETRAINED_MODEL_ARCHIVE_MAP, T5Model, T5WithLMHeadModel <ide> from .modeling_transfo_x...
1