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 | add test case for network restore | 7d0689a8d35e4dd7d569e552957a20ba287c95e6 | <ide><path>integration-cli/docker_cli_network_unix_test.go
<ide> func (s *DockerNetworkSuite) TestDockerNetworkCreateDeleteSpecialCharacters(c *c
<ide> dockerCmd(c, "network", "rm", "kiwl$%^")
<ide> assertNwNotAvailable(c, "kiwl$%^")
<ide> }
<add>
<add>func (s *DockerDaemonSuite) TestDaemonRestartRestoreBridgeNetwork... | 1 |
Javascript | Javascript | transfer everything from element onto the fiber | aa14d89c7da229e1bf162414bff87fd020d7218b | <ide><path>src/renderers/shared/fiber/ReactFiber.js
<ide> export type Fiber = {
<ide> child: ?Fiber,
<ide> sibling: ?Fiber,
<ide>
<del> // Input is the data coming into process this fiber. Arguments.
<add> // Unique identifier of this child.
<add> key: ?string,
<add>
<add> // The function/class/module associat... | 5 |
Ruby | Ruby | avoid double wait in eventedfileupdatecheckertest | 86c732a606209c05b3cd425b4d4ae3765ac0852d | <ide><path>activesupport/test/evented_file_update_checker_test.rb
<ide> def wait
<ide> sleep 1
<ide> end
<ide>
<add> def mkdir(dirs)
<add> super
<add> wait # wait for the events to fire
<add> end
<add>
<ide> def touch(files)
<ide> super
<ide> wait # wait for the events to fire
<ide> end
<ide>... | 3 |
PHP | PHP | normalize controllerinterface on responseinterface | 4978c493795fabd85e79a3b79823efa015625320 | <ide><path>src/Controller/Controller.php
<ide> public function implementedEvents(): array
<ide> * - Calls the controller `beforeFilter`.
<ide> * - triggers Component `startup` methods.
<ide> *
<del> * @return \Cake\Http\Response|null
<add> * @return \Psr\Http\Message\ResponseInterface|null
<ide> ... | 3 |
Ruby | Ruby | deprecate the eventedredis subscription adapter | 3721b859b605233ae577453532e71b0a969e8116 | <ide><path>actioncable/lib/action_cable/subscription_adapter/evented_redis.rb
<ide> class EventedRedis < Base # :nodoc:
<ide> cattr_accessor(:redis_connector) { ->(config) { ::Redis.new(url: config[:url]) } }
<ide>
<ide> def initialize(*)
<add> ActiveSupport::Deprecation.warn(<<-MSG.squish)
<add> ... | 2 |
Ruby | Ruby | treat any limit > 4 as bigint | 290e1e2fc53d80165cc876491ec0cbe18be376cf | <ide><path>activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
<ide> def extract_limit(sql_type)
<ide> else
<ide> super # we could return 65535 here, but we leave it undecorated by default
<ide> end
<del> when /^int/i; 4
<ide> when /^bigint/... | 1 |
Ruby | Ruby | move session settings closer together | b50a05cac32f7e1f70ea622e2c82972c87391dfa | <ide><path>railties/environments/environment.rb
<ide> # (by default production uses :info, the others :debug)
<ide> # config.log_level = :debug
<ide>
<add> # Your secret key for verifying cookie session data integrity.
<add> # If you change this key, all old sessions will become invalid!
<add> config.action_con... | 1 |
Python | Python | allow dynamic shape for repeat_elements | 98238720ee0f0ed9b9d21c6f9f234206d9e90b9e | <ide><path>keras/backend/tensorflow_backend.py
<ide> def repeat_elements(x, rep, axis):
<ide> rep: Python integer, number of times to repeat.
<ide> axis: Axis along which to repeat.
<ide>
<del> # Raises
<del> ValueError: In case `x.shape[axis]` is undefined.
<del>
<ide> # Returns
<ide> ... | 2 |
Text | Text | add tao of redux links | 6ce5f0f5acb73fdd01ea4f363ed53ef0b79d2f37 | <ide><path>docs/tutorials/fundamentals/part-7-standard-patterns.md
<ide> To learn more about how to use Reselect and memoized selectors, see:
<ide>
<ide> As you've seen, there's several additional patterns that are widely used in Redux apps. These patterns do involve writing more code, but they provide benefits like m... | 1 |
PHP | PHP | change wheredate method for postgres | 551cebeb143d43d23b57fe9c9dfaba4464243ac8 | <ide><path>src/Illuminate/Database/Query/Grammars/PostgresGrammar.php
<ide> protected function whereDate(Builder $query, $where)
<ide> {
<ide> $value = $this->parameter($where['value']);
<ide>
<del> return $this->wrap($where['column']).' '.$where['operator'].' '.$value.'::date';
<add> return ... | 2 |
Ruby | Ruby | remove syntax test | 6154182b13642de41125403d3be9959814d0afc3 | <ide><path>Library/Homebrew/cask/test/syntax_test.rb
<del>require "test_helper"
<del>
<del>describe "Syntax check" do
<del> project_root = Pathname.new(File.expand_path("#{File.dirname(__FILE__)}/../"))
<del> backend_files = Dir[project_root.join("**", "*.rb")].reject { |f| f.match %r{/vendor/|/Casks/} }
<del> inter... | 1 |
Javascript | Javascript | use scope names rather than names | 2bf9e4b0c7b1a4a9ba45b6ce78a69a4f06023ac6 | <ide><path>spec/workspace-spec.js
<ide> i = /test/; #FIXME\
<ide> atom2.project.deserialize(atom.project.serialize())
<ide> atom2.workspace.deserialize(atom.workspace.serialize(), atom2.deserializers)
<ide>
<del> expect(atom2.grammars.getGrammars().map(grammar => grammar.name).sort()).toEqual([
<del> ... | 1 |
PHP | PHP | add test for html->meta() | a448f49c89a6c430c5a99dd44a252e65eaa01b20 | <ide><path>tests/TestCase/View/Helper/HtmlHelperTest.php
<ide> public function testMeta()
<ide> 'meta' => ['property' => 'og:site_name', 'content' => 'CakePHP']
<ide> ];
<ide> $this->assertHtml($expected, $result);
<add>
<add> $result = $this->Html->meta(['link' => 'http://example.com... | 1 |
Python | Python | add dutch example sentences (see ) | f2ea6d4713fe32048e26c3992202cbd431bb3203 | <ide><path>spacy/lang/nl/examples.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<add>
<add>
<add>"""
<add>Example sentences to test spaCy and its language models.
<add>
<add>>>> from spacy.lang.nl.examples import sentences
<add>>>> docs = nlp.pipe(sentences)
<add>"""
<add>
<add>
<add>examples = [
... | 1 |
Text | Text | add a missing comma | d4b3fcba71095cf7b758f57c5e61722db2d082d5 | <ide><path>doc/api/n-api.md
<ide> that has a loop which iterates through the elements in a large array:
<ide> ```C
<ide> for (int i = 0; i < 1000000; i++) {
<ide> napi_value result;
<del> napi_status status = napi_get_element(e object, i, &result);
<add> napi_status status = napi_get_element(e, object, i, &result);... | 1 |
Java | Java | log can[se]deserialize error in jackson codecs | 0f6038af70434a20fc4112a79c00c411ab88e519 | <ide><path>spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Decoder.java
<ide> import java.math.BigDecimal;
<ide> import java.util.List;
<ide> import java.util.Map;
<add>import java.util.concurrent.atomic.AtomicReference;
<ide>
<ide> import com.fasterxml.jackson.core.JsonProcessingException... | 3 |
Java | Java | add missing @since tag | 93919204a166b306aef5dfb50ccc1b02decbc5ae | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcCallOperations.java
<ide> public interface SimpleJdbcCallOperations {
<ide> /**
<ide> * Indicates that parameters should be bound by name.
<ide> * @return the instance of this SimpleJdbcCall
<add> * @since 4.2
<ide> */
<ide> Si... | 1 |
Text | Text | use tables for available plugins | 79351caec1b413c9da1080fceff49eb994323734 | <ide><path>docs/extend/plugins.md
<ide> Follow the instructions in the plugin's documentation.
<ide>
<ide> ## Finding a plugin
<ide>
<del>The following plugins exist:
<del>
<del>* The [Blockbridge plugin](https://github.com/blockbridge/blockbridge-docker-volume)
<del> is a volume plugin that provides access to an ex... | 1 |
Javascript | Javascript | add viewconfig for multilinetextinput | 10f8c1a1c0dd3301daab32201462a41be1086345 | <ide><path>Libraries/Components/TextInput/RCTMultilineTextInputNativeComponent.js
<ide> import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
<ide> import requireNativeComponent from '../../ReactNative/requireNativeComponent';
<ide> import codegenNativeCommands from '../../Utilities/codegenNativeCom... | 3 |
Javascript | Javascript | fix params for non-get actions | 212a6ff29a2e047413a85dfe2a4ea4b71e0f0d68 | <ide><path>src/service/resource.js
<ide> * parameters:
<ide> *
<ide> * - HTTP GET "class" actions: `Resource.action([parameters], [success], [error])`
<del> * - non-GET "class" actions: `Resource.action(postData, [parameters], [success], [error])`
<add> * - non-GET "class" actions: `Resource.action([paramete... | 1 |
PHP | PHP | fix coding standards | 771cfde19631b7cb147b9c9af06b064f0b15d635 | <ide><path>lib/Cake/Test/Case/View/Helper/FormHelperTest.php
<ide> public function testPostLink() {
<ide> '/a'
<ide> ));
<ide>
<del> $result = $this->Form->postLink('Delete', '/posts/delete/1', array('method'=>'delete'));
<add> $result = $this->Form->postLink('Delete', '/posts/delete/1', array('method' => 'dele... | 3 |
Text | Text | fix bad logic in post error handling example | 2e4de22c8ce9b4e087ac2753ead4688fe0c05a35 | <ide><path>docs/tutorials/essentials/part-5-async-logic.md
<ide> const postsSlice = createSlice({
<ide> },
<ide> [fetchPosts.rejected]: (state, action) => {
<ide> state.status = 'failed'
<del> state.error = action.payload
<add> state.error = action.error.message
<ide> }
<ide> }
<ide> // ... | 1 |
PHP | PHP | remove empty space to match code standards | 2dff1a1f250b3d232a84b270a20e07277e1ecb28 | <ide><path>tests/TestCase/Routing/RouterTest.php
<ide> public function testBaseUrlWithBasePath()
<ide> }
<ide>
<ide> /**
<del> * Test that Router used the correct url including base path for requesting current actions.
<add> * Test that Router uses the correct url including base path for requesting the... | 1 |
Python | Python | improve string encodeing/deconding | 47b2983f28357dee8bd29bda7909386dc8d44950 | <ide><path>glances/compat.py
<ide> # pylint: skip-file
<ide> """Python 2/3 compatibility shims."""
<ide>
<del>from __future__ import print_function
<add>from __future__ import print_function, unicode_literals
<add>
<ide> import operator
<ide> import sys
<ide> import unicodedata
<ide> def iterkeys(d):
<ide> def ite... | 7 |
Javascript | Javascript | rntester transformexample crash | ff4a3c2bc76b3e386c3d727ed6edbf767d13e3b0 | <ide><path>packages/rn-tester/js/examples/Transform/TransformExample.js
<ide> const styles = StyleSheet.create({
<ide> width: 50,
<ide> },
<ide> box7Transform: {
<del> transform: 'translate(-50, 35) rotate(50deg) scale(2)',
<add> transform: 'translate(-50px, 35px) rotate(50deg) scale(2)',
<ide> },
<ide>... | 1 |
Javascript | Javascript | add types to rctsnapshotnativecomponent | 67ad72fa3c9beb5c2b1e32530b0b2c0b5e74883c | <ide><path>Libraries/RCTTest/RCTSnapshotNativeComponent.js
<ide> * LICENSE file in the root directory of this source tree.
<ide> *
<ide> * @format
<del> * @flow strict-local
<add> * @flow
<ide> */
<ide>
<ide> 'use strict';
<ide>
<add>import type {SyntheticEvent} from 'CoreEventTypes';
<add>import type {View... | 1 |
Python | Python | move the model type check | 216b2f9e8061599982b635f3c6b0240f79d21e95 | <ide><path>src/transformers/pipelines/document_question_answering.py
<ide> class DocumentQuestionAnsweringPipeline(Pipeline):
<ide>
<ide> def __init__(self, *args, **kwargs):
<ide> super().__init__(*args, **kwargs)
<del> self.check_model_type(MODEL_FOR_DOCUMENT_QUESTION_ANSWERING_MAPPING)
<ide>
<id... | 1 |
Text | Text | update docs with react v15.5.0 | 49a30af4cbeee90b058496d6aaa65b5e926a47e7 | <ide><path>docs/advanced/ExampleRedditAPI.md
<ide> export default class Root extends Component {
<ide> #### `containers/AsyncApp.js`
<ide>
<ide> ```js
<del>import React, { Component, PropTypes } from 'react'
<add>import React, { Component } from 'react'
<add>import PropTypes from 'prop-types'
<ide> import { connect } ... | 5 |
PHP | PHP | fix double get on cache remember | 111d4444c5ca331759d9dd2bc3a6561c9d57fbcd | <ide><path>src/Illuminate/Cache/Repository.php
<ide> public function rememberForever($key, Closure $callback)
<ide> // If the item exists in the cache we will just return this immediately
<ide> // otherwise we will execute the given Closure and cache the result
<ide> // of that execution for the given number of m... | 1 |
Text | Text | add bethany to tsc | dff22dd176d584f3c050a659fa514f079ab5f208 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Anna Henningsen** <anna@addaleax.net> (she/her)
<ide> * [apapirovski](https://github.com/apapirovski) -
<ide> **Anatoli Papirovski** <apapirovski@mac.com> (he/him)
<add>* [BethGriggs](https://github.com/BethG... | 1 |
Java | Java | fix typos in reactcxxerrorhandler message | 0aed5d9db2569e9c6550f5f241f95d244398a97a | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactCxxErrorHandler.java
<ide> private static void handleError(final String message) {
<ide> parameters[0] = new Exception(message);
<ide> mHandleErrorFunc.invoke(mObject, parameters);
<ide> } catch (Exception e) {
<del> FLog.... | 1 |
Python | Python | remove ciscoccs driver | bdccdb03e8b36ad4eefbca7601952bc7757e838a | <ide><path>libcloud/compute/drivers/ciscoccs.py
<del># Licensed to the Apache Software Foundation (ASF) under one or more
<del># contributor license agreements. See the NOTICE file distributed with
<del># this work for additional information regarding copyright ownership.
<del># The ASF licenses this file to You under... | 2 |
Text | Text | update changelog for 16.14, 15.7, 0.14.10 | b5eabd543f4a6c9d950f1bb5ec73da5a1c7c5caa | <ide><path>CHANGELOG.md
<add>## 16.14.0 (October 14, 2020)
<add>
<add>### React
<add>
<add>* Add support for the [new JSX transform](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html). ([@lunaruan](https://github.com/lunaruan) in [#18299](https://github.com/facebook/react/pull/18299))
<add>
<id... | 1 |
Ruby | Ruby | apply suggestions from code review | 1d9ee93e6ecdd85eb9c763c83ab7dca3ca3427b6 | <ide><path>Library/Homebrew/extend/ENV/std.rb
<ide> def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_a
<ide>
<ide> begin
<ide> send(compiler)
<del> rescue CompilerSelectionError => e
<add> rescue CompilerSelectionError
<ide> # We don't care if our compiler fails to b... | 1 |
Go | Go | fix build after merge of outdated pr | 7e8f7efdd15c0fe333cb657b07fdbf986e022a2c | <ide><path>builder/dockerfile/copy.go
<ide> func copyFile(archiver Archiver, source, dest *copyEndpoint, identity *idtools.I
<ide> // are of the form \\?\Volume{<GUID>}\<path>. An example would be:
<ide> // \\?\Volume{dae8d3ac-b9a1-11e9-88eb-e8554b2ba1db}\bin\busybox.exe
<ide>
<del> if err := system.MkdirAll(f... | 1 |
Java | Java | implement the 'using' operator | 2eded0a0ac73af0bccdbd256f0460d6a63ecfe41 | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> import rx.operators.OperationToObservableIterable;
<ide> import rx.operators.OperationToObservableList;
<ide> import rx.operators.OperationToObservableSortedList;
<add>import rx.operators.OperationUsing;
<ide> import rx.operators.OperationWindow;
<ide> impor... | 3 |
Python | Python | handle empty arrays in roll | be90de8e31b76db8154e8ab9cefc21c1d25d0f45 | <ide><path>numpy/core/numeric.py
<ide> def roll(a, shift, axis=None):
<ide> except IndexError:
<ide> raise ValueError('axis must be >= 0 and < %d' % a.ndim)
<ide> reshape = False
<del> shift %= n
<del> indexes = concatenate((arange(n-shift,n),arange(n-shift)))
<del> res = a.take(ind... | 1 |
Python | Python | rewrite np.ma.(median|sort) to use take_along_axis | 7a3c50ab427cd9c4f3125a8e72d31f9141bd558a | <ide><path>numpy/ma/core.py
<ide> def sort(self, axis=-1, kind='quicksort', order=None,
<ide> sidx = self.argsort(axis=axis, kind=kind, order=order,
<ide> fill_value=fill_value, endwith=endwith)
<ide>
<del> # save memory for 1d arrays
<del> if self.ndim == 1:
<del> ... | 2 |
Python | Python | remove some bits from utils | 6af75d3a69c486b19adc6e2da00719094778eb31 | <ide><path>djangorestframework/response.py
<ide> from Internet Explorer user agents and use a sensible browser `Accept` header instead.
<ide> """
<ide>
<add>
<add>import re
<ide> from django.template.response import SimpleTemplateResponse
<ide> from django.core.handlers.wsgi import STATUS_CODE_TEXT
<del>
<ide> from dj... | 3 |
PHP | PHP | apply fixes from styleci | 68e7ad761cbe9ff73ebbecbdbc8fa3e0a97311f9 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> protected function incrementOrDecrement($column, $amount, $extra, $method)
<ide>
<ide> if ($this->fireModelEvent('updating') === false) {
<ide> return false;
<del> };
<add> }
<ide>
<ide> return tap($query->where(
<id... | 1 |
Text | Text | add jabortell to the contributors | 992723dfacc19aaec9b53de1f7250569fe089065 | <ide><path>.github/contributors/jabortell.md
<add># spaCy contributor agreement
<add>
<add>This spaCy Contributor Agreement (**"SCA"**) is based on the
<add>[Oracle Contributor Agreement](http://www.oracle.com/technetwork/oca-405177.pdf).
<add>The SCA applies to any contribution that you make to any product or project
... | 1 |
Python | Python | compare 'tolist' function to 'list' in example | ab90c876b0fead1b923b1616f8f50a5fded83de6 | <ide><path>numpy/core/_add_newdocs.py
<ide>
<ide> Examples
<ide> --------
<del> For a 1D array, ``a.tolist()`` is almost the same as ``list(a)``:
<add> For a 1D array, ``a.tolist()`` is almost the same as ``list(a)``, except that it changes numpy scalars to Python scalars:
<ide>
<del> >>> a = np.arra... | 1 |
Go | Go | move "pause" to daemon/pause.go | 42a77de3d3867e2f34b455fc343e293eed994dcd | <ide><path>daemon/daemon.go
<ide> func (daemon *Daemon) Install(eng *engine.Engine) error {
<ide> if err := eng.Register("attach", daemon.ContainerAttach); err != nil {
<ide> return err
<ide> }
<add> if err := eng.Register("pause", daemon.ContainerPause); err != nil {
<add> return err
<add> }
<ide> return nil
<id... | 4 |
Ruby | Ruby | fix layout method doc formatting | 23c4efbb5b8804bc029423ef620c1e38914e1565 | <ide><path>actionpack/lib/abstract_controller/layouts.rb
<ide> def conditional_layout?
<ide> #
<ide> # If the specified layout is a:
<ide> # String:: the String is the template name
<del> # Symbol:: call the method specified by the symbol, which will return
<del> # the template name
<add> ... | 1 |
Ruby | Ruby | fix a comment in atom_feed_helper.rb | 85119f5909db86167b8b4ed6916b5dda6d9462d5 | <ide><path>actionview/lib/action_view/helpers/atom_feed_helper.rb
<ide> def initialize(xml)
<ide> end
<ide>
<ide> private
<del> # Delegate to xml builder, first wrapping the element in a xhtml
<add> # Delegate to xml builder, first wrapping the element in an xhtml
<ide> # na... | 1 |
Javascript | Javascript | add a hook for adding script attributes | d4db20aaccb3f2a971736a773089e4278ca35f95 | <ide><path>lib/JsonpMainTemplatePlugin.js
<ide> JsonpMainTemplatePlugin.prototype.apply = function(mainTemplate) {
<ide> }
<ide> return source;
<ide> });
<del> mainTemplate.plugin("require-ensure", function(_, chunk, hash) {
<add> mainTemplate.plugin("jsonp-script", function(_, chunk, hash) {
<ide> var filename ... | 1 |
Python | Python | add distilbertfortokenclassification import | 1806eabf59fee4a8a79a3a80a927cbb3d0fbde45 | <ide><path>transformers/__init__.py
<ide> ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP)
<ide> from .modeling_distilbert import (DistilBertForMaskedLM, DistilBertModel,
<ide> DistilBertForSequenceClassification, DistilBertForQuestionAnswering,
<add> ... | 1 |
Java | Java | increase timeout for stomp integration tests | 59fcf5014feac51687cad6222166356bda309147 | <ide><path>spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java
<ide> public void expectAvailabilityStatusChanges(Boolean... expected) {
<ide>
<ide> public void awaitAndAssert() throws InterruptedException {
<ide> synchronized(this.monitor) {
... | 1 |
PHP | PHP | fix default value handling in sqlserver | bb0ee7dfbeaf4ef5620c6316ad662d15f0e38d6e | <ide><path>src/Database/Schema/SqlserverSchema.php
<ide> public function convertColumnDescription(Table $table, $row)
<ide>
<ide> $field += [
<ide> 'null' => $row['null'] === '1' ? true : false,
<del> 'default' => $row['default'],
<add> 'default' => $this->_defaultValue($row['... | 2 |
Ruby | Ruby | create check_broken_dependents method | 24e7f55a4c046463b3f2b8ae2c0383a67897c20d | <ide><path>Library/Homebrew/upgrade.rb
<ide> def upgrade_formula(f, args:)
<ide> end
<ide> private_class_method :upgrade_formula
<ide>
<del> def check_installed_dependents(args:)
<del> installed_formulae = FormulaInstaller.installed.to_a
<del> return if installed_formulae.empty?
<del>
<del> a... | 1 |
PHP | PHP | fix coding style | 9d8c11d5190e81b879f1b2bfdb4f4acfe9d94b88 | <ide><path>src/Illuminate/Foundation/Testing/TestResponse.php
<ide> public function assertJsonValidationErrors($errors)
<ide> }
<ide> }
<ide>
<del> if (!$hasError) {
<add> if (! $hasError) {
<ide> PHPUnit::fail(
<del> ... | 1 |
Text | Text | add docs for container/image labels | 389eee1084ea7613fa56e5f6b3e24678bf9aebc2 | <ide><path>docs/sources/reference/api/docker_remote_api.md
<ide> to an image. For example you could add data describing the content of an image.
<ide> **New!**
<ide> Docker client now hints potential proxies about connection hijacking using HTTP Upgrade headers.
<ide>
<add>`POST /containers/create`
<add>
<add>**New!*... | 3 |
Ruby | Ruby | mutate the path string to avoid object allocations | b610104e5ce9c148e67cf7f73c8c3e644b2077f9 | <ide><path>actionpack/lib/action_dispatch/http/url.rb
<ide> def url_for(options)
<ide>
<ide> if options[:trailing_slash]
<ide> if path.include?('?')
<del> result << path.sub(/\?/, '/\&')
<add> path.sub!(/\?/, '/\&')
<ide> else
<del> result << pat... | 1 |
Python | Python | correct automatic sort | fddca794a2f9bfa9c0feb35cb542ddbed8415f46 | <ide><path>glances/core/glances_globals.py
<ide> # Instances shared between all Glances's scripts
<ide> #===============================================
<ide>
<del># The global instance for the configuration file
<del># from ..core.glances_config import Config as glancesConfig
<del># glances_config = glancesConfig()
<... | 5 |
Go | Go | fix a double rlock bug | 34837febc42859f7e8804a3417db133c963e38b3 | <ide><path>plugin/store.go
<ide> func (ps *Store) GetAllByCap(capability string) ([]plugingetter.CompatPlugin, er
<ide> * bypassing the daemon. For such tests, this check is necessary.
<ide> */
<ide> if ps != nil {
<del> ps.RLock()
<ide> result = ps.getAllByCap(capability)
<del> ps.RUnlock()
<ide> }
<ide>
<i... | 1 |
Ruby | Ruby | add tests for `blank?` | 9140720dcfee74845993e7d7fd2c38855e2ce1e6 | <ide><path>activesupport/test/core_ext/date_ext_test.rb
<ide> def test_date_acts_like_date
<ide> assert Date.new.acts_like_date?
<ide> end
<ide>
<add> def test_blank?
<add> assert_not Date.new.blank?
<add> end
<add>
<ide> def test_freeze_doesnt_clobber_memoized_instance_methods
<ide> assert_nothing_ra... | 3 |
Go | Go | remove platform-check (was used for lcow) | 6ccda5a04111680544eadb6fbc916435ea073e69 | <ide><path>daemon/daemon.go
<ide> func (daemon *Daemon) restore() error {
<ide> log.WithError(err).Error("failed to load container")
<ide> return
<ide> }
<del> if !system.IsOSSupported(c.OS) {
<del> log.Errorf("failed to load container: %s (%q)", system.ErrNotSupportedOperatingSystem, c.OS)
<del> ret... | 1 |
Go | Go | remove unused tov1endpoint() | c8754f44d7031de4d0d0b0e1a69626e8540d2575 | <ide><path>registry/service.go
<ide> type APIEndpoint struct {
<ide> TLSConfig *tls.Config
<ide> }
<ide>
<del>// ToV1Endpoint returns a V1 API endpoint based on the APIEndpoint
<del>// Deprecated: this function is deprecated and will be removed in a future update
<del>func (e APIEndpoint) ToV1End... | 1 |
Text | Text | improve stream documentation | 3ca79350d942e88aea64faf64555beec35e22ad2 | <ide><path>doc/api/stream.md
<ide> The Readable can switch back to paused mode using one of the following:
<ide>
<ide> * If there are no pipe destinations, by calling the
<ide> [`stream.pause()`][stream-pause] method.
<del>* If there are pipe destinations, by removing any [`'data'`][] event
<del> handlers, and remo... | 1 |
Python | Python | add missing symbols | 147448b65b5781ce692000e3efa13cde526aa6d6 | <ide><path>spacy/lang/ga/tokenizer_exceptions.py
<ide> # encoding: utf8
<ide> from __future__ import unicode_literals
<ide>
<del>from ...symbols import ORTH, LEMMA, NORM, POS
<add>from ...symbols import POS, DET, ADP, CCONJ, ADV, NOUN, X, AUX
<add>from ...symbols import ORTH, LEMMA, NORM
<ide>
<ide>
<ide> _exc = { | 1 |
Python | Python | fix init_model arg | 86aad11939c5e60664789c485b5bdb87a8a8ddfd | <ide><path>spacy/cli/init_model.py
<ide> @plac.annotations(
<ide> lang=("model language", "positional", None, str),
<ide> output_dir=("model output directory", "positional", None, Path),
<del> freqs_loc=("location of words frequencies file", "optional", "f", Path),
<add> freqs_loc=("location of words freq... | 1 |
Javascript | Javascript | fix change challenge model to pojo | 50b1e61e70588b2894562c6ba97fa5b355a02361 | <ide><path>gulpfile.js
<ide> gulp.task('serve', ['build-manifest'], function(cb) {
<ide> ignore: paths.serverIgnore,
<ide> exec: path.join(__dirname, 'node_modules/.bin/babel-node'),
<ide> env: {
<del> 'NODE_ENV': 'development',
<add> 'NODE_ENV': process.env.NODE_ENV || 'development',
<ide> ... | 3 |
Go | Go | remove error return from check graph driver func | 3011aa4e9984b0631b67f640a191677e2f3d0a8f | <ide><path>daemon/graphdriver/driver.go
<ide> func New(root string, options []string) (driver Driver, err error) {
<ide> return nil, fmt.Errorf("No supported storage backend found")
<ide> }
<ide>
<del>func checkPriorDriver(name string, root string) error {
<del>
<del> var priorDrivers []string
<del>
<add>func checkPr... | 1 |
Go | Go | remove used param on parsehost | ba973f2d74c150154390aed1a5aed8fb5d0673b8 | <ide><path>api/client/cli.go
<ide> func NewDockerCli(in io.ReadCloser, out, err io.Writer, clientFlags *cli.ClientF
<ide>
<ide> switch len(hosts) {
<ide> case 0:
<del> defaultHost := os.Getenv("DOCKER_HOST")
<del> hosts = []string{defaultHost}
<add> hosts = []string{os.Getenv("DOCKER_HOST")}
<ide> case 1:
... | 4 |
Ruby | Ruby | remove deprecation notice from system "xcodebuild" | 479f4bc7cd731a481bde9beb9dc21a09e1494a17 | <ide><path>Library/Homebrew/formula.rb
<ide> def system cmd, *args
<ide> ohai "#{cmd} #{pretty_args*' '}".strip
<ide>
<ide> if cmd.to_s.start_with? "xcodebuild"
<del> opoo %{system "xcodebuild" is deprecated, use the xcodebuild method instead}
<ide> removed_ENV_variables.update(ENV.remove_cc_etc)
<i... | 1 |
Ruby | Ruby | catch time.zone before testhelper resets it to utc | 3b953da779cfd06b6fe4cb94e7fd8b05cc10b6f6 | <ide><path>activesupport/test/current_attributes_test.rb
<ide> class Session < ActiveSupport::CurrentAttributes
<ide> # Eagerly set-up `instance`s by reference.
<ide> [ Current.instance, Session.instance ]
<ide>
<del> setup { @original_time_zone = Time.zone }
<del> teardown { Time.zone = @original_time_zone }... | 1 |
Python | Python | implement cors for the restful api | 72017271f7445224944d00c1cd59f00072962575 | <ide><path>glances/outputs/glances_bottle.py
<ide>
<ide> # Import mandatory Bottle lib
<ide> try:
<del> from bottle import Bottle, template, static_file, TEMPLATE_PATH, abort, response
<add> from bottle import Bottle, template, static_file, TEMPLATE_PATH, abort, response, request
<ide> except ImportError:
<ide> ... | 1 |
PHP | PHP | use getparsedbody() instead of getdata() | 8d54a89e5f3b762bd20c34560b16236ea4cb79aa | <ide><path>src/Http/Middleware/CsrfProtectionMiddleware.php
<ide>
<ide> use Cake\Http\Cookie\Cookie;
<ide> use Cake\Http\Exception\InvalidCsrfTokenException;
<del>use Cake\Http\ServerRequest;
<add>use Cake\Http\Response;
<ide> use Cake\I18n\Time;
<ide> use Cake\Utility\Hash;
<ide> use Cake\Utility\Security;
<ide> publ... | 1 |
Ruby | Ruby | allow --use-clang to override fails_with_llvm | d1aac6bc0328ea9ab3cc8bf379d7f1cddad3b9f3 | <ide><path>Library/Homebrew/formula.rb
<ide> def std_cmake_parameters
<ide> end
<ide>
<ide> def handle_llvm_failure llvm
<del> unless (ENV['HOMEBREW_USE_LLVM'] or ARGV.include? '--use-llvm')
<add> unless (ENV['HOMEBREW_USE_LLVM'] or ARGV.include? '--use-llvm' or ARGV.include? '--use-clang')
<ide> ENV.g... | 1 |
Javascript | Javascript | change concatenated string to template | ef3776a78524d4d7986033838abfcdd0fba0fdc9 | <ide><path>lib/_http_common.js
<ide> function parserOnHeadersComplete(versionMajor, versionMinor, headers, method,
<ide> parser.incoming = new IncomingMessage(parser.socket);
<ide> parser.incoming.httpVersionMajor = versionMajor;
<ide> parser.incoming.httpVersionMinor = versionMinor;
<del> parser.incoming.httpVe... | 1 |
Javascript | Javascript | remove extra whitespace | ffdde26981739f28eb50f55bce4c85d71f72956c | <ide><path>src/Angular.js
<ide> function angularInit(element, bootstrap) {
<ide> *
<ide> * Angular will detect if it has been loaded into the browser more than once and only allow the
<ide> * first loaded script to be bootstrapped and will report a warning to the browser console for
<del> * each of the subsequent sc... | 1 |
PHP | PHP | remove duplicate id check | 66fdf12f0d9f5558f9b4274f36aa2872fd972a5a | <ide><path>src/Illuminate/Session/Store.php
<ide> public function __construct($name, SessionHandlerInterface $handler, $id = null)
<ide> $this->name = $name;
<ide> $this->handler = $handler;
<ide> $this->metaBag = new MetadataBag;
<del> $this->setId($id ?: $this->generateSessionId());
<add> $this->setId($id);
<... | 1 |
Javascript | Javascript | add mdn link for iterable | 29f758731f6f70d119d6149f128f7e8fe7bb8279 | <ide><path>tools/doc/type-parser.js
<ide> const typeMap = {
<ide> 'http.IncomingMessage': 'http.html#http_class_http_incomingmessage',
<ide> 'http.Server': 'http.html#http_class_http_server',
<ide> 'http.ServerResponse': 'http.html#http_class_http_serverresponse',
<add> 'Iterable': jsDocPrefix +
<add> ... | 1 |
Ruby | Ruby | cache the digest path on the stack | bf9b7325f8814a4d90267e59697e5125f40a69c3 | <ide><path>actionview/lib/action_view/renderer/partial_renderer/collection_caching.rb
<ide> def callable_cache_key?
<ide> def collection_by_cache_keys(view, template)
<ide> seed = callable_cache_key? ? @options[:cached] : ->(i) { i }
<ide>
<add> digest_path = view.digest_path_from_virtual(template... | 1 |
Javascript | Javascript | remove unused/invalid flow suppression | 1142d9d059936ce0814c40f05693b7c6ee6b4e5c | <ide><path>Libraries/Animated/src/Interpolation.js
<ide> function colorToRgba(input: string): string {
<ide> return input;
<ide> }
<ide>
<del> int32Color = int32Color || 0; // $FlowIssue
<add> int32Color = int32Color || 0;
<ide>
<ide> var r = (int32Color & 0xff000000) >>> 24;
<ide> var g = (int32Color & 0... | 1 |
Go | Go | change error log to warning when close stdin fail | 37db0220452a837791af84d044b0b308260dccec | <ide><path>container/stream/streams.go
<ide> func (c *Config) CopyToPipe(iop libcontainerd.IOPipe) {
<ide> go func() {
<ide> pools.Copy(iop.Stdin, stdin)
<ide> if err := iop.Stdin.Close(); err != nil {
<del> logrus.Errorf("failed to close stdin: %+v", err)
<add> logrus.Warnf("failed to close stdin: %... | 1 |
Text | Text | fix curl invocation | 26187bd851141236a909c0bada5a2743fc237e0e | <ide><path>docs/sources/articles/https.md
<ide> location using the environment variable `DOCKER_CERT_PATH`.
<ide> To use `curl` to make test API requests, you need to use three extra command line
<ide> flags:
<ide>
<del> $ curl --insecure --cert ~/.docker/cert.pem --key ~/.docker/key.pem https://boot2docker:2376/im... | 1 |
PHP | PHP | revert previous changes | e016f1156ff18b1324c3f8f4108aa6c0b8d3ae8b | <ide><path>lib/Cake/Routing/Router.php
<ide> public static function reverse($params, $full = false) {
<ide> * @param array|string $url URL to normalize Either an array or a string URL.
<ide> * @return string Normalized URL
<ide> */
<del> public static function normalize($url = '/', $strip = true) {
<add> public stat... | 2 |
Python | Python | add example deployment that setups an ssh key | b7f35d04c131fdeadbaba685f3ec3ba6fb0b3860 | <ide><path>libcloud/deployment.py
<add># Licensed to the Apache Software Foundation (ASF) under one or more
<add># contributor license agreements. See the NOTICE file distributed with
<add># this work for additional information regarding copyright ownership.
<add># libcloud.org licenses this file to You under the Apac... | 1 |
Ruby | Ruby | use new version comparison machinery | 93baea7e47627cdd309715143b7d125966a28df5 | <ide><path>Library/Homebrew/cmd/outdated.rb
<ide> require 'formula'
<add>require 'keg'
<ide>
<ide> module Homebrew extend self
<ide> def outdated
<del> outdated_brews.each do |f|
<add> outdated_brews do |f|
<ide> if $stdout.tty? and not ARGV.flag? '--quiet'
<del> versions = f.rack.cd{ Dir['*'] }.j... | 2 |
Javascript | Javascript | use default assertion messages | 0736ad47433104666aa4e4c1781be743db43f653 | <ide><path>test/addons-napi/test_buffer/test.js
<ide> const common = require('../../common');
<ide> const binding = require(`./build/${common.buildType}/test_buffer`);
<ide> const assert = require('assert');
<ide>
<del>assert.strictEqual(binding.newBuffer().toString(), binding.theText,
<del> 'buffer ... | 1 |
Java | Java | move interruptibleblockingqueue inside observeon | 5d1006ea07432e34f1ed4b2d75c0024fa8cdae78 | <ide><path>rxjava-core/src/main/java/rx/operators/OperatorObserveOn.java
<ide> */
<ide> package rx.operators;
<ide>
<add>import java.util.concurrent.Semaphore;
<ide> import java.util.concurrent.atomic.AtomicLong;
<ide>
<ide> import rx.Scheduler;
<ide> import rx.schedulers.TestScheduler;
<ide> import rx.schedulers.Tr... | 2 |
Javascript | Javascript | remove new statement before buffer.from | 04555e36d39238b3728b349e2db911b36e60a9df | <ide><path>lib/LibManifestPlugin.js
<ide> class LibManifestPlugin {
<ide> return obj;
<ide> }, Object.create(null))
<ide> };
<del> const content = new Buffer.from(JSON.stringify(manifest), "utf8");
<add> const content = Buffer.from(JSON.stringify(manifest), "utf8");
<ide> compiler.outputFileSys... | 1 |
Java | Java | fix typo in @scheduled | 9a7fb7022dd5b7d2d8d5514ab2fb827b3e32854a | <ide><path>spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java
<ide> * The {@link TimeUnit} to use for {@link #fixedDelay}, {@link #fixedDelayString},
<ide> * {@link #fixedRate}, {@link #fixedRateString}, {@link #initialDelay}, and
<ide> * {@link #initialDelayString}.
<del> * <p... | 1 |
Ruby | Ruby | remove the universal accessor from buildoptions | e6498f4dfc37524be8d0827957ed75fc471ad345 | <ide><path>Library/Homebrew/build_options.rb
<ide> class BuildOptions
<del> attr_accessor :universal
<del>
<ide> def initialize(args, options)
<ide> @args = args
<ide> @options = options
<ide> def stable?
<ide>
<ide> # True if the user requested a universal build.
<ide> def universal?
<del> universal... | 4 |
Go | Go | fix unmarshal error in endpoint interface | bb6449bedbff8336291b2c24a281d9b042c44ca2 | <ide><path>libnetwork/endpoint.go
<ide> func (ep *endpoint) UnmarshalJSON(b []byte) (err error) {
<ide> ep.id = epMap["id"].(string)
<ide>
<ide> ib, _ := json.Marshal(epMap["ep_iface"])
<del> json.Unmarshal(ib, ep.iface)
<add> json.Unmarshal(ib, &ep.iface)
<ide>
<ide> tb, _ := json.Marshal(epMap["exposed_ports"])
... | 1 |
Python | Python | push cls 283653640, 284011539 | 22e20f84f8a06d5c489c1c837f81d4fd56ccb187 | <ide><path>research/lstm_object_detection/lstm/rnn_decoder.py
<ide> """Custom RNN decoder."""
<ide>
<ide> import tensorflow as tf
<add>import lstm_object_detection.lstm.utils as lstm_utils
<add>
<add>
<add>class _NoVariableScope(object):
<add>
<add> def __enter__(self):
<add> return
<add>
<add> def __exit__(self,... | 2 |
Java | Java | add test to reproduce spr-15271 | 598d9a4b052922e6dec1a9b28b859fe2066912bb | <ide><path>spring-core/src/test/java/org/springframework/core/annotation/AnnotatedElementUtilsTests.java
<ide> /*
<del> * Copyright 2002-2016 the original author or authors.
<add> * Copyright 2002-2017 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide... | 1 |
Javascript | Javascript | log refresh failures | 2f2a0763a27c344914338978b23af2565a807307 | <ide><path>src/git-repository-async.js
<ide> export default class GitRepositoryAsync {
<ide> return Promise.reject(e)
<ide> }
<ide> })
<add> .catch(e => {
<add> console.error('Error refreshing repository status:')
<add> console.error(e)
<add> return Promis... | 1 |
Java | Java | improve semantics writing currentdata | 01a82b529107f75ded838bebeb0045aac8903be6 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteFlushProcessor.java
<ide> public <T> void onComplete(AbstractListenerWriteFlushProcessor<T> processor) {
<ide> }
<ide>
<ide> public <T> void writeComplete(AbstractListenerWriteFlushProcessor<T> processor) {
<del> //... | 6 |
Mixed | Python | add type hints and tests. | c6dd9753893533934c7804bb714bbce2de8dd1a7 | <ide><path>DIRECTORY.md
<ide> * [Heaps Algorithm](https://github.com/TheAlgorithms/Python/blob/master/divide_and_conquer/heaps_algorithm.py)
<ide> * [Heaps Algorithm Iterative](https://github.com/TheAlgorithms/Python/blob/master/divide_and_conquer/heaps_algorithm_iterative.py)
<ide> * [Inversions](https://github.... | 2 |
Ruby | Ruby | fix `unknown migration version "6.0"` | 2ea5b8f0578b2ec35881c8b01e6e18aed7e38edc | <ide><path>activerecord/lib/active_record/migration/compatibility.rb
<ide> def self.find(version)
<ide> const_get(name)
<ide> end
<ide>
<del> V5_2 = Current
<add> V6_0 = Current
<add>
<add> class V5_2 < V6_0
<add> end
<ide>
<ide> class V5_1 < V5_2
<ide> def change_colum... | 1 |
Python | Python | remove unneeded assignment | 857226896e00f9335a2ab7b46b20785e1523d248 | <ide><path>swivel/prep.py
<ide> def create_vocabulary(lines):
<ide> vocab = [(tok, n) for tok, n in vocab.iteritems() if n >= FLAGS.min_count]
<ide> vocab.sort(key=lambda kv: (-kv[1], kv[0]))
<ide>
<del> num_words = max(len(vocab), FLAGS.shard_size)
<ide> num_words = min(len(vocab), FLAGS.max_vocab)
<ide> if ... | 1 |
PHP | PHP | use the defined route name in the routes shell | 1b5d1fe39d0b60463348c05e32915cc1e1cdcc7f | <ide><path>src/Shell/RoutesShell.php
<ide> public function main()
<ide> ['Route name', 'URI template', 'Defaults']
<ide> ];
<ide> foreach (Router::routes() as $route) {
<del> $output[] = [$route->getName(), $route->template, json_encode($route->defaults)];
<add> $name =... | 2 |
Javascript | Javascript | simplify error handling | 3e58696c07161ef84c6b12aeb7e03d271563dcb9 | <ide><path>lib/tls.js
<ide> CryptoStream.prototype._push = function() {
<ide> chunkBytes = this._pusher(pool, bytesRead, pool.length - bytesRead);
<ide>
<ide> if (this.pair._ssl && this.pair._ssl.error) {
<del> if (this.pair._secureEstablished) {
<del> this.pair._error();
<del> } els... | 1 |
PHP | PHP | sortreplacements | 2f2da143b27e5d2522c76e8e2c0bf0c9e9f79f02 | <ide><path>src/Illuminate/Translation/Translator.php
<ide> protected function sortReplacements(array $replace)
<ide> {
<ide> return (new Collection($replace))->sortBy(function ($value, $key) {
<ide> return mb_strlen($key) * -1;
<del> });
<add> })->all();
<ide> }
<ide>
<ide> ... | 1 |
Javascript | Javascript | allow empty subject even with altnames defined | ff48009fefcecedfee2c6ff1719e5be3f6969049 | <ide><path>lib/tls.js
<ide> exports.checkServerIdentity = function checkServerIdentity(hostname, cert) {
<ide> let valid = false;
<ide> let reason = 'Unknown reason';
<ide>
<add> const hasAltNames =
<add> dnsNames.length > 0 || ips.length > 0 || uriNames.length > 0;
<add>
<add> hostname = unfqdn(hostname); /... | 2 |
Javascript | Javascript | remove unneeded cb check from settimeout() | 8625a3815e95985d7710df3f53ffff4387abd2d9 | <ide><path>lib/_http_outgoing.js
<ide> exports.OutgoingMessage = OutgoingMessage;
<ide> OutgoingMessage.prototype.setTimeout = function(msecs, callback) {
<ide>
<ide> if (callback) {
<del> if (typeof callback !== 'function')
<del> throw new TypeError('callback must be a function');
<ide> this.on('timeout... | 1 |
Javascript | Javascript | remove ownerdocument check in offset getter | 6176567361e9d05d4f5eb7e98735a678f2cd7ea9 | <ide><path>src/offset.js
<ide> jQuery.offset = {
<ide>
<ide> jQuery.fn.extend({
<ide> offset: function( options ) {
<add> // Preserve chaining for setter
<ide> if ( arguments.length ) {
<ide> return options === undefined ?
<ide> this :
<ide> jQuery.fn.extend({
<ide> });
<ide> }
<ide>
<del> var docEl... | 2 |
Ruby | Ruby | fix disallowed deprecations with default warning | 569232b5294b11612823b70c7922e5b7ed95b988 | <ide><path>activesupport/lib/active_support/deprecation/disallowed.rb
<ide> def deprecation_disallowed?(message)
<ide> disallowed = ActiveSupport::Deprecation.disallowed_warnings
<ide> return false if explicitly_allowed?(message)
<ide> return true if disallowed == :all
<del> disal... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.