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
fix a crash in suspense with finddomnode
41aa345d2bde261c2fb4a4ef89e379640c88be67
<ide><path>packages/react-dom/src/__tests__/ReactDOMSuspensePlaceholder-test.js <ide> describe('ReactDOMSuspensePlaceholder', () => { <ide> await Lazy; <ide> expect(log).toEqual(['cDU first', 'cDU second']); <ide> }); <add> <add> // Regression test for https://github.com/facebook/react/issues/14188 <add> it...
2
PHP
PHP
store the generated key in the .env file only
41e2080cb2811e9063672248311a66f65e6d899e
<ide><path>src/Illuminate/Foundation/Console/KeyGenerateCommand.php <ide> public function fire() <ide> return $this->line('<comment>'.$key.'</comment>'); <ide> } <ide> <del> foreach ([base_path('.env'), base_path('.env.example')] as $path) <add> $path = base_path('.env'); <add> <add> if (file_exists($path)) <i...
1
Ruby
Ruby
introduce minimalistic package for activesupport
133925804f24d716a3836698dbe5a7d8b30de0b5
<ide><path>activesupport/lib/active_support/core_ext/string/multibyte.rb <ide> def is_utf8? <ide> <ide> unless '1.8.7 and later'.respond_to?(:chars) <ide> def chars <del> ActiveSupport::Deprecation.warn('String#chars has been deprecated in favor of String#mb_chars.', caller) <add> ...
2
Ruby
Ruby
remove warnings about redefined test methods
9cf3b1f6719e1fe917f5abe56be6fee157bc3c13
<ide><path>activesupport/test/inflector_test.rb <ide> def test_uncountable_word_is_not_greedy <ide> end <ide> <ide> SingularToPlural.each do |singular, plural| <del> define_method "test_pluralize_#{singular}" do <add> define_method "test_pluralize_singular_#{singular}" do <ide> assert_equal(plural, Act...
1
Ruby
Ruby
fix handling of undefined year in datetimeselector
8251651a0d759148313cecb2995b69994c896a10
<ide><path>actionview/lib/action_view/helpers/date_helper.rb <ide> def select_month <ide> end <ide> <ide> def select_year <del> if !@datetime || @datetime == 0 <add> if !year || @datetime == 0 <ide> val = "1" <ide> middle_year = Date.today.year <ide> else <ide><pat...
2
Python
Python
add useful repr's for finfo, iinfo
00962c4b845ec461e38850f8ae17253a4eecabf2
<ide><path>numpy/core/getlimits.py <ide> def __str__(self): <ide> --------------------------------------------------------------------- <ide> ''' % self.__dict__ <ide> <add> def __repr__(self): <add> c = self.__class__.__name__ <add> d = self.__dict__.copy() <add> d['klass'] = c <add> re...
2
Python
Python
normalize layer imports in examples
610ccba9f5c030e6106520359c27dc9c226670d7
<ide><path>examples/addition_rnn.py <ide> from __future__ import print_function <ide> from keras.models import Sequential <ide> from keras.engine.training import slice_X <del>from keras.layers.core import Activation, TimeDistributedDense, RepeatVector <del>from keras.layers import recurrent <add>from keras.layers impor...
17
Javascript
Javascript
add error code for *nix systems
dc0c63e5643639df81e07789fab00bbb8440e240
<ide><path>lib/FileSystemInfo.js <ide> class FileSystemInfo { <ide> const packageJsonPath = join(this.fs, path, "package.json"); <ide> this.fs.readFile(packageJsonPath, (err, content) => { <ide> if (err) { <del> if (err.code === "ENOENT") { <add> if (err.code === "ENOENT" || err.code === "ENOTDIR") { <add>...
1
Ruby
Ruby
move transaction code to transaction module
61d12ebb10d9acfffad6ab76a43d3aaedfda5586
<ide><path>activerecord/lib/active_record/core.rb <ide> def slice(*methods) <ide> <ide> private <ide> <del> def set_transaction_state(state) # :nodoc: <del> @transaction_state = state <del> end <del> <del> def has_transactional_callbacks? # :nodoc: <del> !_rollback_callbacks.empty? || !_commit_...
2
Ruby
Ruby
ensure log is flushed and tailed on failures
4598d8874948268e1162c1ef75d0bd565b1e0e64
<ide><path>actionpack/lib/action_dispatch/middleware/callbacks.rb <ide> def initialize(app, prepare_each_request = false) <ide> def call(env) <ide> run_callbacks(:call) do <ide> run_callbacks(:prepare) if @prepare_each_request <del> <del> ActiveSupport::Notifications.instrument "action_dispatch...
2
Text
Text
remove duplication of "the"
c1ae3ded14eb248455a80daac6ca03b8a918413c
<ide><path>docs/tutorials/fundamentals/part-4-store.md <ide> Now look at the console. You should see `'Hi!'` logged there, in between the oth <ide> <ide> ![sayHi store enhancer logging](/img/tutorials/fundamentals/sayhi-enhancer-logging.png) <ide> <del>The `sayHiOnDispatch` enhancer wrapped the original `store.dispat...
1
Javascript
Javascript
add block description to mobile curriculum
567e99231fbd06be7880a3bc8339d32d9ce6a6b6
<ide><path>curriculum/getChallenges.js <ide> async function buildBlocks({ basename: blockName }, curriculum, superBlock) { <ide> __dirname, <ide> `./challenges/_meta/${blockName}/meta.json` <ide> ); <del> let blockMeta; <del> try { <del> blockMeta = require(metaPath); <add> <add> if (fs.existsSync(metaP...
4
Text
Text
add missing word in cluster.workers details
74867f713a704fe422473e3bba0dae9bc09907e2
<ide><path>doc/api/cluster.md <ide> process. <ide> A worker is removed from `cluster.workers` after the worker has disconnected <ide> _and_ exited. The order between these two events cannot be determined in <ide> advance. However, it is guaranteed that the removal from the `cluster.workers` <del>list happens before las...
1
Javascript
Javascript
get more tests with view#remove working
54ed612c6b214861e480308b4201c1deab04e09e
<ide><path>packages/ember-metal-views/lib/renderer.js <ide> Renderer.prototype.willRender = function (view) { <ide> <ide> Renderer.prototype.remove = function (view, shouldDestroy) { <ide> this.willDestroyElement(view); <del> view._transitionTo('destroying', false); <add> <add> view._willRemoveElement = true; <add...
4
Python
Python
add prefix conversions for strings
a7e4b2326a74067404339b1147c1ff40568ee4c0
<ide><path>conversions/prefix_conversions_string.py <add>""" <add>* Author: Manuel Di Lullo (https://github.com/manueldilullo) <add>* Description: Convert a number to use the correct SI or Binary unit prefix. <add> <add>Inspired by prefix_conversion.py file in this repository by lance-pyles <add> <add>URL: https://en.w...
1
Ruby
Ruby
avoid lambda scopes when possible
4e5c2ccc1d97f0c18834f616fc219be6b1531bde
<ide><path>activerecord/lib/active_record/reflection.rb <ide> def scopes <ide> end <ide> <ide> def source_type_scope <del> type = foreign_type <del> source_type = options[:source_type] <del> lambda { |object| where(type => source_type) } <add> through_reflection.klass.where(fore...
1
Javascript
Javascript
use common.iswindows consistently
d5ab92bcc1f0ddf7ea87a8322824a688dfd43bf5
<ide><path>test/common.js <ide> Object.defineProperty(exports, 'opensslCli', {get: function() { <ide> opensslCli = path.join(path.dirname(process.execPath), 'openssl-cli'); <ide> } <ide> <del> if (process.platform === 'win32') opensslCli += '.exe'; <add> if (exports.isWindows) opensslCli += '.exe'; <ide> <ide...
66
Javascript
Javascript
fix element inspector w/ start + end styles
bfea0e5524e281c6cbf938299fa254f103dd45c6
<ide><path>Libraries/Inspector/resolveBoxStyle.js <ide> <ide> 'use strict'; <ide> <add>const I18nManager = require('I18nManager'); <add> <ide> /** <del> * Resolve a style property into it's component parts, e.g. <add> * Resolve a style property into its component parts. <add> * <add> * For example: <ide> * <del> * r...
1
Ruby
Ruby
fix failing tests introduced by
eeb3879a114769f7b2c8470603cc06c61ed3c5f0
<ide><path>activerecord/test/cases/connection_adapters/connection_swapping_nested_test.rb <ide> def test_application_record_prevent_writes_can_be_changed <ide> end <ide> ensure <ide> Object.send(:remove_const, :ApplicationRecord) <add> ActiveRecord::Base.establish_connection :arunit...
1
Ruby
Ruby
reduce scope of ensure block, remove conditionals
316d8d756cb7a466060fd1f61d1b789956d064d7
<ide><path>Library/Homebrew/extend/fileutils.rb <ide> def mktemp(prefix=name) <ide> # /tmp volume to the other volume. So we let the user override the tmp <ide> # prefix if they need to. <ide> <del> tempd = with_system_path { `mktemp -d #{HOMEBREW_TEMP}/#{prefix}-XXXXXX` }.chuzzle <del> raise "Failed to ...
1
PHP
PHP
apply fixes from styleci
8f209d59cdc7e3991bac712b7fcf36c1f0d63fce
<ide><path>src/Illuminate/Http/Resources/Json/Resource.php <ide> use JsonSerializable; <ide> use Illuminate\Support\Collection; <ide> use Illuminate\Container\Container; <del>use Illuminate\Http\Resources\MissingValue; <ide> use Illuminate\Contracts\Support\Arrayable; <add>use Illuminate\Http\Resources\MissingValue; <i...
2
Mixed
Text
support env for docker plugin set
efbed4500e30ff1a0eef4ff71fd46a58363d041b
<ide><path>api/server/router/plugin/plugin_routes.go <ide> func (pr *pluginRouter) setPlugin(ctx context.Context, w http.ResponseWriter, r <ide> if err := json.NewDecoder(r.Body).Decode(&args); err != nil { <ide> return err <ide> } <del> return pr.backend.Set(vars["name"], args) <add> if err := pr.backend.Set(vars[...
15
Go
Go
release the push lock at the end
77a34920b24901da82f9e22138ef21ffc665d678
<ide><path>server.go <ide> func (srv *Server) ImagePush(job *engine.Job) engine.Status { <ide> job.Error(err) <ide> return engine.StatusErr <ide> } <add> defer srv.poolRemove("push", localName) <add> <ide> // Resolve the Repository name from fqn to endpoint + name <ide> endpoint, remoteName, err := registry.Reso...
1
Text
Text
add strong emphasis.
4ac31ad5a73f3f0c7d5b1e3edfd06173af556f21
<ide><path>guide/english/wordpress/index.md <ide> title: WordPress <ide> <ide> ## WordPress <ide> <del>WordPress is a free and open-source content management system based on PHP and MySQL. Features include robust user management, an extensible theming and plugin architecture, and a flexible template system. It is mos...
1
Ruby
Ruby
remove useless deup
3429b0ccba036d09d1e6357e559be05efe3da969
<ide><path>actionpack/lib/action_dispatch/routing/route_set.rb <ide> def self.default_resources_path_names <ide> <ide> def initialize(request_class = ActionDispatch::Request) <ide> self.named_routes = NamedRouteCollection.new <del> self.resources_path_names = self.class.default_resources_path_name...
1
Javascript
Javascript
prevent parser throwing when err is null
3a5f272606dd32b3d7bc2846f3b22b062744cb90
<ide><path>tools/challenge-parser/parser/index.js <ide> exports.parseMD = function parseMD(filename) { <ide> if (!err) { <ide> delete file.contents; <ide> resolve(file.data); <add> } else { <add> err.message += ' in file ' + filename; <add> reject(err); <ide> } <del> <del>...
1
Python
Python
add like_num functionality to danish
3b2cb107a37804b89792b1993088e59a78d26323
<ide><path>spacy/lang/da/__init__.py <ide> <ide> from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS <ide> from .stop_words import STOP_WORDS <add>from .lex_attrs import LEX_ATTRS <ide> <ide> from ..tokenizer_exceptions import BASE_EXCEPTIONS <ide> from ..norm_exceptions import BASE_NORMS <ide> <ide> class Danish...
2
Javascript
Javascript
update mailer names
2f424def204b96081bec4883bea783aac0c1f829
<ide><path>controllers/user.js <ide> exports.postReset = function(req, res, next) { <ide> }); <ide> var mailOptions = { <ide> to: user.email, <del> from: 'hackathon@starter.com', <add> from: 'Team@freecodecamp.com', <ide> subject: 'Your Free Code Camp password has been changed'...
1
PHP
PHP
improve duplicate routes check
22ac2597b809ea8d808fe159c75d2afa98fa7c4c
<ide><path>src/Command/RoutesCommand.php <ide> public function execute(Arguments $args, ConsoleIo $io): ?int <ide> $output = $duplicateRoutesCounter = []; <ide> <ide> foreach ($availableRoutes as $route) { <del> $methods = $route->defaults['_method'] ?? ''; <add> $methods = isset(...
2
Ruby
Ruby
eliminate duplicate code from to_sql
158197b91d34b5ef2a4c06fb12a440d0b88d693d
<ide><path>activerecord/lib/active_record/relation.rb <ide> def to_sql <ide> visitor = connection.visitor <ide> <ide> if eager_loading? <del> join_dependency = construct_join_dependency <del> relation = except :select <del> ...
2
Text
Text
lose lgtm badge because we don't use it
bae08adc86c44268faaa0fe05ea0f2f91567ac9a
<ide><path>DIRECTORY.md <ide> <ide> ## Audio Filters <ide> * [Butterworth Filter](audio_filters/butterworth_filter.py) <add> * [Equal Loudness Filter](audio_filters/equal_loudness_filter.py) <ide> * [Iir Filter](audio_filters/iir_filter.py) <ide> * [Show Response](audio_filters/show_response.py) <ide> <ide> ...
2
Javascript
Javascript
remove outdated {{with}} documentation
dac942a86eedc8f71727ae1bed7abfaac9aee935
<ide><path>packages/ember-glimmer/lib/index.js <ide> {{/each}} <ide> {{/with}} <ide> ``` <del> <del> Without the `as` operator, it would be impossible to reference `user.name` in the example above. <del> <add> <ide> NOTE: The alias should not reuse a name from the bound property path. <ide> <ide> For ex...
1
PHP
PHP
add ability to skip a middleware
6364f258860c846140675bc34468ab345be8af43
<ide><path>src/Illuminate/Routing/Route.php <ide> public function middleware($middleware = null) <ide> return $this; <ide> } <ide> <add> /** <add> * Set which middleware(s) to skip <add> * <add> * @param array|string|null $middleware <add> * @return $this|array <add> */ <add> pub...
4
Text
Text
add tests for exercise tracker
7ad220d1ace80da69247b7c8877c96adec074092
<ide><path>curriculum/challenges/english/05-apis-and-microservices/apis-and-microservices-projects/exercise-tracker.english.md <ide> Start this project on Glitch using <a href='https://glitch.com/edit/#!/remix/clo <ide> <ide> ```yml <ide> tests: <add> - text: I can provide my own project, not the example url. <add> ...
1
PHP
PHP
add setconnection to mocked method list
81f4181d8950cc86958986820a2fba62fdce3424
<ide><path>tests/TestCase/Database/Driver/SqlserverTest.php <ide> public function testConnectionConfigCustom() <ide> 'settings' => ['config1' => 'value1', 'config2' => 'value2'], <ide> ]; <ide> $driver = $this->getMockBuilder('Cake\Database\Driver\Sqlserver') <del> ->setMethods(['...
1
Go
Go
implement applylayer directly
818c249bae8d29842834bf765299c86c09e6913e
<ide><path>archive/diff.go <ide> package archive <ide> <ide> import ( <add> "archive/tar" <add> "github.com/dotcloud/docker/utils" <add> "io" <ide> "os" <ide> "path/filepath" <ide> "strings" <ide> "syscall" <ide> "time" <ide> ) <ide> <add>// Linux device nodes are a bit weird due to backwards compat with 16 bit ...
3
Mixed
Ruby
add support for que name to que adapter
d12a31b193616791b1fbaf244332baffb23067b6
<ide><path>activejob/CHANGELOG.md <add>* Add queue name support to Que adapter <add> <add> *Brad Nauta*, *Wojciech Wnętrzak* <add> <ide> * Don't run `after_enqueue` and `after_perform` callbacks if the callback chain is halted. <ide> <ide> class MyJob < ApplicationJob <ide><path>activejob/lib/active_job...
5
Javascript
Javascript
fix sectionlist examples in documentation
0e93f4fa293a81a673b0e8b4aca611cd777fce82
<ide><path>Libraries/Lists/SectionList.js <ide> type DefaultProps = typeof defaultProps; <ide> * Simple Examples: <ide> * <ide> * <SectionList <del> * renderItem={({item}) => <ListItem title={item.title} />} <del> * renderSectionHeader={({section}) => <H1 title={section.title} />} <add> * rende...
1
PHP
PHP
apply fixes from styleci
02591e21d6307d9ff34d406cf1857df13c15586c
<ide><path>tests/Database/DatabaseEloquentIntegrationTest.php <ide> namespace Illuminate\Tests\Database; <ide> <ide> use Exception; <del>use ReflectionObject; <ide> use Illuminate\Support\Carbon; <ide> use PHPUnit\Framework\TestCase; <ide> use Illuminate\Database\Eloquent\Model;
1
PHP
PHP
fix typo and use local variable
7b33de43808f2f9f6c199c30e5ebffbb76362c22
<ide><path>tests/Foundation/FoundationExceptionsHandlerTest.php <ide> class FoundationExceptionsHandlerTest extends TestCase <ide> <ide> protected $handler; <ide> <del> protected $rquest; <add> protected $request; <ide> <ide> public function setUp() <ide> {
1
Text
Text
add release notes for v1.4.12
d16b60e0d3f372b1d522295914da7a89f37dbcbf
<ide><path>CHANGELOG.md <add><a name="1.4.12"></a> <add># 1.4.12 cultural-conservation (2016-06-15) <add> <add>_This release contains only documentation updates. Specifically, it restores the old (deprecated) <add>version of the tutorial on the 1.4.x branch. If someone needs a version of the tutorial that is <add>compa...
1
Go
Go
implement expose to builder
ae1e655fb1d95b5828a2b0cd67d19d090d04ff74
<ide><path>builder.go <ide> func (builder *Builder) Build(dockerfile io.Reader, stdout io.Writer) (*Image, e <ide> // use the base as the new image <ide> image = base <ide> <add> break <add> case "expose": <add> ports := strings.Split(arguments, " ") <add> <add> fmt.Fprintf(stdout, "EXPOSE %v\n", ports) <...
1
Java
Java
fix crash when borderxcolor is null on android
9fba85569c24065a29a3f7667fca6071d986d20b
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewProps.java <ide> public static boolean isLayoutOnly(ReadableMap map, String prop) { <ide> } <ide> return true; <ide> case BORDER_LEFT_COLOR: <del> return map.getInt(BORDER_LEFT_COLOR) == Color.TRANSPARENT; <add> r...
1
PHP
PHP
apply fixes from styleci
2fb344e80838297c358b6a5800601a9b0e1ece1b
<ide><path>src/Illuminate/Database/Connection.php <ide> use Illuminate\Database\Schema\Builder as SchemaBuilder; <ide> use Illuminate\Support\Arr; <ide> use Illuminate\Support\Traits\Macroable; <del>use LogicException; <ide> use PDO; <ide> use PDOStatement; <ide> use RuntimeException;
1
Python
Python
change ja inflection separator to semicolon
c4e3b7a5db7de8336e1e9edb424a8a6eb23940e9
<ide><path>spacy/lang/ja/__init__.py <ide> def _get_dtokens(self, sudachipy_tokens, need_sub_tokens: bool = True): <ide> DetailedToken( <ide> token.surface(), # orth <ide> "-".join([xx for xx in token.part_of_speech()[:4] if xx != "*"]), # tag <del> "|".join(...
1
Python
Python
ensure scalars in finfo
4e8b56df4b82feaa624a6c45859d0420ee7b2112
<ide><path>numpy/lib/getlimits.py <ide> def _init(self, dtype): <ide> else: <ide> raise ValueError,`dtype` <ide> <del> for word in ['tiny', 'precision', 'resolution','iexp', <del> 'maxexp','minexp','epsneg','negep', <add> for word in ['precision', 'iexp', <add> ...
1
Text
Text
fix typo in repl doc
21b37b23c1bf29b7b07b90186c46112e09afccc3
<ide><path>doc/api/repl.md <ide> The `repl.start()` method creates and starts a `repl.REPLServer` instance. <ide> ## The Node.js REPL <ide> <ide> Node.js itself uses the `repl` module to provide its own interactive interface <del>for executing JavaScript. This can used by executing the Node.js binary without <del>pass...
1
Python
Python
remove unnecessary blank line
080795fecb72a68c1ab788e1a6f277641855bad0
<ide><path>samples/core/get_started/premade_estimator.py <ide> def main(argv): <ide> template = ('\nPrediction is "{}" ({:.1f}%), expected "{}"') <ide> <ide> for pred_dict, expec in zip(predictions, expected): <del> <ide> class_id = pred_dict['class_ids'][0] <ide> probability = pred_dict['proba...
1
Python
Python
fix error in imagedatagenerator documentation
e85d3dc15072f774736eb0e3c216eb0b7da1db9a
<ide><path>keras/preprocessing/image.py <ide> class ImageDataGenerator(object): <ide> rotation_range: Int. Degree range for random rotations. <ide> width_shift_range: Float (fraction of total width). Range for random horizontal shifts. <ide> height_shift_range: Float (fraction of total height). ...
1
Text
Text
fix abortsignal example for stream.readable
2723d2db7e17f4e37d1e4044eb11663aaf3f742e
<ide><path>doc/api/stream.md <ide> Calling `abort` on the `AbortController` corresponding to the passed <ide> on the readable created. <ide> <ide> ```js <del>const fs = require('fs'); <add>const { Readable } = require('stream'); <ide> const controller = new AbortController(); <ide> const read = new Readable({ <ide> ...
1
Ruby
Ruby
add style_exceptions configuration
80a46edee487163cb853c6a4ab81e5b81dc54d77
<ide><path>Library/Homebrew/rubocops/extend/formula.rb <ide> def on_class(node) <ide> <ide> class_node, parent_class_node, @body = *node <ide> @formula_name = Pathname.new(@file_path).basename(".rb").to_s <add> @tap_style_exceptions = nil <ide> audit_formula(node, class_node, parent_clas...
3
Javascript
Javascript
remove string literal from strictequal()
31b3273eaa02ee12188a4c7a64a0d4adfbe22670
<ide><path>test/parallel/test-stream2-writable.js <ide> for (let i = 0; i < chunks.length; i++) { <ide> }); <ide> <ide> tw.on('finish', common.mustCall(function() { <del> assert.deepStrictEqual(tw.buffer, chunks, 'got chunks in the right order'); <add> // got chunks in the right order <add> assert.deepStr...
1
Go
Go
allow process isolation
c907c2486c0850030f8ac1819ac8c87631472c68
<ide><path>daemon/daemon_windows.go <ide> func verifyContainerResources(resources *containertypes.Resources, isHyperv bool <ide> // hostconfig and config structures. <ide> func verifyPlatformContainerSettings(daemon *Daemon, hostConfig *containertypes.HostConfig, config *containertypes.Config, update bool) ([]string, e...
1
Text
Text
add new test to create a set of new checkboxes
b67e3d4305ca821bc4850d376a01558e8eea777a
<ide><path>curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/create-a-set-of-checkboxes.english.md <ide> tests: <ide> - text: Make sure each of your <code>label</code> elements has a closing tag. <ide> testString: assert(code.match(/<\/label>/g) && code.match(/<label/g) && code.match(/<\...
1
PHP
PHP
add missing changes and a test
c30ae3528e5ea831beff8585bf5e244458fd2755
<ide><path>src/Illuminate/Pagination/Paginator.php <ide> class Paginator implements ArrayableInterface, ArrayAccess, Countable, IteratorA <ide> * @param \Illuminate\Pagination\Factory $factory <ide> * @param array $items <ide> * @param int $total <del> * @param int $perPage <add> * @param mixed $p...
2
Text
Text
add missing changes to generatekeypair(sync)
6155499252199d12f1577c6e9321008e6cd9e89d
<ide><path>doc/api/crypto.md <ide> changes: <ide> - v12.17.0 <ide> pr-url: https://github.com/nodejs/node/pull/31178 <ide> description: Add support for Diffie-Hellman. <add> - version: v12.0.0 <add> pr-url: https://github.com/nodejs/node/pull/26960 <add> description: Add support for RSA-PSS key pair...
1
Text
Text
fix typo in fs.watch() description
94fca845dff4bafba7f428bc7e876c1aa83fdd8d
<ide><path>doc/api/fs.md <ide> changes: <ide> * `persistent` {boolean} Indicates whether the process should continue to run <ide> as long as files are being watched. default = `true` <ide> * `recursive` {boolean} Indicates whether all subdirectories should be <del> watched, or only the current directory. The...
1
Text
Text
fix typo in entity_linker docs
047d912904d8f239ba444ecf772a601678a0c6f1
<ide><path>website/docs/api/entitylinker.md <ide> applied to the `Doc` in order. Both [`__call__`](/api/entitylinker#call) and <ide> | `batch_size` | The number of documents to buffer. Defaults to `128`. ~~int~~ | <ide> | **YIELDS** | The processed documents in order. ~~Doc~~ | <ide> <del>## ...
1
Javascript
Javascript
write files even on error
400b75658beb6083bd8cfdb30adc75de35b4fc43
<ide><path>server/build/webpack.js <ide> export default async function createCompiler (dir, { hotReload = false } = {}) { <ide> compress: { warnings: false }, <ide> sourceMap: false <ide> }), <del> new WriteFilePlugin({ log: false }) <add> new WriteFilePlugin({ <add> exitOnErrors: false, <add...
1
Text
Text
add tip format for comparison
4d9cde43be2335ab78615ab7715e323f8c04a933
<ide><path>docs/cookbook/cb-02-inline-styles tip.md <add>--- <add>id: inline-styles-tip <add>title: Inline Styles <add>layout: docs <add>permalink: inline-styles.html <add>script: "cookbook/inline-styles.js" <add>--- <add> <add>In React, inline styles are nto specified as a string, but as an object whose key is the cam...
2
Text
Text
fix stable release date of 0.58.0
045688bc28ee08a722e2a1521d51f1f3293e46a2
<ide><path>Releases.md <ide> React Native follows a monthly release train. Every month, a new branch created <ide> | ... | ... | ... | <ide> | 0.56.0 | 1st of June | 1st of July | <ide> | 0.57.0 | 1st of July | 1st of August | <del>| 0.58.0 | 1st of August ...
1
Ruby
Ruby
require yaml for xml mini isolation test
57ab74cdb1304b6baf79d37886d08551e065b5d6
<ide><path>activesupport/test/xml_mini_test.rb <ide> require 'active_support/builder' <ide> require 'active_support/core_ext/hash' <ide> require 'active_support/core_ext/big_decimal' <add>require 'yaml' <ide> <ide> module XmlMiniTest <ide> class RenameKeyTest < ActiveSupport::TestCase
1
Go
Go
trim all leading whitespace in a line
f1988f046f680c268e39d7b3f11374fe93c22365
<ide><path>opts/envfile.go <ide> func ParseEnvFile(filename string) ([]string, error) { <ide> lines := []string{} <ide> scanner := bufio.NewScanner(fh) <ide> for scanner.Scan() { <del> line := scanner.Text() <add> // trim the line from all leading whitespace first <add> line := strings.TrimLeft(scanner.Text(), wh...
2
PHP
PHP
add an interface for eventdispatcher
60f955ab8262d56ad921aac0e210caf72ac15c67
<ide><path>src/Controller/Controller.php <ide> use Cake\Controller\Exception\MissingActionException; <ide> use Cake\Datasource\ModelAwareTrait; <ide> use Cake\Event\Event; <add>use Cake\Event\EventDispatcherInterface; <ide> use Cake\Event\EventListenerInterface; <ide> use Cake\Event\EventManagerTrait; <ide> use Cake\Lo...
6
Python
Python
add test for serialization issue raised in
f0f2739ae3348f22d948351cdb143b14e6557056
<ide><path>spacy/tests/serialize/test_serialize_empty_model.py <add>import spacy <add>import spacy.lang.en <add>from spacy.pipeline import TextCategorizer <add> <add>def test_bytes_serialize_issue_1105(): <add> nlp = spacy.lang.en.English() <add> tokenizer = nlp.tokenizer <add> textcat = TextCategorizer(tokeni...
1
Go
Go
add support for mac address restoring
b669025949f1dba1ad3af9bab6711736863d6e24
<ide><path>daemon/container.go <ide> func (container *Container) RestoreNetwork() error { <ide> <ide> eng := container.daemon.eng <ide> <del> // Re-allocate the interface with the same IP address. <add> // Re-allocate the interface with the same IP and MAC address. <ide> job := eng.Job("allocate_interface", contain...
2
Ruby
Ruby
remove dead code
d54bce6a1af251a32f759e2017e0f4d1bc8d8c53
<ide><path>Library/Homebrew/compilers.rb <ide> def compiler <ide> <ide> def priority_for(cc) <ide> case cc <del> when :clang then @versions.clang_build_version >= 318 ? 3 : 0.5 <del> when :gcc then 2.5 <del> when :llvm then 2 <add> when :clang then @versions.clang_build_version >= 318 ? 3 : 0.5 ...
1
PHP
PHP
add return typehint and fix cs error
6193a53cc2e34ed4a10f312519e6e6269674409f
<ide><path>src/ORM/Table.php <ide> public function deleteManyOrFail(iterable $entities, $options = []): iterable <ide> /** <ide> * @param \Cake\Datasource\EntityInterface[]|\Cake\Datasource\ResultSetInterface $entities Entities to delete. <ide> * @param array|\ArrayAccess $options Options used. <del> ...
1
Javascript
Javascript
use template literals as appropriate
0aae941dbe0acf7c2bc920f563631bc20e5c075f
<ide><path>test/async-hooks/test-graph.signal.js <ide> hooks.enable(); <ide> process.on('SIGUSR2', common.mustCall(onsigusr2, 2)); <ide> <ide> let count = 0; <del>exec('kill -USR2 ' + process.pid); <add>exec(`kill -USR2 ${process.pid}`); <ide> <ide> function onsigusr2() { <ide> count++; <ide> <ide> if (count ===...
1
Java
Java
fix map.put contract for headersadapter impl
85262a7932eaafc466dbb805366811da5e91b23b
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/NettyHeadersAdapter.java <ide> public List<String> get(Object key) { <ide> @Override <ide> public List<String> put(String key, @Nullable List<String> value) { <ide> List<String> previousValues = this.headers.getAll(key); <del> this.header...
3
Javascript
Javascript
allow preload modules with -i
ff64a4c3951a945e372160ec7405264d72ff92dd
<ide><path>src/node.js <ide> } <ide> <ide> } else { <add> startup.preloadModules(); <ide> // If -i or --interactive were passed, or stdin is a TTY. <ide> if (process._forceRepl || NativeModule.require('tty').isatty(0)) { <ide> // REPL <ide><path>test/fixtures/define-globa...
3
Text
Text
add preload notice
e10096cd0c693f19ff27225ae0a5039a6d1870dc
<ide><path>packages/next/README.md <ide> Since Next.js server-renders your pages, this allows all the future interaction <ide> <ide> > With prefetching Next.js only downloads JS code. When the page is getting rendered, you may need to wait for the data. <ide> <add>> `<link rel="preload">` is used for prefetching. Som...
1
Text
Text
add cache_if and cache_unless on caching doc
861ec91e8c681302cec76d9bce278da829e85df1
<ide><path>guides/source/caching_with_rails.md <ide> This method generates a cache key that depends on all products and can be used i <ide> All available products: <ide> <% end %> <ide> ``` <add> <add>If you want to cache a fragment under certain condition you can use `cache_if` or `cache_unless` <add> <add>```erb <...
1
Go
Go
fix cache miss issue within docker build
560a74af1562de007ba487e102fd00a2f658e6a0
<ide><path>buildfile.go <ide> func (b *buildFile) CmdRun(args string) error { <ide> <ide> utils.Debugf("Commang to be executed: %v", b.config.Cmd) <ide> <del> if cache, err := b.srv.ImageGetCached(b.image, config); err != nil { <add> if cache, err := b.srv.ImageGetCached(b.image, b.config); err != nil { <ide> retu...
2
Ruby
Ruby
add dup leftover from 26710ab
c3bf3414ec92e02e7f3dc70394c4a7c5512bdbd1
<ide><path>actionview/lib/action_view/helpers/tag_helper.rb <ide> def content_tag_string(name, content, options, escape = true) <ide> <ide> def tag_options(options, escape = true) <ide> return if options.blank? <del> output = "" <add> output = "".dup <ide> sep = " " <id...
1
Javascript
Javascript
fix an offset bug in binaryloader
754b94720b29e7589ae5432dc8f6512fd1580c4f
<ide><path>examples/js/loaders/BinaryLoader.js <ide> THREE.BinaryLoader.prototype = { <ide> <ide> for ( var i = 0; i < length; i ++ ) { <ide> <del> text += String.fromCharCode( charArray[ offset + i ] ); <add> text += String.fromCharCode( charArray[ i ] ); <ide> <ide> } <ide>
1
Ruby
Ruby
add method to prepend and create a path
996c7bd7d11035cd19a824e448b2bc940823bb3a
<ide><path>Library/Homebrew/extend/ENV/shared.rb <ide> def prepend_path key, path <ide> prepend key, path, File::PATH_SEPARATOR if File.directory? path <ide> end <ide> <add> def prepend_create_path key, path <add> path = Pathname.new(path) unless path.is_a? Pathname <add> path.mkpath <add> prepend_path...
1
Javascript
Javascript
fix the type of pdfdocumentloadingtask.destroy
4ac62d8787e07516710449eaa4588bfbdfb52984
<ide><path>src/display/api.js <ide> function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { <ide> * {@link UNSUPPORTED_FEATURES} argument. <ide> * @property {Promise<PDFDocumentProxy>} promise - Promise for document loading <ide> * task completion. <del> * @property {Promise<void>} destroy - Abor...
1
Go
Go
fix false positive
3676bd8569f4df28a4f850cd4814e3558d8c03f6
<ide><path>integration-cli/docker_cli_build_test.go <ide> func (s *DockerSuite) TestBuildNotVerboseFailureRemote(c *check.C) { <ide> result.Assert(c, icmd.Expected{ <ide> ExitCode: 1, <ide> }) <del> if strings.TrimSpace(quietResult.Stderr()) != strings.TrimSpace(result.Combined()) { <add> <add> // An error message ...
1
Go
Go
add usage to snapshotter adapter
f0a9e54d200e317eb12ccbe9fee1d0c3a49366f5
<ide><path>builder/builder-next/adapters/snapshot/snapshot.go <ide> package snapshot <ide> import ( <ide> "context" <ide> "path/filepath" <add> "strconv" <ide> "strings" <ide> "sync" <ide> <ide> func (s *snapshotter) Update(ctx context.Context, info snapshots.Info, fieldpath <ide> } <ide> <ide> func (s *snapshott...
1
Go
Go
add time since exit in docker ps
15a267b57d2394dd5cb697f9a80b6df4fc939a76
<ide><path>runtime/state.go <ide> func (s *State) String() string { <ide> } <ide> return fmt.Sprintf("Up %s", utils.HumanDuration(time.Now().UTC().Sub(s.StartedAt))) <ide> } <del> return fmt.Sprintf("Exit %d", s.ExitCode) <add> return fmt.Sprintf("Exited (%d) %s ago", s.ExitCode, utils.HumanDuration(time.Now().UTC...
1
Ruby
Ruby
align them assignments
49cb4ed845e730f69fb2a26a594976039d3d2559
<ide><path>activerecord/lib/active_record/attribute_assignment.rb <ide> def attributes=(new_attributes) <ide> def assign_attributes(new_attributes, options = {}) <ide> return if new_attributes.blank? <ide> <del> attributes = new_attributes.stringify_keys <del> multi_parameter_attributes = [] <add> ...
1
Go
Go
keep state in core on container
25a26977173632b5966838d910550a921ef5a853
<ide><path>container.go <ide> func (container *Container) Start() (err error) { <ide> return err <ide> } <ide> <add> container.State.SetRunning(container.process.Pid()) <add> <ide> // Init the lock <ide> container.waitLock = make(chan struct{}) <ide> <ide> func (container *Container) monitor() { <ide> containe...
3
Javascript
Javascript
remove dead code
7394e89ff6167cf371e17cb43ff8d5c2f10d539c
<ide><path>lib/tls.js <ide> SecurePair.prototype.destroy = function() { <ide> <ide> if (!this._doneFlag) { <ide> this._doneFlag = true; <del> <del> if (this.ssl.timer) { <del> clearTimeout(this.ssl.timer); <del> this.ssl.timer = null; <del> } <del> <ide> this.ssl.error = null; <ide> this....
1
Ruby
Ruby
use sql statement to the read_query list for mysql
a960f93971bfb182c6e16e894788e3bc2cc60b5e
<ide><path>activerecord/lib/active_record/connection_adapters/mysql/database_statements.rb <ide> def query(sql, name = nil) # :nodoc: <ide> end <ide> <ide> READ_QUERY = ActiveRecord::ConnectionAdapters::AbstractAdapter.build_read_query_regexp( <del> :begin, :commit, :explain, :select, :set, :s...
2
Javascript
Javascript
use valuefn over curry
faf0c3e4c1b6f79b00f92f1231491f7569ecd25e
<ide><path>test/ng/directive/ngModelSpec.js <ide> describe('ngModel', function() { <ide> <ide> <ide> it('should only validate to true if all validations are true', function() { <del> var curry = function(v) { <del> return function() { <del> return v; <del> }; <del> }; ...
1
Ruby
Ruby
keep time_tag docs up-to-date
46bb787c0482f4b7b7f9d18454806d5ef8863243
<ide><path>actionview/lib/action_view/helpers/date_helper.rb <ide> def select_year(date, options = {}, html_options = {}) <ide> # <time datetime="2010-11-04T17:55:45+01:00">November 04, 2010 17:55</time> <ide> # time_tag Date.yesterday, 'Yesterday' # => <ide> # <time datetime="2010-11-03">Y...
1
Text
Text
add another solution
ad5e844cb518be90efecfa2473cc61f16db083d2
<ide><path>guide/english/certifications/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/steamroller/index.md <ide> You will definitely need recursion or another way to go beyond two level arrays <ide> * We replace the double comma with one, then split it back into an array. <ide> * map th...
1
Text
Text
clarify use of two-branch models
6501b587c06b525eeda92b5f318bee8d74b9cc5c
<ide><path>docs/templates/getting-started/sequential-model-guide.md <ide> final_model.add(Dense(10, activation='softmax')) <ide> <ide> <img src="http://s3.amazonaws.com/keras.io/img/two_branches_sequential_model.png" alt="two branch Sequential" style="width: 400px;"/> <ide> <add>Such a two-branch model can then be tr...
1
Text
Text
fix typos for ng-switch-changed workaround
58adaa66346eeaf54cab5d7de9936e17aadb0d4c
<ide><path>CHANGELOG.md <ide> Example: <ide> angular.module("switchChangeWorkaround", []). <ide> directive("onSwitchChanged", function() { <ide> return { <del> linke: function($scope, $attrs) { <del> $scope.$parent.$eval($attrs.change); <add> link: function($scope, $element, $attrs) { <add> ...
1
PHP
PHP
improve pagination accessibility
d7cf66e4fb37a0120bf6a31712e5dd686506883e
<ide><path>src/Illuminate/Pagination/resources/views/bootstrap-4.blade.php <ide> @if ($paginator->hasPages()) <del> <ul class="pagination"> <add> <ul class="pagination" role="navigation"> <ide> {{-- Previous Page Link --}} <ide> @if ($paginator->onFirstPage()) <del> <li class="page-item...
5
PHP
PHP
add affordances for allowempty() and file uploads
68a105538194b20fd9b40af1aa729c78c01a5d76
<ide><path>src/Validation/Validator.php <ide> public function requirePresence($field, $mode = true, $message = null) <ide> * }); <ide> * ``` <ide> * <add> * This method will correctly detect empty file uploads and date/time/datetime fields. <add> * <ide> * Because this and `notEmpty()` modif...
2
Javascript
Javascript
replace imagecanvas by scratchcanvas
000d6402580dcd99efdca83031ac2e3b1055bd31
<ide><path>pdf.js <ide> var Encodings = { <ide> } <ide> }; <ide> <del>function ImageCanvas(width, height) { <del> var tmpCanvas = this.canvas = document.createElement("canvas"); <del> tmpCanvas.width = width; <del> tmpCanvas.height = height; <add>function ScratchCanvas(width, height) { <add> var canvas =...
1
PHP
PHP
improve eager loading performance
352e8abcf1354e73cbab6473d6467dd92960d38e
<ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsTo.php <ide> public function addEagerConstraints(array $models) <ide> // our eagerly loading query so it returns the proper models from execution. <ide> $key = $this->related->getTable().'.'.$this->ownerKey; <ide> <del> $this->query->w...
10
Text
Text
clarify http timeouts
02601c247db8a7b147065f5757af5ac47165e517
<ide><path>doc/api/http.md <ide> also be accessed at `request.connection`. <ide> This event can also be explicitly emitted by users to inject connections <ide> into the HTTP server. In that case, any [`Duplex`][] stream can be passed. <ide> <add>If `socket.setTimeout()` is called here, the timeout will be replaced wit...
1
Go
Go
remove unused service.tlsconfig()
2f466a9f884f28601c3b15e7f6e2c6aa683b8afd
<ide><path>registry/service.go <ide> type Service interface { <ide> ResolveRepository(name reference.Named) (*RepositoryInfo, error) <ide> Search(ctx context.Context, term string, limit int, authConfig *types.AuthConfig, userAgent string, headers map[string][]string) (*registry.SearchResults, error) <ide> ServiceCon...
1
Go
Go
add srcname() method to return interface name
f2c60095836a7ccf374d0aae42a0aa3bc2dd7285
<ide><path>libnetwork/endpoint_info.go <ide> type InterfaceInfo interface { <ide> <ide> // LinkLocalAddresses returns the list of link-local (IPv4/IPv6) addresses assigned to the endpoint. <ide> LinkLocalAddresses() []*net.IPNet <add> <add> // SrcName returns the name of the interface w/in the container <add> SrcNam...
1
Go
Go
fix content-type for legacy
0b403b35318a68d848bd9d7cddcf850d2fa7bfa7
<ide><path>api/api.go <ide> func getImagesJSON(eng *engine.Engine, version float64, w http.ResponseWriter, r <ide> outsLegacy.Add(outLegacy) <ide> } <ide> } <add> w.Header().Set("Content-Type", "application/json") <ide> if _, err := outsLegacy.WriteListTo(w); err != nil { <ide> return err <ide> } <ide>...
1
Ruby
Ruby
fix some default_cc behavior
30cbb25147416620ff64e6ba6d047d5304dff25b
<ide><path>Library/Homebrew/utils.rb <ide> def dev_tools_path <ide> def default_cc <ide> cc = `/usr/bin/xcrun -find cc 2> /dev/null`.chomp <ide> cc = "#{dev_tools_path}/cc" if cc.empty? <del> Pathname.new(cc).realpath.basename.to_s <add> Pathname.new(cc).realpath.basename.to_s rescue nil <ide> end <id...
1
Python
Python
add doc string to creation test class
781cb48ab247ff76d51a6e20603d7e763768276d
<ide><path>numpy/core/tests/test_numeric.py <ide> def test_basic(self): <ide> <ide> class TestCreationFuncs(TestCase): <ide> <add> '''Test ones, zeros, empty and filled''' <add> <ide> def setUp(self): <ide> self.dtypes = ('b', 'i', 'u', 'f', 'c', 'S', 'a', 'U', 'V') <ide> self.orders = {'C': 'c...
1