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 |
|---|---|---|---|---|---|
Mixed | Text | fix gfm formating issue | 3b7e8d2e6ba35efa4fcf8df16c0c005662f2402d | <ide><path>examples/code-splitted-require.context-amd/README.md
<ide> getTemplate("b", function(b) {
<ide>
<ide> # js/output.js
<ide>
<del><details><summary>`/******/ (function(modules) { /* webpackBootstrap */ })`</summary>
<add><details><summary><code>/******/ (function(modules) { /* webpackBootstrap */ })</code></... | 34 |
Text | Text | remove workspaceview from doc | f592a5d11fca374e0b14c6948631f6ccdc75d051 | <ide><path>docs/advanced/globals.md
<ide> Atom exposes several services through singleton objects accessible via the
<ide> * workspace:
<ide> Manipulate and query the state of the user interface for the current
<ide> window. Open editors, manipulate panes.
<del> * workspaceView:
<del> Similar to wor... | 1 |
Javascript | Javascript | show actual error in next-tick-when-exiting | 8055bdbbc9badb2042e44a8e843e364f2b3f6284 | <ide><path>test/parallel/test-next-tick-when-exiting.js
<ide> 'use strict';
<ide>
<del>require('../common');
<add>const common = require('../common');
<ide> const assert = require('assert');
<ide>
<ide> process.on('exit', () => {
<del> assert.strictEqual(process._exiting, true, 'process._exiting was not set!');
<add... | 1 |
Text | Text | create an outline for creating a theme | 93a0c6eeb50215dcccc6a2cef7c161bd779c9383 | <ide><path>docs/creating-a-theme.md
<ide> "title": "Creating a Theme"
<ide> }}}
<ide>
<del># Authoring Themes (Not Yet Implemented)
<add># Creating a Theme
<add>
<add>## Overview
<add>
<add>* Explain the difference between ui themes and syntax themes
<add>
<add>## Getting Started
<add>
<add>* What do I need to install... | 1 |
Python | Python | fix token_type_ids error for big_bird model. | 5e04d7086803ae4a3892f4082f2835a756592c2c | <ide><path>src/transformers/models/big_bird/tokenization_big_bird.py
<ide> def get_special_tokens_mask(
<ide> if token_ids_1 is None:
<ide> return [1] + ([0] * len(token_ids_0)) + [1]
<ide> return [1] + ([0] * len(token_ids_0)) + [1] + ([0] * len(token_ids_1)) + [1]
<add>
<add> def create... | 1 |
Python | Python | fix .delete on object store example | bf8fe66f443381981ee0b1d8583895a5a57b69e5 | <ide><path>examples/objectstore/views.py
<ide> def put(self, request, key):
<ide> pickle.dump(self.CONTENT, open(pathname, 'wb'))
<ide> return self.CONTENT
<ide>
<del> def delete(self, request):
<add> def delete(self, request, key):
<ide> """
<ide> Delete a stored object, by remov... | 1 |
Javascript | Javascript | log exit code | 7806c0875b97802247fbfbf552689272bbcdcc78 | <ide><path>packager/react-packager/src/SocketInterface/SocketServer.js
<ide> class SocketServer {
<ide> options
<ide> );
<ide> resolve(this);
<del> process.on('exit', () => fs.unlinkSync(sockPath));
<add> process.on('exit', code => {
<add> debug('exit code:', code);
<add... | 1 |
PHP | PHP | add link to psr-16 specs | fccc1e5eb4241e95404c54da6e90ca10ad671b50 | <ide><path>src/Cache/SimpleCacheEngine.php
<ide> * the PSR16 Simple Cache Interface
<ide> *
<ide> * @since 3.7.0
<add> * @link https://www.php-fig.org/psr/psr-16/
<ide> */
<ide> class SimpleCacheEngine implements CacheInterface
<ide> { | 1 |
Text | Text | fix bug in actionmailer guide | 65158a6701b4200aaf4575b8f645acc7f2ae0895 | <ide><path>guides/source/action_mailer_basics.md
<ide> create test/mailers/previews/user_mailer_preview.rb
<ide> ```ruby
<ide> # app/mailers/application_mailer.rb
<ide> class ApplicationMailer < ActionMailer::Base
<del> default "from@example.com"
<add> default from: "from@example.com"
<ide> layout 'mailer'
<ide>... | 1 |
Python | Python | fix proxy objects to respect != | d58c98d73c41b97e9543f88d3a81ffa6f23e4c7d | <ide><path>django/utils/functional.py
<ide> def __cast(self):
<ide> else:
<ide> return func(*self.__args, **self.__kw)
<ide>
<add> def __ne__(self, other):
<add> if isinstance(other, Promise):
<add> other = other.__cast()
<add> return self.__cast(... | 1 |
PHP | PHP | fix sqlserver tests and add missing coverage | 248ad972840847e7dd44c96341776cfabb1b330d | <ide><path>src/Database/Schema/SqlserverSchema.php
<ide> protected function _convertColumn($col, $length = null, $precision = null, $scal
<ide> }
<ide>
<ide> if ($col === 'tinyint') {
<del> return ['type' => 'smallint', 'length' => $precision ?: 3];
<add> return ['type' => 'tinyin... | 2 |
Ruby | Ruby | fix shebang handling for empty files. references | b056adf03bd8b331db80f40f484126795d5d9323 | <ide><path>railties/lib/rails_generator/commands.rb
<ide> def file(relative_source, relative_destination, file_options = {}, &block)
<ide> if block_given?
<ide> df.write(yield(sf))
<ide> else
<del> line = sf.gets || ''
<ide> if file_options[:she... | 1 |
Mixed | Javascript | add support for eventtarget in once | 34a61d563088c97f13e193d00c91cd893f1479b8 | <ide><path>doc/api/events.md
<ide> added: v11.13.0
<ide> * `name` {string}
<ide> * Returns: {Promise}
<ide>
<del>Creates a `Promise` that is resolved when the `EventEmitter` emits the given
<add>Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given
<ide> event or that is rejected when the `Even... | 3 |
Python | Python | add $params to the isnat docstring | 3723a5c3fe75ae250d7f332b797c00619f8f3796 | <ide><path>numpy/core/code_generators/ufunc_docstrings.py
<ide> def add_newdoc(place, name, doc):
<ide> ----------
<ide> x : array_like
<ide> Input array with datetime or timedelta data type.
<add> $PARAMS
<ide>
<ide> Returns
<ide> ------- | 1 |
Javascript | Javascript | show readable identifier in errors | 8a4bb64611e313fb526ecfca6e7df08c919c39a3 | <ide><path>lib/Stats.js
<ide> Stats.prototype.toJson = function toJson(options, forToString) {
<ide> }
<ide> function formatError(e) {
<ide> var text = "";
<del> if(e.module) {
<del> // text += e.module.readableIdentifier(requestShortener) + "\n";
<del> text += e.module.identifier() + "\n";
<add> if(e.module ... | 1 |
Javascript | Javascript | restrict the tbody search to child nodes | efdb8a46e4213dcf69f792c42c234c6b112ba471 | <ide><path>src/manipulation.js
<ide> var
<ide> rscriptTypeMasked = /^true\/(.*)/,
<ide> rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
<ide>
<add>// Prefer a tbody over its parent table for containing new rows
<ide> function manipulationTarget( elem, content ) {
<ide> if ( jQuery.nodeName( elem, "table"... | 2 |
Python | Python | display a specific message during the first scan | 7044f27935d0d3d44c7aaf1f9de9a9cd39529876 | <ide><path>glances/__init__.py
<ide> def main():
<ide> standalone.serve_forever()
<ide>
<ide> elif core.is_client():
<del> if core.is_client_autodiscover():
<add> if core.is_client_browser():
<ide> logger.info("Start client mode (browser)")
<ide>
<ide> # Import the Gl... | 6 |
Python | Python | remove potential undefinederror | cb26b035c696f32b7f47df18a6d84b88b7b1745d | <ide><path>transformers/modeling_xlm.py
<ide> def get_masks(slen, lengths, causal, padding_mask=None):
<ide> mask = alen < lengths[:, None]
<ide>
<ide> # attention mask is the same as mask, or triangular inferior attention (causal)
<add> bs = lengths.size(0)
<ide> if causal:
<del> bs = length... | 1 |
PHP | PHP | fix missing space after foreach | a0142e9745f68e3853a26675a5580cb6e63152ac | <ide><path>src/Illuminate/Support/MessageBag.php
<ide> public function has($key = null)
<ide> */
<ide> public function hasAll($keys = [], $true = true, $false = false)
<ide> {
<del> foreach($keys as $key) {
<add> foreach ($keys as $key) {
<ide> if ($this->first($key) === '') {
<id... | 1 |
PHP | PHP | fix a bug with how commands are queued | 3f5863966d90b5f76b3adb3582bc0b33569a3ccc | <ide><path>src/Illuminate/Foundation/Console/Kernel.php
<ide> public function bootstrap()
<ide> $this->app->bootstrapWith($this->bootstrappers());
<ide> }
<ide>
<del> // If we are just calling another queue command, we will only load the queue
<del> // service provider. This saves a lot of file loading as we do... | 1 |
Javascript | Javascript | remove unused method from chunkgroup | 63c9a87af00ff80701b09f4a9e9a5bf522a78168 | <ide><path>lib/ChunkGroup.js
<ide> class ChunkGroup {
<ide> return this._parents.getFromCache(getArray);
<ide> }
<ide>
<del> /**
<del> * @param {Iterable<ChunkGroup>} newParents the parent groups to be added into
<del> * @returns {void}
<del> */
<del> setParents(newParents) {
<del> this._parents.clear();
<del> ... | 1 |
Javascript | Javascript | use es6 spec for vector iterator. #68 | 66d66090ab3ba0159fc16fe69ca0a0433920d574 | <ide><path>dist/Immutable.dev.js
<ide> var $Vector = Vector;
<ide> __deepEquals: function(other) {
<ide> var iterator = this.__iterator__();
<ide> return other.every((function(v, k) {
<del> var entry = iterator.next();
<del> return k === entry[0] && is(v, entry[1]);
<add> var entry = iterator.n... | 3 |
Ruby | Ruby | use 1.9 hash syntax consistently | 6f788b1d91cd1d9d5731527beec59c16df94862a | <ide><path>activerecord/test/schema/schema.rb
<ide> def create_table(*args, &block)
<ide> t.integer :ideal_reference_id
<ide> end
<ide>
<del> create_table :keyboards, force: true, :id => false do |t|
<add> create_table :keyboards, force: true, id: false do |t|
<ide> t.primary_key :key_number
<ide> t.s... | 1 |
Python | Python | drop usage of validatiors.empty_values | e6c88a423361b084ba171af7a74a183bd557e73e | <ide><path>rest_framework/fields.py
<ide> def run_validation(self, data=empty):
<ide> return value
<ide>
<ide> def run_validators(self, value):
<del> if value in validators.EMPTY_VALUES:
<add> if value in (None, '', [], (), {}):
<ide> return
<ide>
<ide> errors = []
<ide> ... | 1 |
Python | Python | use feature detection instead of version detection | 47bdf9f26fdd499c00a25efa4c0229c544cf682d | <ide><path>flask/_compat.py
<ide> PY2 = sys.version_info[0] == 2
<ide> _identity = lambda x: x
<ide>
<del>
<del>if not PY2:
<add>try: # Python 2
<add> text_type = unicode
<add> string_types = (str, unicode)
<add> integer_types = (int, long)
<add>except NameError: # Python 3
<ide> text_type = str
<ide> ... | 1 |
Ruby | Ruby | add an option to skip installation of turbolinks | e3dca3acc6919b0824bc126f8a397f5f4e7484a2 | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def self.add_shared_options_for(name)
<ide> class_option :skip_spring, type: :boolean, default: false,
<ide> desc: "Don't install Spring application preloader"
<ide>
<add> class_option :skip_turbo... | 2 |
Javascript | Javascript | move flag check into each switch case | de3c069843af825503b91ed10d04d03db2aa1c94 | <ide><path>packages/react-reconciler/src/ReactFiberCommitWork.new.js
<ide> function commitPassiveMountEffects_complete(
<ide> while (nextEffect !== null) {
<ide> const fiber = nextEffect;
<ide>
<del> if ((fiber.flags & Passive) !== NoFlags) {
<del> setCurrentDebugFiberInDEV(fiber);
<del> try {
<del>... | 2 |
Javascript | Javascript | increase slop limit in memory leak test | 997e97d9cd8c687284feb32e364ef434086d38d5 | <ide><path>test/parallel/test-crypto-dh-leak.js
<ide> const after = process.memoryUsage().rss;
<ide>
<ide> // RSS should stay the same, ceteris paribus, but allow for
<ide> // some slop because V8 mallocs memory during execution.
<del>assert(after - before < 5 << 20, `before=${before} after=${after}`);
<add>assert(aft... | 1 |
Javascript | Javascript | fix referenceerror in truncatesync() | 5fba3b85c5a50b6b8c9061d951dc09da8a221d40 | <ide><path>lib/fs.js
<ide> fs.truncate = function(path, len, callback) {
<ide> fs.truncateSync = function(path, len) {
<ide> if (typeof path === 'number') {
<ide> // legacy
<del> return fs.ftruncateSync(path, len, callback);
<add> return fs.ftruncateSync(path, len);
<ide> }
<ide> if (typeof len === 'und... | 1 |
Text | Text | update bash completion docs | 1dcf8c689cb3e35d2b727903068c2df27c357ca6 | <ide><path>docs/Shell-Completion.md
<ide> Homebrew comes with completion definitions for the `brew` command. Some packages
<ide> You must configure your shell to enable the completion support. This is because the Homebrew-managed completions are stored under `HOMEBREW_PREFIX`, which your system shell may not be aware o... | 1 |
Javascript | Javascript | use hmrclient to send console logs to metro | 81ec2112a15e3d66b7973f0e1aaa8986fcca753f | <ide><path>Libraries/Core/Devtools/logToConsole.js
<del>/**
<del> * Copyright (c) Facebook, Inc. and its affiliates.
<del> *
<del> * This source code is licensed under the MIT license found in the
<del> * LICENSE file in the root directory of this source tree.
<del> *
<del> * @format
<del> * @flow strict-local
<del> */... | 4 |
Ruby | Ruby | handle more jenkins configurations | df1f9806a4e82d3a4f2a2a793f5ac8b6778344c1 | <ide><path>Library/Homebrew/dev-cmd/test-bot.rb
<ide> def test_ci_upload(tap)
<ide> job = ENV["UPSTREAM_JOB_NAME"]
<ide> id = ENV["UPSTREAM_BUILD_ID"]
<ide> raise "Missing Jenkins variables!" if !jenkins || !job || !id
<add>
<ide> bottles = Dir["#{jenkins}/jobs/#{job}/configurations/axis-version... | 1 |
Python | Python | fix printing for python2 in lstm example | 872a9faf180e1257e63c577c5f0273d12cd6ee9e | <ide><path>examples/lstm_text_generation.py
<add>from __future__ import print_function
<ide> from keras.models import Sequential
<ide> from keras.layers.core import Dense, Activation
<ide> from keras.layers.recurrent import LSTM | 1 |
Ruby | Ruby | add additional options | fceaa2bb74d7beac30afe5fcf21c4d10e8ef53fa | <ide><path>Library/Homebrew/service.rb
<ide> def working_dir(path = nil)
<ide> end
<ide> end
<ide>
<add> sig { params(path: T.nilable(T.any(String, Pathname))).returns(T.nilable(String)) }
<add> def root_dir(path = nil)
<add> case T.unsafe(path)
<add> when nil
<add> @root_dir
<add> ... | 2 |
Python | Python | add test for | 87f7ec34d503c3cde11570ce5b4ebb961dbb37fe | <ide><path>spacy/tests/regression/test_issue3880.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<add>from spacy.lang.en import English
<add>import pytest
<add>
<add>
<add>@pytest.mark.xfail
<add>def test_issue3880():
<add> """Test that `nlp.pipe()` works when an empty string ends the batch.
<add... | 1 |
Text | Text | remove danbev from tsc member list | 0c35fe02d3b202290ab19d2fc72e914397fdba3d | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Colin Ihrig** <cjihrig@gmail.com> (he/him)
<ide> * [codebytere](https://github.com/codebytere) -
<ide> **Shelley Vohr** <shelley.vohr@gmail.com> (she/her)
<del>* [danbev](https://github.com/danbev) -
<del>**D... | 1 |
Text | Text | remove lttng from tierlist | 85fb533a247caae3b18eac8f5c6e6bdc2b7f7024 | <ide><path>doc/contributing/diagnostic-tooling-support-tiers.md
<ide> The tools are currently assigned to Tiers as follows:
<ide> | Debugger | Command line Debug Client | ? | Yes | 1 |
<ide> | Tracing | trace\_events (API) | No ... | 1 |
PHP | PHP | add link helpers | 0051c0fa2174b8c1ac51e44f224725474cb1c0e8 | <ide><path>src/Illuminate/Support/helpers.php
<ide> function head($array)
<ide> }
<ide> }
<ide>
<add>if ( ! function_exists('link_to'))
<add>{
<add> /**
<add> * Generate a HTML link.
<add> *
<add> * @param string $url
<add> * @param string $title
<add> * @param array $attributes
<add> * @param bool $... | 1 |
Text | Text | remove unnecessary space | 411394313e8d063baffdea5faafb883240a83bb7 | <ide><path>docs/style-guide/style-guide.md
<ide> Use of static typing does make this kind of code safer and somewhat more accepta
<ide>
<ide> ### Name State Slices Based On the Stored Data
<ide>
<del>As mentioned in [Reducers Should Own the State Shape ](#reducers-should-own-the-state-shape), the standard approach fo... | 1 |
Python | Python | remove reference to python 2 | 7da70ce023d9e5b1dcd3f71a782f12c080b1c590 | <ide><path>numpy/distutils/command/config.py
<ide> def _check_compiler (self):
<ide> # XXX: hack to circumvent a python 2.6 bug with msvc9compiler:
<ide> # initialize call query_vcvarsall, which throws an IOError, and
<ide> # causes an error along the way without much information. We... | 1 |
Text | Text | add french translation | 98388fcc43b1e2eb9bd17ab352e85331f33e0a15 | <ide><path>threejs/lessons/fr/threejs-scenegraph.md
<ide> Cet article fait partie d'une série consacrée à Three.js.
<ide> Le premier article s'intitule [Principes de base](threejs-fundamentals.html).
<ide> Si vous ne l'avez pas encore lu, vous voudriez peut-être commencer par là.
<ide>
<del>Le coeurs de Three.js est s... | 1 |
Python | Python | adjust test for listfield(integerfield) | f8f8b3a1f1c1463d1836dc2e9f6614460d03fed4 | <ide><path>tests/schemas/test_openapi.py
<ide> def test_list_field_mapping(self):
<ide> (serializers.ListField(child=serializers.FloatField()), {'items': {'type': 'number'}, 'type': 'array'}),
<ide> (serializers.ListField(child=serializers.CharField()), {'items': {'type': 'string'}, 'type': 'arr... | 1 |
Java | Java | introduce failing test for spr-16652 | 4b9e3a9211b9c81148b2c2ebd54091a1fa037483 | <ide><path>spring-core/src/test/java/org/springframework/core/MethodParameterTests.java
<ide> /*
<del> * Copyright 2002-2016 the original author or authors.
<add> * Copyright 2002-2018 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not ... | 1 |
Ruby | Ruby | convert coffeescript to es6 syntax | 801716395ccc4b436613c08cd4cfd68a2eb87102 | <ide><path>actioncable/lib/action_cable/helpers/action_cable_helper.rb
<ide> module ActionCableHelper
<ide> # </head>
<ide> #
<ide> # This is then used by Action Cable to determine the URL of your WebSocket server.
<del> # Your CoffeeScript can then connect to the server without needing to spec... | 1 |
Python | Python | remove print statement | 1277abcde2782e4a5b3a6d856f304c57fa8c6b6e | <ide><path>spacy/cli/link.py
<ide>
<ide>
<ide> def link(origin, link_name, force=False):
<del> print("Linking", origin, link_name)
<ide> if is_package(origin):
<ide> link_package(origin, link_name, force)
<ide> else: | 1 |
Javascript | Javascript | prevent usage of array index in keys | 36d4a969dd2e1ecf75166b24b6b0af3f7a70e71f | <ide><path>Libraries/NewAppScreen/components/LearnMoreLinks.js
<ide> import React from 'react';
<ide>
<ide> const links = [
<ide> {
<add> id: 1,
<ide> title: 'The Basics',
<ide> link: 'https://facebook.github.io/react-native/docs/tutorial',
<ide> description: 'Explains a Hello World for React Native.'... | 1 |
Python | Python | raise custom importerror if importing janome fails | d730eb0c0df2fb6784f7adcce479c4c9588764b9 | <ide><path>spacy/ja/__init__.py
<ide> class Japanese(Language):
<ide> lang = 'ja'
<ide>
<ide> def make_doc(self, text):
<del> from janome.tokenizer import Tokenizer
<add> try:
<add> from janome.tokenizer import Tokenizer
<add> except ImportError:
<add> raise ImportErr... | 1 |
Ruby | Ruby | remove obsolete code | 00725d086d23fbc304d9d5bd5ddcf7e79bb358d4 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def initialize(env = {})
<ide>
<ide> class Result < ::Array #:nodoc:
<ide> def to_s() join '/' end
<del> def self.new_escaped(strings)
<del> new strings.collect {|str| uri_parser.unescape str}
<del> end
<ide> end
<ide>
<ide>... | 1 |
Python | Python | fix crash when --ml_perf flag is not specified. | 48a4b44355b9b2344d6407df95f3a487e1913dd9 | <ide><path>official/recommendation/ncf_main.py
<ide> def define_ncf_flags():
<ide> "achieved by MLPerf implementation."))
<ide>
<ide> flags.DEFINE_bool(
<del> name="ml_perf", default=None,
<add> name="ml_perf", default=False,
<ide> help=flags_core.help_wrap(
<ide> "If set, changes... | 1 |
Ruby | Ruby | add new methods | edf832749784a836e0a7911a3ea5eeef22f525a5 | <ide><path>Library/Homebrew/keg_relocate.rb
<ide> class Keg
<ide> LIBRARY_PLACEHOLDER = ""
<ide> PERL_PLACEHOLDER = ""
<ide> JAVA_PLACEHOLDER = ""
<add> BINARY_NULL_CHARACTER = "\x00"
<ide>
<ide> class Relocation
<ide> extend T::Sig
<ide> def replace_text_in_files(relocation, files: nil)
<ide> changed... | 1 |
Python | Python | add a flag to switch layers module | 7124ed1227aa3e7a3c38cd412e63994b942f3c63 | <ide><path>official/vision/image_classification/common.py
<ide> def define_keras_flags(dynamic_loss_scale=True):
<ide> help='Number of steps per graph-mode loop. Only training step happens '
<ide> 'inside the loop. Callbacks will not be called inside. Will be capped at '
<ide> 'steps per epoch.')
<add... | 4 |
Text | Text | add text to article | a897631a0bd5499606ce9cb8e4c720e9ef118f82 | <ide><path>guide/spanish/agile/acceptance-testing/index.md
<ide> Las actividades de la prueba de aceptación están diseñadas para llegar a una
<ide>
<ide> # Informe de prueba de aceptación - Atributos
<ide>
<del>El informe de prueba de aceptación tiene los siguientes atributos:
<add>El informe de prueba de aceptación ... | 1 |
Javascript | Javascript | add animateddiffclamp node | cd1d652af4ebed123dbbee1d015ba3835ec33356 | <ide><path>Libraries/Animated/src/AnimatedImplementation.js
<ide> class AnimatedModulo extends AnimatedWithChildren {
<ide> }
<ide> }
<ide>
<add>class AnimatedDiffClamp extends AnimatedWithChildren {
<add> _a: Animated;
<add> _min: number;
<add> _max: number;
<add> _value: number;
<add> _lastValue: number;
<add... | 2 |
Text | Text | update cluster entry in changelog | 3dd7ebb0ba181960fb6d7131e11243a6ec85458d | <ide><path>CHANGELOG.md
<ide> https://iojs.org/api/console.html
<ide>
<ide> https://iojs.org/api/cluster.html
<ide>
<del>(**DETAILS TO BE ADDED HERE**)
<del>
<ide> - Updated `cluster` to use round-robin load balancing by default on non-Windows platforms. The scheduling policy is configurable however.
<add>- `--debug`... | 1 |
Text | Text | add links to the expected common binary packages | cc6034ac862e058ee9faa5306f240d11150f960e | <ide><path>tools/email-footer.md
<ide> Windows x64 Installer: http://nodejs.org/dist/__VERSION__/x64/node-__VERSION__-x
<ide>
<ide> Windows x64 Files: http://nodejs.org/dist/__VERSION__/x64/
<ide>
<add>Linux 32-bit Binary Package: http://nodejs.org/dist/__VERSION__/node-__VERSION__-linux-i686.tar.gz
<add>
<add>Linux ... | 1 |
Ruby | Ruby | add missing test cases for #assert_no_difference | bb5c1321d6eb97e08bd6cf134ae381410b8a6281 | <ide><path>activesupport/test/test_test.rb
<ide> def test_assert_not
<ide> assert_equal 'custom', e.message
<ide> end
<ide>
<del> def test_assert_no_difference
<add> def test_assert_no_difference_pass
<ide> assert_no_difference '@object.num' do
<ide> # ...
<ide> end
<ide> end
<ide>
<add> def ... | 1 |
Python | Python | fix partial update for the listserializer | 53a1205dd03703e6f93bbf7bcb2686c617638242 | <ide><path>rest_framework/serializers.py
<ide> def __init__(self, *args, **kwargs):
<ide> super(ListSerializer, self).__init__(*args, **kwargs)
<ide> self.child.bind(field_name='', parent=self)
<ide>
<add> def bind(self, field_name, parent):
<add> super(ListSerializer, self).bind(field_name, ... | 1 |
Python | Python | fix the exception handling of windowserror | 7ecafebdc70e01a41a68d6e4d8c8ac12ac507432 | <ide><path>glances/processes.py
<ide>
<ide> import psutil
<ide>
<del># Workaround for old PsUtil version
<del>if hasattr(psutil, 'WindowsError'):
<del> PsUtilWindowsError = psutil.WindowsError
<del>else:
<del> PsUtilWindowsError = None
<del>
<ide>
<ide> def is_kernel_thread(proc):
<ide> """Return True if p... | 1 |
Javascript | Javascript | add support for experimental scopes api | a16b34974508cd23ce0844ad09a0e37a879d5591 | <ide><path>packages/react-debug-tools/src/ReactDebugHooks.js
<ide> import type {
<ide> ReactProviderType,
<ide> ReactEventResponder,
<ide> ReactEventResponderListener,
<add> ReactScopeMethods,
<ide> } from 'shared/ReactTypes';
<ide> import type {Fiber} from 'react-reconciler/src/ReactFiber';
<ide> import type {H... | 7 |
Javascript | Javascript | remove timers from streams test | 45a716c9687849b7ade2ce01f2421c8f791f907c | <ide><path>test/parallel/test-stream2-readable-empty-buffer-no-eof.js
<ide> 'use strict';
<del>const common = require('../common');
<add>require('../common');
<ide> const assert = require('assert');
<ide>
<ide> const Readable = require('stream').Readable;
<ide> function test1() {
<ide> //
<ide> // note that this i... | 1 |
PHP | PHP | update dynamo store | 8aa403ebafde3fd51048e427aaf2ae8081c2ff9d | <ide><path>src/Illuminate/Cache/DynamoDbStore.php
<ide> protected function isExpired(array $item, $expiration = null)
<ide> * @param string $key
<ide> * @param mixed $value
<ide> * @param float|int $minutes
<del> * @return void
<add> * @return bool
<ide> */
<ide> public function p... | 1 |
Javascript | Javascript | refine explanation of isolate scope `=`-binding | 507cf31ff9eb31f7f5f5c8e86c924bae14e9d922 | <ide><path>src/ng/compile.js
<ide> * is bound to the parent scope, via matching attributes on the directive's element:
<ide> *
<ide> * * `@` or `@attr` - bind a local scope property to the value of DOM attribute. The result is
<del> * always a string since DOM attributes are strings. If no `attr` name is specified... | 1 |
Java | Java | add writablechannel to writableresource | ed4bd43cacebf2d001a1d0b66b67ad5141499be1 | <ide><path>spring-core/src/main/java/org/springframework/core/io/FileSystemResource.java
<ide> /*
<del> * Copyright 2002-2016 the original author or authors.
<add> * Copyright 2002-2017 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not... | 4 |
Ruby | Ruby | include selected spec in formula#inspect | eec4feccaa06ab909ffc02fcec7d63a3e23fdd2d | <ide><path>Library/Homebrew/formula.rb
<ide> def to_s
<ide> end
<ide>
<ide> def inspect
<del> "#<#{self.class.name}: #{path}>"
<add> s = "#<Formula #{name} ("
<add> s << if head? then "head" elsif devel? then "devel" else "stable" end
<add> s << ") #{path}>"
<ide> end
<ide>
<ide> # Standard parame... | 1 |
Javascript | Javascript | add bumpthree grunt task | b2ed7e9aa9144e9ecc8841b915c3745b494050da | <ide><path>Gruntfile.js
<ide> 'use strict';
<ide>
<ide> const fs = require('fs');
<add>const path = require('path');
<add>const semver = require('semver');
<ide>
<ide> module.exports = function(grunt) {
<ide>
<ide> module.exports = function(grunt) {
<ide> }).done();
<ide> });
<ide>
<del> grunt.registerTask('... | 1 |
PHP | PHP | add instance() to the container contract | c4d367a991f62c153c28769dc32b1353acff9383 | <ide><path>src/Illuminate/Contracts/Container/Container.php
<ide> public function singleton($abstract, $concrete = null);
<ide> */
<ide> public function extend($abstract, Closure $closure);
<ide>
<add> /**
<add> * Register an existing instance as shared in the container.
<add> *
<add> * @param string $abstract... | 1 |
Ruby | Ruby | fix warnings for undefined local variable | 92fb0815ed3cb92ae18ce8c9cf401ee1b74a971d | <ide><path>activerecord/lib/active_record/schema_dumper.rb
<ide> def tables(stream)
<ide> end
<ide> end
<ide>
<add> def primary_key_for(table)
<add> if @connection.respond_to?(:pk_and_sequence_for)
<add> pk, _ = @connection.pk_and_sequence_for(table)
<add> return pk if pk
<a... | 1 |
PHP | PHP | provide collection with final models in hydrate | 644e13583e940bf3e76c7c74640376683fa4ad40 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public static function hydrate(array $items, $connection = null)
<ide> {
<ide> $instance = (new static)->setConnection($connection);
<ide>
<del> $collection = $instance->newCollection($items);
<del>
<del> return $collection->map(function ($item) use ($in... | 1 |
Ruby | Ruby | add homebrew-completions to search | 05eb740766d4b2611abd9a197d3fdf585db9f0ce | <ide><path>Library/Homebrew/cmd/search.rb
<ide> def search
<ide> threads << Thread.new { search_tap "Homebrew", "dupes", rx }
<ide> threads << Thread.new { search_tap "Homebrew", "games", rx }
<ide> threads << Thread.new { search_tap "Homebrew", "science", rx }
<add> threads << Thread.new... | 1 |
Javascript | Javascript | fix existing lint warnings | 908571de2f7a4b53dba3e8155464f426f5cc1a50 | <ide><path>Libraries/Components/View/View.js
<ide> const View: React.AbstractComponent<
<ide> 'aria-disabled': ariaDisabled,
<ide> 'aria-expanded': ariaExpanded,
<ide> 'aria-selected': ariaSelected,
<del> ...restProps
<ide> } = otherProps;
<ide>
<ide> const _accessibilityState = {
<ide><... | 2 |
Javascript | Javascript | add support for big5 encoding | 27d114bd11727ca570e8798db0d81bab797a7465 | <ide><path>src/fonts.js
<ide> var CMapConverterList = {
<ide> '90ms-RKSJ-V': sjisToUnicode,
<ide> '90msp-RKSJ-H': sjisToUnicode,
<ide> '90msp-RKSJ-V': sjisToUnicode,
<del> 'GBK-EUC-H': gbkToUnicode
<add> 'GBK-EUC-H': gbkToUnicode,
<add> 'ETenms-B5-H': big5ToUnicode,
<add> 'ETenms-B5-V': big5ToUnicode,
<ide> }... | 1 |
Python | Python | drop regex dependency | bed956c698918e10b32961cb257dee13fd13ac1a | <ide><path>setup.py
<ide> def setup_package():
<ide> "thinc==7.0.0.dev6",
<ide> "blis>=0.2.2,<0.3.0",
<ide> "plac<1.0.0,>=0.9.6",
<del> "regex==2018.01.10",
<ide> "requests>=2.13.0,<3.0.0",
<ide> "jsonschema>=2.6.0,<3.0.0",
<... | 1 |
Python | Python | fix typo of roles export command | 00fd789258b48d92b16294b598956db271bc7b3d | <ide><path>airflow/cli/commands/role_command.py
<ide> def roles_delete(args):
<ide> @suppress_logs_and_warning
<ide> def roles_export(args):
<ide> """
<del> Exports all the rules from the data base to a file.
<add> Exports all the roles from the data base to a file.
<ide> Note, this function does not expo... | 1 |
Python | Python | drop all compat support to django < 2 urls | bb795674f86828fc5f15d6d61501cc781811e053 | <ide><path>rest_framework/compat.py
<ide> from django.conf import settings
<ide> from django.views.generic import View
<ide>
<del>try:
<del> from django.urls import ( # noqa
<del> URLPattern,
<del> URLResolver,
<del> )
<del>except ImportError:
<del> # Will be removed in Django 2.0
<del> from... | 7 |
Ruby | Ruby | fix bad parameters | 92cb62dace2d4e9480b2e9cac27239798dc89d95 | <ide><path>Library/Homebrew/utils.rb
<ide> def install_gem!(name)
<ide> # having to find the right `gem` binary for the running Ruby interpreter.
<ide> require "rubygems/commands/install_command"
<ide> install_cmd = Gem::Commands::InstallCommand.new
<del> install_cmd.handle_options("--no-document", name)... | 1 |
Go | Go | use human readable units when listing secrets | 880e8be1eea086ee83e5ad22f953696365c5b799 | <ide><path>cli/command/secret/ls.go
<ide> import (
<ide> "context"
<ide> "fmt"
<ide> "text/tabwriter"
<add> "time"
<ide>
<ide> "github.com/docker/docker/api/types"
<ide> "github.com/docker/docker/cli"
<ide> "github.com/docker/docker/cli/command"
<add> "github.com/docker/go-units"
<ide> "github.com/spf13/cobra"
... | 1 |
Text | Text | improve documentation of fs sync methods | 65208d038e76cf24ba1afe6768d7b053b3bbf3f3 | <ide><path>doc/api/fs.md
<ide> changes:
<ide> * `path` {string|Buffer|URL}
<ide> * `mode` {integer}
<ide>
<del>Synchronously changes the permissions of a file. Returns `undefined`.
<del>This is the synchronous version of [`fs.chmod()`][].
<add>For detailed information, see the documentation of the asynchronous version... | 1 |
Python | Python | grab sensors temperature threshold | d6cdf7485e2bf9570588a15a88c38c1e8545a7c3 | <ide><path>glances/plugins/glances_sensors.py
<ide> def __set_type(self, stats, sensor_type):
<ide>
<ide> def update_views(self):
<ide> """Update stats views."""
<add> # @TODO: manage limits coming from system here for temperature_core
<add> # ...
<add>
<ide> # Call the father's metho... | 1 |
Javascript | Javascript | improve message in test-fs-readfile-pipe-large | 9a1565e41af291bef8cbe4597d2789e64e9bc5b4 | <ide><path>test/parallel/test-fs-readfile-pipe-large.js
<ide> const node = JSON.stringify(process.execPath);
<ide> const cmd = `cat ${filename} | ${node} ${f} child`;
<ide> exec(cmd, { maxBuffer: 1000000 }, function(err, stdout, stderr) {
<ide> assert.ifError(err);
<del> assert.strictEqual(stdout, dataExpected, 'it ... | 1 |
Javascript | Javascript | show a toast for hmr | 7c2c6a9d3f1eb48462cf5fbb333b2d438e9b48b2 | <ide><path>Libraries/Utilities/HMRClient.js
<ide> * of patent rights can be found in the PATENTS file in the same directory.
<ide> *
<ide> * @providesModule HMRClient
<add> * @flow
<ide> */
<ide> 'use strict';
<ide>
<ide> const Platform = require('Platform');
<ide> const invariant = require('invariant');
<del>cons... | 3 |
Javascript | Javascript | defer more field detachments to passive phase | ab29695a050b806492351250a24221d622d5e4cc | <ide><path>packages/react-reconciler/src/ReactFiberCommitWork.new.js
<ide> function commitNestedUnmounts(
<ide> }
<ide>
<ide> function detachFiberMutation(fiber: Fiber) {
<del> // Cut off the return pointers to disconnect it from the tree. Ideally, we
<del> // should clear the child pointer of the parent alternate t... | 4 |
Javascript | Javascript | add writable* properties to compat api | 99abaf9658861d21dfa20bf50b6076061e033973 | <ide><path>lib/internal/http2/compat.js
<ide> class Http2ServerResponse extends Stream {
<ide> return this[kStream].writableCorked;
<ide> }
<ide>
<add> get writableHighWaterMark() {
<add> return this[kStream].writableHighWaterMark;
<add> }
<add>
<add> get writableFinished() {
<add> return this[kStream].... | 2 |
Python | Python | move _no_tracing to testing._private | 16e9d42c120a66fefaacb45684a3ff52944a4b38 | <ide><path>numpy/core/tests/test_multiarray.py
<ide> assert_allclose, IS_PYPY, HAS_REFCOUNT, assert_array_less, runstring,
<ide> temppath, suppress_warnings, break_cycles,
<ide> )
<add>from numpy.testing._private.utils import _no_tracing
<ide> from numpy.core.tests._locales import CommaDecimalPointLocale
<i... | 3 |
Python | Python | remove unused imports | 2d29d46f319719487ba160faa244df930995ee84 | <ide><path>libcloud/storage/drivers/cloudfiles.py
<ide> except:
<ide> import simplejson as json
<ide>
<del>from libcloud.utils import fixxpath, findtext, in_development_warning
<ide> from libcloud.utils import read_in_chunks
<ide> from libcloud.common.types import MalformedResponseError, LibcloudError
<ide> from l... | 1 |
Text | Text | add note in next/link docs about anchor props | 1fa7114a010515f8c0d3d7ada436ba9290ec38e9 | <ide><path>docs/api-reference/next/link.md
<ide> export default Home
<ide> - [`shallow`](/docs/routing/shallow-routing.md) - Update the path of the current page without rerunning [`getStaticProps`](/docs/basic-features/data-fetching/get-static-props.md), [`getServerSideProps`](/docs/basic-features/data-fetching/get-ser... | 1 |
Go | Go | move envconfig generation to lxc driver | 4994b0fe5459996691dde18155a7b712762e8e53 | <ide><path>daemon/container.go
<ide> func (container *Container) WriteHostConfig() (err error) {
<ide> return ioutil.WriteFile(container.hostConfigPath(), data, 0666)
<ide> }
<ide>
<del>func (container *Container) generateEnvConfig(env []string) error {
<del> data, err := json.Marshal(env)
<del> if err != nil {
<del>... | 3 |
Text | Text | add new tip | 2aeb03d17d8ca244a64045aa6c4b2b3708095944 | <ide><path>guide/english/miscellaneous/tips-for-your-coding/index.md
<ide> This list was created by compiling common issues and questions when working on t
<ide>
<ide> 3. Use the chrome javascript debugger console in conjunction with something like the netbeans IDE or sublime text to write your code. Both are free to... | 1 |
Ruby | Ruby | test the full incineration flow | 2e4df7cea354339cbae20252ae14106a0cce12b5 | <ide><path>test/unit/inbound_email/incineration_test.rb
<ide> class ActionMailbox::InboundEmail::IncinerationTest < ActiveSupport::TestCase
<ide> assert_enqueued_with job: ActionMailbox::IncinerationJob, at: 30.days.from_now do
<ide> create_inbound_email_from_fixture("welcome.eml").delivered!
<ide> end
<a... | 1 |
Javascript | Javascript | remove type duplication | c6c3eba1c0d0182de5218067306de267a0e47a56 | <ide><path>lib/Compiler.js
<ide> const ConcurrentCompilationError = require("./ConcurrentCompilationError");
<ide> */
<ide>
<ide> /** @typedef {string|string[]} EntryValues */
<del>/** @typedef {{[entryKey: string]: EntryValues}} EntryOptionValues */
<del>/** @typedef {(() => EntryOptionValues) | EntryOptionValues | ... | 2 |
PHP | PHP | fix null column errors in sqlite and postgres | ddd3baf7038e146cc1008481cce07545d3c5d529 | <ide><path>lib/Cake/Test/Case/Model/Behavior/TreeBehaviorScopedTest.php
<ide> public function testTranslatingTree() {
<ide> $this->Tree->locale = 'eng';
<ide> $data = array('FlagTree' => array(
<ide> 'title' => 'name #1',
<add> 'name' => 'test',
<ide> 'locale' => 'eng',
<ide> 'parent_id' => null,
<ide> ... | 1 |
Text | Text | use the visual as thumbnail | b4691a438d9a20297eb8e4856d36067272fa8f5a | <ide><path>model_cards/canwenxu/BERT-of-Theseus-MNLI/README.md
<add>---
<add>thumbnail: https://github.com/JetRunner/BERT-of-Theseus/blob/master/bert-of-theseus.png?raw=true
<add>---
<add>
<ide> # BERT-of-Theseus
<ide> See our paper ["BERT-of-Theseus: Compressing BERT by Progressive Module Replacing"](http://arxiv.org/... | 1 |
Mixed | Javascript | add selectioncolor prop for text on android | 72be2d35cca208d0b52b3c751ac01bf7a6bb28a8 | <ide><path>Examples/UIExplorer/js/TextExample.android.js
<ide> class TextExample extends React.Component {
<ide> </Text>
<ide> </UIExplorerBlock>
<ide> <UIExplorerBlock title="selectable attribute">
<del> <Text selectable={true}>
<add> <Text selectable>
<ide> This... | 3 |
Python | Python | remove unnecessary werkzeug mock attribs from test | 1a67e284d043818743ae9ef5a46b6b64a9db56f7 | <ide><path>tests/test_templating.py
<ide> def test_templates_auto_reload():
<ide>
<ide> def test_templates_auto_reload_debug_run(monkeypatch):
<ide> # debug is None in config, config option is None, app.run(debug=True)
<del> rv = {}
<del>
<ide> # Mocks werkzeug.serving.run_simple method
<ide> def run_si... | 1 |
Ruby | Ruby | remove to_ary from rackbody | 7777a11625655d1b229e82ffd06373e61a6bf52a | <ide><path>actionpack/lib/action_dispatch/http/response.rb
<ide> def respond_to?(method, include_private = false)
<ide> def to_path
<ide> @response.stream.to_path
<ide> end
<del>
<del> def to_ary
<del> nil
<del> end
<ide> end
<ide>
<ide> def handle_no_content! | 1 |
Ruby | Ruby | fix typo in audit | 4a4b960558b420676af25dfcd772cc5d4e35cc65 | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_patches
<ide>
<ide> def audit_text
<ide> if text =~ /system\s+['"]scons/
<del> problem "use \"scons, *args\" instead of \"system 'scons', *args\""
<add> problem "use \"scons *args\" instead of \"system 'scons', *args\""
<ide> end
<ide>
<ide>... | 1 |
Python | Python | allow shared network/subnetwork | 40fb1af22e5adc6f8bff9ed5739ebb92c815c5f2 | <ide><path>libcloud/compute/drivers/gce.py
<ide> def ex_get_subnetwork(self, name, region=None):
<ide> region_name = None
<ide> if name.startswith('https://'):
<ide> parts = self._get_components_from_path(name)
<del> name = parts['name']
<add> #name = parts['name']
<ide... | 1 |
Ruby | Ruby | add docs for cachingkeygenerator | e6e3317c5409b069782e7b701a11bcd5283794ae | <ide><path>activesupport/lib/active_support/key_generator.rb
<ide> def generate_key(salt, key_size=64)
<ide> end
<ide> end
<ide>
<add> # CachingKeyGenerator is a wrapper around KeyGenerator which allows users to avoid
<add> # re-executing the key generation process when it's called using the same salt and
<add... | 1 |
Ruby | Ruby | add the choices option to pkg stanza | f4a3bc100b4b98a3d06222c15934abb36bf16594 | <ide><path>Library/Homebrew/cask/lib/hbc/artifact/pkg.rb
<ide>
<ide> require "hbc/utils/hash_validator"
<ide>
<add>require "vendor/plist/plist"
<add>
<ide> module Hbc
<ide> module Artifact
<ide> class Pkg < Base
<ide> def load_pkg_description(pkg_description)
<ide> @pkg_install_opts = pkg_description.sh... | 3 |
Javascript | Javascript | fix global leak | da96e07bbe922fba3f6c4c7bd83fcbf4236a90da | <ide><path>src/node.js
<ide> // Modules
<ide>
<ide> var debugLevel = parseInt(process.env['NODE_DEBUG'], 16);
<add> var debug;
<ide> if (debugLevel & 1) {
<ide> debug = function(x) { console.error(x); };
<ide> } else { | 1 |
Ruby | Ruby | remove free usage of #tap | 648a95b5263401264d4376a3819f9e232dcf3543 | <ide><path>actionpack/lib/action_dispatch/middleware/flash.rb
<ide> def self.from_session_value(value)
<ide> else
<ide> new
<ide> end
<del>
<del> flash.tap(&:sweep)
<add>
<add> flash.sweep
<add> flash
<ide> end
<ide>
<ide> def t... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.