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
Text
Text
add body text and link
5f494670ebe7c00cc7ce28899d487383bf82b5b6
<ide><path>guide/english/tools/calculators/401k-calculator/index.md <ide> title: 401k Calculator <ide> --- <ide> ## 401k Calculator <ide> <del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/tools/calculators/401k-calculator/index.md' target='_blank' rel='nofollow'>Help our commun...
1
Javascript
Javascript
remove more process.assert
fbb74784b51701278f7bfdf1038922a02fc18632
<ide><path>test/simple/test-module-loading.js <ide> common.debug('load modules by absolute id, then change require.paths, ' + <ide> 'and load another module with the same absolute id.'); <ide> // this will throw if it fails. <ide> var foo = require('../fixtures/require-path/p1/foo'); <del>process.assert(fo...
2
Python
Python
correct mape loss
8bd8ae1daa432bce9881214c4d326ac8a38e2046
<ide><path>keras/objectives.py <ide> def mean_absolute_error(y_true, y_pred): <ide> return T.abs_(y_pred - y_true).mean(axis=-1) <ide> <ide> def mean_absolute_percentage_error(y_true, y_pred): <del> return T.abs_((y_true - y_pred) / y_true).mean(axis=-1) * 100 <add> return T.abs_((y_true - y_pred) / T.clip(T...
1
Javascript
Javascript
add missing scene parameter in renderobject call
c9988a535b65b37830e6b34da6abb4214f11706a
<ide><path>examples/js/renderers/CSS2DRenderer.js <ide> THREE.CSS2DRenderer = function () { <ide> <ide> for ( var i = 0, l = object.children.length; i < l; i ++ ) { <ide> <del> renderObject( object.children[ i ], camera ); <add> renderObject( object.children[ i ], scene, camera ); <ide> <ide> } <ide>
1
Text
Text
remove redundant class in bootstrap description
ce9bd6ddbd29a17303a7e0671910333b564ec4d9
<ide><path>curriculum/challenges/english/03-front-end-development-libraries/bootstrap/call-out-optional-actions-with-btn-info.md <ide> dashedName: call-out-optional-actions-with-btn-info <ide> <ide> Bootstrap comes with several pre-defined colors for buttons. The `btn-info` class is used to call attention to optional ...
1
Java
Java
improve requestpartmethodargumentresolver javadoc
e04ca3d6714e6ff7a81cfc2994f3588c8188dd95
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestPartMethodArgumentResolver.java <ide> * it is derived from the name of the method argument. <ide> * <ide> * <p>Automatic validation may be applied if the argument is annotated with <del> * {@code @javax.validation.Val...
1
Ruby
Ruby
handle new options
d7ee54129310de2b8b4989e6a47607fd1fb7db6c
<ide><path>Library/Homebrew/cmd/reinstall.rb <ide> def reinstall <ide> end <ide> <ide> def reinstall_formula(f) <del> options = f.build.used_options <add> options = BuildOptions.new(Options.create(ARGV.flags_only), f.options).used_options <add> options |= f.build.used_options <ide> <ide> notice = "R...
1
Python
Python
add message when cli train script throws exception
a27c77ce62193fdd777353bbf93b20dc9eda142e
<ide><path>spacy/cli/train.py <ide> def train( <ide> "score = {}".format(best_score, current_score) <ide> ) <ide> break <add> except Exception as e: <add> msg.warn("Aborting and saving the final best model. Encountered exception: {}"....
1
PHP
PHP
use config to resolve database value
1a43d7dbfc98f45841f817b0b6f45f2781275817
<ide><path>src/Illuminate/Foundation/Testing/RefreshDatabase.php <ide> public function refreshDatabase() <ide> */ <ide> protected function usingInMemoryDatabase() <ide> { <del> return config('database.connections')[ <del> config('database.default') <del> ]['database'] === ':memory:...
1
Ruby
Ruby
ask the exception for the formula name
5e7edbbd3c7ee5fa29ee9907a67e6a79998a90a5
<ide><path>Library/Homebrew/extend/ENV/shared.rb <ide> def gcc_version_formula(name) <ide> def warn_about_non_apple_gcc(name) <ide> begin <ide> gcc_formula = gcc_version_formula(name) <del> rescue FormulaUnavailableError <add> rescue FormulaUnavailableError => e <ide> raise <<-EOS.undent <del> ...
1
PHP
PHP
allow $m->to, etc. to take an array of e-mails
b0e513c71ed123c604052884dc97eb60aa5aefc8
<ide><path>src/Illuminate/Mail/Message.php <ide> public function returnPath($address) <ide> /** <ide> * Add a recipient to the message. <ide> * <del> * @param string $address <add> * @param string|array $address <ide> * @param string $name <ide> * @return \Illuminate\Mail\Message <ide> */ <ide> publ...
1
Python
Python
add test file
1e849d6e34638716a985c6a011bbea109ce57171
<ide><path>keras/saving/pickle_utils_test.py <add># Copyright 2021 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># <add...
1
Text
Text
correct the spelling of omitting in dgram.md
b9a772116b457bee59612bcaf489d95c61397a6c
<ide><path>doc/api/dgram.md <ide> On IPv4, if `multicastInterface` is a valid address but does not match any <ide> interface, or if the address does not match the family then <ide> a [`System Error`][] such as `EADDRNOTAVAIL` or `EPROTONOSUP` is thrown. <ide> <del>On IPv6, most errors with specifying or omiting scope ...
1
Python
Python
change subprocess arguments from python>=3.7
69a39461de4da2bfc0e6aeeff02c73c0972a8614
<ide><path>benchmarks/asv_pip_nopep517.py <ide> # pip ignores '--global-option' when pep517 is enabled therefore we disable it. <ide> cmd = [sys.executable, '-mpip', 'wheel', '--no-use-pep517'] <ide> try: <del> output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, universal_newlines=True) <add> output =...
7
Javascript
Javascript
remove unreachable code
99268b1e996d13a0aeda7aa112796484fe4e4238
<ide><path>lib/internal/assert/assertion_error.js <ide> class AssertionError extends Error { <ide> } else { <ide> let res = inspectValue(actual); <ide> let other = inspectValue(expected); <del> const knownOperators = kReadableOperator[operator]; <add> const knownOperator = kReadableO...
1
Javascript
Javascript
improve assert messages
55bb9c41284d49bf4f1ebbb674d4ba9cad7508d5
<ide><path>test/sequential/test-child-process-execsync.js <ide> try { <ide> assert.strictEqual(e.errno, 'ETIMEDOUT'); <ide> err = e; <ide> } finally { <del> assert.strictEqual(ret, undefined, 'we should not have a return value'); <add> assert.strictEqual(ret, undefined, <add> `should not have ...
1
PHP
PHP
use injection here. blah, can't decide
45f0b4f9d9f7919ebba52fb511d48c931df7755c
<ide><path>app/Providers/ErrorServiceProvider.php <ide> <?php namespace App\Providers; <ide> <del>use App, Log, Exception; <add>use Exception; <add>use Illuminate\Contracts\Logging\Log; <ide> use Illuminate\Support\ServiceProvider; <add>use Illuminate\Contracts\Exception\Handler; <ide> <ide> class ErrorServiceProvide...
2
Ruby
Ruby
implement os-agnostic methods
0ce7a74c585eb01df60f1e9d353825d90bd3d969
<ide><path>Library/Homebrew/extend/os/linux/hardware/cpu.rb <ide> module Hardware <ide> class CPU <ide> class << self <del> def universal_archs <del> [].extend ArchitectureListExtension <del> end <del> <ide> def cpuinfo <ide> @cpuinfo ||= File.read("/proc/cpuinfo") <ide> end <...
3
Python
Python
remove processor_factory from dag processing
2fea4cdceaa12b3ac13f24eeb383af624aacb2e7
<ide><path>airflow/dag_processing/manager.py <ide> from datetime import datetime, timedelta <ide> from importlib import import_module <ide> from multiprocessing.connection import Connection as MultiprocessingConnection <del>from typing import TYPE_CHECKING, Any, Callable, Dict, List, NamedTuple, Optional, Union, cast <...
3
Text
Text
fix binary links for 0.8.7 post
226d37bb6883bcf5d409f82a9d6e910d46f175a9
<ide><path>doc/blog/release/v0.8.7.md <ide> Windows x64 Installer: http://nodejs.org/dist/v0.8.7/x64/node-v0.8.7-x64.msi <ide> <ide> Windows x64 Files: http://nodejs.org/dist/v0.8.7/x64/ <ide> <del>Linux 32-bit Binary Package: http://nodejs.org/dist/v0.8.7/node-v0.8.7-linux-i686.tar.gz <add>Linux 32-bit Binary: http:...
1
Javascript
Javascript
use key="foo" for all components
4b81de93d3733ecc5d4dcaab7efad2a5eef1937d
<ide><path>src/core/__tests__/ReactIdentity-test.js <add>/** <add> * @jsx React.DOM <add> * @emails react-core <add> */ <add> <add>"use strict"; <add> <add>var React; <add>var ReactTestUtils; <add>var reactComponentExpect; <add> <add>describe('ReactIdentity', function() { <add> <add> beforeEach(function() { <add> r...
2
Python
Python
add support for commonjs
7b4d0af5fd8cfa6ea613f20e843e81032fac2d48
<ide><path>utils/build/build.py <ide> def main(argv=None): <ide> sources = [] <ide> <ide> if args.amd: <del> tmp.write('( function ( root, factory ) {\n\n\tif ( typeof define === \'function\' && define.amd ) {\n\n\t\tdefine( factory );\n\n\t} else {\n\n\t\troot.THREE = factory();\n\n\t}\n\n}( this, function () {\n\...
1
Ruby
Ruby
remove default tag value from bottle_filename
a3dad588a855238b3576b59e90fd062b19cf55e0
<ide><path>Library/Homebrew/bottles.rb <ide> require 'bottle_version' <ide> <ide> def bottle_filename options={} <del> options = { :tag => bottle_tag }.merge(options) <ide> suffix = ".#{options[:tag]}#{bottle_suffix(options[:revision])}" <ide> "#{options[:name]}-#{options[:version]}#{suffix}" <ide> end
1
Python
Python
update no_trainer script for summarization
c28d04e9e252a1a099944e325685f14d242ecdcd
<ide><path>examples/pytorch/summarization/run_summarization_no_trainer.py <ide> def postprocess_text(preds, labels): <ide> "max_length": args.val_max_target_length if args is not None else config.max_length, <ide> "num_beams": args.num_beams, <ide> } <del> samples_seen = 0 <ide> ...
1
Python
Python
revert some import * fixes in f2py
83d5f9a331543fa0748708972a5e6b7c5dcbcb03
<ide><path>numpy/f2py/capi_maps.py <ide> import re <ide> import os <ide> import sys <del>from .auxfuncs import ( <del> debugcapi, dictappend, errmess, gentitle, getcallprotoargument, <del> getcallstatement, getfortranname, getpymethoddef, getrestdoc, <del> getusercode, getusercode1, hasinitvalue, hasnote, hasr...
3
Text
Text
add v4.4.4 to changelog
6a17b8417e7e00e15b2b6f0441703f3c74f3fd0c
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v4.4.4 (November 2, 2022) <add> <add>- [CVE pending](https://emberjs.com/blog/ember-4-8-1-released) Fix a prototype pollution vulnerability in `set` and `setProperties <add> <ide> ## v3.28.10 (November 2, 2022) <ide> <ide> - [CVE pending](https://emberjs....
1
Javascript
Javascript
add performance.now() and fix view stuff
50de50ea046009dc10c1c3e574581db77add3d1a
<ide><path>packages/ember-metal/lib/instrumentation.js <ide> var populateListeners = function(name) { <ide> return listeners; <ide> }; <ide> <add>var time = (function() { <add> var perf = window.performance || {}; <add> var fn = perf.now || perf.mozNow || perf.webkitNow || perf.msNow || perf.oNow; <add> // fn.bind w...
2
Javascript
Javascript
use object destructuring
a69a29da102488a636c5862e5f805658ba32c90d
<ide><path>lib/net.js <ide> const kLastWriteQueueSize = Symbol('lastWriteQueueSize'); <ide> let cluster; <ide> let dns; <ide> <del>const errnoException = errors.errnoException; <del>const exceptionWithHostPort = errors.exceptionWithHostPort; <add>const { errnoException, exceptionWithHostPort } = errors; <ide> <ide> c...
1
Javascript
Javascript
make uimanager prepackable
be32cbef007dada23bf830b3b12df8beefbbdac6
<ide><path>Libraries/ReactNative/UIManager.js <ide> if (Platform.OS === 'ios') { <ide> } <ide> }); <ide> } else if (UIManager.ViewManagerNames) { <del> UIManager.ViewManagerNames.forEach(viewManagerName => { <del> defineLazyObjectProperty(UIManager, viewManagerName, { <del> get: () => UIManager.getConsta...
1
Go
Go
add cgo or osusergo buildtag constraints for unix"
80e338a18db0acce00653a176d82a567eafb0c79
<ide><path>pkg/homedir/homedir_unix.go <del>// +build !windows,cgo !windows,osusergo <add>// +build !windows <ide> <ide> package homedir // import "github.com/docker/docker/pkg/homedir" <ide>
1
Ruby
Ruby
ignore case when checking path for config scripts
b20c35cf0e16be41b59c92666c7a529f09238f1f
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_for_config_scripts <ide> <ide> config_scripts = [] <ide> <add> whitelist = %W[/usr/bin /usr/sbin /usr/X11/bin /usr/X11R6/bin /opt/X11/bin #{HOMEBREW_PREFIX}/bin #{HOMEBREW_PREFIX}/sbin] <add> whitelist.map! { |d| d.downcase } <add> <ide> path_folders.eac...
1
Javascript
Javascript
fix color space conversion for cubetexturenode
45f1286ef9c9d5cb670eecaae85c15daaf031da6
<ide><path>examples/jsm/nodes/inputs/CubeTextureNode.js <ide> CubeTextureNode.prototype.generate = function ( builder, output ) { <ide> builder.addContext( context ); <ide> <ide> this.colorSpace = this.colorSpace || new ColorSpaceNode( new ExpressionNode( '', outputType ) ); <del> this.colorSpace.fromEncoding( build...
1
Python
Python
add the absl flag
a3c53fc0988d61c6cb9f6663fd6a326e884dca13
<ide><path>keras/engine/training_arrays_v1.py <ide> from keras.engine import training_utils_v1 <ide> from keras.utils.generic_utils import make_batches <ide> from keras.utils.generic_utils import slice_arrays <add>from keras.utils import io_utils <ide> from keras.utils.mode_keys import ModeKeys <ide> from tensorflow.py...
3
Javascript
Javascript
add todomvc features
83b8ad7a312b425f75ba2cc2a5773d6dc2a053f8
<ide><path>examples/todomvc/js/app.js <ide> var TodoItem = React.createClass({ <ide> this.props.onEdit(); <ide> this.refs.editField.getDOMNode().focus(); <ide> }), <add> handleKey: React.autoBind(function(event) { <add> if (event.nativeEvent.keyCode === 27) { <add> this.handleSubmit(); <add> } <ad...
1
Python
Python
fix openstack tests
16fccdfca7e9e99a85f9edcf3bbba7438f433fe3
<ide><path>libcloud/test/compute/test_openstack.py <ide> from libcloud.compute.base import Node, NodeImage, NodeSize <ide> from libcloud.pricing import set_pricing, clear_pricing_data <ide> <del>from libcloud.test import MockResponse, MockHttpTestCase, XML_HEADERS <add>from libcloud.common.base import Response as Mock...
1
Mixed
Javascript
set trackunmanagedfds to true by default
7603c7e50c3ae453db9702916f740618029020ba
<ide><path>doc/api/worker_threads.md <ide> if (isMainThread) { <ide> <!-- YAML <ide> added: v10.5.0 <ide> changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/34394 <add> description: The `trackUnmanagedFds` option was set to `true` by default. <ide> - version: <ide> - v14....
3
Javascript
Javascript
remove redundant callback check
e34d41e42e5163cfb933b6c01dd31c182b60476b
<ide><path>lib/fs.js <ide> realpathSync.native = (path, options) => { <ide> <ide> <ide> function realpath(p, options, callback) { <del> callback = maybeCallback(typeof options === 'function' ? options : callback); <add> callback = typeof options === 'function' ? options : maybeCallback(callback); <ide> if (!optio...
1
Ruby
Ruby
use unversioned sdk path on big sur
3f0ed01a2aeceb9fbe8ff410a170d7f30b7936e4
<ide><path>Library/Homebrew/os/mac/sdk.rb <ide> def sdk_paths <ide> paths[OS::Mac::Version.new(version)] = sdk_path if version.present? <ide> end <ide> <add> # Use unversioned SDK path on Big Sur to avoid issues such as: <add> # https://github.com/Homebrew/homebrew-core/...
1
Text
Text
move changelog entry of 47018a82 up [ci skip]
7867603fbbf5dc3327be3c3ff7c245614e21c04a
<ide><path>activesupport/CHANGELOG.md <add>* Support not to cache `nil` for `ActiveSupport::Cache#fetch`. <add> <add> cache.fetch('bar', skip_nil: true) { nil } <add> cache.exist?('bar') # => false <add> <add> *Martin Hong* <add> <ide> * Add "event object" support to the notification system. <ide> ...
1
Javascript
Javascript
pass the container and namespace into initializers
da2b2a0f2aa7586254985827555bf7722114be54
<ide><path>packages/ember-application/lib/system/application.js <ide> var Application = Ember.Application = Ember.Namespace.extend( <ide> runInitializers: function() { <ide> var router = this.container.lookup('router:main'), <ide> initializers = get(this.constructor, 'initializers'), <add> containe...
1
PHP
PHP
fix doc errors in component/acl
07b43403fb7d89b62b3916ca602602f83b345356
<ide><path>lib/Cake/Controller/Component/Acl/PhpAcl.php <ide> class PhpAro { <ide> /** <ide> * Constructor <ide> * <del> * @param array $aro <del> * @param array $map <del> * @param array $aliases <add> * @param array $aro The aro data <add> * @param array $map The identifier mappings <add> * @param array $aliases Th...
1
Javascript
Javascript
edit _storeheader to check for trailer header
80c9ef0b6be57d42632526818a3b0c3f20f225a1
<ide><path>lib/_http_outgoing.js <ide> const checkInvalidHeaderChar = common._checkInvalidHeaderChar; <ide> const outHeadersKey = require('internal/http').outHeadersKey; <ide> const async_id_symbol = process.binding('async_wrap').async_id_symbol; <ide> const nextTick = require('internal/process/next_tick').nextTick; <a...
3
Mixed
Python
attentionocr partial tf2 migration
50fa3eb914f5ba8c4cda106544f126e40f3306be
<ide><path>research/attention_ocr/README.md <del>## Attention-based Extraction of Structured Information from Street View Imagery <add># Attention-based Extraction of Structured Information from Street View Imagery <ide> <ide> [![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/attention-b...
20
Ruby
Ruby
make new mime types first class [dhh]
5e998d1ea07f227f436c64b2ee748ec18d6f5456
<ide><path>actionpack/lib/action_controller/mime_responds.rb <ide> module InstanceMethods <ide> # and accept Rails' defaults, life will be much easier. <ide> def respond_to(*types, &block) <ide> raise ArgumentError, "respond_to takes either types or a block, never bot" unless types.any? ^ block <del...
3
Python
Python
add unicode declaration on new regression test
1dca7eeb036423d1d5889e5ec084f9f91f90eb74
<ide><path>spacy/tests/regression/test_issue957.py <add>from __future__ import unicode_literals <add> <ide> import pytest <ide> from ... import load as load_spacy <ide> <ide> <del>def test_issue913(en_tokenizer): <add>def test_issue957(en_tokenizer): <ide> '''Test that spaCy doesn't hang on many periods.''' <ide>...
1
Mixed
Go
fix typos and formatting in docs. add godoc badge
8fe2d88db1838ad49f8d5149d02bad4bb65d7688
<ide><path>libnetwork/README.md <ide> # libnetwork - networking for containers <ide> <del>[![Circle CI](https://circleci.com/gh/docker/libnetwork/tree/master.svg?style=svg)](https://circleci.com/gh/docker/libnetwork/tree/master) [![Coverage Status](https://coveralls.io/repos/docker/libnetwork/badge.svg)](https://cover...
2
Text
Text
add information about pattern matching
57762df6f7b1e1e25fb7e89d45b63f0f46ac852a
<ide><path>guide/english/csharp/switch-case/index.md <ide> switch (dog) <ide> ``` <ide> As you see in the above example after `when` keyword you should specify logical condition (an instruction that returns bool value). <ide> <add>## Pattern matching using switch case <add> <add>We can use switch to not only match cer...
1
Go
Go
use container.lock in public todisk method
eae5cf1e20e8d93cc13ea8e1db3cd787250fa76d
<ide><path>daemon/container.go <ide> func (container *Container) FromDisk() error { <ide> return container.readHostConfig() <ide> } <ide> <del>func (container *Container) ToDisk() error { <add>func (container *Container) toDisk() error { <ide> data, err := json.Marshal(container) <ide> if err != nil { <ide> retur...
1
Javascript
Javascript
fix tests for git version of jquery
eac3ae1fa2016ade07243afe5971cfdf48577900
<ide><path>packages/ember-handlebars/tests/views/collection_view_test.js <ide> test("a block passed to a collection helper defaults to the content property of <ide> view.appendTo('#qunit-fixture'); <ide> }); <ide> <del> equal(view.$('li:has(label:contains("foo")) + li:has(label:contains("bar")) + li:has(label:c...
2
Javascript
Javascript
remove unused code from autoescapestr
ed084a035c1f657284f3eee7f7a583a42e8b35f1
<ide><path>lib/url.js <ide> Url.prototype.parse = function parse(url, parseQueryString, slashesDenoteHost) { <ide> // First, make 100% sure that any "autoEscape" chars get <ide> // escaped, even if encodeURIComponent doesn't think they <ide> // need to be. <del> const result = autoEscapeStr(rest); <del> ...
1
Python
Python
add support for .zip to init_model
7ee880a0ade4c690afe74eaf09e40818ccc2a470
<ide><path>spacy/cli/init_model.py <ide> from preshed.counter import PreshCounter <ide> import tarfile <ide> import gzip <add>import zipfile <ide> <del>from ._messages import Messages <add>from ..compat import fix_text <ide> from ..vectors import Vectors <del>from ..errors import Warnings, user_warning <ide> from ..ut...
1
PHP
PHP
remove invalid options from attachto
aa61eb02891519aac59459699edae673eeb9b056
<ide><path>src/ORM/Association.php <ide> protected function _options(array $options): void <ide> * - conditions: array with a list of conditions to filter the join with, this <ide> * will be merged with any conditions originally configured for this association <ide> * - fields: a list of fields in the ...
1
PHP
PHP
add dd() to collection
f5fafad80dbb08353824483f5b849031693cc477
<ide><path>src/Illuminate/Support/Collection.php <ide> public function crossJoin(...$lists) <ide> )); <ide> } <ide> <add> /** <add> * Dump the collection and end the script. <add> * <add> * @return void <add> */ <add> public function dd() <add> { <add> dd($this->all()); <add...
1
Javascript
Javascript
add missing requires and statements
a9fbc0e3ed613109f99ad7a1d2d9a98031ec6141
<ide><path>script/lib/create-windows-installer.js <ide> 'use strict' <ide> <del>const downloadCertificate = require('./download-github-raw-file') <add>const downloadGithubRawFile = require('./download-github-raw-file') <ide> const electronInstaller = require('electron-winstaller') <ide> const fs = require('fs-extra') ...
1
Javascript
Javascript
beautify webpack configs
32ebbfd7c7fddab4e2a329aa5f1b8ef7f13b32fe
<ide><path>examples/coffee-script/webpack.config.js <ide> module.exports = { <ide> // mode: "development || "production", <ide> module: { <del> rules: [ <del> { test: /\.coffee$/, loader: "coffee-loader" } <del> ] <add> rules: [{ <add> test: /\.coffee$/, <add> loader: "coffee-loader" <add> }] <ide> }, <ide...
43
PHP
PHP
update return values
15f414604c8992c5c8eddfd5d4a2115bd37f3ec9
<ide><path>src/Illuminate/Cache/ApcStore.php <ide> public function get($key) <ide> * @param string $key <ide> * @param mixed $value <ide> * @param int $minutes <del> * @return array|bool <add> * @return void <ide> */ <ide> public function put($key, $value, $minutes) <ide> { <ide> public function p...
7
Javascript
Javascript
remove disableyielding feature flag
e91dd70ba28e7a20da3e5de8d787f3cde56341bd
<ide><path>packages/react-dom/src/__tests__/ReactDOMFiberAsync-test.internal.js <ide> 'use strict'; <ide> <ide> const React = require('react'); <del>const Fragment = React.Fragment; <ide> let ReactFeatureFlags = require('shared/ReactFeatureFlags'); <ide> <ide> let ReactDOM; <ide> describe('ReactDOMFiberAsync', () => ...
10
Go
Go
restore stack deploy integration test with dab
bd8de8d8be9e367af9e045d0fdead4462fed490c
<ide><path>cli/command/stack/deploy.go <ide> func newDeployCommand(dockerCli *command.DockerCli) *cobra.Command { <ide> } <ide> <ide> func runDeploy(dockerCli *command.DockerCli, opts deployOptions) error { <del> if opts.bundlefile == "" && opts.composefile == "" { <add> switch { <add> case opts.bundlefile == "" && op...
3
Python
Python
add unittest directory discovery
cb2a07e16dc5a01e9bd72d30f244d553df527d9e
<ide><path>celery/tests/__init__.py <add>from djangox.test.depth import alltests <add> <add>def suite(): <add> return alltests(__file__, __name__) <ide><path>setup.py <ide> scripts=["celery/bin/celeryd"], <ide> zip_safe=False, <ide> install_requires=[ <add> 'django-unittest-depth', <ide> '...
2
Javascript
Javascript
add more tests for suppresshydrationwarning
5f7f5280836a44d4b81c1cb13f51e7482470cf1b
<ide><path>packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js <ide> describe('ReactDOMFizzServer', () => { <ide> </ul>, <ide> ); <ide> }); <del> <del> // @gate experimental <del> it('suppresses and fixes text mismatches with suppressHydrationWarning', async () => { <del> function App({isClient...
2
Java
Java
fix wrong modal size in fullscreen
8ba06cbfb1c60980437e38c358a971ff105af245
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/modal/ModalHostHelper.java <ide> <ide> import android.annotation.TargetApi; <ide> import android.content.Context; <add>import android.content.res.Resources; <add>import android.content.res.TypedArray; <ide> import android.graphics.Point; <ide> import andro...
1
Ruby
Ruby
use array.wrap to quiet 1.8.8 deprecation
2538ef0d09954340701354e8fcf57e76c4210416
<ide><path>activerecord/lib/active_record/fixtures.rb <ide> require 'csv' <ide> require 'zlib' <ide> require 'active_support/dependencies' <del>require 'active_support/core_ext/logger' <add>require 'active_support/core_ext/array/wrap' <ide> require 'active_support/core_ext/object/blank' <add>require 'active_support/cor...
1
Javascript
Javascript
remove unneeded asynchrony from routing tests
b23292fff540ca74967139c81530b6f18fc7030b
<ide><path>packages/ember/tests/routing/basic_test.js <ide> test("The Specials Page defaults to looking models up via `find`", function() { <ide> }); <ide> <ide> test("The Special Page returning a promise puts the app into a loading state until the promise is resolved", function() { <del> stop(); <del> <ide> Router...
1
Javascript
Javascript
remove test-path-parse-6229.js from known issues
f9da55cca2eda56ad2e35f654272c257d378d907
<ide><path>test/known_issues/test-path-parse-6229.js <del>'use strict'; <del>// Refs: https://github.com/nodejs/node/issues/6229 <del> <del>require('../common'); <del>const assert = require('assert'); <del>const path = require('path'); <del> <del>{ <del> // The path `/foo/bar` is not the same path as `/foo/bar/` <del>...
1
Go
Go
fix error msg
2ca6896aeef24ee6d86072d4e9e72b819f718d0a
<ide><path>integration/container/rename_test.go <ide> func TestRenameAnonymousContainer(t *testing.T) { <ide> <ide> inspect, err := client.ContainerInspect(ctx, cID) <ide> assert.NilError(t, err) <del> assert.Check(t, is.Equal(0, inspect.State.ExitCode), "container %s exited with the wrong exitcode: %+v", cID, inspe...
1
Go
Go
fix the typo
c33cdf9ee3ece0358f828c7ac8f6367c3414e67a
<ide><path>daemon/graphdriver/btrfs/btrfs.go <ide> func (d *Driver) Create(id, parent, mountLabel string) error { <ide> return err <ide> } <ide> if !st.IsDir() { <del> return fmt.Errorf("%s: not a direcotory", parentDir) <add> return fmt.Errorf("%s: not a directory", parentDir) <ide> } <ide> if err := su...
1
Javascript
Javascript
remove addmandatoryattributes. close gh-1037
bb570fc37341520c27a76190e0c11271596890ec
<ide><path>src/manipulation.js <ide> var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figca <ide> wrapMap = { <ide> option: [ 1, "<select multiple='multiple'>", "</select>" ], <ide> legend: [ 1, "<fieldset>", "</fieldset>" ], <add> area: [ 1, "<map>", "</map>" ], <add> param: [ 1, "<obj...
2
PHP
PHP
apply fixes from styleci
0e16770a54e63541dcd9686f4f7fa23edc1b4d95
<ide><path>tests/Database/DatabaseEloquentBuilderTest.php <ide> public function testWithCountAndGlobalScope() <ide> $builder = $model->select('id')->withCount(['foo']); <ide> <ide> // Remove the global scope so it doesn't interfere with any other tests <del> EloquentBuilderTestModelCloseRelatedS...
1
Go
Go
use tls for tests if needed
0bdba0e91a072ee2cdecb4e632c13f187eb88e9c
<ide><path>integration-cli/docker_api_containers_test.go <ide> func (s *DockerSuite) TestContainerAPICreateNoHostConfig118(c *check.C) { <ide> Image: "busybox", <ide> } <ide> <del> var httpClient *http.Client <del> cli, err := client.NewClient(daemonHost(), "v1.18", httpClient, map[string]string{}) <add> cli, err :...
8
Javascript
Javascript
move escape codes into internal/readline
4c070d489718b196d7950998ccfb54bcc50d9711
<ide><path>lib/internal/readline.js <ide> const ansi = <ide> /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g; <ide> <add>const kEscape = '\x1b'; <add> <ide> var getStringWidth; <ide> var isFullWidthCodePoint; <ide> <add>function CSI(strings, ...args) { <add> let ret = `${kEscape}[`; <...
2
Javascript
Javascript
move empty callbacks to prototype
667bd407af6b7b1142137f8098b9e99eb8e35964
<ide><path>src/core/InterleavedBuffer.js <ide> function InterleavedBuffer( array, stride ) { <ide> this.dynamic = false; <ide> this.updateRange = { offset: 0, count: - 1 }; <ide> <del> this.onUploadCallback = function () {}; <del> <ide> this.version = 0; <ide> <ide> } <ide> Object.assign( InterleavedBuffer.prototy...
2
Ruby
Ruby
add failing test that triggers the stack overflow
1080351437dc43c3ecaa0d494f5ca215f03b1883
<ide><path>activerecord/test/cases/autosave_association_test.rb <ide> require 'models/company' <ide> require 'models/customer' <ide> require 'models/developer' <add>require 'models/invoice' <add>require 'models/line_item' <ide> require 'models/order' <ide> require 'models/parrot' <ide> require 'models/person' <ide> def...
4
Text
Text
update image to match current icon
c651cdc356913e53b3b6c875ab0a496b6ddda8ee
<ide><path>README.md <ide> # Atom — Futuristic Text Editing <ide> <del>![atom](https://f.cloud.github.com/assets/1300064/208230/4cefbca4-821a-11e2-8139-92c0328abf68.png) <add>![atom](https://s3.amazonaws.com/speakeasy/apps/icons/27/medium/7db16e44-ba57-11e2-8c6f-981faf658e00.png) <ide> <ide> Check out our [documentat...
1
Python
Python
fix a bug in open_latin1
b022b9c5d2e49d1d2ab07be0fe4549342ab88c1e
<ide><path>numpy/compat/py3k.py <ide> def asstr(s): <ide> def isfileobj(f): <ide> return isinstance(f, io.FileIO) <ide> def open_latin1(filename, mode='r'): <del> return open(f, mode=mode, encoding='iso-8859-1') <add> return open(filename, mode=mode, encoding='iso-8859-1') <ide> strcha...
1
Ruby
Ruby
remove unnecessary namespaces in `explain_test.rb`
1f6da4fda6d7c59ca6b27fa8930f806628a2f548
<ide><path>activerecord/test/cases/adapters/mysql2/explain_test.rb <ide> require 'models/developer' <ide> require 'models/computer' <ide> <del>module ActiveRecord <del> module ConnectionAdapters <del> class Mysql2Adapter <del> class ExplainTest < ActiveRecord::Mysql2TestCase <del> fixtures :developers ...
3
Ruby
Ruby
return nil if not found
f471c3e99fef4bb59c0bbafbfc496eca2850caa2
<ide><path>Library/Homebrew/global.rb <ide> module Homebrew extend self <ide> # Xcode-only installs place tools in non-standard locations, and we also want <ide> # to ensure the dev tools are in the PATH in build.rb <ide> unless ORIGINAL_PATHS.include? MacOS.dev_tools_path <del> ENV['PATH'] = ENV['PATH'].to_s + ':' + ...
2
Python
Python
fix race conditions in task callback invocations
f1d4f54b3479cd7549ce79efadd25cc6859dd420
<ide><path>airflow/cli/cli_parser.py <ide> def positive_int(value): <ide> ("--ship-dag",), help="Pickles (serializes) the DAG and ships it to the worker", action="store_true" <ide> ) <ide> ARG_PICKLE = Arg(("-p", "--pickle"), help="Serialized pickle object of the entire dag (used internally)") <add>ARG_ERROR_FILE =...
16
PHP
PHP
fix loading of old interface
1d0f6c536d7eb243a40ab9663a2d8d101ce9b8d8
<ide><path>src/Datasource/Paging/PaginatorInterface.php <ide> public function paginate(object $object, array $params = [], array $settings = [ <ide> */ <ide> public function getPagingParams(): array; <ide> } <add> <add>// phpcs:disable <add>// The old interface Cake\Datasource\PaginatorInterface will not get l...
1
Go
Go
ci only unpause on hyper-v containers
64615c9aa8e21bf9cd39e6ad4496c9e9c1bce55f
<ide><path>integration-cli/environment/clean.go <ide> type logT interface { <ide> // and removing everything else. It's meant to run after any tests so that they don't <ide> // depend on each others. <ide> func (e *Execution) Clean(t testingT, dockerBinary string) { <del> unpauseAllContainers(t, dockerBinary) <add> if ...
1
Javascript
Javascript
dismiss all logs on fast refresh
bdd1a675ba6949868d11ef0c3dccaa8f336ca384
<ide><path>Libraries/LogBox/Data/LogBoxData.js <ide> export function symbolicateLogLazy(log: LogBoxLog) { <ide> } <ide> <ide> export function clear(): void { <del> const newLogs = Array.from(logs).filter(log => log.level === 'syntax'); <del> if (newLogs.length !== logs.size) { <del> logs = new Set(newLogs); <add>...
3
Javascript
Javascript
enable platforms to configure cli commands
a40bfa730e05c68da49e6f217ae0f161dcc7ba98
<ide><path>local-cli/core/__tests__/findPlugins.spec.js <ide> describe('findPlugins', () => { <ide> jest.mock(pjsonPath, () => ({ <ide> dependencies: {'rnpm-plugin-test': '*'}, <ide> })); <del> expect(findPlugins([ROOT])).toHaveLength(1); <del> expect(findPlugins([ROOT])[0]).toBe('rnpm-plugin-test')...
22
Javascript
Javascript
fix bad link typo in view document
e8c8a06329070eef297fcc0d3aaf493e9d330f94
<ide><path>Libraries/Components/View/View.js <ide> const View = React.createClass({ <ide> * - `'no-hide-descendants'` - The view is not important for accessibility, <ide> * nor are any of its descendant views. <ide> * <del> * See the [Android `importantForAccessibility` docs]( [http://developer.a...
1
Python
Python
improve coverage for airflow.cli package
14b3e66ad5e2325eb2ee7b9c6661ff7b636d017d
<ide><path>tests/cli/commands/test_celery_command.py <ide> def test_worker_failure_gracefull_shutdown(self, mock_celery_app, mock_popen): <ide> celery_command.worker(args) <ide> finally: <ide> mock_popen().terminate.assert_called() <add> <add> <add>@pytest.mark.backend("mysql", "postgres...
4
Javascript
Javascript
add emoji poetry to showcase.js
d72f151bfc9e35f77d1fac707be4e9adc8d71555
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> linkPlayStore: 'https://play.google.com/store/apps/details?id=com.eon', <ide> author: 'Sharath Prabhal', <ide> }, <add> { <add> name: 'Emoji Poetry', <add> icon: 'http://a5.mzstatic.com/us/r30/Purple49/v4/31/b5/09/31b509b2-aaec-76...
1
Java
Java
add missing @nullable annotation
90df7dd279a3c09ae0a022386319df2aacbb52d6
<ide><path>spring-core/src/main/java/org/springframework/core/ReactiveAdapterRegistry.java <ide> public void registerReactiveType(ReactiveTypeDescriptor descriptor, <ide> /** <ide> * Get the adapter for the given reactive type. <ide> */ <del> public ReactiveAdapter getAdapter(Class<?> reactiveType) { <add> public ...
1
Mixed
Javascript
add ontoggle event to details tag
ad133f5b3dbf01331f819f3000ab52097bf7d598
<ide><path>docs/docs/reference-events.md <ide> The event handlers below are triggered by an event in the bubbling phase. To reg <ide> - [Image Events](#image-events) <ide> - [Animation Events](#animation-events) <ide> - [Transition Events](#transition-events) <add>- [Other Events](#other-events) <ide> <ide> * * * <ide...
6
Python
Python
improve clarify of comment
5f50628fb0938e47b37722651e6dce1db8a8d856
<ide><path>keras/engine/training.py <ide> def __reduce__(self): <ide> return (deserialize_model_from_bytecode, serialize_model_as_bytecode(self)) <ide> else: <ide> # SavedModel (and hence serialize_model_as_bytecode) only support built models, <del> # but if the model is not built, it can be serial...
1
Python
Python
add camembert classes to __init__.py
694d4fcbb61f15b66781219954112791248d832e
<ide><path>transformers/__init__.py <ide> from .tokenization_xlm import XLMTokenizer <ide> from .tokenization_roberta import RobertaTokenizer <ide> from .tokenization_distilbert import DistilBertTokenizer <add>from .tokenization_camembert import CamembertTokenizer <ide> <ide> # Configurations <ide> from .configuration...
1
Go
Go
fix some nits in newrouter()
758714ed6dab4d865bde55b3f670478605892099
<ide><path>api/server/router/grpc/grpc.go <ide> type grpcRouter struct { <ide> <ide> // NewRouter initializes a new grpc http router <ide> func NewRouter(backends ...Backend) router.Router { <del> opts := []grpc.ServerOption{grpc.UnaryInterceptor(grpcerrors.UnaryServerInterceptor), grpc.StreamInterceptor(grpcerrors.St...
1
Ruby
Ruby
add rdoc to phone_field
b5cc89ae017c540e1921a14b560f845ff31b3a8f
<ide><path>actionpack/lib/action_view/helpers/form_helper.rb <ide> def search_field(object_name, method, options = {}) <ide> def telephone_field(object_name, method, options = {}) <ide> Tags::TelField.new(object_name, method, self, options).render <ide> end <add> # alias of telephone_field <ide...
1
Text
Text
add license to xlm-roberta-large-xnli card
a1ac08287940ba1bad9645682947c6299f70278a
<ide><path>model_cards/joeddav/xlm-roberta-large-xnli/README.md <ide> datasets: <ide> - xnli <ide> widget: <ide> - text: "За кого вы голосуете в 2020 году? <sep> This text is about politique." <add>license: mit <ide> --- <ide> <ide> # xlm-roberta-large-xnli
1
PHP
PHP
fix double base dir in image() with fullbase
e61f636bc7e6d9bcc53ed2dba7f4041bfd7a42dc
<ide><path>lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php <ide> public function testImageTag() { <ide> <ide> $result = $this->Html->image('test.gif?one=two&three=four'); <ide> $this->assertTags($result, array('img' => array('src' => 'img/test.gif?one=two&amp;three=four', 'alt' => ''))); <add> } <ide> <add>/** ...
2
Python
Python
update the tag_map
adfd98731655cc3f351e0042353ea850ef7d23c2
<ide><path>spacy/ja/__init__.py <ide> def __call__(self, tokens): <ide> # 1. get raw JP tags <ide> # 2. add features to tags as necessary for UD <ide> <del> # TODO: if the text has been tokenized, this info is already available <del> # How to set the data when tokenizing or save it for th...
2
Python
Python
remove debug message
5f4b92b88cc5faa3962978a79ea1e7e8725d8b21
<ide><path>glances/server.py <ide> def serve_forever(self): <ide> """Main loop""" <ide> while not self.finished: <ide> self.handle_request() <del> logger.info(self.finished) <ide> <ide> <ide> class GlancesInstance(object):
1
Python
Python
update backends with rnn support
47ed18a3af8be20dce91286a331d4671074ee0ca
<ide><path>keras/backend/tensorflow_backend.py <ide> def gradients(loss, variables): <ide> <ide> # CONTROL FLOW <ide> <del>def rnn(step_function, inputs, initial_states, go_backwards=False): <del> '''TODO <add>def rnn(step_function, inputs, initial_states, <add> go_backwards=False, masking=True): <add> '...
6
Java
Java
fix javadoc link in defaultcorsprocessor
df291a39b1f857846f870772772809d0a63c4d26
<ide><path>spring-web/src/main/java/org/springframework/web/cors/DefaultCorsProcessor.java <ide> protected String checkOrigin(CorsConfiguration config, @Nullable String requestO <ide> /** <ide> * Check the HTTP method and determine the methods for the response of a <ide> * pre-flight request. The default implement...
2
Python
Python
remove the double connect hack
649c70e7029118d82128f2f6e35a22ca8f85be74
<ide><path>libcloud/common/base.py <ide> def request(self, action, params=None, data=None, headers=None, <ide> else: <ide> url = action <ide> <del> # Removed terrible hack...this a less-bad hack that doesn't execute a <del> # request twice, but it's still a hack. <del> self.con...
1
Javascript
Javascript
expose schema validator as `webpack.validateschema
2bbd3652bf6c9c73209ec070f906a82f05240afb
<ide><path>lib/webpack.js <ide> webpack.WebpackOptionsApply = WebpackOptionsApply; <ide> webpack.Compiler = Compiler; <ide> webpack.MultiCompiler = MultiCompiler; <ide> webpack.NodeEnvironmentPlugin = NodeEnvironmentPlugin; <del>webpack.validate = validateWebpackOptions; <add>webpack.validate = validateWebpackOptions.b...
1
Text
Text
add strtolower function
d6f8ddfdb3523b095ce63c11bec3d29e459ee094
<ide><path>guide/english/php/functions/index.md <ide> function makeItBIG($a_lot_of_names) { <ide> $a_lot_of_names = ['Homer', 'Marge', 'Bart', 'Maggy', 'Lisa']; <ide> var_dump(makeItBIG($a_lot_of_names)); <ide> ``` <add>## strtolower Function <add>The strtolower() function converts a string to lowercase. <add>``` <add>...
1
Ruby
Ruby
reorganize some checks
ab19242d0484a91ca2b9dac28c8a131be08758d6
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_formula_urls f <ide> problems << " * The homepage should start with http or https." <ide> end <ide> <add> # Google Code homepages should end in a slash <add> if f.homepage =~ %r[^https?://code\.google\.com/p/[^/]+[^/]$] <add> problems << " * Google Co...
1