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 | describe apm linking when creating a theme | dbef7a26ce1d3b4252897e339e5f4f6bee78b488 | <ide><path>docs/creating-a-theme.md
<ide> a few things before starting:
<ide> that have been already been defined.
<ide> 1. When you're ready update the `README.md` and include an example screenshot
<ide> of your new theme in action.
<del>1. Open a terminal, find your new theme's directory, initialize the g... | 1 |
Javascript | Javascript | add hoc component filter | a173f4eb85a81b86f1457d901be6fc198e36b728 | <ide><path>src/backend/renderer.js
<ide> import { gte } from 'semver';
<ide> import {
<ide> ComponentFilterDisplayName,
<ide> ComponentFilterElementType,
<add> ComponentFilterHOC,
<ide> ComponentFilterLocation,
<ide> ElementTypeClass,
<ide> ElementTypeContext,
<ide> export function attach(
<ide> ... | 3 |
Ruby | Ruby | add wrapper for github api method | 6d948bf6ab26b0f1d074e5cedb1c401b1af9f483 | <ide><path>Library/Homebrew/utils/github.rb
<ide> module GitHub
<ide>
<ide> module_function
<ide>
<add> def open_api(url, data: nil, data_binary_path: nil, request_method: nil, scopes: [].freeze, parse_json: true)
<add> odeprecated "GitHub.open_api", "GitHub::API.open_api"
<add> API.open_api(url, data: data,... | 1 |
Text | Text | add immutable data faq | 00e9aa014fa4c1ebfd0ae7a1e85b4381f0eaa797 | <ide><path>docs/faq/ImmutableData.md
<add># Redux FAQ: Immutable Data
<add>
<add>## Table of Contents
<add>- [What are the benefits of Immutability?](#benefits-of-immutability)
<add>- [Why is immutability required in Redux?](#why-is-immutability-required)
<add>- [Do I have to use Immutable.JS?](#do-i-have-to-use-immuta... | 1 |
PHP | PHP | name command | c1e751f5f4d9dcd4af879b76bff706cb8d9d9090 | <ide><path>src/Illuminate/Foundation/Console/AppNameCommand.php
<ide> public function fire()
<ide> {
<ide> $this->currentRoot = trim($this->getAppNamespace(), '\\');
<ide>
<add> $this->setBootstrapNamespaces();
<add>
<ide> $this->setAppDirectoryNamespace();
<ide>
<ide> $this->setConfigNamespaces();
<ide> publ... | 1 |
Javascript | Javascript | clarify policy of track by and select as | ea1897606f15442ee0d734dcdf4848130b6bbd4e | <ide><path>src/ng/directive/select.js
<ide> var ngOptionsMinErr = minErr('ngOptions');
<ide> * <div class="alert alert-info">
<ide> * **Note:** Using `select as` will bind the result of the `select as` expression to the model, but
<ide> * the value of the `<select>` and `<option>` html elements will be either the in... | 1 |
Javascript | Javascript | add deprecation notice to imagestore | 62599fa8ff7f308259fe178fa37b7bcf3c1a408c | <ide><path>Libraries/Image/ImageStore.js
<ide>
<ide> const RCTImageStoreManager = require('NativeModules').ImageStoreManager;
<ide>
<add>const Platform = require('Platform');
<add>
<add>const warnOnce = require('warnOnce');
<add>
<add>function warnUnimplementedMethod(methodName: string): void {
<add> warnOnce(
<add>... | 2 |
Python | Python | use labels to remove deprecation warnings | f1fe18465d8c4ee3f5710cdfd7de387a1d136f6b | <ide><path>tests/test_modeling_albert.py
<ide> def create_and_check_albert_for_pretraining(
<ide> input_ids,
<ide> attention_mask=input_mask,
<ide> token_type_ids=token_type_ids,
<del> masked_lm_labels=token_labels,
<add> labels=token_labels,... | 10 |
Python | Python | add success message | e33d2b1bea819472541a8027e6638a538c900994 | <ide><path>spacy/cli/evaluate.py
<ide> def evaluate(
<ide> data = {re.sub(r"[\s/]", "_", k.lower()): v for k, v in results.items()}
<ide> if output_path is not None:
<ide> srsly.write_json(output_path, data)
<add> msg.good(f"Saved results to {output_path}")
<ide> return data
<ide>
<ide> | 1 |
PHP | PHP | allow inject view builder into mail renderer | d33e22c738b3990dd0a4379a3b4963f9d8de9065 | <ide><path>src/Mailer/Renderer.php
<ide> */
<ide> namespace Cake\Mailer;
<ide>
<add>use Cake\View\ViewBuilder;
<ide> use Cake\View\ViewVarsTrait;
<ide>
<ide> /**
<ide> class Renderer
<ide> */
<ide> public const TEMPLATE_FOLDER = 'email';
<ide>
<add> /**
<add> * Constructor
<add> *
<add> * @p... | 1 |
PHP | PHP | remove undefined variable from compact | 0a6bd84aed6faaff0a1716e26c62ff7aef7971cb | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function addWhereExistsQuery(self $query, $boolean = 'and', $not = false)
<ide> {
<ide> $type = $not ? 'NotExists' : 'Exists';
<ide>
<del> $this->wheres[] = compact('type', 'operator', 'query', 'boolean');
<add> $this->wheres[]... | 1 |
Javascript | Javascript | return 404 for update-my-current-challenge | 21709a11cbb143655c5e93baaecd6343186786ff | <ide><path>api-server/src/server/boot/certificate.js
<ide> import {
<ide> } from '../../../../config/certification-settings';
<ide> import { reportError } from '../middlewares/sentry-error-handler.js';
<ide>
<del>import { deprecatedEndpoint } from '../utils/deprecatedEndpoint';
<add>import { deprecatedEndpoint } from ... | 5 |
Java | Java | remove shared bridge experiment | 260e6d23554a8e7f1743263894c9ca9a0cfbf01e | <ide><path>ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java
<ide> public static ReactInstanceManagerBuilder builder() {
<ide> @Nullable DevBundleDownloadListener devBundleDownloadListener,
<ide> boolean useSeparateUIBackgroundThread,
<ide> int minNumShakes,
<del> boolean sp... | 2 |
Ruby | Ruby | set version to nil if version is null | 4e3d23ad14b29832f14784939acc5afe2f1b28f8 | <ide><path>Library/Homebrew/resource.rb
<ide> def url(val = nil, specs = {})
<ide> end
<ide>
<ide> def version(val = nil)
<del> @version ||= detect_version(val)
<add> @version ||= begin
<add> version = detect_version(val)
<add> version.null? ? nil : version
<add> end
<ide> end
<ide>
<ide> d... | 1 |
Javascript | Javascript | fix manipulation tests in android 4.4 | 0b0d4c634ab8a953a58bf531dd93e0ea4d632fdd | <ide><path>test/unit/manipulation.js
<ide> QUnit.test( "Tag name processing respects the HTML Standard (gh-2005)", function
<ide> }
<ide>
<ide> function assertSpecialCharsSupport( method, characters ) {
<add> // Support: Android 4.4 only
<add> // Chromium < 35 incorrectly upper-cases µ; Android 4.4 uses such a ver... | 1 |
PHP | PHP | fix method name | 08cde109bfc94098fb79bc2b505de6497867c291 | <ide><path>tests/Notifications/NotificationSlackChannelTest.php
<ide> public function tearDown()
<ide> Mockery::close();
<ide> }
<ide>
<del> public function testSmsIsSentViaNexmo()
<add> public function testCorrectPayloadIsSentToSlack()
<ide> {
<ide> $notification = new Notification([
<id... | 1 |
Go | Go | remove devicemapper lazy initialization | b5795749d1688f99df422dd7068b189e5b25e5e9 | <ide><path>devmapper/deviceset.go
<ide> type MetaData struct {
<ide> type DeviceSet struct {
<ide> MetaData
<ide> sync.Mutex
<del> initialized bool
<ide> root string
<ide> devicePrefix string
<ide> TransactionId uint64
<ide> func (devices *DeviceSet) AddDevice(hash, baseHash string) error {... | 2 |
Ruby | Ruby | fix deprecation warnings in action text tests | e9e2fd6f9f4033ca67ddb65c32fd658fefcbbd92 | <ide><path>actiontext/test/integration/controller_render_test.rb
<ide>
<ide> class ActionText::ControllerRenderTest < ActionDispatch::IntegrationTest
<ide> test "uses current request environment" do
<del> blob = create_file_blob(filename: "racecar.jpg", content_type: "image/jpg")
<add> blob = create_file_blob(... | 2 |
Text | Text | adjust install instructions [ci skip] | ef59ce783b9f1f1ce69b2316e9b705e21021e804 | <ide><path>website/docs/usage/index.md
<ide> source code and recompiling frequently.
<ide> previous installs with `pip uninstall spacy`, which you may need to run
<ide> multiple times to remove all traces of earlier installs.
<ide>
<del> ```diff
<del> - $ pip install .
<del> + $ pip install -r requirements.txt
... | 1 |
Java | Java | update eviction queue before size | b451379c2f6da834a24d230bc9f1355660da3e7c | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/broker/DefaultSubscriptionRegistry.java
<ide> public LinkedMultiValueMap<String, String> getSubscriptions(String destination)
<ide> if (sessionIdToSubscriptionIds == null) {
<ide> sessionIdToSubscriptionIds = this.destinationCache.compu... | 1 |
Python | Python | add option to predict on test set | 5adb39e757183a00b946d3b0571e1983fd0e26b7 | <ide><path>examples/run_ner.py
<ide> def train(args, train_dataset, model, tokenizer, labels, pad_token_label_id):
<ide> if args.local_rank in [-1, 0] and args.logging_steps > 0 and global_step % args.logging_steps == 0:
<ide> # Log metrics
<ide> if args.local_ran... | 2 |
Javascript | Javascript | fix a bug of ci linet error (src/menu-helpers.js) | 31422befed73d76285b1c6c1c4f0db8a106281b7 | <ide><path>src/menu-helpers.js
<ide> function findMatchingItemIndex(menu, { type, id, submenu }) {
<ide> }
<ide> for (let index = 0; index < menu.length; index++) {
<ide> const item = menu[index];
<del> if (
<del> item.id === id && (item.submenu != null) === (submenu != null)
<del> ) {
<add> if (i... | 1 |
PHP | PHP | add ability to inject route instances | ac4f411ac3a772c9f4660cf08c9e8f3f62b1bb4d | <ide><path>src/Routing/ScopedRouteCollection.php
<ide> public function connect($route, array $defaults = [], $options = []) {
<ide> $options['_ext'] = $this->_extensions;
<ide> }
<ide>
<del> // TODO don't hardcode
<del> $routeClass = 'Cake\Routing\Route\Route';
<del> if (isset($options['routeClass'])) {
<del> ... | 2 |
Ruby | Ruby | fix descendanttracker.clear on ruby 3.1 | cb82f5f0a438c7be64ca1c0633556f6a535138b6 | <ide><path>activesupport/lib/active_support/core_ext/class/subclasses.rb
<ide> def descendants
<ide> ObjectSpace.each_object(singleton_class).reject do |k|
<ide> k.singleton_class? || k == self
<ide> end
<del> end unless ActiveSupport::RubyFeatures::CLASS_DESCENDANTS
<add> end unless ActiveSupport::Ruby... | 5 |
PHP | PHP | prevent surpirses with folder not being available | 010feb2092fde218695d0505f0ec6b08e77793ab | <ide><path>lib/Cake/Console/Command/SchemaShell.php
<ide> * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
<ide> */
<ide> App::uses('File', 'Utility');
<add>App::uses('Folder', 'Utility');
<ide> App::uses('CakeSchema', 'Model');
<ide>
<ide> /**
<ide> public function generate() {
<ide... | 5 |
Go | Go | remove curl function from future | b0265e0a38a71fdbebf3b6ef53120249d399e293 | <ide><path>future/future.go
<ide> import (
<ide> "io"
<ide> "math/rand"
<ide> "net/http"
<del> "os/exec"
<ide> "time"
<ide> )
<ide>
<ide> func Pv(src io.Reader, info io.Writer) io.Reader {
<ide> return r
<ide> }
<ide>
<del>// Curl makes an http request by executing the unix command 'curl', and returns
<del>// th... | 1 |
Text | Text | add note on batch contract for listeners | 52b8c2d2e0241e1c515131c5e5f576d5dad65059 | <ide><path>website/docs/api/architectures.md
<ide> Instead of defining its own `Tok2Vec` instance, a model architecture like
<ide> [Tagger](/api/architectures#tagger) can define a listener as its `tok2vec`
<ide> argument that connects to the shared `tok2vec` component in the pipeline.
<ide>
<add>Listeners work by cach... | 1 |
Text | Text | add arm64 to os.machine() | 490c3d69898f53a5317f4dff35fa9e19d357763e | <ide><path>doc/api/os.md
<ide> added:
<ide>
<ide> * Returns {string}
<ide>
<del>Returns the machine type as a string, such as `arm`, `aarch64`, `mips`,
<del>`mips64`, `ppc64`, `ppc64le`, `s390`, `s390x`, `i386`, `i686`, `x86_64`.
<add>Returns the machine type as a string, such as `arm`, `arm64`, `aarch64`,
<add>`mips... | 1 |
Ruby | Ruby | use enumerator for blockless range#step | 99664d54440f6420e9f9c3753dda295cb3bbbc9f | <ide><path>activesupport/lib/active_support/core_ext/range/blockless_step.rb
<ide> def self.included(base) #:nodoc:
<ide> base.alias_method_chain :step, :blockless
<ide> end
<ide>
<del> def step_with_blockless(value, &block)
<del> if block_given?
<del> step_without_blockles... | 1 |
Text | Text | fix all links to point to /react as root | 0475834470e1acac60b6f16c0f82f0e1f4cfc20f | <ide><path>docs/cookbook/cb-01-introduction.md
<ide> layout: docs
<ide> permalink: introduction.html
<ide> ---
<ide>
<del>The React.js cookbook provides solutions for common questions asked when working with the React framework. It's written in the [cookbook format](http://shop.oreilly.com/category/series/cookbooks.do... | 11 |
Javascript | Javascript | fix navigation jump on multi-tap | b3886652ab96fda55ed579abb54344178ddcf877 | <ide><path>Libraries/CustomComponents/Navigator/Navigator.js
<ide> var Navigator = React.createClass({
<ide> },
<ide>
<ide> _transitionTo: function(destIndex, velocity, jumpSpringTo, cb) {
<add> if (
<add> destIndex === this.state.presentedIndex &&
<add> this.state.transitionQueue.length === 0
<add> ... | 1 |
Go | Go | define consts for ipcmode | 98f0f0dd87d42f2372412795bfd013f94a9c1cf2 | <ide><path>api/server/router/container/container_routes.go
<ide> func (s *containerRouter) postContainersCreate(ctx context.Context, w http.Respo
<ide>
<ide> // Older clients (API < 1.40) expects the default to be shareable, make them happy
<ide> if hostConfig.IpcMode.IsEmpty() {
<del> hostConfig.IpcMode = conta... | 7 |
Javascript | Javascript | improve hash caching | 43df5e3cde5c99d83369cb6566a05c09a4b9f6eb | <ide><path>lib/util/createHash.js
<ide>
<ide> const Hash = require("./Hash");
<ide>
<del>const BULK_SIZE = 1000;
<add>const BULK_SIZE = 2000;
<ide>
<del>const digestCache = new Map();
<add>// We are using an object instead of a Map as this will stay static during the runtime
<add>// so access to it can be optimized ... | 1 |
Text | Text | update teletype roadmap to reflect recent progress | 39fcb66ed269ea0a43bdc0e4c3ea33a3b2b4c8cf | <ide><path>docs/focus/README.md
<ide> Longer-term goal: Provide the world's fastest transition from "I want to collabo
<ide>
<ide> In no particular order:
<ide>
<del>- [ ] 🐛 Resolve or reduce impact of package initialization errors (https://github.com/atom/teletype/issues/266)
<add>- [x] 🐛 Resolve or reduce impact ... | 1 |
Python | Python | delete a needless duplicate condition | f0329ea516d1562c9e7442b87e5eb76d2b876eae | <ide><path>src/transformers/generation_logits_process.py
<ide> def __init__(self, diversity_penalty: float, num_beams: int, num_beam_groups: in
<ide> raise ValueError("`num_beam_groups` should be an integer strictly larger than 1.")
<ide> if num_beam_groups > num_beams:
<ide> raise Value... | 1 |
PHP | PHP | replace deprecated phpunit methods | b81c4cef61996a579ee172c3fefe4f6ec663bb19 | <ide><path>tests/Database/DatabaseEloquentModelTest.php
<ide> public function testToArray()
<ide> $model->setRelation('multi', new BaseCollection);
<ide> $array = $model->toArray();
<ide>
<del> $this->assertInternalType('array', $array);
<add> $this->assertIsArray($array);
<ide> $... | 6 |
Text | Text | use "caveats" name explicitly | 9b0b10ca03b10d6886b25c98e5a5a197504c990f | <ide><path>docs/Formula-Cookbook.md
<ide> Homebrew expects to find manual pages in `#{prefix}/share/man/...`, and not in `
<ide>
<ide> Some software installs to `man` instead of `share/man`, so check the output and add a `"--mandir=#{man}"` to the `./configure` line if needed.
<ide>
<del>### Special instructions
<add... | 1 |
Python | Python | remove last bits of parsermixin | 941742593c50dcb0e1ca426621d107f12c9ee65c | <ide><path>djangorestframework/parsers.py
<ide> except ImportError:
<ide> from cgi import parse_qs
<ide>
<del>class ParserMixin(object):
<del> parsers = ()
<del>
<del>
<ide>
<ide>
<ide> class BaseParser(object):
<ide><path>djangorestframework/request.py
<ide> from StringIO import StringIO
<ide>
<ide> class R... | 4 |
Text | Text | fix typo in text | d2167c573d23ec95bd85b1b9fa040b4c5234542b | <ide><path>guide/english/vim/modes/index.md
<ide> certain key presses can:
<ide> - **k** move one row up
<ide> - **l** move one character right
<ide>
<del>As many vim commands, row movement can be prefixed by a number to move s
<del>everal lines at a time: ... | 1 |
Javascript | Javascript | remove useless line | 72ce9baa75434f64e42ee4e666897ddfd754c822 | <ide><path>lib/stream.js
<ide> Stream.prototype.pipe = function(dest, options) {
<ide> source.removeListener('end', cleanup);
<ide> source.removeListener('close', cleanup);
<ide>
<del> dest.removeListener('end', cleanup);
<ide> dest.removeListener('close', cleanup);
<ide> }
<ide> | 1 |
Javascript | Javascript | remove quotes from object keys | 33faa3bada8084b38cb12f204abf240f7be0bea1 | <ide><path>server/boot/randomAPIs.js
<ide> module.exports = function(app) {
<ide> return res.redirect('/map');
<ide> }
<ide> return user.updateAttributes({
<del> 'sendMonthlyEmail': false,
<del> 'sendQuincyEmail': false,
<del> 'sendNotificationEmail': false
<add> sendMont... | 1 |
Python | Python | fix lint error | 283de38b29e304afb918fef58b96ef50d328c0b9 | <ide><path>official/recommendation/ncf_keras_main.py
<ide> def run_ncf(_):
<ide> if keras_utils.is_v2_0() and strategy is not None:
<ide> logging.error("NCF Keras only works with distribution strategy in TF 2.0")
<ide> return
<del>
<add>
<ide> if (params["keras_use_ctl"] and (
<ide> not keras_utils.... | 1 |
Text | Text | update readme with warning about withmutations | 0efba239d432152f3b660aac202aaf58d7ef5fc1 | <ide><path>README.md
<ide> Batching Mutations
<ide> > — Rich Hickey, Clojure
<ide>
<ide> Applying a mutation to create a new immutable object results in some overhead,
<del>which can add up to a performance penalty. If you need to apply a series of
<del>mutations locally before returning, `Immutable` gives you the abi... | 1 |
Python | Python | improve error message wrt get_config missing | 9de9148614562785b4e58e53cb2cd60052301729 | <ide><path>keras/engine/base_layer.py
<ide> def get_config(self):
<ide> textwrap.dedent(
<ide> f"""
<ide> Layer {self.__class__.__name__} has arguments {extra_args}
<del> in `__init__` and therefore must override `get_config()`.
<add> in `__init__()` and t... | 1 |
Mixed | Javascript | use sentence case for class property | 936ce85c0be81f73304249aa5861436d4b71cc23 | <ide><path>doc/api/buffer.md
<ide> console.log(Buffer.isEncoding(''));
<ide> // Prints: false
<ide> ```
<ide>
<del>### Class Property: `Buffer.poolSize`
<add>### Class property: `Buffer.poolSize`
<ide> <!-- YAML
<ide> added: v0.11.3
<ide> -->
<ide><path>tools/doc/json.js
<ide> const eventPrefix = '^Event: +';
<ide> co... | 2 |
Javascript | Javascript | make head method to work with keep-alive" | f504c9c6b897f14891f147ad4a05e743133a0d35 | <ide><path>lib/_http_outgoing.js
<ide> function _storeHeader(firstLine, headers) {
<ide> }
<ide>
<ide> if (!state.contLen && !state.te) {
<del> if (!this._hasBody && (this.statusCode === 204 ||
<del> this.statusCode === 304)) {
<add> if (!this._hasBody) {
<ide> // Make sure we... | 2 |
Ruby | Ruby | prefer pathname methods over regexp matching | 4f014836f2a5603a05a6de686ef4a298706111c9 | <ide><path>Library/Homebrew/formula_cellar_checks.rb
<ide> def check_infopages
<ide>
<ide> def check_jars
<ide> return unless f.lib.directory?
<del>
<del> jars = f.lib.children.select{|g| g.to_s =~ /\.jar$/}
<add> jars = f.lib.children.select { |g| g.extname == ".jar" }
<ide> return if jars.empty?
<ide... | 1 |
Go | Go | move daemon stores to per platform | 3aa4a0071536d3b106374eaa44d8a55765901aa6 | <ide><path>api/server/backend/build/backend.go
<ide> import (
<ide> // ImageComponent provides an interface for working with images
<ide> type ImageComponent interface {
<ide> SquashImage(from string, to string) (string, error)
<del> TagImageWithReference(image.ID, reference.Named) error
<add> TagImageWithReference(im... | 40 |
Javascript | Javascript | add back accessibilitystates until next release | 69020a8e877d68af2fec0becd008f3a48c3af8e7 | <ide><path>Libraries/Components/View/ReactNativeViewViewConfig.js
<ide> const ReactNativeViewConfig = {
<ide> accessibilityLabel: true,
<ide> accessibilityLiveRegion: true,
<ide> accessibilityRole: true,
<add> accessibilityStates: true, // TODO: Can be removed after next release
<ide> accessibilitySt... | 1 |
Ruby | Ruby | use errors[field] instead of errors.on(field) | 5267addd4f986c89df3d31f35e046abc3b1fbe26 | <ide><path>actionpack/lib/action_view/helpers/active_record_helper.rb
<ide> def error_message_on(object, method, *args)
<ide> options.reverse_merge!(:prepend_text => '', :append_text => '', :css_class => 'formError')
<ide>
<ide> if (obj = (object.respond_to?(:errors) ? object : instance_variable_get("@... | 3 |
Python | Python | fix migration for mssql | a16088694908b45eefb5b1ab294dd2d706d6e540 | <ide><path>airflow/migrations/versions/852ae6c715af_add_rendered_task_instance_fields_table.py
<ide> def upgrade():
<ide> # versions, check for the function existing.
<ide> try:
<ide> conn.execute("SELECT JSON_VALID(1)").fetchone()
<del> except sa.exc.OperationalError:
<add> ex... | 1 |
Text | Text | add trailing slash | 9043df6be7617cdb3b24206cb8ba38d1b9942454 | <ide><path>docs/tutorial/2-requests-and-responses.md
<ide> Now update the `snippets/urls.py` file slightly, to append a set of `format_suff
<ide>
<ide> urlpatterns = [
<ide> path('snippets/', views.snippet_list),
<del> path('snippets/<int:pk>', views.snippet_detail),
<add> path('snippets/<int... | 1 |
Text | Text | add table of contents to readme.md | f62d9fc89fa988742f10a8bad338bc4132ef5525 | <ide><path>README.md
<ide> policies, and releases are managed under an
<ide> If you need help using or installing Node.js, please use the
<ide> [nodejs/help](https://github.com/nodejs/help) issue tracker.
<ide>
<add>
<add># Table of Contents
<add>
<add>* [Resources for Newcomers](#resources-for-newcomers)
<add>* [Rele... | 1 |
Go | Go | fix issues in pkg/nat | 15d01d6e6c57f4b8a39dddd2676a2d6914c62c77 | <ide><path>api/client/port.go
<ide> func (cli *DockerCli) CmdPort(args ...string) error {
<ide> }
<ide> if frontends, exists := c.NetworkSettings.Ports[newP]; exists && frontends != nil {
<ide> for _, frontend := range frontends {
<del> fmt.Fprintf(cli.out, "%s:%s\n", frontend.HostIp, frontend.HostPort)
<add>... | 8 |
Ruby | Ruby | remove unnecessary method | b329fbb5f2706e4b3c5d9e098881f4e90d3c9a44 | <ide><path>actionpack/lib/action_controller/metal/testing.rb
<ide> module Testing
<ide>
<ide> # Behavior specific to functional tests
<ide> module Functional # :nodoc:
<del> def set_response!(request)
<del> end
<del>
<ide> def recycle!
<ide> @_url_options = nil
<ide> self.format... | 1 |
Mixed | Ruby | add helper method (#37) | bc98fd37882c64c896dc2243fcc6e129f170a32a | <ide><path>Library/Homebrew/cleanup.rb
<ide> def self.cleanup_cache
<ide> cleanup_path(path) { path.unlink }
<ide> next
<ide> end
<del> if path.basename.to_s == "java_cache" && path.directory?
<add> if %w[java_cache npm_cache].include?(path.basename.to_s) && path.directory?
<id... | 5 |
Javascript | Javascript | fix wrong variable name | 90452836fe63bf47b88a5ee04e449600453c95f5 | <ide><path>spec/text-editor-component-spec.js
<ide> function setScrollTop (component, scrollTop) {
<ide> return component.getNextUpdatePromise()
<ide> }
<ide>
<del>function setScrollLeft (component, scrollTop) {
<del> component.setScrollLeft(scrollTop)
<add>function setScrollLeft (component, scrollLeft) {
<add> co... | 1 |
Javascript | Javascript | fix dock hiding on drag | 9259372f23573485c5f7bec696560aadce825e96 | <ide><path>src/dock.js
<ide> module.exports = class Dock {
<ide> this.show()
<ide> this.didActivate(this)
<ide> }),
<del> this.paneContainer.onDidDestroyPaneItem(this.handleDidRemovePaneItem.bind(this)),
<add> this.paneContainer.observePanes(pane => {
<add> pane.onDidRemoveItem(th... | 1 |
Text | Text | remove extraneous line for local setup | 8d0c027fa4ed710eb529f6510ddc12e2f1b3bd7b | <ide><path>CONTRIBUTING.md
<ide> Contributing to this requires some understanding of APIs, ES6 Syntax, and a lot
<ide>
<ide> Essentially, we expect basic familiarity with some of the aforementioned technologies, tools, and libraries. With that being said, you are not required to be an expert on them in order to contri... | 1 |
Python | Python | fix static checks | b0b25910713dd39e0193bdcd95b2cfd9e3fed5e7 | <ide><path>airflow/providers/cncf/kubernetes/operators/spark_kubernetes.py
<ide> class SparkKubernetesOperator(BaseOperator):
<ide> For more detail about Spark Application Object have a look at the reference:
<ide> https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/blob/v1beta2-1.1.0-2.4.5/doc... | 1 |
Ruby | Ruby | remove unused variable | 2b92069a4985ea21ba12ca726eb15b2daa7bd162 | <ide><path>activesupport/test/file_update_checker_shared_tests.rb
<ide> def run(*args)
<ide>
<ide> FileUtils.touch(tmpfiles)
<ide>
<del> now = Time.now
<ide> time = Time.at(0) # wrong mtime from the future
<ide> File.utime(time, time, tmpfiles[0])
<ide> | 1 |
Javascript | Javascript | handle null as valid value for reduce. #108 | ddf5a77451a386f5f7e6def153448db6bd0e89e1 | <ide><path>dist/Immutable.js
<ide> var $Sequence = Sequence;
<ide> reduce: function(reducer, initialReduction, thisArg) {
<ide> var reduction;
<ide> var useFirst;
<del> if (arguments.length < 2 || initialReduction === null) {
<add> if (arguments.length < 2) {
<ide> useFirst = true;
<ide> } els... | 3 |
Text | Text | add api change to docs | bfe711bed342202ed0918a309b2000bb158c4eb7 | <ide><path>docs/reference/api/docker_remote_api.md
<ide> This section lists each version from latest to oldest. Each listing includes a
<ide> [Docker Remote API v1.22](docker_remote_api_v1.22.md) documentation
<ide>
<ide> * `GET /containers/json` supports filter `isolation` on Windows.
<add>* `GET /networks/(name)` n... | 4 |
Mixed | Text | add allowany permission | d995742afc09ff8d387751a6fe47b9686845740b | <ide><path>docs/api-guide/permissions.md
<ide> The default permission policy may be set globally, using the `DEFAULT_PERMISSION
<ide> )
<ide> }
<ide>
<add>If not specified, this setting defaults to allowing unrestricted access:
<add>
<add> 'DEFAULT_PERMISSION_CLASSES': (
<add> 'rest_framework.perm... | 3 |
Go | Go | enable fluentd logdriver | cff9679c6cdd0b7f3dc691ed00f294ac93274c1d | <ide><path>daemon/logdrivers_windows.go
<ide> import (
<ide> // therefore they register themselves to the logdriver factory.
<ide> _ "github.com/docker/docker/daemon/logger/awslogs"
<ide> _ "github.com/docker/docker/daemon/logger/etwlogs"
<add> _ "github.com/docker/docker/daemon/logger/fluentd"
<ide> _ "github.com/... | 1 |
Python | Python | create copy of inputs if list | c2321e61e1732f7a27841eca36cdaf34ed5d26dd | <ide><path>keras/engine/topology.py
<ide> def __call__(self, inputs, **kwargs):
<ide> ValueError: in case the layer is missing shape information
<ide> for its `build` call.
<ide> """
<add> if type(inputs) is list:
<add> inputs = inputs[:]
<ide> with K.name_s... | 1 |
Ruby | Ruby | fix github version parser with multidigit number | 04855ddd484389bc8292a4d82106185466a3eb89 | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def version
<ide>
<ide> # github tarballs are special
<ide> # we only support numbered tagged downloads
<del> %r[github.com/.*/tarball/v?((\d\.)+\d)$].match to_s
<add> %r[github.com/.*/tarball/v?((\d\.)+\d+)$].match to_s
<ide> return $1 if $1
<ide>... | 2 |
Javascript | Javascript | fix a typo and remove unwanted code | e3d68ff401fc21f99757bde29355c577dab2847d | <ide><path>server/index.js
<ide> import http, { STATUS_CODES } from 'http'
<ide> import {
<ide> renderToHTML,
<ide> renderErrorToHTML,
<del> renderJSON,
<del> renderErrorJSON,
<ide> sendHTML,
<ide> serveStatic,
<ide> renderScript,
<ide> export default class Server {
<ide> const error = new Error('... | 2 |
Text | Text | add licensing information to readme | a4a023580bc89fb34e5f80ca472fc70267546eaf | <ide><path>README.md
<ide> It is your responsibility to ensure that your use and/or transfer does not
<ide> violate applicable laws.
<ide>
<ide> For more information, please see http://www.bis.doc.gov
<add>
<add>
<add>Licensing
<add>=========
<add>Docker is licensed under the Apache License, Version 2.0. See LICENSE ... | 1 |
PHP | PHP | add forge to links | c309b4fda02a3bc327bb06dd8ee1ae94207330e2 | <ide><path>resources/views/welcome.blade.php
<ide> <div class="links">
<ide> <a href="https://laravel.com/docs">Documentation</a>
<ide> <a href="https://laracasts.com">Laracasts</a>
<add> <a href="https://forge.laravel.com">Forge</a>
<ide> ... | 1 |
PHP | PHP | fix more usage of config() | db7943d14ed05f060f35b67a86915ae24cc49031 | <ide><path>tests/TestCase/Http/ClientTest.php
<ide> public function testConstructConfig()
<ide> 'host' => 'example.org',
<ide> ];
<ide> $http = new Client($config);
<del> $result = $http->config();
<add> $result = $http->getConfig();
<ide> foreach ($config as $key => $v... | 12 |
Text | Text | add v3.17.0-beta.2 to changelog | 99e796a0ae52bc161b8541d0e481d27b7f21164c | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.17.0-beta.2 (January 29, 2020)
<add>
<add>- [#18691](https://github.com/emberjs/ember.js/pull/18691) [BUGFIX] Updated blueprints for component and helper tests to output the correct hbs import statement
<add>- [#18694](https://github.com/emberjs/ember.... | 1 |
PHP | PHP | use array instead of boolean | d0a26a3565cd67b306452deef4877f86cd352750 | <ide><path>src/View/Helper/PaginatorHelper.php
<ide> public function sort($key, $title = null, array $options = [])
<ide> *
<ide> * @param array $options Pagination/URL options array
<ide> * @param string|null $model Which model to paginate on
<del> * @param array|bool $urlOptions Array of options or... | 1 |
Javascript | Javascript | fix amd mode for the new showhide module | 32cfc38a9c76d1f9163759c811cb9c82eb47d565 | <ide><path>src/css/showHide.js
<ide> define( [
<add> "../core",
<ide> "../data/var/dataPriv",
<ide> "../css/var/isHidden"
<del>], function( dataPriv, isHidden ) {
<add>], function( jQuery, dataPriv, isHidden ) {
<ide>
<ide> function showHide( elements, show ) {
<ide> var display, elem, | 1 |
Python | Python | fix converter cli | 2b3b937a04622d13e30204ff4553d6815a841289 | <ide><path>spacy/cli/convert.py
<ide> from .converters import conllu2json, iob2json
<ide> from ..util import prints
<ide>
<del>
<ide> # Converters are matched by file extension. To add a converter, add a new entry
<ide> # to this dict with the file extension mapped to the converter function imported
<ide> # from /conv... | 1 |
Javascript | Javascript | add noodler to showcase | 3714029a6798066065355628146ed4f2c2401d95 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/ca/app/ncredible/id1019662810?mt=8',
<ide> author: 'NBC News Digital, LLC',
<ide> },
<add> {
<add> name: 'Noodler',
<add> icon: 'http://a5.mzstatic.com/us/r30/Purple6/v4/d9/9a/69/d99a6919-7f11-35ad-... | 1 |
Ruby | Ruby | fix install script for ruby 1.9.x | c1568ab27746d993ec2d25276c625e42297d7555 | <ide><path>install_homebrew.rb
<ide> def sudo *args
<ide> args = if args.length > 1
<ide> args.unshift "/usr/bin/sudo"
<ide> else
<del> "/usr/bin/sudo #{args}"
<add> "/usr/bin/sudo #{args.first}"
<ide> end
<ide> ohai *args
<ide> system *args | 1 |
Mixed | Python | increase str conversion limit where required | d407476531dd85db79e58aa2dd13d3b3031d8185 | <ide><path>DIRECTORY.md
<ide> * [Modular Division](blockchain/modular_division.py)
<ide>
<ide> ## Boolean Algebra
<add> * [And Gate](boolean_algebra/and_gate.py)
<ide> * [Norgate](boolean_algebra/norgate.py)
<ide> * [Quine Mc Cluskey](boolean_algebra/quine_mc_cluskey.py)
<ide>
<ide> * [Sol1](project_euler/... | 2 |
Javascript | Javascript | use strict mode for js files | f4282f98026f317312e7f7ada1eade17cf13d36c | <ide><path>fonts.js
<ide> /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
<ide> /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
<ide>
<add>"use strict";
<add>
<ide> /**
<ide> * Maximum file size of the font.
<ide> */
<ide> var Type1Parser = function() {
<ide> thi... | 5 |
Ruby | Ruby | add reason argument | 9f382bfd538cfdefd17712a19cd426ba4917175e | <ide><path>Library/Homebrew/dev-cmd/boneyard-formula-pr.rb
<ide> #: @hide_from_man_page
<del>#: * `boneyard-formula-pr` [`--dry-run`] [`--local`] <formula-name>:
<add>#: * `boneyard-formula-pr` [`--dry-run`] [`--local`] [`--reason=<reason>`] <formula-name> :
<ide> #: Creates a pull request to boneyard a formula.
... | 1 |
Go | Go | remove unused ctx from v1pusher | a4dbbe7d898ae6db366076cbe13049a8f88fc731 | <ide><path>distribution/push_v1.go
<ide> import (
<ide> )
<ide>
<ide> type v1Pusher struct {
<del> ctx context.Context
<ide> v1IDService *metadata.V1IDService
<ide> endpoint registry.APIEndpoint
<ide> ref reference.Named | 1 |
Ruby | Ruby | improve the way we spec this | 2eea340b2269aab85cead2a5e024d6ff9abd6c91 | <ide><path>spec/arel/algebra/unit/relations/relation_spec.rb
<ide> module Arel
<ide>
<ide> describe Relation::Enumerable do
<ide> it "implements enumerable" do
<del> check @relation.collect.should == @relation.session.read(@relation).collect
<del> @relation.first.should == @relation.session.r... | 1 |
Text | Text | remove a reference to ruby 1.9 in guides | 74dc57640d856b2a8d424db02b156ded62513eb9 | <ide><path>guides/source/active_support_core_extensions.md
<ide> Returns the substring of the string starting at position `position`:
<ide> "hello".from(0) # => "hello"
<ide> "hello".from(2) # => "llo"
<ide> "hello".from(-2) # => "lo"
<del>"hello".from(10) # => "" if < 1.9, nil in 1.9
<add>"hello".from(10) # => nil
<... | 1 |
Javascript | Javascript | clarify difference between value and ngvalue | dc0467879de9f5891470cfea425370874aef2541 | <ide><path>src/ng/directive/input.js
<ide> var inputType = {
<ide> * HTML radio button.
<ide> *
<ide> * @param {string} ngModel Assignable angular expression to data-bind to.
<del> * @param {string} value The value to which the expression should be set when selected.
<add> * @param {string} value The value... | 1 |
Text | Text | fix deprecation warnings in addon examples | 2c75a6b39f21361b9813207a11662d9d41cf6a60 | <ide><path>doc/api/addons.md
<ide> prototype:
<ide>
<ide> namespace demo {
<ide>
<add>using v8::Context;
<ide> using v8::Function;
<ide> using v8::FunctionCallbackInfo;
<ide> using v8::FunctionTemplate;
<ide> void MyObject::New(const FunctionCallbackInfo<Value>& args) {
<ide> // Invoked as plain function `MyObjec... | 1 |
Ruby | Ruby | add tests for oldname optlink | dc4feaf56b5ba36c579277ea8fbc2f983f2bcdf0 | <ide><path>Library/Homebrew/test/test_keg.rb
<ide> def test_unlinking_keg
<ide> refute_predicate @dst, :symlink?
<ide> end
<ide>
<add> def test_oldname_opt_record
<add> assert_nil @keg.oldname_opt_record
<add> oldname_opt_record = HOMEBREW_PREFIX/"opt/oldfoo"
<add> oldname_opt_record.make_relative_syml... | 1 |
Javascript | Javascript | fix minor typo | da3dc5c5fe4d7ea3c174f0df98f2aaa282eefef2 | <ide><path>src/ng/directive/ngSwitch.js
<ide> * attribute is displayed.
<ide> *
<ide> * @animations
<del> * enter - happens after the ngSwtich contents change and the matched child element is placed inside the container
<add> * enter - happens after the ngSwitch contents change and the matched child element is place... | 1 |
Ruby | Ruby | remove run_initializers from class methods | e061a12a156791c35bba092263ad216b1b938502 | <ide><path>railties/lib/rails/initializable.rb
<ide> def initializer(name, opts = {}, &blk)
<ide> opts[:after] ||= initializers.last.name unless initializers.empty? || initializers.find { |i| i.name == opts[:before] }
<ide> initializers << Initializer.new(name, nil, opts, &blk)
<ide> end
<del>
<de... | 2 |
Python | Python | update comments to reflect new functionality | 6fa1889afb62fb01e8413584aa7abc293245fcfc | <ide><path>scripts/flaskext_migrate.py
<ide> # Script which modifies source code away from the deprecated "flask.ext"
<del># format. Does not yet fully support imports in the style:
<del>#
<del># "import flask.ext.foo"
<del>#
<add># format.
<ide> #
<ide> # Run in the terminal by typing: `python flaskext_migrate.py <sou... | 1 |
Text | Text | remove outdated link | 1656cd2edbf566acd1c1efc299bd712df59e2847 | <ide><path>doc/api/v8.md
<ide> after the VM has started may result in unpredictable behavior, including
<ide> crashes and data loss; or it may simply do nothing.
<ide>
<ide> The V8 options available for a version of Node.js may be determined by running
<del>`node --v8-options`. An unofficial, community-maintained list... | 1 |
Text | Text | improve formatting and clarity in "subset" | 2b3bd5c52d33ecd83b2f716a99ecacfc39914888 | <ide><path>curriculum/challenges/english/08-coding-interview-prep/data-structures/perform-a-subset-check-on-two-sets-of-data.english.md
<ide> forumTopicId: 301707
<ide>
<ide> ## Description
<ide> <section id='description'>
<del>In this exercise we are going to perform a subset test on 2 sets of data. We will create a ... | 1 |
Javascript | Javascript | add test case | 21ca681cd91d985de070540059296472900f4fe7 | <ide><path>test/cases/parsing/local-modules/index.js
<del>it("should define and require a local module", function() {
<add>it("should define and require a local module", function () {
<ide> module.exports = "not set";
<del> define("my-module", function() {
<add> define("my-module", function () {
<ide> return 1234;
<... | 1 |
Javascript | Javascript | use geturl() in historylocation | e0f7c70256a696538fd1f91b2d70025134a6551b | <ide><path>packages/ember-routing/lib/location/history_location.js
<ide> Ember.HistoryLocation = Ember.Object.extend({
<ide> @method initState
<ide> */
<ide> initState: function() {
<del> this.replaceState(get(this, 'location').pathname);
<add> this.replaceState(this.formatURL(this.getURL()));
<ide> s... | 1 |
Javascript | Javascript | add util-deprecate to snapshot blacklist | 32e92c13f0ff608ca78299544841ab1b0c649add | <ide><path>script/lib/generate-startup-snapshot.js
<ide> module.exports = function(packagedAppPath) {
<ide> path.join('..', 'node_modules', 'tree-sitter', 'index.js') ||
<ide> requiredModuleRelativePath ===
<ide> path.join('..', 'node_modules', 'yauzl', 'index.js') ||
<add> requiredMo... | 1 |
Go | Go | add restart policy to restart policy tests | de1dad7074c84f56dd8f29bca0de29ba1e4ae6ce | <ide><path>integration-cli/docker_cli_kill_test.go
<ide> func (s *DockerSuite) TestKillWithSignal(c *check.C) {
<ide> func (s *DockerSuite) TestKillWithStopSignalWithSameSignalShouldDisableRestartPolicy(c *check.C) {
<ide> // Cannot port to Windows - does not support signals int the same way as Linux does
<ide> testR... | 1 |
Python | Python | delay import of shlex to reduce startup time | b78d3be51653f6241214f6354303bd261af1b426 | <ide><path>numpy/testing/numpytest.py
<ide> import sys
<ide> import imp
<ide> import types
<del>import shlex
<ide> import unittest
<ide> import traceback
<ide> import warnings
<ide> def run(self):
<ide> """ Run Numpy module test suite with level and verbosity
<ide> taken from sys.argv. Requires optparse... | 1 |
PHP | PHP | remove deprecation notice | d14c2064fa5ba4e66ae6b691e0f92cc01c7fbea3 | <ide><path>src/Validation/Validation.php
<ide> public static function comparison($check1, $operator, $check2)
<ide> * @param string $field The field to check $check against. This field must be present in $context.
<ide> * @param array $context The validation context.
<ide> * @return bool
<del> * @dep... | 1 |
Javascript | Javascript | fix module tests which got disabled by ngmobile | 5da6b125a7447b4bbabb88b2d82b5634b55c3aea | <ide><path>angularFiles.js
<ide> angularFiles = {
<ide>
<ide> 'angularScenario': [
<ide> 'src/ngScenario/Scenario.js',
<add> 'src/ngScenario/browserTrigger.js',
<ide> 'src/ngScenario/Application.js',
<ide> 'src/ngScenario/Describe.js',
<ide> 'src/ngScenario/Future.js',
<ide> angularFiles = {
<ide>... | 4 |
Javascript | Javascript | add canuseeventlisteners to executionenvironment | a21979404c93d5e548ebe6e372e4c80b0eacf625 | <ide><path>src/vendor/core/ExecutionEnvironment.js
<ide> var ExecutionEnvironment = {
<ide>
<ide> canUseWorkers: typeof Worker !== 'undefined',
<ide>
<add> canUseEventListeners:
<add> canUseDOM && (window.addEventListener || window.attachEvent),
<add>
<ide> isInWorker: !canUseDOM // For now, this is true - mi... | 1 |
Python | Python | fix improper getresponse() uses | 23f400ed6d7902284ba316730c7550c0c76937e1 | <ide><path>libcloud/common/brightbox.py
<ide> def _fetch_oauth_token(self):
<ide> response = self.connection.request(method='POST', url='/token',
<ide> body=body, headers=headers)
<ide>
<del> response = self.connection.getresponse()
<del>
<ide> if respo... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.