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
Javascript
Javascript
add missing class annotations xplat/js
ee3d3c248df4e8be3a331ead5f6eea75c1cf237a
<ide><path>IntegrationTests/AccessibilityManagerTest.js <ide> import * as React from 'react'; <ide> const {TestModule} = NativeModules; <ide> <ide> class AccessibilityManagerTest extends React.Component<{...}> { <del> componentDidMount() { <add> componentDidMount(): void { <ide> invariant( <ide> NativeAcce...
66
Python
Python
remove outdated error condition
2189f30001585196634ef22afc395642e3c96f97
<ide><path>libcloud/compute/drivers/ec2.py <ide> def create_node(self, **kwargs): <ide> % (availability_zone.name)) <ide> params['Placement.AvailabilityZone'] = availability_zone.name <ide> <del> if 'auth' in kwargs and 'ex_keyname' in kwargs: <del> ...
1
PHP
PHP
remove check for items in apc driver
24fefe9eb26b202e3cd56c0132e086343d40bd16
<ide><path>system/cache/driver/apc.php <ide> public function has($key) <ide> */ <ide> public function get($key) <ide> { <del> if (array_key_exists($key, $this->items)) <del> { <del> return $this->items[$key]; <del> } <del> <ide> $cache = apc_fetch(\System\Config::get('cache.key').$key); <ide> <ide> if ($c...
1
Javascript
Javascript
revert a new line i have wrongly removed
0cd15ca493faf140fe0b73becfcf2273ae67a451
<ide><path>examples/js/loaders/GLTFLoader.js <ide> THREE.GLTFLoader = ( function () { <ide> geometries.push( geometry ); <ide> <ide> } <add> <ide> } <ide> <ide> return geometries;
1
PHP
PHP
add test case for shorter statement
682d6179bf8558e93176c03d6532cd744eae8705
<ide><path>src/Illuminate/View/Compilers/BladeCompiler.php <ide> protected function compileStatements($value) <ide> { <ide> $match[0] = $this->$method(array_get($match, 3)); <ide> } <del> else if (isset($this->statements[$match[1]])) <add> elseif (isset($this->statements[$match[1]])) <ide> { <ide> ...
2
Text
Text
remove duplicate issue template
68092aa311c5f262377fee7681a9a8fc3b92eb33
<ide><path>.github/ISSUE_TEMPLATE.md <del><!-- NOTE: If you're reporting a security issue, don't create a GitHub issue. Instead, email security@freecodecamp.org. We will look into it immediately. --> <del> <del>#### Describe your problem and - if possible - how to reproduce it <del> <del> <del>#### Add a Link to the pa...
1
Text
Text
add comment explaining no need for solutions
5dce06fccb035bb0d8e1bb53919f5a7587c79223
<ide><path>curriculum/challenges/english/06-information-security-and-quality-assurance/advanced-node-and-express/announce-new-users.english.md <ide> tests: <ide> <section id='solution'> <ide> <ide> ```js <del>// solution required <add>/** <add> Backend challenges don't need solutions, <add> because they would need ...
65
Javascript
Javascript
remove unused variable
c0a77029c4acb60844108fbbd7f5e960b1d81b7c
<ide><path>fixtures/ssr2/src/index.js <ide> import {hydrateRoot} from 'react-dom'; <ide> import App from './App'; <ide> <del>const root = hydrateRoot(document, <App assets={window.assetManifest} />); <add>hydrateRoot(document, <App assets={window.assetManifest} />);
1
Javascript
Javascript
support an array for line chart pointborderwidth
cc9e88aebcbef79f60b560213227792d4324871c
<ide><path>src/controllers/controller.line.js <ide> module.exports = function(Chart) { <ide> <ide> if (!isNaN(custom.borderWidth)) { <ide> borderWidth = custom.borderWidth; <del> } else if (!isNaN(dataset.pointBorderWidth)) { <add> } else if (!isNaN(dataset.pointBorderWidth) || helpers.isArray(dataset.point...
2
Ruby
Ruby
remove dead code in duplicable.rb
59f450500c37466fe7834cb1d3fa3a6cc8e643b5
<ide><path>activesupport/lib/active_support/core_ext/object/duplicable.rb <add> <ide> # frozen_string_literal: true <ide> <ide> #-- <ide> def duplicable? <ide> end <ide> end <ide> <del>class NilClass <del> begin <del> nil.dup <del> rescue TypeError <del> <del> # +nil+ is not duplicable: <del> # <del> ...
1
Ruby
Ruby
add some tests for no_color! behavior
44633dc7a587424d21917413500b2d71fa3d31bb
<ide><path>railties/lib/commands/destroy.rb <ide> end <ide> <ide> name = ARGV.shift <del>Rails::Generators.invoke name, ARGV, :revoke <add>Rails::Generators.invoke name, ARGV, :behavior => :revoke <ide><path>railties/lib/commands/generate.rb <ide> end <ide> <ide> name = ARGV.shift <del>Rails::Generators.invoke name, ...
5
Go
Go
handle cases where onbuild is not uppercase
a34831f0168156ded7ecf96a1734c2735fede1ca
<ide><path>builder/dispatchers.go <ide> import ( <ide> "fmt" <ide> "io/ioutil" <ide> "path/filepath" <add> "regexp" <ide> "strings" <ide> <ide> "github.com/docker/docker/nat" <ide> func onbuild(b *Builder, args []string, attributes map[string]bool, original str <ide> return fmt.Errorf("%s isn't allowed as an ON...
2
Java
Java
eliminate aj @async warning in test case
cf68cc5f0b2650bb1cd34064d7e43747f79285a4
<ide><path>spring-aspects/src/test/java/org/springframework/scheduling/aspectj/AnnotationAsyncExecutionAspectTests.java <ide> public class AnnotationAsyncExecutionAspectTests { <ide> <ide> @Before <ide> public void setUp() { <add> Assume.group(TestGroup.PERFORMANCE); <add> <ide> executor = new CountingExecutor();...
1
Javascript
Javascript
dump the stack with unhandled rejections
97a40252dcec831158c29c86bc84000f9546173d
<ide><path>src/util.js <ide> var Promise = PDFJS.Promise = (function PromiseClosure() { <ide> var now = Date.now(); <ide> for (var i = 0; i < this.unhandledRejections.length; i++) { <ide> if (now - this.unhandledRejections[i].time > REJECTION_TIMEOUT) { <del> warn('Unhandled rejecti...
1
Javascript
Javascript
implement module concatenation for json modules
bd2106b512d496b5430dde39bec24987b1bf1bf5
<ide><path>lib/json/JsonGenerator.js <ide> <ide> "use strict"; <ide> <del>const { ConcatSource, RawSource } = require("webpack-sources"); <add>const { RawSource } = require("webpack-sources"); <add>const ConcatenationScope = require("../ConcatenationScope"); <ide> const { UsageState } = require("../ExportsInfo"); <id...
1
Python
Python
add support for python 3.4 ast.nameconstant
0b7191397e7893011fda16402e1fbd56afb911d3
<ide><path>numpy/lib/utils.py <ide> def visitName(self, node): <ide> else: <ide> raise SyntaxError("Unknown name: %s" % node.id) <ide> <add> def visitNameConstant(self, node): <add> return node.value <add> <ide> def safe_eval(source): <ide> """ <ide> Protected stri...
1
PHP
PHP
apply fixes from styleci
eaf9db5d1f079a02aa6536c09481d138754fb7f8
<ide><path>src/Illuminate/Foundation/Bootstrap/LoadEnvironmentVariables.php <ide> protected function writeErrorAndDie(InvalidFileException $e) <ide> $output->writeln('The environment file is invalid!'); <ide> $output->writeln($e->getMessage()); <ide> <del> die(1); <add> exit(1); <ide> ...
4
Text
Text
add marsonya as a triager
3bba40abc636ff50b03930cb510f7d1082272563
<ide><path>README.md <ide> maintaining the Node.js project. <ide> <ide> ### Triagers <ide> <add>* [marsonya](https://github.com/marsonya) - <add>**Akhil Marsonya** &lt;akhil.marsonya27@gmail.com&gt; (he/him) <ide> * [PoojaDurgad](https://github.com/PoojaDurgad) - <ide> **Pooja Durgad** &lt;Pooja.D.P@ibm.com&gt; <ide>...
1
Python
Python
remove trailing whitespace
93b41a2f6082ee7293c45c7538d898369e158a61
<ide><path>numpy/core/tests/test_datetime.py <ide> class TestDateTime(TestCase): <ide> def test_creation(self): <ide> for unit in ['Y', 'M', 'W', 'B', 'D', <ide> 'h', 'm', 's', 'ms', 'us', <del> 'ns', 'ps', 'fs', 'as']: <add> 'ns', 'ps...
1
Javascript
Javascript
remove needless expression
ec75705f88dd4b44ec133d5167b69e88c175bb24
<ide><path>src/manipulation.js <ide> jQuery.extend({ <ide> // Deserialize a standard representation <ide> tag = ( rtagName.exec( elem ) || ["", ""] )[ 1 ].toLowerCase(); <ide> wrap = wrapMap[ tag ] || wrapMap._default; <del> tmp.innerHTML = wrap[ 1 ] + elem.replace( rxhtmlTag, "<$1></$2>" ) + ( wrap[...
1
Text
Text
add redux-falcor to ecosystem
4e0e5eb0ecd23d798e4e66bbe7a357e4cc23c9f4
<ide><path>docs/introduction/Ecosystem.md <ide> On this page we will only feature a few of them that the Redux maintainers have <ide> * [ng-redux](https://github.com/wbuchwalter/ng-redux) — Angular <ide> * [ng2-redux](https://github.com/wbuchwalter/ng2-redux) — Angular 2 <ide> * [backbone-redux](https://github.com/redb...
1
Javascript
Javascript
add spec for accessibilitymanager
71461cb3dd4ad40dbe4de656bfec4b1a614ffa95
<ide><path>Libraries/Components/AccessibilityInfo/AccessibilityInfo.ios.js <ide> <ide> 'use strict'; <ide> <del>const NativeModules = require('../../BatchedBridge/NativeModules'); <add>import NativeAccessibilityManager from './NativeAccessibilityManager'; <add> <ide> const Promise = require('../../Promise'); <ide> co...
2
Text
Text
describe rem unit for font-size
810d6d398563fc68447d0916f94e2fe985b3966a
<ide><path>guide/english/css/fonts/index.md <ide> p { <ide> font-family: "Times New Roman", Times, serif; <ide> } <ide> ``` <del>In the above example, "Times New Roman" is the *family-name* of the font, while "serif" is the *generic-name*. Generic names are used as a fallback mechanism for preserving style if the ...
1
Ruby
Ruby
change the hash.to_xml with a lamda example
b00c69cd1f0b0143ad8e6b92c982c106845583c7
<ide><path>activesupport/lib/active_support/core_ext/hash/conversions.rb <ide> class Hash <ide> # with +key+ as <tt>:root</tt>, and +key+ singularized as second argument. The <ide> # callable can add nodes by using <tt>options[:builder]</tt>. <ide> # <del> # 'foo'.to_xml(lambda { |options, key| options[:...
1
Text
Text
fix doc notebooks links
691cdbb7d723a32f5a53a2954fb4b24a79903357
<ide><path>notebooks/README.md <ide> You can open any page of the documentation as a notebook in colab (there is a bu <ide> <ide> | Notebook | Description | | | <ide> |:----------|:-------------|:-------------|------:| <del>| [Quicktour of the library](https://github.com/huggingface/notebooks/blob/ma...
1
Javascript
Javascript
return an empty string for empty sections
6d5e3865e748dad308317b27fd28411464986378
<ide><path>client/src/templates/Challenges/components/Challenge-Description.js <ide> const propTypes = { <ide> section: PropTypes.string <ide> }; <ide> <del>function emptyInstruction(instructions) { <del> return /^<section\s+id\s*=\s*("|')instructions\1\s*>\s*<\/section>$/.test( <del> instructions <del> ); <del...
3
Ruby
Ruby
remove tests that tree manager takes an engine
0e71d45b00208c7e62b8bd358392725f215e833a
<ide><path>activerecord/test/cases/arel/delete_manager_test.rb <ide> <ide> module Arel <ide> class DeleteManagerTest < Arel::Spec <del> describe "new" do <del> it "takes an engine" do <del> Arel::DeleteManager.new <del> end <del> end <del> <ide> it "handles limit properly" do <ide> t...
3
Javascript
Javascript
make code-uri more robust
415a39ea17f9944f6679bf4a7489427d49248570
<ide><path>client/commonFramework/code-uri.js <ide> window.common = (function(global) { <ide> replaceFccfaaAttr <ide> } = common; <ide> <add> const queryRegex = /^(\?|#\?)/; <ide> function encodeFcc(val) { <ide> return replaceScriptTags(replaceFormActionAttr(val)); <ide> } <ide> window.common = (functio...
1
Ruby
Ruby
remove an unnecessary default argument
566442606a817ceaa3d3e305b53f5f2634e3e793
<ide><path>Library/Homebrew/dependency.rb <ide> def satisfied?(inherited_options) <ide> installed? && missing_options(inherited_options).empty? <ide> end <ide> <del> def missing_options(inherited_options=[]) <add> def missing_options(inherited_options) <ide> missing = options | inherited_options <ide> ...
1
Python
Python
fix param rendering in docs of sparksubmithook
6322dad2caa0e5b4d339c5d9a73ec7ff3fd4bc25
<ide><path>airflow/providers/apache/spark/hooks/spark_submit.py <ide> class SparkSubmitHook(BaseHook, LoggingMixin): <ide> comma. Files will be placed in the working directory of each executor. <ide> For example, serialized objects. <ide> :param py_files: Additional python files used by the job, can...
1
Java
Java
create java implementation of turbo modules
38bea0bbf38c7c54c7c1d3b5a6665ddece7f8229
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java <ide> import com.facebook.react.bridge.CatalystInstanceImpl; <ide> import com.facebook.react.bridge.JSBundleLoader; <ide> import com.facebook.react.bridge.JSIModulePackage; <add>import com.facebook.react.bridge.JSIModuleRegistry; <ide> i...
1
Text
Text
add comment to use stack overflow before jira
a0bba453da6e10c9b8d3c5822032b01cf5dcfd5f
<ide><path>CONTRIBUTING.md <ide> request; this will save time for everyone!_ <ide> Not sure what a pull request is, or how to submit one? Take a look at GitHub's <ide> excellent [help documentation][] first. <ide> <add>### Check and/or Discuss on Stack Overflow first <ide> <del>### Search JIRA first; create an issue ...
1
PHP
PHP
apply fixes from styleci
fc46309cfa4678f06acf0a91a5eee34d33f3516d
<ide><path>src/Illuminate/Foundation/Providers/FoundationServiceProvider.php <ide> public function registerRequestSignatureValidation() <ide> }); <ide> <ide> Request::macro('hasValidSignatureWhileIgnoring', function ($ignoreQuery = [], $absolute = true) { <del> return URL::hasValidSignature...
1
Go
Go
fix host header on stream commands
e457b21db32359af085b04b5900ca6aab993ac86
<ide><path>api/client/utils.go <ide> func (cli *DockerCli) streamHelper(method, path string, setRawTerminal bool, in <ide> in = bytes.NewReader([]byte{}) <ide> } <ide> <del> req, err := http.NewRequest(method, fmt.Sprintf("http://v%s%s", api.APIVERSION, path), in) <add> req, err := http.NewRequest(method, fmt.Sprin...
1
PHP
PHP
remove unused property
6da050fc7084cb2efa9b433340c9c5546e44ec3b
<ide><path>tests/TestCase/Shell/Task/LoadTaskTest.php <ide> */ <ide> class LoadTaskTest extends ConsoleIntegrationTestCase <ide> { <del> /** <del> * @var \Cake\Shell\Task\LoadTask|\PHPUnit_Framework_MockObject_MockObject <del> */ <del> protected $Task; <del> <ide> /** <ide> * setUp method <ide> ...
1
Ruby
Ruby
remove redundant \s* in mime type regexp
ba0d473ed955a099ed329bb11fc4b05ca9498bd1
<ide><path>actionpack/lib/action_dispatch/http/mime_type.rb <ide> def unregister(symbol) <ide> MIME_NAME = "[a-zA-Z0-9][a-zA-Z0-9#{Regexp.escape('!#$&-^_.+')}]{0,126}" <ide> MIME_PARAMETER_VALUE = "#{Regexp.escape('"')}?#{MIME_NAME}#{Regexp.escape('"')}?" <ide> MIME_PARAMETER = "\s*\;\s*#{MIME_NAME}(?:\=#{M...
1
Go
Go
pull missing images on run. addresses #31
f6d64738d05d62596d94a5567916e3b3b5209b2c
<ide><path>server/server.go <ide> func (srv *Server) CmdRun(stdin io.ReadCloser, stdout io.Writer, args ...string) <ide> fl_tty := cmd.Bool("t", false, "Allocate a pseudo-tty") <ide> fl_comment := cmd.String("c", "", "Comment") <ide> var fl_ports ports <add> var img *image.Image <add> <ide> cmd.Var(&fl_ports, "p...
1
Python
Python
set gold.sent_starts in ud_train
eddc0e0c74491dc3ed14c51ea17b8d5b76b51bd5
<ide><path>spacy/cli/ud_train.py <ide> def read_conllu(file_): <ide> return docs <ide> <ide> <del>def _make_gold(nlp, text, sent_annots): <add>def _make_gold(nlp, text, sent_annots, drop_deps=0.0): <ide> # Flatten the conll annotations, and adjust the head indices <ide> flat = defaultdict(list) <add> s...
1
Ruby
Ruby
remove redundant `all.scoping`
334c4c533f427e126acb1edb561ad6fabea216de
<ide><path>activerecord/lib/active_record/scoping/named.rb <ide> def scope(name, body, &block) <ide> <ide> if body.respond_to?(:to_proc) <ide> singleton_class.send(:define_method, name) do |*args| <del> scope = all <del> scope = scope._exec_scope(*args, &body) <add> ...
1
Ruby
Ruby
use friendlier method name
16bee7618c328ecd790db366221639661912c477
<ide><path>activesupport/lib/active_support/multibyte/chars.rb <ide> def compose <ide> # <ide> # Example: <ide> # 'क्षि'.mb_chars.length # => 4 <del> # 'क्षि'.mb_chars.g_length # => 3 <del> def g_length <add> # 'क्षि'.mb_chars.grapheme_length # => 3 <add> def grapheme_lengt...
2
Python
Python
add session hook for benchmark metric logging.
4b85dab1e9d3a4c541d873cb473ee2e82dd810c9
<ide><path>official/utils/logging/metric_hook.py <add># Copyright 2018 The TensorFlow Authors. All Rights Reserved. <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># You may obtain a copy of the License at <add># ...
2
Javascript
Javascript
fix path.js again
ff23c44179a82db4e95e3ca139479a43fda94497
<ide><path>src/extras/core/Path.js <ide> THREE.Path.prototype.getPoints = function( divisions, closedPath ) { <ide> var deltaAngle = aEndAngle - aStartAngle; <ide> var angle; <ide> var tdivisions = divisions * 2; <del> var t; <ide> <ide> for ( j = 1; j <= tdivisions; j ++ ) { <ide> <ide> THREE.Path.prot...
1
Javascript
Javascript
update media.js and html5.js feature access
e60f2eef5ca0b481a65402bafb68c23f4ca954be
<ide><path>src/js/media/html5.js <ide> vjs.Html5 = vjs.MediaTechController.extend({ <ide> this['fullscreenResizeFeature'] = true; <ide> <ide> // HTML video supports progress events <del> this.features['progressEvents'] = true; <add> this['progressEventsFeature'] = true; <ide> <ide> vjs.MediaTechCont...
2
Python
Python
finish pr backporting
2902149f776e20623ec49cec485455c057bd26ba
<ide><path>examples/antirectifier.py <ide> def call(self, x, mask=None): <ide> nb_classes = 10 <ide> nb_epoch = 40 <ide> <del># the data, shuffled and split between tran and test sets <add># the data, shuffled and split between train and test sets <ide> (X_train, y_train), (X_test, y_test) = mnist.load_data() <ide> <...
6
Javascript
Javascript
update gitpod testing
1ef12d5605b208cf5d8f00e52119bfcc1c0c5d4e
<ide><path>api-server/server/utils/getSetAccessToken.test.js <ide> describe('getSetAccessToken', () => { <ide> const invalidJWTSecret = 'This is not correct secret'; <ide> const now = new Date(Date.now()); <ide> const theBeginningOfTime = new Date(0); <add> const domain = process.env.COOKIE_DOMAIN || 'localhost'...
1
PHP
PHP
remove reference to method that doesn't exist
5ea40038b9f5117e729e59748a100c18ff72f2be
<ide><path>src/Routing/Router.php <ide> * ### Connecting routes <ide> * <ide> * Connecting routes is done using Router::connect(). When parsing incoming requests or reverse matching <del> * parameters, routes are enumerated in the order they were connected. You can modify the order of connected <del> * routes using ...
1
Text
Text
add 4 new mongoose queries to mongoose cheatsheet
045f6d46df340c198696900b467dd57b00537ebc
<ide><path>README.md <ide> I also tried to make it as **generic** and **reusable** as possible to cover mos <ide> without being too specific. In the worst case you can use this as a guide for your projects, if for example you are only <ide> interested in **Sign in with Google** authentication and nothing else. <ide> <...
1
Ruby
Ruby
fix associations when using per class databases
9f8b4d1510f66597bbe8732e507173217df9f14d
<ide><path>activerecord/lib/active_record/associations/alias_tracker.rb <ide> module Associations <ide> # Keeps track of table aliases for ActiveRecord::Associations::ClassMethods::JoinDependency and <ide> # ActiveRecord::Associations::ThroughAssociationScope <ide> class AliasTracker # :nodoc: <del> at...
3
PHP
PHP
print new line at end of `about` command output
51b5edaa2f8dfb0acb520ecb394706ade2200a35
<ide><path>src/Illuminate/Foundation/Console/AboutCommand.php <ide> public function handle() <ide> }) <ide> ->pipe(fn ($data) => $this->display($data)); <ide> <add> $this->newLine(); <add> <ide> return 0; <ide> } <ide>
1
PHP
PHP
correct doc blocks
97d8902fb92bdee7376e987ca82366747c1ce04c
<ide><path>src/Database/Connection.php <ide> public function schemaCollection(SchemaCollection $collection = null) <ide> /** <ide> * Executes an INSERT query on the specified table. <ide> * <del> * @param string $table the table to update values in <add> * @param string $table the table to insert ...
1
Ruby
Ruby
remove unnecessary use of kernel#silence_warnings
712baccef56974f754d77775d04924bfa52ca76e
<ide><path>activesupport/lib/active_support/deprecation.rb <ide> def deprecation_horizon <ide> end <ide> <ide> class DeprecationProxy #:nodoc: <del> silence_warnings do <del> instance_methods.each { |m| undef_method m unless m =~ /^__/ } <del> end <add> instance_methods.each { |m| undef_m...
1
Text
Text
add align properties and code samples
c835c4485a3e10d97caf140c0780449a360bda2c
<ide><path>guide/english/css/layout-horizontal-and-vertical-align/index.md <ide> title: Layout Horizontal and Vertical Align <ide> --- <ide> ## Layout Horizontal and Vertical Align <add>CSS has properties that create space both around and inside an element. You will use one, or a combination of these properties to crea...
1
PHP
PHP
remove @package from classes
bde6b0afe5de18b1c0461229dcde2f610c8b0e84
<ide><path>src/Database/Driver/Mysql.php <ide> <ide> /** <ide> * Class Mysql <del> * @package Cake\Database\Driver <ide> */ <ide> class Mysql extends Driver <ide> { <ide><path>src/Database/Driver/Postgres.php <ide> <ide> /** <ide> * Class Postgres <del> * @package Cake\Database\Driver <ide> */ <ide> class Postgre...
14
Javascript
Javascript
increase coverage for worker_threads
c7bf02a99fe62a2e1bb91e4f23537fafadc91455
<ide><path>test/parallel/test-worker-onmessage-not-a-function.js <add>// When MessagePort.onmessage is set to a value that is not a function, the <add>// setter should call .unref() and .stop(), clearing a previous onmessage <add>// listener from holding the event loop open. This test confirms that <add>// functionalit...
1
Go
Go
refuse swarm spec not named "default"
9dba9e3248f8476d15242ce3ec0bf6d6d50c1a76
<ide><path>daemon/cluster/cluster.go <ide> func validateAndSanitizeInitRequest(req *types.InitRequest) error { <ide> return fmt.Errorf("invalid ListenAddr %q: %v", req.ListenAddr, err) <ide> } <ide> <add> if req.Spec.Annotations.Name == "" { <add> req.Spec.Annotations.Name = "default" <add> } else if req.Spec.Anno...
1
Javascript
Javascript
remove useless checks on chunkgroup
e763d87960bdcf4b43f433b8b6d3a11f23552c83
<ide><path>lib/Chunk.js <ide> class Chunk { <ide> for (const group of this.groupsIterable) { <ide> if (group.chunks[group.chunks.length - 1] === this) { <ide> for (const childGroup of group.childrenIterable) { <del> // TODO webpack 5 remove this check for options <del> if (typeof childGroup.options ===...
3
Text
Text
fix nits in code examples of async_hooks.md
5d9dc94509253845642e617f9d6d47ce0d09d7da
<ide><path>doc/api/async_hooks.md <ide> while `triggerId` shows *why* a resource was created. <ide> The following is a simple demonstration of `triggerId`: <ide> <ide> ```js <del>const async_hooks = require('async_hooks'); <del> <ide> async_hooks.createHook({ <ide> init(asyncId, type, triggerId) { <ide> const cI...
1
Python
Python
remove unused imports and unused variables
c0d95fd6c2cd8ffc0738819825c3065e3c89977c
<ide><path>examples/image_ocr.py <ide> import pylab <ide> from keras import backend as K <ide> from keras.layers.convolutional import Convolution2D, MaxPooling2D <del>from keras.layers import Input, Layer, Dense, Activation, Flatten <del>from keras.layers import Reshape, Lambda, merge, Permute, TimeDistributed <add>fro...
9
Python
Python
amqrpc result backend apparently working
7f933deee0115e03fbd32a65653dfb1184820cc8
<ide><path>celery/backends/amqp.py <ide> import threading <ide> import time <ide> <add>from collections import deque <add> <ide> from kombu.entity import Exchange, Queue <ide> from kombu.messaging import Consumer, Producer <ide> <ide> def _store_result(self, task_id, result, status, traceback=None): <ide> """...
3
Go
Go
use apparmor_parser directly
5f4bc4f916f433a4ba258980a6c2fbdbd76d64f3
<ide><path>pkg/libcontainer/apparmor/apparmor.go <ide> package apparmor <ide> import "C" <ide> import ( <ide> "io/ioutil" <add> "os" <ide> "unsafe" <ide> ) <ide> <ide> func IsEnabled() bool { <del> buf, err := ioutil.ReadFile("/sys/module/apparmor/parameters/enabled") <del> return err == nil && len(buf) > 1 && buf[0...
2
Ruby
Ruby
remove unneeded interning
0b465032540ef92353e67eabd05eaf5867bfcc31
<ide><path>actionpack/lib/action_controller/request.rb <ide> def template_format <ide> parameter_format = parameters[:format] <ide> <ide> if parameter_format <del> parameter_format.to_sym <add> parameter_format <ide> elsif xhr? <ide> :js <ide> else <ide> def template_forma...
1
PHP
PHP
add support for broadcastas
5c77de1cc2ea9ecfbcf77c53643aabc3e1ca6da3
<ide><path>src/Illuminate/Broadcasting/BroadcastEvent.php <ide> public function fire(Job $job, array $data) <ide> { <ide> $event = unserialize($data['event']); <ide> <add> $name = method_exists($event, 'broadcastAs') <add> ? $event->broadcastAs() : get_class($event); <add> <ide> ...
1
Ruby
Ruby
adjust expectations for 'opt' directory
8abfee7d9c2c2e479c89d35524843ab2d840e799
<ide><path>Library/Homebrew/test/test_formula_install.rb <ide> def test_a_basic_install <ide> # Test that things make it into the Cellar <ide> keg=Keg.new f.prefix <ide> keg.link <del> assert_equal 2, HOMEBREW_PREFIX.children.length <add> assert_equal 3, HOMEBREW_PREFIX.children.length <ide>...
1
PHP
PHP
call method for making hmvc requests
60f69659ea3b95b4677d8e150c82d5ac59efe90e
<ide><path>system/router.php <ide> class Router { <ide> <ide> /** <del> * All of the loaded routes. <add> * All of the loaded routes keyed by route file. <ide> * <ide> * @var array <ide> */ <del> public static $routes; <add> private static $routes = array(); <add> <add> /** <add> * Simulate a request to a gi...
1
Text
Text
fix docs for next/image upgrade guide
73c5b77a8484fa94f77a5392dc774ddbd1af6427
<ide><path>docs/advanced-features/codemods.md <ide> export default function Page() { <ide> <ide> ### `next-image-to-legacy-image` <ide> <del>Safely migrates existing Next.js 10, 11, 12 applications importing `next/image` to the renamed `next/legacy/image` import in Next.js 13. <add>This codemod safely migrates existi...
3
Mixed
Java
add doonlifecycle to m/s/c
4257ef563a3bf017e0703c00057daf12b54738ba
<ide><path>docs/Operator-Matrix.md <ide> Operator | ![Flowable](https://raw.github.com/wiki/ReactiveX/RxJava/images/opmat <ide> <a name='doOnEach'></a>`doOnEach`|![present](https://raw.github.com/wiki/ReactiveX/RxJava/images/checkmark_on.png)|![present](https://raw.github.com/wiki/ReactiveX/RxJava/images/checkmark_on.p...
9
Ruby
Ruby
add missing requires
e28c4e5d59c76240e6d3299d6f673cafc283f10f
<ide><path>activejob/test/adapters/delayed_job.rb <ide> ActiveJob::Base.queue_adapter = :delayed_job <ide> <ide> $LOAD_PATH << File.expand_path("../support/delayed_job", __dir__) <add>require "active_support/core_ext/kernel/reporting" <ide> <ide> Delayed::Worker.delay_jobs = false <ide> Delayed::Worker.backend = :...
2
Java
Java
fix typos in tests
f78c21e40b99707827e815efd06de7f92cfc5f70
<ide><path>spring-core/src/test/java/org/springframework/core/annotation/AnnotationsScannerTests.java <ide> class AnnotationsScannerTests { <ide> <ide> @Test <del> void directStrategyOnClassWhenNotAnnoatedScansNone() { <add> void directStrategyOnClassWhenNotAnnotatedScansNone() { <ide> Class<?> source = WithNoAnnot...
2
PHP
PHP
call container instance directly
5c129ba119b6fce2a723cbe00e6dece0d4199c6b
<ide><path>src/Illuminate/Notifications/Messages/MailMessage.php <ide> <ide> use Traversable; <ide> use Illuminate\Mail\Markdown; <add>use Illuminate\Container\Container; <ide> use Illuminate\Contracts\Support\Arrayable; <ide> use Illuminate\Contracts\Support\Renderable; <ide> <ide> protected function arrayOfAddresse...
1
PHP
PHP
fix logical error
be7a10d5991cf11b97a2c4c0676f7536dcb9bdb7
<ide><path>src/Console/ShellDispatcher.php <ide> public function addShortPluginAliases() <ide> "command '$shell' in plugin '$plugin' was not aliased, conflicts with '$other'", <ide> ['shell-dispatcher'] <ide> ); <del> continue; <ide>...
1
Python
Python
remove un-needed attribute lookup in 1.2
bd089c209df73d91fb83e44c8c5c5ad9bda64ca1
<ide><path>numpy/core/defmatrix.py <ide> def __mul__(self, other): <ide> if isinstance(other,(N.ndarray, list, tuple)) : <ide> # This promotes 1-D vectors to row vectors <ide> return N.dot(self, asmatrix(other)) <del> if N.isscalar(other) or not hasattr(other, '__rmul__') : <add> ...
1
Text
Text
post about 0.10.3
0f460b03f3143e17cb783186df13a3ad769cfb06
<ide><path>doc/blog/release/v0.10.3.md <add>date: Wed Apr 3 11:24:08 PDT 2013 <add>version: 0.10.3 <add>category: release <add>title: Node v0.10.3 (Stable) <add>slug: node-v0-10-3-stable <add> <add>2013.04.03, Version 0.10.3 (Stable) <add> <add>* npm: Upgrade to 1.2.17 <add> <add>* child_process: acknowledge sent hand...
1
Javascript
Javascript
remove check for _wrapperstate.pendingupdate
57d59ea344e2766bd84952e7df56aea6e29abf4a
<ide><path>src/renderers/dom/client/wrappers/ReactDOMSelect.js <ide> function _handleChange(event) { <ide> var props = this._currentElement.props; <ide> var returnValue = LinkedValueUtils.executeOnChange(props, event); <ide> <del> if (this._rootNodeID && !this._wrapperState.pendingUpdate) { <add> if (this._rootN...
1
Ruby
Ruby
add comment and use constants
761cbd3dabf12eed5b796ccf528f36effc9e58f0
<ide><path>Library/Homebrew/install.rb <ide> def text_for_keg_only_formula f <ide> end <ide> end <ide> <add>ORIGINAL_PATHS = ENV['PATH'].split(':').map{ |p| File.expand_path p } <add>HOMEBREW_BIN = (HOMEBREW_PREFIX+'bin').to_s <add> <ide> def install f <ide> show_summary_heading = false <ide> <del> paths = ENV['...
1
Text
Text
add c# guide for lists
40c17b6ba1d34cdf09f836ffcd16523adbcf47da
<ide><path>docs/how-to-setup-freecodecamp-locally.md <ide> Start by installing these prerequisite software. <ide> <ide> | Prerequisite | Version | Notes | <ide> | ------------------------------------------- | ------- | ----- | <del>| [MongoDB Community Server](https://docs.mongodb.com/ma...
2
Python
Python
copy input for i0 calculation
f8f8ca74391b5681d4e16bccc282ada87a6d0b8d
<ide><path>numpy/lib/function_base.py <ide> def _i0_2(x): <ide> return exp(x) * _chbevl(32.0/x - 2.0, _i0B) / sqrt(x) <ide> <ide> def i0(x): <del> x = atleast_1d(x) <add> x = atleast_1d(x).copy() <ide> y = empty_like(x) <ide> ind = (x<0) <ide> x[ind] = -x[ind]
1
Python
Python
add a layer type for history features
6aa6a5bc25eeebf1ffea4ee97f7e26d3f09c357a
<ide><path>spacy/_ml.py <ide> from thinc.api import FeatureExtracter, with_getitem <ide> from thinc.neural.pooling import Pooling, max_pool, mean_pool, sum_pool <ide> from thinc.neural._classes.attention import ParametricAttention <add>from thinc.neural._classes.embed import Embed <ide> from thinc.linear.linear import ...
1
Javascript
Javascript
simplify addinterceptor fn
b9b1aa7797df4a36c902c44e165d6cbcdcaea1c5
<ide><path>src/ng/parse.js <ide> function $ParseProvider() { <ide> } <ide> <ide> function addInterceptor(parsedExpression, interceptorFn) { <del> if (isFunction(interceptorFn)) { <del> var fn = function interceptedExpression(scope, locals) { <del> var value = parsedExpression(scope, locals...
1
Python
Python
remove python2 workarounds
823f6819dd86e75f772a3a725996773dd6b688e2
<ide><path>numpy/core/numerictypes.py <ide> def issubclass_(arg1, arg2): <ide> Examples <ide> -------- <ide> >>> np.issubclass_(np.int32, int) <del> False # True on Python 2.7 <add> False <ide> >>> np.issubclass_(np.int32, float) <ide> False <add> >>> np.issubclass_(np.float64, float) <add>...
8
Javascript
Javascript
upgrade other template plugins
25c135aa827e29c673f92bb11ff0f6b833068fc7
<ide><path>lib/AmdMainTemplatePlugin.js <ide> class AmdMainTemplatePlugin { <ide> apply(compilation) { <ide> const mainTemplate = compilation.mainTemplate; <ide> <del> compilation.templatesPlugin("render-with-entry", (source, chunk, hash) => { <add> compilation.tapMainAndChunkTemplates("AmdMainTemplatePlugin", "r...
6
Ruby
Ruby
parenthesize the arguments with splat
32b9cefb637741ac7158085790cda56360a229f2
<ide><path>railties/lib/rails/engine.rb <ide> def load_seed <ide> end <ide> <ide> initializer :append_assets_path do |app| <del> app.config.assets.paths.unshift *paths["vendor/assets"].existent <del> app.config.assets.paths.unshift *paths["lib/assets"].existent <del> app.config.assets.paths.unsh...
2
PHP
PHP
add test for savemany aftersavecommit
7cd3c528c33611bbe4d758a845d87495066eb83f
<ide><path>tests/TestCase/ORM/TableTest.php <ide> public function testSaveManyArray() <ide> new Entity(['name' => 'dakota']), <ide> ]; <ide> <del> $table = $this->getTableLocator()->get('authors'); <add> $timesCalled = 0; <add> $listener = function ($e, $entity, $options) use (...
1
Text
Text
add code explanations to algorithm
342d8657a591ad97d87b40d4cc7ff71ccb97c43d
<ide><path>guide/english/certifications/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities/index.md <ide> title: Convert HTML Entities <ide> ``` <ide> ### Code Explanation: <ide> <del>Explain solution here and add any relevant links <add>* Assign **temp** to `str.split('...
1
Javascript
Javascript
add test for svg.area.radial
f12352c6f43b98c99ced54dd4f3f8a7c746c4110
<ide><path>test/env-assert.js <ide> assert.hslEqual = function(actual, h, s, l, message) { <ide> <ide> assert.pathEqual = function(actual, expected, message) { <ide> if (!pathEqual(actual, expected)) { <del> assert.fail(actual, expected, message || "expected {expected}, got {actual}", null, assert.pathEqual); <ad...
4
Text
Text
add option for developer tools inside browsers
b925911f2e7d02cc0fab3bf0709f6df57b0ad4e0
<ide><path>guide/portuguese/developer-tools/index.md <ide> Alguns exemplos dessas ferramentas: <ide> * Sistemas de controle de versão <ide> * Ferramentas DevOps <ide> * Construir ferramentas <del>* Gerenciadores de pacotes <ide>\ No newline at end of file <add>* Gerenciadores de pacotes <add>* Ferramentas d...
1
Javascript
Javascript
shim two private apis on treesitterlanguagemode
b51f13cc90df049382feb6b8e671854081f46261
<ide><path>src/tree-sitter-language-mode.js <ide> const {Document} = require('tree-sitter') <del>const {Point, Range, Emitter} = require('atom') <add>const {Point, Range} = require('text-buffer') <add>const {Emitter, Disposable} = require('event-kit') <ide> const ScopeDescriptor = require('./scope-descriptor') <ide> co...
1
Text
Text
fix typo in maintaining-openssl guide
be2f36a51a3c11b2001bd74e03a77cf3ee920aa0
<ide><path>doc/guides/maintaining-openssl.md <ide> The commit message can be (with the openssl version set to the relevant value): <ide> deps: update archs files for OpenSSL-1.1.0 <ide> <ide> After an OpenSSL source update, all the config files need to be regenerated and <del> comitted by: <add> committed by: <ide> ...
1
PHP
PHP
use new method
1505f7a123354bf62db700e5646ea62b72d9fd62
<ide><path>src/ORM/ResultSet.php <ide> protected function _getTypes($table, $fields) <ide> { <ide> $types = []; <ide> $schema = $table->getSchema(); <del> $map = array_keys(Type::map() + ['string' => 1, 'text' => 1, 'boolean' => 1]); <add> $map = array_keys(Type::getMap() + ['string' =...
1
Ruby
Ruby
skip an audit for mongodb
ebcf8be7892568f2cfba9880d2995cc0499eb092
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_line(line) <ide> problem "No double 'without': Use `build.without? '#{$1}'` to check for \"--without-#{$1}\"" <ide> end <ide> <del> if line =~ /ARGV\.(?!(debug\?|verbose\?|value[\(\s]))/ <del> problem "Use build instead of ARGV to check options...
1
Javascript
Javascript
handle non-string return value in .inspect()
e85927119cd76dfa6541beb7954196c56d98a776
<ide><path>lib/util.js <ide> function formatValue(ctx, value, recurseTimes) { <ide> value.inspect !== exports.inspect && <ide> // Also filter out any prototype objects using the circular check. <ide> !(value.constructor && value.constructor.prototype === value)) { <del> return value.inspect(recurse...
2
Python
Python
squeeze corner case
1be850b0782a1dcbb3da22fb9d5c74c3ce367936
<ide><path>numpy/core/fromnumeric.py <ide> def squeeze(a, axis=None): <ide> try: <ide> squeeze = a.squeeze <ide> except AttributeError: <del> return _wrapit(a, 'squeeze') <add> return _wrapit(a, 'squeeze', axis=axis) <ide> if axis is None: <ide> return squeeze() <ide> else:...
2
Text
Text
update docs about supported native animation props
280ed810b0ee645df0c82c58ce5d0076f5b4dc5a
<ide><path>docs/Animations.md <ide> You can also take a look at the [source code](https://github.com/facebook/react- <ide> <ide> Not everything you can do with `Animated` is currently supported by the native driver. <ide> The main limitation is that you can only animate non-layout properties: <del>things like `transfo...
1
PHP
PHP
fix return type in docblock
19cfe40fd1d72bb554274fa1cfd8620a3dde4554
<ide><path>lib/Cake/Model/Datasource/DataSource.php <ide> public function update(Model $model, $fields = null, $values = null, $conditions <ide> * <ide> * @param Model $model The model class having record(s) deleted <ide> * @param mixed $conditions The conditions to use for deleting. <del> * @return void <add> * @re...
1
Text
Text
remove markdown syntax from code block
154dee5937cdc022f951da394e75182678caf7e0
<ide><path>docs/recipes/UsingImmutableJS.md <ide> import { Iterable } from 'immutable'; <ide> export const toJS = (WrappedComponent) => <ide> (wrappedComponentProps) => { <ide> const KEY = 0; <del> const **VALUE = 1; <add> const VALUE = 1; <ide> <ide> const propsJS = Object.entries(wrapped...
1
Python
Python
add more filtering options for ti's in the ui
bdaa7d5a9c637258deb964de85e3ee0dfe20af8c
<ide><path>airflow/www/views.py <ide> class TaskInstanceModelView(AirflowPrivilegeVerifierModelView): <ide> 'task_id', <ide> 'run_id', <ide> 'execution_date', <del> 'hostname', <del> 'queue', <del> 'pool', <ide> 'operator', <ide> 'start_date', <ide> '...
1
Mixed
Python
fix factorial issues
c0acfd46cbd6b29847d9e0e226431ab6004b8e9b
<ide><path>DIRECTORY.md <ide> * [Morse Code](https://github.com/TheAlgorithms/Python/blob/master/ciphers/morse_code.py) <ide> * [Onepad Cipher](https://github.com/TheAlgorithms/Python/blob/master/ciphers/onepad_cipher.py) <ide> * [Playfair Cipher](https://github.com/TheAlgorithms/Python/blob/master/ciphers/playfa...
4
PHP
PHP
fix a risky test
7c53e1a2f0a8e73ddca5504e0c659121843f369e
<ide><path>tests/TestCase/Network/ResponseTest.php <ide> public function testFileWithUnknownFileNoDownload() <ide> */ <ide> public function testGetFile() <ide> { <del> ob_start(); <ide> $response = new Response(); <ide> $this->assertNull($response->getFile(), 'No file to get'); <ide>...
1
Ruby
Ruby
make mocha setup explcitly minitest-specific
30735ab7261db54209a7dca3410236abfbc997e0
<ide><path>actioncable/test/test_helper.rb <ide> require "active_support/testing/autorun" <ide> <ide> require "puma" <del>require "mocha/setup" <add>require "mocha/minitest" <ide> require "rack/mock" <ide> <ide> begin <ide><path>activerecord/test/cases/helper.rb <ide> def in_time_zone(zone) <ide> end <ide> end <i...
2
Python
Python
set version to 2.0.13
9cfab5933a098939033c77fe8b969a3692872f0e
<ide><path>spacy/about.py <ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py <ide> <ide> __title__ = 'spacy' <del>__version__ = '2.0.13.dev4' <add>__version__ = '2.0.13' <ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython' <ide> __uri__ = 'https:/...
1
PHP
PHP
use env superglobal
071a05bd76ee7eca0ea15ea107b49bcbad9af925
<ide><path>bootstrap/app.php <ide> */ <ide> <ide> $app = new Illuminate\Foundation\Application( <del> dirname(__DIR__) <add> $_ENV['LARAVEL_BASE_PATH'] ?? dirname(__DIR__) <ide> ); <ide> <ide> /*
1