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
remove `proptypes` dependency
ddea7c76b38321e192a29ddf11d794de2796a1d2
<ide><path>Libraries/Lists/VirtualizedList.js <ide> <ide> const Batchinator = require('../Interaction/Batchinator'); <ide> const FillRateHelper = require('./FillRateHelper'); <del>const PropTypes = require('prop-types'); <ide> const ReactNative = require('../Renderer/shims/ReactNative'); <ide> const RefreshControl = r...
1
Ruby
Ruby
handle new formula specs
2c6e93cf8aa77c5cfa6f16cafa7bf372d3afc7ab
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_formula_options f, text <ide> return problems <ide> end <ide> <del>def audit_formula_version f, text <del> # Version as defined in the DSL (or nil) <del> version_text = f.class.send('version').to_s <del> <del> # Version as determined from the URL <del> ver...
1
Mixed
Javascript
add throws option to fs.f/l/statsync
3772cf56ae289e4cdc456e576eba43311bab24c8
<ide><path>benchmark/fs/bench-statSync-failure.js <add>'use strict'; <add> <add>const common = require('../common'); <add>const fs = require('fs'); <add>const path = require('path'); <add> <add>const bench = common.createBenchmark(main, { <add> n: [1e6], <add> statSyncType: ['throw', 'noThrow'] <add>}); <add> <add> <...
4
Python
Python
update example compatibility statements
1b1c9105b4d3c74702a939df665f6180db7b3d9f
<ide><path>examples/information_extraction/entity_relations.py <ide> dependency tree to find the noun phrase they are referring to – for example: <ide> $9.4 million --> Net income. <ide> <del>Last updated for: spaCy 2.0.0a18 <add>Compatible with: spaCy 2.0.0a18+ <ide> """ <ide> from __future__ import unicode_literals,...
14
Javascript
Javascript
avoid .data when fetching required controllers
fa0aa83937378cf8fc720c38bcc5c78fc923624e
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide, $$sanitizeUriProvider) { <ide> <ide> <ide> function getControllers(directiveName, require, $element, elementControllers) { <del> var value, retrievalMethod = 'data', optional = false; <del> var $searchElement = $element; <del> ...
1
Java
Java
add javadoc for body parameter
48bd81341ffdee0bd510f4d4673722093c31f7b4
<ide><path>spring-web/src/main/java/org/springframework/http/ResponseEntity.java <ide> /* <del> * Copyright 2002-2020 the original author or authors. <add> * Copyright 2002-2021 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may not use thi...
1
Ruby
Ruby
update the expected folders containing keeps
f9f459ebe40cdb2e4ed041c975110c9c5c3e058a
<ide><path>railties/test/generators/app_generator_test.rb <ide> def test_create_keeps <ide> lib/tasks <ide> lib/assets <ide> log <del> test/fixtures <ide> test/fixtures/files <ide> test/controllers <ide> test/mailers
1
PHP
PHP
fix parse error in php7.4
00733bd231dc1af20454d4794b4a6ab1285c1c80
<ide><path>src/Error/PhpError.php <ide> public function __construct( <ide> string $message, <ide> ?string $file = null, <ide> ?int $line = null, <del> array $trace = [], <add> array $trace = [] <ide> ) { <ide> $this->code = $code; <ide> $this->message = $message...
1
Mixed
Python
fix the readme
124a501db1fe2880c92381c747467dc87f546a15
<ide><path>README.md <ide> To propose a model for inclusion please submit a pull request. <ide> - [textsum](textsum) -- sequence-to-sequence with attention model for text summarization. <ide> - [transformer](transformer) -- spatial transformer network, which allows the spatial manipulation of data within the network <i...
7
Python
Python
add api directory
e36c9b9d7eb1a4c729b3b7748fe404511d555e9e
<ide><path>integration/api/__main__.py <add># Licensed to the Apache Software Foundation (ASF) under one or more <add># contributor license agreements. See the NOTICE file distributed with <add># this work for additional information regarding copyright ownership. <add># The ASF licenses this file to You under the Apac...
2
Ruby
Ruby
remove unneeded comment in test
65d04439128d54558df7b1587d9d84a49a2137dd
<ide><path>actionpack/test/controller/request_forgery_protection_test.rb <ide> class RequestForgeryProtectionControllerUsingResetSessionTest < ActionController <ide> end <ide> <ide> test 'should emit a csrf-param meta tag and a csrf-token meta tag' do <del> SecureRandom.stubs(:base64).returns(@token + '<=?') # ...
1
Python
Python
update broken link
bd5215ed91bee997f38454625da13d66e3c0e404
<ide><path>keras/optimizers/optimizer_experimental/sgd.py <ide> class SGD(optimizer.Optimizer): <ide> <ide> Reference: <ide> - For `nesterov=True`, See [Sutskever et al., 2013]( <del> http://jmlr.org/proceedings/papers/v28/sutskever13.pdf). <add> http://proceedings.mlr.press/v28/sutskever...
1
Python
Python
add utility to find model labels
3951b9f3908bfa30be7fd814cd2ad1039d3162d8
<ide><path>src/transformers/trainer.py <ide> from .dependency_versions_check import dep_version_check <ide> from .modelcard import TrainingSummary <ide> from .modeling_utils import PreTrainedModel, unwrap_model <del>from .models.auto.modeling_auto import MODEL_FOR_QUESTION_ANSWERING_MAPPING_NAMES <ide> from .optimizati...
4
Text
Text
change copyright range to 2011-2016
312f6d3600ab0c05e4cc1c61c3e64a25908cf60f
<ide><path>LICENSE.md <del>Copyright (c) 2016 GitHub Inc. <add>Copyright (c) 2011-2016 GitHub Inc. <ide> <ide> Permission is hereby granted, free of charge, to any person obtaining <ide> a copy of this software and associated documentation files (the
1
Python
Python
update slow readers test to use textcat_multilabel
effae12cbd27391e335ef3f279725934b0510f91
<ide><path>spacy/tests/training/test_readers.py <ide> def test_cat_readers(reader, additional_config): <ide> <ide> [nlp] <ide> lang = "en" <del> pipeline = ["tok2vec", "textcat"] <add> pipeline = ["tok2vec", "textcat_multilabel"] <ide> <ide> [components] <ide> <ide> [components.tok2vec] <ide> ...
1
PHP
PHP
add test for virtual property merging
5418cb60302b3d79284672211765073b9561e44b
<ide><path>tests/TestCase/ORM/EntityTest.php <ide> public function testSetHidden() <ide> { <ide> $data = ['secret' => 'sauce', 'name' => 'mark', 'id' => 1]; <ide> $entity = new Entity($data); <del> $entity->setVirtual(['secret']); <add> $entity->setHidden(['secret']); <ide> <del> ...
1
Go
Go
fix data race in map access
09da6a6f5918aaac9ddd241e196f194be09d780a
<ide><path>libnetwork/drivers/overlay/ov_network.go <ide> func (d *driver) deleteNetwork(nid string) { <ide> <ide> func (d *driver) network(nid string) *network { <ide> d.Lock() <del> networks := d.networks <add> n, ok := d.networks[nid] <ide> d.Unlock() <del> <del> n, ok := networks[nid] <ide> if !ok { <ide> n =...
1
Text
Text
add randell to the platform dev team 🎉
2fb6ca23e781ed57ff498a49e2ce120975ae31dd
<ide><path>docs/index.md <ide> Be polite and patient. Our community of volunteers and moderators are always aro <ide> <ide> If you have queries about the stack, architecture of the codebase, feel free to reach out to our staff dev team: <ide> <del>| Staff | Send message on Gitter ...
1
Javascript
Javascript
remove unused catch bindings
81b335df80ad35dff9355c7265f579cd4dc3dae9
<ide><path>lib/internal/bootstrap/node.js <ide> function tryGetCwd(path) { <ide> try { <ide> return process.cwd(); <del> } catch (ex) { <add> } catch { <ide> // getcwd(3) can fail if the current working directory has been deleted. <ide> // Fall back to the directory name of the (absolute) ...
1
Text
Text
fix added value for `assert` module
3567ea034ea615b919c28cf79fbf1172a6cb8ce6
<ide><path>doc/api/assert.md <ide> # Assert <ide> <del><!--introduced_in=v0.10.0--> <add><!--introduced_in=v0.1.21--> <ide> <ide> > Stability: 2 - Stable <ide>
1
Javascript
Javascript
fix a typo in a test name
095cacb79b881e1b36b52a943d2e05d79edee87d
<ide><path>test/jqLiteSpec.js <ide> describe('jqLite', function() { <ide> <ide> <ide> describe('attr', function() { <del> it('should read write and remove attr', function() { <add> it('should read, write and remove attr', function() { <ide> var selector = jqLite([a, b]); <ide> <ide> expect(select...
1
Python
Python
set default app for all threads. closes
b02ad4d3fab12d50123e00ec6cbb0a2c4147d976
<ide><path>celery/concurrency/base.py <ide> class BasePool(object): <ide> task_join_will_block = True <ide> body_can_be_buffer = False <ide> <del> def __init__(self, limit=None, putlocks=True, <del> forking_enable=True, callbacks_propagate=(), **options): <add> def __init__(self, limit=No...
3
Javascript
Javascript
increase coverage for readline
d2e4b98de27c0eb02493df1fab533489ba2502cf
<ide><path>test/parallel/test-readline-interface.js <ide> function assertCursorRowsAndCols(rli, rows, cols) { <ide> assert.strictEqual(cursorPos.cols, cols); <ide> } <ide> <add>{ <add> const input = new FakeInput(); <add> const rl = readline.Interface({ input }); <add> assert(rl instanceof readline.Interface); <a...
1
Java
Java
remove todo from abstractaspectjadvice
45a922704736beb7160bf7fdca5bd236caf9212d
<ide><path>spring-aop/src/main/java/org/springframework/aop/aspectj/AbstractAspectJAdvice.java <ide> protected Object invokeAdviceMethodWithGivenArgs(Object[] args) throws Throwable <ide> } <ide> try { <ide> ReflectionUtils.makeAccessible(this.aspectJAdviceMethod); <del> // TODO AopUtils.invokeJoinpointUsingRe...
1
Javascript
Javascript
add option `umdnameddefine` to toggle naming
db21a7958739711f73b6427ec11d9363d541ddfc
<ide><path>lib/LibraryTemplatePlugin.js <ide> function accessorAccess(base, accessor, joinWith) { <ide> }).join(joinWith || "; "); <ide> } <ide> <del>function LibraryTemplatePlugin(name, target) { <add>function LibraryTemplatePlugin(name, target, umdNamedDefine) { <ide> this.name = name; <ide> this.target = target;...
5
Ruby
Ruby
suggest cask for installing mactex
16f8b16f190f92bd9f4af3db5464fc924bdcd854
<ide><path>Library/Homebrew/blacklist.rb <ide> def blacklisted?(name) <ide> and only builds 32-bit (and thus can't use Homebrew deps on Snow Leopard.) <ide> <ide> We recommend using a MacTeX distribution: https://www.tug.org/mactex/ <add> <add> You can install it using Cask: <add> <add> brew cask install...
1
Python
Python
change occurrences of n.rand to n.random.rand
27c212bf3d4bbd180c60149e178047c2e49a5648
<ide><path>benchmarks/simpleindex.py <ide> for l in xrange(%d): <ide> a[k][l] = random.random() <ide> """ % (N,N,N,N) <del>t1 = timeit.Timer(code, 'import numpy as N; a = N.rand(%d,%d)' % (N,N)) <add>t1 = timeit.Timer(code, 'import numpy as N; a = N.random.rand(%d,%d)' % (N,N)) <ide> t2 = timeit.Timer(code,...
2
Python
Python
add size and image attributes to the node object
8acef6a76bcc55166a378e547ba01a4e6bc7e78c
<ide><path>libcloud/compute/base.py <ide> class Node(object): <ide> """ <ide> <ide> def __init__(self, id, name, state, public_ip, private_ip, <del> driver, extra=None): <add> driver, size=None, image=None, extra=None): <ide> self.id = str(id) if id else None <ide> ...
1
Text
Text
update contact email for @ryzokuken
917914112341da2de7215d304dcc1bf33184e53b
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> * [rvagg](https://github.com/rvagg) - <ide> **Rod Vagg** &lt;rod@vagg.org&gt; <ide> * [ryzokuken](https://github.com/ryzokuken) - <del>**Ujjwal Sharma** &lt;usharma1998@gmail.com&gt; (he/him) <add>**Ujjwal Sharma** &lt;ryz...
1
Text
Text
fix a typo in the immutable.js docs
10947244f5ba6255c8482c8abf16c22edb125a5a
<ide><path>docs/recipes/UsingImmutableJS.md <ide> Immutable-focused libraries such as Immutable.JS have been designed to overcome <ide> <ide> Whether you choose to use such a library, or stick with plain JavaScript, depends on how comfortable you are with adding another dependency to your app, or how sure you are that...
1
Javascript
Javascript
improve cost computation and add explanation
bcd2400fb559353fe6ab58a43fe87fa10dd7b0ad
<ide><path>lib/RuntimeTemplate.js <ide> class RuntimeTemplate { <ide> <ide> if (len === 2) return this._es5Concatenation(args); <ide> if (len === 0) return '""'; <del> if (len === 1) <add> if (len === 1) { <ide> return typeof args[0] === "string" <ide> ? JSON.stringify(args[0]) <del> : this.supportTemp...
1
Text
Text
translate thinking-in-react.md to japanese
2890af02f1e411caecf675b98339b4872d089278
<ide><path>docs/docs/thinking-in-react.ja-JP.md <add>--- <add>id: thinking-in-react-ja-JP <add>title: Reactの考え方 <add>prev: tutorial-ja-JP.html <add>next: conferences.html <add>redirect_from: 'blog/2013/11/05/thinking-in-react.html' <add>--- <add> <add>Pete Hunt著 <add> <add>ReactはJavascriptで大きなアプリを早く作成するのに良い方法だと私は思います。F...
1
Javascript
Javascript
add es6 symbol support for `util.inspect`
cb97bcd6f982b35a6fe4d41d884354f72905365d
<ide><path>lib/util.js <ide> inspect.styles = { <ide> 'undefined': 'grey', <ide> 'null': 'bold', <ide> 'string': 'green', <add> 'symbol': 'green', <ide> 'date': 'magenta', <ide> // "name": intentionally not styling <ide> 'regexp': 'red' <ide> function formatPrimitive(ctx, value) { <ide> // For some reaso...
2
Python
Python
register vectors.pyx in setup
c811790095f2f88d5aa7ac4060d6eba7c7d62bee
<ide><path>setup.py <ide> 'spacy.matcher', <ide> 'spacy.syntax.ner', <ide> 'spacy.symbols', <add> 'spacy.vectors', <ide> 'spacy.syntax.iterators'] <ide> <ide>
1
Ruby
Ruby
remove some blanks
0a51e43866e54c5445a8efce253d60df23e3a7d6
<ide><path>activerecord/lib/active_record/locking/optimistic.rb <ide> module Locking <ide> # p2.first_name = "should fail" <ide> # p2.save # Raises a ActiveRecord::StaleObjectError <ide> # <del> # Optimistic locking will also check for stale data when objects are destroyed. Example: <add> # Optim...
2
Javascript
Javascript
simplify formula suggested by westlangley
2ab6388f42c65658cd622d8f6a85a526f88f6a83
<ide><path>examples/js/renderers/CSS3DRenderer.js <ide> THREE.CSS3DRenderer = function () { <ide> <ide> if ( camera.parent === null ) camera.updateMatrixWorld(); <ide> <del> var cameraCSSMatrix = 'translateZ(' + fov + 'px)' + <del> getCameraCSSMatrix( camera.matrixWorldInverse ); <del> <del> if ( camera.type ==...
1
Ruby
Ruby
show symlink target if linking fails
e805b8636cfe8d59dc9e82e1b60b8ff26d59cc07
<ide><path>Library/Homebrew/keg.rb <ide> def resolve_any_conflicts dst <ide> def make_relative_symlink dst, src, mode=OpenStruct.new <ide> if dst.exist? and dst.realpath == src.realpath <ide> puts "Skipping; already exists: #{dst}" if ARGV.verbose? <add> return <add> end <add> <ide> # cf. git-cl...
1
PHP
PHP
add missing return
6d80d6a3cbc89cddaf30fd051d4d74a4615cde83
<ide><path>lib/Cake/Console/Command/ConsoleShell.php <ide> protected function _columns($command) { <ide> */ <ide> protected function _routesReload() { <ide> if (!$this->_loadRoutes()) { <del> $this->err(__d('cake_console', "There was an error loading the routes config. Please check that the file exists and is fre...
1
Javascript
Javascript
remove unused variable
ab88af6629f07b99ec777b9031c2ff0cfab8d9e9
<ide><path>examples/js/renderers/SoftwareRenderer.js <ide> THREE.SoftwareRenderer = function ( parameters ) { <ide> var blockShift = 3; <ide> var blockSize = 1 << blockShift; <ide> var maxZVal = (1 << 24); // Note: You want to size this so you don't get overflows. <del> var maxTexCoordVal = 1; // Note: You want t...
1
PHP
PHP
add missing "use" statement
0a3e4d3dd8a3f7b027026408b251ef8f37948bac
<ide><path>tests/TestCase/Error/Middleware/ErrorHandlerMiddlewareTest.php <ide> use Cake\Http\ServerRequestFactory; <ide> use Cake\Log\Log; <ide> use Cake\TestSuite\TestCase; <add>use Error; <ide> use LogicException; <ide> use Psr\Log\LoggerInterface; <ide>
1
Ruby
Ruby
move shared code into 'sharedmacho' (#282)
9cf2710dc95f1c81e8c5111e22681836225e32e2
<ide><path>Library/Homebrew/os/mac/cctools_mach.rb <del>require "os/mac/architecture_list" <del> <ide> module CctoolsMachO <ide> # @private <ide> OTOOL_RX = /\t(.*) \(compatibility version (?:\d+\.)*\d+, current version (?:\d+\.)*\d+\)/ <ide> def mach_data <ide> end <ide> end <ide> <del> def archs <del> ...
4
Ruby
Ruby
fix built_as_bottle in formula's to_hash
07e849e7f4b3dd7cc3e5cb19f0a6d4d1247b63c9
<ide><path>Library/Homebrew/formula.rb <ide> def to_hash <ide> hsh["installed"] << { <ide> "version" => keg.version.to_s, <ide> "used_options" => tab.used_options.as_flags, <del> "built_as_bottle" => tab.built_bottle, <add> "built_as_bottle" => tab.built_as_bottle, <ide> "pou...
1
Text
Text
fix whitespace in 0.14.8 blog entry
7f01c476581810f5bad53a5014ed0b0899d8be95
<ide><path>docs/_posts/2016-03-29-react-v0.14.8.md <ide> However [Ian Christian Myers](https://github.com/iancmyers) discovered a memory <ide> <ide> The release is now available for download: <ide> <del>* **React** <del> Dev build with warnings: <https://fb.me/react-0.14.8.js> <del> Minified build for production: <...
1
Ruby
Ruby
fix intermittent test failures
761b5541b645bc1863b71008d6856eb1d2d46806
<ide><path>activerecord/test/cases/adapters/postgresql/hstore_test.rb <ide> def setup <ide> t.hstore 'settings' <ide> end <ide> end <add> Hstore.reset_column_information <ide> @column = Hstore.columns_hash['tags'] <ide> @type = Hstore.type_for_attribute("tags") <ide> end
1
PHP
PHP
fix argument order
e866588a64873177530ab463c2e31da80b8e091c
<ide><path>src/Illuminate/Database/DatabaseManager.php <ide> protected function makeConnection($name) <ide> return call_user_func($this->extensions[$name], $config); <ide> } <ide> <del> return $this->factory->make($name, $config); <add> return $this->factory->make($config, $name); <ide> } <ide> <ide> /**
1
Text
Text
fix french sentences
92767a1adaf103a83c9164633be0b604ca642480
<ide><path>threejs/lessons/fr/threejs-fundamentals.md <ide> Voici ce qui est à remarquer dans le diagramme ci-dessus : <ide> la couleur d'arrière plan et le brouillard. L'ensemble de ces objets définissent une structure <ide> hiérarchique de type parent/enfant, arborescente, et indique où les objets apparaissent et...
1
Python
Python
add fix by removing inline decoding in the library
a4830d2d34ea1d08e0c715ec9ea50733e4a8a78a
<ide><path>libcloud/test/test_logging_connection.py <ide> def test_debug_log_class_handles_request(self): <ide> self.assertIn('data', log) <ide> <ide> def test_debug_log_class_handles_request_with_compression(self): <add> request = zlib.compress(b'data') <ide> with StringIO() as fh: <ide> ...
2
Text
Text
add french translation
2e640a4d6fa5d426f76cd0deba8106c8249bfa0e
<ide><path>threejs/lessons/fr/threejs-materials.md <add>Title: Les Materials de Three.js <add>Description: Les Materials dans Three.js <add>TOC: Materials <add> <add>Cet article fait partie d'une série consacrée à Three.js. <add>Le premier article s'intitule [Principes de base](threejs-fundamentals.html). <add>Si vous ...
1
PHP
PHP
remove duplicate method
a305c41c330c16c9b2a0e89f268e51b7f6fcc38b
<ide><path>src/Illuminate/Support/Collection.php <ide> public function map(callable $callback) <ide> return new static(array_combine($keys, $items)); <ide> } <ide> <del> /** <del> * Run a map over each key of the items. <del> * <del> * @param callable $callback <del> * @return static <...
2
Text
Text
add v4.5.1 to changelog
cc699bd4cd50e808c1c0e95ac10cd60531541c3e
<ide><path>CHANGELOG.md <ide> <ide> No new external changes. <ide> <add>### v4.5.1 (July 25, 2022) <add> <add>- [#20120](https://github.com/emberjs/ember.js/pull/20120) [BUGFIX] Adjust uniqueId() implementation to only generate valid selectors. <add> <ide> ### v4.5.0 (June 13, 2022) <ide> <ide> - [#20052](https://gi...
1
Javascript
Javascript
move utility printing methods
cb9c5313a5a85570cca2f21bfd2410711501ef6b
<ide><path>dist/Sequence.js <ide> return this.__toString('Seq {', '}'); <ide> }; <ide> <del> Sequence.prototype.inspect=function() {"use strict"; <del> return '' + this; <del> }; <del> <ide> Sequence.prototype.__toString=function(head, tail) {"use strict"; <ide> if (this.length === 0) { <ide> re...
2
Text
Text
add deprecation notice
01b31968960abe2f77f296d72f52488eaa3c0f15
<ide><path>docs/docs/10.2-form-input-binding-sugar.md <ide> next: test-utils.html <ide> <ide> > Note: <ide> > <del>> If you're new to the framework, note that `ReactLink` is not needed for most applications and should be used cautiously. <add>> ReactLink is deprecated as of React v15. The recommendation is to explicit...
1
PHP
PHP
fix typos and add missing docblocks
add68eafe262955a587c181ecfc85598d6467402
<ide><path>src/Illuminate/Redis/Limiters/ConcurrencyLimiterBuilder.php <ide> class ConcurrencyLimiterBuilder <ide> /** <ide> * Create a new builder instance. <ide> * <del> * @param \Illuminate\Redis\Connetions\Connection $connection <add> * @param \Illuminate\Redis\Connections\Connection $conn...
2
Java
Java
add logprefix to the log statement
1fe2ea5a878e9913ba4910b6962f48c192374823
<ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/HandlerResultHandlerSupport.java <ide> else if (mediaType.isPresentIn(ALL_APPLICATION_MEDIA_TYPES)) { <ide> if (selected != null) { <ide> selected = selected.removeQualityValue(); <ide> if (logger.isDebugEnabled()) { <del> logger...
1
PHP
PHP
add the responsetransformer
ac7a91266e5587ee0d12c3d23ad44de033153846
<ide><path>src/Http/ResponseTransformer.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and license information, pleas...
2
Python
Python
add test for blueprint app-wide url processing
3fce4898f84531142c6fa8ab34cf9dc4d0cc4e85
<ide><path>tests/test_blueprints.py <ide> def bp_endpoint(): <ide> resp = app.test_client().get('/').data <ide> assert resp == b'request|after' <ide> assert evts == ['first'] + ['before', 'after', 'teardown'] * 2 <add> <add> <add>def test_app_url_processors(app, client): <add> bp = flask.Blueprint('bp', ...
1
Javascript
Javascript
update jquery ujs
5af31f37fb28e2e78b96d1ccf624871c883cc622
<ide><path>railties/lib/rails/generators/rails/app/templates/public/javascripts/jquery_ujs.js <del>/* <del> * jquery-ujs <del> * <del> * http://github.com/rails/jquery-ujs/blob/master/src/rails.js <del> * <del> * This rails.js file supports jQuery 1.4.3 and 1.4.4 . <add>/** <add> * Unobtrusive scripting adapter for jQu...
1
Text
Text
add github issue templates
b16987f6f22ca5817de85fc042f8dba05ad9d878
<ide><path>.github/ISSUE_TEMPLATE/bug_report.md <add>--- <add>name: Bug report <add>about: Create a report to help us improve <add> <add>--- <add> <add>## Summary <add> <add>Provide a quick summary of your bug report. <add> <add>## Detailed Information <add> <add>Provide detailed information of your bug report. <add> <...
3
Javascript
Javascript
fix remaining prettier issue
ee83821503afee87b536f33a43bd466900db0526
<ide><path>benchmark/createFixtures2.js <ide> function genModule(prefix, depth, asyncDepth, multiplex, r, circular) { <ide> const isAsync = depth >= asyncDepth; <ide> if (!isAsync) circular.push(path.resolve(fixtures, prefix + "/index.js")); <ide> source.push("(function() {"); <del> const m = r % multiplex + 1; <add...
1
Go
Go
add tests for pkg/httputils
2770a88413a98fcb3dd6e36e91c5041e5fe082eb
<ide><path>pkg/httputils/resumablerequestreader_test.go <add>package httputils <add> <add>import ( <add> "fmt" <add> "io/ioutil" <add> "net/http" <add> "net/http/httptest" <add> "strings" <add> "testing" <add>) <add> <add>func TestResumableRequestReader(t *testing.T) { <add> <add> srvtxt := "some response text data" <a...
1
Ruby
Ruby
fix query cache when using shared connections
10ed7f580ebdfe53848424268455257c9eb729c6
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb <ide> def lock_thread=(lock_thread) <ide> # #connection can be called any number of times; the connection is <ide> # held in a cache keyed by a thread. <ide> def connection <del> @thread_cached_conns[conne...
3
Javascript
Javascript
handle no user request
7d7b2e049fcd4b299edc5244382f56d073ee1acd
<ide><path>api-server/server/boot/challenge.js <ide> export default async function bootChallenge(app, done) { <ide> <ide> async function redirectToCurrentChallenge(req, res, next) { <ide> const { user } = req; <add> if (!user) { <add> return res.redirect(learnURL); <add> } <ide> const challengeId ...
1
PHP
PHP
fix fqcn in phpdoc
cb94c13fa9463649b7a2acfe6a6d2fb85513fe13
<ide><path>src/Illuminate/Database/Eloquent/Collection.php <ide> public function getQueueableConnection() <ide> /** <ide> * Get the Eloquent query builder from the collection. <ide> * <del> * @return Illuminate\Database\Eloquen\Builder <add> * @return \Illuminate\Database\Eloquent\Builder <ide> ...
1
Javascript
Javascript
add missing semicolons
288c7b07f758f3875637424a2c30931e9dce8575
<ide><path>lib/ParserHelpers.js <ide> ParserHelpers.expressionIsUnsupported = function(message) { <ide> <ide> ParserHelpers.skipTraversal = function skipTraversal() { <ide> return true; <del>} <add>}; <ide> <ide> ParserHelpers.approve = function approve() { <ide> return true; <del>} <add>};
1
Ruby
Ruby
use correct value in `reverse_merge` test
6568da325d7445d1dd85b941ac54a6f41ec5ebe5
<ide><path>actionpack/test/controller/parameters/parameters_permit_test.rb <ide> def walk_permitted(params) <ide> refute_predicate merged_params[:person], :empty? <ide> end <ide> <del> test "not permitted is sticky beyond reverse_merge!" do <del> merged_params = @params.reverse_merge(a: "b") <del> <del> r...
1
Python
Python
add kwargs to base encode function
a175a9dc0188a367400c2121391fa3abf536748e
<ide><path>pytorch_transformers/tokenization_utils.py <ide> def _convert_token_to_id_with_added_voc(self, token): <ide> def _convert_token_to_id(self, token): <ide> raise NotImplementedError <ide> <del> def encode(self, text, text_pair=None, add_special_tokens=False): <add> def encode(self, text, tex...
1
Javascript
Javascript
reject promise if network request failed
6470ff842bafd6829c1db24b61a3104129f68528
<ide><path>Libraries/Fetch/fetch.js <ide> var self = {}; <ide> } <ide> <ide> xhr.onload = function() { <add> var status = (xhr.status === 1223) ? 204 : xhr.status <add> if (status < 100 || status > 599) { <add> reject(new TypeError('Network request failed')) <add> return <ad...
1
Ruby
Ruby
add missing require
0d4d52a1cfe22e012d51bd716bba3714aead24ed
<ide><path>actionpack/lib/action_dispatch/testing/assertions/tag.rb <add>require 'active_support/deprecation' <add> <ide> ActiveSupport::Deprecation.warn("ActionDispatch::Assertions::TagAssertions has been has been extracted to the rails-dom-testing gem.")
1
Python
Python
improve numerical stability of logcosh
716e138c08fb5907652429df969e0be9babd6a22
<ide><path>keras/losses.py <ide> def logcosh(y_true, y_pred): <ide> `log(cosh(x))` is approximately equal to `(x ** 2) / 2` for small `x` and <ide> to `abs(x) - log(2)` for large `x`. This means that 'logcosh' works mostly <ide> like the mean squared error, but will not be so strongly affected by the <del> ...
1
Text
Text
remove extra bracket and modify url
5ccad2d294422523435341190c0749eea437e4c3
<ide><path>guide/english/linux/advantages-of-linux/index.md <ide> Linux has an active community of those willing to share their knowledge and help <ide> <ide> In addition to documentation, there are plenty of helpful and welcoming communities for newcomers to ask questions such as <a href='https://askubuntu.com/' targ...
1
Javascript
Javascript
reuse noop function in socketonerror()
5571c0ddebe72e894e41bbee56c7165a55788288
<ide><path>lib/_http_server.js <ide> function onParserExecute(server, socket, parser, state, ret) { <ide> onParserExecuteCommon(server, socket, parser, state, ret, undefined); <ide> } <ide> <add>const noop = () => {}; <ide> const badRequestResponse = Buffer.from( <ide> `HTTP/1.1 400 ${STATUS_CODES[400]}${CRLF}${CR...
1
Javascript
Javascript
add unit test for `objectat`
f5377739b4d59fc3b522756ca73f37e6c1e6c004
<ide><path>packages/ember-runtime/tests/mixins/array_test.js <ide> QUnit.test('modifying the array should also indicate the isDone prop itself has <ide> equal(count, 1, '@each.isDone should have notified'); <ide> }); <ide> <add>QUnit.test('`objectAt` returns correct object', function() { <add> let arr = ['first', '...
1
Python
Python
add wrapper for testing fixing functionality
4a9e34a57476c92a4147f9ecafc357a681f1a19a
<ide><path>scripts/flaskext_migrate.py <ide> def fix_standard_imports(red): <ide> return red <ide> <ide> <del>if __name__ == "__main__": <del> input_file = sys.argv[1] <add>def fix(input_file): <ide> ast = read_source(input_file) <ide> new_ast = fix_imports(ast) <ide> write_source(new_ast, input_fi...
1
Ruby
Ruby
fix amo isolated tests
6fa2bbfd10fde99f4e3a36292438fb666079029a
<ide><path>activemodel/test/models/contact.rb <ide> def initialize(options = {}) <ide> end <ide> <ide> def persisted? <del> id.present? <add> id <ide> end <ide> end
1
Javascript
Javascript
add failing uncaughtexception test
635986e4338cf34cf8e1abc4343ffd69d109bb4e
<ide><path>test/simple/test-exception-handler2.js <add>process.on('uncaughtException', function (err) { <add> console.log('Caught exception: ' + err); <add>}); <add> <add>setTimeout(function () { <add> console.log('This will still run.'); <add>}, 500); <add> <add>// Intentionally cause an exception, but don't catch i...
1
Javascript
Javascript
fix more eslint requirements
44d9c06f305d8f85ce7851c14b7473a015f5ff60
<ide><path>src/loaders/ObjectLoader.js <ide> Object.assign( ObjectLoader.prototype, { <ide> var array = []; <ide> for ( var j = 0; j < data.materials.length; j ++ ) { <ide> <del> if (cache[ data.materials[ j ].uuid ]) { <add> if ( cache[ data.materials[ j ].uuid ] ) { <ide> <ide> array.push...
1
Go
Go
remove use of deprecated system.getosversion()
044b74e33bc499e360d1793f4c0d5975032c2d6d
<ide><path>daemon/daemon_windows.go <ide> func verifyDaemonSettings(config *config.Config) error { <ide> func checkSystem() error { <ide> // Validate the OS version. Note that dockerd.exe must be manifested for this <ide> // call to return the correct version. <del> osv := system.GetOSVersion() <del> if osv.MajorVers...
1
Ruby
Ruby
fix failing test
ad4be3d75d46a04eb7a1d5a60bdfe68356a43e8b
<ide><path>activerecord/test/cases/validations_test.rb <ide> def test_error_on_update <ide> end <ide> <ide> def test_error_on_given_context <del> r = WrongReply.new <add> r = WrongReply.new(:title => "Valid title") <ide> assert !r.valid?(:special_case) <del> assert_equal "Invalid", r.errors[:title].jo...
2
Text
Text
fix typos in quic.md
e6d5af3c954b20d0a396d620321f5e61da469a30
<ide><path>doc/api/quic.md <ide> At any given time, a `QuicSession` exists is one of four possible states: <ide> * `Ready` - Entered as soon as the TLS 1.3 handshake completes. Once the <ide> `QuicSession` enters the `Ready` state, it may be used to exchange <ide> application data using `QuicStream` instances. <del...
1
Mixed
Javascript
add codegen debug logging to check ci issues
b1474f56cb71732e804a65751944d5a82fc2123c
<ide><path>packages/react-native-codegen/android/gradlePlugin-build/gradlePlugin/src/main/java/com/facebook/react/codegen/plugin/CodegenPlugin.java <ide> import com.google.common.collect.ImmutableList; <ide> import com.google.common.collect.ImmutableMap; <ide> import java.io.File; <add>import org.apache.log4j.Logger; <...
2
Ruby
Ruby
add revision to `brew info --json`
3871165c589bb2cf3611ecea538d9e500d49e916
<ide><path>Library/Homebrew/formula.rb <ide> def to_hash <ide> "devel" => (devel.version.to_s if devel), <ide> "head" => (head.version.to_s if head) <ide> }, <add> "revision" => revision, <ide> "installed" => [], <ide> "linked_keg" => (linked_keg.realpath.basename.to_s if linked_k...
1
Python
Python
fix math formatting of np.linalg.lstsq docs
66710151a7130bc01de920a1a08431524c0ca513
<ide><path>numpy/linalg/linalg.py <ide> def eigvals(a): <ide> See Also <ide> -------- <ide> eig : eigenvalues and right eigenvectors of general arrays <del> eigvalsh : eigenvalues of real symmetric or complex Hermitian <add> eigvalsh : eigenvalues of real symmetric or complex Hermitian <ide> ...
1
Python
Python
add tests to arraysetops for empty arrays
b18173d63ce02ab0f978178518173da534ce052b
<ide><path>numpy/lib/tests/test_arraysetops.py <ide> def check_unique1d( self ): <ide> ec = numpy.array( [1, 2, 5, 7] ) <ide> c = unique1d( a ) <ide> assert_array_equal( c, ec ) <add> <add> assert_array_equal([], unique1d([])) <ide> <ide> ## <ide> # 03.11.2005, c <ide> de...
1
Ruby
Ruby
fix bootsnap handling
240d2c34fb72a642a6163fa163bfd0b971761574
<ide><path>Library/Homebrew/utils/fork.rb <ide> def self.rewrite_child_error(child_error) <ide> error <ide> end <ide> <del> def self.safe_fork(&_block) <add> def self.safe_fork <ide> Dir.mktmpdir("homebrew", HOMEBREW_TEMP) do |tmpdir| <ide> UNIXServer.open("#{tmpdir}/socket") do |server| <ide> ...
1
Ruby
Ruby
remove select, collect and then inject with
794b34306eea0c7e1e99f5741df16129e8e22b3f
<ide><path>actionpack/lib/action_dispatch/http/mime_type.rb <ide> def parse(accept_header) <ide> # returend value: [Mime::HTML, Mime::JS, Mime::XML, Mime::YAML, Mime::ATOM, Mime::JSON, Mime::RSS, Mime::URL_ENCODED_FORM <ide> def parse_data_with_trailing_star(input) <ide> keys = Mime::LOOKUP.keys.sel...
1
Ruby
Ruby
fix check_xdg_data_dirs for linux
eeed04fdad87c62efb87079406741a56cf316945
<ide><path>Library/Homebrew/extend/os/linux/diagnostic.rb <ide> def check_xdg_data_dirs <ide> this variable set to include other locations. <ide> Some programs like `vapigen` may not work correctly. <ide> Consider adding Homebrew's share directory to XDG_DATA_DIRS like so: <del> ...
1
Python
Python
add the dna algorithm
cbf3c6140aafefbaef7186e0cb97d0758b1d38b2
<ide><path>strings/dna.py <add>import re <add> <add> <add>def dna(dna: str) -> str: <add> <add> """ <add> https://en.wikipedia.org/wiki/DNA <add> Returns the second side of a DNA strand <add> <add> >>> dna("GCTA") <add> 'CGAT' <add> >>> dna("ATGC") <add> 'TACG' <add> >>> dna("CTGA") <add> 'GA...
1
PHP
PHP
remove 0 limit
83501ed4beab8e82006694b14b22125a23f260ff
<ide><path>src/View/Helper/PaginatorHelper.php <ide> public function limitControl(array $limits = [], $default = null, array $options <ide> } <ide> <ide> if (empty($limits)) { <del> $limits += ['0' => __('All'), '20' => '20', '50' => '50', '100' => '100']; <add> $limits = [ <add> ...
1
Python
Python
add extra args/kwargs to authtoken's views
7a5d81c0b490bed5fb2144162a82ef51c0bf6135
<ide><path>rest_framework/authtoken/views.py <ide> class ObtainAuthToken(APIView): <ide> renderer_classes = (renderers.JSONRenderer,) <ide> serializer_class = AuthTokenSerializer <ide> <del> def post(self, request): <add> def post(self, request, *args, **kwargs): <ide> serializer = self.serialize...
1
Javascript
Javascript
fix typo in test-stream-toarray
d0ea81c98446dc3229258f39c534208fadc5dd49
<ide><path>test/parallel/test-stream-toArray.js <ide> const assert = require('assert'); <ide> }, { <ide> name: 'AbortError', <ide> }).then(common.mustCall(() => { <del> // Only stops toArray, does not destory the stream <add> // Only stops toArray, does not destroy the stream <ide> assert(stream.destr...
1
Python
Python
keep pod name for k8s executor under 63 characters
bdc3d2e6474f7f23f75683fd072b4a07ef5aaeaa
<ide><path>airflow/kubernetes/kubernetes_helper_functions.py <ide> def create_pod_id( <ide> dag_id: str | None = None, <ide> task_id: str | None = None, <ide> *, <del> max_length: int = 80, <add> max_length: int = 63, # must be 63 for now, see below <ide> unique: bool = True, <ide> ) -> str: <ide...
5
Ruby
Ruby
remove unnecessary 'examples' noise [ci skip]
5277d550d9a2039f82922ce9aca85ea4db5eb615
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb <ide> def #{column_type}(*args) # def string(*args) <ide> <ide> # Adds index options to the indexes hash, keyed by column name <ide> # This is primarily used to track indexes...
2
Ruby
Ruby
fix env path
6be5f45019ef22597d76ab45471f1bf1f8c89759
<ide><path>activerecord/lib/active_record.rb <ide> # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> #++ <ide> <del>bundled = "#{File.dirname(__FILE__)}/../../vendor/gems/environment" <add>bundled = "#{File.dirname(__FILE__)}/../vendor/gems/environment" <ide> if File.exist?("#{bundled}.rb") <ide>...
1
Javascript
Javascript
add support test results for firefox 61+
cc95204589eff52eb4eb543134c56c4a3a84e50a
<ide><path>test/unit/support.js <ide> testIframe( <ide> "reliableMarginLeft": true, <ide> "scrollboxSize": true <ide> }, <del> firefox: { <add> firefox_60: { <ide> "ajax": true, <ide> "boxSizingReliable": true, <ide> "checkClone": true, <ide> testIframe( <ide> "reliableMarginLeft": false,...
1
Javascript
Javascript
use same merging logic for init and update
aae53c835e51be732b6600d7cd982de5a5f28312
<ide><path>src/core/core.config.js <ide> function mergeConfig(...args/* config objects ... */) { <ide> }); <ide> } <ide> <del>function includeDefaults(options, type) { <del> return mergeConfig( <add>function includeDefaults(config, options) { <add> const scaleConfig = mergeScaleConfig(config, options); <add> options ...
3
Python
Python
improve test_pt_tf_model_equivalence on pt side
e6d23a4b9bcd2dbdd3931e16e50d74630e36fbeb
<ide><path>tests/clip/test_modeling_clip.py <ide> from transformers.testing_utils import ( <ide> is_flax_available, <ide> is_pt_flax_cross_test, <del> is_pt_tf_cross_test, <ide> require_torch, <ide> require_vision, <ide> slow, <ide> def test_load_vision_text_config(self): <ide> text_c...
5
PHP
PHP
add config for new memcached features
9dc2d60336414a985fdfc1fd5d4430a46515d9f8
<ide><path>config/cache.php <ide> <ide> 'memcached' => [ <ide> 'driver' => 'memcached', <add> 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), <add> 'sasl' => [ <add> env('MEMCACHED_USERNAME'), <add> env('MEMCACHED_PASSWORD'), <add> ...
1
Javascript
Javascript
reset ajaxtimeout after running timeout tests
ad2a6bd91626efbaf9509c9643c60679b1fab942
<ide><path>src/ajax/ajax.js <ide> jQuery.extend({ <ide> * start(); <ide> * } <ide> * }); <add> * // reset timeout <add> * $.ajaxTimeout(0); <ide> * <ide> * <ide> * @name $.ajaxTimeout
1
Python
Python
add tests for dry run
6619cdedace3aaea03bec655929eef98b36aebcf
<ide><path>tests/core.py <ide> def test_hive(self): <ide> task_id='basic_hql', hql=self.hql, dag=self.dag) <ide> t.run(start_date=DEFAULT_DATE, end_date=DEFAULT_DATE, force=True) <ide> <add> def test_hive_dryrun(self): <add> t = operators.HiveOperator( <add> task_id='basic_hql'...
1
Javascript
Javascript
update camera uniforms only when really necessary
f9fd416f6529e539fe73925e4d5f0ac5a0248c04
<ide><path>src/renderers/WebGLRenderer.js <ide> THREE.WebGLRenderer = function ( parameters ) { <ide> // reset caching for this frame <ide> <ide> _currentMaterialId = - 1; <add> _currentCamera = null; <ide> _lightsNeedUpdate = true; <ide> <ide> // update scene graph <ide> THREE.WebGLRenderer = function ( par...
1