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 |
|---|---|---|---|---|---|
Mixed | Go | extract api types to version packages | 61634758c42014543e0ce429587bbba7fc6106ec | <ide><path>api/types/stats.go
<ide> type Stats struct {
<ide> BlkioStats BlkioStats `json:"blkio_stats,omitempty"`
<ide> }
<ide>
<del>// StatsJSONPre121 is a backcompatibility struct along with ContainerConfig
<del>type StatsJSONPre121 struct {
<del> Stats
<del>
<del> // Network is for fallback stats where API Vers... | 8 |
Ruby | Ruby | avoid duplicate urls | bd4124c10fc5a281fe38cb7566b14dee14cb6368 | <ide><path>Library/Homebrew/livecheck/livecheck.rb
<ide> def checkable_urls(formula_or_cask)
<ide> T.absurd(formula_or_cask)
<ide> end
<ide>
<del> urls.compact
<add> urls.compact.uniq
<ide> end
<ide>
<ide> # Preprocesses and returns the URL used by livecheck.
<ide> def latest_version(
... | 2 |
Go | Go | change relative paths to absolute | 687d6f25eeb8f4bc505dc9c6c0d9ea305c824e2d | <ide><path>client/client.go
<ide> package client
<ide>
<ide> import (
<del> "../future"
<del> "../rcli"
<add> "github.com/dotcloud/docker/future"
<add> "github.com/dotcloud/docker/rcli"
<ide> "io"
<ide> "io/ioutil"
<ide> "log"
<ide><path>container.go
<ide> package docker
<ide>
<ide> import (
<del> "./fs"
<add> "gi... | 8 |
Javascript | Javascript | handle more webcrypto errors with operationerror | 73a51125832e3dcf50d1692814635e2daf0b3398 | <ide><path>lib/internal/crypto/aes.js
<ide> function asyncAesCtrCipher(mode, key, data, { counter, length }) {
<ide> 'OperationError');
<ide> }
<ide>
<del> return jobPromise(new AESCipherJob(
<add> return jobPromise(() => new AESCipherJob(
<ide> kCryptoJobAsync,
<ide> mode,
<ide> key[kKeyObject][... | 9 |
Text | Text | update reference document for secret and stack | 7bb31f3168aa022a20c37b0b1cb1942fd553717f | <ide><path>docs/reference/commandline/index.md
<ide> read the [`dockerd`](dockerd.md) reference page.
<ide> | [service rm](service_rm.md) | Remove a service from the swarm |
<ide> | [service scale](service_scale.md) | Set the number of replicas for the desired state of the service |
<ide> | [service upda... | 3 |
Ruby | Ruby | reject build formula | 5de162f71a288c7c4b2e02a7c1b99f720036d930 | <ide><path>Library/Homebrew/installed_dependents.rb
<ide> def find_some_installed_dependents(kegs, casks: [])
<ide> dependent.missing_dependencies(hide: keg_names)
<ide> when Cask::Cask
<ide> # When checking for cask dependents, we don't care about missing dependencies
<del> CaskDependent.n... | 1 |
PHP | PHP | fix breaking change | 4415b94623358bfd1dc2e8f20e4deab0025d2d03 | <ide><path>src/Illuminate/Queue/Console/RetryCommand.php
<ide> protected function refreshRetryUntil($payload)
<ide> {
<ide> $payload = json_decode($payload, true);
<ide>
<add> if (! isset($payload['data']['command'])) {
<add> return json_encode($payload);
<add> }
<add>
<ide> ... | 1 |
Javascript | Javascript | remove code that is never reached | 2e59ccecde2a2d4a5a72b3372896427e28fc3265 | <ide><path>lib/assert.js
<ide> assert.AssertionError = function AssertionError(options) {
<ide> util.inherits(assert.AssertionError, Error);
<ide>
<ide> function truncate(s, n) {
<del> if (typeof s === 'string') {
<del> return s.length < n ? s : s.slice(0, n);
<del> } else {
<del> return s;
<del> }
<add> ret... | 1 |
Text | Text | add the word "структур" to localetitle after "и" | a177e02988aa7e49e8f27f8366ec338a8a9bbf37 | <ide><path>curriculum/challenges/russian/09-certificates/javascript-algorithms-and-data-structures-certificate/javascript-algorithms-and-data-structures-certificate.russian.md
<ide> title: JavaScript Algorithms and Data Structures Certificate
<ide> challengeType: 7
<ide> isPrivate: true
<ide> videoUrl: ''
<del>localeTi... | 1 |
PHP | PHP | add tests for policy resolution | dee4d82e0259b270413573c7792d92d49b51fe2a | <ide><path>src/Illuminate/Auth/Access/Gate.php
<ide> public function getPolicyFor($class)
<ide> */
<ide> protected function guessPolicyName($class)
<ide> {
<del> return dirname(str_replace('\\', '/', $class)).'\\Policies\\'.class_basename($class).'Policy';
<add> return str_replace('/', '\\', ... | 3 |
Javascript | Javascript | replace "hash" type with "object" | da3003c547a09132f5744c3325804e6dae7407ef | <ide><path>packages/ember-htmlbars/lib/helpers/bind-attr.js
<ide> @method bind-attr
<ide> @for Ember.Handlebars.helpers
<ide> @deprecated
<del> @param {Hash} options
<add> @param {Object} options
<ide> @return {String} HTML string
<ide> */
<ide>
<ide> @for Ember.Handlebars.helpers
<ide> @deprecated
<ide>... | 15 |
Text | Text | add docs for babel 6 | 41fc5f21e59c899fdc41fd8bfe47925bea666a62 | <ide><path>docs/docs/09-tooling-integration.md
<ide> If you like using JSX, Babel provides an [in-browser ES6 and JSX transformer for
<ide>
<ide> ### Productionizing: Precompiled JSX
<ide>
<del>If you have [npm](https://www.npmjs.com/), you can run `npm install -g babel`. Babel has built-in support for React v0.12 an... | 1 |
PHP | PHP | add additional useful tests for autolink() | ebc1bcb624811ad41141ebe0298b2b4f0450e71f | <ide><path>lib/Cake/Test/Case/View/Helper/TextHelperTest.php
<ide> public function testAutoLinkUrlsOptions() {
<ide> * @return void
<ide> */
<ide> public function testAutoLinkUrlsEscape() {
<add> $text = 'Text with a partial <a href="http://www.example.com">http://www.example.com</a> link';
<add> $expected = 'Text... | 1 |
Python | Python | fix input_shape validation in concatenate.build | 18935312a1a08f1f3bdcb50b402256bd7289b66a | <ide><path>keras/layers/merging/concatenate.py
<ide> def __init__(self, axis=-1, **kwargs):
<ide> @tf_utils.shape_type_conversion
<ide> def build(self, input_shape):
<ide> # Used purely for shape validation.
<del> if not isinstance(input_shape[0], tuple) or len(input_shape) < 1:
<add> if len(input_shape) ... | 1 |
Ruby | Ruby | add tests for reset_calbacks | 37ca5b09662797928a4f74878595a4e577c5aedd | <ide><path>activesupport/test/callbacks_test.rb
<ide> def test_proc_arity2
<ide> end
<ide> end
<ide>
<add> class ResetCallbackTest < ActiveSupport::TestCase
<add> def build_class(memo)
<add> klass = Class.new {
<add> include ActiveSupport::Callbacks
<add> define_callbacks :foo
<add> ... | 1 |
Javascript | Javascript | fix texture lod | a8179c989653149c4624413197fa691678eb30b9 | <ide><path>src/renderers/webgl/WebGLProgram.js
<ide> function WebGLProgram( renderer, extensions, code, material, shader, parameters,
<ide> parameters.logarithmicDepthBuffer ? '#define USE_LOGDEPTHBUF' : '',
<ide> parameters.logarithmicDepthBuffer && ( capabilities.isWebGL2 || extensions.get( 'EXT_frag_depth' ) )... | 1 |
PHP | PHP | restore maintenance message on error page | bc53915ed5fa4d315ee6faa047c1762cc7d1454b | <ide><path>src/Illuminate/Foundation/Exceptions/views/503.blade.php
<ide>
<ide> @section('title', __('Service Unavailable'))
<ide> @section('code', '503')
<del>@section('message', __('Service Unavailable'))
<add>@section('message', __($exception->getMessage() ?: 'Service Unavailable')) | 1 |
Text | Text | remove redundant explanation of format | bccd7b8dacef7806b977a07caeae27328aadacd5 | <ide><path>doc/api/url.md
<ide> The legacy `urlObject` (`require('url').Url`) is created and returned by the
<ide> The `auth` property is the username and password portion of the URL, also
<ide> referred to as _userinfo_. This string subset follows the `protocol` and
<ide> double slashes (if present) and precedes the `... | 1 |
PHP | PHP | remove security.level from core.php | 51946ff8fd013a21514ed0e93e8d9245c38a3e31 | <ide><path>app/Config/core.php
<ide> 'defaults' => 'php'
<ide> ));
<ide>
<del>/**
<del> * The level of CakePHP security.
<del> */
<del> Configure::write('Security.level', 'medium');
<del>
<ide> /**
<ide> * A random string used in security hashing methods.
<ide> */
<ide><path>lib/Cake/Console/Templates/skel/Config... | 3 |
Java | Java | add beforeconcurrenthandling support | 1e62ad8665bb0f4138e140974108d693a20ee287 | <ide><path>spring-web/src/main/java/org/springframework/web/context/request/async/CallableInterceptorChain.java
<ide> * Assists with the invocation of {@link CallableProcessingInterceptor}'s.
<ide> *
<ide> * @author Rossen Stoyanchev
<add> * @author Rob Winch
<ide> * @since 3.2
<ide> */
<ide> class CallableInterce... | 9 |
PHP | PHP | add default prefix to redisengine | b86aae4d8b21f08a549bf8b001c176bddc268dfc | <ide><path>lib/Cake/Cache/Engine/RedisEngine.php
<ide> public function init($settings = array()) {
<ide> }
<ide> parent::init(array_merge(array(
<ide> 'engine' => 'Redis',
<del> 'prefix' => null,
<add> 'prefix' => Inflector::slug(APP_DIR) . '_',
<ide> 'server' => '127.0.0.1',
<ide> 'database' => 0,
<id... | 2 |
Python | Python | clarify documentation for transpose() (gh-15024) | 95e570ca1de9a59e1fe478057c5921bbd6dd5f70 | <ide><path>numpy/core/fromnumeric.py
<ide> def _transpose_dispatcher(a, axes=None):
<ide> @array_function_dispatch(_transpose_dispatcher)
<ide> def transpose(a, axes=None):
<ide> """
<del> Permute the dimensions of an array.
<add> Reverse or permute the axes of an array; returns the modified array.
<add>
<add... | 1 |
Java | Java | accept non-generic type match as a fallback | 085176673876afc9282af0a8f4f94ee6a36e9e4e | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/config/DependencyDescriptor.java
<ide> public ResolvableType getResolvableType() {
<ide> ResolvableType.forMethodParameter(this.methodParameter));
<ide> }
<ide>
<add> /**
<add> * Return whether a fallback match is allowed.
<add> * <p>This i... | 8 |
PHP | PHP | allow int as type for value in pluck | 1a81bc74ecac5c1f587b8af85fdd49a135e47a9d | <ide><path>src/Illuminate/Collections/Collection.php
<ide> public function last(callable $callback = null, $default = null)
<ide> /**
<ide> * Get the values of a given key.
<ide> *
<del> * @param string|array<array-key, string> $value
<add> * @param string|int|array<array-key, string> $value
<... | 1 |
Ruby | Ruby | add support for templates for rails plugin new | bcd414fd10a0e401cfb1de95cc9b2940b1df0ff6 | <ide><path>railties/lib/rails/generators/app_base.rb
<ide> def create_root
<ide> valid_const?
<ide>
<ide> empty_directory '.'
<add> set_default_accessors!
<ide> FileUtils.cd(destination_root) unless options[:pretend]
<ide> end
<add>
<add> def apply_rails_template
<add> ... | 4 |
Javascript | Javascript | use a proper tty test | a52f59b437d669138e27a9d04880c71b5c79a9cf | <ide><path>lib/readline.js
<ide> function Interface (output, completer) {
<ide>
<ide> this.setPrompt("> ");
<ide>
<del> this.enabled = output.fd < 3; // Looks like a TTY.
<add> this.enabled = stdio.isatty(output.fd);
<ide>
<ide> if (parseInt(process.env['NODE_NO_READLINE'], 10)) {
<ide> this.enabled = fal... | 2 |
Text | Text | address first round of feedback | 510ff7898e5603015e8c3b8292daa2e84f80f6ab | <ide><path>guides/source/getting_started.md
<ide> we defined it as an instance variable.
<ide>
<ide> A concern is any module that contains methods you would like to be able to share across multiple controllers or models. In other frameworks they are often known as mixins. They are a good way to keep your controllers... | 1 |
Javascript | Javascript | remove flag for test-addon-uv-handle-leak | 7ed790e9dbf7827056b2859a57e9ad72863c1d50 | <ide><path>test/abort/test-addon-uv-handle-leak.js
<del>// Flags: --experimental-worker
<ide> 'use strict';
<ide> const common = require('../common');
<ide> const assert = require('assert');
<ide> const fs = require('fs');
<ide> const path = require('path');
<ide> const cp = require('child_process');
<del>const { Worke... | 1 |
Javascript | Javascript | replace var to let in cli_table.js | 78b7ddff1b0e20e326d18a198525300f254276e9 | <ide><path>lib/internal/cli_table.js
<ide> const tableChars = {
<ide>
<ide> const renderRow = (row, columnWidths) => {
<ide> let out = tableChars.left;
<del> for (var i = 0; i < row.length; i++) {
<add> for (let i = 0; i < row.length; i++) {
<ide> const cell = row[i];
<ide> const len = getStringWidth(cell)... | 1 |
Javascript | Javascript | add matrix3 unit tests | 2eb06eeaaaf68d62aa850f9fd995faf1eff263c5 | <ide><path>test/unit/src/math/Matrix3.tests.js
<ide> export default QUnit.module( 'Maths', () => {
<ide> } );
<ide>
<ide> // PUBLIC STUFF
<del> QUnit.todo( "isMatrix3", ( assert ) => {
<add> QUnit.test( "isMatrix3", ( assert ) => {
<ide>
<del> assert.ok( false, "everything's gonna be alright" );
<add> var a... | 1 |
Python | Python | improve aws sqs sensor | d28efbfb7780afd1ff13a258dc5dc3e3381ddabd | <ide><path>airflow/providers/amazon/aws/sensors/sqs.py
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<ide> """Reads and then deletes the message from SQS queue"""
<del>from typing import Optional
<add>import json
<add>from typing import Any, Optional
<add>
<add>from jsonpath... | 3 |
Java | Java | drop servlet 4 classpath check | 16ea4692bab551800b9ba994ac08099e8acfd6cd | <ide><path>spring-web/src/main/java/org/springframework/web/util/ServletRequestPathUtils.java
<ide> public static RequestPath parse(HttpServletRequest request) {
<ide> if (requestUri == null) {
<ide> requestUri = request.getRequestURI();
<ide> }
<del> if (UrlPathHelper.servlet4Present) {
<del> String ser... | 2 |
Go | Go | call udevwait() even in failure path | edc6df256d21eb1d1aa36b241dcc6d4b83d58d75 | <ide><path>pkg/devicemapper/devmapper.go
<ide> func CreatePool(poolName string, dataFile, metadataFile *os.File, poolBlockSize
<ide> if err := task.SetCookie(&cookie, 0); err != nil {
<ide> return fmt.Errorf("Can't set cookie %s", err)
<ide> }
<add> defer UdevWait(cookie)
<ide>
<ide> if err := task.Run(); err != ... | 1 |
Text | Text | add instructions for available_locales [skip ci] | 864ef6be9ea74b22e04297fa9d269897d729863c | <ide><path>guides/source/i18n.md
<ide> I18n.l Time.now
<ide> There are also attribute readers and writers for the following attributes:
<ide>
<ide> ```ruby
<del>load_path # Announce your custom translation files
<del>locale # Get and set the current locale
<del>default_locale # Get and set the de... | 1 |
Java | Java | improve check for "broken pipe" error message | 7e232f989ba5d947dc286104b44d0e9ce580a2af | <ide><path>spring-web/src/main/java/org/springframework/web/server/adapter/HttpWebHandlerAdapter.java
<ide> else if (disconnectedClientLogger.isDebugEnabled()) {
<ide> }
<ide>
<ide> private boolean indicatesDisconnectedClient(Throwable ex) {
<del> return ("Broken pipe".equalsIgnoreCase(NestedExceptionUtils.getMost... | 2 |
PHP | PHP | return collect() and add missing ->filter() | 4a2083bc25c37b44dc966161d4172f36a1215464 | <ide><path>src/Illuminate/Console/Command.php
<ide> protected function context()
<ide> {
<ide> $options = array_only($this->option(), ['no-interaction', 'ansi', 'no-ansi', 'quiet', 'verbose']);
<ide>
<del> collect($options)->mapWithKeys(function ($value, $key) {
<add> return collect($options)... | 1 |
Javascript | Javascript | change == to === in crypto test | 7044065f1a955275335f6a9207f3321c790277c7 | <ide><path>test/parallel/test-crypto-sign-verify.js
<ide> const modSize = 1024;
<ide> padding: crypto.constants.RSA_PKCS1_PSS_PADDING,
<ide> saltLength: verifySaltLength
<ide> }, s4);
<del> const saltLengthCorrect = getEffecti... | 1 |
Javascript | Javascript | fix global reexports for ember-utils | 0667fd3d02f45a93cfd00a7e99192c630291127d | <ide><path>packages/container/lib/index.js
<ide> export {
<ide> default as Container,
<ide> buildFakeContainerWithDeprecations
<ide> } from './container';
<del>export { OWNER, getOwner, setOwner } from 'ember-utils';
<ide><path>packages/container/lib/registry.js
<ide> import { dictionary, EmptyObject, assign, inter... | 10 |
Ruby | Ruby | add examples to collectionassociation#concat | 10d375efaa85cbfab11def8ddff7069b18da7064 | <ide><path>activerecord/lib/active_record/associations/collection_association.rb
<ide> def create!(attributes = {}, options = {}, &block)
<ide> create_record(attributes, options, true, &block)
<ide> end
<ide>
<del> # Add +records+ to this association. Returns +self+ so method calls may be chained.
<... | 1 |
Text | Text | add example to test doc for clarity | fa3eefcb83c35a804a612a030313d6e2906038b6 | <ide><path>BUILDING.md
<ide> If you want to run the linter without running tests, use
<ide> `make lint`/`vcbuild lint`. It will run both JavaScript linting and
<ide> C++ linting.
<ide>
<del>If you are updating tests and just want to run a single test to check it:
<add>If you are updating tests and want to run tests in... | 1 |
Ruby | Ruby | remove useless conditional | ab0703eb59d42e2572a9cffbda5a63d5780f6ed4 | <ide><path>actionpack/lib/action_controller/metal/head.rb
<ide> def head(status, options = {})
<ide>
<ide> if include_content?(self.response_code)
<ide> self.content_type = content_type || (Mime[formats.first] if formats)
<del> self.response.charset = false if self.response
<add> self.respo... | 1 |
Text | Text | remove bug template for guides | 2b7e41d3557d5e48176af6d21eabd7093fb8c3e0 | <ide><path>.github/ISSUE_TEMPLATE/bug-report--issues-with-guide-articles.md
<del>---
<del>name: 'Bug Report: Issues with Guide articles'
<del>about: Reporting issue with a guide article, broken links, images, or content related
<del>
<del>---
<del>
<del><!--
<del>NOTE: If you're reporting a security issue, don't cre... | 1 |
Ruby | Ruby | add more examples in performance script | 61bacc4adaf1ed423ef4e4ca69b6ca90075d9ec3 | <ide><path>activerecord/examples/performance.rb
<ide> def self.feel(exhibits) exhibits.each { |e| e.feel } end
<ide> ar { Exhibit.transaction { Exhibit.new } }
<ide> end
<ide>
<add> report 'Model.find(id)' do
<add> id = Exhibit.first.id
<add> ar { Exhibit.find(id) }
<add> end
<add>
<add> report 'Model.f... | 1 |
Text | Text | remove whitespace to test solution | db6d97142a450d7ece237e814a1c49292abf9799 | <ide><path>curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/headline-with-the-h2-element.english.md
<ide> tests:
<ide> ## Solution
<ide>
<ide> <section id='solution'>
<del>
<add>
<ide> ```html
<ide> <h1>Hello World</h1>
<ide> <h2>CatPhotoApp</h2> | 1 |
Text | Text | add @rlr for thanks! | e4144b5b674cc8849c248727a09b82b82d1a01c9 | <ide><path>docs/topics/credits.md
<ide> The following people have helped make REST framework great.
<ide> * Kevin Brown - [kevin-brown]
<ide> * Rodrigo Martell - [coderigo]
<ide> * James Rutherford - [jimr]
<add>* ricky rosario - [rlr]
<ide>
<ide> Many thanks to everyone who's contributed to the project.
<ide>
<ide> ... | 1 |
Ruby | Ruby | do relocation check while preparing bottle | 36701a89bad15e02290e71da175e84868329edd9 | <ide><path>Library/Homebrew/cmd/bottle.rb
<ide> def bottle_formula f
<ide> sha1 = nil
<ide>
<ide> prefix = HOMEBREW_PREFIX.to_s
<del> tmp_prefix = '/tmp'
<ide> cellar = HOMEBREW_CELLAR.to_s
<del> tmp_cellar = '/tmp/Cellar'
<ide>
<ide> output = nil
<ide>
<ide> HOMEBREW_CELLAR.cd do
<ide> ... | 1 |
Ruby | Ruby | add collectionassociation hierarchy | e66c0fc04967a122cfec656e5473a57ab0223183 | <ide><path>activerecord/lib/active_record/associations/collection_association.rb
<ide> module Associations
<ide> #
<ide> # CollectionAssociation is an abstract class that provides common stuff to
<ide> # ease the implementation of association proxies that represent
<del> # collections. See the class hier... | 1 |
PHP | PHP | fix cs errors | f5bd76a784f1fb0b9a3c1f9ee16d8f52a0d7376c | <ide><path>tests/TestCase/View/Widget/DateTimeWidgetTest.php
<ide> use Cake\TestSuite\TestCase;
<ide> use Cake\View\StringTemplate;
<ide> use Cake\View\Widget\DateTimeWidget;
<del>use Cake\View\Widget\SelectBoxWidget;
<ide>
<ide> /**
<ide> * DateTimeWidget test case
<ide> public function testTimezoneOption()
<ide> ... | 1 |
Java | Java | provide rich type information to conversionservice | 8c7658144284f2f47124c6ac8131f53320091551 | <ide><path>spring-web-reactive/src/main/java/org/springframework/core/convert/support/PublisherToFluxConverter.java
<del>/*
<del> * Copyright 2002-2015 the original author or authors.
<del> *
<del> * Licensed under the Apache License, Version 2.0 (the "License");
<del> * you may not use this file except in compliance w... | 13 |
Text | Text | improve text for console constructor | c3a997038c0e0c94801a6774bb2d374b7e981894 | <ide><path>doc/api/console.md
<ide> const { Console } = console;
<ide> * `stdout` {Writable}
<ide> * `stderr` {Writable}
<ide>
<del>Creates a new `Console` by passing one or two writable stream instances.
<del>`stdout` is a writable stream to print log or info output. `stderr`
<del>is used for warning or error output.... | 1 |
Python | Python | return empty list if self.many==true | 3c62f0efc3cff7c1d7da9f13e0b0629d963069cb | <ide><path>rest_framework/relations.py
<ide> def _set_choices(self, value):
<ide>
<ide> def get_default_value(self):
<ide> default = super(RelatedField, self).get_default_value()
<del> return default or \
<del> [] if self.many else None
<add> if self.many and default is None:
<add>... | 1 |
Text | Text | clarify lgtm process to contributors | 310a1742604173ac88a052b04f0b117772ab63ff | <ide><path>CONTRIBUTING.md
<ide> name and email address match your git configuration. The AUTHORS file is
<ide> regenerated occasionally from the git commit history, so a mismatch may result
<ide> in your changes being overwritten.
<ide>
<add>### Approval
<add>
<add>Docker maintainers use LGTM (looks good to me) in co... | 1 |
Mixed | Javascript | add support for async iteration | 2a7432dadec08bbe7063d84f1aa4a6396807305c | <ide><path>doc/api/readline.md
<ide> rl.write(null, { ctrl: true, name: 'u' });
<ide> The `rl.write()` method will write the data to the `readline` `Interface`'s
<ide> `input` *as if it were provided by the user*.
<ide>
<add>### rl\[Symbol.asyncIterator\]()
<add><!-- YAML
<add>added: REPLACEME
<add>-->
<add>
<add>> St... | 6 |
Javascript | Javascript | fix short circuit of logical and and or operators | e1ecc34edd19b95d51fbcb1351b04b9876c974c1 | <ide><path>src/parser.js
<ide> var OPERATORS = {
<ide> 'true':function(self){return true;},
<ide> 'false':function(self){return false;},
<ide> $undefined:noop,
<del> '+':function(self, a,b){return (isDefined(a)?a:0)+(isDefined(b)?b:0);},
<del> '-':function(self, a,b){return (isDefined(a)?a:0)-(isDefin... | 2 |
Python | Python | add max_ingestion_time to druidoperator docstring | f8c31b5bf787de662f73583ee6b65dad6addf453 | <ide><path>airflow/providers/apache/druid/operators/druid.py
<ide> class DruidOperator(BaseOperator):
<ide> :param druid_ingest_conn_id: The connection id of the Druid overlord which
<ide> accepts index jobs
<ide> :type druid_ingest_conn_id: str
<add> :param max_ingestion_time: The maximum ingestion ... | 1 |
Mixed | Go | remove types and lib packages from the engine | c7d811c8161b1acc677b15f56b02c773824dfb87 | <ide><path>api/client/lib/client.go
<del>package lib
<del>
<del>import (
<del> "crypto/tls"
<del> "fmt"
<del> "net"
<del> "net/http"
<del> "net/url"
<del> "os"
<del> "path/filepath"
<del> "strings"
<del> "time"
<del>)
<del>
<del>// Client is the API client that performs all operations
<del>// against a docker server.
<... | 71 |
PHP | PHP | remove empty array | 0db867ad26e0b20962c30d98504e08c9929f2d96 | <ide><path>src/Illuminate/Redis/Connectors/PhpRedisConnector.php
<ide> protected function createRedisClusterInstance(array $servers, array $options)
<ide> }
<ide>
<ide> if (version_compare(phpversion('redis'), '5.3.2', '>=')) {
<del> $parameters[] = Arr::get($options, 'context', []);
<add> ... | 1 |
Go | Go | use hijack for logs instead of stream | b419699ab8f79f4826ec94583c6f7a46f74eeaa2 | <ide><path>api.go
<ide> func createRouter(srv *Server, logging bool) (*mux.Router, error) {
<ide> localFct := fct
<ide> f := func(w http.ResponseWriter, r *http.Request) {
<ide> utils.Debugf("Calling %s %s", localMethod, localRoute)
<add>
<ide> if logging {
<ide> log.Println(r.Method, r.RequestURI)
<... | 3 |
PHP | PHP | remove second param from json structure | da46df36cd6ca2cba2710c8ba577aae377e710d0 | <ide><path>src/Illuminate/Foundation/Testing/TestResponse.php
<ide> public function assertExactJson(array $data)
<ide> * Assert that the response has a given JSON structure.
<ide> *
<ide> * @param array|null $structure
<del> * @param array|null $responseData
<ide> * @return $this
<ide> ... | 1 |
Javascript | Javascript | add support for reflectivity in loader.js | 04658393de0f78dc8d537c9409c0bb78c9a060ec | <ide><path>src/loaders/Loader.js
<ide> THREE.Loader.prototype = {
<ide> if ( value === true ) json.vertexColors = THREE.VertexColors;
<ide> if ( value === 'face' ) json.vertexColors = THREE.FaceColors;
<ide> break;
<add> case 'reflectivity':
<add> json.reflectivity = value;
<add... | 1 |
Text | Text | update changelog for 2.9.0 | c4f331aa3fe9d9bb80715a54180adec995d5386a | <ide><path>CHANGELOG.md
<ide> Changelog
<ide> =========
<ide>
<add>### 2.9.0 [See full changelog](https://gist.github.com/ichernev/0c9a9b49951111a27ce7)
<add>
<add>languages:
<add>* [2104](https://github.com/moment/moment/issues/2104) Frisian (fy) language file with unit test
<add>* [2097](https://github.com/moment/mo... | 1 |
Ruby | Ruby | add tests for explicit engines | f8bf1982dff9cf0f35fb7a121932c794ecdc1cb1 | <ide><path>railties/lib/rails/application.rb
<ide> module Rails
<ide> class Application < Engine
<ide> autoload :Bootstrap, 'rails/application/bootstrap'
<add> autoload :Configurable, 'rails/application/configurable'
<ide> autoload :Configuration, 'rails/application/configuration'
<ide> autoloa... | 7 |
Text | Text | update id selector with basic information. | 77d2e5e755a234f9b4cfcd2db6e126799b1be323 | <ide><path>guide/english/css/selectors/general/id/index.md
<ide> ---
<ide> title: Id
<ide> ---
<del>## Id
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/css/selectors/general/id/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
<add># ID
<ide> ... | 1 |
Javascript | Javascript | set better defaults for datatexture | d0148758941fe5b20368ef22c53c197d7959cd9a | <ide><path>examples/js/Ocean.js
<ide> THREE.Ocean.prototype.generateSeedPhaseTexture = function() {
<ide> }
<ide>
<ide> this.pingPhaseTexture = new THREE.DataTexture( phaseArray, this.resolution, this.resolution, THREE.RGBAFormat );
<del> this.pingPhaseTexture.minFilter = THREE.NearestFilter;
<del> this.pingPhaseTex... | 5 |
PHP | PHP | return fake objects from facades | 81895941a5ee83e89c1e707cdd5d06515d276b4d | <ide><path>src/Illuminate/Support/Facades/Bus.php
<ide> class Bus extends Facade
<ide> /**
<ide> * Replace the bound instance with a fake.
<ide> *
<del> * @return void
<add> * @return BusFake
<ide> */
<ide> public static function fake()
<ide> {
<del> static::swap(new BusFake);
... | 5 |
Text | Text | fix wrong response.end() at request.socket | 019a2c4f8460548ececa4225f1c7a6d11eb8bd25 | <ide><path>doc/api/http.md
<ide> added: v0.3.0
<ide>
<ide> Reference to the underlying socket. Usually users will not want to access
<ide> this property. In particular, the socket will not emit `'readable'` events
<del>because of how the protocol parser attaches to the socket. After
<del>`response.end()`, the property... | 1 |
Ruby | Ruby | join relation qualification | d1e5265a1db424e7361878772d32ae4ec39babe2 | <ide><path>lib/sql_algebra/relations/join_relation.rb
<ide> def ==(other)
<ide> ((relation1 == other.relation1 and relation2 == other.relation2) or
<ide> (relation2 == other.relation1 and relation1 == other.relation2))
<ide> end
<add>
<add> def qualify
<add> JoinRelation.new(relation1.qualify, relatio... | 8 |
Ruby | Ruby | push a failing test for issues [] and [] | 67582f08bf86ec71a27363554bc550e929a007f7 | <ide><path>activerecord/test/cases/named_scope_test.rb
<ide> def test_named_scopes_are_reset_on_association_reload
<ide> assert before.object_id != post.comments.containing_the_letter_e.object_id, "AssociationCollection##{method} should reset the named scopes cache"
<ide> end
<ide> end
<add>
<add> def test... | 3 |
Python | Python | update arg parsing | 3583ea84d8fb6979d068c23816c0994dab5f81a4 | <ide><path>spacy/cli/_util.py
<ide> def parse_config_overrides(args: List[str]) -> Dict[str, Any]:
<ide> if "." not in opt:
<ide> msg.fail(f"{err}: can't override top-level section", exits=1)
<ide> if not args or args[0].startswith("--"): # flag with no value
<del> ... | 1 |
Python | Python | refer warmup_ratio when setting warmup_num_steps. | 037bdf82d382d70ba91afcbe491b6e98b0e9e35c | <ide><path>src/transformers/deepspeed.py
<ide> def trainer_config_process(self, args):
<ide>
<ide> self.fill_only("scheduler.params.warmup_min_lr", 0) # not a trainer arg
<ide> self.fill_match("scheduler.params.warmup_max_lr", args.learning_rate, "learning_rate")
<del> self.fill_match("schedule... | 3 |
PHP | PHP | remove encrpytion features from individual cookies | 7cc569332d211e0c525e3d4d88f81d3cd89c2786 | <ide><path>src/Http/Cookie/Cookie.php
<ide> class Cookie implements CookieInterface
<ide> {
<ide>
<del> use CookieCryptTrait;
<del>
<ide> /**
<ide> * Expires attribute format.
<ide> *
<ide> public function read($path = null)
<ide> return Hash::get($this->value, $path);
<ide> }
<ide>
<del>... | 7 |
PHP | PHP | apply fixes from styleci | 08f8ef951e3f54e43bb9829c47393e9975b0a9ff | <ide><path>src/Illuminate/Routing/Router.php
<ide> public function __construct(Dispatcher $events, Container $container = null)
<ide> public function head($uri, $action = null)
<ide> {
<ide> return $this->addRoute('HEAD', $uri, $action);
<del> }
<add> }
<ide>
<ide> /**
<ide> * Regist... | 1 |
PHP | PHP | remove unneeded method existence check | 5b40d09d0f4e29e3412fb90677f4819b81a42caa | <ide><path>src/Mailer/Email.php
<ide> protected function _constructTransport($name)
<ide> if (!$className) {
<ide> throw new InvalidArgumentException(sprintf('Transport class "%s" not found.', $config['className']));
<ide> }
<del> if (!method_exists($className, 'send')) {
<del> ... | 1 |
Ruby | Ruby | use class_eval with a string when it's possible | 450f7cf01b855b536416fc048a92c4309da2492e | <ide><path>activemodel/lib/active_model/attribute_methods.rb
<ide> def define_attr_method(name, value=nil, &block)
<ide> if block_given?
<ide> sing.send :define_method, name, &block
<ide> else
<del> value = value.to_s if value
<del> sing.send(:define_method, name) { value }
<... | 3 |
Ruby | Ruby | remove code duplication | a26dcb62714cfe1d23358c5753f9aad26c27fe29 | <ide><path>actionpack/lib/action_view/helpers/date_helper.rb
<ide> def select_year(date, options = {}, html_options = {})
<ide> # <time datetime="2010-11-04" pubdate="pubdate">November 04, 2010</time>
<ide> #
<ide> # <%= time_tag Time.now do %>
<del> # <span>Right now</span>
<add> ... | 1 |
Java | Java | fix copyright dates | 46a37b447c328cef6cc09ac839b985d7db133f75 | <ide><path>spring-aop/src/main/java/org/springframework/aop/framework/AopProxyUtils.java
<ide> /*
<del> * Copyright 2002-2017 the original author or authors.
<add> * Copyright 2002-2019 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not... | 3 |
Text | Text | make contributing guide consistent about bug fixes | 65d878a33e916d11724b6edf739af5082b817066 | <ide><path>guides/source/contributing_to_ruby_on_rails.md
<ide> For example, if you modify Active Storage's image analyzer to add a new metadata
<ide>
<ide> The CHANGELOG is an important part of every release. It keeps the list of changes for every Rails version.
<ide>
<del>You should add an entry **to the top** of t... | 1 |
Python | Python | fix doc bug | 985bba90961803c0f83dcb20d3139c0d4a9bcee3 | <ide><path>src/transformers/file_utils.py
<ide> def _prepare_output_docstrings(output_type, config_class):
<ide> >>> import tensorflow as tf
<ide>
<ide> >>> tokenizer = {tokenizer_class}.from_pretrained('{checkpoint}')
<del> >>> model = {model_class}.from_pretrained('{checkpoint}', return_dict=T... | 1 |
Javascript | Javascript | call event.stoppropagation in the click handler " | 15ff8f7242cc908717ccf730c239157bdd4ed1f9 | <ide><path>src/js/control-bar/play-toggle.js
<ide> class PlayToggle extends Button {
<ide> } else {
<ide> this.player_.pause();
<ide> }
<del> event.stopPropagation();
<ide> }
<ide>
<ide> /** | 1 |
Ruby | Ruby | move x11 check | 71f9d74adf93dc8294c345f13036a1bb817ba06a | <ide><path>Library/Homebrew/brew_doctor.rb
<ide> def check_for_stray_dylibs
<ide> end
<ide> end
<ide>
<add>def check_for_x11
<add> unless File.exists? '/usr/X11/lib/libpng.dylib'
<add> puts "You don't have X11 installed as part of your Xcode installation."
<add> puts "This isn't required for all formula. But ... | 1 |
Javascript | Javascript | expose asset content | 1f8d1002ef991b66f4cac8d8b8689f27a244ac4d | <ide><path>Libraries/Image/AssetRegistry.js
<ide>
<ide>
<ide> export type PackagerAsset = {
<del> __packager_asset: boolean,
<del> fileSystemLocation: string,
<del> httpServerLocation: string,
<del> width: number,
<del> height: number,
<del> scales: Array<number>,
<del> hash: string,
<del> name: string,
<del>... | 6 |
Java | Java | update @since tag due to backport | 5b96c9b87e0744ef4011cec403f5470ce017315e | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/ModelAttributeMethodArgumentResolver.java
<ide> public Mono<Object> resolveArgument(
<ide> /**
<ide> * Determine if binding should be disabled for the supplied {@link MethodParameter},
<ide> * based on the {@link Mode... | 1 |
Python | Python | allow project specific config files in keras | 50411ccb0e7059ad2bd9286b64ffc2cda8957025 | <ide><path>keras/backend/__init__.py
<ide> from .common import image_data_format
<ide> from .common import set_image_data_format
<ide>
<del># Obtain Keras base dir path: either ~/.keras or /tmp.
<del>_keras_base_dir = os.path.expanduser('~')
<del>if not os.access(_keras_base_dir, os.W_OK):
<del> _keras_base_dir = '... | 1 |
Javascript | Javascript | replace var with let/const | ecfebee90f9ee900b1dac60b30624ed5e4dff665 | <ide><path>lib/internal/process/stdio.js
<ide> function dummyDestroy(err, cb) {
<ide> }
<ide>
<ide> function getMainThreadStdio() {
<del> var stdin;
<del> var stdout;
<del> var stderr;
<add> let stdin;
<add> let stdout;
<add> let stderr;
<ide>
<ide> function getStdout() {
<ide> if (stdout) return stdout;
... | 1 |
PHP | PHP | add stackframe information to deprecation message | 65c6e1c91e339da6eda7fd927b0e7a824af1b86f | <ide><path>src/Core/functions.php
<ide> function env($key, $default = null)
<ide> * Helper method for outputting deprecation warnings
<ide> *
<ide> * @param string $message The message to output as a deprecation warning.
<add> * @param int $stackFrame The stack frame to include in the error. Defaults... | 2 |
Javascript | Javascript | support press reentry for pointer events | 339366c461acca41d12ce15264181bc94aaa0eb4 | <ide><path>packages/react-events/src/Press.js
<ide> type PressState = {
<ide> top: number,
<ide> |}>,
<ide> ignoreEmulatedMouseEvents: boolean,
<add> allowPressReentry: boolean,
<ide> };
<ide>
<ide> type PressEventType =
<ide> function dispatchPressEndEvents(
<ide> deactivate(context, props, state);
<id... | 2 |
Python | Python | fix svn revision parsing under win32 | 5032b52732b2e8e6d60be09646d65bf0051a3161 | <ide><path>setup.py
<ide> def svn_version():
<ide> def _minimal_ext_cmd(cmd):
<ide> # construct minimal environment
<ide> env = {}
<del> path = os.environ.get('PATH')
<del> if path is not None:
<del> env['PATH'] = path
<add> for k in ['SYSTEMROOT', 'PATH']:
<add> ... | 1 |
Python | Python | fix mypy errors for apache druid provider. | 64a902d3e006e2ecec4c882184a71a09b10243fa | <ide><path>airflow/providers/apache/druid/hooks/druid.py
<ide> # under the License.
<ide>
<ide> import time
<del>from typing import Any, Dict, Iterable, Optional, Tuple
<add>from typing import Any, Dict, Iterable, Optional, Tuple, Union
<ide>
<ide> import requests
<ide> from pydruid.db import connect
<ide> def get_au... | 1 |
Ruby | Ruby | use keg#uninstall to clean up kegs | def6b1eaf74cab3be2c807ca5609df3fa98bb8c9 | <ide><path>Library/Homebrew/cmd/cleanup.rb
<ide> def cleanup_keg keg
<ide> puts "Would remove: #{keg}"
<ide> else
<ide> puts "Removing: #{keg}..."
<del> keg.rmtree
<add> keg.uninstall
<ide> end
<ide> end
<ide> | 1 |
Ruby | Ruby | use more semantic method to check password | a928928c9668f02735707b4e6edf2632fe191814 | <ide><path>activemodel/lib/active_model/secure_password.rb
<ide> module InstanceMethodsOnActivation
<ide> # user.authenticate('notright') # => false
<ide> # user.authenticate('mUc3m00RsqyRe') # => user
<ide> def authenticate(unencrypted_password)
<del> BCrypt::Password.new(password_dig... | 1 |
Javascript | Javascript | generate a warning when using a not defined rule | c66b4b6a133f7215d50c23db516986cfc1f0a985 | <ide><path>src/ng/directive/ngPluralize.js
<ide> * <span ng-non-bindable>`{{personCount}}`</span>. The closed braces `{}` is a placeholder
<ide> * for <span ng-non-bindable>{{numberExpression}}</span>.
<ide> *
<add> * If no rule is defined for a category, then an empty string is displayed and a warning is generated.... | 2 |
Text | Text | add backticks [ci skip] | 72e1c4229ab0af6a76c1635adff76fc02fa7fe71 | <ide><path>activerecord/CHANGELOG.md
<ide>
<ide> *Eugene Kenny*
<ide>
<del>* Prevent errors raised by sql.active_record notification subscribers from being converted into
<del> ActiveRecord::StatementInvalid exceptions.
<add>* Prevent errors raised by `sql.active_record` notification subscribers from being... | 1 |
Javascript | Javascript | improve raf logic | 708764f47b0c8de152bbb444d0f608db558b76ed | <ide><path>src/effects.js
<ide> function raf() {
<ide> }
<ide> }
<ide>
<del>// Will get false negative for old browsers which is okay
<del>function isDocumentHidden() {
<del> return "hidden" in document && document.hidden;
<del>}
<del>
<ide> // Animations created synchronously will run synchronously
<ide> function cr... | 2 |
Go | Go | add more women | 7808886744595af509b7b144890900674ea5ccfd | <ide><path>pkg/namesgenerator/names-generator.go
<ide> var (
<ide> // Docker 0.7.x generates names from notable scientists and hackers.
<ide> //
<ide> // Ada Lovelace invented the first algorithm. http://en.wikipedia.org/wiki/Ada_Lovelace (thanks James Turnbull)
<add> // Ada Yonath - an Israeli crystallographer, the... | 1 |
Go | Go | prevent flag grouping with -- | cb3d27d01bbf696929b4d77d10e47eca2693e3fa | <ide><path>pkg/mflag/flag.go
<ide> func (f *FlagSet) parseOne() (bool, string, error) {
<ide> f.usage()
<ide> return false, "", ErrHelp
<ide> }
<add> if len(name) > 0 && name[0] == '-' {
<add> return false, "", f.failf("flag provided but not defined: -%s", name)
<add> }
<ide> return false, name, ErrRetry
... | 1 |
Go | Go | increase timeout for local store client | 1685e48b035b47c16fe42908fead96a5173752bd | <ide><path>libnetwork/datastore/datastore.go
<ide> import (
<ide> "reflect"
<ide> "strings"
<ide> "sync"
<add> "time"
<ide>
<ide> "github.com/docker/libkv"
<ide> "github.com/docker/libkv/store"
<ide> func makeDefaultScopes() map[string]*ScopeCfg {
<ide> Provider: string(store.BOLTDB),
<ide> Address: defaul... | 1 |
PHP | PHP | change method order | ab0801cf08df7d448b1047892eabec07407739f6 | <ide><path>src/Illuminate/Contracts/Translation/Translator.php
<ide> public function trans($key, array $replace = [], $locale = null);
<ide> public function transChoice($key, $number, array $replace = [], $locale = null);
<ide>
<ide> /**
<del> * Set the default locale.
<add> * Get the default locale be... | 1 |
Javascript | Javascript | simplify morph target parsing | ac1c328b8769f7dcf462219b9f1ed0147081b70f | <ide><path>examples/js/loaders/FBXLoader.js
<ide>
<ide> targetRelationships.children.forEach( function ( child ) {
<ide>
<del>
<del> if ( child.relationship === 'DeformPercent' ) { // animation info for morph target
<del>
<del> var animConnections = connections.get( child.ID );
<del> // parent relations... | 1 |
Javascript | Javascript | fix typo on messages | 5765061652eee9726c4e44d783b13af96b3880b4 | <ide><path>src/ngMessages/messages.js
<ide> *
<ide> * Whenever the `ngMessages` directive contains one or more visible messages then the `.ng-active` CSS
<ide> * class will be added to the element. The `.ng-inactive` CSS class will be applied when there are no
<del> * animations present. Therefore, CSS transitions a... | 1 |
Ruby | Ruby | use instanceof? in eql? | 439a2f4fae2e5ddae40a808246f28b5b4e7961f6 | <ide><path>Library/Homebrew/dependency.rb
<ide> def ==(other)
<ide> end
<ide>
<ide> def eql?(other)
<del> other.is_a?(self.class) && hash == other.hash
<add> instance_of?(other.class) && hash == other.hash
<ide> end
<ide>
<ide> def hash | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.