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 |
|---|---|---|---|---|---|
PHP | PHP | fix parse error | 9df2d77f48c5134a125ff2def78d48f0e9c81a04 | <ide><path>src/Console/ConsoleOptionParser.php
<ide> public function addOption($name, array $options = [])
<ide> $options['default'],
<ide> $options['choices'],
<ide> $options['multiple'],
<del> $options['required'],
<add> $options['required'... | 1 |
Go | Go | allow anonymous endpoint | e41a9cf59d4b65fef352cc9cbf5f8c75ec0f111a | <ide><path>libnetwork/endpoint.go
<ide> type endpoint struct {
<ide> joinInfo *endpointJoinInfo
<ide> sandboxID string
<ide> exposedPorts []types.TransportPort
<add> anonymous bool
<ide> generic map[string]interface{}
<ide> joinLeaveDone chan struct{}
<ide> dbIndex uint64
<ide> func (ep ... | 3 |
Text | Text | update docs to conform with new translation flow | c7955c4fbc7679784592912a7591e4e7bc101563 | <ide><path>docs/FAQ.md
<ide> freeCodeCamp runs on a modern JavaScript stack. If you're interested in contribu
<ide>
<ide> Yes - You can contribute to any of the 30+ languages we have enabled on our translation platform.
<ide>
<del>We have user-contributed translations live in some languages. We intend to localize fre... | 3 |
Text | Text | fix mode and flags being mistaken in fs | a45c1aa39f593cc584f1895dd0b7309fb12e1b02 | <ide><path>doc/api/fs.md
<ide> Returns an object containing commonly used constants for file system
<ide> operations. The specific constants currently defined are described in
<ide> [FS Constants][].
<ide>
<del>## `fs.copyFile(src, dest[, flags], callback)`
<add>## `fs.copyFile(src, dest[, mode], callback)`
<ide> <!--... | 1 |
Python | Python | add sparsity modules | e4c07faf0ae125559c30998c3513dd85f012c88e | <ide><path>examples/movement-pruning/emmental/__init__.py
<add>from .modules import *
<add>
<add>from .configuration_bert_masked import MaskedBertConfig
<add>
<add>from .modeling_bert_masked import (
<add> MaskedBertModel,
<add> MaskedBertForQuestionAnswering,
<add> MaskedBertForSequenceClassification,
<add> ... | 6 |
Ruby | Ruby | fix tests for mail 2.8 | bf01cc6744a3593c6256ab6765d7d7a500696bd5 | <ide><path>actionmailer/test/base_test.rb
<ide> class BaseTest < ActiveSupport::TestCase
<ide>
<ide> test "can pass random headers in as a hash to mail" do
<ide> hash = { "X-Special-Domain-Specific-Header" => "SecretValue",
<del> "In-Reply-To" => "1234@mikel.me.com" }
<add> "In-Reply-To" =>... | 1 |
Python | Python | improve otto example | b763f8964f60a12df64f373546bf3d884e26ea8b | <ide><path>examples/kaggle_otto_nn.py
<ide> - with smaller layers, largers layers
<ide> - with more layers, less layers
<ide> - with different optimizers (SGD+momentum+decay is probably better than Adam!)
<add>
<add> Get the data from Kaggle: https://www.kaggle.com/c/otto-group-product-classi... | 1 |
Java | Java | remove static import from invocablehandlermethod | 495ba2f58cdd195c4c0d16be5b43c22a8a193d81 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/result/method/InvocableHandlerMethod.java
<ide> import org.springframework.web.reactive.HandlerResult;
<ide> import org.springframework.web.server.ServerWebExchange;
<ide>
<del>import static org.springframework.web.reactive.result.method.Invocabl... | 1 |
Ruby | Ruby | push the formatter up to the route object | 620cb0167667e2f5d788c11b637db51d20496dcc | <ide><path>actionpack/lib/action_dispatch/journey/path/pattern.rb
<ide> def initialize(strexp)
<ide> @required_names = nil
<ide> @re = nil
<ide> @offsets = nil
<del> @format = Visitors::FormatBuilder.new.accept(spec)
<ide> end
<ide>
<del> ... | 2 |
Text | Text | improve doc on unintended breaking changes | 3fe9267592cfef01b50f4f94eaa50b2dc495eb1a | <ide><path>COLLABORATOR_GUIDE.md
<ide> - [Breaking Changes](#breaking-changes)
<ide> - [Breaking Changes and Deprecations](#breaking-changes-and-deprecations)
<ide> - [Breaking Changes to Internal Elements](#breaking-changes-to-internal-elements)
<del> - [When Breaking Changes Actually Break Things](#when-... | 1 |
PHP | PHP | add cross version constants | 73a6ebea8d109e34c9218abb88983f78bce75830 | <ide><path>cake/basics.php
<ide> define('MONTH', 2592000);
<ide> define('YEAR', 31536000);
<ide>
<add>/**
<add> * Patch old versions of PHP4.
<add> */
<add>if (!defined('PHP_EOL')) {
<add> switch (strtoupper(substr(PHP_OS, 0, 3))) {
<add> case 'WIN':
<add> define('PHP_EOL', "\r\n");
<add> break;
<add> default:... | 1 |
Ruby | Ruby | remove unnecessary class | 93edfaa7b4a314c60a22f3e56fc07fabbec0c733 | <ide><path>activemodel/lib/active_model/errors.rb
<ide> def messages
<ide> end
<ide>
<ide> # Returns a Hash of attributes with an array of their error details.
<del> #
<del> # Updating this hash would still update errors state for backward
<del> # compatibility, but this behavior is deprecated.
<ide> ... | 1 |
Ruby | Ruby | add support for screenshots | e9127f7aa082986952ffcc8331b675a3a99c3a83 | <ide><path>actionpack/lib/system_testing/driver_adapters/capybara_driver.rb
<ide> def initialize(name)
<ide> def call
<ide> Capybara.default_driver = @name
<ide> end
<add>
<add> def supports_screenshots?
<add> @name != :rack_test
<add> end
<ide> end
<ide> end
<ide> end
<ide><p... | 6 |
PHP | PHP | fix issues with '#first' as a url | d984ceb3a8a82bd7c34c7ff0bfe01efca17984cc | <ide><path>lib/Cake/Routing/Router.php
<ide> public static function url($url = null, $options = array()) {
<ide> $options = array();
<ide> }
<ide> $urlType = gettype($url);
<del> $hasColonSlash = $hasLeadingSlash = $isJavascript = $isMailto = false;
<add> $hasColonSlash = $hasLeadingSlash = $plainString = fals... | 2 |
Text | Text | require two approvals to land changes | b01e617dcc4cf3f38f2b4516545aaf14d352f6e4 | <ide><path>COLLABORATOR_GUIDE.md
<ide> comment that explains why the PR does not require a CI run.
<ide>
<ide> ### Code Reviews
<ide>
<del>All pull requests must be reviewed and accepted by a Collaborator with
<del>sufficient expertise who is able to take full responsibility for the
<del>change. In the case of pull r... | 2 |
Javascript | Javascript | fix typos detected by github.com/client9/misspell | e0204084a03e04103864ab36df9456c99bd4ae1b | <ide><path>packages/react-reconciler/src/ReactFiberCommitWork.js
<ide> export function logError(boundary: Fiber, errorInfo: CapturedValue<mixed>) {
<ide> const suppressLogging = e && e.suppressReactErrorLogging;
<ide> if (!suppressLogging) {
<ide> // Rethrow it from a clean stack because this function is ... | 4 |
PHP | PHP | add support for markdown in slack attachment | dc0b9def6e2e284f09775139b76bdd1577f75ea9 | <ide><path>src/Illuminate/Notifications/Channels/SlackWebhookChannel.php
<ide> protected function attachments(SlackMessage $message)
<ide> 'text' => $attachment->content,
<ide> 'title_link' => $attachment->url,
<ide> 'fields' => $this->fields($attachment),
<add> ... | 2 |
Text | Text | remove div_for from guides [ci skip] | d3da2080487391ee5a28f3167c21084107858f52 | <ide><path>guides/source/action_view_overview.md
<ide> You can also render a block of code within a partial layout instead of calling `
<ide>
<ide> ```html+erb
<ide> <% render(layout: 'box', locals: { article: @article }) do %>
<del> <%= div_for(article) do %>
<add> <div>
<ide> <p><%= article.body %></p>
<del> ... | 1 |
Javascript | Javascript | remove null checks that always evaluate to false | ea719ae805a032505074c01c70d12e951c633aad | <ide><path>src/core/jpg.js
<ide> var JpegImage = (function jpegImage() {
<ide>
<ide> function decodeHuffman(tree) {
<ide> var node = tree;
<del> var bit;
<del> while ((bit = readBit()) !== null) {
<del> node = node[bit];
<add> while (true) {
<add> node = node[readBit()];
<ide> ... | 1 |
Javascript | Javascript | log unknown props only when we have a match | 4ed7b85ed8296259c61eeb4747a067afb35d4f52 | <ide><path>src/dom/DOMPropertyOperations.js
<ide> if (__DEV__) {
<ide> }
<ide>
<ide> warnedProperties[name] = true;
<del> var message = 'Unknown DOM property ' + name + '.';
<ide> var lowerCasedName = name.toLowerCase();
<ide>
<ide> // data-* attributes should be lowercase; suggest the lowercase ve... | 2 |
Python | Python | add a version switch when importing mapping | 7846aa339bb66e576dbdf474d9cc896962b70cc8 | <ide><path>celery/app/amqp.py
<ide> from __future__ import absolute_import, unicode_literals
<ide>
<ide> import numbers
<del>from collections import Mapping, namedtuple
<add>from collections import namedtuple
<ide> from datetime import timedelta
<ide> from weakref import WeakValueDictionary
<ide>
<ide>
<ide> from . ... | 1 |
Javascript | Javascript | fix performance issue | c862c0348530824bfacef8eadfaf448120d91664 | <ide><path>lib/tls.js
<ide> CryptoStream.prototype._read = function read(size) {
<ide> if (this.ondata) {
<ide> this.ondata(pool, start, start + bytesRead);
<ide>
<del> // Deceive streams2
<del> var self = this;
<del>
<del> setImmediate(function() {
<del> // Force state.reading to set t... | 1 |
Text | Text | change image sizes docs to use em instead of px | 815abc5e05fe1230922b06b62aca287ce44da41e | <ide><path>docs/api-reference/next/future/image.md
<ide> const Example = () => (
<ide> <Image
<ide> src="/example.png"
<ide> layout="fill"
<del> sizes="(min-width: 75em) 33vw,
<del> (min-width: 48em) 50vw,
<add> sizes="(min-width: 1200px) 33vw,
<add> (min-width: 768px... | 2 |
Ruby | Ruby | fix schema dumper for infinite dates in postgresql | 248b5851fdc7113226bc316472424da590787a86 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/oid/date.rb
<ide> def cast_value(value)
<ide> super
<ide> end
<ide> end
<add>
<add> def type_cast_for_schema(value)
<add> case value
<add> when ::Float::INFINITY then "::Float::INF... | 2 |
Text | Text | add history for readline `crlfdelay` option | b0c5f7d24de3df722a6c33eb19ead0a09d63b867 | <ide><path>doc/api/readline.md
<ide> the current position of the cursor down.
<ide> <!-- YAML
<ide> added: v0.1.98
<ide> changes:
<add> - version: v8.3.0, 6.11.4
<add> pr-url: https://github.com/nodejs/node/pull/13497
<add> description: Remove max limit of `crlfDelay` option.
<add> - version: v6.6.0
<add> pr... | 1 |
Python | Python | fix a small error in summarization example | eb3e072a3b24806c72e35e9246e1cf972de1c77f | <ide><path>examples/pytorch/summarization/run_summarization_no_trainer.py
<ide> def main():
<ide> # In distributed training, the .from_pretrained methods guarantee that only one local process can concurrently
<ide> # download model & vocab.
<ide> if args.config_name:
<del> config = AutoConfig.from_pr... | 1 |
Java | Java | remove viewisdescendantof from android code | cc79e971a3efa64d141284cb386cb7532dcd4322 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java
<ide> public void findSubviewIn(int reactTag, float targetX, float targetY, Callback c
<ide> mOperationsQueue.enqueueFindTargetForTouch(reactTag, targetX, targetY, callback);
<ide> }
<ide>
<del> /**
<del> * Check if the ... | 2 |
Ruby | Ruby | add readable disk space, numbers methods | a96a9004f4600ed71b0d9f6a22fbc9b2a2fe41f8 | <ide><path>Library/Homebrew/utils.rb
<ide> def private_repo?(user, repo)
<ide> open(uri) { |json| json["private"] }
<ide> end
<ide> end
<add>
<add>def disk_usage_readable(size_in_bytes)
<add> len = size_in_bytes.to_s.length
<add> case
<add> when len > 9
<add> sym, unit = ["G", 1_073_741_824]
<add> when len... | 1 |
Python | Python | fix tensorflow t5 with int64 input | 707105290b0825c8fd01c977d33ec8f8833c937f | <ide><path>src/transformers/models/t5/modeling_tf_t5.py
<ide> def _shift_right(self, input_ids):
<ide> ), "self.model.config.decoder_start_token_id has to be defined. In TF T5 it is usually set to the pad_token_id. See T5 docs for more information"
<ide>
<ide> start_tokens = tf.fill((shape_list(input_i... | 1 |
Javascript | Javascript | upgrade nodehotupdatechunktemplateplugin to es6 | 5aa522d5be9a207bfce7f2c97eed2d8ec6b77698 | <ide><path>lib/node/NodeHotUpdateChunkTemplatePlugin.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>var ConcatSource = require("webpack-sources").ConcatSource;
<add>"use strict";
<ide>
<del>function NodeHotUpdateChunkTemplatePlugin() {}
<del>m... | 1 |
Python | Python | use zip instead of range in piecewise | 3e261be81a5f2645ffc4c1e79a5dccc65a216669 | <ide><path>numpy/lib/function_base.py
<ide> def piecewise(x, condlist, funclist, *args, **kw):
<ide> )
<ide>
<ide> y = zeros(x.shape, x.dtype)
<del> for k in range(n):
<del> item = funclist[k]
<del> if not isinstance(item, collections.abc.Callable):
<del> y[condlist[k]] = item
<... | 1 |
Python | Python | simplify the annotations of `np.version` | 0f6feaa9c619251a0c62fb7baa49c369069340d9 | <ide><path>numpy/version.py
<add>from __future__ import annotations
<add>
<ide> from ._version import get_versions
<ide>
<ide> __ALL__ = ['version', '__version__', 'full_version', 'git_revision', 'release']
<ide>
<del>vinfo = get_versions()
<del>version: str = vinfo["version"]
<add>vinfo: dict[str, str] = get_version... | 1 |
Java | Java | fix usage of java8 api | 37c04bd9c8d7a1269d1088af935a5571cb6887bc | <ide><path>spring-context/src/main/java/org/springframework/context/event/ApplicationListenerMethodAdapter.java
<ide> private String getInvocationErrorMessage(Object bean, String message, Object[] r
<ide>
<ide>
<ide> private ResolvableType resolveDeclaredEventType() {
<del> Parameter[] parameters = this.method.getP... | 1 |
Javascript | Javascript | remove unused vars from http/https tests | bc5b89f9ca467f0bea81ef5af19e7db3f75f234c | <ide><path>test/parallel/test-http-client-timeout-agent.js
<ide> require('../common');
<ide> var assert = require('assert');
<ide> var http = require('http');
<ide>
<del>var request_number = 0;
<ide> var requests_sent = 0;
<ide> var requests_done = 0;
<ide> var options = {
<ide> var server = http.createServer(function... | 5 |
Python | Python | add method get_record | 67aed49f927bc92bb2e4fd2e01fbd8a787115e35 | <ide><path>libcloud/dns/drivers/rcodezero.py
<ide> def get_zone(self, zone_id):
<ide>
<ide> return self._to_zone(response.object)
<ide>
<add> def get_record(self, zone_id, record_id):
<add> """
<add> Return a Record instance.
<add>
<add> :param zone_id: ID of the required zone
<add> ... | 1 |
Python | Python | maintain support for empty docbin span groups | 31a5d99efa39ad14fdefe4b48bb45d3f4d97c8fa | <ide><path>spacy/tokens/_serialize.py
<ide> def get_docs(self, vocab: Vocab) -> Iterator[Doc]:
<ide> doc = Doc(vocab, words=tokens[:, orth_col], spaces=spaces) # type: ignore
<ide> doc = doc.from_array(self.attrs, tokens) # type: ignore
<ide> doc.cats = self.cats[i]
<del> ... | 1 |
Javascript | Javascript | simplify emptyview and itemviewclass lookups | faed7a64417f5712ad356289a3c0b2068c50bf4e | <ide><path>packages/ember-views/lib/views/collection_view.js
<ide> Ember.CollectionView = Ember.ContainerView.extend(/** @scope Ember.CollectionVie
<ide> addedViews = [], view, item, idx, len;
<ide>
<ide> if ('string' === typeof itemViewClass) {
<del> var newItemViewClass = get(itemViewClass);
<del> ... | 1 |
Javascript | Javascript | add rudimentary test renderer | 50982cea99fcb12d9a2f4bda82ab6735b5fc0149 | <ide><path>src/renderers/testing/ReactTestMount.js
<add>/**
<add> * Copyright (c) 2015-present, Facebook, Inc.
<add> * All rights reserved.
<add> *
<add> * This source code is licensed under the BSD-style license found in the
<add> * LICENSE file in the root directory of this source tree. An additional grant
<add> * of... | 4 |
PHP | PHP | remove unused import | 0ec8c170c8604eb4ae55988b0f97dced8fef6a6f | <ide><path>src/Illuminate/Http/Resources/Json/JsonResource.php
<ide>
<ide> use ArrayAccess;
<ide> use JsonSerializable;
<del>use Illuminate\Support\Collection;
<ide> use Illuminate\Container\Container;
<ide> use Illuminate\Contracts\Support\Arrayable;
<ide> use Illuminate\Contracts\Routing\UrlRoutable; | 1 |
Python | Python | add cli to setup.py | afb94e5702d8a8c73498c1e9574b0525bed96ac3 | <ide><path>setup.py
<ide>
<ide> PACKAGES = [
<ide> 'spacy',
<add> 'spacy.cli',
<ide> 'spacy.tokens',
<ide> 'spacy.en',
<ide> 'spacy.de', | 1 |
Python | Python | remove duplicated sentence in numpy.multiply | 075270a145aed66514af1cd9662aef235dc99448 | <ide><path>numpy/core/code_generators/ufunc_docstrings.py
<ide> def add_newdoc(place, name, doc):
<ide> Returns
<ide> -------
<ide> y : ndarray
<del> The product of `x1` and `x2`, element-wise. Returns a scalar if
<del> both `x1` and `x2` are scalars.
<add> The product of `x1` and `x2`,... | 1 |
Ruby | Ruby | fix logger silencing for broadcasted loggers | 2518bda97cbbcb33dc9a92e70d5b01c09e64d12d | <ide><path>activesupport/lib/active_support/logger.rb
<ide> require 'active_support/logger_silence'
<add>require 'active_support/logger_thread_safe_level'
<ide> require 'logger'
<ide>
<ide> module ActiveSupport
<ide> class Logger < ::Logger
<add> include ActiveSupport::LoggerThreadSafeLevel
<ide> include Logg... | 4 |
Go | Go | add the health check to mount_test | 137af244ee561bd350797c8ce6e159fbd46b6a02 | <ide><path>mount_test.go
<ide> import (
<ide> "testing"
<ide> )
<ide>
<add>// Look for inconsistencies in a store.
<add>func healthCheck(store *Store) error {
<add> parents := make(map[string]bool)
<add> paths, err := store.Paths()
<add> if err != nil {
<add> return err
<add> }
<add> for _, path := range paths {
<ad... | 1 |
Mixed | Python | simplify pipe analysis | b40f44419b03010d7eb14d255f9bfc99c3cad637 | <ide><path>spacy/errors.py
<ide> class Warnings:
<ide> "have the spacy-lookups-data package installed.")
<ide> W024 = ("Entity '{entity}' - Alias '{alias}' combination already exists in "
<ide> "the Knowledge Base.")
<del> W025 = ("'{name}' requires '{attr}' to be assigned, but none of th... | 6 |
Text | Text | add section about doc testing | f45ac11fb32ba17e3e1fa831c30438ff9972a1ee | <ide><path>docs/README.md
<ide> check how they look like before committing for instance). You don't have to comm
<ide>
<ide> ## Building the documentation
<ide>
<del>Once you have setup the `doc-builder` and additional packages, you can generate the documentation by typing th
<del>following command:
<add>Once you hav... | 1 |
Text | Text | add return 0; in example | 67500917089daa1de994db4f9a4bf276fd5d74c7 | <ide><path>guide/english/c/for/index.md
<ide> int main() {
<ide> for (int i = 0; i < 5; ++i) {
<ide> printf("Item on index %d is %d\n", i, array[i]);
<ide> }
<del>
<add>
<ide> return 0;
<ide> }
<ide> ```
<ide> int main () {
<ide> for (int i = 0; i < 5; i--) {
<ide> printf("%d \n", i);
<... | 1 |
Ruby | Ruby | generate environment dependent asset digests | ed5c6d254c9ef5d44a11159561fddde7a3033874 | <ide><path>actionpack/lib/sprockets/railtie.rb
<ide> class Railtie < ::Rails::Railtie
<ide> app.assets = Sprockets::Environment.new(app.root.to_s) do |env|
<ide> env.static_root = File.join(app.root.join('public'), config.assets.prefix)
<ide> env.logger = ::Rails.logger
<add> env.version = ... | 2 |
Javascript | Javascript | remove unused helper function | bc47ba53b499a968db1c7eae019b36769fa5e922 | <ide><path>packages/ember-handlebars/tests/controls/select_test.js
<ide> module("Ember.Select", {
<ide> }
<ide> });
<ide>
<del>function setAndFlush(view, key, value) {
<del> Ember.run(function() {
<del> Ember.set(view, key, value);
<del> });
<del>}
<del>
<ide> function append() {
<ide> Ember.run(function() {
... | 1 |
Go | Go | change forbidden error (403) to conflict(409) | 31e8fcc67808488e9aade681a831d748df1af8a5 | <ide><path>daemon/container_operations.go
<ide> func (daemon *Daemon) findAndAttachNetwork(container *container.Container, idOrN
<ide> networkName := n.Name()
<ide> containerName := strings.TrimPrefix(container.Name, "/")
<ide> if network, ok := container.NetworkSettings.Networks[networkName]; ok && network.En... | 1 |
Text | Text | fix typo in man page | 3a4775cb8003324d9aed5bfbe23f58eb0ca5bb41 | <ide><path>man/docker-build.1.md
<ide> cloned locally and then sent as the context.
<ide> name and value of a **buildarg**.
<ide>
<ide> For example, if you want to pass a value for `http_proxy`, use
<del> `--bulid-arg=http_proxy="http://some.proxy.url"`
<add> `--build-arg=http_proxy="http://some.proxy.url"`
... | 1 |
Python | Python | use new lemmatizer data and remove file import | 1da29a7146f2a8b8f60e1dcf5599dddb67612b95 | <ide><path>spacy/lemmatizer.py
<ide>
<ide> import ujson as json
<ide>
<add>from .en.lemmatizer import INDEX, EXC, RULES
<ide> from .symbols import POS, NOUN, VERB, ADJ, PUNCT
<ide>
<ide>
<ide> class Lemmatizer(object):
<ide> @classmethod
<ide> def load(cls, path, rules=None):
<del> index = {}
<del> ... | 2 |
Mixed | Go | add token pass-thru for authconfig | 8dce8e9901501863a80caf47d71713d4d36925a3 | <ide><path>cliconfig/config.go
<ide> type AuthConfig struct {
<ide> Auth string `json:"auth"`
<ide> Email string `json:"email"`
<ide> ServerAddress string `json:"serveraddress,omitempty"`
<add> RegistryToken string `json:"registrytoken,omitempty"`
<ide> }
<ide>
<ide> // ConfigFile ~/.docker/config.... | 5 |
PHP | PHP | apply fixes from styleci | 6a42e1216210b3ad3f738ab27e51e850190d9a1f | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> public function hydrate(array $items)
<ide>
<ide> $model->preventsLazyLoading = Model::preventsLazyLoading();
<ide>
<del>
<ide> return $model;
<ide> }, $items));
<ide> }
<ide><path>src/Illuminate/Database/Eloquent/Concer... | 3 |
Python | Python | remove obsolete defines | 4f22b8e666e1a4083ee9053c7d3516891b2e6c96 | <ide><path>numpy/core/setup.py
<ide> def generate_config_h(ext, build_dir):
<ide> else:
<ide> target_f.write('#define %s %s\n' % (d[0],d[1]))
<ide>
<del> # Keep those for backward compatibility for now
<del> target_f.write("""
<del>#ifdef HAVE_EXPL
<del>#define... | 1 |
Javascript | Javascript | remove resetpose functionality | abdd1713c606135bc35028c6021698b52f27872b | <ide><path>examples/js/controls/VRControls.js
<ide> THREE.VRControls = function ( object, onError ) {
<ide>
<ide> };
<ide>
<del> this.resetPose = function () {
<del>
<del> if ( vrDisplay ) {
<del>
<del> vrDisplay.resetPose();
<del>
<del> }
<del>
<del> };
<del>
<del> this.resetSensor = function () {
<del>
<del> ... | 1 |
Python | Python | fix auto assigning of volume device in openstack | 25473a8fb9003ee15e5f4d17c2725a5be1540449 | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def destroy_volume(self, volume):
<ide> def attach_volume(self, node, volume, device="auto"):
<ide> # when "auto" or None is provided for device, openstack will let
<ide> # the guest OS pick the next available device (fi. /dev/vdb)
<add> ... | 1 |
Go | Go | remove duplicated error judgement in cluster.go | 75c51ad76b0b5995e9349cb369c9e8664f40855c | <ide><path>daemon/cluster/cluster.go
<ide> func (c *Cluster) Inspect() (types.Swarm, error) {
<ide> return types.Swarm{}, err
<ide> }
<ide>
<del> if err != nil {
<del> return types.Swarm{}, err
<del> }
<del>
<ide> return convert.SwarmFromGRPC(*swarm), nil
<ide> }
<ide> | 1 |
Python | Python | fix begin_training if get_gold_tuples is none | bfe17b7df1192238b8c122cfd3b2c74bca9d0249 | <ide><path>examples/training/train_intent_parser.py
<ide> def main(model=None, output_dir=None, n_iter=100):
<ide>
<ide> other_pipes = [pipe for pipe in nlp.pipe_names if pipe != 'parser']
<ide> with nlp.disable_pipes(*other_pipes): # only train parser
<del> optimizer = nlp.begin_training(lambda: [])
<... | 6 |
Text | Text | add information to the second paragraph. | 226de565f1ba229a07613ae465a72f7b07340339 | <ide><path>guide/english/html/index.md
<ide> HTML5 introduced a host of semantic elements. As discussed, HTML provides meanin
<ide> </body>
<ide> </html>
<ide> ```
<add>In HTML tags come in pairs, as seen above. The first tag in a pair is called the *start tag* or the *opening tag*,and the second tag is called the *end... | 1 |
Javascript | Javascript | add tthey and xthey to ddescribe-iit check | 2404b77e481bf60e0c836107ca4e07aa8e2ad6d3 | <ide><path>Gruntfile.js
<ide> module.exports = function(grunt) {
<ide> 'test/**/*.js',
<ide> '!test/ngScenario/DescribeSpec.js',
<ide> '!src/ng/directive/attrs.js', // legitimate xit here
<del> '!src/ngScenario/**/*.js'
<del> ]
<add> '!src/ngScenario/**/*.js',
<add> '!t... | 1 |
Go | Go | change syslog format and facility | 05641ccffc5088a382fa3bfb21f1276ccb6c1fc0 | <ide><path>daemon/logger/syslog/syslog.go
<ide> type Syslog struct {
<ide> }
<ide>
<ide> func New(tag string) (logger.Logger, error) {
<del> log, err := syslog.New(syslog.LOG_USER, fmt.Sprintf("%s: <%s> ", path.Base(os.Args[0]), tag))
<add> log, err := syslog.New(syslog.LOG_DAEMON, fmt.Sprintf("%s/%s", path.Base(os.Ar... | 1 |
Mixed | Text | update docstrings and docs [ci skip] | 64f2f840983576f49f9c03f88a13e68a44650ea2 | <ide><path>spacy/pipeline/textcat.py
<ide> def predict(self, docs: Iterable[Doc]):
<ide> return scores
<ide>
<ide> def set_annotations(self, docs: Iterable[Doc], scores) -> None:
<del> """Modify a batch of documents, using pre-computed scores.
<add> """Modify a batch of [`Doc`](/api/doc) obje... | 11 |
Javascript | Javascript | translate statcmp.py to javascript | d7aba7b98b0a733a10c328bd62aefde915691732 | <ide><path>test/stats/statcmp.js
<add>/*jslint node: true */
<add>
<add>'use strict';
<add>
<add>var fs = require('fs');
<add>
<add>try {
<add> var ttest = require('ttest');
<add>} catch (e) {
<add> console.log('\nttest is not installed -- to intall, run "npm install ttest"');
<add> console.log('Continuing without s... | 1 |
Javascript | Javascript | note limitations with ipv6 addresses | 0633d8f2b0ac6cbad1c637768258b1f72994a614 | <ide><path>src/ng/directive/input.js
<ide> var inputType = {
<ide> *
<ide> * <div class="alert alert-warning">
<ide> * **Note:** `input[email]` uses a regex to validate email addresses that is derived from the regex
<del> * used in Chromium. If you need stricter validation (e.g. requiring a top-level domain)... | 1 |
Javascript | Javascript | do nothing except disable time slicing | 48740429b4a74e984193e4e2d364d461e4fdc3be | <ide><path>packages/react-reconciler/src/ReactFiberLane.new.js
<ide> export function markStarvedLanesAsExpired(
<ide> // expiration time. If so, we'll assume the update is being starved and mark
<ide> // it as expired to force it to finish.
<ide> let lanes = pendingLanes;
<del> let expiredLanes = 0;
<ide> whil... | 10 |
Javascript | Javascript | bring query params fix up to date | 19ae330fd582ca3a9b97b70d16aceceb40f94261 | <ide><path>packages/ember-routing/lib/system/route.js
<ide> let Route = EmberObject.extend(ActionHandler, Evented, {
<ide> } else {
<ide> if (presentKey) {
<ide> svalue = params[presentKey];
<del> value = route.deserializeQueryParam(svalue, qp.urlKey, qp.type);
<add>
<add> ... | 3 |
Javascript | Javascript | fix select test to append to right place | f0b653e37b60e62cc16a69e28575af7387c386e3 | <ide><path>packages/ember-handlebars/tests/controls/select_test.js
<ide> function setAndFlush(view, key, value) {
<ide>
<ide> function append() {
<ide> Ember.run(function() {
<del> select.appendTo('body');
<add> select.appendTo('#qunit-fixture');
<ide> });
<ide> }
<ide> | 1 |
Go | Go | provide tmpdir for applylayer | 409f65bfd1bde5e45c68e2e1ecf68016ed91426b | <ide><path>pkg/chrootarchive/diff.go
<ide> package chrootarchive
<ide> import (
<ide> "flag"
<ide> "fmt"
<add> "io/ioutil"
<ide> "os"
<ide> "runtime"
<ide> "syscall"
<ide> func applyLayer() {
<ide> if err := syscall.Chdir("/"); err != nil {
<ide> fatal(err)
<ide> }
<add> tmpDir, err := ioutil.TempDir("/", "tem... | 1 |
Javascript | Javascript | setimmediate v8 optimization fix | 7ced966a32dd18b4de2768f41796af76638341f9 | <ide><path>lib/timers.js
<ide> Immediate.prototype._idlePrev = undefined;
<ide>
<ide> exports.setImmediate = function(callback) {
<ide> var immediate = new Immediate();
<del> var args;
<add> var args, index;
<ide>
<ide> L.init(immediate);
<ide>
<ide> immediate._onImmediate = callback;
<ide>
<ide> if (argu... | 1 |
Javascript | Javascript | remove unused require from reactdom-test | bd6b10887a016f4f72f0acf89053a44c3241eafe | <ide><path>src/browser/__tests__/ReactDOM-test.js
<ide> "use strict";
<ide>
<ide> var React = require('React');
<del>var ReactDOM = require('ReactDOM');
<ide> var ReactTestUtils = require('ReactTestUtils');
<ide> var div = React.createFactory('div');
<ide> | 1 |
Javascript | Javascript | fix flaky interval test | 8d043238dee18c7356f28133e1d353048a14c7ee | <add><path>test/sequential/test-timers-set-interval-excludes-callback-duration.js
<del><path>test/sequential/test-timers-setInterval-excludes-callback-duration.js
<ide> const Timer = process.binding('timer_wrap').Timer;
<ide> const assert = require('assert');
<ide>
<ide> let cntr = 0;
<del>let first, second;
<add>let ... | 1 |
Javascript | Javascript | add test for fork() + shell | 688765a3c97378da473db7517e39d8c1dd2fea1c | <ide><path>test/parallel/test-child-process-fork-no-shell.js
<add>'use strict';
<add>// This test verifies that the shell option is not supported by fork().
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const cp = require('child_process');
<add>const expected = common.isWindows ?... | 1 |
PHP | PHP | fix doc block | 752da212b1775aaac9ac986999ecce176a659c0e | <ide><path>src/Network/Session.php
<ide> class Session
<ide> /**
<ide> * The Session handler instance used as an engine for persisting the session data.
<ide> *
<del> * @var \SessionHandlerInterface
<add> * @var \SessionHandlerInterface|null
<ide> */
<ide> protected $_engine;
<ide> | 1 |
PHP | PHP | fix mysql unions with parens | ea1d3c89311e763d6c78d17325d21f2ad4614c1c | <ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php
<ide> protected function compileUnions(Builder $query)
<ide>
<ide> foreach ($query->unions as $union)
<ide> {
<del> $joiner = $union['all'] ? ' union all ' : ' union ';
<del>
<del> $sql .= $joiner.$union['query']->toSql();
<add> $sql .= $this->com... | 3 |
PHP | PHP | fix stupid mistakes and remove default precision | a4225bc9a21a84e8c3652ae077898a4d1b3cd533 | <ide><path>lib/Cake/Database/Schema/MysqlSchema.php
<ide> public function columnSql(Table $table, $name) {
<ide> in_array($data['type'], $hasPrecision, true) &&
<ide> (isset($data['length']) || isset($data['precision']))
<ide> ) {
<del> $data += ['length' => 11, 'precision' => 3];
<del> $out .= '(' . (int)$... | 2 |
Go | Go | remove dead code | 76ebd3dd179444b4a464db6e970030dd695cf5a1 | <ide><path>pkg/term/term_windows.go
<ide> package term
<ide>
<ide> import (
<del> "fmt"
<ide> "io"
<ide> "os"
<ide> "os/signal"
<ide> "syscall"
<ide>
<ide> "github.com/Azure/go-ansiterm/winterm"
<del> "github.com/Sirupsen/logrus"
<ide> "github.com/docker/docker/pkg/system"
<ide> "github.com/docker/docker/pkg/t... | 1 |
Javascript | Javascript | fix action targeting when there is no view | b325125a1f54c2e4a6e034da5ebfb55b15c8db2f | <ide><path>packages/ember-routing-htmlbars/lib/keywords/action.js
<ide> export default {
<ide> target = read(hash.target);
<ide> }
<ide> } else {
<del> target = get(env.view, 'controller');
<add> target = get(env.view, 'controller') || read(scope.self);
<ide> }
<ide>
<ide> return { ... | 5 |
Javascript | Javascript | use strings for challengemap | cfb5f06cdff1fab70bcbad3329913ddca1047e2c | <ide><path>public/js/main_0.0.2.js
<ide> $(document).ready(function() {
<ide> });
<ide>
<ide> var challengeTypes = {
<del> 'HTML_CSS_JQ': 0,
<del> 'JAVASCRIPT': 1,
<del> 'VIDEO': 2,
<del> 'ZIPLINE': 3,
<del> 'BASEJUMP': 4,
<del> 'BONFIRE': 5
<add> 'HTML_CSS_JQ': '0',
<add> 'JAVASCRIPT': '1'... | 1 |
Javascript | Javascript | remove paypal credit button | 1519e7016546af065806f9a02ab20d17c13bcbec | <ide><path>client/src/components/Donation/PaypalButton.js
<ide> export class PaypalButton extends Component {
<ide> }
<ide> options={{
<ide> vault: true,
<del> disableFunding: 'card',
<add> disableFunding: 'credit,card',
<ide> clientId: paypalClientId
<i... | 1 |
Java | Java | defer charset.availablecharsets() call | 90477b40a4b92c357184cc182f546ce742b1ffa1 | <ide><path>spring-web/src/main/java/org/springframework/http/converter/StringHttpMessageConverter.java
<ide> public class StringHttpMessageConverter extends AbstractHttpMessageConverter<Str
<ide> public static final Charset DEFAULT_CHARSET = StandardCharsets.ISO_8859_1;
<ide>
<ide>
<del> private final List<Charset> ... | 1 |
PHP | PHP | fix empty clauses causing errors in matching() | ffb14bcd5317e7610880795f37fd16696e068415 | <ide><path>src/Database/Query.php
<ide> protected function _decorateStatement($statement)
<ide> */
<ide> protected function _conjugate($part, $append, $conjunction, $types)
<ide> {
<add> $expression = $this->_parts[$part] ?: $this->newExpr();
<ide> if (empty($append)) {
<add> $thi... | 3 |
Python | Python | add seed setting to image classification example | 88a0ce57bb6f2e76b45b07de3c8c1df832af9d10 | <ide><path>examples/pytorch/image-classification/run_image_classification.py
<ide> HfArgumentParser,
<ide> Trainer,
<ide> TrainingArguments,
<add> set_seed,
<ide> )
<ide> from transformers.trainer_utils import get_last_checkpoint
<ide> from transformers.utils import check_min_version, send_example_teleme... | 1 |
PHP | PHP | fix tests that failed on merge | 6f83e8690f1df9e0482b3e4804347fd8675a5e54 | <ide><path>src/TestSuite/EmailTrait.php
<ide> public function assertMailContainsHtml(string $contents, string $message = ''):
<ide> /**
<ide> * Asserts an email contains an expected text content
<ide> *
<del> * @param string $contents Expected text.
<add> * @param string $expected Expected text.
<... | 2 |
Python | Python | add limit for jpype1 | 3699be49b24ef5a0a8d8de81a149af2c5a7dc206 | <ide><path>setup.py
<ide> def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version
<ide> ]
<ide> jdbc = [
<ide> 'jaydebeapi>=1.1.1',
<add> # JPype1 has been published without sdist in PyPI which caused failures when trying to build an
<add> # ARM image (JPype1 does not publish binary A... | 1 |
PHP | PHP | add index => viewany to resourceabilitymap | cda913232649edcf7dd1dc592dda81190bd4efe7 | <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 | add template fields to dynamodbtos3operator | a150ee0bc124f21b99fa94adbb16e6ccfe654ae4 | <ide><path>airflow/providers/amazon/aws/transfers/dynamodb_to_s3.py
<ide> from copy import copy
<ide> from os.path import getsize
<ide> from tempfile import NamedTemporaryFile
<del>from typing import IO, TYPE_CHECKING, Any, Callable, Dict, Optional
<add>from typing import IO, TYPE_CHECKING, Any, Callable, Dict, Optiona... | 1 |
Go | Go | synchronize datastore apis | a6c2dd75b5a93a473fb72c12b91c1edaadad2655 | <ide><path>libnetwork/datastore/datastore.go
<ide> import (
<ide> "log"
<ide> "reflect"
<ide> "strings"
<add> "sync"
<ide>
<ide> "github.com/docker/libkv"
<ide> "github.com/docker/libkv/store"
<ide> type datastore struct {
<ide> scope string
<ide> store store.Store
<ide> cache *cache
<add> sync.Mutex
<ide> }
<... | 1 |
Go | Go | add no prune to rmi | edd8d2d3511b0b632149d1c1f2cfd2bad2df4679 | <ide><path>api/client.go
<ide> func (cli *DockerCli) CmdPort(args ...string) error {
<ide> // 'docker rmi IMAGE' removes all images with the name IMAGE
<ide> func (cli *DockerCli) CmdRmi(args ...string) error {
<ide> var (
<del> cmd = cli.Subcmd("rmi", "IMAGE [IMAGE...]", "Remove one or more images")
<del> force =... | 3 |
Ruby | Ruby | remove unused user_controller from test | fa5b34ed227d81c105495658fe3b9741b2eff489 | <ide><path>actionpack/test/controller/action_pack_assertions_test.rb
<ide> def show
<ide> end
<ide> end
<ide>
<del>class UserController < ActionController::Base
<del>end
<del>
<ide> module Admin
<ide> class InnerModuleController < ActionController::Base
<ide> def index | 1 |
Python | Python | use integer disk size for vsphere nodesize | 76823a428f4ecdc43355195c400eae8def80971f | <ide><path>libcloud/compute/drivers/vsphere.py
<ide> def _to_node(self, vm):
<ide> path = vm.get('summary.config.vmPathName')
<ide> memory = vm.get('summary.config.memorySizeMB')
<ide> cpus = vm.get('summary.config.numCpu')
<del> disk = vm.get('summary.storage.committed', 0) / (1024 ** 3)... | 1 |
Ruby | Ruby | add notes for future selves | cf423f8f767895d608284acb3543f7c9ba15ccf4 | <ide><path>actioncable/lib/rails/generators/channel/channel_generator.rb
<ide> def file_name
<ide> @_file_name ||= super.gsub(/\_channel/i, '')
<ide> end
<ide>
<add> # FIXME: Change these files to symlinks once RubyGems 2.5.0 is required.
<ide> def generate_application_cable_files
<ide... | 2 |
Go | Go | pass the vxlan port in network endian order | 960639fbb9e2d7d21cc4a0a9496e8ca9e998efc3 | <ide><path>libnetwork/drivers/overlay/ov_utils.go
<ide> import (
<ide> "github.com/docker/libnetwork/netutils"
<ide> "github.com/docker/libnetwork/types"
<ide> "github.com/vishvananda/netlink"
<add> "github.com/vishvananda/netlink/nl"
<ide> )
<ide>
<ide> func validateID(nid, eid types.UUID) error {
<ide> func creat... | 1 |
Javascript | Javascript | add error for , add recommendations for errors | 8bc25f65e60001861a2c9f9962ddfbe3a5aa9025 | <ide><path>lib/RuleSet.js
<ide> RuleSet.normalizeRule = function(rule, refs) {
<ide> }
<ide>
<ide> if(rule.loader && rule.loaders)
<del> throw new Error("Provided loader and loaders for rule");
<add> throw new Error(RuleSet.buildErrorMessage(rule, new Error("Provided loader and loaders for rule (use only one of th... | 1 |
Text | Text | release notes for 1.0 temporal-domination release | 6dfe5be1556dc0c770cea8af78d1e0829ed24848 | <ide><path>CHANGELOG.md
<del><a name="v1.0.0rc12"></a>
<add><a name="1.0.0"></a>
<add># 1.0.0 temporal-domination (2012-06-13)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$location:**
<add> - correctly parse link urls in hashbang mode with a prefix
<add> ([0f44964e](https://github.com/angular/angular.js/commit/0f44... | 1 |
Ruby | Ruby | move xcode and clt modules to a new file | a784d2e045af20938b64a580be920362a74cd6ce | <ide><path>Library/Homebrew/macos.rb
<ide> def pkgutil_info id
<ide> end
<ide> end
<ide>
<del>module MacOS::Xcode extend self
<del>
<del> V4_BUNDLE_ID = "com.apple.dt.Xcode"
<del> V3_BUNDLE_ID = "com.apple.Xcode"
<del> V4_BUNDLE_PATH = Pathname.new("/Applications/Xcode.app")
<del> V3_BUNDLE_PATH = Pathname.new("... | 2 |
PHP | PHP | fix failing tests caused by incorrect mocks | d63d51e3dd8ab502e853b71d313b5607be36837a | <ide><path>lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php
<ide> public function testGetEncoding() {
<ide> * @return void
<ide> */
<ide> public function testFieldDoubleEscaping() {
<add> $db = $this->Dbo->config['database'];
<ide> $test = $this->getMock('Mysql', array('connect', '_execute', 'execute'))... | 1 |
Text | Text | clarify subprocess.stdout/in/err property | a324ea03d94236c76a863bd4acf08fee1f7dc6b9 | <ide><path>doc/api/child_process.md
<ide> in which the child process is launched.
<ide> added: v0.1.90
<ide> -->
<ide>
<del>* {stream.Readable}
<add>* {stream.Readable|null|undefined}
<ide>
<ide> A `Readable Stream` that represents the child process's `stderr`.
<ide>
<ide> then this will be `null`.
<ide> `subprocess... | 1 |
PHP | PHP | fix bug in url generation | 0012f28f88f19037fbea71a60c162d69903ceea7 | <ide><path>src/Illuminate/Routing/UrlGenerator.php
<ide> protected function replaceRouteParameters($path, array $parameters)
<ide> $path = $this->replaceRouteParameter($path, $key, $value, $parameters);
<ide> }
<ide>
<del> return $path.$this->getRouteQueryString($parameters);
<add> $path = preg_replace('/\{.*?\... | 2 |
Ruby | Ruby | use new pour_bottle dsl | f2faf49e3f189885c6787f7d4beb680c3a987d4f | <ide><path>Library/Homebrew/formula_installer.rb
<ide> def pour_bottle?(install_bottle_options = { :warn=>false })
<ide> return false unless options.empty?
<ide> return false if formula.bottle_disabled?
<ide> return true if formula.local_bottle_path
<del> return false unless formula.pour_bottle?
<add> ... | 1 |
PHP | PHP | add methods to caketestcase | bd0104d9727c8c15d01694ee52615b90103f2664 | <ide><path>lib/Cake/Test/Case/TestSuite/CakeTestCaseTest.php
<ide> App::uses('Controller', 'Controller');
<ide> App::uses('CakeHtmlReporter', 'TestSuite/Reporter');
<ide>
<del>if (!class_exists('AppController', false)) {
<del> require_once CAKE . 'Controller' . DS . 'AppController.php';
<del>} elseif (!defined('APP_CO... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.