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 |
|---|---|---|---|---|---|
Java | Java | fix malformed html in javadoc | 89cf4772d57145475797eb39bd2aa59d6c4e362f | <ide><path>spring-test/src/main/java/org/springframework/test/context/support/AbstractContextLoader.java
<ide> public void processContextConfiguration(ContextConfigurationAttributes configAtt
<ide> * <li>Determines what (if any) context initializer classes have been supplied
<ide> * via the {@code MergedContextConf... | 1 |
Python | Python | fix typos in taskset examples (thanks karihre) | de7d9b85e3ae118165d21709bb8fd247a4787d3f | <ide><path>celery/task/base.py
<ide> class TaskSet(object):
<ide>
<ide> >>> from djangofeeds.tasks import RefreshFeedTask
<ide> >>> taskset = TaskSet(RefreshFeedTask, args=[
<del> ... [], {"feed_url": "http://cnn.com/rss"},
<del> ... [], {"feed_url": "http:... | 1 |
Text | Text | fix typo in roadmap.md | 02e18c9ab31cbb7033ec6efebc12274cd7b50e62 | <ide><path>ROADMAP.md
<ide> we intend to take advantage of it in the Engine.
<ide> ## 2.1 Docker exec
<ide>
<ide> We won't accept patches expanding the surface of `docker exec`, which we intend to keep as a
<del>*debugging* feature, as well as being strongly dependent on the the Runtime ingredient effort.
<add>*debugg... | 1 |
Javascript | Javascript | ignore truncated pixels in bar width calculation | 12bf256fd551b172f4a72111433eb69382640956 | <ide><path>src/controllers/controller.bar.js
<ide> import DatasetController from '../core/core.datasetController';
<ide> import {
<ide> clipArea, unclipArea, _arrayUnique, isArray, isNullOrUndef,
<del> valueOrDefault, resolveObjectKey, sign
<add> valueOrDefault, resolveObjectKey, sign, defined
<ide> } from '../help... | 1 |
Python | Python | remove trailing spaces | fd717e3822eb3dfdc03277a9660717f0dff411f9 | <ide><path>official/mnist/mnist_tpu.py
<ide> def main(argv):
<ide> zone=FLAGS.tpu_zone,
<ide> project=FLAGS.gcp_project))
<ide> tpu_grpc_url = tpu_cluster_resolver.get_master()
<del>
<add>
<ide> run_config = tf.contrib.tpu.RunConfig(
<ide> master=tpu_grpc_url,
<ide> evaluatio... | 1 |
Go | Go | return error for bad content-type | 78ac75fe00669f8d24ecab3273d47e805963e4d3 | <ide><path>api/server/server.go
<ide> func postContainersStart(eng *engine.Engine, version version.Version, w http.Res
<ide>
<ide> // allow a nil body for backwards compatibility
<ide> if r.Body != nil {
<del> if api.MatchesContentType(r.Header.Get("Content-Type"), "application/json") {
<del> if err := job.Decode... | 1 |
Ruby | Ruby | switch the testing tests to use rake | 328814b0004552d7be009f66d16141d7225bb3f3 | <ide><path>railties/test/application/test_runner_test.rb
<ide> def teardown
<ide> teardown_app
<ide> end
<ide>
<del> def test_should_not_display_heading
<del> create_test_file
<del> run_test_command.tap do |output|
<del> assert_no_match "Run options:", output
<del> assert_no_match ... | 1 |
PHP | PHP | apply fixes from styleci | a10c50239a6f57e15100e88ed2441f2a1d1911a8 | <ide><path>src/Illuminate/Foundation/Console/ServeCommand.php
<ide> protected function port()
<ide> }
<ide>
<ide> /**
<del> * Check if command has reached its max amount of port tries
<add> * Check if command has reached its max amount of port tries.
<ide> *
<ide> * @return bool
<ide> */ | 1 |
Mixed | Python | add pk_url_kwarg to hyperlinked fields | 6d3bb67aa654d5f4c555746655a312000422d474 | <ide><path>docs/api-guide/fields.md
<ide> By default, `HyperlinkedRelatedField` is read-write, although you can change thi
<ide> * `format` - If using format suffixes, hyperlinked fields will use the same format suffix for the target unless overridden by using the `format` argument.
<ide> * `queryset` - By default `Mod... | 2 |
Javascript | Javascript | add tests for - loc helper | 574c10b8a99a38c0b13fd0dc42c138a07ff629ea | <ide><path>packages/ember-handlebars/lib/helpers/loc.js
<ide> require('ember-handlebars/ext');
<ide> </script>
<ide> ```
<ide>
<add> Take note that `welcome` is a string and not an object
<add> reference.
<add>
<ide> @method loc
<ide> @for Ember.Handlebars.helpers
<ide> @param {String} str The string to fo... | 2 |
Javascript | Javascript | add spacings to instancedbufferattribute | 2ac769af22f3f0c74b212a67ec977c2b20c46cc0 | <ide><path>test/unit/core/InstancedBufferAttribute.js
<ide> test( "can be created", function() {
<ide> });
<ide>
<ide> test( "copy", function() {
<del> var array = new Float32Array([1, 2, 3, 7, 8, 9]);
<del> var instance = new THREE.InstancedBufferAttribute(array, 2, 123);
<del> var copiedInstance = instance.copy(inst... | 1 |
Text | Text | fix typo in node update docs | 7bbbc8c7f16869dbb43e4e218ac280d5d1c0944a | <ide><path>docs/reference/api/docker_remote_api_v1.24.md
<ide> an empty value or the default cluster-wide value.
<ide>
<ide> JSON Parameters:
<ide>
<del>- **Annotations** – Optional medata to associate with the service.
<del> - **Name** – User-defined name for the service.
<del> - **Labels** – A map of labels t... | 2 |
PHP | PHP | add coverage for required scalar value | 251f23fd71ef3404f11aeee14f153ee4cb32f798 | <ide><path>src/Controller/ControllerFactory.php
<ide> public function invoke($controller): ResponseInterface
<ide> $args[$position] = array_shift($passed);
<ide> } elseif ($hasDefault) {
<ide> $args[$position] = $parameter->getDefaultValue();
<del> ... | 3 |
Python | Python | add "ttl" attribute to the record class | 59049a68923391b42b371b27bd3799af2e04d133 | <ide><path>libcloud/dns/base.py
<ide> class Record(object):
<ide> Zone record / resource.
<ide> """
<ide>
<del> def __init__(self, id, name, type, data, zone, driver, extra=None):
<add> def __init__(self, id, name, type, data, zone, driver, ttl=None,
<add> extra=None):
<ide> """
<... | 1 |
Python | Python | add dependency to carrot >= 0.4.0 | 5a5e0b33b19d9174cf2f1f2388c8333f882fad8f | <ide><path>setup.py
<ide> def run(self):
<ide> zip_safe=False,
<ide> install_requires=[
<ide> 'simplejson',
<del> #'carrot>=0.4.0',
<add> 'carrot>=0.4.0',
<ide> 'django',
<ide> ],
<ide> cmdclass = {"test": RunTests}, | 1 |
Go | Go | fix goroutine leaks by adding 1 buffer to channel | 5ffcd162b5242df1937c1e03e22232713e605731 | <ide><path>daemon/cluster/controllers/plugin/controller_test.go
<ide> func TestWaitCancel(t *testing.T) {
<ide> }
<ide>
<ide> ctxCancel, cancel := context.WithCancel(ctx)
<del> chErr := make(chan error)
<add> chErr := make(chan error, 1)
<ide> go func() {
<ide> chErr <- c.Wait(ctxCancel)
<ide> }()
<ide> func Tes... | 5 |
PHP | PHP | fix failing tests | afe705307b00aee30d7de7d47f0826d42bc65bd5 | <ide><path>tests/TestCase/Cache/Engine/FileEngineTest.php
<ide> <?php
<ide> /**
<del> * FileEngineTest file
<del> *
<ide> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
<ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide>
<ide> /**
<ide> * Fi... | 1 |
Text | Text | move rod vagg to tsc emeritus | 6f2bd9dcc3a9ed6cf509cdcd381c1c456f0bd3cb | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Michael Dawson** <michael_dawson@ca.ibm.com> (he/him)
<ide> * [MylesBorins](https://github.com/MylesBorins) -
<ide> **Myles Borins** <myles.borins@gmail.com> (he/him)
<del>* [rvagg](https://github.com/rvagg) ... | 1 |
Go | Go | add arch field to image struct | 2cf92abf0eff49b21812d88e74813b8848f9b758 | <ide><path>image.go
<ide> type Image struct {
<ide> DockerVersion string `json:"docker_version,omitempty"`
<ide> Author string `json:"author,omitempty"`
<ide> Config *Config `json:"config,omitempty"`
<add> Architecture string `json:"architecture,omitempty"`
<ide> graph *G... | 1 |
PHP | PHP | pass authorization by default | 40ccbc3497198333d3c75c51729d94bb32c77d0d | <ide><path>src/Illuminate/Foundation/Http/FormRequest.php
<ide> protected function passesAuthorization()
<ide> return $this->container->call([$this, 'authorize']);
<ide> }
<ide>
<del> return false;
<add> return true;
<ide> }
<ide>
<ide> /** | 1 |
Javascript | Javascript | add notes about fix | 6174612daad811a89915d03017bd4869970e60da | <ide><path>src/attributes.js
<ide> jQuery.extend({
<ide> if ( elem.nodeType === 1 ) {
<ide> name = jQuery.attrFix[ name ] || name;
<ide>
<add> // See #9699 for explanation of ths approach (setting first, then removal)
<ide> jQuery.attr( elem, name, "" );
<ide> elem.removeAttribute( name );
<ide> | 1 |
Java | Java | use publishers.zip instead of streams.zip | b26e74612036eddddf8603e1bf1e3ff1fb844c82 | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/method/InvocableHandlerMethod.java
<ide> import org.reactivestreams.Publisher;
<ide> import reactor.Publishers;
<ide> import reactor.fn.tuple.Tuple;
<del>import reactor.rx.Streams;
<ide>
<ide> import org.springframework.core.DefaultParameter... | 1 |
PHP | PHP | apply suggestions from code review | 5ce8e62ce0eb4c5b42f55ef612aa4c7a51c9655f | <ide><path>tests/TestCase/Command/I18nExtractCommandTest.php
<ide> public function testExecuteNoPathOption()
<ide> '--output=' . $this->path . DS,
<ide> [
<ide> TEST_APP . 'templates' . DS,
<del> 'D'
<add> 'D',
<ide> ]
<ide> );
<i... | 2 |
Text | Text | add status code 409 in attach in docs | b22a2919311fe0aaeb8802756f55486b8b020b2a | <ide><path>docs/reference/api/docker_remote_api_v1.22.md
<ide> Status Codes:
<ide> - **200** – no error, no upgrade header found
<ide> - **400** – bad parameter
<ide> - **404** – no such container
<add>- **409** - container is paused
<ide> - **500** – server error
<ide>
<ide> **Stream details**:
<ide><pa... | 4 |
Ruby | Ruby | use type_condition method for hmt sti condition | b3c9d53b348f586ed223ec5de9f525faee6f564d | <ide><path>activerecord/lib/active_record/associations/has_many_through_association.rb
<ide> def build_through_conditions
<ide> end
<ide>
<ide> def build_sti_condition
<del> "#{@reflection.through_reflection.quoted_table_name}.#{@reflection.through_reflection.klass.inheritance_column} ... | 1 |
Python | Python | fix silly version number | 7a9ac3e5546a5d21487fe8569cfe56ecd1c86d7c | <ide><path>numpy/version.py
<del>version='1.0b4444'
<add>version='1.0b4'
<ide> release=False
<ide>
<ide> if not release: | 1 |
Java | Java | improve header processing in simpmessagingtemplate | 46c0e45130d804a81b8e78385e3386657f8f529c | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/core/AbstractMessageSendingTemplate.java
<ide> public void convertAndSend(D destination, Object payload, MessagePostProcessor p
<ide> public void convertAndSend(D destination, Object payload, Map<String, Object> headers,
<ide> MessagePostProces... | 3 |
Text | Text | use italics for words-as-words | 91dac87f6cb4495152892b82d9c761cc0110d318 | <ide><path>doc/api/url.md
<ide> The legacy `urlObject` (`require('url').Url`) is created and returned by the
<ide> #### urlObject.auth
<ide>
<ide> The `auth` property is the username and password portion of the URL, also
<del>referred to as "userinfo". This string subset follows the `protocol` and
<add>referred to as ... | 1 |
Javascript | Javascript | fix dependency for plunker and jsfiddle in example | d7ed885984d58d344350ae267f51e8096bb6bea6 | <ide><path>src/ng/directive/ngBind.js
<ide> var ngBindTemplateDirective = ['$interpolate', function($interpolate) {
<ide> * @param {expression} ngBindHtml {@link guide/expression Expression} to evaluate.
<ide> *
<ide> * @example
<del> * Try it here: enter text in text box and watch the greeting change.
<del> <doc:... | 1 |
Python | Python | correct an issue on alert display for cpu and load | 2baf0d1de4e60abde00ed1bb643a263b92fd6e82 | <ide><path>glances/plugins/glances_plugin.py
<ide> def update_views(self):
<ide> """
<ide> ret = {}
<ide>
<del> value = {'decoration': 'DEFAULT',
<del> 'optional': False,
<del> 'additional': False,
<del> 'splittable': False}
<del>
<ide> if ... | 1 |
Python | Python | register feature extractor | 2e11a043374a6229ec129a4765ee4ba7517832b9 | <ide><path>src/transformers/models/auto/feature_extraction_auto.py
<ide> def feature_extractor_class_from_name(class_name: str):
<ide> return getattr(module, class_name)
<ide> break
<ide>
<add> for config, extractor in FEATURE_EXTRACTOR_MAPPING._extra_content.items():
<add> if getattr... | 3 |
PHP | PHP | add env variable to database default connection | 5c16c2181714ca1562b29a20c66684ee9bb21e7c | <ide><path>config/database.php
<ide> |
<ide> */
<ide>
<del> 'default' => 'mysql',
<add> 'default' => env('DB_CONNECTION','mysql'),
<ide>
<ide> /*
<ide> |-------------------------------------------------------------------------- | 1 |
Javascript | Javascript | add tests for `decodeentities` | 2015ed2341921a4bdc4db765aadcb7ab7a8282c6 | <ide><path>test/ngSanitize/sanitizeSpec.js
<ide> describe('decodeEntities', function() {
<ide> afterEach(function() {
<ide> window.hiddenPre = origHiddenPre;
<ide> });
<add>
<add> it('should unescape text', function() {
<add> htmlParser('a<div>&</div>c', handler);
<add> expect(text).toE... | 1 |
PHP | PHP | fix fatal errors in test stub | 3f0b2757a9cce6176461485aa52e7373d222348c | <ide><path>Test/TestApp/Plugin/TestPlugin/Database/Driver/TestSource.php
<ide> public function quote($value, $type) {
<ide> * (select, insert, update, delete)
<ide> * @return callable
<ide> */
<del> public function queryTranslator($type);
<add> public function queryTranslator($type) {
<add> }
<ide>
<ide> /**
<ide> ... | 1 |
Ruby | Ruby | add check for homebrew_relocate_build_prefix | 3aaef294f6564adaf99c80d6ccf3ed1150c16d34 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def pour
<ide> prefix = Pathname(cellar).parent.to_s
<ide> return if cellar == HOMEBREW_CELLAR.to_s && prefix == HOMEBREW_PREFIX.to_s
<ide>
<add> return unless ENV["HOMEBREW_RELOCATE_BUILD_PREFIX"]
<add>
<ide> keg.relocate_build_prefix(keg, prefix, ... | 1 |
Mixed | Ruby | support expiring counters | b22ee64b5b30c6d5039c292235e10b24b1057f6d | <ide><path>activesupport/CHANGELOG.md
<add>* MemCacheStore: Support expiring counters.
<add>
<add> Pass `expires_in: [seconds]` to `#increment` and `#decrement` options
<add> to set the Memcached TTL (time-to-live) if the counter doesn't exist.
<add> If the counter exists, Memcached doesn't extend its expiry... | 3 |
PHP | PHP | apply fixes from styleci | d323312a15d7f18fe04dfdb298340f234ad28ff1 | <ide><path>src/Illuminate/Database/Eloquent/Factories/Factory.php
<ide> protected function expandAttributes(array $definition)
<ide> }
<ide>
<ide> $definition[$key] = $attribute;
<del>
<add>
<ide> return $attribute;
<ide> })
<ide> ... | 1 |
Python | Python | make py3 compat | c1439ae12506203239a698cc5eb851747a7925e3 | <ide><path>tests/core.py
<ide> def test_login_logout_ldap(self):
<ide> assert configuration.conf.getboolean('webserver', 'authenticate') is True
<ide>
<ide> response = self.login('user1', 'userx')
<del> assert 'Incorrect login details' in response.data
<add> assert 'Incorrect login detail... | 1 |
Text | Text | add auth0 to companies using airflow | 3bc49f69df08bb7b28c0c2f68f60b97a094c9d4c | <ide><path>README.md
<ide> Currently **officially** using Airflow:
<ide> 1. [allegro.pl](http://allegro.tech/) [[@kretes](https://github.com/kretes)]
<ide> 1. [AltX](https://www.getaltx.com/about) [[@pedromduarte](https://github.com/pedromduarte)]
<ide> 1. [Apigee](https://apigee.com) [[@btallman](https://github.com/bt... | 1 |
Javascript | Javascript | copy watchoptions properly in compiler.js | 8845a7dda781add4b8d5c6016238fba36791bf3a | <ide><path>lib/Compiler.js
<ide> Author Tobias Koppers @sokra
<ide> */
<ide> var path = require("path");
<add>var assign = require("object-assign");
<ide> var Tapable = require("tapable");
<ide>
<ide> var Compilation = require("./Compilation");
<ide> function Watching(compiler, watchOptions, handler) {
<ide> aggre... | 1 |
PHP | PHP | add shortcut accessors for `json` and `xml` | feb5ebbf36449feda39a5bf4a0cf1dcf48b3cbb8 | <ide><path>lib/Cake/Network/Http/Response.php
<ide> *
<ide> * `$content = $response->body;`
<ide> *
<add> * If your response body is in XML or JSON you can use
<add> * special content type specific accessors to read the decoded data.
<add> * JSON data will be returned as arrays, while XML data will be returned
<add>... | 2 |
Ruby | Ruby | fix performance regression | fe013ce93415a88b6c23fd750bd8cbab60d6395d | <ide><path>actionpack/lib/action_view/template.rb
<ide> def load!
<ide>
<ide> private
<ide> def valid_extension?(extension)
<del> Template.template_handler_extensions.include?(extension)
<add> !Template.registered_template_handler(extension).nil?
<ide> end
<ide>
<ide> def find_full... | 2 |
PHP | PHP | add test coverage for new options | 625ae5995a97c0f4008481c5ea8b61068b6fc14f | <ide><path>tests/TestCase/View/Helper/FormHelperTest.php
<ide> public function testCreateGet()
<ide> $this->assertHtml($expected, $result);
<ide> }
<ide>
<add> /**
<add> * Test explicit method/enctype options.
<add> *
<add> * Explicit method overwrites inferred method from 'type'
<add> *... | 1 |
Javascript | Javascript | add priority levels enum | 5e0ff5f966fa1bb2bf2d4a46fe6b8c80faf5bc87 | <ide><path>src/renderers/shared/fiber/ReactFiber.js
<ide>
<ide> 'use strict';
<ide>
<del>var ReactTypesOfWork = require('ReactTypesOfWork');
<add>import type { TypeOfWork } from 'ReactTypeOfWork';
<add>import type { PriorityLevel } from 'ReactPriorityLevel';
<add>
<add>var ReactTypeOfWork = require('ReactTypeOfWork')... | 5 |
Javascript | Javascript | improve virtualizedlist error message | bef87b648c4bed228f1c5889abe0181a271edf76 | <ide><path>Libraries/Lists/VirtualizedList.js
<ide> class VirtualizedList extends React.PureComponent<Props, State> {
<ide> const {animated, index, viewOffset, viewPosition} = params;
<ide> invariant(
<ide> index >= 0 && index < getItemCount(data),
<del> `scrollToIndex out of range: ${index} vs ${get... | 1 |
Python | Python | improve french tokenization | 4117a5c7056a65aafb29db137b4f52b264d915fc | <ide><path>spacy/lang/fr/__init__.py
<ide> from __future__ import unicode_literals
<ide>
<ide> from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS, TOKEN_MATCH
<del>from .punctuation import TOKENIZER_SUFFIXES, TOKENIZER_INFIXES
<add>from .punctuation import TOKENIZER_PREFIXES, TOKENIZER_INFIXES
<add>from .punctuati... | 3 |
Javascript | Javascript | fix stack trace column number in strict mode | 40d57b714e6b8e20c320ddaee22b3ff14c0e2fee | <ide><path>lib/repl.js
<ide> function REPLServer(prompt,
<ide> (self.replMode === exports.REPL_MODE_STRICT || retry)) {
<ide> // "void 0" keeps the repl from returning "use strict" as the
<ide> // result value for let/const statements.
<del> code = `'use strict'; void 0; ${code}... | 2 |
Text | Text | note actual prerequisite of gcc, not xcode/vs | 50253a5f491713cfed72b28a28eb8799888a2ba2 | <ide><path>README.md
<ide> Prerequisites
<ide> -------------
<ide> > - MongoDB
<ide> > - Node.js
<del>> - **Xcode** (Mac OS X) or **Visual Studio** (Windows)
<add>> - GCC - provided by **Xcode** in Mac OS X and **Visual Studio** Windows, or via your friendly Linux package manager
<ide>
<ide> **Note**: If you are new t... | 1 |
Ruby | Ruby | reduce object allocations | 931ee4186b877856b212b0085cd7bd7f6a4aea67 | <ide><path>actionpack/lib/action_dispatch/routing/route_set.rb
<ide> def call(t, args)
<ide> private
<ide>
<ide> def optimized_helper(args)
<del> params = Hash[parameterize_args(args)]
<add> params = parameterize_args(args)
<ide> missing_keys = missing_ke... | 1 |
PHP | PHP | add a note | 7593fbf90109ef57313e5c4bc569bbd84d1345b0 | <ide><path>src/View/Helper/HtmlHelper.php
<ide> public function charset($charset = null)
<ide> * - `confirm` JavaScript confirmation message.
<ide> *
<ide> * @param string|array $title The content to be wrapped by `<a>` tags.
<add> * Can also be array if $url is null and will use the URL as title t... | 1 |
PHP | PHP | fix generation of scoped paging urls | a61c366a1da3080a720ab4a6fad1774d28a7ccde | <ide><path>src/View/Helper/PaginatorHelper.php
<ide> public function generateUrlParams(array $options = [], ?string $model = null, $u
<ide> $paging['sortDefault'] = $this->_removeAlias($paging['sortDefault'], $model);
<ide> }
<ide>
<del> if (!empty($this->_config['options']['url'])) {
<del> ... | 2 |
Ruby | Ruby | use ||= instead of unless | 9427704176f3c877484fa3d66b2b272455b4225f | <ide><path>Library/Homebrew/extend/ENV.rb
<ide> def fortran
<ide> if self['FC']
<ide> ohai "Building with an alternative Fortran compiler"
<ide> puts "This is unsupported."
<del> self['F77'] = self['FC'] unless self['F77']
<add> self['F77'] ||= self['FC']
<ide>
<ide> if ARGV.include? '-... | 1 |
Ruby | Ruby | update livecheck_resource test values | e69345b9421aa3e884c10d6b5213a6a10a8c301c | <ide><path>Library/Homebrew/test/resource_spec.rb
<ide>
<ide> let(:livecheck_resource) {
<ide> described_class.new do
<del> url "https://brew.sh/test-0.0.1.tgz"
<add> url "https://brew.sh/foo-1.0.tar.gz"
<ide> sha256 "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
<ide>
<ide> ... | 1 |
Ruby | Ruby | add todo for --json=v1 deprecation | f8708ae80c38bff2b5c2ca76d509abe0cc6f3df6 | <ide><path>Library/Homebrew/cmd/outdated.rb
<ide> def outdated
<ide>
<ide> case json_version
<ide> when :v1
<del> odeprecated "brew outdated --json=v1", "brew outdated --json=v2"
<add> # TODO: enable for next major/minor release
<add> # odeprecated "brew outdated --json=v1", "brew outdated --jso... | 1 |
PHP | PHP | add docblocks & minor cleanup | 91bd93f92c26cc58c25849f1a1ac6d7ee6d55411 | <ide><path>src/Illuminate/Testing/Fluent/Assert.php
<ide> class Assert implements Arrayable
<ide> Macroable,
<ide> Tappable;
<ide>
<del> /** @var array */
<add> /**
<add> * The properties in the current scope.
<add> *
<add> * @var array
<add> */
<ide> private $props;
<ide>
<d... | 5 |
Text | Text | add changelogs for events | 8fb16fdccdbd2a9b7958f9f1203304d69a5902cf | <ide><path>doc/api/events.md
<ide> myEmitter.emit('event');
<ide> ### Event: 'removeListener'
<ide> <!-- YAML
<ide> added: v0.9.3
<add>changes:
<add> - version: v6.1.0, v4.7.0
<add> pr-url: https://github.com/nodejs/node/pull/6394
<add> description: For listeners attached using `.once()`, the `listener` argument... | 1 |
Ruby | Ruby | update xcode checks for 10.8 | 3696180fd7f6286631108e553107aa6e32d13d4d | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_latest_xcode
<ide> when 10.5 then "3.1.4"
<ide> when 10.6 then "3.2.6"
<ide> when 10.7 then "4.3.3"
<add> when 10.8 then "4.4"
<ide> else nil
<ide> end
<ide> if latest_xcode.nil?
<ide><path>Library/Homebrew/macos.rb
<ide> def xcode_ver... | 2 |
Python | Python | fix session usage in ``/rendered-k8s`` view | a665f48b606065977e0d3952bc74635ce11726d1 | <ide><path>airflow/www/views.py
<ide> from pygments.formatters import HtmlFormatter
<ide> from sqlalchemy import Date, and_, desc, func, inspect, union_all
<ide> from sqlalchemy.exc import IntegrityError
<del>from sqlalchemy.orm import joinedload
<add>from sqlalchemy.orm import Session, joinedload
<ide> from wtforms im... | 1 |
Javascript | Javascript | fix indentation nits | e0340af4551717ada908dc9fa1a4cd706004d728 | <ide><path>lib/buffer.js
<ide> function Buffer(arg, encodingOrOffset, length) {
<ide> // Common case.
<ide> if (typeof arg === 'number') {
<ide> if (typeof encodingOrOffset === 'string') {
<del> throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'string',
<del> 'string', arg);
<add> throw new e... | 1 |
Javascript | Javascript | add jsdoc typings for v8 | 672a8a38b673dfceaa5523fc8eea7603873ef8dd | <ide><path>lib/v8.js
<ide> const {
<ide> } = internalBinding('heap_utils');
<ide> const { HeapSnapshotStream } = require('internal/heap_utils');
<ide>
<add>/**
<add> * Generates a snapshot of the current V8 heap
<add> * and writes it to a JSON file.
<add> * @param {string} [filename]
<add> * @returns {string}
<add> */... | 1 |
Go | Go | add tag lookup to history command. fixes #882 | 3bfc82257878e55141bb029390574130c3ac0530 | <ide><path>api_params.go
<ide> package docker
<ide>
<ide> type APIHistory struct {
<ide> ID string `json:"Id"`
<add> Tag string `json:",omitempty"`
<ide> Created int64
<ide> CreatedBy string `json:",omitempty"`
<ide> }
<ide><path>commands.go
<ide> func (cli *DockerCli) CmdHistory(args ...string) erro... | 3 |
Ruby | Ruby | add collectionproxy#create! documentation | 7e5beca38fe64344eb8b97c9fba93096ff533543 | <ide><path>activerecord/lib/active_record/associations/collection_proxy.rb
<ide> class CollectionProxy < Relation
<ide> # # #<Pet id: 2, name: "Spook", person_id: 1>,
<ide> # # #<Pet id: 3, name: "Choo-Choo", person_id: 1>
<ide> # # ]
<add>
<add> ##
<add> # :method... | 1 |
Javascript | Javascript | remove arrow functions | a4f75ea72230a82c79d1bb2500f3da67ec177c73 | <ide><path>examples/counter/Counter.js
<ide> export default class Counter {
<ide> <p>
<ide> Clicked: {counter} times
<ide> {' '}
<del> <button onClick={() => increment()}>+</button>
<add> <button onClick={increment}>+</button>
<ide> {' '}
<del> <button onClick={() => d... | 1 |
Python | Python | trigger a build | 178cfd51c56cf57c39de68998172d8b95e00d3b7 | <ide><path>setup.py
<ide> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<add>
<ide> import os
<ide> import sys
<ide> import doctest | 1 |
PHP | PHP | use original key value when updating models | 8c4e988d5f36e693406dd331dc65156343413723 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> protected function fireModelEvent($event, $halt = true)
<ide> */
<ide> protected function setKeysForSaveQuery(Builder $query)
<ide> {
<del> $query->where($this->getKeyName(), '=', $this->getKey());
<add> $query->where($this->getKeyName(), '=', $this->ori... | 1 |
Go | Go | update adapters to new buildkit interfaces | fe16d95dcd5c5332b55054f2d7aaac08ea9f795f | <ide><path>builder/builder-next/adapters/containerimage/pull.go
<ide> type SourceOpt struct {
<ide> MetadataStore metadata.V2MetadataService
<ide> ImageStore image.Store
<ide> ResolverOpt resolver.ResolveOptionsFunc
<add> LayerStore layer.Store
<ide> }
<ide>
<ide> type imageSource struct {
<ide> fun... | 6 |
Java | Java | add @since tags | c813405ca35a44d22bbddf3121dd48150cbe1b95 | <ide><path>spring-test/src/main/java/org/springframework/mock/http/server/reactive/MockServerHttpRequest.java
<ide> /**
<ide> * Mock implementation of {@link ServerHttpRequest}.
<ide> * @author Rossen Stoyanchev
<add> * @since 5.0
<ide> */
<ide> public class MockServerHttpRequest implements ServerHttpRequest {
<ide>... | 2 |
Javascript | Javascript | match uri schemes case-insensitively | 7fef06fef9b6af4436f9fed10bd29d0a63707614 | <ide><path>src/ngSanitize/sanitize.js
<ide> var START_TAG_REGEXP = /^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:
<ide> BEGING_END_TAGE_REGEXP = /^<\s*\//,
<ide> COMMENT_REGEXP = /<!--(.*?)-->/g,
<ide> CDATA_REGEXP = /<!\[CDATA\[(.*?)]]>/g,
<del> URI_REGEXP = /^((ftp|https?):\/\/|mailto:|tel:|#)/,
<ad... | 2 |
Python | Python | clarify docstrings of np.sum and np.prod | 5a5329d5d03d3e4ee5dc201ce0f64f9d3f821e78 | <ide><path>numpy/core/fromnumeric.py
<ide> def sum(a, axis=None, dtype=None, out=None, keepdims=False):
<ide> a : array_like
<ide> Elements to sum.
<ide> axis : None or int or tuple of ints, optional
<del> Axis or axes along which a sum is performed.
<del> The default (`axis` = `None`) wil... | 1 |
Python | Python | remove invalid, extraneous copyright notice | cc78ecb5af5aad479b203a49b8b037601eb5b92d | <ide><path>libcloud/drivers/elastichosts.py
<ide> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<del># Copyright 2009 RedRata Ltd
<ide> """
<ide> ElasticHosts Driver
<ide> """
... | 3 |
Go | Go | fix flaky test testlogssince | 7ab0f9bf6142b828ac8972fae6cb8aabcaf1d742 | <ide><path>integration-cli/docker_cli_logs_test.go
<ide> func (s *DockerSuite) TestLogsFollowStopped(c *check.C) {
<ide> func (s *DockerSuite) TestLogsSince(c *check.C) {
<ide> testRequires(c, DaemonIsLinux)
<ide> name := "testlogssince"
<del> out, _ := dockerCmd(c, "run", "--name="+name, "busybox", "/bin/sh", "-c", ... | 1 |
Mixed | Ruby | allow `queue` option to `assert_no_enqueued_jobs` | 22c7d5650cb22ac75b5ee06830a58fcc22bb7acc | <ide><path>activejob/CHANGELOG.md
<add>* Allow `queue` option to `assert_no_enqueued_jobs`.
<add>
<add> Example:
<add> ```
<add> def test_no_logging
<add> assert_no_enqueued_jobs queue: 'default' do
<add> LoggingJob.set(queue: :some_queue).perform_later
<add> end
<add> end
<add> ```
<a... | 3 |
PHP | PHP | add wherenotin() to collection | 4d4040b601b9e5eb469af8c221c372abd8e9948a | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function whereInStrict($key, $values)
<ide> return $this->whereIn($key, $values, true);
<ide> }
<ide>
<add> /**
<add> * Filter items by the given key value pair.
<add> *
<add> * @param string $key
<add> * @param mixed $val... | 2 |
PHP | PHP | add illuminate\support\fluent test cases | 6d2eb2b2826fa4007c522c27f75ae014bcf07452 | <ide><path>tests/Support/SupportFluentTest.php
<add><?php
<add>
<add>use ReflectionObject,
<add> Illuminate\Support\Fluent;
<add>
<add>class SupportFluentTest extends PHPUnit_Framework_TestCase {
<add>
<add> /**
<add> * Test the Fluent constructor.
<add> *
<add> * @test
<add> */
<add> public function testAttribute... | 1 |
Ruby | Ruby | ask the view for its method container | 0f081611e6746ebbf17ffc13e119b24c9ad7aa73 | <ide><path>actionview/lib/action_view/base.rb
<ide> def run(method, locals, buffer, &block)
<ide> @output_buffer, @virtual_path = _old_output_buffer, _old_virtual_path
<ide> end
<ide>
<add> def compiled_method_container
<add> CompiledTemplates
<add> end
<add>
<ide> ActiveSupport.run_load_hooks... | 2 |
PHP | PHP | use locatorawaretrait in shell | a79cf2279e1fc85e8adf9cba4d42c34e9161a4e4 | <ide><path>src/Console/Shell.php
<ide> use Cake\Datasource\ModelAwareTrait;
<ide> use Cake\Filesystem\File;
<ide> use Cake\Log\LogTrait;
<add>use Cake\ORM\Locator\LocatorAwareTrait;
<ide> use Cake\Utility\Inflector;
<ide> use Cake\Utility\MergeVariablesTrait;
<ide> use Cake\Utility\Text;
<ide> class Shell
<ide> {
<ide>... | 1 |
Javascript | Javascript | upgrade dat.gui to 0.7.7 | f5d10bc88cc029d695adb08828ccf2e6d2d87621 | <ide><path>examples/jsm/libs/dat.gui.module.js
<ide> var Common = {
<ide> },
<ide> isFunction: function isFunction( obj ) {
<ide>
<del> return Object.prototype.toString.call( obj ) === '[object Function]';
<add> return obj instanceof Function;
<ide>
<ide> }
<ide> };
<ide> Object.defineProperty( Color.prototype, ... | 1 |
Go | Go | fix --ipc=host dependency on /dev/mqueue existing | f624d6187a8daa3ca0999c46cb345f8db6f330e7 | <ide><path>daemon/container.go
<ide> func (container *Container) Start() (err error) {
<ide> return err
<ide> }
<ide>
<del> if !container.hostConfig.IpcMode.IsContainer() && !container.hostConfig.IpcMode.IsHost() {
<add> if !container.hostConfig.IpcMode.IsContainer() {
<ide> if err := container.setupIpcDirs(); er... | 2 |
PHP | PHP | apply fixes from styleci | ee4d8af4123f2e8a574c87a058948fd9dc7084c7 | <ide><path>src/Illuminate/Cache/FileStore.php
<ide> protected function getPayload($key)
<ide> $data = unserialize(substr($contents, 10));
<ide> } catch (Exception $e) {
<ide> $this->forget($key);
<del>
<add>
<ide> return $this->emptyPayload();
<ide> }
<ide... | 1 |
Ruby | Ruby | apply cyclic dependency hack unconditionally | 96df4fe1da62efe9be9f1a9b5d885672c8f09d75 | <ide><path>Library/Homebrew/dependency.rb
<ide> def expand(dependent, deps=dependent.deps, &block)
<ide> expanded_deps = []
<ide>
<ide> deps.each do |dep|
<add> # FIXME don't hide cyclic dependencies
<add> next if dependent.name == dep.name
<add>
<ide> case action(dependent, dep, &blo... | 2 |
PHP | PHP | improve bundle configuration and registration | 70082508f51a0f80f85fd57d91801ecfecc50814 | <ide><path>application/routes.php
<ide>
<ide> Router::register(array('GET /', 'GET /home'), function()
<ide> {
<add> var_dump(Bundle::$bundles);
<ide> return View::make('home.index');
<ide> });
<ide>
<ide><path>bundles/bundles.php
<ide> | Now the bundle will be recognized by Laravel and will be able
<ide> | to respo... | 4 |
Javascript | Javascript | fix rawmodule hashing | 8c9dc149f034f44bcea620d409a058b8e801b2db | <ide><path>lib/RawModule.js
<ide> module.exports = class RawModule extends Module {
<ide> return new RawSource(this.sourceStr);
<ide> }
<ide>
<add> updateHash(hash) {
<add> hash.update(this.sourceStr);
<add> super.updateHash(hash);
<add> }
<ide> };
<ide><path>test/RawModule.test.js
<ide> const RawSource = requir... | 2 |
Javascript | Javascript | remove unneeded code | 890ef0335c0941c94697f58b6b1f10463f1e7a64 | <ide><path>packages/ember-htmlbars/tests/compat/make_bound_helper_test.js
<ide> import EmberView from "ember-views/views/view";
<ide> import run from "ember-metal/run_loop";
<ide> import EmberObject from "ember-runtime/system/object";
<ide> import { A } from "ember-runtime/system/native_array";
<del>import SimpleBoundV... | 9 |
Python | Python | add support for pretrained tok2vec to ud-train | 681258e29bac331468f5a69e3a2e8584eafe2b9f | <ide><path>spacy/cli/ud_train.py
<ide> def initialize_pipeline(nlp, docs, golds, config, device):
<ide> nlp.tagger.add_label(tag)
<ide> if torch is not None and device != -1:
<ide> torch.set_default_tensor_type('torch.cuda.FloatTensor')
<del> return nlp.begin_training(
<add> optimizer ... | 1 |
Ruby | Ruby | fix spelling in railties/test/generators | 8d383382b9043a488f5155ea80d30876d6d148ea | <ide><path>railties/test/generators/actions_test.rb
<ide> def test_invoke_other_generator_with_full_namespace
<ide> end
<ide>
<ide> def test_create_file_should_write_data_to_file_path
<del> action :create_file, "lib/test_file.rb", "heres test data"
<del> assert_file "lib/test_file.rb", "heres test data"
<add... | 2 |
Text | Text | update the release note with latest fixes | ef16c546d77d36bbddacf9b66626f7eaf9f4ff17 | <ide><path>docs/topics/release-notes.md
<ide> You can determine your currently installed version using `pip freeze`:
<ide> * Fix Metaclass attribute depth ignoring fields attribute. ([#2287][gh2287])
<ide> * Fix `format_suffix_patterns` to work with Django's `i18n_patterns`. ([#2278][gh2278])
<ide> * Ability to customi... | 1 |
Mixed | Ruby | move the null mime type to request.format | 618d5317d3ce3d40a22293149f79ff9843bbdb35 | <ide><path>actionpack/CHANGELOG.md
<ide>
<ide> *Łukasz Strzałkowski*
<ide>
<del>* Fix header `Content-Type: #<Mime::NullType:...>` in localized template.
<add>* Fix render of localized templates without an explicit format using wrong
<add> content header and not passing correct formats to template due to t... | 6 |
Go | Go | fix panic calling `ep` instead of `endpoint` | 3925ea0a2de5497b1887176483b95a7e3996378b | <ide><path>libnetwork/drivers/bridge/bridge.go
<ide> func (d *driver) CreateEndpoint(nid, eid string, ifInfo driverapi.InterfaceInfo,
<ide> }
<ide>
<ide> if err = d.storeUpdate(endpoint); err != nil {
<del> return fmt.Errorf("failed to save bridge endpoint %s to store: %v", ep.id[0:7], err)
<add> return fmt.Errorf... | 1 |
PHP | PHP | add test for error an improve error message | f4f608c485a0cb1a604f1211c244a930c121789a | <ide><path>src/Console/Command/Task/TemplateTask.php
<ide> public function getThemePath() {
<ide> $this->params['theme'] = 'default';
<ide> }
<ide> if (!isset($this->templatePaths[$this->params['theme']])) {
<del> throw new \RuntimeException('Unable to locate templates to bake with.');
<add> $msg = sprintf('... | 2 |
Ruby | Ruby | add pour_bottle? method | 767da444f9d0112607370177d00c0d73042f2959 | <ide><path>Library/Homebrew/requirement.rb
<ide> def satisfied?
<ide> !!result
<ide> end
<ide>
<add> # Can overridden to optionally prevent a formula with this requirement from
<add> # pouring a bottle.
<add> def pour_bottle?; true end
<add>
<ide> # Overriding #fatal? is deprecated.
<ide> # Pass a boolean... | 1 |
Text | Text | improve documentation of cdn asset paths | 327488dacb8a2dfafb72149afffd1816ff9534a8 | <ide><path>docs/api-reference/next.config.js/cdn-support-with-asset-prefix.md
<ide> module.exports = {
<ide> }
<ide> ```
<ide>
<del>Next.js will automatically use your asset prefix for the JavaScript and CSS files it loads from the `/_next/` path (`.next/static/` folder).
<add>Next.js will automatically use your asset... | 1 |
Ruby | Ruby | remove unused method | ddd84f6193ee44cdf33db60db469463940ea76cd | <ide><path>actioncable/test/client_test.rb
<ide> def close
<ide> @ws.close
<ide> @closed.wait(WAIT_WHEN_EXPECTING_EVENT)
<ide> end
<del>
<del> def close!
<del> sock = BasicSocket.for_fd(@ws.instance_variable_get(:@stream).detach)
<del>
<del> # Force a TCP reset
<del> sock.setsockopt(So... | 1 |
Python | Python | allow saving models directly to binary stream | 1ee31ee45cc3386cb94bc1f5014f2687da1f63f6 | <ide><path>keras/models.py
<ide> def save_model(model, filepath, overwrite=True, include_optimizer=True):
<ide>
<ide> # Arguments
<ide> model: Keras model instance to be saved.
<del> filepath: String, path where to save the model.
<add> filepath: one of the following:
<add> - strin... | 2 |
Mixed | Python | add spatial attention | 58a5da7b98d1d4ebeeb116da2e9a9f650f334046 | <ide><path>attention_ocr/README.md
<ide> python train.py --dataset_name=newtextdataset
<ide>
<ide> Please note that eval.py will also require the same flag.
<ide>
<add>To learn how to store a data in the FSNS
<add> format please refer to the https://stackoverflow.com/a/44461910/743658.
<add>
<ide> 2. Define a new dat... | 3 |
PHP | PHP | remove some leftover locale stuff | 253b0493d60de4518e45f9a5669a07ca796bfe1b | <ide><path>src/Illuminate/Http/Request.php
<ide> public function instance()
<ide> return $this;
<ide> }
<ide>
<del> /**
<del> * Setup the path info for a locale based URI.
<del> *
<del> * @param array $locales
<del> * @return string
<del> */
<del> public function handleUriLocales(array $locales)
<del> {
<de... | 1 |
Java | Java | refine kotlin changes | 8e73b573293cc46eeffff6fc33fccc677b5ebc31 | <ide><path>spring-beans/src/main/java/org/springframework/beans/BeanUtils.java
<ide> import org.springframework.util.ClassUtils;
<ide> import org.springframework.util.CollectionUtils;
<ide> import org.springframework.util.ConcurrentReferenceHashMap;
<del>import org.springframework.util.ObjectUtils;
<ide> import org.spr... | 1 |
Python | Python | add ftpshook in _hooks register | 970eb92f6db8b2fd22594d662a7142a976d60559 | <ide><path>airflow/contrib/hooks/__init__.py
<ide>
<ide> _hooks = {
<ide> 'ftp_hook': ['FTPHook'],
<add> 'ftps_hook': ['FTPSHook'],
<ide> 'vertica_hook': ['VerticaHook'],
<ide> 'ssh_hook': ['SSHHook'],
<ide> 'bigquery_hook': ['BigQueryHook'], | 1 |
PHP | PHP | preserve keys in the partition method | 6cc3068768ce8eff105569657c21e66a540d9c8b | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function partition($callback)
<ide>
<ide> $callback = $this->valueRetriever($callback);
<ide>
<del> foreach ($this->items as $item) {
<del> $partitions[(int) ! $callback($item)][] = $item;
<add> foreach ($this->items as $ke... | 2 |
PHP | PHP | fix bug in cookie class | 193396506e0c4d6e27072dda47e26c7dd65c27f7 | <ide><path>laravel/cookie.php
<ide> public static function put($name, $value, $minutes = 0, $path = '/', $domain = n
<ide> {
<ide> if (headers_sent()) return false;
<ide>
<add> $time = ($minutes !== 0) ? time() + ($minutes * 60) : 0;
<add>
<add> $value = static::hash($name, $value).'~'.$value;
<add>
<ide> if ($... | 1 |
Ruby | Ruby | use hash#delete on styelsheet_link_tag | 0360a38eb3eeae3c67ee7a4c374512454c830e48 | <ide><path>actionpack/lib/sprockets/helpers/rails_helper.rb
<ide> def javascript_include_tag(*sources)
<ide>
<ide> def stylesheet_link_tag(*sources)
<ide> options = sources.extract_options!
<del> debug = options.key?(:debug) ? options.delete(:debug) : debug_assets?
<del> body = options... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.