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 |
|---|---|---|---|---|---|
Text | Text | add link to validators | a57ad0767421a86bd35bf5a72c337d6857ad5f42 | <ide><path>docs/api-guide/fields.md
<ide> Defaults to `False`
<ide>
<ide> If set, this gives the default value that will be used for the field if no input value is supplied. If not set the default behavior is to not populate the attribute at all.
<ide>
<del>May be set to a function or other callable, in which case t... | 1 |
Text | Text | move firedfox to collaborator emeriti list | 5dd611339f9f571d0faa83f57b85a20f074437d4 | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> **Evan Lucas** <evanlucas@me.com> (he/him)
<ide> * [fhinkel](https://github.com/fhinkel) -
<ide> **Franziska Hinkelmann** <franziska.hinkelmann@gmail.com> (she/her)
<del>* [firedfox](https://github.com/firedfox... | 1 |
PHP | PHP | highlight utf8 compatible, fixes | 3204ced2ed7812db291d3e7ed95f6c86c1d2f4ed | <ide><path>cake/libs/view/helpers/text.php
<ide> function highlight($text, $phrase, $highlighter = '<span class="highlight">\1</s
<ide> if ($considerHtml) {
<ide> $key = '(?![^<]+>)' . $key . '(?![^<]+>)';
<ide> }
<del> $replace[] = '|' . $key . '|i';
<... | 2 |
Javascript | Javascript | fix formatting and test for correct error | 9dd8ef4777957138ace4c9728d15283e2c2d85e8 | <ide><path>src/core/__tests__/ReactComponentLifeCycle-test.js
<ide> describe('ReactComponentLifeCycle', function() {
<ide> .toThrow();
<ide> });
<ide>
<del> it('should throw when calling setProps() on an unmounted component', function() {
<add> it('should throw when calling setProps() on an unmounted compone... | 1 |
PHP | PHP | update encrypter comment | b7c147c77a44133e36893fbe5c88051ba392b113 | <ide><path>app/config/app.php
<ide> |--------------------------------------------------------------------------
<ide> |
<ide> | This key is used by the Illuminate encrypter service and should be set
<del> | to a random, long string, otherwise these encrypted values will not
<del> | be safe. Make sure to change it be... | 1 |
Ruby | Ruby | log the remote ip addr of clients behind a proxy | 7e40e9585a5596558d71f76c61bb35316cb17a53 | <ide><path>railties/lib/rails/rack/logger.rb
<ide> def started_request_message(request) # :doc:
<ide> 'Started %s "%s" for %s at %s' % [
<ide> request.request_method,
<ide> request.filtered_path,
<del> request.ip,
<add> request.remote_ip,
<ide> Time.no... | 2 |
Python | Python | fix model templates | 36a19915ea4fc3dc337a310e4a1af43eb3c81c9a | <ide><path>src/transformers/commands/add_new_model.py
<ide> def run(self):
<ide> path_to_transformer_root = (
<ide> Path(__file__).parent.parent.parent.parent if self._path is None else Path(self._path).parent.parent
<ide> )
<del> path_to_cookiecutter = path_to_transformer_root / "tem... | 9 |
PHP | PHP | skip more tests when openssl is not enabled | 12e2e1363d529ac8e70caf4334ba2735091c8cfb | <ide><path>lib/Cake/Test/Case/Network/Http/HttpSocketTest.php
<ide> public function testConfigContext() {
<ide> * @return void
<ide> */
<ide> public function testVerifyPeer() {
<add> $this->skipIf(!extension_loaded('openssl'), 'OpenSSL is not enabled cannot test SSL.');
<ide> $socket = new HttpSocket();
<ide> t... | 1 |
Ruby | Ruby | give `e` helper in utiltests a better name | 5480a84114243fcd0aedda3a650b23b59ae91b2c | <ide><path>Library/Homebrew/test/utils_test.rb
<ide> def setup
<ide> @dir = Pathname.new(mktmpdir)
<ide> end
<ide>
<del> # Helper for matching escape sequences.
<del> def e(code)
<add> def esc(code)
<ide> /(\e\[\d+m)*\e\[#{code}m/
<ide> end
<ide>
<del> # Helper for matching that style is reset at the ... | 1 |
Mixed | Javascript | add console.count() and console.clear() | cc43c8fb54c872fbce2a795d089aa111eccdfb89 | <ide><path>doc/api/console.md
<ide> console.assert(false, 'this message will print, but no error thrown');
<ide> console.log('this will also print');
<ide> ```
<ide>
<add>### console.clear()
<add><!-- YAML
<add>added: REPLACEME
<add>-->
<add>
<add>When `stdout` is a TTY, calling `console.clear()` will attempt to clear... | 4 |
Javascript | Javascript | fix typo in script function name | a8845587a35c1a7fcadc94c1baa400962775185d | <ide><path>scripts/bench/stats.js
<ide> function addBenchmarkResults(table, localResults, remoteMasterResults) {
<ide> });
<ide> }
<ide>
<del>function addBundleSizeComparions(table, localResults, remoteMasterResults) {
<add>function addBundleSizeComparsions(table, localResults, remoteMasterResults) {
<ide> const b... | 1 |
Text | Text | add status badges | ac5e966877fc4b95140d4c20345b274c4f5c0d84 | <ide><path>docs/devops.md
<ide> Once one of the staff members approves a release, the pipeline will push the cha
<ide>
<ide> Here is the current test, build and deployment status of the codebase.
<ide>
<del>| Type | Branch ... | 1 |
Python | Python | allow pathlib.path in dagbag and various util fns | 6e99ae05642758691361dfe9d7b767cfc9a2b616 | <ide><path>airflow/models/dagbag.py
<ide> import warnings
<ide> import zipfile
<ide> from datetime import datetime, timedelta
<del>from typing import Dict, List, NamedTuple, Optional
<add>from typing import TYPE_CHECKING, Dict, List, NamedTuple, Optional, Union
<ide>
<ide> from croniter import CroniterBadCronError, Cr... | 4 |
Javascript | Javascript | add support for "input" event handlers | a4e9d88d1ffac8fb86cebe8362d3c55be4dc9fb6 | <ide><path>packages/ember-views/lib/system/event_dispatcher.js
<ide> Ember.EventDispatcher = Ember.Object.extend(
<ide> mouseenter : 'mouseEnter',
<ide> mouseleave : 'mouseLeave',
<ide> submit : 'submit',
<add> input : 'input',
<ide> change : 'change',
<ide> dragstar... | 1 |
Python | Python | update links to weights | 36fc52a3b4b50885d5ec3bf259f81740e19d8b3c | <ide><path>transformers/configuration_bert.py
<ide> 'bert-base-cased-finetuned-mrpc': "https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-cased-finetuned-mrpc-config.json",
<ide> 'bert-base-german-dbmdz-cased': "https://s3.amazonaws.com/models.huggingface.co/bert/bert-base-german-dbmdz-cased-config.j... | 4 |
PHP | PHP | remove accessors that are never used | 712b99df85c7a9daf8fb9f0a9a34fa90cbe99f44 | <ide><path>src/Illuminate/Queue/Worker.php
<ide> public function setCache(CacheContract $cache)
<ide> {
<ide> $this->cache = $cache;
<ide> }
<del>
<del> /**
<del> * Get the queue manager instance.
<del> *
<del> * @return \Illuminate\Queue\QueueManager
<del> */
<del> public function... | 1 |
Python | Python | add backticks to linalg | 10cefa453c3414ca49a6b5f911ffd14f539c8e96 | <ide><path>numpy/linalg/linalg.py
<ide> def solve(a, b):
<ide> Broadcasting rules apply, see the `numpy.linalg` documentation for
<ide> details.
<ide>
<del> The solutions are computed using LAPACK routine _gesv
<add> The solutions are computed using LAPACK routine ``_gesv``.
<ide>
<ide> `a` must be ... | 1 |
Go | Go | clean dead code | c9db9e4ff1ca2e563328c6c618184d9aa8393ac5 | <ide><path>oci/defaults_linux.go
<ide> func DefaultSpec() specs.Spec {
<ide> UID: u32Ptr(0),
<ide> GID: u32Ptr(0),
<ide> },
<del> // {
<del> // Type: "c",
<del> // Path: "/dev/tty",
<del> // Major: 5,
<del> // Minor: 0,
<del> // FileMode: fmPtr(0666),
<del> // UID:... | 1 |
Go | Go | decrease timeouts in testeventsstreaming | e45bf8d2e9b43a4f5c5ed844b333733f95ccbafb | <ide><path>integration-cli/docker_cli_events_test.go
<ide> func TestEventsStreaming(t *testing.T) {
<ide> id <- cleanedContainerID
<ide>
<ide> select {
<del> case <-time.After(30 * time.Second):
<add> case <-time.After(5 * time.Second):
<ide> t.Fatal("failed to observe container create in timely fashion")
<ide> c... | 1 |
PHP | PHP | fix doc block | 0f4433caf3d147b125b1407b85b23eff4d4eaf07 | <ide><path>src/Database/TypeMap.php
<ide> public function setDefaults(array $defaults)
<ide> /**
<ide> * Returns the currently configured types.
<ide> *
<del> * @return self|array
<add> * @return array
<ide> */
<ide> public function getDefaults()
<ide> { | 1 |
Ruby | Ruby | use a hash to cache compiler version lookups | 237fa3164dcb56f6de3b875ed9fe9b47c7b0712b | <ide><path>Library/Homebrew/os/mac.rb
<ide> def clang_build_version
<ide> end
<ide>
<ide> def non_apple_gcc_version(cc)
<del> path = HOMEBREW_PREFIX.join("opt/gcc/bin/#{cc}")
<del> path = nil unless path.exist?
<del>
<del> return unless path ||= locate(cc)
<del>
<del> ivar = "@#{cc.gsub(/(-... | 1 |
Javascript | Javascript | remove bad tests from linear scale | 7aa1463c1570507b337a14faa9166f78ddfa4f25 | <ide><path>test/scale.linear.tests.js
<ide> describe('Linear Scale', function() {
<ide> });
<ide>
<ide> var xScale = chartInstance.scales.xScale0;
<del> expect(xScale.paddingTop).toBe(0);
<del> expect(xScale.paddingBottom).toBe(0);
<del> expect(xScale.paddingLeft).toBe(0);
<del> expect(xScale.paddingRight).toB... | 1 |
PHP | PHP | remove unneede code | 7027526abd809080e9211c9ea7c9f134b0b2b45e | <ide><path>tests/Database/DatabaseEloquentFactoryTest.php
<ide> public function test_sequences()
<ide>
<ide> $user = FactoryTestUserFactory::new()
<ide> ->hasAttached(
<del> FactoryTestRoleFactory::times(4)->afterCreating(function ($role, $user) {
<del> ... | 1 |
Text | Text | add new notebook links in the docs | 1aed2b908ea21de8e04be206d739e16b290b44c6 | <ide><path>notebooks/README.md
<ide> Pull Request so it can be included under the Community notebooks.
<ide> | [How to fine-tune a model on language modeling](https://github.com/huggingface/notebooks/blob/master/examples/language_modeling.ipynb) | Show how to preprocess the data and fine-tune a pretrained model on a ca... | 1 |
PHP | PHP | use a class constant instead of a string | 9fcef63e67f60f88f35da341fc452de929e8fcf2 | <ide><path>src/Console/CommandCollection.php
<ide> namespace Cake\Console;
<ide>
<ide> use ArrayIterator;
<add>use Cake\Console\Shell;
<ide> use Countable;
<ide> use InvalidArgumentException;
<ide> use IteratorAggregate;
<ide> public function add($name, $command)
<ide> {
<ide> // Once we have a new Command... | 1 |
Go | Go | remove unused func | 0e9769ab62ec15d56541dfbbe72316630a98b6e2 | <ide><path>container/container_unix.go
<ide> func (container *Container) ShmResourcePath() (string, error) {
<ide> return container.GetRootResourcePath("shm")
<ide> }
<ide>
<del>// MqueueResourcePath returns path to mqueue
<del>func (container *Container) MqueueResourcePath() (string, error) {
<del> return container.... | 1 |
PHP | PHP | update validation generation to be simpler | 6a801b4503ad495102f96ea6db1da0457a98e488 | <ide><path>src/Console/Command/Task/ModelTask.php
<ide> public function generate($name) {
<ide> $primaryKey = $this->getPrimaryKey($model);
<ide> $displayField = $this->getDisplayField($model);
<ide> $fields = $this->getFields($model);
<add> $validation = $this->getValidation($model);
<ide>
<ide> $this->bake(... | 3 |
Python | Python | add regression test for back to test suite | 0f28418446581dd5df8807f44dcfa72371bdbd98 | <ide><path>spacy/tests/regression/test_issue1001-1500.py
<ide> from spacy.symbols import ORTH, LEMMA, POS, VERB, VerbForm_part
<ide>
<ide>
<add>@pytest.mark.xfail
<add>def test_issue1061():
<add> '''Test special-case works after tokenizing. Was caching problem.'''
<add> text = 'I like _MATH_ even _MATH_ when _M... | 1 |
PHP | PHP | update a few paths | 16ec03e27a9505948a8a6e3bf82c1ba437b372f6 | <ide><path>src/Illuminate/Foundation/Console/AppNameCommand.php
<ide> protected function coreIsReady()
<ide> */
<ide> protected function getUserClassPath()
<ide> {
<del> return $this->laravel['path.src'].'/Core/User.php';
<add> return $this->laravel['path'].'/Core/User.php';
<ide> }
<ide>
<ide> /**
<ide><path>... | 2 |
Ruby | Ruby | follow form from actioncable | a1a363a8aa0f0717ef329eba4a5fe57705fb6b2f | <ide><path>activestorage/lib/active_storage/engine.rb
<del>require "rails/engine"
<add># frozen_string_literal: true
<add>
<add>require "rails"
<add>require "active_storage"
<ide>
<ide> module ActiveStorage
<ide> class Engine < Rails::Engine # :nodoc: | 1 |
Python | Python | add example for issue | f762d52b2419e1388229d64753f40fc5351ced39 | <ide><path>examples/pipeline/custom_sentence_segmentation.py
<add>'''Example of adding a pipeline component to prohibit sentence boundaries
<add>before certain tokens.
<add>
<add>What we do is write to the token.is_sent_start attribute, which
<add>takes values in {True, False, None}. The default value None allows the p... | 1 |
Python | Python | set version to v2.2.0.dev5 | f8ce9dde0fb07bdbcfa7699a91ad5cbe064e3fcd | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy"
<del>__version__ = "2.2.0.dev4"
<add>__version__ = "2.2.0.dev5"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI" | 1 |
Java | Java | add suppress warning in settablelistenablefuture | bb4a9cca1bfa5d5e887b98ec13d4a9f553dace06 | <ide><path>spring-core/src/main/java/org/springframework/util/concurrent/SettableListenableFuture.java
<ide> public boolean set(T value) {
<ide> */
<ide> public boolean setException(Throwable exception) {
<ide> Assert.notNull(exception, "'exception' must not be null");
<del> boolean success = this.settableTask.se... | 1 |
PHP | PHP | fix contextual var docblock | 02d41da1a8013b98d69a7295f239d5f180a6ad4e | <ide><path>src/Illuminate/Container/ContextualBindingBuilder.php
<ide> class ContextualBindingBuilder implements ContextualBindingBuilderContract
<ide> /**
<ide> * The concrete instance.
<ide> *
<del> * @var string
<add> * @var string|array
<ide> */
<ide> protected $concrete;
<ide> | 1 |
Python | Python | prevent traceback chaining in _wrapfunc | 352b7871a072a51f32bcb6bc1541cabbc447d5c4 | <ide><path>numpy/core/fromnumeric.py
<ide> def _wrapit(obj, method, *args, **kwds):
<ide>
<ide>
<ide> def _wrapfunc(obj, method, *args, **kwds):
<del> try:
<del> return getattr(obj, method)(*args, **kwds)
<del>
<del> # An AttributeError occurs if the object does not have
<del> # such a method in its c... | 1 |
Ruby | Ruby | add spec for nested directories | 85f76e312a6171dceab69b1163dede2f903092fa | <ide><path>Library/Homebrew/test/unpack_strategy_spec.rb
<ide>
<ide> describe UnpackStrategy do
<ide> describe "#extract_nestedly" do
<del> let(:file_name) { "file" }
<del> let(:nested_archive) {
<del> dir = mktmpdir
<add> subject(:strategy) { described_class.detect(path) }
<ide>
<del> (dir/"file... | 1 |
Ruby | Ruby | allocate new responses rather than recycling them | 2b5d309aeb68e9d30d6e090a9c603efe780e50c7 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def default_env
<ide> end
<ide>
<ide> class TestResponse < ActionDispatch::TestResponse
<del> def recycle!
<del> initialize
<del> end
<ide> end
<ide>
<ide> class LiveTestResponse < Live::Response
<del> def recycle!
<del> @body =... | 1 |
Javascript | Javascript | improve `event` compatibility | 3f7f62f6bc1e1d449137a42801fd89608237c677 | <ide><path>lib/internal/event_target.js
<ide> class Event {
<ide> * composed?: boolean,
<ide> * }} [options]
<ide> */
<del> constructor(type, options = null) {
<add> constructor(type, options = kEmptyObject) {
<ide> if (arguments.length === 0)
<ide> throw new ERR_MISSING_ARGS('type');
<del> va... | 2 |
Python | Python | fix conv2d behavior with dim_ordering='tf' | 7401f47da4d438927b982c3dcecf07313c05ffd7 | <ide><path>keras/layers/convolutional.py
<ide> def get_output(self, train=False):
<ide> dim_ordering=self.dim_ordering,
<ide> image_shape=self.input_shape,
<ide> filter_shape=self.W_shape)
<del>
<del> output = conv_out + K.reshap... | 1 |
Java | Java | apply value formatting to resolved exceptions | e8f6cd10a543d4f03da8e8a9750091ec9291e703 | <ide><path>spring-core/src/main/java/org/springframework/core/log/LogFormatUtils.java
<ide> public abstract class LogFormatUtils {
<ide> * @return the formatted value
<ide> */
<ide> public static String formatValue(@Nullable Object value, boolean limitLength) {
<del> return formatValue(value, 100, limitLength);
<... | 3 |
Text | Text | clarify endpoint definition in documentation | 95f63361577e6309671cd0e4e21953ac130a1abe | <ide><path>libnetwork/docs/design.md
<ide> A Sandbox may contain *many* endpoints from *multiple* networks.
<ide>
<ide> An Endpoint joins a Sandbox to a Network.
<ide> An implementation of an Endpoint could be a `veth` pair, an Open vSwitch internal port or similar.
<del>An Endpoint can belong to *only one* network an... | 1 |
Javascript | Javascript | remove vestigial code left over from 9afcb3e | b79623463e2da7155327136e487ace3612dc6c2a | <ide><path>packages/ember-handlebars/lib/helpers/binding.js
<ide> EmberHandlebars.bindClasses = function(context, classBindings, view, bindAttrId,
<ide> // If value is a Boolean and true, return the dasherized property
<ide> // name.
<ide> } else if (val === true) {
<del> if (className) { return classN... | 2 |
Text | Text | remove erronous html in example. closes | 0fe0a91aed0c479fed29c8123a6ba63de6575eaf | <ide><path>docs/topics/3.6-announcement.md
<ide> Here's a brief example that demonstrates:
<ide> <html>
<ide> <head>
<ide> <script src="/static/rest_framework/js/coreapi-0.1.0.js"></script>
<del> <script src="/docs/schema.js' %}"></script>
<add> <script src="/docs/schema.js... | 1 |
Text | Text | remove the extra comma in association_basics.md | 3910002deaec89e9af73f37a963eef719e7e0f5d | <ide><path>guides/source/association_basics.md
<ide> The `limit` method lets you restrict the total number of objects that will be fe
<ide> class Author < ApplicationRecord
<ide> has_many :recent_books,
<ide> -> { order('published_at desc').limit(100) },
<del> class_name: "Book",
<add> class_name: "Book"
<i... | 1 |
Text | Text | fix broken link for macos | 3f3832174e347e4335f6b32c614feeb0d82cccd9 | <ide><path>README.md
<ide> repeat these steps to upgrade to future releases.
<ide> ## Building
<ide>
<ide> * [Linux](./docs/build-instructions/linux.md)
<del>* [macOS](./docs/build-instructions/macos.md)
<add>* [macOS](./docs/build-instructions/macOS.md)
<ide> * [FreeBSD](./docs/build-instructions/freebsd.md)
<ide> * ... | 1 |
Text | Text | add a note about the abi flag as well | d6b78425a982ec41370cc2125bfd919ace21d162 | <ide><path>street/README.md
<ide> TF_INC=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())')
<ide> g++ -std=c++11 -shared rnn_ops.cc -o rnn_ops.so -fPIC -I $TF_INC -O3 -mavx
<ide> ```
<ide>
<del>(Note: if running on Mac, add `-undefined dynamic_lookup` to the end of your
<del>`g++` command.)
<add... | 1 |
Python | Python | add test for boolean indexing and boolean ufunc | 5dea4ca1d3c6185a530e40a6ea7099e3eb3fd46c | <ide><path>numpy/core/tests/test_ufunc.py
<ide> def test_inplace_fancy_indexing(self):
<ide> np.power.at(a, [1,2,3,2], 3.5)
<ide> assert_equal(a, [0, 1, 4414, 46, 4, 5, 6, 7, 8, 9])
<ide>
<add> # Test boolean indexing and boolean ufuncs
<add> a = np.arange(10)
<add> index = a % 2 =... | 1 |
Ruby | Ruby | check virtualenv and setuptools resource | 346d68eb04013d2322796ed1a0edd7de007a156d | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_text
<ide> problem "Formulae should not depend on both OpenSSL and LibreSSL (even optionally)."
<ide> end
<ide>
<add> if text =~ /virtualenv_(create|install_with_resources)/ &&
<add> text =~ /resource\s+['"]setuptools['"]\s+do/
<add> ... | 1 |
Java | Java | reject user names with "%2f" in stomp | 30d68f2de78ef70ebcb02c2d40c85587f384f618 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/SimpMessagingTemplate.java
<ide> /*
<del> * Copyright 2002-2018 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>... | 4 |
PHP | PHP | fix typo in variable description | ba9fc949779fdae78266b5dfba2d46a2f6c401f8 | <ide><path>cake/libs/validation.php
<ide> class Validation extends Object {
<ide>
<ide> /**
<del> * Set the the value of methods $check param.
<add> * Set the value of methods $check param.
<ide> *
<ide> * @var string
<ide> * @access public | 1 |
Javascript | Javascript | fix datepickerandroid flow errors | 0b1f74712f6c912635702e23604bfcca2e538c9d | <ide><path>Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js
<ide> 'use strict';
<ide>
<ide> const DatePickerModule = require('NativeModules').DatePickerAndroid;
<del>
<del>type Options = $ReadOnly<{|
<del> date?: ?(Date | number),
<del> minDate?: ?(Date | number),
<del> maxDate?: ?(Date | number)... | 3 |
Javascript | Javascript | remove var in libraries/vendor/core/merge.js | 3f069f333477de3b42fd222e43bd66adf23a8e5d | <ide><path>Libraries/vendor/core/merge.js
<ide>
<ide> "use strict";
<ide>
<del>var mergeInto = require('mergeInto');
<add>const mergeInto = require('mergeInto');
<ide>
<ide> /**
<ide> * Shallow merges two structures into a return value, without mutating either.
<ide> var mergeInto = require('mergeInto');
<ide> * @... | 1 |
Mixed | Text | add mounts to docker ps | bd4fb00fb6241d35537b460a2d9f48256111ae7a | <ide><path>api/client/formatter/custom.go
<ide> const (
<ide> repositoryHeader = "REPOSITORY"
<ide> tagHeader = "TAG"
<ide> digestHeader = "DIGEST"
<add> mountsHeader = "MOUNTS"
<ide> )
<ide>
<ide> type containerContext struct {
<ide> func (c *containerContext) Label(name string) string {
<id... | 7 |
Text | Text | add note about removelistener order | b049d55cd882a9d3e8a2f5be69dd9fdb6623eab7 | <ide><path>doc/api/events.md
<ide> being removed. This will not impact the order in which listeners are called,
<ide> but it means that any copies of the listener array as returned by
<ide> the `emitter.listeners()` method will need to be recreated.
<ide>
<add>When a single function has been added as a handler multipl... | 1 |
Mixed | Go | modify reponame to plugin and fix some typos | c394034f5978862b75770a036364f806bbcd8920 | <ide><path>cli/command/plugin/create.go
<ide> func newCreateCommand(dockerCli *command.DockerCli) *cobra.Command {
<ide> options := pluginCreateOptions{}
<ide>
<ide> cmd := &cobra.Command{
<del> Use: "create [OPTIONS] reponame[:tag] PATH-TO-ROOTFS (rootfs + config.json)",
<add> Use: "create [OPTIONS] PLUGIN[:t... | 4 |
PHP | PHP | fix missing parameter in routing error | 181d3b928c53cc87e63650bfbdbcfa016823c1df | <ide><path>src/Routing/RouteCollection.php
<ide> public function match(array $url, array $context): string
<ide> throw new MissingRouteException([
<ide> 'url' => $name,
<ide> 'context' => $context,
<del> 'message' => 'A named route was found for... | 1 |
Python | Python | fix brightbox testing | d95474e097accb1d7482c8c8b60ee06f7d1441f0 | <ide><path>libcloud/test/__init__.py
<ide> def __init__(self, status, body=None, headers=None, reason=None):
<ide> self.reason = reason or self.reason
<ide>
<ide> def read(self, *args, **kwargs):
<del> return self.body.read(*args, **kwargs)
<add> return self.body
<ide>
<ide> def next(sel... | 2 |
Text | Text | run tests before landing changes | 1e7f6b157133d89b841de9bbc3348c474717b83d | <ide><path>COLLABORATOR_GUIDE.md
<ide> commit logs, ensure that they are properly formatted, and add
<ide> * The commit message text must conform to the
<ide> [commit message guidelines](./CONTRIBUTING.md#step-3-commit).
<ide>
<add>Run tests (`make -j4 test` or `vcbuild test`). Even though there was a
<add>successful ... | 1 |
Text | Text | add range in for loop | 23ae994d405ea167703291b919a265753f9494d8 | <ide><path>guide/chinese/ruby/ruby-for-loop/index.md
<ide> for element in array do
<ide> end
<ide> ```
<ide>
<add>for循环也可以利用Range的方式来执行,1..10 代表 1~10 包含 10,1...10 代表 1~10 不包含 10:
<add>```
<add>for element in 1..10
<add> puts element
<add>end
<add>```
<add>
<ide> 在Ruby中有许多不同的方法可以执行for循环或循环,另一个例子是:
<ide> ```
<ide> el... | 1 |
Ruby | Ruby | place api_parser code into util module | 05d7c40ea5fb14243bdba939ab9ef86196269468 | <ide><path>Library/Homebrew/utils/update.rb
<ide> require 'json'
<ide>
<ide> module Utils
<del>
<add> class ApiParser
<add> def call_api(url)
<add> puts "- Calling API #{url}"
<add> uri = URI(url)
<add> response = Net::HTTP.get(uri)
<add>
<add> puts "- Parsing response"
<add> JSON.parse(... | 1 |
Text | Text | update documentation styleguide | 945345b0c7c6f1aef4e763fc09d9448d1ffa37d8 | <ide><path>CONTRIBUTING.md
<ide> For more information on how to work with Atom's official packages, see
<ide>
<ide> ## Documentation Styleguide
<ide>
<del>* Use [TomDoc](http://tomdoc.org).
<add>* Use [AtomDoc](https://github.com/atom/atomdoc).
<ide> * Use [Markdown](https://daringfireball.net/projects/markdown).
<id... | 1 |
Ruby | Ruby | fix rubocop warnings | b42f646cec2f8d2ced09e98e9cd37375a183f94d | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def abv
<ide> out = ""
<ide> compute_disk_usage
<ide> out << "#{number_readable(@file_count)} files, " if @file_count > 1
<del> out << "#{disk_usage_readable(@disk_usage)}"
<add> out << disk_usage_readable(@disk_usage).to_s
<ide> end
<ide>
<ide> ... | 1 |
PHP | PHP | use getter instead of property | d1a52d4809105716c668a20260bed722bf386062 | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> public function foreignIdFor($model, $column = null)
<ide> $model = new $model;
<ide> }
<ide>
<del> return $model->getKeyType() === 'int' && $model->incrementing
<add> return $model->getKeyType() === 'int' && $model->getInc... | 1 |
Ruby | Ruby | switch structure to if/else instead of rescue | 14a7ef591b68ebb4d901c2f2a9a1553be0e7af03 | <ide><path>Library/Homebrew/test/gpg_spec.rb
<ide>
<ide> shutup do
<ide> subject.create_test_key(dir)
<add> gpg = subject::GPG_EXECUTABLE
<add> @version = Utils.popen_read(gpg, "--version")[/\d\.\d/, 0]
<ide> end
<ide>
<del> begin
<add> if @version.to_s.start_... | 1 |
Text | Text | add video at the bottom of the front page | e4909d0f2e42ec093d75454a1dad16a305b1fb99 | <ide><path>docs/index.md
<ide> id: home
<ide> <script type="text/javascript" src="js/examples/markdown.js"></script>
<ide> </section>
<ide> <hr class="home-divider" />
<add><section class="home-section home-presentation">
<add> <h3>Presentation</h3>
<add> <p>Watch this 30-minute presentation followed by a Q&A to le... | 1 |
Javascript | Javascript | update user model for migration | ca812f09ae2de1d91d3f7b59c2c283c39466dd56 | <ide><path>models/User.js
<ide> var userSchema = new mongoose.Schema({
<ide> type: Number,
<ide> default: 0
<ide> },
<del> needsMigration: { type: Boolean, default: true }
<add> needsMigration: { type: Boolean, default: true },
<add> challengesHash: {}
<ide> });
<ide>
<ide> /** | 1 |
Python | Python | add tests for qs_exists | 0a496a423d8c2812d1f79931b71bcb9015452a20 | <ide><path>tests/test_validators.py
<ide> import datetime
<ide>
<del>from django.db import models
<add>from django.db import DataError, models
<ide> from django.test import TestCase
<ide>
<ide> from rest_framework import serializers
<del>from rest_framework.validators import UniqueValidator
<add>from rest_framework.v... | 1 |
Ruby | Ruby | fix rubocop warnings | cefaef75e1f7f8a4332ad5bd7468be7b3eead104 | <ide><path>Library/Homebrew/os/mac.rb
<ide> def preferred_arch
<ide> "7.3" => { :clang => "7.3", :clang_build => 703 },
<ide> "7.3.1" => { :clang => "7.3", :clang_build => 703 },
<ide> "8.0" => { :clang => "8.0", :clang_build => 800 },
<del> }
<add> }.freeze
<ide>
<ide> def compilers_st... | 1 |
Ruby | Ruby | update bundled rack for ruby 1.9 spec changes | 524d8edf68ab94315a128cbd7570d1cf4faf7d7a | <ide><path>actionpack/lib/action_controller/integration.rb
<ide> def process(method, path, parameters = nil, headers = nil)
<ide>
<ide> @headers = Rack::Utils::HeaderHash.new(headers)
<ide>
<del> (@headers['Set-Cookie'] || []).each do |cookie|
<add> (@headers['Set-Cookie'] || "").split("\n... | 19 |
Javascript | Javascript | add more tests for inherited listeners. | 32bac7b4c751f4f5bc774ea05d0a85b8087de7c7 | <ide><path>packages/@ember/-internals/meta/tests/listeners_test.js
<ide> moduleFor(
<ide> }
<ide>
<ide> ['@test inheritance'](assert) {
<add> let matching;
<ide> let target = {};
<ide> let parent = {};
<ide> let parentMeta = meta(parent);
<ide> parentMeta.addToListeners('hello', ta... | 1 |
PHP | PHP | add lists method to collection class | 6055f9f595f16c06881d72f5d5c6186cf03cc031 | <ide><path>src/Illuminate/Support/Collection.php
<ide> public function slice($offset, $length = null, $preserveKeys = false)
<ide> return new static(array_slice($this->items, $offset, $length, $preserveKeys));
<ide> }
<ide>
<add> /**
<add> * Get an array with the values of a given key.
<add> *
<add> * @param st... | 2 |
PHP | PHP | get default parameter | 65ffe0b6103fe93a1a19f471405d6530379e9887 | <ide><path>system/arr.php
<ide> class Arr {
<ide> *
<ide> * @param array $array
<ide> * @param string $key
<del> * @param array $default
<add> * @param mixed $default
<ide> * @return mixed
<ide> */
<ide> public static function get($array, $key, $default = null)
<ide> public static function get($... | 1 |
Javascript | Javascript | do the same for the rest of the plugins | bf020dfe7b58f6f08ac43327b93c364b8cd89a12 | <ide><path>lib/WebpackOptionsApply.js
<ide> const RequireContextPlugin = require("./dependencies/RequireContextPlugin");
<ide> const RequireEnsurePlugin = require("./dependencies/RequireEnsurePlugin");
<ide> const RequireIncludePlugin = require("./dependencies/RequireIncludePlugin");
<ide>
<del>const WarnNoModeSetPlug... | 1 |
Go | Go | use chrootarchive for plugin rootfs | 6f3f907cdba0ba1aa4eb1320595d155bab3467af | <ide><path>plugin/blobstore.go
<ide> import (
<ide> "github.com/docker/docker/image"
<ide> "github.com/docker/docker/layer"
<ide> "github.com/docker/docker/pkg/archive"
<add> "github.com/docker/docker/pkg/chrootarchive"
<ide> "github.com/docker/docker/pkg/progress"
<ide> "github.com/opencontainers/go-digest"
<ide>... | 1 |
Javascript | Javascript | add info about angular-cookies.js | 380854fd2ce4541aec7970066a0e93ccfb5943cb | <ide><path>src/ngCookies/cookies.js
<ide> angular.module('ngCookies', ['ng']).
<ide> * Only a simple Object is exposed and by adding or removing properties to/from
<ide> * this object, new cookies are created/deleted at the end of current $eval.
<ide> *
<add> * # Installation
<add> * To use $cookies make s... | 1 |
Text | Text | add brew livecheck documentation | 94f900ea87f30461730ce3ca0065ef582e180c29 | <ide><path>docs/Brew-Livecheck.md
<add># Brew Livecheck
<add>
<add>**NOTE: This document is a work in progress and will be revised and expanded as time permits.**
<add>
<add>**NOTE: `livecheck` blocks are currently found in separate files in the [Homebrew/homebrew-livecheck](https://github.com/Homebrew/homebrew-liveche... | 2 |
Java | Java | fix viewpager behavior with nodes | 5f41769485e72570e94dd95fdfa46b8f446f788d | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupManager.java
<ide>
<ide> package com.facebook.react.uimanager;
<ide>
<del>import android.view.View;
<del>import android.view.ViewGroup;
<del>
<ide> import java.util.ArrayList;
<ide> import java.util.Collection;
<ide> import java.util.Collecti... | 2 |
Javascript | Javascript | remove string literal message in assertions | 2b5320130bf3aeb2f57e79eb95cb69e39d2d6da8 | <ide><path>test/async-hooks/test-async-await.js
<ide> const timeout = common.platformTimeout(10);
<ide>
<ide> function checkPromisesInitState() {
<ide> for (const initState of promisesInitState.values()) {
<del> assert.strictEqual(initState, 'resolved',
<del> 'promise initialized without bei... | 1 |
Text | Text | update documentation links | 0ed815285857f2210271f02635b3b713f051b28d | <ide><path>docs/advanced-features/i18n-routing.md
<ide> When `localeDetection` is set to `false` Next.js will no longer automatically re
<ide>
<ide> ## Accessing the locale information
<ide>
<del>You can access the locale information via the Next.js router. For example, using the [`useRouter()`](https://nextjs.org/do... | 5 |
Python | Python | remove unnecessary check | 75f08ad62d9d0b9ea8ecf0454da332f99b00ec45 | <ide><path>spacy/util.py
<ide> def get_model_meta(path):
<ide> raise ValueError(Errors.E054.format(setting=setting))
<ide> if "spacy_version" in meta:
<ide> about_major_minor = ".".join(about.__version__.split(".")[:2])
<del> if about_major_minor is not None and not meta["spacy_version"].... | 1 |
Go | Go | fix interactive exec over tls | 266a1044deb9a085ed43dccdc6cfa0723e5142b0 | <ide><path>api/server/server.go
<ide> func postContainerExecStart(eng *engine.Engine, version version.Version, w http.
<ide> }
<ide>
<ide> defer func() {
<del> if tcpc, ok := inStream.(*net.TCPConn); ok {
<del> tcpc.CloseWrite()
<add> if cw, ok := inStream.(interface {
<add> CloseWrite() error
<add> })... | 1 |
Mixed | Ruby | adjust macos version logic | 444c3858dfc79a51cd48312bf65bccb23525a87f | <ide><path>Library/Homebrew/os/mac.rb
<ide> def latest_sdk_version
<ide> Version.new "11.0"
<ide> end
<ide>
<del> def latest_stable_version
<del> # TODO: bump version when new macOS is released and also update
<del> # references in docs/Installation.md and
<del> # https://github.com/Homebre... | 3 |
Javascript | Javascript | ensure that jqlite->jqlite and dom->dom | 75292a6cb5e17d618902f7996e80eb3118eff7b0 | <ide><path>src/Angular.js
<ide> function baseExtend(dst, objs, deep) {
<ide> dst[key] = new Date(src.valueOf());
<ide> } else if (isRegExp(src)) {
<ide> dst[key] = new RegExp(src);
<add> } else if (src.nodeName) {
<add> dst[key] = src.cloneNode(true);
<ide> } else if ... | 2 |
Python | Python | fix save_weights fnk when none is dumped | f6d6de8922af4b4a157cfc9869bb5501a05966b1 | <ide><path>keras/models.py
<ide> def save_weights(self, filepath):
<ide> param_dset = g.create_dataset(param_name, param.shape, dtype='float64')
<ide> param_dset[:] = param
<ide> for k, v in l.get_config().items():
<del> g.attrs[k] = v
<add> if v... | 1 |
Python | Python | update error message in rollaxis | fa369d17e110717535860d8caea5bec44da53f42 | <ide><path>numpy/core/numeric.py
<ide> def rollaxis(a, axis, start=0):
<ide> axis += n
<ide> if start < 0:
<ide> start += n
<del> msg = 'rollaxis: %s (%d) must be >=0 and < %d'
<add> msg = "'%s' arg requires %d <= %s < %d, but %d was passed in"
<ide> if not (0 <= axis < n):
<del> ra... | 1 |
Text | Text | fix typos in action view overview guide | 8116770c7ba1be7b9f6744e4e807c6233958a23c | <ide><path>guides/source/action_view_overview.md
<ide> With the `as` option we can specify a different name for the local variable. For
<ide> <%= render partial: "product", as: "item" %>
<ide> ```
<ide>
<del>The `object` option can be used to directly specify which object is rendered into the partial; useful when the ... | 1 |
Javascript | Javascript | simplify fs.stat mocks | f117533f8227e0ca1140829e8e3eed09c06494b0 | <ide><path>packager/src/node-haste/__mocks__/graceful-fs.js
<ide> fs.readFileSync.mockImplementation(function(filepath, encoding) {
<ide> return node;
<ide> });
<ide>
<add>function makeStatResult(node) {
<add> const isSymlink = node != null && node.SYMLINK != null;
<add> return {
<add> isDirectory: () => node !... | 2 |
PHP | PHP | use request socket if passed | e2da63875bd44d9359dd69a9aeebcba648e195bf | <ide><path>src/Illuminate/Broadcasting/BroadcastManager.php
<ide> public function socket($request = null)
<ide>
<ide> $request = $request ?: $this->app['request'];
<ide>
<add> if ($request->has('socket')) {
<add> return $request->input('socket');
<add> }
<add>
<ide> return $th... | 1 |
Javascript | Javascript | fix typo in test | e751cd09930240155b3a51e23b3bd4831b06b4d3 | <ide><path>packages/ember-metal/tests/accessors/get_test.js
<ide> test('warn on attempts to get a property path of undefined', function() {
<ide> }, /Cannot call get with 'aProperty.on.aPath' on an undefined object/);
<ide> });
<ide>
<del>test('warn on attemps to get a falsy property', function() {
<add>test('warn o... | 1 |
Ruby | Ruby | remove dead code from tests | d65320714ede42cc1e20a2da65dc6409758228f8 | <ide><path>activerecord/test/cases/dirty_test.rb
<ide> require 'models/person' # For optimistic locking
<ide> require 'models/aircraft'
<ide>
<del>class Pirate # Just reopening it, not defining it
<del> attr_accessor :detected_changes_in_after_update # Boolean for if changes are detected
<del> attr_accessor :chang... | 1 |
Mixed | Javascript | remove deprecated api | 1cc6b993b9683d4adda9525ce3e96779db246658 | <ide><path>doc/api/deprecations.md
<ide> code modification is necessary if that is done.
<ide> <a id="DEP0085"></a>
<ide> ### DEP0085: AsyncHooks Sensitive API
<ide>
<del>Type: Runtime
<add>Type: End-of-Life
<ide>
<ide> The AsyncHooks Sensitive API was never documented and had various of minor
<ide> issues, see https... | 5 |
Javascript | Javascript | update enzyme adapter for react tests (#80) | cb9358243d02e48ea8a23aa4ebbd9b4a3eaae881 | <ide><path>packages/learn/src/templates/Challenges/utils/frame.js
<ide> import { toString, flow } from 'lodash';
<ide> import Rx, { Observable } from 'rxjs';
<ide> import { ShallowWrapper, ReactWrapper } from 'enzyme';
<del>import Adapter15 from 'enzyme-adapter-react-15';
<add>import Adapter16 from 'enzyme-adapter-reac... | 1 |
Python | Python | remove redundant parentheses | 96626260dc8017e5cdc8506e35e7936b80d09c9d | <ide><path>airflow/migrations/versions/952da73b5eff_add_dag_code_table.py
<ide> class SerializedDagModel(Base):
<ide> sa.Column('last_updated', sa.TIMESTAMP(timezone=True), nullable=False))
<ide>
<ide> conn = op.get_bind()
<del> if conn.dialect.name not in ('sqlite'):
<add> if conn.dialec... | 2 |
Go | Go | pass tty master to exec | 332755b99d345a8ffbf4fb636ca8fed604a233c0 | <ide><path>pkg/libcontainer/nsinit/exec.go
<ide> import (
<ide>
<ide> // Exec performes setup outside of a namespace so that a container can be
<ide> // executed. Exec is a high level function for working with container namespaces.
<del>func Exec(container *libcontainer.Container, stdin io.Reader, stdout, stderr io.W... | 2 |
Javascript | Javascript | move slow path to separate function too | 630f63633490f60a292e62bb7a82bd9ea4de68c4 | <ide><path>lib/events.js
<ide> function emitThree(handler, isFn, self, arg1, arg2, arg3) {
<ide> }
<ide> }
<ide>
<add>function emitMany(handler, isFn, self, args) {
<add> if (isFn)
<add> handler.apply(self, args);
<add> else {
<add> var len = handler.length;
<add> var listeners = arrayClone(handler, len);... | 1 |
Python | Python | fix twodim tests | 99df3daf134808115b458d90c4c6fa676a02e6f2 | <ide><path>numpy/lib/tests/test_index_tricks.py
<ide> from numpy.testing import *
<ide> from numpy import ( array, ones, r_, mgrid, unravel_index, zeros, where,
<del> fill_diagonal, diag_indices, diag_indices_from )
<add> ndenumerate, fill_diagonal, diag_indices,
<add> ... | 2 |
PHP | PHP | add cartesianproduct to collection | ec02c023ede6da9fbb9c8f71a574b102ae6fbaab | <ide><path>src/Collection/CollectionTrait.php
<ide> public function _unwrap()
<ide> return $this->unwrap();
<ide> }
<ide>
<add> /**
<add> * {@inheritDoc}
<add> *
<add> * @return \Cake\Collection\CollectionInterface
<add> */
<add> public function cartesianProduct(callable $operation = ... | 2 |
Python | Python | add win32 hash | 5210048e95a2d2c433c12dd0d9b95fade98bd705 | <ide><path>tools/openblas_support.py
<ide> sha256_vals = {
<ide> "openblas-v0.3.7-527-g79fd006c-win_amd64-gcc_7_1_0.zip": "7249d68c02e6b6339e06edfeab1fecddf29ee1e67a3afaa77917c320c43de840",
<ide> "openblas64_-v0.3.7-527-g79fd006c-win_amd64-gcc_7_1_0.zip": "6488e0961a5926e47242f63b63b41cfdd661e6f1d267e8e313e397cde4775c1... | 1 |
Python | Python | pass cfg through loading, for training | a2f55e701551fc5616083daec0c54f3fc8343478 | <ide><path>spacy/language.py
<ide> from .syntax.parser import get_templates
<ide> from .syntax.nonproj import PseudoProjectivity
<ide> from .pipeline import DependencyParser, EntityRecognizer
<add>from .syntax.arc_eager import ArcEager
<add>from .syntax.ner import BiluoPushDown
<ide>
<ide>
<ide> class BaseDefaults(ob... | 1 |
PHP | PHP | add a method to add multiple crumbs at once | 27db8688b2e625dbcf357dca021d87a115d028b9 | <ide><path>src/View/Helper/BreadcrumbsHelper.php
<ide> class BreadcrumbsHelper extends Helper
<ide> /**
<ide> * Add a crumb to the trail.
<ide> *
<del> * @param string $title Title of the crumb
<add> * @param string|array $title Title of the crumb. If provided as an array, it will add each values ... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.