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
relocate config options merge
c4a2eaafa4764951c07f89aa8ffaf7b520832802
<ide><path>src/ORM/TableRegistry.php <ide> public static function get($alias, array $options = []) <ide> list(, $classAlias) = pluginSplit($alias); <ide> $options = ['alias' => $classAlias] + $options; <ide> <add> if (isset(static::$_config[$alias])) { <add> $options += static::$_conf...
1
PHP
PHP
add tests for testresponse
0745d9dccc8788680be7039470309ff03d844af2
<ide><path>tests/Foundation/FoundationTestResponseTest.php <add><?php <add> <add>namespace Illuminate\Tests\Foundation; <add> <add>use JsonSerializable; <add>use PHPUnit\Framework\TestCase; <add>use Illuminate\Foundation\Testing\TestResponse; <add> <add>class FoundationTestResponseTest extends TestCase <add>{ <add> ...
1
Ruby
Ruby
address syntax warnings in homebrew core
8091b33f85c96a93d14de80ce3bfd9c32f8bb58c
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_text <ide> problem "\"Formula.factory(name)\" is deprecated in favor of \"Formula[name]\"" <ide> end <ide> <del> if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec}/npm/bin] <add> if text =~ /system "npm", "install"/ && text !~ %r[opt...
4
Python
Python
add tests for regularizers
56e09ad7365ed09caded620f65e44160d6aa02b6
<ide><path>keras/layers/core.py <ide> class ActivityRegularization(Layer): <ide> Layer that passes through its input unchanged, but applies an update <ide> to the cost function based on the activity. <ide> ''' <del> def __init__(self, activity_regularizer): <add> def __init__(self, activity_re...
2
Javascript
Javascript
ignore setgstate no-ops
9674abc542603a0c6b38420e98b11c35ae2ba0f2
<ide><path>src/core/evaluator.js <ide> var PartialEvaluator = (function PartialEvaluatorClosure() { <ide> <ide> break; <ide> // Only generate info log messages for the following since <del> // they are unlikey to have a big impact on the rendering. <add> // they are unlikely to ...
1
Text
Text
mitigate `marked` bug
536b1fbd3ff38df3d5e8eb0b011820fd94f68b9d
<ide><path>doc/api/net.md <ide> Possible signatures: <ide> * [`server.listen(options[, callback])`][`server.listen(options)`] <ide> * [`server.listen(path[, backlog][, callback])`][`server.listen(path)`] <ide> for [IPC][] servers <del>* [`server.listen([port[, host[, backlog]]][, callback])`][`server.listen(port, hos...
1
Text
Text
fix preposition capitalization
f27175d166470e69a13ec96af6ac0d5f908dae57
<ide><path>docs/docs/07.1-more-about-refs.md <ide> Consider the case when you wish to tell an `<input />` element (that exists with <ide> return ( <ide> <div> <ide> <div onClick={this.clearAndFocusInput}> <del> Click To Focus and Reset <add> Click to Focus and Reset <ide> ...
1
Javascript
Javascript
revert local file
df5dced258776058f8b45c2c85d1974c075567a0
<ide><path>locale/es.js <ide> }(this, function (moment) { 'use strict'; <ide> <ide> <del> var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'), <del> monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'); <add> var monthsShortDot = 'Ene._Feb._...
1
Java
Java
fix typo in beandefinitionparserdelegate
072961b91ae03c998dc4aa27a87590e5d897fd12
<ide><path>spring-beans/src/main/java/org/springframework/beans/factory/xml/BeanDefinitionParserDelegate.java <ide> /* <del> * Copyright 2002-2019 the original author or authors. <add> * Copyright 2002-2020 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License");...
1
PHP
PHP
use less inflection on aliasing
4b6806379c45436a051a1fb65eea8be8c143f132
<ide><path>src/ORM/Locator/TableLocator.php <ide> public function getConfig(?string $alias = null): array <ide> * key in the registry. This means that if two plugins, or a plugin and app provide <ide> * the same alias, the registry will only store the first instance. <ide> * <del> * @param string $al...
1
Ruby
Ruby
remove preset env vars for encryption keys
5cec2eced604cd18482c9c664dcabb903ac19a21
<ide><path>activerecord/lib/active_record/railtie.rb <ide> class Railtie < Rails::Railtie # :nodoc: <ide> initializer "active_record_encryption.configuration" do |app| <ide> config.before_initialize do <ide> ActiveRecord::Encryption.configure \ <del> master_key: app.credentials.dig(:active_r...
1
Java
Java
fix bug in sockjs jsonptransporthandler
82ec06ad349426acf663f8edc22dd7716c4ff2cd
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/JsonpTransportHandler.java <ide> public void handleRequestInternal(ServerHttpRequest request, ServerHttpResponse <ide> <ide> @Override <ide> protected String[] readMessages(ServerHttpRequest request) throws IOException { <del> ...
2
Ruby
Ruby
fix shebang on created files
e0a4d8be93b1bfa17cbf1fb87947d7b12049ddc7
<ide><path>railties/lib/generator/generators/app.rb <ide> def app_secret <ide> ActiveSupport::SecureRandom.hex(64) <ide> end <ide> <del> def freeze <del> options[:freeze] <del> end <del> <ide> def shebang <del> options[:ruby] || "#!/usr/bin/env ruby" <add> "#!#{option...
2
Mixed
Javascript
fix various spelling mistakes
360a4780339b7f412b75ad8a06dca7f39616f654
<ide><path>build/release/dist.js <ide> module.exports = function( Release, complete ) { <ide> shell = require( "shelljs" ), <ide> pkg = require( Release.dir.repo + "/package.json" ), <ide> distRemote = Release.remote.replace( "jquery.git", "jquery-dist.git" ), <del> // These files are included with the distrubti...
6
Javascript
Javascript
add invert to mercator, albers and azimuthal
872c9ff13be83a20601c2989b4fc276c1aebaaff
<ide><path>d3.geo.js <ide> d3.geo.azimuthal = function() { <ide> sx1 = Math.sin(x1), <ide> cy1 = Math.cos(y1), <ide> sy1 = Math.sin(y1), <del> k = mode == "stereographic" ? 1 / (1 + sy0 * sy1 + cy0 * cy1 * cx1) : 1, <add> k = mode === "stereographic" ? 1 / (1 + sy0 * sy1 + cy0 * cy...
8
Javascript
Javascript
fix minimum values for writeint*() functions
3b852d7faba82d5ec2367939ecc98c3ab03cb2e6
<ide><path>lib/buffer.js <ide> Buffer.prototype.writeInt8 = function(value, offset, noAssert) { <ide> assert.ok(offset < buffer.length, <ide> 'Trying to write beyond buffer length'); <ide> <del> verifsint(value, 0x7f, -0xf0); <add> verifsint(value, 0x7f, -0x80); <ide> } <ide> <ide> if (value >= ...
2
Javascript
Javascript
handle any element in triggermouseevent in tests
8b110fdc513141e99848ae236860741e48cc31ff
<ide><path>test/specs/controller.polarArea.tests.js <ide> describe('Chart.controllers.polarArea', function() { <ide> var chart = this.chart; <ide> var arc = chart.getDatasetMeta(0).data[0]; <ide> <del> jasmine.triggerMouseEvent(chart, 'mousemove', {_model: arc.getCenterPoint()}); <add> jasmine.triggerMouseEv...
2
Python
Python
move ma/matrix regressions out of numpy.core tests
1c321def2841860d97cd335a6a34fc8abed4a548
<ide><path>numpy/core/tests/test_regression.py <ide> def test_pickle_transposed(self,level=rlevel): <ide> f.close() <ide> assert_array_equal(a,b) <ide> <del> def test_masked_array_create(self,level=rlevel): <del> """Ticket #17""" <del> x = np.ma.masked_array([0,1,2,3,0,4,5,6],mask=[0,0...
3
Java
Java
behaviorsubject subscription timegap fix
4bb777c63a38d9e962766a0d7b612e6d8f73e980
<ide><path>rxjava-core/src/main/java/rx/subjects/BehaviorSubject.java <ide> */ <ide> package rx.subjects; <ide> <add>import java.util.ArrayList; <ide> import java.util.Collection; <add>import java.util.List; <ide> import java.util.concurrent.atomic.AtomicReference; <ide> <ide> import rx.Notification; <ide> import rx...
3
PHP
PHP
add doc for _basename()
902e05e75f81131bab03d246eb89b3599955be13
<ide><path>src/Filesystem/File.php <ide> public function name() <ide> /** <ide> * Returns the file basename. simulate the php basename(). <ide> * <add> * @param string $path Path to file <add> * @param string|null $ext The name of the extension <ide> * @return string the file basename. <ide> ...
1
PHP
PHP
add templatevars support to widgets
146d7c81e9ed650265befed0b68f7dfe2719e68c
<ide><path>src/View/Widget/ButtonWidget.php <ide> public function render(array $data, ContextInterface $context) <ide> 'text' => '', <ide> 'type' => 'submit', <ide> 'escape' => false, <add> 'templateVars' => [] <ide> ]; <ide> return $this->_templates->forma...
8
Text
Text
add note about getconfig
cfe748d4b5c1ec7ef9ec4adc4bec534a9616aed8
<ide><path>readme.md <ide> module.exports = { <ide> ```js <ide> // pages/index.js <ide> import getConfig from 'next/config' <del>const {serverRuntimeConfig, publicRuntimeConfig} = getConfig() <add>const {serverRuntimeConfig, publicRuntimeConfig} = getConfig() // Only holds serverRuntimeConfig and publicRuntimeConfig fr...
1
Ruby
Ruby
move default pub_date value
e7d3b2cb3116cdd5354c443b0534e50b26ce6113
<ide><path>Library/Homebrew/livecheck/strategy/sparkle.rb <ide> def self.item_from_content(content) <ide> version ||= (item > "version").first&.text&.strip <ide> <ide> title = (item > "title").first&.text&.strip <del> pub_date = (item > "pubDate").first&.text&.strip&.yield_self { |d|...
1
Text
Text
add readme for explosion-bot
29afbdb91e5fecf513125a85f1ac1d165f40bc93
<ide><path>extra/DEVELOPER_DOCS/ExplosionBot.md <add># Explosion-bot <add> <add>Explosion-bot is a robot that can be invoked to help with running particular test commands. <add> <add>## Permissions <add> <add>Only maintainers have permissions to summon explosion-bot. Each of the open source repos that use explosion-bot...
1
Javascript
Javascript
fix jshint error in ember-debug/main
12bca9f7fcdc7701e61f1f84af50919c0065e7af
<ide><path>packages/ember-debug/lib/main.js <del>/*global __fail__*/ <del> <ide> import Ember from 'ember-metal/core'; <ide> import { registerDebugFunction } from 'ember-metal/assert'; <ide> import isEnabled, { FEATURES } from 'ember-metal/features';
1
Python
Python
improve speed to run `airflow` by 6x
1a8a897120762692ca98ac5ce4da881678c073aa
<ide><path>airflow/exceptions.py <ide> import warnings <ide> from typing import Any, Dict, List, NamedTuple, Optional, Sized <ide> <del>from airflow.api_connexion.exceptions import NotFound as ApiConnexionNotFound <del>from airflow.utils.code_utils import prepare_code_snippet <del>from airflow.utils.platform import is...
8
Ruby
Ruby
improve relocatability check
c5bd5c4aa7f0595c91431407ff5bda4b1938afc3
<ide><path>Library/Homebrew/dev-cmd/bottle.rb <ide> def bottle_formula(f) <ide> relocatable = false if keg_contain?(cellar, keg, ignores) <ide> if prefix != prefix_check <ide> relocatable = false if keg_contain_absolute_symlink_starting_with?(prefix, keg) <add> relocatable = f...
1
Javascript
Javascript
remove unused code and broken unittests
1ff28f8961155f32eb95b0c4de1f766fc5703fe7
<ide><path>lib/removeAndDo.js <del>/* <del> MIT License http://www.opensource.org/licenses/mit-license.php <del> Author Tobias Koppers @sokra <del>*/ <del>"use strict"; <del> <del>// TODO can this be deleted? <del>module.exports = (collection, thing, action) => { <del> const idx = this[collection].indexOf(thing); <del>...
7
Text
Text
fix wrong feature description in changelog
b4a89489ae0ba3b399aeb05e599bb8072a462c6e
<ide><path>CHANGELOG.md <ide> ### Bug fixes <ide> <ide> - Add missing 'Names' field to /containers/json API output <del>- Make `docker rmi --dangling` safe when pulling <add>- Make `docker rmi` of dangling images safe while pulling <ide> - Devicemapper: Change default basesize to 100G <ide> - Go Scheduler issue with s...
1
Javascript
Javascript
improve string (de)serialization
227c16b9a8a406173c626b5f562a838417bc20b9
<ide><path>lib/serialization/BinaryMiddleware.js <ide> BooleansSection -> TrueHeaderByte | FalseHeaderByte | BooleansSectionHeaderByte <ide> F64NumbersSection -> F64NumbersSectionHeaderByte f64* <ide> I32NumbersSection -> I32NumbersSectionHeaderByte i32* <ide> I8NumbersSection -> I8NumbersSectionHeaderByte i8* <del>Sho...
2
Go
Go
add unit test for expose cache
7b89af2a08b65fac064603cb3b5eb8e091e2c076
<ide><path>integration/buildfile_test.go <ide> import ( <ide> "github.com/dotcloud/docker/archive" <ide> "github.com/dotcloud/docker/engine" <ide> "github.com/dotcloud/docker/image" <add> "github.com/dotcloud/docker/nat" <ide> "github.com/dotcloud/docker/utils" <ide> "io/ioutil" <ide> "net" <ide> func TestBuildEx...
1
PHP
PHP
use blade comments
88ecd387f62bd8a083ec1998d39d9b5d881e2b35
<ide><path>src/Illuminate/Notifications/resources/views/email.blade.php <ide> <ide> @endforeach <ide> <del><!-- Salutation --> <add>{{-- Salutation --}} <ide> @if (! empty($salutation)) <ide> {{ $salutation }} <ide> @else <ide> Regards,<br>{{ config('app.name') }} <ide> @endif <ide> <del><!-- Subcopy --> <add>{{-- S...
1
Ruby
Ruby
resolve bug in nested formbuilder#field_id
3b34cb9e395eea361c996c428b69c568903dc2ae
<ide><path>actionview/lib/action_view/helpers/form_helper.rb <ide> def id <ide> # element, sharing a common <tt>id</tt> root (<tt>post_title</tt>, in this <ide> # case). <ide> def field_id(method, *suffixes, index: @index) <del> @template.field_id(@object || @object_name, method, *suffixes, ind...
2
Javascript
Javascript
simplify date inspection tests
666c67e078bddc32f25409f4a929c1e9b5f47373
<ide><path>test/parallel/test-util-inspect.js <ide> assert.strictEqual(util.inspect('"\'${a}'), "'\"\\'${a}'"); <ide> [RegExp, ['foobar', 'g'], '/foobar/g'], <ide> [WeakSet, [[{}]], '{ <items unknown> }'], <ide> [WeakMap, [[[{}, {}]]], '{ <items unknown> }'], <del> [BigInt64Array, [10], '[ 0n, 0n, 0n, 0n, 0n, 0n...
1
Text
Text
add v4.0.0-beta.3 to changelog
70e95eaa305640d4ca2c08754b2c34c120b2c3cc
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v4.0.0-beta.3 (August 30, 2021) <add> <add>- [#19708](https://github.com/emberjs/ember.js/pull/19708) [CLEANUP] Remove class-binding-and-class-name-bindings-in-templates <add> <ide> ### v4.0.0-beta.2 (August 23, 2021) <ide> <ide> - [#19680](https://github...
1
Javascript
Javascript
fix image link
0472f0fa819a4974a9624542603fd8a3c2639e73
<ide><path>examples/cms-sanity/components/cover-image.js <ide> export default function CoverImage({ title, slug, image: source }) { <ide> return ( <ide> <div className="sm:mx-0"> <ide> {slug ? ( <del> <Link href={slug}> <add> <Link href={`/posts/${slug}`}> <ide> <a aria-label={title}...
1
Text
Text
move timothy to tsc emeritus
aea81fc9ff64b3111b67386a0f21ad194c144698
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Michaël Zasso** &lt;targos@protonmail.com&gt; (he/him) <ide> * [thefourtheye](https://github.com/thefourtheye) - <ide> **Sakthipriyan Vairamani** &lt;thechargingvolcano@gmail.com&gt; (he/him) <del>* [TimothyGu](https://g...
1
Mixed
Javascript
fix some misspellings
064c1be2ba8a98a7c49b3ec54cbcff70bf7c03e6
<ide><path>docs/guides/options.md <ide> The source URL to a video source to embed. <ide> <ide> > Type: `string|number` <ide> <del>Sets the display height of the video player in pixels. <add>Sets the display width of the video player in pixels. <ide> <ide> ## Video.js-specific Options <ide> <ide> Using `<source>` el...
7
PHP
PHP
remove unneeded variable
b35d4c7bce7d88c10dfecfdde87589fa952a0d93
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> protected function performUpdate(Builder $query) <ide> $dirty = $this->getDirty(); <ide> <ide> if (count($dirty) > 0) { <del> $numRows = $this->setKeysForSaveQuery($query)->update($dirty); <del> <add> $this->setKeysForSav...
1
Python
Python
improve docs for multi_gpu_model
a04284341c26761d4b1a92f3245a535b2b2eaad4
<ide><path>keras/utils/training_utils.py <ide> def multi_gpu_model(model, gpus): <ide> width = 224 <ide> num_classes = 1000 <ide> <del> # Instantiate the base model <del> # (here, we do it on CPU, which is optional). <add> # Instantiate the base model (or "template" model). <add> ...
1
Javascript
Javascript
add map aside to challenges
cc1c2e6aa157c9121b96b0e880587e5bb5885e94
<ide><path>server/boot/challenge.js <ide> function getRenderData$(user, challenge$, origChallengeName, solution) { <ide> }); <ide> } <ide> <add>function getCompletedChallengeIds(user = {}) { <add> // if user <add> // get the id's of all the users completed challenges <add> return !user.completedChallenges ? <ad...
1
Ruby
Ruby
use homebrew_path for external commands
12e0a5ee7dc730c163655def44ae9e6dc316a44a
<ide><path>Library/Homebrew/brew.rb <ide> def require?(path) <ide> end <ide> <ide> path = PATH.new(ENV["PATH"]) <add> homebrew_path = PATH.new(ENV["HOMEBREW_PATH"]) <ide> <ide> # Add contributed commands to PATH before checking. <del> path.append(Pathname.glob(Tap::TAP_DIRECTORY/"*/*/cmd")) <add> tap_cmds = ...
1
PHP
PHP
remove unnecessary space
6f6f6ff7711671252be2d09abefc75e69b15b500
<ide><path>src/Illuminate/Routing/UrlGenerator.php <ide> public function hasValidSignature(Request $request, $absolute = true) <ide> <ide> $signature = hash_hmac('sha256', $original, call_user_func($this->keyResolver)); <ide> <del> return hash_equals($signature, (string) $request->query('signature', '...
1
Ruby
Ruby
reduce duplication somewhat
ea55d86eb110842347351c2b15b4103ed62172fb
<ide><path>activerecord/lib/active_record/fixtures.rb <ide> def primary_key_name <ide> @primary_key_name ||= model_class && model_class.primary_key <ide> end <ide> <add> def join_rows(targets, row, lhs_key, rhs_key) <add> targets = targets.is_a?(Array) ? targets : targets.split(/\s*,\s*/) <ad...
1
Java
Java
register annotation based on its type
059b66bf26c2aa8b96847938a2eb00e7645c69e1
<ide><path>spring-context/src/main/java/org/springframework/context/aot/ReflectiveProcessorBeanRegistrationAotProcessor.java <ide> import java.util.function.Consumer; <ide> <ide> import org.springframework.aot.generate.GenerationContext; <del>import org.springframework.aot.hint.MemberCategory; <ide> import org.springf...
6
Java
Java
add reactrootview perf markers
f1fbfebccbe0e4fc48d305b51efc373f69bf93f7
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java <ide> private void init() { <ide> @Override <ide> protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { <ide> Systrace.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, "ReactRootView.onMeasure"); <add> ReactMarker.logMarke...
2
Text
Text
clarify one commit per formula
14981e6265f27a1439778bb894be283a9e741066
<ide><path>share/doc/homebrew/How-To-Open-a-Homebrew-Pull-Request-(and-get-it-merged).md <ide> To make changes based on feedback: <ide> <ide> 1. Checkout your branch again with `git checkout YOUR_BRANCH_NAME` <ide> 2. Make any requested changes and commit them with `git add` and `git commit` <del>3. Squash new commits...
1
Text
Text
simplify sentences that use "considered"
c6bee70eec91debb6dafeb62b5dafce17a04fddb
<ide><path>doc/api/child_process.md <ide> process.send({ foo: 'bar', baz: NaN }); <ide> Child Node.js processes will have a [`process.send()`][] method of their own that <ide> allows the child to send messages back to the parent. <ide> <del>There is a special case when sending a `{cmd: 'NODE_foo'}` message. All messag...
4
Ruby
Ruby
fix spelling for permssions
bcea01ca0a6c9b37d2f147cfc577b93ebd7678f8
<ide><path>Library/Homebrew/extend/pathname.rb <ide> def make_relative_symlink src <ide> unless rv and $? == 0 <ide> raise <<-EOS.undent <ide> Could not create symlink #{to_s}. <del> Check that you have permssions on #{self.dirname} <add> Check that you have permissions on #{se...
1
Javascript
Javascript
use an es6 class in listview docs
700574fe76ee32f1fb6f892319ff7640fbf8ce7a
<ide><path>Libraries/CustomComponents/ListView/ListView.js <ide> var DEFAULT_SCROLL_CALLBACK_THROTTLE = 50; <ide> * Minimal example: <ide> * <ide> * ``` <del> * getInitialState: function() { <del> * var ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2}); <del> * return { <del> * dataSource:...
1
Python
Python
fix gradient checkpoint test in encoder-decoder
c6c9db3d0cc36c5fe57d508b669c305ac7894145
<ide><path>tests/models/encoder_decoder/test_modeling_encoder_decoder.py <ide> def test_training_gradient_checkpointing(self): <ide> ) <ide> <ide> model = EncoderDecoderModel(encoder=encoder_model, decoder=decoder_model) <del> model.train() <add> model.to(torch_device) <ide> model...
1
Text
Text
fix grammatical errors
50298e608076374ec72bae18ba4be8e3a7802aaf
<ide><path>threejs/lessons/fr/threejs-primitives.md <ide> Title: Primitives de Three.js <del>Description: Un tour des primitives de three.js <add>Description: Un tour des primitives de Three.js <ide> TOC: Primitives <ide> <del>Cet article fait partie d'une série consacrée à three.js. <del>Le premier article est [Pri...
1
Text
Text
remove last remaining danger
ca473de52f5f2245326a1c28907c88f062aa38ee
<ide><path>docs/how-to-translate-files.md <ide> These files will most likely be maintained by your language lead but you are wel <ide> <ide> ### On Crowdin <ide> <del>> [!DANGER] <add>> [!ATTENTION] <ide> > Do not edit the following files through a GitHub PR. <ide> <ide> The `intro.json` and `translations.json` file...
1
Javascript
Javascript
allow autocompletion for scoped packages
e248f7f9e7410c6c40cddc63f4b4f33547788895
<ide><path>lib/repl.js <ide> ArrayStream.prototype.writable = true; <ide> ArrayStream.prototype.resume = function() {}; <ide> ArrayStream.prototype.write = function() {}; <ide> <del>const requireRE = /\brequire\s*\(['"](([\w./-]+\/)?([\w./-]*))/; <add>const requireRE = /\brequire\s*\(['"](([\w@./-]+\/)?([\w@./-]*))/; ...
3
Go
Go
fix random bug in cli events test
e15c3e36cc5559c3ec17179d8740b2841709daf5
<ide><path>integration-cli/docker_cli_events_test.go <ide> func TestEventsFilterContainerID(t *testing.T) { <ide> container2 := stripTrailingCharacters(out) <ide> <ide> for _, s := range []string{container1, container2, container1[:12], container2[:12]} { <add> if err := waitInspect(s, "{{.State.Running}}", "false"...
1
Javascript
Javascript
enable fourth italian cert
dcf31599125e04c8209a398e993e0ef618d59e32
<ide><path>config/i18n/all-langs.js <ide> const auditedCerts = { <ide> italian: [ <ide> 'responsive-web-design', <ide> 'javascript-algorithms-and-data-structures', <del> 'front-end-libraries' <add> 'front-end-libraries', <add> 'data-visualization' <ide> ], <ide> portuguese: ['responsive-web-desig...
1
Python
Python
replace // operator with / operator + long()
33929448a1af579cf1d2ef76d1da8f26e1b50de1
<ide><path>src/transformers/generation_utils.py <ide> def beam_search( <ide> next_token_scores, 2 * num_beams, dim=1, largest=True, sorted=True <ide> ) <ide> <del> next_indices = next_tokens // vocab_size <add> next_indices = (next_tokens / vocab_size).long() <ide> ...
1
Java
Java
convert testcontext to interface & default impl
88fe2e9b00b68b05c35f2204dbc5783ff04d9bcc
<ide><path>spring-test/src/main/java/org/springframework/test/context/DefaultTestContext.java <add>/* <add> * Copyright 2002-2013 the original author or authors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file except in compliance with the License. <add>...
5
Ruby
Ruby
use formulary.factory to find formula in taps
3b15b58d007c38f56315a4a09908b6efaa46ee8e
<ide><path>Library/Homebrew/cmd/search.rb <ide> def search <ide> exec_browser "https://admin.fedoraproject.org/pkgdb/acls/list/*#{ARGV.next}*" <ide> elsif ARGV.include? '--ubuntu' <ide> exec_browser "http://packages.ubuntu.com/search?keywords=#{ARGV.next}&searchon=names&suite=all&section=all" <del> e...
1
Javascript
Javascript
fix bug in retry logic
568fb403bfb5b4b92ec912812b00095047d18850
<ide><path>packager/src/lib/GlobalTransformCache.js <ide> class URIBasedGlobalTransformCache { <ide> return ( <ide> error instanceof FetchError && error.type === 'request-timeout' || ( <ide> error instanceof FetchFailedError && <del> error.details.type === 'wrong_http_status' && <add> er...
1
PHP
PHP
add a locations method for moving test/case
e9f94d2132f5593aea9d6b92bff8f58114aae6d2
<ide><path>lib/Cake/Console/Command/UpgradeShell.php <ide> class UpgradeShell extends Shell { <ide> */ <ide> public function startup() { <ide> parent::startup(); <del> if ($this->params['dry-run']) { <add> if ($this->params['dryRun']) { <ide> $this->out(__d('cake_console', '<warning>Dry-run mode enabled!</warn...
1
Ruby
Ruby
extract simplified_type into the abstract class
4fcd847c8d9fb2b22e1c2e3c840c8d1c590b56b4
<ide><path>activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb <ide> module ActiveRecord <ide> module ConnectionAdapters <ide> class AbstractMysqlAdapter < AbstractAdapter <del> class Column < ConnectionAdapters::Column <add> class Column < ConnectionAdapters::Column # :nodoc: <...
3
Javascript
Javascript
remove old validation scripts
184c1f5b9d6067f4369bd092216ea70be710a294
<ide><path>tools/scripts/ci/ensure-challenge-formatting.js <del>const readdirp = require('readdirp-walk'); <del>const { has, isEmpty, isNumber } = require('lodash'); <del>const ora = require('ora'); <del> <del>const { parseMarkdown } = require('../../challenge-parser'); <del>const { challengeRoot, checkFrontmatter } = ...
3
Go
Go
add client.withapiversionnegotiation() option
b26aa97914dab997d6f8ebf1cb9c019f97e3c254
<ide><path>client/client.go <ide> type Client struct { <ide> customHTTPHeaders map[string]string <ide> // manualOverride is set to true when the version was set by users. <ide> manualOverride bool <add> <add> // negotiateVersion indicates if the client should automatically negotiate <add> // the API version to use w...
5
Ruby
Ruby
fix artifact list
5d38cd7296dabb5cf1a0f0065c82697b12f70229
<ide><path>Library/Homebrew/cask/cmd/list.rb <ide> # frozen_string_literal: true <ide> <add>require "cask/artifact/relocated" <add> <ide> module Cask <ide> class Cmd <ide> class List < AbstractCommand <ide> def self.list_casks(*casks, json: false, one: false, full_name: false, versions: <ide> elsif versi...
2
Ruby
Ruby
require open-uri where opening uri
95a8be46eaf0c9fe5eab4af0952d8e3ecb8fe2c8
<ide><path>activesupport/test/multibyte_test_helpers.rb <ide> # frozen_string_literal: true <ide> <ide> require "fileutils" <add>require "open-uri" <ide> require "tmpdir" <ide> <ide> module MultibyteTestHelpers
1
PHP
PHP
add a test for check 0 before natural number
f96a68f60343694abc19f0a842b7599140bf8792
<ide><path>tests/TestCase/Validation/ValidationTest.php <ide> public function testIsInteger() <ide> $this->assertTrue(Validation::isInteger(-10)); <ide> $this->assertTrue(Validation::isInteger(0)); <ide> $this->assertTrue(Validation::isInteger(10)); <add> $this->assertTrue(Validation::isI...
1
Text
Text
add missing space before hyphen
4e18f472c7c33fa82c1dc1db86d1b1dfe78f3104
<ide><path>README.md <ide> releases on a rotation basis as outlined in the <ide> * [mcollina](https://github.com/mcollina) - <ide> **Matteo Collina** <<matteo.collina@gmail.com>> (he/him) <ide> * Red Hat and IBM <del> * [joesepi](https://github.com/joesepi)- <add> * [joesepi](https://github.com/joesepi) - <ide>...
1
Javascript
Javascript
add missing semicolon
29a674b9736be9384ec8e077edeba475f3a892e3
<ide><path>d3.v2.js <ide> d3.interpolateObject = function(a, b) { <ide> for (k in i) c[k] = i[k](t); <ide> return c; <ide> }; <del>} <add>}; <ide> <ide> var d3_interpolate_number = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g; <ide> <ide><path>src/core/interpolate.js <ide> d3.interpolateObject = function(a...
2
Javascript
Javascript
use err_debugger_error in debugger client
c22eec85b477f73e95235caadbcaa2bb433e5f49
<ide><path>lib/internal/inspector/inspect_client.js <del>// TODO(aduh95): use errors exported by the internal/errors module <del>/* eslint-disable no-restricted-syntax */ <del> <ide> 'use strict'; <ide> <ide> const { <ide> ArrayPrototypePush, <del> Error, <ide> ErrorCaptureStackTrace, <ide> FunctionPrototypeBin...
1
Ruby
Ruby
add a new constructor for allocating test requests
78a5124bf09d0cd285d4d1a6242bd67badb2f621
<ide><path>actionpack/lib/action_controller/test_case.rb <ide> def self.new_session <ide> TestSession.new <ide> end <ide> <add> # Create a new test request with default `env` values <add> def self.create <add> env = {} <add> env = Rails.application.env_config.merge(env) if defined?(Rails.appl...
4
Javascript
Javascript
reduce diff noise
02c44a48943302d07a3b9575402a8992e57dada8
<ide><path>lib/internal/assert.js <ide> function createErrDiff(actual, expected, operator) { <ide> res += `\n${green}+${white} ${actualLines[i]}`; <ide> printedLines++; <ide> // Lines diverge <del> } else if (actualLines[i] !== expectedLines[i]) { <del> if (cur > 1 && i > 2) { <del> if (c...
2
Java
Java
improve asobservable() javadoc description
0cc4ff2f8f7bea2a9b5d274a73770f078d0641bc
<ide><path>src/main/java/rx/Observable.java <ide> public final Observable<T> ambWith(Observable<? extends T> t1) { <ide> } <ide> <ide> /** <del> * Disguises a object of an Observable subclass as a simple Observable object. Useful for instance when you <del> * have an implementation of a subclass of Obs...
1
PHP
PHP
add testcase method to drop plugins
91b4b45cfc85ba619fdf1d66b932afce16d16d66
<ide><path>config/bootstrap.php <ide> * @since 0.2.9 <ide> * @license https://opensource.org/licenses/mit-license.php MIT License <ide> */ <del> <ide> use Cake\Routing\Router; <ide> <ide> define('TIME_START', microtime(true)); <ide><path>src/TestSuite/TestCase.php <ide> <ide> use Cake\Core\App; <ide>...
59
Ruby
Ruby
fix audit suggestion
5c24876d024e3789fe5e87e31e9315c0eb1dfee6
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_line(line, lineno) <ide> end <ide> <ide> if line =~ /if\s+ARGV\.include\?\s+'--(HEAD|devel)'/ <del> problem "Use \"if ARGV.build_#{$1.downcase}?\" instead" <add> problem "Use \"if build.#{$1.downcase}?\" instead" <ide> end <ide> <ide> ...
1
PHP
PHP
make check for `..` more specific
c685f6ca1372609b36844baeaf990b37a76d0cd2
<ide><path>lib/Cake/Core/App.php <ide> public static function load($className) { <ide> if (!isset(self::$_classMap[$className])) { <ide> return false; <ide> } <del> if (strpos($className, '..')) { <add> if (strpos($className, '..') !== false) { <ide> return false; <ide> } <ide>
1
Text
Text
fix broken link for shouldcomponentupdate
234142cdf7aacf441145be534b84957db0f73af5
<ide><path>docs/DirectManipulation.md <ide> properties directly on a DOM node. <ide> > and stores state in the native layer (DOM, UIView, etc.) and not <ide> > within your React components, which makes your code more difficult to <ide> > reason about. Before you use it, try to solve your problem with `setState` <del>> ...
1
Javascript
Javascript
use deepstrictequal for false-y values
15d970d65c8da7970e6bacb9feccb4b830376881
<ide><path>test/parallel/test-repl-tab-complete.js <ide> var spaceTimeout = setTimeout(function() { <ide> }, 1000); <ide> <ide> testMe.complete(' ', common.mustCall(function(error, data) { <del> assert.deepEqual(data, [[], undefined]); <add> assert.deepStrictEqual(data, [[], undefined]); <ide> clearTimeout(spaceTi...
1
PHP
PHP
add strict typing to database types
99f41b86843a12fba3d6e53ed69f05ca408a0222
<ide><path>src/Database/Type/BaseType.php <ide> <?php <add>declare(strict_types=1); <ide> /** <ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <ide> abstract class BaseType implements TypeInterface <ide> * <i...
31
Ruby
Ruby
remove unused guard
ad291d7f06acefad08453d781b3bbc70edc71238
<ide><path>Library/Homebrew/bottles.rb <ide> def install_bottle? f, warn=false <ide> end <ide> <ide> def built_as_bottle? f <del> f = Formula.factory f unless f.kind_of? Formula <ide> return false unless f.installed? <ide> tab = Tab.for_keg(f.installed_prefix) <ide> # Need to still use the old "built_bottle" un...
1
Go
Go
remove unused variable, fix
9c9b748ad8fefb059d0c6bf585593ae1b623cc51
<ide><path>pkg/term/windows/ansi_reader.go <ide> func keyToString(keyEvent *winterm.KEY_EVENT_RECORD, escapeSequence []byte) stri <ide> // formatVirtualKey converts a virtual key (e.g., up arrow) into the appropriate ANSI string. <ide> func formatVirtualKey(key winterm.WORD, controlState winterm.DWORD, escapeSequence [...
1
Javascript
Javascript
hide ishidden challenges from hotkey nav
48532d6ccb14e2430e1cd07e1da641f60d055562
<ide><path>client/gatsby-node.js <ide> exports.createPages = function createPages({ graphql, actions, reporter }) { <ide> } <ide> <ide> // Create challenge pages. <del> result.data.allChallengeNode.edges.forEach( <del> createChallengePages(createPage) <add> const challengeEdges =...
2
Ruby
Ruby
use safe navigation
ddcd6df27ff8fc984789923227dd1d27e92e45b7
<ide><path>lib/active_storage/service/gcs_service.rb <ide> def download(key) <ide> end <ide> <ide> def delete(key) <del> file_for(key).try(:delete) <add> file_for(key)&.delete <ide> end <ide> <ide> def exist?(key)
1
Python
Python
improve record module documentation
0b516d28e606d97266a95234a8deea268ecc3ec8
<ide><path>numpy/core/records.py <ide> def _deprecate_shape_0_as_None(shape): <ide> <ide> def fromarrays(arrayList, dtype=None, shape=None, formats=None, <ide> names=None, titles=None, aligned=False, byteorder=None): <del> """ create a record array from a (flat) list of arrays <add> """Create a re...
1
Javascript
Javascript
add failing test
26519bc932b1e96fef2530449c22cb0dc3f0dad4
<ide><path>packages/ember-views/tests/views/container_view_test.js <ide> test("if a ContainerView starts with a currentView and then is set to null, the <ide> equal(get(container, 'childViews.length'), 0, "should not have any child views"); <ide> }); <ide> <del>test("if a ContainerView starts with a currentView and ...
1
Text
Text
remove joke in security guide [ci skip]
600c4138dd778f4e5633846b5b68a89dbb77193d
<ide><path>guides/source/security.md <ide> Here are some ideas how to hide honeypot fields by JavaScript and/or CSS: <ide> * make the elements very small or color them the same as the background of the page <ide> * leave the fields displayed, but tell humans to leave them blank <ide> <del>The most simple negative CAPT...
1
Text
Text
revise the performance table for applications
a9d9595101f7e38780f197dfde643fcfcc0814d3
<ide><path>docs/templates/applications.md <ide> model = InceptionV3(input_tensor=input_tensor, weights='imagenet', include_top=T <ide> <ide> | Model | Size | Top-1 Accuracy | Top-5 Accuracy | Parameters | Depth | <ide> | ----- | ----: | --------------: | --------------: | ----------: | -----: | <del>| [Xception](#xcep...
1
Java
Java
remove thread.sleep from unit test to speed it up
413887485eaaff20d960fed8d0c5b10449cdf1d4
<ide><path>rxjava-core/src/main/java/rx/operators/OperationConcat.java <ide> /** <ide> * Copyright 2013 Netflix, Inc. <del> * <add> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may not use this file except in compliance with the License. <ide> * You may obtain a copy of the...
1
Python
Python
add test for non-contiguous input to ufuncs
56201bb0cadbf36806aed14391d399f6a1cb6152
<ide><path>numpy/core/tests/test_ufunc.py <ide> def test_ufunc_types(ufunc): <ide> assert r.dtype == np.dtype(t) <ide> else: <ide> assert res.dtype == np.dtype(out) <add> <add>@pytest.mark.parametrize('ufunc', [getattr(np, x) for x in dir(np) <add> if i...
1
Javascript
Javascript
fix line length
82dec9b81e8e66d3fb63c3e7690b4bf5318dc65e
<ide><path>src/ngRoute/route.js <ide> function $RouteProvider(){ <ide> * `$location.path()` by applying the current route <ide> * <ide> * - `resolve` - `{Object.<string, function>=}` - An optional map of dependencies which should <del> * be injected into the controller. If any of these depende...
1
Text
Text
fix the inception link in resnet
fa32bb5f6627a386b352d18a2495ab2bbf7f6129
<ide><path>official/resnet/README.md <ide> Use `--data_dir` to specify the location of the CIFAR-10 data used in the previo <ide> ## ImageNet <ide> <ide> ### Setup <del>To begin, you will need to download the ImageNet dataset and convert it to TFRecord format. Follow along with the [Inception guide](https://github.com...
1
Text
Text
explain dynamic hints in more depth
0418c594451e042dfb57ef4fa6ce0bcf38273b73
<ide><path>docs/how-to-work-on-coding-challenges.md <ide> Tests to run against user code, in pairs of markdown text and code block test co <ide> Code for test one <ide> ``` <ide> <del>If you want dynamic output based on the user's code, --fcc-expected-- and --fcc-actual-- will be replaced with the expected and actual ...
1
Text
Text
add superstring core
57d70438c795273f236bc1b857ec3b7979fb418f
<ide><path>docs/build-instructions/build-status.md <ide> | [PathWatcher](https://github.com/atom/node-pathwatcher) | [![macOS Build Status](https://travis-ci.org/atom/node-pathwatcher.svg?branch=master)](https://travis-ci.org/atom/node-pathwatcher) | [![Windows Build Status](https://ci.appveyor.com/api/projects/status/...
1
Javascript
Javascript
add an ngaria module to make a11y easier
d1434c999a66c6bb915ee1a8b091e497d288d940
<ide><path>Gruntfile.js <ide> module.exports = function(grunt) { <ide> }, <ide> ngTouch: { <ide> files: { src: 'src/ngTouch/**/*.js' }, <add> }, <add> ngAria: { <add> files: {src: 'src/ngAria/**/*.js'}, <ide> } <ide> }, <ide> <ide> module.exports = function(grunt) { <ide>...
4
PHP
PHP
fix failing tests
6e9d8c283472aeaac7da5940eeda83d8dbe46027
<ide><path>lib/Cake/Network/Request.php <ide> protected static function _base() { <ide> protected function _processFiles($post, $files) { <ide> if (isset($files) && is_array($files)) { <ide> foreach ($files as $key => $data) { <del> $this->_processFileData($post, '', $data, $key); <add> if (!is_numeric($key...
5
PHP
PHP
fix docblock on orm/table.php
c36e102c30604c82024cbd337a5003415af0127d
<ide><path>src/ORM/Table.php <ide> protected function _update($entity, $data) <ide> * any one of the records fails to save due to failed validation or database <ide> * error. <ide> * <del> * @param \Cake\Datasource\EntityInterface[]|\Cake\ORM\ResultSet $entities Entities to save. <add> * @param \...
1
PHP
PHP
update latest cdn
6ab4004af9a6dce1f59278bf1134bfd7dd035907
<ide><path>resources/views/app.blade.php <ide> @yield('content') <ide> <ide> <!-- Scripts --> <del> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <del> <script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/js/bootstrap.min.js"></script> <add> <script src="//cdnjs...
1
Go
Go
add helpers to create errdef errors
87a12421a94faac294079bebc97c8abb4180dde5
<ide><path>api/errdefs/defs.go <ide> type ErrNotModified interface { <ide> NotModified() <ide> } <ide> <add>// ErrAlreadyExists is a special case of ErrConflict which signals that the desired object already exists <add>type ErrAlreadyExists interface { <add> AlreadyExists() <add>} <add> <ide> // ErrNotImplemented sig...
65
Java
Java
compare suffix patterns by length
0d3e5db3fff484a1d2812086044660b82c19c910
<ide><path>spring-core/src/main/java/org/springframework/util/AntPathMatcher.java <ide> else if (pattern2EqualsPath) { <ide> return 1; <ide> } <ide> <del> if (info1.isPrefixPattern() && info2.getDoubleWildcards() == 0) { <add> if (info1.isPrefixPattern() && info2.isPrefixPattern()) { <add> return info2.g...
2
Python
Python
fix error in seeding elastic `log_id` template
c97f0b3da09079778dc9317030cfacc5df01e88c
<ide><path>airflow/utils/db.py <ide> def log_template_exists(): <ide> session.add( <ide> LogTemplate( <ide> filename="{{ ti.dag_id }}/{{ ti.task_id }}/{{ ts }}/{{ try_number }}.log", <del> elasticsearch_id="{dag_id}-{task_id}-{execution_date}-{try_numbe...
1