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 | remove unused function params | 587823af2723801ffdb6841b6e2c3d7d73ff10db | <ide><path>daemon/container_unix.go
<ide> func (container *Container) buildSandboxOptions() ([]libnetwork.SandboxOption, e
<ide> return sboxOptions, nil
<ide> }
<ide>
<del>func (container *Container) buildPortMapInfo(n libnetwork.Network, ep libnetwork.Endpoint, networkSettings *network.Settings) (*network.Settings, ... | 4 |
Ruby | Ruby | use new tapioca command | d00b387bc244bfaff854f7c728463f6114bbdf14 | <ide><path>Library/Homebrew/dev-cmd/typecheck.rb
<ide> def typecheck
<ide> ]
<ide>
<ide> ohai "Updating Tapioca RBI files..."
<del> system "bundle", "exec", "tapioca", "sync", "--exclude", *excluded_gems
<add> system "bundle", "exec", "tapioca", "gem", "--exclude", *excluded_gems
<ide> ... | 1 |
Text | Text | fix minor mistake | c96e6f54b54594718635bb6d0fc46aa6905394dd | <ide><path>README.md
<ide> When data is passed from above rather than being subscribed to, and you're only
<ide> interested in doing work when something has changed, you can use equality.
<ide>
<ide> Immutable collections should be treated as *values* rather than *objects*. While
<del>objects represents some thing whi... | 1 |
Text | Text | fix links and ids for tips in docs | 2ec2d8f7f75f0441c51e0fea743be82a3d1dde4f | <ide><path>docs/tips/02-inline-styles.ru-RU.md
<ide> ---
<del>id: inline-styles
<add>id: inline-styles-ru-RU
<ide> title: Встроенные стили
<ide> layout: tips
<ide> permalink: tips/inline-styles-ru-RU.html
<ide><path>docs/tips/03-if-else-in-JSX.ru-RU.md
<ide> ---
<del>id: if-else-in-JSX
<add>id: if-else-in-JSX-ru-RU
<id... | 5 |
Python | Python | rearrange multi-task learning | e6cc927ab17e052f09f62c7c57b10e9d0abdb41c | <ide><path>spacy/language.py
<ide> import numpy
<ide> from thinc.neural import Model
<ide> from thinc.neural.ops import NumpyOps, CupyOps
<del>from thinc.neural.optimizers import Adam
<add>from thinc.neural.optimizers import Adam, SGD
<add>import random
<ide>
<ide> from .tokenizer import Tokenizer
<ide> from .vocab im... | 1 |
Javascript | Javascript | handle dataset type per chart | f3457c99417e3e87f67b8b673c6d9ca046b3bc46 | <ide><path>src/controllers/controller.bar.js
<ide> module.exports = function(Chart) {
<ide> Chart.DatasetController.prototype.initialize.call(this, chart, datasetIndex);
<ide>
<ide> // Use this to indicate that this is a bar dataset.
<del> this.getDataset().bar = true;
<add> this.getMeta().bar = true;
<ide> ... | 5 |
Python | Python | fix unicode default input on py3 | 1ea96acaf56acee692fe6f5668644962231be5e1 | <ide><path>django/db/migrations/questioner.py
<ide> import sys
<ide>
<ide> from django.apps import apps
<del>from django.utils import datetime_safe
<add>from django.utils import datetime_safe, six
<ide> from django.utils.six.moves import input
<ide>
<ide> from .loader import MIGRATIONS_MODULE_NAME
<ide> def ask_not_n... | 1 |
Java | Java | expose getters for the configured handlermapping's | 819ca0dbd40cccd4eae0353ff0b9aeaf248d3ab6 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/DispatcherHandler.java
<ide> public DispatcherHandler(ApplicationContext applicationContext) {
<ide> }
<ide>
<ide>
<add> /**
<add> * Return all {@link HandlerMapping} beans detected by type in the
<add> * {@link #setApplicationContext injecte... | 2 |
PHP | PHP | display no failed jobs | 7dfc1025ccf79046eaeb611f50d200edfae33b49 | <ide><path>src/Illuminate/Queue/Console/ListFailedCommand.php
<ide> public function fire()
<ide> $rows[] = array_values(array_except((array) $failed, array('payload')));
<ide> }
<ide>
<add> if (count($rows) == 0)
<add> {
<add> return $this->info('Awesome! No failed jobs!');
<add> }
<add>
<ide> $table = $th... | 1 |
Python | Python | fix pickle during train | e920885676c6e7019fdd2891b2173aa630d54c6b | <ide><path>spacy/cli/train.py
<ide> def train(cmd, lang, output_dir, train_data, dev_data, n_iter=20, n_sents=0,
<ide> n_train_words = corpus.count_train()
<ide>
<ide> optimizer = nlp.begin_training(lambda: corpus.train_tuples, device=use_gpu)
<add> nlp._optimizer = None
<ide>
<ide> print("Itn.\tLoss\t... | 1 |
Javascript | Javascript | register touches properly when jquery is used | 06a9f0a95f0e72fa2e9879fe8a49e9bf69986a5f | <ide><path>src/ngScenario/browserTrigger.js
<ide> evnt.initAnimationEvent(eventType, null, null, null, eventData.elapsedTime || 0);
<ide> }
<ide> }
<add> } else if (/touch/.test(eventType) && supportsTouchEvents()) {
<add> evnt = createTouchEvent(element, eventType, x, y);
<ide> } el... | 5 |
Go | Go | add "iswindows" const | 05469b5fa2b48cf20cd0137ca8c45645b63049ff | <ide><path>daemon/changes.go
<ide> package daemon // import "github.com/docker/docker/daemon"
<ide>
<ide> import (
<ide> "errors"
<del> "runtime"
<ide> "time"
<ide>
<ide> "github.com/docker/docker/pkg/archive"
<ide> func (daemon *Daemon) ContainerChanges(name string) ([]archive.Change, error) {
<ide> return nil,... | 11 |
Go | Go | fix remaining issues with checker.not | 40f1950e8ea84a8518c7378d0e8cbe9142e3b0cf | <ide><path>integration-cli/docker_cli_prune_unix_test.go
<ide> func pruneNetworkAndVerify(c *testing.T, d *daemon.Daemon, kept, pruned []string
<ide> out, err := d.Cmd("network", "ls", "--format", "{{.Name}}")
<ide> assert.NilError(c, err)
<ide> return out, ""
<del> }, checker.Not(checker.Contains(s))()), pol... | 3 |
Ruby | Ruby | remove extra white spaces on activemodel docs | 2a4b780ab1b97b939524f3240b6886c2b77979d2 | <ide><path>activemodel/lib/active_model/callbacks.rb
<ide> def self.extended(base)
<ide> # define_model_callbacks :initializer, :only => :after
<ide> #
<ide> # Note, the <tt>:only => <type></tt> hash will apply to all callbacks defined on
<del> # that method call. To get around this you can call the d... | 13 |
Javascript | Javascript | use util.inspect() to create error messages | 40e29dcbbf33d919f5cc0cbab5fa65a282adb04b | <ide><path>lib/assert.js
<ide> assert.AssertionError = function AssertionError(options) {
<ide> // assert.AssertionError instanceof Error
<ide> util.inherits(assert.AssertionError, Error);
<ide>
<del>function replacer(key, value) {
<del> if (util.isUndefined(value)) {
<del> return '' + value;
<del> }
<del> if (u... | 2 |
Ruby | Ruby | fix dangling klass reference | ffc45f3e7128f0ef1efca0f39d4717447c15f5b8 | <ide><path>railties/test/generators_test.rb
<ide> class NewGenerator < Rails::Generators::Base
<ide>
<ide> assert_equal false, NewGenerator.class_options[:generate].default
<ide> ensure
<del> Rails::Generators.subclasses.delete(klass)
<add> Rails::Generators.subclasses.delete(NewGenerator)
<ide> end
<ide... | 1 |
Text | Text | expand entries for isip(), isipv4(), and isipv6() | 97b8eb62fe7ad7722e7f27d658b3519c0e5f2110 | <ide><path>doc/api/net.md
<ide> added: v0.3.0
<ide> * `input` {string}
<ide> * Returns: {integer}
<ide>
<del>Tests if input is an IP address. Returns `0` for invalid strings,
<del>returns `4` for IP version 4 addresses, and returns `6` for IP version 6
<del>addresses.
<add>Returns `6` if `input` is an IPv6 address. Re... | 1 |
Go | Go | improve error message for enotdir errors | 83ae501f1d216600eebf182e7dc29e285c4b10bc | <ide><path>daemon/start.go
<ide> func (daemon *Daemon) containerStart(container *container.Container) (err error)
<ide> container.SetExitCode(126)
<ide> }
<ide>
<add> // attempted to mount a file onto a directory, or a directory onto a file, maybe from user specified bind mounts
<add> if strings.Contains(errDes... | 1 |
Text | Text | fix comment text in async_hooks example | 85f679fff101e86051dab5ab21359399b3dde9ae | <ide><path>doc/api/async_hooks.md
<ide> asyncHook.disable();
<ide> // The following are the callbacks that can be passed to createHook().
<ide> //
<ide>
<del>// init is called during object construction. The resource may not have
<del>// completed construction when this callback runs, therefore all fields of the
<add>... | 1 |
Python | Python | log traceback in trigger excs | 4ad21f5f7c2d416cf813a860564bc2bf3e161d46 | <ide><path>airflow/__init__.py
<ide> isort:skip_file
<ide> """
<ide>
<add>
<ide> # flake8: noqa: F401
<ide>
<ide> import sys
<ide><path>airflow/jobs/triggerer_job.py
<ide> def handle_failed_triggers(self):
<ide> """
<ide> while self.runner.failed_triggers:
<ide> # Tell the model to fail th... | 5 |
Text | Text | use a details tag for completed initiatves | 284dec77bdfbcae24022b4ed06d2115b81ebf8a4 | <ide><path>doc/guides/strategic-initiatives.md
<ide> are active and have the support needed.
<ide> | Startup performance | [Joyee Cheung][joyeecheung] | <https://github.com/nodejs/node/issues/17058> <https://github.com/nodejs/node/issues/21563> |
<ide> | V8 Currency | [Michaël Zasso][targos] | ... | 1 |
PHP | PHP | apply fixes from styleci | 81a0b9f667a288ce6bf2472c9783407367e15ca6 | <ide><path>src/Illuminate/View/Compilers/Concerns/CompilesConditionals.php
<ide> protected function compileEndAuth()
<ide> {
<ide> return '<?php endif; ?>';
<ide> }
<del>
<add>
<ide> /**
<ide> * Compile the if-guest statements into valid PHP.
<ide> * | 1 |
Text | Text | fix todostore syntax | aaeb107e008bb7b51c9746f78c95641c6725d3d2 | <ide><path>docs/docs/flux-todo-list.md
<ide> var TodoStore = merge(EventEmitter.prototype, {
<ide> */
<ide> removeChangeListener: function(callback) {
<ide> this.removeListener(CHANGE_EVENT, callback);
<del> }
<add> },
<ide>
<ide> dispatcherIndex: AppDispatcher.register(function(payload) {
<ide> var a... | 1 |
Ruby | Ruby | add support for custom csrf strategies | f40405c138af28ef6f571d77312373382e0dc744 | <ide><path>actionpack/lib/action_controller/metal/request_forgery_protection.rb
<ide> module ClassMethods
<ide> # If you need to add verification to the beginning of the callback chain, use <tt>prepend: true</tt>.
<ide> # * <tt>:with</tt> - Set the method to handle unverified request.
<ide> #
<del> ... | 2 |
Javascript | Javascript | add optional allornothing param | c2362e3f45e732a9defdb0ea59ce4ec5236fcd3a | <ide><path>src/ng/interpolate.js
<ide> function $InterpolateProvider() {
<ide> * expect(exp({name:'Angular'}).toEqual('Hello ANGULAR!');
<ide> * ```
<ide> *
<add> * `$interpolate` takes an optional fourth argument, `allOrNothing`. If `allOrNothing` is
<add> * `true`, the interpolation function ... | 2 |
Javascript | Javascript | replace fixturesdir with common.fixtures | 1d7fbabaefb08c108b42f5d4a9583a77865129a4 | <ide><path>test/parallel/test-tls-honorcipherorder.js
<ide> 'use strict';
<ide> const common = require('../common');
<add>const fixtures = require('../common/fixtures');
<ide> if (!common.hasCrypto)
<ide> common.skip('missing crypto');
<ide>
<ide> const assert = require('assert');
<ide> const tls = require('tls');
<... | 1 |
PHP | PHP | update doc block | 2f51de56f1a4d207c3bd82984a96882f9da606fe | <ide><path>src/Illuminate/Database/Connection.php
<ide> public function selectOne($query, $bindings = [], $useReadPdo = true)
<ide> * @param bool $useReadPdo
<ide> * @return mixed
<ide> *
<del> * @throws MultipleColumnsSelectedException
<add> * @throws \Illuminate\Database\MultipleColumnsSelect... | 1 |
PHP | PHP | add index => viewany to resourceabilitymap | c9f957a8b07011b2a9d88cee24f5b0e4ed905e15 | <ide><path>src/Illuminate/Foundation/Auth/Access/AuthorizesRequests.php
<ide> public function authorizeResource($model, $parameter = null, array $options = []
<ide> protected function resourceAbilityMap()
<ide> {
<ide> return [
<add> 'index' => 'viewAny',
<ide> 'show' => 'view',
<... | 1 |
Python | Python | fix usage of asciiart | 0b78001f8419a2197fcf0cf8293d5b419e6e701e | <ide><path>airflow/jobs.py
<ide> from airflow.utils.db import provide_session, pessimistic_connection_handling
<ide> from airflow.utils.email import send_email
<ide> from airflow.utils.logging import LoggingMixin
<del>
<add>from airflow.utils import asciiart
<ide>
<ide> Base = models.Base
<ide> ID_LEN = models.ID_LEN
... | 1 |
Text | Text | fix broken link | f7f1d71e0ed5f3d9ae89b6533d50d853de2e65f3 | <ide><path>docs/NativeModulesIOS.md
<ide> title: Native Modules (iOS)
<ide> layout: docs
<ide> category: Guides
<ide> permalink: docs/nativemodulesios.html
<del>next: libraries
<add>next: linking-libraries
<ide> ---
<ide>
<ide> Sometimes an app needs access to platform API, and React Native doesn't have a correspondin... | 1 |
Python | Python | replace validation_fn and fn_alt with allow_zero | d8c81998185b67e409fd0d31a07bbe9d1d61122f | <ide><path>keras/layers/convolutional.py
<ide> def __init__(self,
<ide> self.kernel_size = conv_utils.normalize_tuple(
<ide> kernel_size, rank, 'kernel_size')
<ide> self.strides = conv_utils.normalize_tuple(
<del> strides, rank, 'strides', lambda x: x >= 0, '>=0')
<add> strides, rank, 'str... | 6 |
Text | Text | replace dead link in v8 module | 7bc666be1752fbb18fdfb67c46dc4995f6eb5f0a | <ide><path>doc/api/v8.md
<ide> A subclass of [`Deserializer`][] corresponding to the format written by
<ide> [V8]: https://developers.google.com/v8/
<ide> [`vm.Script`]: vm.html#vm_new_vm_script_code_options
<ide> [here]: https://github.com/thlorenz/v8-flags/blob/master/flags-0.11.md
<del>[`GetHeapSpaceStatistics`]: ht... | 1 |
Text | Text | fix performanceentry.flags style format | bcb196456079326e073567d0b00bb6998b9334b0 | <ide><path>doc/api/perf_hooks.md
<ide> The type of the performance entry. It may be one of:
<ide> * `'http2'` (Node.js only)
<ide> * `'http'` (Node.js only)
<ide>
<del>### performanceEntry.flags
<add>### `performanceEntry.flags`
<ide> <!-- YAML
<ide> added:
<ide> - v13.9.0 | 1 |
Javascript | Javascript | remove unused parameters | e62d5964def23a619048237490f27ac781fb09ab | <ide><path>lib/buffer.js
<ide> Buffer.prototype.readUInt16BE = function(offset, noAssert) {
<ide> };
<ide>
<ide>
<del>function readUInt32(buffer, offset, isBigEndian, noAssert) {
<add>function readUInt32(buffer, offset, isBigEndian) {
<ide> var val = 0;
<ide> if (isBigEndian) {
<ide> val = buffer[offset + 1] ... | 1 |
Text | Text | add richard lau to tsc list in readme.md | d274347e380e525988764722e7eff27ab0457aa5 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Mary Marchini** \<oss@mmarchini.me> (she/her)
<ide> * [MylesBorins](https://github.com/MylesBorins) -
<ide> **Myles Borins** \<myles.borins@gmail.com> (he/him)
<add>* [richardlau](https://github.com/richardlau) -
<ad... | 1 |
Python | Python | add support for request.auth | b7062c5b01fbcd1fecb9ad2cd9a73eba77bd7632 | <ide><path>djangorestframework/authentication.py
<ide> def authenticate(self, request):
<ide> return None
<ide>
<ide> return self.authenticate_credentials(userid, password)
<del> return None
<ide>
<ide> def authenticate_credentials(self, userid, password):
<ide> ... | 2 |
Python | Python | move import at the top of the file | 3a3b5e09f0a1bf311d9e3ca18cca411694debc27 | <ide><path>numpy/distutils/command/scons.py
<ide> from distutils.errors import DistutilsExecError, DistutilsSetupError
<ide>
<ide> from numpy.distutils.command.build_ext import build_ext as old_build_ext
<del>from numpy.distutils.ccompiler import CCompiler
<del>from numpy.distutils.fcompiler import FCompiler
<add>from... | 1 |
Java | Java | add marble diagram for single.hide operator | d4c1da01b157262b326b21cd97a844fcdedc7c6e | <ide><path>src/main/java/io/reactivex/Single.java
<ide> public final <R> R as(@NonNull SingleConverter<T, ? extends R> converter) {
<ide> /**
<ide> * Hides the identity of the current Single, including the Disposable that is sent
<ide> * to the downstream via {@code onSubscribe()}.
<add> * <p>
<add> ... | 1 |
PHP | PHP | fix columns parameter on paginate method | 94403f69515978bdf68a1280f706ee30c473d28b | <ide><path>src/Illuminate/Database/Query/Builder.php
<ide> public function paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $p
<ide> {
<ide> $page = $page ?: Paginator::resolveCurrentPage($pageName);
<ide>
<del> $total = $this->getCountForPagination($columns);
<add> $total = $thi... | 3 |
Python | Python | add unit tests for special values for csqrt | 897175751927b3c69e0fe7faf247e0eb5fad20d0 | <ide><path>numpy/core/tests/test_umath_complex.py
<ide> def test_special_values(self):
<ide> for i in range(len(xa)):
<ide> assert_almost_equal_spec(np.log(np.conj(xa[i])), np.conj(np.log(xa[i])))
<ide>
<add>class TestCsqrt(object):
<add> def test_simple(self):
<add> # sqrt(1)
<add> ... | 1 |
Javascript | Javascript | update function keywords to fat arrows | 98f170fb8665aa9a94c47cabb4a7107440f4dbfe | <ide><path>test/parallel/test-event-emitter-no-error-provided-to-error-event.js
<ide> const domain = require('domain');
<ide> const e = new events.EventEmitter();
<ide> const d = domain.create();
<ide> d.add(e);
<del> d.on('error', common.mustCall(function(er) {
<add> d.on('error', common.mustCall((er) => {
<id... | 1 |
Text | Text | add docs page for accessibility support | 5921f5f702bc05cfe568fa8495f06af97c689635 | <ide><path>docs/Accessibility.md
<add>---
<add>id: accesibility
<add>title: Accessibility
<add>layout: docs
<add>category: Guides
<add>permalink: docs/accessibility.html
<add>next: nativemodulesios
<add>---
<add>
<add># Accessibility
<add>
<add>Accessibility on iOS encompasses many topics, but for many, accessibility i... | 2 |
Javascript | Javascript | remove confusing references to player in a tech | d69551ac8032bae333a2df07e65ebd0531e75a76 | <ide><path>src/js/tech/html5.js
<ide> class Html5 extends Tech {
<ide> if (this.el_.duration === Infinity) {
<ide> this.trigger('durationchange');
<ide> }
<del> this.off(this.player_, 'timeupdate', checkProgress);
<add> this.off('timeupdate', checkProgress);
<... | 1 |
Text | Text | add pandas installation method | b1859e62d82689b5fc211c36ffa1e9c96c1ee206 | <ide><path>guide/english/data-science-tools/pandas/index.md
<ide> title: pandas
<ide> ## pandas
<ide> [pandas](http://pandas.pydata.org/) is a Python library for data analysis using data frames. The name `pandas` comes from *panel data*, i.e. a multi-dimensional data measured over time. Data frames are tables of data, ... | 1 |
PHP | PHP | apply fixes from styleci | b787ac38e70b33e567bd82dd8c086f203141f89d | <ide><path>src/Illuminate/Routing/Controller.php
<ide> namespace Illuminate\Routing;
<ide>
<ide> use BadMethodCallException;
<del>use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
<ide>
<ide> abstract class Controller
<ide> { | 1 |
Javascript | Javascript | remove un-needed context preservation | 0b966fd1628f107f24cf7b545568e309c0caf346 | <ide><path>packages/ember-routing/lib/system/router.js
<ide> Ember.Router = Ember.Object.extend({
<ide> handleURL: function(url) {
<ide> scheduleLoadingStateEntry(this);
<ide>
<del> var self = this;
<del>
<del> return this.router.handleURL(url).then(function() {
<del> transitionCompleted(self);
<del> ... | 1 |
Text | Text | clarify tutorial instructions | c157ce359970b51e9fb49dc00ff1f52cd32d8559 | <ide><path>docs/docs/tutorial.md
<ide> You do not have to return basic HTML. You can return a tree of components that y
<ide>
<ide> ## Composing components
<ide>
<del>Let's build skeletons for `CommentList` and `CommentForm` which will, again, be simple `<div>`s:
<add>Let's build skeletons for `CommentList` and `Comm... | 1 |
Javascript | Javascript | set contenthashtype to javascript | 8b9fea37909504426513f6679ed1fae3a75abcd3 | <ide><path>lib/node/RequireChunkLoadingRuntimeModule.js
<ide> class RequireChunkLoadingRuntimeModule extends RuntimeModule {
<ide> this.compilation.outputOptions.filename + "",
<ide> {
<ide> chunk,
<del> contentHashType: Object.keys(chunk.contentHash)[0]
<add> contentHashType: "javascript"
<ide> ... | 1 |
Ruby | Ruby | add match 302 http code for log in redirect_to | 9b92b1fb6d60fe61595d2e9a0c92a9d8295a49d9 | <ide><path>actionpack/test/controller/log_subscriber_test.rb
<ide> def test_redirect_to
<ide>
<ide> assert_equal 3, logs.size
<ide> assert_equal "Redirected to http://foo.bar/", logs[1]
<add> assert_match(/Completed 302/, logs.last)
<ide> end
<ide>
<ide> def test_filter_redirect_url_by_string | 1 |
Javascript | Javascript | add data-grammar to editor element | 2a1ba7f05b33eb499f5fe7f0f3f9673e07a90f1c | <ide><path>spec/text-editor-component-spec.js
<ide> describe('TextEditorComponent', () => {
<ide> const {element} = buildComponent({placeholderText, text: ''})
<ide> expect(element.textContent).toContain(placeholderText)
<ide> })
<add>
<add> it('adds the data-grammar attribute and updates it when the... | 2 |
Text | Text | update chinese translation of basic javascript | 39df9d94c912b7b4ea424ff9cc6e55ea3f576f44 | <ide><path>curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/basic-javascript/access-array-data-with-indexes.chinese.md
<ide> id: 56bbb991ad1ed5201cd392ca
<ide> title: Access Array Data with Indexes
<ide> challengeType: 1
<del>videoUrl: ''
<del>localeTitle: 使用索引访问数组数据
<add>videoUrl: 'https://sc... | 110 |
PHP | PHP | change config param get method | 0073655789b4297ed3667897ccf705c83f210462 | <ide><path>src/Illuminate/Database/Connectors/SqlServerConnector.php
<ide> protected function getDsn(array $config)
<ide> if (in_array('dblib', $this->getAvailableDrivers())) {
<ide> return $this->getDblibDsn($config);
<ide> } elseif (in_array('odbc', $this->getAvailableDrivers())) {
<del> ... | 1 |
Text | Text | add badges for airflow docker | 42543c58dcaf488fc233969cb7cad5f49a9fec9f | <ide><path>README.md
<ide> [](https://airflow.readthedocs.io/en/latest/?badge=latest)
<ide> [](http://www.apache.org/licenses/LICENSE-2.0.txt)
<ide> [![PyPI - Python Versi... | 1 |
Text | Text | fix actionview changelog documentation [ci skip] | fc0bbe110eb7c5bbcc4dfcd782348182d89ad692 | <ide><path>actionview/CHANGELOG.md
<ide>
<ide> *Nikolay Shebanov*
<ide>
<del>* Add a `hidden_field` on the `file_field` to avoid raise a error when the only
<add>* Add a `hidden_field` on the `file_field` to avoid raising an error when the only
<ide> input on the form is the `file_field`.
<ide>
<ide> ... | 1 |
PHP | PHP | improve some comments | 5cfe7313ccb65485dc5cf2eb6f3bf0512aebf5e1 | <ide><path>src/Illuminate/Queue/Worker.php
<ide> public function runNextJob($connectionName, $queue = null, $delay = 0, $sleep =
<ide>
<ide> $job = $this->getNextJob($connection, $queue);
<ide>
<del> // If we're able to pull a job off of the stack, we will process it and
<del> // the... | 1 |
Python | Python | compute seq_len from inputs_embeds | 14e9d2954c3a7256a49a3e581ae25364c76f521e | <ide><path>src/transformers/models/electra/modeling_electra.py
<ide> def forward(
<ide> raise ValueError("You cannot specify both input_ids and inputs_embeds at the same time")
<ide> elif input_ids is not None:
<ide> input_shape = input_ids.size()
<del> batch_size, seq_length ... | 1 |
Text | Text | add version metadata for packages features | 332521e3109451de3de6b208002806e0aef2741b | <ide><path>doc/api/packages.md
<ide> changes:
<ide> - v12.20.0
<ide> pr-url: https://github.com/nodejs/node/pull/34718
<ide> description: Add support for `"exports"` patterns.
<del> - version: v14.6.0
<add> - version:
<add> - v14.6.0
<add> - v12.19.0
<ide> pr-url: https://github.com/nodejs/node/... | 1 |
Text | Text | correct broken links in docs | 14eebab94ad64860d2f1b4ff53f0f5d796ac4ad3 | <ide><path>laravel/documentation/contrib/github.md
<ide> In order to keep the codebase clean, stable and at high quality, even with so ma
<ide>
<ide> *Further Reading*
<ide>
<del> - [Contributing to Laravel via Command-Line](docs/contrib/command-line)
<del> - [Contributing to Laravel using TortoiseGit](docs/contrib/t... | 1 |
Python | Python | set version to v3.0.0a32 | 70b9de8e589776ba90c000addfa24dffe5915b33 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide> __title__ = "spacy-nightly"
<del>__version__ = "3.0.0a31"
<add>__version__ = "3.0.0a32"
<ide> __release__ = True
<ide> __download_url__ = "https://github.com/explosion/spacy-models/releases/download"
<ide> __compatibility__ = "https://raw.githubusercontent.com/explosion/... | 1 |
Go | Go | fix racy events test | 202709d178a24bcbfac223f0bcd9c4eda669e928 | <ide><path>integration-cli/docker_cli_events_test.go
<ide> func TestEventsFilters(t *testing.T) {
<ide>
<ide> // make sure we at least got 2 start events
<ide> count := strings.Count(out, "start")
<del> if count != 2 {
<add> if count < 2 {
<ide> t.Fatalf("should have had 2 start events but had %d, out: %s", count,... | 1 |
Text | Text | add fezto as a premium sponsor | e5fb9af0eaffde683fa0af3987085f86cf0d2640 | <ide><path>docs/index.md
<ide> continued development by **[signing up for a paid plan][funding]**.
<ide> <ul class="premium-promo promo">
<ide> <li><a href="https://getsentry.com/welcome/" style="background-image: url(https://fund-rest-framework.s3.amazonaws.com/sentry130.png)">Sentry</a></li>
<ide> <li><a href... | 1 |
Javascript | Javascript | fix typo in enumerable docs | b03a2da383f375ee6766df46900dd440a83165ce | <ide><path>packages/sproutcore-runtime/lib/mixins/enumerable.js
<ide> SC.Enumerable = SC.Mixin.create( /** @lends SC.Enumerable */ {
<ide> to nextObject for the current iteration. This is a useful way to
<ide> manage iteration if you are tracing a linked list, for example.
<ide>
<del> Finally the context p... | 1 |
PHP | PHP | handle ajax requests in requirepassword middleware | 93eb836c4d0b5d03cc789de98acc6e03aa4aca25 | <ide><path>src/Illuminate/Auth/Middleware/RequirePassword.php
<ide> public function __construct(ResponseFactory $responseFactory, UrlGenerator $urlG
<ide> public function handle($request, Closure $next, $redirectToRoute = null)
<ide> {
<ide> if ($this->shouldConfirmPassword($request)) {
<add> ... | 1 |
PHP | PHP | fix failing tests for utility classes in windows | 33a8bac40bf991e03b14c3a2ac26570897580c3f | <ide><path>tests/TestCase/Utility/DebuggerTest.php
<ide> public function testDebugInfo() {
<ide> 'inner' => object(Cake\Test\TestCase\Utility\DebuggableThing) {
<ide>
<ide> [maximum depth reached]
<del>
<add>
<ide> }
<ide>
<ide> }
<ide><path>tests/TestCase/Utility/FolderTest.php
<ide> public function testFolderT... | 2 |
Python | Python | simplify logic from | e8591afa2aa4cf16c40989ffad757b6afcdefb36 | <ide><path>numpy/distutils/fcompiler/gnu.py
<ide> def get_library_dirs(self):
<ide> opt.append(d2)
<ide> opt.append(d)
<ide> # For Macports / Linux, libgfortran and libgcc are not co-located
<del> if sys.platform[:5] == 'linux' or sys.platform == 'darwin':
<del... | 1 |
Javascript | Javascript | add reactube to showcase | 8ca3a0c91c7ad6e0d0dd87c83c0550fe60e8d337 | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://itunes.apple.com/us/app/reactto36/id989009293?mt=8',
<ide> author: 'Jonathan Solichin',
<ide> },
<add> {
<add> name: 'ReacTube',
<add> icon: 'https://raw.githubusercontent.com/alexkendall/ReacTube/master/images/RTIc... | 1 |
Go | Go | clarify a message | aab2450e25b397d38cdcb5e173ef1121283196c2 | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) closeTransaction() error {
<ide> }
<ide>
<ide> func determineDriverCapabilities(version string) error {
<del> /*
<del> * Driver version 4.27.0 and greater support deferred activation
<del> * feature.
<del> */
<add> // Kernel driver... | 1 |
Ruby | Ruby | remove stray quotation mark | 16b69317fe926acaa742f520b13340fb4f117e7d | <ide><path>Library/Homebrew/formula_cellar_checks.rb
<ide> def check_non_executables bin
<ide> ["Non-executables were installed to \"#{bin}\".",
<ide> <<-EOS.undent
<ide> The offending files are:
<del> #{non_exes}"
<add> #{non_exes}
<ide> EOS
<ide> ]
<ide> end | 1 |
PHP | PHP | fix seejsonstructure for empty response | 6ea6e22e77bb66446de18b0ed5b22141a75ba204 | <ide><path>src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php
<ide> public function seeJsonStructure(array $structure = null, $responseData = null)
<ide> return $this->seeJson();
<ide> }
<ide>
<del> if (! $responseData) {
<add> if (is_null($responseData)) {
<ide> ... | 1 |
PHP | PHP | apply suggestions from code review | b1bcaca8cd827279d7964d57accd6f4972f5923a | <ide><path>src/Error/Middleware/ErrorHandlerMiddleware.php
<ide> protected function getErrorHandler(): ErrorHandler
<ide> {
<ide> if ($this->errorHandler === null) {
<ide> deprecationWarning(
<del> 'Using an `errorHandler` is deprecated. You should migate to the `ExceptionTrap` su... | 1 |
Text | Text | add contributor agreement for @ursachec | cdd4b3d05c511372d888b04c70d0a985bb307b17 | <ide><path>.github/contributors/ursachec.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 |
Go | Go | fix flaky testsaveloadparents | 0c0198a5e671928b67db6a3be35f1a419f633af4 | <ide><path>integration-cli/docker_cli_save_load_test.go
<ide> func (s *DockerSuite) TestSaveLoadParents(c *check.C) {
<ide> out, _ = dockerCmd(c, "commit", cleanedContainerID)
<ide> imageID := strings.TrimSpace(out)
<ide>
<del> dockerCmd(c, "rm", cleanedContainerID)
<add> dockerCmd(c, "rm", "-f", cleanedContaine... | 1 |
Ruby | Ruby | add tests for `caskunreadableerror | 785ec4ef57677f1b2cf6dc171a5b524faaaaafb4 | <ide><path>Library/Homebrew/test/cask/cask_loader/from__path_loader_spec.rb
<add>describe Hbc::CaskLoader::FromPathLoader do
<add> describe "#load" do
<add> context "when the file does not contain a cask" do
<add> let(:path) {
<add> (mktmpdir/"cask.rb").tap do |path|
<add> path.write <<~RUBY
<a... | 2 |
Javascript | Javascript | add some decent (non-trivial) hull tests | 317740be1b9170b6cd2bed970e6f37753bca81ff | <ide><path>test/geom/hull-test.js
<ide> suite.addBatch({
<ide> },
<ide> "handles overlapping upper and lower hulls": function(h) {
<ide> assert.deepEqual(h([[0, -10], [0, 10], [0, 0], [10, 0], [-10, 0]]), [[10, 0], [0, -10], [-10, 0], [0, 10]]);
<add> },
<add>
<add> // Cases below taken fr... | 1 |
Javascript | Javascript | fix buggy test around dst | 3891698e424f38f2bd82b56ac9f479f553f7250f | <ide><path>src/locale/bg-x.js
<add>import moment from '../moment';
<add>
<add>export default moment.defineLocale('bg-x', {
<add> parentLocale: 'bg'
<add>});
<ide><path>src/test/moment/zone_switching.js
<ide> test('utc to local, keepLocalTime = false', function (assert) {
<ide> });
<ide>
<ide> test('zone to local, k... | 2 |
Text | Text | add links for zlib convenience methods | 55c42bc6e5602e5a47fb774009cfe9289cb88e71 | <ide><path>doc/api/zlib.md
<ide> added: v0.6.0
<ide> added: v0.11.12
<ide> -->
<ide>
<del>Compress a Buffer or string with Deflate.
<add>Compress a [Buffer][] or string with [Deflate][].
<ide>
<ide> ### zlib.deflateRaw(buf[, options], callback)
<ide> <!-- YAML
<ide> added: v0.6.0
<ide> added: v0.11.12
<ide> -->
<ide>... | 1 |
Ruby | Ruby | remove redundant uniq | 78a18392e15c3de1c70b44e285d1742687624dd1 | <ide><path>activerecord/lib/active_record/association_preload.rb
<ide> def preload_belongs_to_association(records, reflection, preload_options={})
<ide> table_name = klass.quoted_table_name
<ide> primary_key = klass.primary_key
<ide> column_type = klass.columns.detect{|c| c.name == primary... | 1 |
PHP | PHP | move stub helper into a separate file | 589ff7b1c0be905ba02c77f47b263eaf7db732c5 | <ide><path>src/TestSuite/Stub/ConsoleOutput.php
<add><?php
<add>/**
<add> * CakePHP : Rapid Development Framework (http://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For full copyright and license information, plea... | 2 |
Text | Text | update changelog for v15.5.1-15.5.4 | 0549c4506f32d19a9ebd1d1d5db5aac83d3e5a29 | <ide><path>CHANGELOG.md
<del>## 15.5.0 (April 7, 2017)
<add>## 15.5.4 (April 11, 2017)
<add>
<add>### React Addons
<add>* **Critical Bugfix:** Update the version of `prop-types` to fix critical bug. ([@gaearon](https://github.com/gaearon) in [#545c87f](https://github.com/facebook/react/commit/545c87fdc348f82eb0c3830be... | 1 |
Javascript | Javascript | add a semi-colon at the end of the umd template | 3c4284f01176a3d8bb88c133fd9ef693c5117a7f | <ide><path>lib/UmdMainTemplatePlugin.js
<ide> UmdMainTemplatePlugin.prototype.apply = function(mainTemplate) {
<ide> " for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n" +
<ide> " }\n"
<ide> ) +
<del> "})(this, function(" + externalsArguments + ") {\nreturn ", "webpack/universalMod... | 1 |
PHP | PHP | raise an error for pages < 1. | 825b454b65b1277d9c05742bb3e2f4eb4a7da368 | <ide><path>src/Database/Query.php
<ide> public function orHaving($conditions, $types = [])
<ide> * @param int|null $limit The number of rows you want in the page. If null
<ide> * the current limit clause will be used.
<ide> * @return $this
<add> * @throws \InvalidArgumentException If page number < 1... | 3 |
Javascript | Javascript | add size prop | 63d15af18d1f09db16aa4dbd5ed949b4307f37dd | <ide><path>Examples/UIExplorer/js/ActivityIndicatorExample.js
<ide> exports.examples = [
<ide> return (
<ide> <ActivityIndicator
<ide> style={[styles.centering, styles.gray]}
<del> color="white"
<ide> size="large"
<add> color="white"
<ide> />
<ide> );
<i... | 2 |
Python | Python | remove useless pass | ad42d88fb2cda12a21c4fb6f002f425f233d1fe3 | <ide><path>flask/cli.py
<ide> def list_commands(self, ctx):
<ide> # However, we will not do so silently because that would confuse
<ide> # users.
<ide> traceback.print_exc()
<del> pass
<ide> return sorted(rv)
<ide>
<ide> def main(self, *args, **kwargs): | 1 |
Ruby | Ruby | expose role/shard on pool/connection | 061b527d79020fd8bc9cb163a88a88dbedfe3d4c | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb
<ide> def connection_pool_list(role = ActiveRecord::Base.current_role)
<ide> def establish_connection(config, owner_name: Base, role: ActiveRecord::Base.current_role, shard: Base.current_shard)
<ide> owner_name = ... | 7 |
Go | Go | remove the json alterations when decoding | dc2d930520cd528129330098e868c7fffe8349b9 | <ide><path>registry.go
<ide> func NewImgJson(src []byte) (*Image, error) {
<ide>
<ide> Debugf("Json string: {%s}\n", src)
<ide> // FIXME: Is there a cleaner way to "puryfy" the input json?
<del> src = []byte(strings.Replace(string(src), "null", "\"\"", -1))
<del>
<ide> if err := json.Unmarshal(src, ret); err != nil... | 1 |
Java | Java | improve javadoc of contentcachingrequestwrapper | f9167c3df59edbca2f8a99541750d87957d34a49 | <ide><path>spring-web/src/main/java/org/springframework/web/util/ContentCachingRequestWrapper.java
<ide> /*
<del> * Copyright 2002-2018 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * y... | 1 |
Text | Text | extend example code for autoloading serializers | 2d9a64ded514ccd9dff470b79726eac374e5ffe8 | <ide><path>guides/source/active_job_basics.md
<ide> by default has been mixed into Active Record classes.
<ide> You can extend the list of supported argument types. You just need to define your own serializer:
<ide>
<ide> ```ruby
<add># app/serializers/money_serializer.rb
<ide> class MoneySerializer < ActiveJob::Seria... | 1 |
Text | Text | fix minor typos | 294579cafdfe7445dd1035bbdd8840570b8873ad | <ide><path>official/nlp/bert/README.md
<ide> Install `tf-nightly` to get latest updates:
<ide> pip install tf-nightly-gpu
<ide> ```
<ide>
<del>With TPU, GPU support is not necessary. First, you need to create a `tf-nigthly`
<del>TPU with [cptu tool](https://github.com/tensorflow/tpu/tree/master/tools/ctpu):
<add>With ... | 1 |
Python | Python | fix polynomial division | 5c9620bdebb6eb98e3d58b9756419b68461f8b04 | <ide><path>scipy/base/polynomial.py
<ide> def polyadd(a1, a2):
<ide> """Adds two polynomials represented as sequences
<ide> """
<ide> truepoly = (isinstance(a1, poly1d) or isinstance(a2, poly1d))
<del> a1, a2 = map(atleast_1d, (a1, a2))
<add> a1 = atleast_1d(a1)
<add> a2 = atleast_1d(a2)
<ide> ... | 2 |
Javascript | Javascript | remove redundant scripts | aadee894dac5275de01d90387f0cc157bf620183 | <ide><path>scripts/validate-commit-msg.js
<del>#!/usr/bin/env node
<del>
<del>/**
<del> * Git COMMIT-MSG hook for validating commit message
<del> * See https://docs.google.com/document/d/1rk04jEuGfk9kYzfqCuOlPTSJw3hEDZJTBN5E5f1SALo/edit
<del> *
<del> * Installation:
<del> * >> cd <angular-repo>
<del> * >> ln -s ../../v... | 2 |
PHP | PHP | fix password column for future hashing | 531629e442b147fcbb172ebbf0d57deb4f5a60ee | <ide><path>database/migrations/2014_10_12_000000_create_users_table.php
<ide> public function up()
<ide> $table->increments('id');
<ide> $table->string('name');
<ide> $table->string('email')->unique();
<del> $table->string('password', 60);
<add> $table->string('... | 1 |
Javascript | Javascript | remove obsolete code from shortcut handler | 64a4a2745591cf21e8cd38e653334dfd05de83fd | <ide><path>web/viewer.js
<ide> window.addEventListener('keydown', function keydown(evt) {
<ide> return;
<ide> }
<ide> }
<del> var controlsElement = document.getElementById('toolbar');
<del> while (curElement) {
<del> if (curElement === controlsElement && !PresentationMode.active)
<del> return; // ... | 1 |
Text | Text | add backticks [ci-skip] | ff2ee259073d6963b1e13b901188dd0bad48c6e4 | <ide><path>guides/source/caching_with_rails.md
<ide> NOTE: Alternatively, you can call `ActionController::Base.cache_store` outside o
<ide>
<ide> You can access the cache by calling `Rails.cache`.
<ide>
<del>### ActiveSupport::Cache::Store
<add>### `ActiveSupport::Cache::Store`
<ide>
<ide> This class provides the fo... | 2 |
Javascript | Javascript | add some helpful comments to the rollup config | f7230ef9f9e54db8cb0fc91f6cfd429fbf1a5305 | <ide><path>rollup.config.js
<ide> import { terser } from 'rollup-plugin-terser'
<ide> import pkg from './package.json'
<ide>
<ide> export default [
<add> // CommonJS
<ide> {
<ide> input: 'src/index.js',
<ide> output: { file: 'lib/redux.js', format: 'cjs', indent: false },
<ide> external: [
<ide> .... | 1 |
Javascript | Javascript | add skipci flag to release script | f4488bee514aba9a17b2498aa8e3b300e5149954 | <ide><path>scripts/release/build-commands/check-circle-ci-status.js
<ide>
<ide> const chalk = require('chalk');
<ide> const http = require('request-promise-json');
<add>const logUpdate = require('log-update');
<add>const prompt = require('prompt-promise');
<ide> const {execRead, logPromise} = require('../utils');
<ide... | 3 |
Python | Python | add ma.median tests for valid axis | ad5b13a585cb2b43b7f6ef7a30124bec82dfa359 | <ide><path>numpy/ma/tests/test_extras.py
<ide> from __future__ import division, absolute_import, print_function
<ide>
<ide> import warnings
<add>import itertools
<ide>
<ide> import numpy as np
<ide> from numpy.testing import (
<ide> def test_docstring_examples(self):
<ide> assert_equal(ma_x.shape, (2,), "shap... | 1 |
Javascript | Javascript | convert objectproxy and arrayproxy | 72733afb5e9cb11308f8e21115ccc7d6d9335f6a | <ide><path>packages/ember-runtime/lib/mixins/array.js
<ide> const ArrayMixin = Mixin.create(Enumerable, {
<ide> @property {Number} length
<ide> @public
<ide> */
<del> length: null,
<ide>
<ide> /**
<ide> Returns the object at the given `index`. If the given `index` is negative
<ide> const ArrayMixin = ... | 3 |
PHP | PHP | change method order | bbc1ba6c6d1f5f9f925e67071427b2aae21731db | <ide><path>src/Illuminate/Database/Eloquent/SoftDeletingScope.php
<ide> class SoftDeletingScope implements Scope
<ide> *
<ide> * @var array
<ide> */
<del> protected $extensions = ['ForceDelete', 'Restore', 'WithTrashed', 'OnlyTrashed', 'WithoutTrashed'];
<add> protected $extensions = ['ForceDelete'... | 1 |
Ruby | Ruby | add test using identity map and select | 1c88d59891d11bd60a07f35a15c0043e0f8cf28a | <ide><path>activerecord/test/cases/identity_map_test.rb
<ide> def test_find_using_identity_map_respects_readonly
<ide> assert comment.save
<ide> end
<ide>
<add> def test_find_using_select_and_identity_map
<add> author_id, author = Author.select('id').first, Author.first
<add>
<add> assert_equal author_id,... | 1 |
Java | Java | add support for `double` type in reactpropgroup | c0c8e7cfdf83b3a215f15257892f892604eff431 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactPropGroup.java
<ide> * group of the property being updated. Last, third argument represent the value that should be set.
<ide> *
<ide> *
<del> * Currently only {@code int}, {@code float} and {@link String} value types are supported.
<add> * Curr... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.