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
Go
Go
implement untar via archive/tar
a4868e233c7ebce259fc02d3dbfb241c23471a4a
<ide><path>archive/archive.go <ide> import ( <ide> "os/exec" <ide> "path" <ide> "path/filepath" <add> "strings" <ide> "syscall" <ide> ) <ide> <ide> func TarFilter(path string, options *TarOptions) (io.Reader, error) { <ide> // The archive may be compressed with one of the following algorithms: <ide> // identity (...
1
Javascript
Javascript
fix typo in test/common/index.js
d0fa1e9b2d59d383723d195ede1647e0c6c93264
<ide><path>test/common/index.js <ide> let knownGlobals = [ <ide> <ide> // TODO(@jasnell): This check can be temporary. AbortController is <ide> // not currently supported in either Node.js 12 or 10, making it <del>// difficult to run tests comparitively on those versions. Once <add>// difficult to run tests comparativ...
1
Ruby
Ruby
add pip to blacklist
dfcff44e3e9129b7779e5baadc336a6d3156373f
<ide><path>Library/Homebrew/blacklist.rb <ide> def blacklisted? name <ide> <ide> easy_install mercurial <ide> EOS <del> when 'setuptools' then <<-EOS.undent <del> When working with a Homebrew-built Python, distribute is preferred over <del> setuptools, and can be used as the prerequisite for pip: <a...
1
Javascript
Javascript
make aftereach async
15b6f8bb7ff6e9f38e2089f363f4e37131af13f9
<ide><path>test/configCases/externals/global/index.js <del>afterEach(() => { <add>afterEach(done => { <ide> delete global.EXTERNAL_TEST_GLOBAL; <add> done(); <ide> }); <ide> <ide> it("should move externals in chunks into entry chunk", function() {
1
Ruby
Ruby
fix all rubocop violations
f7d0bd657f5003ceede4c7e6322cb0f013db06a8
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb <ide> def initialize <ide> @binds = [] <ide> end <ide> <del> def << str <add> def <<(str) <ide> @parts << str <ide> self <ide> end <ide> <del> ...
3
Java
Java
fix failing tests
9a501fac46a9e4879ba8d72360ad1713169f2d8e
<ide><path>spring-web/src/test/java/org/springframework/http/codec/json/Jackson2JsonDecoderTests.java <ide> <ide> import static java.util.Arrays.asList; <ide> import static java.util.Collections.*; <add> <add>import com.fasterxml.jackson.databind.ObjectMapper; <ide> import org.junit.Test; <ide> <ide> import static or...
1
Javascript
Javascript
improve example for {{loc}}
3ef443b42171ddad81829032caa9bd733729f3ae
<ide><path>packages/ember-handlebars/lib/helpers/loc.js <ide> require('ember-handlebars/ext'); <ide> /** <ide> `loc` looks up the string in the localized strings hash. <ide> This is a convenient way to localize text. For example: <add> <add> ```javascript <add> App.ApplicationController = Ember.Controller.exten...
1
Text
Text
get the length of an array - the count() function
1b4e3c01b76995b218d176533fbe56f3f7d18ae9
<ide><path>guide/english/php/arrays/index.md <ide> In PHP, there are two types of arrays: Indexed arrays and Associative arrays. Ea <ide> ### Indexed Array Example <ide> An indexed array is a list of ordered values. Each of these values in the array is assigned an index number. Indexes for arrays always start at `0` fo...
1
Javascript
Javascript
add pickingray method
bc27e18424abe3e5fe24a0d4701806b5cf4fc9a0
<ide><path>src/core/Projector.js <ide> THREE.Projector = function() { <ide> <ide> this.projectVector = function ( vector, camera ) { <ide> <del> _projScreenMatrix.multiply( camera.projectionMatrix, camera.matrixWorldInverse ); <add> _projScreenMatrix.multiply( camera.projectionMatrix, camera.matrixWorldInv...
1
Mixed
Java
add ability to expose sync hooks from java to js
50d8d46733c24a4b432edc34af6e80d80f96ffc9
<ide><path>Libraries/Utilities/MessageQueue.js <ide> let SPY_MODE = false; <ide> let MethodTypes = keyMirror({ <ide> remote: null, <ide> remoteAsync: null, <add> syncHook: null, <ide> }); <ide> <ide> var guard = (fn) => { <ide> class MessageQueue { <ide> if (methodsConfig) { <ide> let methods = ...
4
Python
Python
update weights url for inception_resnet_v2
0f1c8550576c0320632c5541caa42325833f1335
<ide><path>keras/applications/inception_resnet_v2.py <ide> from ..utils.data_utils import get_file <ide> from ..engine.topology import get_source_inputs <ide> from ..applications.imagenet_utils import _obtain_input_shape <add>from ..applications.imagenet_utils import decode_predictions <ide> from .. import backend as K...
1
Javascript
Javascript
fix prefetch url
540a86f007da211cd8aaea68ea50fd8739b3d3a4
<ide><path>lib/link.js <ide> export default class Link extends Component { <ide> }) <ide> } <ide> <add> prefetch () { <add> if (!this.props.prefetch) return <add> if (typeof window === 'undefined') return <add> <add> // Prefetch the JSON page if asked (only in the client) <add> const { pathname } ...
2
Text
Text
fix typescript casing
8df5fc5a8e292845f9044adc96f474d620fcc4d8
<ide><path>docs/api-reference/next/router.md <ide> function Page({ router }) { <ide> export default withRouter(Page) <ide> ``` <ide> <del>### Typescript <add>### TypeScript <ide> <ide> To use class components with `withRouter`, the component needs to accept a router prop: <ide>
1
Text
Text
fix typo in text
a90d3f18623cabc2d5a128d76fd73b28bb9d78da
<ide><path>examples/pytorch/translation/README.md <ide> and reply to the questions asked. Then <ide> accelerate test <ide> ``` <ide> <del>that will check everything is ready for training. Finally, you cna launch training with <add>that will check everything is ready for training. Finally, you can launch training with ...
1
Ruby
Ruby
add docs about _scopes option on enum. [ci skip]
2ef9ecaf454f69db256da01001ad6cb0d5609072
<ide><path>activerecord/lib/active_record/enum.rb <ide> module ActiveRecord <ide> # Conversation.where(status: [:active, :archived]) <ide> # Conversation.where.not(status: :active) <ide> # <add> # Defining scopes can be disabled by setting +:_scopes+ to +false+. <add> # <add> # class Conversation < Activ...
1
Go
Go
add buffers to operations with tarballs
a377844998f6a866d59bf356790f76d0d25bf01f
<ide><path>archive/archive.go <ide> func (compression *Compression) Extension() string { <ide> return "" <ide> } <ide> <del>func addTarFile(path, name string, tw *tar.Writer) error { <add>func addTarFile(path, name string, tw *tar.Writer, twBuf *bufio.Writer) error { <ide> fi, err := os.Lstat(path) <ide> if err != ...
4
Ruby
Ruby
extract native getter to attr_reader
6f47ea1a462886980eb7b34ea24e1d5e704897f6
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb <ide> class TableDefinition <ide> # An array of ColumnDefinition objects, representing the column changes <ide> # that have been defined. <ide> attr_accessor :indexes <del> attr_reader :name, :temporary, ...
1
Java
Java
use httpheaders.allow instead of string constant
a0ba8082179f7d80d9f284b4d69020358be9a6f3
<ide><path>spring-web/src/main/java/org/springframework/web/context/support/HttpRequestHandlerServlet.java <ide> import jakarta.servlet.http.HttpServletResponse; <ide> <ide> import org.springframework.context.i18n.LocaleContextHolder; <add>import org.springframework.http.HttpHeaders; <ide> import org.springframework.l...
4
Ruby
Ruby
fix unclosed tags [ci skip]
87d5415f0aa3e6f9f74f645a47370dd854375a1a
<ide><path>actionpack/lib/action_controller/renderer.rb <ide> def initialize(controller, env, defaults) <ide> # * <tt>:html</tt> - Renders the provided HTML safe string, otherwise <ide> # performs HTML escape on the string first. Sets the content type as <tt>text/html</tt>. <ide> # * <tt>:json</tt> - Rend...
2
Go
Go
fix my own comments from
41e9e93e27ccd637d9490412622529bdc7d7b8ff
<ide><path>daemon/networkdriver/portmapper/mapper.go <ide> func Map(container net.Addr, hostIP net.IP, hostPort int) (host net.Addr, err er <ide> return nil, err <ide> } <ide> <del> m.userlandProxy = proxy <del> currentMappings[key] = m <del> <ide> cleanup := func() error { <ide> // need to undo the iptables rul...
3
Ruby
Ruby
parse json early in github module
4d6df3e3bca5147f49deb530d930b2f40b032cd1
<ide><path>Library/Homebrew/cmd/search.rb <ide> require 'formula' <ide> require 'blacklist' <ide> require 'utils' <del>require 'utils/json' <ide> <ide> module Homebrew extend self <ide> <ide> def search_tap user, repo, rx <ide> return [] if (HOMEBREW_LIBRARY/"Taps/#{user.downcase}-#{repo.downcase}").directory? <i...
2
Ruby
Ruby
check version conflicts using linkage
ca6c75d229c73a2523e95aa3736a8031c2f8c158
<ide><path>Library/Homebrew/formula_installer.rb <ide> def check_install_sanity <ide> <ide> recursive_deps = formula.recursive_dependencies <ide> recursive_formulae = recursive_deps.map(&:to_formula) <del> recursive_runtime_formulae = <del> formula.runtime_formula_dependencies(undeclared: false) <ide> ...
2
PHP
PHP
fix expectedexceptionmessage to handle >=php7
0d7e70cd3566e11db0a5d80c0e9b9b0033b0a87b
<ide><path>tests/TestCase/Core/Configure/Engine/JsonConfigTest.php <ide> public function testReadWithNonExistentFile() <ide> * Test reading an empty file. <ide> * <ide> * @expectedException \Cake\Core\Exception\Exception <del> * @expectedExceptionMessage Decoding JSON config file "empty.json" did not...
1
Python
Python
change catacc to call sparsecatacc
a8385c3835a417dc85f8bc862ef87d9c35dc9017
<ide><path>keras/metrics/metrics.py <ide> def categorical_accuracy(y_true, y_pred): <ide> Returns: <ide> Categorical accuracy values. <ide> """ <del> return tf.cast( <del> tf.equal( <del> tf.math.argmax(y_true, axis=-1), tf.math.argmax(y_pred, axis=-1)), <del> backend.floatx()) <add> y_true...
1
Text
Text
add documentation about variants
90a8ce645085e475f668643195652b7518a7b9cc
<ide><path>guides/CHANGELOG.md <add>* Added documentation about the `variants` option to `render` <add> <add> *Edward Rudd* <add> <add> <ide> ## Rails 6.0.0.beta3 (March 11, 2019) ## <ide> <ide> * No changes. <ide><path>guides/source/layouts_and_rendering.md <ide> Calls to the `render` method generally accept f...
2
Text
Text
update changelog for 2.7.0
8b2949cd06e5c30d9028f69b8eb19bf0818e5d52
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <del>### 2.7.0-beta.3 (July 5, 2016) <add>### 2.7.0 (July 25, 2016) <ide> <add>- [#13764](https://github.com/emberjs/ember.js/pull/13764) [BUGFIX] Keep rest positional parameters when nesting contextual components if needed. <add>- [#13781](https://github.com/embe...
1
Javascript
Javascript
fix typo in inlining example
9f2aaca65b72412dd12af49385602a7bfec62d51
<ide><path>src/auto/injector.js <ide> function annotate(fn) { <ide> * // ... <ide> * }; <ide> * tmpFn.$inject = ['$compile', '$rootScope']; <del> * injector.invoke(tempFn); <add> * injector.invoke(tmpFn); <ide> * <ide> * // To better support inline function the inline annotation is supported <ide> *...
1
Text
Text
fix some words, translate title
66860292676b2a674e263ce4c7acfb0cee90f25e
<ide><path>docs/docs/03-interactivity-and-dynamic-uis.ko-KR.md <ide> --- <del>id: interactivity-and-dynamic-uis <del>title: Interactivity and Dynamic UIs <add>id: interactivity-and-dynamic-uis-ko-KR <add>title: 상호 작용 및 동적 UI <ide> permalink: interactivity-and-dynamic-uis.ko-KR.html <ide> prev: jsx-gotchas.ko-KR.html <i...
1
PHP
PHP
make view with response status and headers
036a0bab0bd05cf2f8086363c35adc104a7cf631
<ide><path>laravel/response.php <ide> public static function make($content, $status = 200, $headers = array()) <ide> { <ide> return new static($content, $status, $headers); <ide> } <add> <add> /** <add> * Create a new response instance with status code. <add> * <add> * <code> <add> * // Create a response inst...
1
Text
Text
correct import statement
8a10b50b6732176ac4335752045e3d7f4545443b
<ide><path>doc/api/esm.md <ide> To include an ES module into CommonJS, use [`import()`][]. <ide> <ide> ### <code>import</code> statements <ide> <del>An `import` statement can reference either ES module or CommonJS JavaScript. <del>Other file types such as JSON and Native modules are not supported. For those, <add>An ...
1
Text
Text
improve spanish translation for ruby's guide
c7f8ff864616c5862debd4bacf7da211dca2e459
<ide><path>guide/spanish/ruby/ruby-arrays/index.md <ide> --- <ide> title: Ruby Arrays <del>localeTitle: Matrices de rubíes <add>localeTitle: Arrays de Ruby <ide> --- <del>## Matrices de rubíes <add>## Arrays de Ruby <ide> <del>Una matriz representa una lista de valores. Los valores individuales a menudo se llaman "ele...
1
Ruby
Ruby
add ability to specify your own sanitizer
c7567c9a6dee1380432beaf88c1854a4ed6bb15b
<ide><path>activemodel/lib/active_model/mass_assignment_security.rb <ide> require 'active_support/core_ext/class/attribute.rb' <ide> require 'active_model/mass_assignment_security/permission_set' <add>require 'active_model/mass_assignment_security/sanitizer' <ide> <ide> module ActiveModel <ide> # = Active Model Mass...
7
PHP
PHP
remove check for items in memcached cache driver
6c51536d7d8ae5ebf753738c8cc26d6397b8a743
<ide><path>system/cache/driver/memcached.php <ide> public function has($key) <ide> */ <ide> public function get($key) <ide> { <del> if (array_key_exists($key, $this->items)) <del> { <del> return $this->items[$key]; <del> } <del> <ide> $cache = \System\Memcached::instance()->get(\System\Config::get('cache.key...
1
PHP
PHP
extract an if check into a method
3271f78e85a343bde67dae5a84c79739fbe8d4be
<ide><path>src/Illuminate/Encryption/Encrypter.php <ide> protected function getJsonPayload($payload) <ide> throw new DecryptException("Invalid data."); <ide> } <ide> <del> if ($payload['mac'] !== $this->hash($payload['iv'], $payload['value'])) <add> if ( ! $this->validMac($payload)) <ide> { <ide> throw new...
1
Text
Text
remove unnecessary intro in governance doc
38f0e382f7b431620323a3bb9cac052d3e7a539d
<ide><path>GOVERNANCE.md <ide> # Node.js Project Governance <ide> <del>The Node.js project is governed by its Collaborators, including a Technical <del>Steering Committee (TSC) which is responsible for high-level guidance of the <del>project. <del> <ide> <!-- TOC --> <ide> <ide> - [Collaborators](#collaborators)
1
Python
Python
add regression test for ticket #702
50a40534484d4797eab36e22561e0637f519d2bb
<ide><path>numpy/core/tests/test_regression.py <ide> def check_object_array_refcounting(self, level=rlevel): <ide> assert cnt(a) == cnt0_a + 5 + 2 <ide> assert cnt(b) == cnt0_b + 5 + 3 <ide> <add> def check_mem_custom_float_to_array(self, level=rlevel): <add> """Ticket 702""" <add> cla...
1
Text
Text
remove stray `
7788879c5a6fa69de935a1e045fe1ab657b9dc2e
<ide><path>import-into-idea.md <ide> _Within your locally cloned spring-framework working directory:_ <ide> <ide> ## Known issues <ide> <del>1. `spring-core` and ``spring-oxm` should be pre-compiled due to repackaged dependencies. <add>1. `spring-core` and `spring-oxm` should be pre-compiled due to repackaged depende...
1
Python
Python
prepare 2.2.5 release
aa28910799bcd169d28ae1e5b50508c868df7380
<ide><path>keras/__init__.py <ide> from .models import Model <ide> from .models import Sequential <ide> <del>__version__ = '2.2.4' <add>__version__ = '2.2.5' <ide><path>keras/backend/tensorflow_backend.py <ide> _LOCAL_DEVICES = None <ide> <ide> <add>def _get_default_graph(): <add> try: <add> return tf.get_...
5
Ruby
Ruby
build fix, remove not null constraint
4c81c8ce533896be28bdc0b055ff30bb9dee1316
<ide><path>activerecord/test/cases/migration_test.rb <ide> def setup <ide> end <ide> Person.connection.remove_column("people", "first_name") rescue nil <ide> Person.connection.remove_column("people", "middle_name") rescue nil <del> Person.connection.add_column("people", "first_name", :string, null: false...
1
Javascript
Javascript
avoid object iteration when creating dom factories
e5f9ae27058052e72d6fb6d89c6ca93075e4089a
<ide><path>src/isomorphic/classic/element/ReactDOMFactories.js <ide> <ide> var ReactElement = require('ReactElement'); <ide> <del>var mapObject = require('mapObject'); <del> <ide> /** <ide> * Create a factory that creates HTML tag elements. <ide> * <del> * @param {string} tag Tag name (e.g. `div`). <ide> * @privat...
1
Javascript
Javascript
move props to virtualizedlistprops
03b4764836e80d305aad78d7c35809b87615685c
<ide><path>Libraries/Lists/VirtualizedList.js <ide> import type {ScrollResponderType} from '../Components/ScrollView/ScrollView'; <ide> import type {ViewStyleProp} from '../StyleSheet/StyleSheet'; <ide> import type {LayoutEvent, ScrollEvent} from '../Types/CoreEventTypes'; <add> <add>import type {ViewToken} from './Vie...
4
Ruby
Ruby
use predicate method and eliminate local
9321873eef1c895b8d0fae23069dcfcf291f9a40
<ide><path>Library/Contributions/cmd/brew-test-bot.rb <ide> def run <ide> <ide> @time = Time.now - start_time <ide> <del> success = $?.success? <del> @status = success ? :passed : :failed <add> @status = $?.success? ? :passed : :failed <ide> puts_result <ide> <ide> if File.exist?(log) <ide> ...
1
Python
Python
fix bidirectional regularization
b076e227da6beaf87d6c84eff1a92285e4662acf
<ide><path>keras/layers/wrappers.py <ide> def updates(self): <ide> return self.forward_layer.updates + self.backward_layer.updates <ide> return [] <ide> <add> def get_updates_for(self, inputs=None): <add> forward_updates = self.forward_layer.get_updates_for(inputs) <add> backward_u...
2
Text
Text
fix typos in layer writing guide
fc470db7ab915d0e5f8be46c095937b297296fbb
<ide><path>docs/templates/layers/writing-your-own-keras-layers.md <ide> Here is the skeleton of a Keras layer. There are only three methods you need to <ide> ```python <ide> from keras import backend as K <ide> from keras.engine.topology import Layer <add>import numpy as np <ide> <ide> class MyLayer(Layer): <ide> ...
1
Javascript
Javascript
remove android `settimeout` warning
480dabd66547a60522249eda203a3eb1934b02e5
<ide><path>Libraries/Core/Timers/JSTimers.js <ide> 'use strict'; <ide> <ide> const BatchedBridge = require('../../BatchedBridge/BatchedBridge'); <del>const Platform = require('../../Utilities/Platform'); <ide> const Systrace = require('../../Performance/Systrace'); <ide> <ide> const invariant = require('invariant'); ...
1
PHP
PHP
apply fixes from styleci
feec50bc19f7861ac9792ccb04bdc9d4d7d46468
<ide><path>src/Illuminate/Cache/Repository.php <ide> use Illuminate\Contracts\Cache\Repository as CacheContract; <ide> <ide> /** <del> * @mixin \Illuminate\Contracts\Cache\Store <add> * @mixin \Illuminate\Contracts\Cache\Store <ide> */ <ide> class Repository implements CacheContract, ArrayAccess <ide> {
1
Ruby
Ruby
expand help and help-related tests
b53f0c5ada753d5ded6f6fbe4f920a4a43696394
<ide><path>Library/Homebrew/test/test_integration_cmds.rb <ide> def test_repository <ide> end <ide> <ide> def test_help <del> assert_match "Example usage:", <del> cmd("help") <add> assert_match "Example usage:\n", <add> cmd_fail # Generic help (empty argument list). <add> a...
1
Javascript
Javascript
fix typo in comment (environement → environment)
0706162ba7dff8aeb4bf824473f423946c0168c9
<ide><path>packages/react-reconciler/src/ReactFiberWorkLoop.new.js <ide> export function requestUpdateLane(fiber: Fiber): Lane { <ide> return updateLane; <ide> } <ide> <del> // This update originated outside React. Ask the host environement for an <add> // This update originated outside React. Ask the host env...
2
Go
Go
use vt100 escape codes
f1dd299227b15696872822f40a4ab9f1a54098a7
<ide><path>commands.go <ide> func (cli *DockerCli) stream(method, path string, in io.Reader, out io.Writer) e <ide> } <ide> <ide> if resp.Header.Get("Content-Type") == "application/json" { <del> dec := json.NewDecoder(resp.Body) <del> jm := utils.JSONMessage{} <del> for { <del> if err := dec.Decode(&jm); err ==...
2
Javascript
Javascript
fix error 500
21605a5f9fadcfbca28c0906127382c5ecf40b77
<ide><path>examples/with-deta-base/pages/api/todos/index.js <ide> const handler = async (req, res) => { <ide> let respBody = {} <ide> <ide> if (method === 'GET') { <del> const { value: items } = await base.fetch([]).next() <add> const { items } = await base.fetch([]) <ide> respBody = items <ide> res....
1
Ruby
Ruby
allow specifying committer for some `dev-cmd`s
59dae75709bb27c704ec7834779aa8c0f045d5b2
<ide><path>Library/Homebrew/dev-cmd/bottle.rb <ide> def bottle_args <ide> switch "--only-json-tab", <ide> depends_on: "--json", <ide> description: "When passed with `--json`, the tab will be written to the JSON file but not the bottle." <add> flag "--committer=", <add> ...
5
PHP
PHP
use tabs, always
6abdb1574dfc770d44083910c5f2d5147ad04595
<ide><path>app/Http/Filters/AuthFilter.php <ide> <ide> class AuthFilter { <ide> <del> /** <del> * The authenticator implementation. <del> * <del> * @var Authenticator <del> */ <del> protected $auth; <add> /** <add> * The authenticator implementation. <add> * <add> * @var Authenticator <add> ...
3
Python
Python
make a nested if flat
0d64b4a704eed2fb483de66a7e7271ac83144530
<ide><path>djangorestframework/serializer.py <ide> def serialize_model(self, instance): <ide> # serialize each required field <ide> for fname in fields: <ide> try: <del> if hasattr(self, smart_str(fname)): <add> if inspect.ismethod(getattr(self, fname, None)) an...
1
Javascript
Javascript
add tests, better tostring
56e44601d285483ffe3c6efa3b80743900d84856
<ide><path>lib/internal/event_target.js <ide> class EventTarget { <ide> <ide> return `${name} ${inspect({}, opts)}`; <ide> } <add> get [Symbol.toStringTag]() { return 'EventTarget'; } <ide> } <ide> <ide> Object.defineProperties(EventTarget.prototype, { <ide><path>test/parallel/test-eventtarget.js <ide> ok(Even...
2
Text
Text
add a bundlefile example in the documentation
e68a4b18e9808c8fcd56c8f779e7bf97e07ddfe6
<ide><path>experimental/docker-stacks-and-bundles.md <ide> A service has the following fields: <ide> </dd> <ide> </dl> <ide> <add>The following is an example of bundlefile with two services: <add> <add>```json <add>{ <add> "Version": "0.1", <add> "Services": { <add> "redis": { <add> "Image": "redis@sha256:4b241...
1
Go
Go
normalize comment formatting
d29f420424db6ffe1bd16f6155d01d88caed85fd
<ide><path>libcontainerd/local/local_windows.go <ide> func (c *client) Version(ctx context.Context) (containerd.Version, error) { <ide> // Isolation=Process example: <ide> // <ide> // { <del>// "SystemType": "Container", <del>// "Name": "5e0055c814a6005b8e57ac59f9a522066e0af12b48b3c26a9416e23907698776", <del>// "Owner"...
2
Go
Go
return weird behaviour of returning json errors
ec51ba01dbbeadb06cc7f3c14e94f8a2ee938a34
<ide><path>api/server/server.go <ide> func (s *Server) postImagesPush(eng *engine.Engine, version version.Version, w h <ide> useJSON := version.GreaterThan("1.0") <ide> name := vars["name"] <ide> <add> output := utils.NewWriteFlusher(w) <ide> imagePushConfig := &graph.ImagePushConfig{ <ide> MetaHeaders: metaHeade...
1
Mixed
Ruby
improve documentation of `load_async`
718059ed9d4198591391818348c8fda68154c7fb
<ide><path>activerecord/lib/active_record/relation.rb <ide> def delete_by(*args) <ide> # Schedule the query to be performed from a background thread pool. <ide> # <ide> # Post.where(published: true).load_async # => #<ActiveRecord::Relation> <add> # <add> # When the +Relation+ is iterated, if the bac...
2
Text
Text
fix typo in collaborator_guide.md
59f71ea4ddf081b55f50334158c25ea19808b3d6
<ide><path>COLLABORATOR_GUIDE.md <ide> LTS working group and the Release team. <ide> | `lib/domains` | @nodejs/domains | <ide> | `lib/fs`, `src/{fs,file}` | @nodejs/fs ...
1
PHP
PHP
replace more mocks with concrete classes
ec64c1be8824b385a3dba594027a8537979f7f59
<ide><path>tests/TestCase/Error/ErrorHandlerTest.php <ide> class ErrorHandlerTest extends TestCase <ide> protected $_restoreError = false; <ide> <ide> /** <del> * @var \Psr\Log\LoggerInterface|\PHPUnit\Framework\MockObject\MockObject <add> * @var \Cake\Log\Engine\ArrayLog <ide> */ <del> protect...
2
Ruby
Ruby
add create_association! for belongs_to
52c47556b7cf55549f97f3cfd5f69b2563198eac
<ide><path>activerecord/lib/active_record/associations.rb <ide> def collection_accessor_methods(reflection, writer = true) <ide> <ide> def association_constructor_methods(reflection) <ide> constructors = { <del> "build_#{reflection.name}" => "build", <del> "create_#{reflection....
5
Ruby
Ruby
remove remaining http_only? calls
e1824c5991f0e694cf041c3aacd43a53ce97b0dd
<ide><path>railties/lib/rails/application.rb <ide> def default_middleware_stack <ide> <ide> middleware.use ::Rack::Lock unless config.allow_concurrency <ide> middleware.use ::Rack::Runtime <del> middleware.use ::Rack::MethodOverride unless config.middleware.http_only? <add> middleware.use...
2
Python
Python
add short names of months to tokenizer_exceptions
e8f40ceed8d259df3102dc68bbb13cdb34d704f1
<ide><path>spacy/lang/da/tokenizer_exceptions.py <ide> # encoding: utf8 <ide> from __future__ import unicode_literals <ide> <del>from ...symbols import ORTH, LEMMA <add>from ...symbols import ORTH, LEMMA, NORM <ide> <ide> <ide> _exc = {} <ide> <add>for exc_data in [ <add> {ORTH: "Kbh.", LEMMA: "København", NORM:...
1
Go
Go
return error for utils.matches in archive
8891e912b44c4ff597f7a45658c4d3030d730c98
<ide><path>archive/archive.go <ide> func TarWithOptions(srcPath string, options *TarOptions) (io.ReadCloser, error) <ide> skip, err := utils.Matches(relFilePath, options.Excludes) <ide> if err != nil { <ide> utils.Debugf("Error matching %s\n", relFilePath, err) <del> return nil <add> return err <id...
1
Python
Python
fix deprecation warnings in relations_nested tests
14482a966168a98d43099d00c163d1c8c3b6471b
<ide><path>rest_framework/tests/relations_nested.py <ide> class Meta: <ide> <ide> def test_one_to_one_retrieve(self): <ide> queryset = OneToOneTarget.objects.all() <del> serializer = self.Serializer(queryset) <add> serializer = self.Serializer(queryset, many=True) <ide> expected = [ <...
1
Javascript
Javascript
fix warning message
c0f74e2614841a75d03a795dd72dd9fadeb9d393
<ide><path>packages/ember-routing/lib/system/route.js <ide> function parentTemplate(route, isRecursive) { <ide> <ide> if (!parent) { return; } <ide> <del> Ember.warn(fmt("The immediate parent route ('%@') did not render into the main outlet and the default 'into' option ('%@') may not be expected", get(parent, 'ro...
1
Go
Go
move change to the archive package
01990b65a3cf3da5e04aa6612a17ead2a6cac2c9
<ide><path>utils.go <ide> import ( <ide> "syscall" <ide> ) <ide> <del> <ide> type Change struct { <ide> archive.Change <ide> } <ide> <del> <ide> // Compare two Config struct. Do not compare the "Image" nor "Hostname" fields <ide> // If OpenStdin is set, then it differs <ide> func CompareConfig(a, b *Config) bool {
1
Ruby
Ruby
add min node
5daafa8e959acc64fc19e9522470282ac0f25f33
<ide><path>lib/arel/attributes/attribute.rb <ide> def maximum <ide> Nodes::Max.new [self], Nodes::SqlLiteral.new('max_id') <ide> end <ide> <add> def minimum <add> Nodes::Min.new [self], Nodes::SqlLiteral.new('min_id') <add> end <add> <ide> def average <ide> Nodes::Avg.new [...
5
PHP
PHP
add clarification to comment
abaee25b562a580460a38c43b7a35fe23fd16116
<ide><path>app/Exceptions/Handler.php <ide> class Handler extends ExceptionHandler { <ide> /** <ide> * Report or log an exception. <ide> * <add> * This is a great location to send exceptions to Sentry, Bugsnag, etc. <add> * <ide> * @param \Exception $e <ide> * @return void <ide> */
1
Javascript
Javascript
fix example rendering
5d7ae49a64600d1e107dbbbac37b4ca901cd7ef9
<ide><path>packages/ember-testing/lib/helpers/current_route_name.js <ide> import { get } from 'ember-metal'; <ide> /** <ide> Returns the currently active route name. <add> <ide> Example: <add> <ide> ```javascript <ide> function validateRouteName() { <ide> equal(currentRouteName(), 'some.path', "correct route was tr...
1
Javascript
Javascript
reset progress reporter outside of hooks
1991da2c51ff615b60d9f0e6fa9621ace0c2f67f
<ide><path>lib/ProgressPlugin.js <ide> class ProgressPlugin { <ide> handler(percentage, "sealing", title); <ide> }, <ide> done() { <add> progressReporters.set(compiler, undefined); <ide> handler(percentage, "sealing", title); <ide> }, <ide> result() { <ide> class ProgressPlugin { <i...
1
Text
Text
fix text to follow portuguese language syntax
b6d13ddf39c97fe8a77ee676e4de017b381a0a96
<ide><path>curriculum/challenges/portuguese/01-responsive-web-design/css-flexbox/align-elements-using-the-justify-content-property.portuguese.md <ide> localeTitle: Alinhar elementos usando a propriedade justify-content <ide> --- <ide> <ide> ## Description <del><section id="description"> Às vezes, os itens flexíveis de...
1
Python
Python
fix e741 flake8 warning (x14)
b0f7db73cd2fd10142668d43fd30906a438f05f3
<ide><path>examples/contrib/run_swag.py <ide> def __str__(self): <ide> return self.__repr__() <ide> <ide> def __repr__(self): <del> l = [ <add> attributes = [ <ide> "swag_id: {}".format(self.swag_id), <ide> "context_sentence: {}".format(self.context_sentence), <ide> ...
8
Python
Python
handle app factory with arguments in flask_app
7106fb63578deef49741096d3d5aa04db89e15ae
<ide><path>flask/cli.py <ide> :license: BSD, see LICENSE for more details. <ide> """ <ide> <add>import ast <add>import inspect <ide> import os <add>import re <ide> import sys <ide> import traceback <ide> from functools import update_wrapper <ide> def find_best_app(script_info, module): <ide> ' one.'.fo...
3
PHP
PHP
update input parsing to work with patch & delete
2b35abe7534594e597c45bd1d60a37675c432d6e
<ide><path>lib/Cake/Network/Request.php <ide> class Request implements \ArrayAccess { <ide> <ide> /** <ide> * Array of POST data. Will contain form data as well as uploaded files. <del> * Inputs prefixed with 'data' will have the data prefix removed. If there is <del> * overlap between an input prefixed with data a...
2
Ruby
Ruby
add use_sprockets flag
954d73df5312f4829c96a76f1929e45597e85680
<ide><path>railties/lib/rails/application/configuration.rb <ide> class Configuration < ::Rails::Engine::Configuration <ide> :filter_parameters, :helpers_paths, :logger, <ide> :preload_frameworks, :reload_plugins, <ide> :secret_token, :serve_static_assets, :ses...
3
Ruby
Ruby
remove backports for ruby 1.8.6
ec1727a1bed5c431941972aeae064b6345e51321
<ide><path>Library/Homebrew/extend/enumerable.rb <del>module Enumerable <del> def group_by <del> inject({}) do |h, e| <del> h.fetch(yield(e)) { |k| h[k] = [] } << e; h <del> end <del> end unless method_defined?(:group_by) <del>end <ide><path>Library/Homebrew/extend/string.rb <ide> def undent <ide> # ...
4
Javascript
Javascript
simplify jquery.parsexml method
5a0867d1e94794fbfc3be1f18f4c0a168dc18d95
<ide><path>src/ajax/parseXML.js <ide> define([ <ide> <ide> // Cross-browser xml parsing <ide> jQuery.parseXML = function( data ) { <del> var xml, tmp; <add> var xml; <ide> if ( !data || typeof data !== "string" ) { <ide> return null; <ide> } <ide> <ide> // Support: IE9 <ide> try { <del> tmp = new DOMParser(); ...
1
Text
Text
clarify+make the reducer description more concise
a14b3fc2273607a8f06aa43da666f70a7e0d2dd5
<ide><path>guide/english/redux/redux-reducers/index.md <ide> title: Redux Reducers <ide> --- <ide> ## Redux Reducers <ide> <del>Redux reducers allow you to make changes to your state in your application. Actions in redux only tell the application what basically happened. Whether it was a click event that took place or...
1
Text
Text
fix entrytypes type and missing link
049a8d7c1d9c69602b39bcd149ee1c093d72b970
<ide><path>doc/api/perf_hooks.md <ide> const obs = new PerformanceObserver((list) => { <ide> obs.disconnect(); <ide> performance.clearFunctions(); <ide> }); <del>obs.observe({ entryTypes: 'function' }); <add>obs.observe({ entryTypes: ['function'] }); <ide> <ide> // A performance timeline entry will be created <ide...
1
Text
Text
fix typo in api documents
2f0d4946823019d2b41a0aac7eaa6b84f8e96e49
<ide><path>docs/api/v1.22.md <ide> Update resource configs of one or more containers. <ide> "Memory": 314572800, <ide> "MemorySwap": 514288000, <ide> "MemoryReservation": 209715200, <del> "KernelMemory": 52428800, <add> "KernelMemory": 52428800 <ide> } <ide> <ide> **Ex...
3
Ruby
Ruby
align all the assigments
028faabc5fbfaa27c17484a0c992ebd8338566e1
<ide><path>railties/lib/rails/generators/rails/app/app_generator.rb <ide> def config <ide> end <ide> <ide> def config_when_updating <del> cookie_serializer_config_exist = File.exist?("config/initializers/cookies_serializer.rb") <del> action_cable_config_exist = File.exist?("config/cable.yml") <d...
1
Javascript
Javascript
remove donate settings page
c40680b81e6c62332392ec6c66ccc5a2b17ebf2e
<ide><path>client/src/client-only-routes/ShowSettings.js <ide> import Portfolio from '../components/settings/Portfolio'; <ide> import Honesty from '../components/settings/Honesty'; <ide> import Certification from '../components/settings/Certification'; <ide> import DangerZone from '../components/settings/DangerZone'; <...
6
Go
Go
set utilizecache to false on cache miss
1e746a8a2b2f8a88903feca430f254605dcc6cc8
<ide><path>builder/internals.go <ide> func (b *Builder) probeCache() (bool, error) { <ide> return true, nil <ide> } else { <ide> log.Debugf("[BUILDER] Cache miss") <add> // after a miss we no longer need to probe <add> b.UtilizeCache = false <ide> } <ide> } <ide> return false, nil
1
Java
Java
fix textinput padding on nodes
3061606fe65062b93704155eb7c7e15c70280d16
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/RCTTextInput.java <ide> import android.view.ViewGroup; <ide> import android.widget.EditText; <ide> <del>import com.facebook.csslayout.CSSDirection; <ide> import com.facebook.csslayout.CSSMeasureMode; <ide> import com.facebook.csslayout.CSSNodeAPI; <ide> imp...
1
Ruby
Ruby
pull nil checks up
8d572ad1baa9171253957f174bf88283f84018e8
<ide><path>actionpack/lib/action_dispatch/routing/polymorphic_routes.rb <ide> def polymorphic_url(record_or_hash_or_array, options = {}) <ide> record_list = extract_record_list(record_or_hash_or_array) <ide> end <ide> <add> if record_list.empty? || record_list.any?(&:nil?) <add> raise...
1
Ruby
Ruby
fix rubocop violations
c0af72bf86701e03ac97a50754beddf2b5d7943f
<ide><path>actionview/test/lib/test_component.rb <ide> def self.compile <ide> end <ide> <ide> private <del> <ide> attr_reader :content, :title, :view_context <ide> end <ide><path>activerecord/test/cases/adapters/postgresql/uuid_test.rb <ide> def test_schema_dumper_for_uuid_primary_key_default <ide> end <ide> ...
2
Ruby
Ruby
remove stray undent
db361e29b8d4909757e624fafdfb6186d0fe112a
<ide><path>Library/Homebrew/extend/os/linux/diagnostic.rb <ide> def check_tmpdir_executable <ide> f.close <ide> return if system f.path <ide> <del> <<~EOS.undent <add> <<~EOS <ide> The directory #{HOMEBREW_TEMP} does not permit executing <ide> programs. It is likely mo...
1
Go
Go
ignore dir sizes in treesize func
a4f14528c25c4a092c30334d05008fe44275a79e
<ide><path>aufs/aufs_test.go <ide> func TestChanges(t *testing.T) { <ide> } <ide> } <ide> <del>/* FIXME: How to properly test this? <ide> func TestDiffSize(t *testing.T) { <ide> d := newDriver(t) <ide> defer os.RemoveAll(tmp) <ide> func TestDiffSize(t *testing.T) { <ide> t.Fatal(err) <ide> } <ide> <del> diffSiz...
2
Text
Text
add marked source in tutorial doc
25ef456b132e389210c289222604bf43d0b3bbcd
<ide><path>docs/docs/tutorial.md <ide> For sake of simplicity, the server we will run uses a `JSON` file as a database. <ide> <ide> ### Getting started <ide> <del>For this tutorial, we're going to make it as easy as possible. Included in the server package discussed above is an HTML file which we'll work in. Open up ...
1
PHP
PHP
fix failing tests from upstream 3.0
7cf205556c9b745d3c04b0307f5c5d3131bc8440
<ide><path>Cake/Test/TestCase/ORM/TableTest.php <ide> public function testReciprocalHasManyLoading() { <ide> * @return void <ide> */ <ide> public function testReciprocalBelongsToMany() { <del> $table = new \TestApp\Model\Repository\ArticleTable; <add> $table = new \TestApp\Model\Repository\ArticleTable([ <add> '...
1
PHP
PHP
remove extra alias
9aea079a6c6ed15dd5f764d05dd75c7325fdd50f
<ide><path>src/Illuminate/Mail/TransportManager.php <ide> use Illuminate\Mail\Transport\LogTransport; <ide> use Illuminate\Mail\Transport\SesTransport; <ide> use Illuminate\Mail\Transport\ArrayTransport; <del>use Swift_SendmailTransport as MailTransport; <ide> use Illuminate\Mail\Transport\MailgunTransport; <ide> use I...
1
Python
Python
fix indentation -.-
857454ffa0c7d66a788d15e1f6feb1ba6ba1ba59
<ide><path>spacy/de/__init__.py <ide> class German(Language): <ide> lang = 'de' <ide> <del> @classmethod <add> @classmethod <ide> def default_vocab(cls, package, get_lex_attr=None, vectors_package=None): <ide> vocab = super(German,cls).default_vocab(package,get_lex_attr,vectors_package) <del> ...
1
Text
Text
fix a broken link
a03d5bc2887b0dfd537262e57baa73864b707aa3
<ide><path>docs/creating-a-theme.md <ide> a few things before starting: <ide> is used to help distribute your theme to Atom users. <ide> * Your theme's _package.json_ must contain a `"theme"` key with a value <ide> of `"ui"` or `"syntax"` for Atom to recognize and load it as a theme. <del>* You can find existing th...
1
Javascript
Javascript
remind user that hot updates stopped
216b435c25e29178973290e3a0f7356b725d1d6b
<ide><path>hot/only-dev-server.js <ide> if(module.hot) { <ide> var hotEmitter = require("./emitter"); <ide> hotEmitter.on("webpackHotUpdate", function(currentHash) { <ide> lastHash = currentHash; <del> if(!upToDate() && module.hot.status() === "idle") { <del> console.log("[HMR] Checking for updates on the server...
1
Python
Python
attach volume upon machine creation
0b8b51b66067b7c7d3f873102feadd133691d4bf
<ide><path>libcloud/compute/drivers/digitalocean.py <ide> def list_volumes(self): <ide> return list(map(self._to_volume, data)) <ide> <ide> def create_node(self, name, size, image, location, ex_create_attr=None, <del> ex_ssh_key_ids=None, ex_user_data=None): <add> ex_s...
1
Python
Python
restore description for provider packages.
983e5a62df6d74cd35fbb1fc7f830e32000c299c
<ide><path>backport_packages/setup_backport_packages.py <ide> def get_long_description(provider_package_id: str) -> str: <ide> :return: content of the description (README file) <ide> """ <ide> package_folder = get_target_providers_package_folder(provider_package_id) <del> with open(os.path.join(package_f...
1
Go
Go
fix registry pushing/tagging
5aa304f9696d8fcc2e39628ce68a39bfc932adb4
<ide><path>server.go <ide> func (srv *Server) ImagePull(localName string, tag string, out io.Writer, sf *ut <ide> } <ide> <ide> // Retrieve the all the images to be uploaded in the correct order <del>// Note: we can't use a map as it is not ordered <del>func (srv *Server) getImageList(localRepo map[string]string) ([][...
1
Javascript
Javascript
add tests for ignoring null nodes
c22d45027ce5971420f871f725addde39bd341f7
<ide><path>test/core/selection-append-test.js <ide> suite.addBatch({ <ide> assert.isTrue(svg[0][1].parentNode === div[0][1]); <ide> assert.isTrue(div[0][0].lastChild === svg[0][0]); <ide> assert.isTrue(div[0][1].lastChild === svg[0][1]); <add> }, <add> "ignores null nodes": function(div) { <add>...
8
PHP
PHP
use collection@lists in builder@lists
ef734e77237fff4c1202e0056da499ecec724b85
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> public function orWhereNotNull($column) <ide> { <ide> return $this->whereNotNull($column, 'or'); <ide> } <del> <add> <ide> /** <ide> * Add a "where date" statement to the query. <ide> * <ide> public function whereDate($column, $operator, $value, $bool...
2