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
Java
Java
simplify sourcefileassert assertion methods
74caa9213a44e2b613025b2387d41389c9344953
<ide><path>spring-core-test/src/main/java/org/springframework/aot/test/generator/file/MethodAssert.java <del>/* <del> * Copyright 2002-2022 the original author or authors. <del> * <del> * Licensed under the Apache License, Version 2.0 (the "License"); <del> * you may not use this file except in compliance with the Lice...
8
Javascript
Javascript
remove unused gulp target for testing
145c0cea39c542beee4a3d98be6c1dd90c835afc
<ide><path>gulpfile.js <ide> gulp.task('browsertest', function () { <ide> return createTestSource('browser'); <ide> }); <ide> <del>gulp.task('browsertest-noreftest', function () { <del> return createTestSource('browser (no reftest)'); <del>}); <del> <ide> gulp.task('unittest', function () { <ide> return createTes...
2
Javascript
Javascript
add test case for no emit in watch mode
0abdc0aed0867d8f14a1a6afc45daa8ff5e8ccf7
<ide><path>test/Compiler.test.js <ide> describe("Compiler", () => { <ide> done(); <ide> }); <ide> }); <add> it("should not emit on errors (watch)", function(done) { <add> const compiler = webpack({ <add> context: __dirname, <add> mode: "production", <add> entry: "./missing", <add> output: { <add> path...
1
PHP
PHP
remove misleading deprecation message
37bb873bd8932ed1629df45049bde56750dbbbac
<ide><path>src/Database/Schema/TableSchemaInterface.php <ide> <ide> /** <ide> * An interface used by database TableSchema objects. <del> * <del> * Deprecated 3.5.0: Use Cake\Database\TableSchemaAwareInterface instead. <ide> */ <ide> interface TableSchemaInterface extends SchemaInterface <ide> {
1
PHP
PHP
apply style ci fixes
a153c59ae7d9c254b2c17eb321066f6b4da32f33
<ide><path>src/Illuminate/Container/Container.php <ide> protected function getClosure($abstract, $concrete) <ide> } <ide> <ide> /** <del> * Bind a callback to resolve with Container::call <add> * Bind a callback to resolve with Container::call. <ide> * <ide> * @param string $method <ide> ...
1
Text
Text
remove redundant instruction from the readme
3c9277086742fe3a38a268ef97184be34e294655
<ide><path>README.md <ide> npm install <ide> Start `grunt watch` or `npm start` to auto-build jQuery as you work: <ide> <ide> ```bash <del>cd jquery && grunt watch <add>grunt watch <ide> ``` <ide> <ide>
1
Python
Python
use _umath_linalg for cholesky()
2dd64051fa3f81bea0f9fe5098f7e1c24aa3f2f8
<ide><path>numpy/linalg/linalg.py <ide> def cholesky(a): <ide> <ide> Parameters <ide> ---------- <del> a : (M, M) array_like <add> a : (..., M, M) array_like <ide> Hermitian (symmetric if all elements are real), positive-definite <ide> input matrix. <ide> <ide> Returns <ide> ----...
1
Python
Python
assign ips upon machine creation
c8727bf4d9c916a6fed3d7abab964cd6e9d956fa
<ide><path>libcloud/compute/drivers/packet.py <ide> def create_node(self, name, size, image, location, <ide> # if project has been specified on initialization of driver, then <ide> # create on this project <ide> <del> import ipdb; ipdb.set_trace(); <ide> if self.project_id: <ide> ...
1
Ruby
Ruby
add type option to atom feed entry builder
e3d1585c8f2eb08e9e8bfa283a54a949f0ec5467
<ide><path>actionpack/lib/action_view/helpers/atom_feed_helper.rb <ide> def updated(date_or_time = nil) <ide> # * <tt>:updated</tt>: Time of update. Defaults to the updated_at attribute on the record if one such exists. <ide> # * <tt>:url</tt>: The URL for this entry. Defaults to the polymorphic_url for...
2
Javascript
Javascript
remove redundant code
e5e7f89f4b3ae7b94991476e80c0cfd31d22d900
<ide><path>client/src/redux/index.js <ide> export const reducer = handleActions( <ide> ...state, <ide> currentChallengeId: payload <ide> }), <del> [settingsTypes.updateLegacyCertComplete]: (state, { payload }) => { <del> const { appUsername } = state; <del> return { <del> ...state, <...
2
PHP
PHP
add method comments
c59d9c3f686b3947e06d7a7c821972c21528f9df
<ide><path>src/View/View.php <ide> public function layout($name = null) <ide> * - `callbacks` - Set to true to fire beforeRender and afterRender helper callbacks for this element. <ide> * Defaults to false. <ide> * - `ignoreMissing` - Used to allow missing elements. Set to true to not throw exceptions....
1
Ruby
Ruby
handle complex $editor values
e3c6d9bf0008b3f32b2ad370cf9639be4c80f0d9
<ide><path>Library/Homebrew/utils.rb <ide> def exec_editor *args <ide> '/usr/bin/vim' # Default to vim <ide> end <ide> end <del> # we split the editor because especially on mac "mate -w" is common <del> # but we still want to use the comma-delimited version of exec because then <del> # we don't have to e...
1
Javascript
Javascript
expose link-list from timers.js; add tests
09994438e58bef3c04dfb851f54fb547d9c22f02
<ide><path>lib/timers.js <ide> if (process.env.NODE_debug && /timer/.test(process.env.NODE_debug)) { <ide> } <ide> <ide> <del>// IDLE TIMEOUTS <del>// <del>// Because often many sockets will have the same idle timeout we will not <del>// use one timeout watcher per item. It is too much overhead. Instead <del>// we'l...
2
Text
Text
add lucamaraschi to collaborators
ce986de829457c39257cd205067602e765768fb0
<ide><path>README.md <ide> more information about the governance of the Node.js project, see <ide> **Minwoo Jung** &lt;minwoo@nodesource.com&gt; (he/him) <ide> * [lance](https://github.com/lance) - <ide> **Lance Ball** &lt;lball@redhat.com&gt; <add>* [lucamaraschi](https://github.com/lucamaraschi) - <add>**Luca Marasch...
1
Ruby
Ruby
ignore shared-mime-info and mactex
7dd69d2c94ed801285a164439f3fcbf17a2a6894
<ide><path>Library/Homebrew/cmd/--prefix.rb <ide> def __prefix <ide> share/pypy3/* <ide> share/info/dir <ide> share/man/whatis <add> share/mime/* <add> texlive/* <ide> ].freeze <ide> <ide> def list_unbrewed
1
Javascript
Javascript
remove unnecessary use of array.from
94a552149d09b442be47679ecd50d14abcc7364f
<ide><path>src/project.js <ide> /* <ide> * decaffeinate suggestions: <del> * DS101: Remove unnecessary use of Array.from <ide> * DS103: Rewrite code to no longer use __guard__ <ide> * DS104: Avoid inline assignments <ide> * DS204: Change includes calls to have a more natural evaluation order <ide> class Project ext...
1
Text
Text
add chinese translation of jsx-in-depth
8621b4d338f72687b5ee66221a580f9473ccd5b6
<ide><path>docs/docs/02.1-jsx-in-depth.zh-CN.md <add>--- <add>id: jsx-in-depth-zh-CN <add>title: 深入 JSX <add>permalink: jsx-in-depth-zh-CN.html <add>prev: displaying-data-zh-CN.html <add>next: jsx-spread-zh-CN.html <add>--- <add> <add>[JSX](http://facebook.github.io/jsx/) 是一个看起来很像 XML 的 JavaScript 语法扩展。React 可以用来做简单的 J...
1
Text
Text
fix signature for napi_create_range_error
7dcfe72a2595331c2c5b2cc008bc2c63df6c95fa
<ide><path>doc/api/n-api.md <ide> This API returns a JavaScript `TypeError` with the text provided. <ide> added: v8.0.0 <ide> --> <ide> ```C <del>NODE_EXTERN napi_status napi_create_range_error(napi_env env, <add>NAPI_EXTERN napi_status napi_create_range_error(napi_env env, <ide> ...
1
Javascript
Javascript
fix a unnecessary conditional statement in .stop()
110802c7f22b677ef658963aa95ebdf5cb9c5573
<ide><path>src/effects.js <ide> jQuery.fn.extend( { <ide> clearQueue = type; <ide> type = undefined; <ide> } <del> if ( clearQueue && type !== false ) { <add> if ( clearQueue ) { <ide> this.queue( type || "fx", [] ); <ide> } <ide>
1
Text
Text
fix styles of headings to follow guide rules
d0a5f878d32a4b95f5e866d3b5612acd4b7d16c7
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> For more information on changes made to Rails 5.0 please see the [release notes] <ide> From Ruby on Rails 5.0 onwards, Ruby 2.2.2+ is the only supported Ruby version. <ide> Make sure you are on Ruby 2.2.2 version or greater, before you proceed. <ide> <del>### A...
1
Javascript
Javascript
remove debug code
9166f852858c79bec6441ff797f92fa96f36df39
<ide><path>lib/child_process_uv.js <ide> var spawn = exports.spawn = function(file, args, options) { <ide> <ide> <ide> function maybeExit(subprocess) { <del> console.log("maybeExit"); <ide> subprocess._closesGot++; <ide> <ide> if (subprocess._closesGot == subprocess._closesNeeded) { <ide> function ChildProcess(...
1
Ruby
Ruby
add more examples to collectionproxy#find
e0859e569c007cd108797883eec402c876b9e8a0
<ide><path>activerecord/lib/active_record/associations/collection_proxy.rb <ide> class CollectionProxy < Relation <ide> # <ide> # person.pets.find(1) # => #<Pet id: 1, name: "Fancy-Fancy", person_id: 1> <ide> # person.pets.find(4) # => ActiveRecord::RecordNotFound: Couldn't find Pet with id=4 <...
1
Go
Go
fix panic with wrong dockercfg file
649605915428e0ee81cf49d15e949d48da20110c
<ide><path>auth/auth.go <ide> func LoadConfig(rootPath string) (*ConfigFile, error) { <ide> } <ide> authConfig := AuthConfig{} <ide> origAuth := strings.Split(arr[0], " = ") <add> if len(origAuth) != 2 { <add> return &configFile, fmt.Errorf("Invalid Auth config file") <add> } <ide> authConfig.Username, auth...
1
PHP
PHP
fix failing tests
17737e307f9ec940c6998f3ee711dd127b62137d
<ide><path>tests/TestCase/Console/CommandTest.php <ide> public function testRunOptionParserFailure() <ide> <ide> $messages = implode("\n", $output->messages()); <ide> $this->assertStringContainsString( <del> 'Error: Missing required arguments. The `name` argument is required', <add> ...
2
Javascript
Javascript
provide contextual error messages
d804bbcd51ec83bee1f4a3ccd42c3bd7eb38a988
<ide><path>src/ng/interpolate.js <ide> function $InterpolateProvider() { <ide> }; <ide> <ide> <del> this.$get = ['$parse', function($parse) { <add> this.$get = ['$parse', '$exceptionHandler', function($parse, $exceptionHandler) { <ide> var startSymbolLength = startSymbol.length, <ide> endSymbolLength ...
3
Javascript
Javascript
remove usage of three.imageutils.loadtexture
1a85493265460fb2db69da259ed841d0d2faa829
<ide><path>examples/js/loaders/AssimpLoader.js <ide> path = path.substr( path.lastIndexOf( "/" ) + 1 ); <ide> <ide> } <del> <del> return THREE.ImageUtils.loadTexture( baseURL + path ); <add> return ( new TextureLoader() ).load( baseURL + path ); <ide> <ide> }; <ide> <ide> <ide> THREE.AssimpLoader = As...
1
Python
Python
remove useless super delegation
ba6f4945858bdf02bf10fc833430fb77894693db
<ide><path>keras/callbacks.py <ide> class TerminateOnNaN(Callback): <ide> """Callback that terminates training when a NaN loss is encountered. <ide> """ <ide> <del> def __init__(self): <del> super(TerminateOnNaN, self).__init__() <del> <ide> def on_batch_end(self, batch, logs=None): <ide> ...
1
Javascript
Javascript
fix additional spacing issues
5db725d82c6ebfa0a8f89d76af804f37059fad7d
<ide><path>seed/bonfireMDNlinks.js <ide> * <ide> **/ <ide> <del>var links = <del> { <add>var links = { <ide> // ========= NON MDN REFS <ide> "Currying": "https://leanpub.com/javascript-allonge/read#pabc", <ide> "Smallest Common Multiple": "https://www.mathsisfun.com/least-common-multiple.html", <ide> var link...
1
PHP
PHP
update the doc links
e55927c007f26f9f04cfada11c32def0365872c7
<ide><path>lib/Cake/Utility/Hash.php <ide> public static function remove(array $data, $path) { <ide> * @param string $valuePath A dot-separated string. <ide> * @param string $groupPath A dot-separated string. <ide> * @return array Combined array <del> * @link http://book.cakephp.org/2.0/en/core-utility-libraries/set...
1
PHP
PHP
reduce method calls
b98cf473a35d5d0ea822ae5f0f6721ce2d22f6e1
<ide><path>src/Auth/BaseAuthenticate.php <ide> protected function _findUser($username, $password = null) <ide> $this->_needsPasswordRehash = $hasher->needsRehash($hashedPassword); <ide> $result->unsetProperty($passwordField); <ide> } <del> if ($password === null && in_array($passw...
1
Python
Python
remove labels from the ragmodel example
95f792afb0f0ce5a7b4f0e8df108b10157a69134
<ide><path>src/transformers/modeling_rag.py <ide> def forward( <ide> <ide> >>> input_dict = tokenizer.prepare_seq2seq_batch("How many people live in Paris?", "In Paris, there are 10 million people.", return_tensors="pt") <ide> >>> input_ids = input_dict["input_ids"] <del> >>> outputs...
1
Python
Python
remove unneeded parentheses after black formatting
6f0cf3f72480cb94cc8bdb361c44a2130c77d731
<ide><path>airflow/cli/cli_parser.py <ide> def positive_int(value): <ide> ) <ide> ARG_SAVE_DAGRUN = Arg( <ide> ("--save-dagrun",), <del> help=("After completing the backfill, saves the diagram for current DAG Run to the indicated file.\n\n"), <add> help="After completing the backfill, saves the diagram for cu...
1
Javascript
Javascript
resolve all of nothing to nothing
ac75079e2113949d5d64adbcf23d56f3cf295d41
<ide><path>src/service/q.js <ide> function qFactory(nextTick, exceptionHandler) { <ide> counter = promises.length, <ide> results = []; <ide> <del> forEach(promises, function(promise, index) { <del> promise.then(function(value) { <del> if (index in results) return; <del> results[in...
2
Javascript
Javascript
convert callbackqueue to a class
a70acb37d9dc392b395bd921d90d5488542c2402
<ide><path>src/renderers/shared/stack/event/ReactSyntheticEvent.js <ide> export type DispatchConfig = any; <ide> <ide> export class ReactSyntheticEvent extends SyntheticEvent { <ide> dispatchConfig: DispatchConfig; <del>}; <add>} <ide><path>src/renderers/shared/utils/CallbackQueue.js <ide> var invariant = require('i...
2
Ruby
Ruby
remove unnecessary condition in content_type
f091bd67b3ef5f4cd85dbd70cbd11e9ad2711562
<ide><path>actionmailer/lib/action_mailer/base.rb <ide> def collect_responses(headers) <ide> def collect_responses_from_text(headers) <ide> [{ <ide> body: headers.delete(:body), <del> content_type: headers[:content_type] || self.class.default[:content_type] || "text/plain" <add> ...
1
Ruby
Ruby
add caller to deprecation notices
54302ef55bffd1a93f20f5d1ae81217b2e4149c4
<ide><path>actionpack/lib/action_controller/metal/compatibility.rb <ide> def self.deprecated_config_reader(option, message = nil) <ide> <ide> ClassMethods.class_eval <<-RUBY, __FILE__, __LINE__ + 1 <ide> def #{option} <del> ActiveSupport::Deprecation.warn #{message.inspect} <add> Active...
1
PHP
PHP
implement strict subcommands
7ab75a901518297dad56c95430dd3eaf33d1751b
<ide><path>src/Console/ConsoleOptionParser.php <ide> <?php <ide> /** <del> * ConsoleOptionParser file <del> * <ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <ide> * <ide><path>src/Console/Shell.php <ide> public f...
3
Java
Java
improve javadoc in configuration
821a8eebdda514e1c6e4602509a8dc1e69d1849c
<ide><path>spring-context/src/main/java/org/springframework/context/annotation/Configuration.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"); <ide> * yo...
1
Javascript
Javascript
avoid timing brittleness in ember.select test
20df8632b4361cb1b1d552e067084bbb9746888e
<ide><path>packages/ember-views/tests/views/select_test.js <ide> QUnit.test('selection can be set from a Promise when multiple=false', function() <ide> equal(select.$()[0].selectedIndex, 1, 'Should select from Promise content'); <ide> }); <ide> <del>QUnit.test('selection from a Promise don\'t overwrite newer selecti...
1
Text
Text
update code samples
6d37efbb8ae805577659e988aa9c09d138e4c6e2
<ide><path>docs/basics/UsageWithReact.md <ide> npm install --save react-redux <ide> <ide> React bindings for Redux embrace the idea of [separating container and presentational components](https://medium.com/@dan_abramov/smart-and-dumb-components-7ca2f9a7c7d0). <ide> <del>It is advisable that only top-level components...
1
Python
Python
fix psutil.process comparison
e84ce1905fc87470067b37d84281aedf55956083
<ide><path>glances/core/glances_processes.py <ide> def __str__(self): <ide> def findProcess(self, process): <ide> """ Search in tree for the ProcessTreeNode owning process, and return it or None if not found. """ <ide> assert(process is not None) <del> if self.process is process: <add> ...
1
Javascript
Javascript
use key while rendering arrays
381522223825b51778fae3ed3eba2c1233a99e7e
<ide><path>examples/with-react-multi-carousel/pages/index.js <ide> class Index extends Component { <ide> deviceType={''} <ide> > <ide> {images.map((image) => { <del> return <Image url={image} alt={image} /> <add> return <Image key={image} url={image} alt={image} /> <ide...
1
Go
Go
remove unused type mapping
a292c04c01cbe4a6c9f74e7cf3b0315249ed8993
<ide><path>pkg/devicemapper/devmapper_wrapper.go <ide> import ( <ide> type ( <ide> cdmTask C.struct_dm_task <ide> <del> cLoopInfo64 C.struct_loop_info64 <del> loopInfo64 struct { <add> loopInfo64 struct { <ide> loDevice uint64 /* ioctl r/o */ <ide> loInode uint64 /* ioctl r/o */ <ide> loRdevic...
1
Javascript
Javascript
update 404 static cache header to not cache
3f650e154923f4d03ff868a63891c5a89b91bf56
<ide><path>server/index.js <ide> export default class Server { <ide> async render404 (req, res, parsedUrl = parseUrl(req.url, true)) { <ide> const { pathname, query } = parsedUrl <ide> res.statusCode = 404 <add> res.setHeader('Cache-Control', 'no-cache, no-store, max-age=0, must-revalidate') <ide> retu...
2
Go
Go
assign proxy fields directly
1df0bb5a1309af0402d83061d4404afe7396e657
<ide><path>daemon/info.go <ide> func (daemon *Daemon) SystemInfo() (*types.Info, error) { <ide> ServerVersion: dockerversion.Version, <ide> ClusterStore: daemon.config().ClusterStore, <ide> ClusterAdvertise: daemon.config().ClusterAdvertise, <add> HTTPProxy: os.Getenv("http_proxy"), <add> ...
1
Go
Go
make --device works at privileged mode
03b3ec1dd52bb45eaa73864b62177c13c348c639
<ide><path>daemon/container.go <ide> func validateHostConfig(hostConfig *containertypes.HostConfig, platform string) <ide> if hostConfig == nil { <ide> return nil <ide> } <add> <add> if hostConfig.Privileged { <add> for _, deviceMapping := range hostConfig.Devices { <add> if deviceMapping.PathOnHost == deviceMap...
2
Go
Go
use 0711 for /var/lib/docker
e91ca0e239f1e6c71a5a6c789ec8177806773355
<ide><path>daemon/daemon_unix.go <ide> func setupRemappedRoot(config *Config) ([]idtools.IDMap, []idtools.IDMap, error) <ide> <ide> func setupDaemonRoot(config *Config, rootDir string, rootUID, rootGID int) error { <ide> config.Root = rootDir <del> // the docker root metadata directory needs to have execute permissio...
1
Java
Java
add getter for js executor factory
e764361f939f01b2a206412e58675259948f4869
<ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java <ide> import android.app.Application; <ide> <ide> import com.facebook.infer.annotation.Assertions; <add>import com.facebook.react.bridge.JavaScriptExecutorFactory; <ide> import com.facebook.react.common.LifecycleState; <ide> import com.faceb...
1
Python
Python
improve test and add a test to python
17828c6ede1982ffab11e7277c80c7f21a907a75
<ide><path>numpy/lib/tests/test_financial.py <ide> def test_npv(self): <ide> def test_mirr(self): <ide> v1 = [-4500,-800,800,800,600,600,800,800,700,3000] <ide> assert_almost_equal(np.mirr(v1,0.08,0.055), <del> 0.0665, 4) <add> 0.0666, 4) <ide> ...
1
Ruby
Ruby
remove useless `test_string_with_crazy_column`
edf92f3a0d57942ea84ebac6b9b9f4d7bec3d898
<ide><path>activerecord/test/cases/quoting_test.rb <ide> def test_crazy_object <ide> end <ide> <ide> def test_quote_string_no_column <del> assert_equal "'lo\\\\l'", @quoter.quote('lo\l', nil) <add> assert_equal "'lo\\\\l'", @quoter.quote('lo\l') <ide> end <ide> <ide> def test_quo...
1
Python
Python
add description of get/seterrobj
bcd679767d28c482e2e4bebf987d27b3200c6702
<ide><path>numpy/add_newdocs.py <ide> Type can be either a new sub-type object or a data-descriptor object <ide> <ide> """)) <add> <add>add_newdoc('numpy.core.umath','geterrobj', <add> """geterrobj() <add> <add> Used internally by `geterr`. <add> <add> Returns <add> ----...
1
Text
Text
add code preview for textcat_multilabel [ci skip]
39c8f7949ea5787eaddb964a5478144cf00d4342
<ide><path>website/docs/api/textcategorizer.md <ide> architectures and their arguments and hyperparameters. <ide> %%GITHUB_SPACY/spacy/pipeline/textcat.py <ide> ``` <ide> <add>```python <add>%%GITHUB_SPACY/spacy/pipeline/textcat_multilabel.py <add>``` <add> <ide> ## TextCategorizer.\_\_init\_\_ {#init tag="method"} <i...
1
Javascript
Javascript
use common encoding utils
f6e4bf74cbdb7e36b00d3709f57d8a28ae7a57a2
<ide><path>server/boot/user.js <ide> import { <ide> calcLongestStreak <ide> } from '../utils/user-stats'; <ide> import supportedLanguages from '../../common/utils/supported-languages'; <add>import { encodeFcc } from '../../common/utils/encode-decode.js'; <ide> import { getChallengeInfo, cachedMap } from '../utils/map...
1
Ruby
Ruby
push target down to the classes that care about it
fd2d78dbc89a5875fb6e70416b991b371ea33468
<ide><path>activemodel/lib/active_model/mass_assignment_security/sanitizer.rb <ide> module ActiveModel <ide> module MassAssignmentSecurity <ide> class Sanitizer <del> def initialize(target=nil) <del> end <del> <ide> # Returns all attributes not denied by the authorizer. <ide> def sanitize(at...
1
PHP
PHP
fix formhelper tests related to new _token[debug]
6d40c7e3fb55bd88111955d7d7b9240ace37508d
<ide><path>tests/TestCase/View/Helper/FormHelperTest.php <ide> public function testFormSecurityFields() <ide> $hash = Security::hash(serialize($fields) . Security::salt()); <ide> $hash .= ':' . 'Model.valid'; <ide> $hash = urlencode($hash); <add> $tokenDebug = urlencode(json_encode([ <add...
1
Ruby
Ruby
remove some useless code
02f2e3d538f79d61ab5abdcdb3bea30843d3ee4a
<ide><path>actionpack/lib/action_dispatch/routing/route_set.rb <ide> def initialize <ide> @module = Module.new do <ide> protected <ide> <del> def handle_positional_args(args, options, route) <add> def handle_positional_args(args, options, segment_keys) <ide> i...
1
Python
Python
add base norm exceptions
e5d426406ad3661a2863c06339f896da451d9450
<ide><path>spacy/lang/norm_exceptions.py <add># coding: utf8 <add>from __future__ import unicode_literals <add> <add> <add># These exceptions are used to add NORM values based on a token's ORTH value. <add># Individual languages can also add their own exceptions and overwrite them - <add># for example, British vs. Amer...
1
Java
Java
fix regression in determinetransactionmanager
4a0ac97550c67c926e014903338f9c0e84fa9eee
<ide><path>spring-tx/src/main/java/org/springframework/transaction/interceptor/TransactionAspectSupport.java <ide> protected PlatformTransactionManager determineTransactionManager(TransactionAttr <ide> if (this.beanFactory != null) { <ide> String qualifier = txAttr != null ? txAttr.getQualifier() : null; <ide> ...
2
Ruby
Ruby
move define_constructors to class level
bfa82499d633d586020af2333e68b2d85df190b2
<ide><path>activerecord/lib/active_record/associations/builder/singular_association.rb <ide> def valid_options <ide> <ide> def define_accessors(model, reflection) <ide> super <del> define_constructors(model.generated_feature_methods) if reflection.constructable? <add> self.class.define_constructors...
1
Python
Python
upgrade celery.utils.encoding from kombu
b5cd4ff2b02151bca966c53b80dbea8911a7a6b2
<ide><path>celery/utils/encoding.py <ide> """ <del> <ide> celery.utils.encoding <del>===================== <add>==================== <ide> <del>Utilties to encode text, and to safely emit text from running <add>Utilities to encode text, and to safely emit text from running <ide> applications without crashing with the ...
1
Ruby
Ruby
allow writing/committing new bottles
134210d9ed0d5eec6f70ae999b50ef4d3dae6a1c
<ide><path>Library/Homebrew/cmd/bottle.rb <ide> require 'tab' <ide> require 'keg' <ide> require 'cmd/versions' <add>require 'utils/inreplace' <ide> require 'erb' <ide> <ide> class BottleMerger < Formula <ide> def self.reset_bottle; @bottle = Bottle.new; end <ide> EOS <ide> <ide> module Homebrew extend self <add> cla...
1
Javascript
Javascript
use official iana status codes
2d9456e3e61cf969d5cd11ad85484aa961844ff6
<ide><path>lib/_http_server.js <ide> const STATUS_CODES = exports.STATUS_CODES = { <ide> 205 : 'Reset Content', <ide> 206 : 'Partial Content', <ide> 207 : 'Multi-Status', // RFC 4918 <add> 208 : 'Already Reported', <add> 226 : 'IM Used', <ide> 300 : 'Multiple Choices', <ide> 301 : 'Moved Perma...
1
Java
Java
improve transaction management for @sql scripts
2e75adb04c02b8904c59bd5820336104594ce3fb
<ide><path>spring-test/src/main/java/org/springframework/test/context/jdbc/Sql.java <ide> import java.lang.annotation.Retention; <ide> import java.lang.annotation.Target; <ide> <del>import org.springframework.jdbc.datasource.init.ScriptUtils; <del>import org.springframework.util.ResourceUtils; <del> <ide> import stati...
9
Python
Python
refactor the function - _convert_string_dtype
e0fefdae0cae9c97f318fca9717467f7faf071d9
<ide><path>keras/backend/tensorflow_backend.py <ide> def _convert_string_dtype(dtype): <ide> # Raises <ide> ValueError: if `dtype` is not supported. <ide> """ <del> if dtype == 'float16': <del> return tf.float16 <del> if dtype == 'float32': <del> return tf.float32 <del> elif dtype...
1
Javascript
Javascript
fix get{left|right|bottom}dock links
02258a9994030579af31b8e05f0e8a4f080da510
<ide><path>src/dock.js <ide> const CURSOR_OVERLAY_VISIBLE_CLASS = 'atom-dock-cursor-overlay-visible' <ide> <ide> // Extended: A container at the edges of the editor window capable of holding items. <ide> // You should not create a Dock directly. Instead, access one of the three docks of the workspace <del>// via {::ge...
1
Mixed
Text
change active storage destroy callbacks
9431529011b0057bb8833dc16726714166547a28
<ide><path>activestorage/CHANGELOG.md <add>* Use `after_destroy_commit` instead of `before_destroy` for purging <add> attachments when a record is destroyed. <add> <add> *Hiroki Zenigami* <add> <add> <ide> * Force `:attachment` disposition for specific, configurable content types. <ide> This mitigates pos...
2
PHP
PHP
fix array keys
f17864364ade5b8dabda9aa26bc2af13c6f832ff
<ide><path>src/Http/ResponseEmitter.php <ide> protected function emitCookies(array $cookies): void <ide> setcookie( <ide> $cookie['name'], <ide> $cookie['value'], <del> $cookie['options']['expire'], <add> $...
1
Ruby
Ruby
ignore unparsable system languages
48dcf1916928999776df36882a553f15a9f0ffe7
<ide><path>Library/Homebrew/cask/lib/hbc/dsl.rb <ide> def language_eval <ide> raise CaskInvalidError.new(cask, "No default language specified.") <ide> end <ide> <del> MacOS.languages.map(&Locale.method(:parse)).each do |locale| <add> locales = MacOS.languages <add> .map do |...
1
Javascript
Javascript
add sigwinch handler for readline
0ef8a86af24be8e209a7b6747bde358bb878272e
<ide><path>lib/readline.js <ide> function Interface (output, completer) { <ide> <ide> this.history = []; <ide> this.historyIndex = -1; <add> <add> exports.columns = process.binding('stdio').getColumns(); <add> <add> if (process.listeners("SIGWINCH").length === 0) { <add> process.on("SIGWINCH", funct...
1
Ruby
Ruby
kill dead code
7b8f4b3d19bd2f27096fe0d7b15666abc7072e2f
<ide><path>Library/Homebrew/download_strategy.rb <ide> def self.detect(url, strategy=nil) <ide> end <ide> end <ide> <del> private <del> <ide> def self.detect_from_url(url) <ide> case url <ide> # We use a special URL pattern for cvs
1
Javascript
Javascript
remove workaround code in debugger test
12622c5f86fde7c878c7e4e7f441206cf0980457
<ide><path>test/sequential/test-debugger-preserve-breaks.js <ide> const path = require('path'); <ide> }) <ide> .then(() => cli.command('breakpoints')) <ide> .then(() => { <del> // TODO: There is a known issue on AIX and some other operating systems <del> // where the breakpoints aren't properly re...
1
Javascript
Javascript
fix typo in reactdominput-test
2521b4770708e5cd2bd9f0b04d1d8aec621d613e
<ide><path>src/dom/components/__tests__/ReactDOMInput-test.js <ide> describe('ReactDOMInput', function() { <ide> it('should support checkedLink', function() { <ide> var container = document.createElement('div'); <ide> var link = new ReactLink(true, mocks.getMockFunction()); <del> var instance = <input type...
1
Go
Go
use uintptr instead of int for fd
31eb01ae8aac22a4d768418d3cc4da6f903a8694
<ide><path>commands.go <ide> func (cli *DockerCli) hijack(method, path string, setRawTerminal bool, in *os.Fi <ide> return err <ide> }) <ide> <del> if in != nil && setRawTerminal && term.IsTerminal(int(in.Fd())) && os.Getenv("NORAW") == "" { <add> if in != nil && setRawTerminal && term.IsTerminal(in.Fd()) && os.Get...
3
Python
Python
prepare 2.2.3 release
5001a338bae23288b3217b36f9ec2af22f64b0f6
<ide><path>keras/__init__.py <ide> from .models import Model <ide> from .models import Sequential <ide> <del>__version__ = '2.2.2' <add>__version__ = '2.2.3' <ide><path>setup.py <ide> ''' <ide> <ide> setup(name='Keras', <del> version='2.2.2', <add> version='2.2.3', <ide> description='Deep Learning for...
2
Javascript
Javascript
simplify the `wrapreason` helper function
28fc8248f0fe6fdc5a69d2063b50f3cd7226ae23
<ide><path>src/shared/message_handler.js <ide> import { <ide> PasswordException, <ide> UnexpectedResponseException, <ide> UnknownErrorException, <del> warn, <add> unreachable, <ide> } from "./util.js"; <ide> <ide> const CallbackKind = { <ide> function wrapReason(reason) { <ide> (typeof reason === "object...
1
Python
Python
standardize normalization dtypes
5e1d640e20a74c00a73e23c00bb8040b86aba581
<ide><path>keras/layers/preprocessing/normalization.py <ide> def build(self, input_shape): <ide> self.adapt_mean = self.add_weight( <ide> name='mean', <ide> shape=mean_and_var_shape, <del> dtype=self.dtype, <add> dtype=self.compute_dtype, <ide> initializer='zeros', ...
2
PHP
PHP
add parameter array to redirect test
68b0dd4de809bc4cead1e872088849658060e6fd
<ide><path>src/Illuminate/Foundation/Testing/TestCase.php <ide> public function assertRedirectedTo($uri, $with = array()) <ide> * Assert whether the client was redirected to a given route. <ide> * <ide> * @param string $name <add> * @param array $parameters <ide> * @param array $with <ide> * @return ...
1
Text
Text
add docs for module.paths
9ab3172e5d058c47725fdd91e2722bfe1461a4fb
<ide><path>doc/api/modules.md <ide> added: v0.1.16 <ide> <ide> The module that first required this one. <ide> <add>### module.paths <add><!-- YAML <add>added: v0.4.0 <add>--> <add> <add>* {string[]} <add> <add>The search paths for the module. <add> <ide> ### module.require(id) <ide> <!-- YAML <ide> added: v0.5.1 <ide...
1
Ruby
Ruby
pass a block to map instead of a proc
98989560476db26165eef947b96e49d508240b97
<ide><path>Library/Homebrew/cmd/uses.rb <ide> def uses <ide> keg.directory? and not keg.subdirs.empty? <ide> end <ide> end <del> puts_columns uses.map(&:to_s).sort <add> puts_columns uses.map{|f| f.to_s}.sort <ide> end <ide> end
1
Python
Python
use timedelta.total_seconds when on python 2.7
c9a07aefa689ac8bad91133fb203eaaff41d4be0
<ide><path>celery/utils/timeutils.py <del>from datetime import datetime <add>from datetime import datetime, timedelta <ide> <ide> from carrot.utils import partition <ide> <ide> "m": lambda n: n / 60.0, <ide> "h": lambda n: n / 60.0 / 60.0} <ide> <add>HAVE_TIMEDELTA_TOTAL_SEC...
1
Javascript
Javascript
improve test coverage
2efffb8ae4b86045100252186cadaf41a1b1d93e
<ide><path>src/core/core.typedRegistry.js <ide> export default class TypedRegistry { <ide> <ide> if (scope && id in defaults[scope]) { <ide> delete defaults[scope][id]; <del> } else if (id in defaults) { <del> delete defaults[id]; <ide> } <ide> } <ide> } <ide><path>src/helpers/helpers.dom.js <ide> function ...
4
Text
Text
use latest versions
9bcad4a9b505188a6c4bbb684a42062f36eb60cc
<ide><path>.github/ISSUE_TEMPLATE/1_Bug_report.md <ide> --- <ide> name: "🐛 Bug Report" <del>about: 'Report a general framework issue. Please first check if your Laravel version is still supported: https://laravel.com/docs/5.8/releases#support-policy' <add>about: 'Report a general framework issue. Please first check if...
2
Go
Go
add warnings about missing blkio cgroup support
d378625554dc5d568d754b635c1d0fb8dae3c4bf
<ide><path>daemon/info_unix.go <ide> func (daemon *Daemon) fillPlatformInfo(v *types.Info, sysInfo *sysinfo.SysInfo) <ide> if v.CgroupVersion == "2" { <ide> v.Warnings = append(v.Warnings, "WARNING: Support for cgroup v2 is experimental") <ide> } <add> // TODO add fields for these options in types.Info <add> i...
1
Javascript
Javascript
improve compatibility of legacy api
4cf931db1736a73717f4e6b9f11c3450de8606c6
<ide><path>lib/http2.js <ide> function Client(port, host) { <ide> port = port || 80; <ide> this.host = host; <ide> this.port = port; <add> this.agent = new Agent({ host: host, port: port, maxSockets: 1 }); <ide> } <ide> util.inherits(Client, EventEmitter); <ide> Client.prototype.request = function(method, path, ...
2
Python
Python
parse all options when detached
ed4f50ed8f404d30be2cbdb709ffbf199ce210ed
<ide><path>celery/bin/worker.py <ide> def run_from_argv(self, prog_name, argv=None, command=None): <ide> # parse options before detaching so errors can be handled. <ide> options, args = self.prepare_args( <ide> *self.parse_options(prog_name, argv, command)) <del> self.maybe_detach([co...
1
Javascript
Javascript
use native isarray, endswith
6e59852456636d16cc58b1afa562f6d91ce0c60a
<ide><path>src/config.js <ide> class Config { <ide> deepClone (object) { <ide> if (object instanceof Color) { <ide> return object.clone() <del> } else if (_.isArray(object)) { <add> } else if (Array.isArray(object)) { <ide> return object.map(value => this.deepClone(value)) <ide> } else if (i...
4
Text
Text
use azure pipelines badge
462439ea1d3140b2b6a6adc5531dc3dd71d4b96c
<ide><path>README.md <ide> Second, read the [Troubleshooting Checklist](https://docs.brew.sh/Troubleshootin <ide> **If you don't read these it will take us far longer to help you with your problem.** <ide> <ide> ## Contributing <del>[![Travis](https://img.shields.io/travis/Homebrew/brew.svg)](https://travis-ci.org/Hom...
1
Javascript
Javascript
add nzaom app
538307d179d98e38e263cadfc3655e536b7bdfab
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> author: 'Melih Mucuk', <ide> }, <ide> { <del> name:'天才段子手', <del> icon:'http://pp.myapp.com/ma_icon/0/icon_12236104_1451810987/96', <add> name: '天才段子手', <add> icon: 'http://pp.myapp.com/ma_icon/0/icon_12236104_1451810987/96', <...
1
Javascript
Javascript
make sure http pipelining does not emit a warning
31fe3b215f175176d6474439f932bb5e7a12b573
<ide><path>test/parallel/test-http-many-ended-pipelines.js <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <ide> 'use strict'; <del>require('../common'); <add>const common = require('../common'); <ide> <ide> // No warnings should happen! <ide> const trace = console.trace; <ide> server.listen(0, function() { <id...
1
Python
Python
fix some errors for distributed lm_finetuning
60a1bdcdacc4ec3d2ca6dad16e61b8ad8022285e
<ide><path>examples/lm_finetuning/simple_lm_finetuning.py <ide> def main(): <ide> <ide> if os.path.exists(args.output_dir) and os.listdir(args.output_dir): <ide> raise ValueError("Output directory ({}) already exists and is not empty.".format(args.output_dir)) <del> if not os.path.exists(args.output_dir...
1
Mixed
Javascript
introduce `socket#connecting` property
cee4c25c9281d106f80b20ba7854bf9003f9357a
<ide><path>doc/api/net.md <ide> The `connectListener` parameter will be added as a listener for the <ide> As [`socket.connect(options\[, connectListener\])`][`socket.connect(options, connectListener)`], <ide> with options either as either `{port: port, host: host}` or `{path: path}`. <ide> <add>### socket.connecting <...
6
Javascript
Javascript
improve async useeffect warning
9d77a317bf5bde7e6edd3c8cd0ebb00feb447223
<ide><path>packages/react-reconciler/src/ReactFiberCommitWork.js <ide> function commitHookEffectList( <ide> } else if (typeof destroy.then === 'function') { <ide> addendum = <ide> '\n\nIt looks like you wrote useEffect(async () => ...) or returned a Promise. ' + <del> ...
2
Python
Python
fix typo in trainer_tf.py
3caba8d35f8713d6dba67e0b1b4145867c302625
<ide><path>src/transformers/trainer_tf.py <ide> def train(self) -> None: <ide> <ide> if ( <ide> self.args.eval_steps > 0 <del> and self.args.evaluate_strategy == EvaluationStrategy.STEPS <add> and self.args.evaluation_strategy ==...
1
Text
Text
add link to contributing.md
1495861a3df9fd1853e2069aec012a80b85d0b9c
<ide><path>README.md <ide> Contributions go far beyond pull requests and commits. Although we love giving y <ide> * [Blogging, speaking about, or creating tutorials](https://github.com/webpack-contrib/awesome-webpack) about one of webpack's many features. <ide> * Helping others in our webpack [gitter channel](https://g...
1
Javascript
Javascript
normalize scroll wheel
98f84c1b26a1d0506859b3aff3bf937ceb69478a
<ide><path>examples/js/controls/EditorControls.js <ide> THREE.EditorControls = function ( object, domElement ) { <ide> this.enabled = true; <ide> this.center = new THREE.Vector3(); <ide> this.panSpeed = 0.001; <del> this.zoomSpeed = 0.001; <add> this.zoomSpeed = 0.1; <ide> this.rotationSpeed = 0.005; <ide> <ide> ...
1
Javascript
Javascript
enforce strict mode for test-domain-crypto
d4eafd0c114b6765983c5524759656f335675835
<ide><path>test/parallel/test-domain-crypto.js <del>/* eslint-disable strict, required-modules */ <add>/* eslint-disable required-modules */ <add>'use strict'; <add> <ide> try { <ide> var crypto = require('crypto'); <ide> } catch (e) {
1
Go
Go
add lock to protext devices map
70826e8b3fee27b971852aad89053507c6866d3e
<ide><path>runtime/graphdriver/devmapper/deviceset.go <ide> type DevInfo struct { <ide> } <ide> <ide> type MetaData struct { <del> Devices map[string]*DevInfo `json:devices` <add> Devices map[string]*DevInfo `json:devices` <add> devicesLock sync.Mutex `json:"-"` // Protects all read/writes to Devices map ...
1
Javascript
Javascript
fix process.ci typo
be85544b89cd88add5e1158812c16f4ca6c39b3a
<ide><path>scripts/tasks/eslint.js <ide> const runESLint = require('../eslint'); <ide> <ide> console.log('Linting all files...'); <del>if (!process.CI) { <add>// https://circleci.com/docs/2.0/env-vars/#circleci-environment-variable-descriptions <add>if (!process.env.CI) { <ide> console.log('Hint: run `yarn linc` to ...
1
PHP
PHP
prepare response from router
f3ef1653f6f82e2af9c2682a7584d932b974fadd
<ide><path>src/Illuminate/Routing/Router.php <ide> public function dispatch(Request $request) <ide> $response = $this->dispatchToRoute($request); <ide> } <ide> <del> $response = $this->prepareResponse($response); <add> $response = $this->prepareResponse($request, $response); <ide> <ide> // Once this route ha...
1
Java
Java
introduce @enabledif support for junit jupiter
634d1c03a3d4b55b44c23c0b240a786331f12659
<ide><path>spring-test/src/main/java/org/springframework/test/context/junit/jupiter/AbstractExpressionEvaluatingCondition.java <add>/* <add> * Copyright 2002-2016 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 c...
9