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 |
|---|---|---|---|---|---|
Ruby | Ruby | move wrap_scope to class level | 19c36778822c09c6159c538478f296459f592687 | <ide><path>activerecord/lib/active_record/associations/builder/collection_association.rb
<ide> def initialize(name, scope, options, extension)
<ide> super
<ide>
<ide> if extension
<del> @scope = wrap_scope @scope, extension
<add> @scope = self.class.wrap_scope @scope, extension
<ide> en... | 1 |
Javascript | Javascript | use decodestrings public api for writable stream | 79aab5dd7cfe30f807b5d197c95aea9dd59ecb40 | <ide><path>lib/net.js
<ide> function Socket(options) {
<ide> options.allowHalfOpen = true;
<ide> // For backwards compat do not emit close on destroy.
<ide> options.emitClose = false;
<add> // Handle strings directly.
<add> options.decodeStrings = false;
<ide> stream.Duplex.call(this, options);
<ide>
<ide> ... | 1 |
Text | Text | fix objective-c example in readme | 015136f36eda5ec2ac08778b32b4fd10e331bd8a | <ide><path>README.md
<ide> Custom iOS views can be exposed by subclassing `RCTViewManager`, implementing a
<ide>
<ide> RCT_EXPORT_VIEW_PROPERTY(myCustomProperty);
<ide>
<del>@end`}
<add>@end
<ide> ```
<ide>
<ide> ```javascript | 1 |
Javascript | Javascript | remove unnecessary doc ready | 14186697572064184b6cad45334ed7f7303e3fec | <ide><path>client/main.js
<ide> $(document).ready(function() {
<ide> ga('send', 'event', 'Challenge', 'load', challengeName);
<ide> }
<ide>
<del> $(document).ready(function() {
<del> if (typeof editor !== 'undefined') {
<del> $('#reset-button').on('click', resetEditor);
<del> }
<del> });
<add> if ... | 1 |
Python | Python | relax boto3 requirment | 8caa4d620f032b1b4cf914399e70b4c5117a588c | <ide><path>setup.py
<ide> def get_sphinx_theme_version() -> str:
<ide> # If you change this mark you should also change ./scripts/ci/check_order_setup.py
<ide> # Start dependencies group
<ide> amazon = [
<del> 'boto3>=1.15.0,<1.16.0',
<add> 'boto3>=1.15.0,<1.18.0',
<ide> 'botocore>=1.18.0,<1.19.0',
<ide> ... | 1 |
Javascript | Javascript | add several tests to htmlbars feature flag | 82ce12a0e9a117141e0d8242f676747075ce7458 | <ide><path>packages/ember-htmlbars/tests/helpers/bind_attr_test.js
<ide> test("should be able to bind classes to globals with {{bind-attr class}} (DEPREC
<ide> ok(view.$('img').hasClass('is-open'), "sets classname to the dasherized value of the global property");
<ide> });
<ide>
<del>// HTMLBars TODO: Needs {{#each}... | 2 |
PHP | PHP | change method order | 33b508e88e322c9330908a3a2145623ae6676377 | <ide><path>src/Illuminate/Container/Container.php
<ide> protected function getClosure($abstract, $concrete)
<ide> * Bind a callback to resolve with Container::call.
<ide> *
<ide> * @param string $method
<del> * @param \Closure $concrete
<add> * @param \Closure $callback
<ide> * @return... | 1 |
PHP | PHP | remove swift mailer bindings | b0609f429193d7a856816f7cdb8bdc81199c7004 | <ide><path>src/Illuminate/Mail/MailServiceProvider.php
<ide> public function provides()
<ide> return [
<ide> 'mail.manager',
<ide> 'mailer',
<del> 'swift.mailer',
<del> 'swift.transport',
<ide> Markdown::class,
<ide> ];
<ide> } | 1 |
Python | Python | simplify import check in cli | 782b8b374f191b13fa971db6bae501661139ed10 | <ide><path>airflow/cli/cli_parser.py
<ide> def _check_value(self, action, value):
<ide> raise ArgumentError(action, message)
<ide> if value == 'kubernetes':
<ide> try:
<del> from kubernetes.client import models
<del> if not models:
<del> m... | 1 |
Javascript | Javascript | fix blueprint helper test | d4facc6f0e77114d45712241f76b84b7af5ace11 | <ide><path>node-tests/blueprints/helper-test.js
<ide> describe('Blueprint: helper', function() {
<ide> it('helper foo/bar-baz --dummy', function() {
<ide> return emberGenerateDestroy(['helper', 'foo/bar-baz', '--dummy'], _file => {
<ide> expect(_file('tests/dummy/src/ui/components/foo/bar-baz.js')).to... | 1 |
PHP | PHP | fix doc blocks accuracy | 3558a6f2e6e8ae8e8129199d70818b6dcd2f67c4 | <ide><path>src/Console/Command/UpgradeShell.php
<ide> public function app_uses() {
<ide> * Replace all the App::uses() calls with `use`.
<ide> *
<ide> * @param string $file The file to search and replace.
<add> * @return mixed Replacement of uses call
<ide> */
<ide> protected function _replaceUses($file) {
<ide> ... | 5 |
Text | Text | prefer one liners os requirement install commands | 166a7fb78b207e47dbfdce5328da320f9bf085ee | <ide><path>guides/source/development_dependencies_install.md
<ide> To install all run:
<ide>
<ide> ```bash
<ide> $ sudo apt-get update
<del>$ sudo apt-get install sqlite3 libsqlite3-dev
<del> mysql-server libmysqlclient-dev
<del> postgresql postgresql-client postgresql-contrib libpq-dev
<del> redis-server mem... | 1 |
Text | Text | improve readability of code example | a5a090ec2bcc06f9ce263046711299913f2ff5d0 | <ide><path>docs/advanced/Middleware.md
<ide> import { createStore, combineReducers, applyMiddleware } from 'redux';
<ide>
<ide> // applyMiddleware takes createStore() and returns
<ide> // a function with a compatible API.
<del>let createStoreWithMiddleware = applyMiddleware(
<del> logger,
<del> crashReporter
<del>)(... | 1 |
Text | Text | improve buffer code examples | fe89848dc64bb19718697d2d6149ea4ffd2c0d20 | <ide><path>doc/api/buffer.md
<ide> The `Buffer` class is a global within Node.js, making it unlikely that one
<ide> would need to ever use `require('buffer').Buffer`.
<ide>
<ide> ```js
<add>// Creates a zero-filled Buffer of length 10.
<ide> const buf1 = Buffer.alloc(10);
<del> // Creates a zero-filled Buffer of leng... | 1 |
Go | Go | fix network attachable option | abcb699ad175859ee192388c001f55df5f88e8cd | <ide><path>api/server/router/network/network_routes.go
<ide> func (n *networkRouter) buildNetworkResource(nw libnetwork.Network) *types.Netwo
<ide> r.Driver = nw.Type()
<ide> r.EnableIPv6 = info.IPv6Enabled()
<ide> r.Internal = info.Internal()
<add> r.Attachable = info.Attachable()
<ide> r.Options = info.DriverOpti... | 4 |
Python | Python | change resnetfpn as an internal class | 95d8a879ea2ddc63c48deed3f8e28d55d1b3a2d5 | <ide><path>research/object_detection/models/faster_rcnn_resnet_v1_fpn_keras_feature_extractor.py
<ide> 'conv4_block36_out', 'conv5_block3_out'],
<ide> }
<ide>
<del>class ResnetFPN(tf.keras.layers.Layer):
<add>class _ResnetFPN(tf.keras.layers.Layer):
<ide> """Construct Resnet FPN layer."""
<ide>... | 1 |
Go | Go | move "import" to graph/import.go | fa27580cff5f22bcf2a4860b5582c67d275a0e11 | <ide><path>graph/import.go
<add>package graph
<add>
<add>import (
<add> "net/http"
<add> "net/url"
<add>
<add> "github.com/docker/docker/archive"
<add> "github.com/docker/docker/engine"
<add> "github.com/docker/docker/utils"
<add>)
<add>
<add>func (s *TagStore) CmdImport(job *engine.Job) engine.Status {
<add> if n := l... | 4 |
Javascript | Javascript | remove more semicolons | 236065d0f6122517936fc37218f01fb07fd13e34 | <ide><path>spec/panel-container-element-spec.js
<ide> describe('PanelContainerElement', () => {
<ide> }
<ide>
<ide> it("focuses the first tabbable item if available", () => {
<del> const panel = createPanel();
<add> const panel = createPanel()
<ide>
<ide> const panelEl = panel.getEle... | 1 |
Ruby | Ruby | pass explicit sort to handle apfs | 8a419b47426728c03c3835c1aafa72b5ecf56f4f | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit
<ide> # Check style in a single batch run up front for performance
<ide> style_results = check_style_json(files, options)
<ide>
<del> ff.each do |f|
<add> ff.sort.each do |f|
<ide> options = { new_formula: new_formula, strict: strict, onl... | 1 |
Text | Text | fix broken links after we moved projects | 7ac0fe481ed1ca456c9b5d8ab8e37d9d48809bb6 | <ide><path>official/README.md
<ide> In the near future, we will add:
<ide>
<ide> | Model | Reference (Paper) |
<ide> |-------|-------------------|
<del>| [ALBERT (A Lite BERT)](nlp/albert) | [ALBERT: A Lite BERT for Self-supervised Learning of Language Representations](https://arxiv.org/abs/1909.11942) |
<del>| [BERT ... | 2 |
PHP | PHP | apply suggestions from code review | 7753669388d4670a0e8f4a0372248e82ea56bd0b | <ide><path>src/TestSuite/Fixture/TransactionStrategy.php
<ide> protected function aliasConnections(bool $enableLogging): void
<ide> ConnectionManager::alias($testConnection, $normal);
<ide> $connection = ConnectionManager::get($normal);
<ide> if ($connection instanceof Connection) {
... | 1 |
Python | Python | improve pickling tests | a8d7d04449aedacade10633890f09b0d79634231 | <ide><path>tests/test_model_pickling.py
<ide> import numpy as np
<ide> from numpy.testing import assert_allclose
<ide>
<del>from keras.models import Model, Sequential
<del>from keras.layers import Dense, Lambda, RepeatVector, TimeDistributed
<del>from keras.layers import Input
<add>import keras
<add>from keras import ... | 1 |
Python | Python | remove task group mapping for now | 9322c3e5f2b849878a995bd54311351ec6dedfa3 | <ide><path>airflow/decorators/task_group.py
<ide> together when the DAG is displayed graphically.
<ide> """
<ide> import functools
<del>import warnings
<ide> from inspect import signature
<ide> from typing import TYPE_CHECKING, Any, Callable, Dict, Generic, Optional, TypeVar, Union, cast, overload
<ide>
<ide> import a... | 7 |
Ruby | Ruby | convert uninstall test to spec | 4de74bf744ff3006da32bf592735718fec9798d6 | <add><path>Library/Homebrew/cask/spec/cask/artifact/uninstall_spec.rb
<del><path>Library/Homebrew/cask/test/cask/artifact/uninstall_test.rb
<del>require "test_helper"
<add>require "spec_helper"
<ide>
<ide> describe Hbc::Artifact::Uninstall do
<ide> let(:cask) { Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/C... | 1 |
Java | Java | update todos for spr-11574 | b640b9fdfe2c1d554aa2bb8ea38401d20c2ed2dd | <ide><path>spring-context/src/test/java/org/springframework/context/annotation/ConfigurationClassPostProcessorTests.java
<ide> public void postProcessorWorksWithComposedConfigurationWithAttributeOverridesUsi
<ide> postProcessorWorksWithComposedConfigurationWithAttributeOverrides(beanDefinition);
<ide> }
<ide>
<del>... | 1 |
Javascript | Javascript | use react.lazy in suspense fixture | 6d5d250bef88115ceceb906d0cab1d60ea996d7b | <ide><path>fixtures/unstable-async/suspense/src/components/App.js
<del>import React, {unstable_Suspense as Suspense, PureComponent} from 'react';
<add>import React, {lazy, unstable_Suspense as Suspense, PureComponent} from 'react';
<ide> import {unstable_scheduleCallback} from 'scheduler';
<ide> import {
<ide> unstab... | 1 |
Python | Python | remove close method from memmap docstring | 8a38f647215acc63bc2e953103f5d649a7c093f9 | <ide><path>numpy/core/memmap.py
<ide> class memmap(ndarray):
<ide> This class may at some point be turned into a factory function
<ide> which returns a view into an mmap buffer.
<ide>
<add> Delete the memmap instance to close.
<add>
<add>
<ide> Parameters
<ide> ----------
<ide> filename : str or... | 1 |
PHP | PHP | fix mocks that were violating documented types | 68afc0060723b40eee986385a64003bb62535620 | <ide><path>src/Datasource/ResultSetDecorator.php
<ide> class ResultSetDecorator extends Collection implements ResultSetInterface
<ide> *
<ide> * @return int
<ide> */
<del> public function count()
<add> public function count(): int
<ide> {
<ide> if ($this->getInnerIterator() instanceof C... | 2 |
Ruby | Ruby | dump foreign keys to schema.rb | 69c711f38cac85e9c8bdbe286591bf88ef720bfa | <ide><path>activerecord/lib/active_record/migration.rb
<ide> def method_missing(method, *arguments, &block)
<ide> unless @connection.respond_to? :revert
<ide> unless arguments.empty? || [:execute, :enable_extension, :disable_extension].include?(method)
<ide> arguments[0] = proper_table_nam... | 4 |
Python | Python | fix ec2 volume encryption | 61c3e50374519212e4bc04e0f0c276054e58ec34 | <ide><path>libcloud/compute/drivers/ec2.py
<ide> def destroy_node(self, node):
<ide>
<ide> def create_volume(self, size, name, location=None, snapshot=None,
<ide> ex_volume_type='standard', ex_iops=None,
<del> ex_encrypted=None, ex_kms_key_id=None):
<add> ... | 1 |
Java | Java | unbreak the build | 287cf070cb1c072bd5fdacc0b1ee3ae85c7a388e | <ide><path>ReactAndroid/src/main/java/com/facebook/fbreact/specs/NativeAccessibilityManagerSpec.java
<ide> public NativeAccessibilityManagerSpec(ReactApplicationContext reactContext) {
<ide> public abstract void getCurrentReduceTransparencyState(Callback onSuccess, Callback onError);
<ide>
<ide> @ReactMethod
<del>... | 16 |
Mixed | Javascript | implement minimal `console.group()` | c40229a9b80736f1fdb31fac169b70a1d6af8669 | <ide><path>doc/api/console.md
<ide> If formatting elements (e.g. `%d`) are not found in the first string then
<ide> [`util.inspect()`][] is called on each argument and the resulting string
<ide> values are concatenated. See [`util.format()`][] for more information.
<ide>
<add>### console.group([...label])
<add><!-- YA... | 3 |
Python | Python | remove un-necessary import | 0d4e67d58d86bdc0bf500ccd4abfe25ad5f48448 | <ide><path>numpy/fft/fftpack.py
<ide> from numpy.core import asarray, zeros, swapaxes, shape, conjugate, \
<ide> take
<ide> import fftpack_lite as fftpack
<del>from helper import *
<ide>
<ide> _fft_cache = {}
<ide> _real_fft_cache = {} | 1 |
Javascript | Javascript | use countdown in test-http-set-cookies | 6a089f93572b5f408c13ef0d833f4cdf826e2e24 | <ide><path>test/parallel/test-http-set-cookies.js
<ide> require('../common');
<ide> const assert = require('assert');
<ide> const http = require('http');
<add>const Countdown = require('../common/countdown');
<ide>
<del>let nresponses = 0;
<del>
<add>const countdown = new Countdown(2, () => server.close());
<ide> cons... | 1 |
Java | Java | introduce resolvabletype class | 6a18b0048ddbe9e65f6270946c1c17c6fdc66539 | <ide><path>spring-core/src/main/java/org/springframework/core/ResolvableType.java
<add>/*
<add> * Copyright 2002-2013 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> * You may o... | 3 |
Javascript | Javascript | reduce concurrent memory footprint of pdf2svg.js | 0cc173580934c3420ab3f1bf5d2dbe67e8e4599c | <ide><path>examples/node/pdf2svg.js
<ide> var pdfPath = process.argv[2] || '../../web/compressed.tracemonkey-pldi-09.pdf';
<ide> var data = new Uint8Array(fs.readFileSync(pdfPath));
<ide>
<ide> // Dumps svg outputs to a folder called svgdump
<del>function writeToFile(svgdump, pageNum) {
<add>function writeToFile(svgdu... | 1 |
Ruby | Ruby | avoid hash duplication by skipping mutation | 1993e2ccbd7c5651278ea30bdc9d8034f5197945 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> class Generator
<ide> def initialize(named_route, options, recall, set)
<ide> @named_route = named_route
<ide> @options = options
<del> @recall = recall.dup
<add> @recall = recall
<ide> ... | 1 |
Ruby | Ruby | fix resources ignoring scope options | a7edddf605d2ffbb6669365dcd23d6e4c6c2cf84 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def initialize(*args) #:nodoc:
<ide>
<ide> def resource(*resources, &block)
<ide> options = resources.extract_options!
<add> options = (@scope[:options] || {}).merge(options)
<ide>
<ide> if apply_common_behavior_for... | 2 |
PHP | PHP | add missing rawurlencode() | 76711c9f7129e09a6da72b930d6d364fbfd14e04 | <ide><path>lib/Cake/Routing/Router.php
<ide> protected static function _handleNoRoute($url) {
<ide> $output = implode('/', $urlOut);
<ide>
<ide> if (!empty($args)) {
<del> $output .= '/' . implode('/', $args);
<add> $output .= '/' . implode('/', array_map('rawurlencode', $args));
<ide> }
<ide>
<ide> if (!... | 2 |
Javascript | Javascript | default the unit per em size to 1000 | fdacb575c5601a205cdfc0c2d050ab57a536e0ef | <ide><path>PDFFont.js
<ide> Type1Font.prototype = {
<ide> 0x00, 0x00, 0x00, 0x00, // checksumAdjustement
<ide> 0x5F, 0x0F, 0x3C, 0xF5, // magicNumber
<ide> 0x00, 0x00, // Flags
<del> 0x00, 0x40, // unitsPerEM (>= 16 && <=16384)
<add> 0x03, 0xE8, // unitsPerEM (>= 16 && <=16384)
<ide> 0... | 1 |
Text | Text | add note about invalid data | c0905b71adb55cbf98816dd993fec2d7c17ebbfe | <ide><path>doc/api/buffer.md
<ide> added: v0.1.90
<ide>
<ide> Decodes `buf` to a string according to the specified character encoding in
<ide> `encoding`. `start` and `end` may be passed to decode only a subset of `buf`.
<add>If a byte sequence in the input is not valid in the given `encoding` then
<add>it is replaced... | 1 |
Text | Text | add .overlay to the list | dd0bed9bff3e69e428dfcb46ac081b213698e16e | <ide><path>docs/upgrading/upgrading-your-ui-theme.md
<ide> Old Selector | New Selector
<ide> `.panel-bottom` | `atom-panel[location="bottom"]`
<ide> `.panel-left` | `atom-panel[location="left"]`
<ide> `.panel-right` | `atom-panel[location="right"]`
<add>`.overlay` | `atom-panel[location="... | 1 |
Python | Python | fix beitfeatureextractor postprocessing | 36b9a99433b03d9caa8cae48c65348d165bec601 | <ide><path>src/transformers/models/beit/feature_extraction_beit.py
<ide> def __call__(
<ide>
<ide> return encoded_inputs
<ide>
<del> def post_process_semantic_segmentation(self, outputs, target_sizes: Union[TensorType, List[Tuple]] = None):
<add> def post_process_semantic_segmentation(self, outputs, tar... | 2 |
Text | Text | add note about prefetching | d2dc91c80ce9708aae6055cff1ef6cb9f67bf98a | <ide><path>docs/api-reference/next/link.md
<ide> export default Home
<ide> - `href` - The path or URL to navigate to. This is the only required prop
<ide> - `as` - Optional decorator for the path that will be shown in the browser URL bar. Before Next.js 9.5.3 this was used for dynamic routes, check our [previous docs](... | 1 |
Ruby | Ruby | install etc/var files on postinstall | f951a22beacdae7dd95c94eba67236fe221a3ca0 | <ide><path>Library/Homebrew/cmd/postinstall.rb
<ide> module Homebrew
<ide> module_function
<ide>
<ide> def postinstall
<del> ARGV.resolved_formulae.each { |f| run_post_install(f) if f.post_install_defined? }
<add> ARGV.resolved_formulae.each do |f|
<add> ohai "Postinstalling #{f}"
<add> run_post_in... | 4 |
Java | Java | fix regression in producesrequestcondition | b5327ef60f7cdd3b82d00d36c0775ba0a324f7be | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/condition/ProducesRequestCondition.java
<ide> public ProducesRequestCondition combine(ProducesRequestCondition other) {
<ide> @Override
<ide> @Nullable
<ide> public ProducesRequestCondition getMatchingCondition(ServerWebExchange exchange... | 4 |
Javascript | Javascript | remove keymirror in propagationphases | 738a9e3ef25db863126cd7ec2b37b9ba0bd1c7c2 | <ide><path>src/renderers/shared/stack/event/EventConstants.js
<ide>
<ide> var keyMirror = require('keyMirror');
<ide>
<del>var PropagationPhases = keyMirror({bubbled: null, captured: null});
<add>export type PropagationPhases = 'bubbled' | 'captured';
<ide>
<ide> /**
<ide> * Types of raw signals from the browser ca... | 2 |
Ruby | Ruby | remove irrelevant comments | 8ae913664ff721e10dfc2c057998a38fd6f76edf | <ide><path>activemodel/lib/active_model/validations/acceptance.rb
<ide> def validate_each(record, attribute, value)
<ide> end
<ide>
<ide> def setup(klass)
<del> # Note: instance_methods.map(&:to_s) is important for 1.9 compatibility
<del> # as instance_methods returns symbols unlike 1.8 which... | 1 |
Ruby | Ruby | remove useless rescue | 13dd7758cedf6152835c4c72b69b1fe631a60733 | <ide><path>actionpack/lib/sprockets/helpers/rails_helper.rb
<ide> def asset_path(source, default_ext = nil, body = false, protocol = nil)
<ide>
<ide> private
<ide> def debug_assets?
<del> begin
<del> params[:debug_assets] == '1' ||
<del> params[:debug_assets] == 'true'
<del> ... | 2 |
Python | Python | create rod_cutting.py (#373) | dc302be505e2ddc3333066dcc50c161981d66cdf | <ide><path>dynamic_programming/rod_cutting.py
<add>### PROBLEM ###
<add>"""
<add>We are given a rod of length n and we are given the array of prices, also of
<add>length n. This array contains the price for selling a rod at a certain length.
<add>For example, prices[5] shows the price we can sell a rod of length 5.
<ad... | 1 |
PHP | PHP | fix filtering of parameters | 9902e7d5960c6f3a2ad9a187c142ab6dbb384ed1 | <ide><path>src/Illuminate/Routing/Router.php
<ide> public function callRouteFilter($filter, $parameters, $route, $request, $respons
<ide>
<ide> $data = array_merge(array($route, $request, $response), $parameters);
<ide>
<del> return $this->events->until('router.filter: '.$filter, array_filter($data));
<add> retur... | 2 |
Java | Java | remove buffer release used as workaround | bd2c213b471c1a42b17620ff97da1f2d7665dee3 | <ide><path>spring-core/src/main/java/org/springframework/core/io/buffer/DataBufferUtils.java
<ide> public void completed(Integer read, DataBuffer dataBuffer) {
<ide> long pos = this.position.addAndGet(read);
<ide> dataBuffer.writePosition(read);
<ide> this.sink.next(dataBuffer);
<del> // It's possible fo... | 1 |
Text | Text | fix bad translation | ebb04604c7cd1b63f6c101c3fd072462df87f052 | <ide><path>guide/spanish/c/data-types/index.md
<ide> C nos permite elegir entre varias opciones diferentes con nuestros tipos de dato
<ide>
<ide> ## Tipos de datos enteros
<ide>
<del>#### Personajes: `char`
<add>#### Caracteres: `char`
<ide>
<del>`char` contiene caracteres, cosas como letras, puntuación y espacios. ... | 1 |
Go | Go | implement docker exec with standalone client lib | 3f9f23114f7cccd9e9972d457f0f1d2502eaa4af | <ide><path>api/client/client.go
<ide> import (
<ide>
<ide> // apiClient is an interface that clients that talk with a docker server must implement.
<ide> type apiClient interface {
<del> ContainerAttach(options types.ContainerAttachOptions) (*types.HijackedResponse, error)
<add> ContainerAttach(options types.Container... | 8 |
Ruby | Ruby | fix typo in mime type registering | d41d586e4e00990a8b5e1e62b75857fea0effaf4 | <ide><path>actionpack/lib/action_dispatch/http/mime_types.rb
<ide>
<ide> Mime::Type.register "audio/mpeg", :mp3, [], %w(mp1 mp2 mp3)
<ide> Mime::Type.register "audio/ogg", :ogg, [], %w(oga ogg spx opus)
<del>Mime::Type.register "audio/aac", :m4a, %( audio/mp4 ), %w(m4a mpg4 aac)
<add>Mime::Type.register "audio/aac", :... | 1 |
Java | Java | improve setdateheader impl in mockservletresponse | 088a50c1fbd4fd4d0cc89fb8733c90bff796b611 | <ide><path>spring-web/src/test/java/org/springframework/mock/web/test/MockHttpServletResponse.java
<ide> import java.io.PrintWriter;
<ide> import java.io.UnsupportedEncodingException;
<ide> import java.io.Writer;
<add>import java.text.SimpleDateFormat;
<ide> import java.util.ArrayList;
<ide> import java.util.Collection... | 4 |
Go | Go | fix error handling for bind mount spec parser | ebcef288343698dd86ff307f5b9c58aa52ce9fdd | <ide><path>volume/mounts/linux_parser.go
<ide> func (p *linuxParser) validateMountConfigImpl(mnt *mount.Mount, validateBindSour
<ide> }
<ide>
<ide> if validateBindSourceExists {
<del> exists, _, _ := currentFileInfoProvider.fileInfo(mnt.Source)
<add> exists, _, err := currentFileInfoProvider.fileInfo(mnt.Sourc... | 2 |
Ruby | Ruby | use a name that better reflect the return value | af5b245065acff4a021b160a23c8c89b03635a81 | <ide><path>actionview/lib/action_view/helpers/form_helper.rb
<ide> def instantiate_builder(record_name, record_object, options)
<ide> object_name = model_name_from_record_or_class(object).param_key
<ide> end
<ide>
<del> builder = options[:builder] || build_default_form_builder
<add> ... | 1 |
Mixed | Go | add `--limit` option to `docker search` | 92f10fe228c1b4b527b87ac47401132322283ea3 | <ide><path>api/client/search.go
<ide> func (cli *DockerCli) CmdSearch(args ...string) error {
<ide> cmd := Cli.Subcmd("search", []string{"TERM"}, Cli.DockerCommands["search"].Description, true)
<ide> noTrunc := cmd.Bool([]string{"-no-trunc"}, false, "Don't truncate output")
<ide> cmd.Var(&flFilter, []string{"f", "-f... | 13 |
PHP | PHP | use proper assertions. | 51c6c8604fb1c0f5a13585cf991a872bf2f242bb | <ide><path>tests/Filesystem/FilesystemAdapterTest.php
<ide> public function testDelete()
<ide> file_put_contents($this->tempDir.'/file.txt', 'Hello World');
<ide> $filesystemAdapter = new FilesystemAdapter($this->filesystem);
<ide> $this->assertTrue($filesystemAdapter->delete('file.txt'));
<del>... | 4 |
Java | Java | make stringdecoder use databufferutils.split | a30a134c2397a7482bfd8c895f7ec1dc633e2067 | <ide><path>spring-core/src/main/java/org/springframework/core/codec/StringDecoder.java
<ide> import org.springframework.core.ResolvableType;
<ide> import org.springframework.core.io.buffer.DataBuffer;
<ide> import org.springframework.core.io.buffer.DataBufferUtils;
<del>import org.springframework.core.io.buffer.Default... | 3 |
Python | Python | break reference cycle in npzfile | c4482f56b347760260a695a72f7ccbd26d02756c | <ide><path>numpy/lib/npyio.py
<ide> import sys
<ide> import itertools
<ide> import warnings
<add>import weakref
<ide> from operator import itemgetter
<ide>
<ide> from cPickle import load as _cload, loads
<ide> class BagObj(object):
<ide>
<ide> """
<ide> def __init__(self, obj):
<del> self._obj = obj
<a... | 2 |
PHP | PHP | add missing methods to entityinterface | beea1121dcdbb694560ef02e63c26dcaf58c13c0 | <ide><path>src/Datasource/EntityInterface.php
<ide> * Describes the methods that any class representing a data storage should
<ide> * comply with.
<ide> *
<del> * In 4.x the following methods will officially be added to the interface:
<del> *
<del> * @method $this setHidden(array $properties, $merge = false)
<del> *... | 1 |
Text | Text | release notes for 1.2.11 | c0c0b2b67461b2c6521ae290fb1a7ea19ff075e8 | <ide><path>CHANGELOG.md
<add><a name="1.2.11"></a>
<add># 1.2.11 cryptocurrency-hyperdeflation (2014-02-03)
<add>
<add>## Bug Fixes
<add>
<add>- **$compile:** retain CSS classes added in cloneAttachFn on asynchronous directives
<add> ([5ed721b9](https://github.com/angular/angular.js/commit/5ed721b9b5e95ae08450e1ae9d52... | 1 |
Javascript | Javascript | move some of the sizzle tests to selector | 81aa237ee11c731ee92ad6cf7cf958e80f15d057 | <ide><path>test/unit/selector.js
<ide> test("element - jQuery only", function() {
<ide> equal( jQuery("<div id=\"A'B~C.D[E]\"><p>foo</p></div>").find("p").length, 1, "Find where context root is a node and has an ID with CSS3 meta characters" );
<ide> });
<ide>
<add>test("id", function() {
<add> expect( 26 );
<add>
<a... | 1 |
Python | Python | fix assertion for nested create test (missing id) | 8a41d4aa5411560aabc5c198976b7df6580e6143 | <ide><path>rest_framework/tests/nested_relations.py
<ide> def setUp(self):
<ide> def save_serialized_target(self, instance, data):
<ide> serializer = ForeignKeyTargetSerializer(instance, data=data)
<ide> self.assertTrue(serializer.is_valid())
<del> self.assertEquals(serializer.data, data)
<id... | 1 |
Javascript | Javascript | fix module preloading when cwd is enoent | 2d251e661a8c761e0c1bd809fdc6a29179950c00 | <ide><path>lib/module.js
<ide> Module._preloadModules = function(requests) {
<ide> // in the current working directory. This seeds the search path for
<ide> // preloaded modules.
<ide> var parent = new Module('internal/preload', null);
<del> parent.paths = Module._nodeModulePaths(process.cwd());
<add> try {
<ad... | 2 |
Go | Go | remove dead code in registry package | 962dc622d94a17a30a5926e8155da87a7e39e933 | <ide><path>registry/auth.go
<ide> import (
<ide> "io/ioutil"
<ide> "net/http"
<ide> "strings"
<del> "sync"
<del> "time"
<ide>
<ide> "github.com/Sirupsen/logrus"
<ide> "github.com/docker/docker/cliconfig"
<ide> )
<ide>
<del>type RequestAuthorization struct {
<del> authConfig *cliconfig.AuthConfig
<del> regi... | 1 |
Javascript | Javascript | add documentation for ember.mixin | a73ba1c2e222f477eb49f33b80203ea776970584 | <ide><path>packages/ember-metal/lib/mixin.js
<ide> Ember.mixin = function(obj) {
<ide>
<ide>
<ide> /**
<del> @constructor
<add> @class
<add>
<add> The `Ember.Mixin` class allows you to create mixins, whose properties can be
<add> added to other classes. For instance,
<add>
<add> App.Editable = Ember.Mixin.cr... | 1 |
Javascript | Javascript | simplify wording of key warning | 547e059f0bc88e76cd738b01b76e777ff1b222a7 | <ide><path>packages/react-dom/src/__tests__/ReactFunctionComponent-test.js
<ide> describe('ReactFunctionComponent', () => {
<ide> }
<ide>
<ide> expect(() => ReactTestUtils.renderIntoDocument(<Child />)).toWarnDev(
<del> 'Each child in an array or iterator should have a unique "key" prop.\n\n' +
<add> ... | 9 |
Javascript | Javascript | check input and textarea proptypes only in dev | 65370ff7520c6daddd729710697873291662dee4 | <ide><path>src/renderers/dom/client/wrappers/ReactDOMInput.js
<ide> var ReactDOMInput = {
<ide> },
<ide>
<ide> mountWrapper: function(inst, props) {
<del> LinkedValueUtils.checkPropTypes(
<del> 'input',
<del> props,
<del> inst._currentElement._owner
<del> );
<add> if (__DEV__) {
<add> ... | 2 |
Javascript | Javascript | change controlleralias to controlleras | 400f9360bb2f7553c5bd3b1f256a5f3db175b7bc | <ide><path>src/ng/directive/ngView.js
<ide> $routeProvider.when('/Book/:bookId', {
<ide> templateUrl: 'book.html',
<ide> controller: BookCntl,
<del> controllerAlias: 'book'
<add> controllerAs: 'book'
<ide> });
<ide> $routeProvider.when('/Book/:... | 3 |
Java | Java | improve tests for synthesized array of annotations | a9cc7b3edc59d5855dad75ffbf22bb5604162968 | <ide><path>spring-core/src/test/java/org/springframework/core/annotation/MergedAnnotationsTests.java
<ide> void synthesizeNonPublicWithAttributeAliasesFromDifferentPackage() throws Except
<ide> }
<ide>
<ide> @Test
<del> void synthesizeWithAttributeAliasesInNestedAnnotations() throws Exception {
<add> void synthesize... | 1 |
Text | Text | relax type of constant names [ci skip] | fdbeda449e3f20fa5e341f452adc99c70d319aec | <ide><path>guides/source/constant_autoloading_and_reloading.md
<ide> end
<ide>
<ide> First, when the `module` keyword is processed the interpreter creates a new
<ide> entry in the constant table of the class object stored in the `Object` constant.
<del>Said entry associates the string "Colors" to a newly created modul... | 1 |
PHP | PHP | rename the merge method to collapse | aa58b089b986904cfda8928a1de2da9a371768a0 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function flatten()
<ide> }
<ide>
<ide> /**
<del> * Merge the collection itmes into a single array.
<add> * Collapse the collection items into a single array.
<ide> *
<ide> * @return \Illuminate\Support\Collection
<ide> */
<del> public function mer... | 2 |
Text | Text | fix typo in docker toolbox upgrade section | 1435c9ea21d6c76a923c2501abb840e899b5ed1e | <ide><path>docs/installation/mac.md
<ide> The next exercise demonstrates how to do this.
<ide>
<ide> ## Upgrade Docker Toolbox
<ide>
<del>To upgrade Docker Toolbox, download an re-run [the Docker Toolbox
<add>To upgrade Docker Toolbox, download and re-run [the Docker Toolbox
<ide> installer](https://docker.com/toolbo... | 2 |
PHP | PHP | remove dead code | fcca1e8abc02883221870e1c81cecc3c843e0f7c | <ide><path>src/Controller/Component/PaginatorComponent.php
<ide> public function implementedEvents()
<ide> */
<ide> public function paginate($object, array $settings = [])
<ide> {
<del> $query = null;
<del> if ($object instanceof QueryInterface) {
<del> $query = $object;
<del> ... | 1 |
Javascript | Javascript | remove extraneous assignments in rmdir() | 91e0d9bc30948dc58f8675a10a85843e0de65650 | <ide><path>lib/fs.js
<ide> function rmdir(path, options, callback) {
<ide> path = pathModule.toNamespacedPath(getValidatedPath(path));
<ide>
<ide> if (options && options.recursive) {
<del> options = validateRmOptions(
<del> path,
<del> { ...options, force: true },
<del> (err, options) => {
<del> ... | 1 |
Ruby | Ruby | remove active_support/json/variable was deprecated | 6f3e01e8b78eff1b1685a0b35d70819376bfd773 | <ide><path>activesupport/lib/active_support/json/encoding.rb
<ide>
<ide> require 'active_support/core_ext/object/to_json'
<ide> require 'active_support/core_ext/module/delegation'
<del>require 'active_support/json/variable'
<ide>
<ide> require 'bigdecimal'
<ide> require 'active_support/core_ext/big_decimal/conversion... | 3 |
PHP | PHP | remove invalid void | d1ef8a82e5a7e8fa789fef0afe2ac8248e9b900c | <ide><path>src/Auth/FallbackPasswordHasher.php
<ide> class FallbackPasswordHasher extends AbstractPasswordHasher
<ide> *
<ide> * @param array $config configuration options for this object. Requires the
<ide> * `hashers` key to be present in the array with a list of other hashers to be
<del> * used
<d... | 1 |
Text | Text | extend example contribution guidelines | 08e69cfdbb9faa7144f959518aa31e5ab864a019 | <ide><path>contributing.md
<ide> Below are the steps to add a new link:
<ide>
<ide> When you add an example to the [examples](examples) directory, please follow these guidelines to ensure high quality examples:
<ide>
<del>- TypeScript should be leveraged for new examples (no need for separate JavaScript and TypeScrip... | 1 |
Text | Text | document the removal of deprecated properties | 3a25fe29213cbe3f386988609699aab703f856cb | <ide><path>docs/docs/getting-started/v3-migration.md
<ide> The following properties and methods were removed:
<ide> #### Chart
<ide> * `Chart.borderWidth`
<ide> * `Chart.chart.chart`
<add>* `Chart.Bar`. New charts are created via `new Chart` and providing the appropriate `type` parameter
<add>* `Chart.Bubble`. New char... | 1 |
Javascript | Javascript | extract emitmixedtypeannotation to parsers-commons | b87d371a3838f7068718fc0e5a1a86afb1dd6c9d | <ide><path>packages/react-native-codegen/src/parsers/__tests__/parsers-commons-test.js
<ide> import {IncorrectlyParameterizedGenericParserError} from '../errors';
<ide> import {assertGenericTypeAnnotationHasExactlyOneTypeParameter} from '../parsers-commons';
<ide>
<del>const {wrapNullable, unwrapNullable} = require('.... | 4 |
Python | Python | use dtype in numeric.indices | 0a7f9f5f8bffdcbb4ba94c98d722056b1e6bb133 | <ide><path>numpy/core/numeric.py
<ide> def indices(dimensions, dtype=int):
<ide> tmp = ones(dimensions, dtype)
<ide> lst = []
<ide> for i in range(len(dimensions)):
<del> lst.append( add.accumulate(tmp, i, )-1 )
<del> return array(lst, dtype)
<add> lst.append( add.accumulate(tmp, i, dtype)-... | 1 |
PHP | PHP | remove `static` return types | ecec6ca33280f3d9e93e294824cf5bd04424c255 | <ide><path>src/Illuminate/Database/Eloquent/SoftDeletes.php
<ide> namespace Illuminate\Database\Eloquent;
<ide>
<ide> /**
<del> * @method static static|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder withTrashed(bool $withTrashed = true)
<del> * @method static static|\Illuminate\Database\Eloqu... | 1 |
Python | Python | fix checkpoint for vit config | f4b7420dfe419fe653908f091976517635a119e6 | <ide><path>src/transformers/models/vit/configuration_vit.py
<ide> logger = logging.get_logger(__name__)
<ide>
<ide> VIT_PRETRAINED_CONFIG_ARCHIVE_MAP = {
<del> "nielsr/vit-base-patch16-224": "https://huggingface.co/vit-base-patch16-224/resolve/main/config.json",
<add> "google/vit-base-patch16-224": "https://hugg... | 1 |
Text | Text | release notes for 3.1.3 | bc778732bf956966b28dc3e6a425bf29eb9a23de | <ide><path>docs/topics/release-notes.md
<ide> You can determine your currently installed version using `pip freeze`:
<ide>
<ide> ## 3.1.x series
<ide>
<add>### 3.1.3
<add>
<add>**Date**: [4th June 2015][3.1.3-milestone].
<add>
<add>* Add `DurationField`. ([#2481][gh2481], [#2989][gh2989])
<add>* Add `format` argument... | 1 |
PHP | PHP | add a test for | acc11336a3292d64f36c43a581c1a04c0d9ccf1f | <ide><path>tests/TestCase/Routing/Route/RedirectRouteTest.php
<ide> */
<ide> namespace Cake\Test\TestCase\Routing\Route;
<ide>
<add>use Cake\Http\ServerRequest;
<ide> use Cake\Routing\Router;
<ide> use Cake\Routing\Route\RedirectRoute;
<ide> use Cake\TestSuite\TestCase;
<ide> public function testParsePersist()
<ide> ... | 1 |
Javascript | Javascript | fix 95% of windowedlistview jumpiness | 5e91a2a3124a76e5216975497e63c04e012aa0d1 | <ide><path>Libraries/Experimental/IncrementalGroup.js
<ide> const Incremental = require('Incremental');
<ide> const React = require('React');
<ide>
<add>const infoLog = require('infoLog');
<add>
<ide> let _groupCounter = -1;
<ide> const DEBUG = false;
<ide>
<ide> import type {Props, Context} from 'Incremental';
<ide>... | 3 |
Go | Go | fix duplicate mount release | 2732fe527f9258561c7310c128914b4b456c8404 | <ide><path>builder/builder-next/adapters/snapshot/snapshot.go
<ide> func (s *snapshotter) Close() error {
<ide> }
<ide>
<ide> type mountable struct {
<del> mu sync.Mutex
<del> mounts []mount.Mount
<del> acquire func() ([]mount.Mount, error)
<del> release func() error
<add> mu sync.Mutex
<add> mounts []mo... | 1 |
Javascript | Javascript | log validation errors to the console | cee956dbb7c67dedb276272327905567560aa2c6 | <ide><path>lib/webpack.js
<ide> function webpack(options, callback) {
<ide> } else if(typeof options === "object") {
<ide> var webpackOptionsValidationErrors = validateWebpackOptions(options);
<ide> if(webpackOptionsValidationErrors.length) {
<add> console.log("'options' validation errors:", webpackOptionsValida... | 1 |
Ruby | Ruby | fix typo in `brew doctor` | 74ee65466cb321ba60db5ac6c1c568bcc9db56d3 | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_config_scripts
<ide> def check_for_dyld_vars
<ide> if ENV['DYLD_LIBRARY_PATH']
<ide> puts <<-EOS.undent
<del> Setting DYLD_LIBARY_PATH can break dynamic linking.
<add> Setting DYLD_LIBRARY_PATH can break dynamic linking.
<ide> You shoul... | 1 |
Javascript | Javascript | improve typing of animated component wrappers | 64720ab14a68fba7ae5ac3100499365e3c84ba85 | <ide><path>Libraries/Animated/src/components/AnimatedFlatList.js
<ide> import * as React from 'react';
<ide>
<ide> const FlatList = require('../../../Lists/FlatList');
<del>
<ide> const createAnimatedComponent = require('../createAnimatedComponent');
<ide>
<add>import type {AnimatedComponentType} from '../createAnima... | 6 |
Ruby | Ruby | fix argumenterror on ruby 3.0 | d2642762885d79b330930ea473357f965a0b5581 | <ide><path>actioncable/lib/action_cable/remote_connections.rb
<ide> def initialize(server, ids)
<ide>
<ide> # Uses the internal channel to disconnect the connection.
<ide> def disconnect
<del> server.broadcast internal_channel, type: "disconnect"
<add> server.broadcast internal_channe... | 1 |
Go | Go | remove unwanted return variable name | a31be2512136444ce473235a35d6fd47634e3f13 | <ide><path>registry/token.go
<ide> type tokenResponse struct {
<ide> Token string `json:"token"`
<ide> }
<ide>
<del>func getToken(username, password string, params map[string]string, registryEndpoint *Endpoint) (token string, err error) {
<add>func getToken(username, password string, params map[string]string, registr... | 1 |
Javascript | Javascript | add resolve_config log | 1388c6897ef99b94b313b49bdf901efed84db571 | <ide><path>packages/next/build/webpack.js
<ide> export default async function getBaseWebpackConfig (dir: string, {dev = false, i
<ide> }
<ide> }
<ide>
<add> console.log('RESOLVE_CONFIG', resolveConfig)
<add>
<ide> const webpackMode = dev ? 'development' : 'production'
<ide>
<ide> let webpackConfig = { | 1 |
Ruby | Ruby | use newer configure syntax as make template | 5dd37087687fa837b990a50107aaf10d231a75ad | <ide><path>Library/Homebrew/brew.h.rb
<ide> class #{Formula.class $1} <Formula
<ide> cmake end
<ide> cmake
<ide> def install
<del> autotools system "./configure --prefix='\#{prefix}' --disable-debug --disable-dependency-tracking"
<add> autotools system "./configure", "--prefix=#{prefix... | 1 |
Python | Python | add http 308 permanent redirect | 0d0e7c3ae092e1b98f4826ccf356a87cb9aa2b56 | <ide><path>rest_framework/status.py
<ide> def is_server_error(code):
<ide> HTTP_305_USE_PROXY = 305
<ide> HTTP_306_RESERVED = 306
<ide> HTTP_307_TEMPORARY_REDIRECT = 307
<add>HTTP_308_PERMANENT_REDIRECT = 308
<ide> HTTP_400_BAD_REQUEST = 400
<ide> HTTP_401_UNAUTHORIZED = 401
<ide> HTTP_402_PAYMENT_REQUIRED = 402 | 1 |
Javascript | Javascript | explain the possibilty of refactor unused argument | 9d2125e3bfeaa36692ded547a50c9579ddc39e20 | <ide><path>lib/_http_incoming.js
<ide> IncomingMessage.prototype.setTimeout = function setTimeout(msecs, callback) {
<ide> // argument adaptor frame creation inside V8 in case that number of actual
<ide> // arguments is different from expected arguments.
<ide> // Ref: https://bugs.chromium.org/p/v8/issues/detail?id=102... | 1 |
Python | Python | fix spelling in celeryexecutor | b78632704124930eaf883142a0045a1ed348911c | <ide><path>airflow/executors/celery_executor.py
<ide> def execute_command(command_to_exec: CommandType) -> None:
<ide> log.info("Executing command in Celery: %s", command_to_exec)
<ide>
<ide> if settings.EXECUTE_TASKS_NEW_PYTHON_INTERPRETER:
<del> _execute_in_subprocees(command_to_exec)
<add> _ex... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.