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 |
|---|---|---|---|---|---|
Javascript | Javascript | add dutch locale | 4c6b47ff932ddd5a0d3e72c8105e4b2826dc8b1b | <ide><path>src/locale/nl-NL.js
<add>import "locale";
<add>
<add>d3.locale.nl_NL = d3.locale({
<add> decimal: ",",
<add> thousands: ".",
<add> grouping: [3],
<add> currency: ["€ ", ""],
<add> dateTime: "%a %e %B %Y %T",
<add> date: "%d-%m-%Y",
<add> time: "%H:%M:%S",
<add> periods: ["AM", "PM"], // unused
<add> ... | 1 |
Python | Python | add skip logic for attentions test - levit | fd1e67033e9ef79a9a2211f9a97c2ebbf0332b57 | <ide><path>tests/models/levit/test_modeling_levit.py
<ide> def test_inputs_embeds(self):
<ide> def test_model_common_attributes(self):
<ide> pass
<ide>
<add> @unittest.skip(reason="Levit does not output attentions")
<add> def test_attention_outputs(self):
<add> pass
<add>
<ide> def test_fo... | 1 |
Ruby | Ruby | raise custom error on empty join | 33d0d962b777a98f3bdda0be41ee03acc0410676 | <ide><path>lib/arel.rb
<add>require 'arel/errors'
<add>
<ide> require 'arel/crud'
<ide> require 'arel/factory_methods'
<ide>
<ide><path>lib/arel/errors.rb
<add>module Arel
<add> class ArelError < StandardError
<add> end
<add>
<add> class EmptyJoinError < ArelError
<add> end
<add>end
<ide><path>lib/arel/select_mana... | 6 |
PHP | PHP | fix remaining deprecations for table methods | 990eb1cda3edc1595e630b398702bb0a62070ccc | <ide><path>tests/TestCase/Auth/FormAuthenticateTest.php
<ide> public function testAuthenticateSuccess()
<ide> public function testAuthenticateIncludesVirtualFields()
<ide> {
<ide> $users = TableRegistry::get('Users');
<del> $users->entityClass('TestApp\Model\Entity\VirtualUser');
<add> $us... | 4 |
Javascript | Javascript | add renovationfind app to the showcase | 74eb9a8bb3df1b4164525e87b0c8987db1f58304 | <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: 'RenovationFind',
<add> icon: 'http://a2.mzstatic.com/us/r30/Purple3/v4/4f/89/af/4f89af72-9733-2f5... | 1 |
Ruby | Ruby | remove useless conditional | 9d549986dd67df15ae45bb679ef1d9b40b4a1252 | <ide><path>activerecord/lib/active_record/transactions.rb
<ide> def restore_transaction_record_state(force = false) #:nodoc
<ide> @_start_transaction_state[:level] = (@_start_transaction_state[:level] || 0) - 1
<ide> if @_start_transaction_state[:level] < 1
<ide> restore_state = remove_instanc... | 1 |
Ruby | Ruby | fix an error when using multiple gid identifiers | e95e598b43d4468107b23097e44700275d11af5e | <ide><path>lib/action_cable/connection/identification.rb
<ide> def connection_identifier
<ide> def connection_gid(ids)
<ide> ids.map do |o|
<ide> if o.respond_to? :to_global_id
<del> o.to_global_id
<add> o.to_global_id.to_s
<ide> else
<ide> ... | 1 |
Ruby | Ruby | avoid assignment in argument list | 2633f888d40314dee794dfba614c6e42f97f8c8a | <ide><path>Library/Homebrew/extend/ARGV.rb
<ide> def resolved_formulae
<ide> f = Formulary.factory(name, spec)
<ide> if f.any_version_installed?
<ide> tab = Tab.for_formula(f)
<del> resolved_spec = spec(default=nil) || tab.spec
<add> resolved_spec = spec(nil) || tab.spec
<ide... | 1 |
PHP | PHP | fix description | fe48f2cff966e1193aab240ffb4c90072aed89e6 | <ide><path>src/Illuminate/Queue/Middleware/ThrottlesExceptions.php
<ide> public function withPrefix(string $prefix)
<ide> }
<ide>
<ide> /**
<del> * Specify the number of seconds a job should be delayed when it is released (before it has reached its max exceptions).
<add> * Specify the number of minutes... | 1 |
Python | Python | use unicode internally everywhere for 'repr' | 72e08a3e8b6427cb93f0f98b42724e31e5b3d8f9 | <ide><path>rest_framework/compat.py
<ide> import django
<ide>
<ide>
<add>def unicode_repr(instance):
<add> # Get the repr of an instance, but ensure it is a unicode string
<add> # on both python 3 (already the case) and 2 (not the case).
<add> if six.PY2:
<add> repr(instance).decode('utf-8')
<add> ... | 8 |
Text | Text | add translation for titles | 6beda74bae1e916594eb585de89c08a98dcd8e34 | <ide><path>curriculum/challenges/portuguese/03-front-end-libraries/jquery/change-text-inside-an-element-using-jquery.portuguese.md
<ide> videoUrl: ''
<ide> localeTitle: Alterar texto dentro de um elemento usando jQuery
<ide> ---
<ide>
<del>## Description
<add>## Descrição
<ide> <section id="description"> Usando jQuery... | 1 |
Javascript | Javascript | fix lint errors | 3b6f98b446b7ac581f555542677afd986523d1f9 | <ide><path>src/selection.js
<ide> class Selection {
<ide> // Remove trailing whitespace from the current line
<ide> const scanRange = this.cursor.getCurrentLineBufferRange()
<ide> let trailingWhitespaceRange = null
<del> this.editor.scanInBufferRange(/[ \t]+$/, scanRange, ({range}) => trailingWhi... | 1 |
PHP | PHP | update minimal.blade.php | 0361686e40835a1f48674cf884d67609018d64b4 | <ide><path>src/Illuminate/Foundation/Exceptions/views/minimal.blade.php
<ide> <div class="ml-4 text-lg text-gray-500 uppercase tracking-wider">
<ide> @yield('message')
<ide> </div>
<add> </div>
<ide> </div>
<ide> </div>
<... | 1 |
Python | Python | remove some parens in iteration | e499615c036871d42b09c96312ca0dd2da1b25c0 | <ide><path>numpy/lib/_iotools.py
<ide> def upgrade_mapper(cls, func, default=None):
<ide> else:
<ide> default = list(default)
<ide> default.append([None] * (len(func) - len(default)))
<del> for (fct, dft) in zip(func, default):
<add> for fct, dft in zip(... | 1 |
Python | Python | move db call out of ``databrickshook.__init__`` | 0b7b13372f6dbf18a35d5346d3955f65b31dd00d | <ide><path>airflow/providers/databricks/hooks/databricks.py
<ide> def __init__(
<ide> ) -> None:
<ide> super().__init__()
<ide> self.databricks_conn_id = databricks_conn_id
<del> self.databricks_conn = self.get_connection(databricks_conn_id)
<add> self.databricks_conn = None
<ide> ... | 1 |
Python | Python | use full version string for deprecated config | 4291de218e0738f32f516afe0f9d6adce7f3220d | <ide><path>airflow/configuration.py
<ide> class AirflowConfigParser(ConfigParser):
<ide> ('core', 'max_active_tasks_per_dag'): ('core', 'dag_concurrency', '2.2.0'),
<ide> ('logging', 'worker_log_server_port'): ('celery', 'worker_log_server_port', '2.2.0'),
<ide> ('api', 'access_control_allow_ori... | 1 |
Ruby | Ruby | fix some validators when used on model instance | 088c11658aa6b79d05e9014201d585c7700669aa | <ide><path>activemodel/lib/active_model/validations/with.rb
<ide> def validates_with(*args, &block)
<ide> # class version of this method for more information.
<ide> def validates_with(*args, &block)
<ide> options = args.extract_options!
<add> options[:class] = self.class
<add>
<ide> args.each d... | 3 |
Go | Go | add hostconfig check before starting a container | 4177b0bae04bb41dfff65ea87b2efb87811e08e6 | <ide><path>daemon/daemon_unix.go
<ide> func verifyPlatformContainerSettings(daemon *Daemon, hostConfig *runconfig.HostC
<ide> if hostConfig.LxcConf.Len() > 0 && !strings.Contains(daemon.ExecutionDriver().Name(), "lxc") {
<ide> return warnings, fmt.Errorf("Cannot use --lxc-conf with execdriver: %s", daemon.ExecutionD... | 3 |
Mixed | Python | add spacy prefix to ngram_suggester.v1 | 64fac754fee4d701d07326178d8c19c4301de963 | <ide><path>spacy/pipeline/spancat.py
<ide> DEFAULT_SPANCAT_MODEL = Config().from_str(spancat_default_config)["model"]
<ide>
<ide>
<del>@registry.misc("ngram_suggester.v1")
<add>@registry.misc("spacy.ngram_suggester.v1")
<ide> def build_ngram_suggester(sizes: List[int]) -> Callable[[List[Doc]], Ragged]:
<ide> """S... | 3 |
Go | Go | add freebsd client support | 547ac421995860f99d1d0803c3c1e7ea51dc681e | <ide><path>pkg/term/termios_bsd.go
<add>package term
<add>
<add>import (
<add> "syscall"
<add> "unsafe"
<add>)
<add>
<add>const (
<add> getTermios = syscall.TIOCGETA
<add> setTermios = syscall.TIOCSETA
<add>
<add> IGNBRK = syscall.IGNBRK
<add> PARMRK = syscall.PARMRK
<add> INLCR = syscall.INLCR
<add> IGNCR = syscall.... | 2 |
PHP | PHP | use directory_separator instead of / | 84ddb6c54c5caca72c51ea8e1006f8e0a17947ec | <ide><path>src/Mailer/Email.php
<ide> protected function _renderTemplates($content)
<ide>
<ide> foreach ($types as $type) {
<ide> $View->hasRendered = false;
<del> $View->templatePath('Email/' . $type);
<del> $View->layoutPath('Email/' . $type);
<add> $View->templat... | 1 |
Javascript | Javascript | use less code to detect replace instead of push | b0cad3370d2a3f3184f57da99313ff6c93ccf768 | <ide><path>packages/next/client/link.js
<ide> class Link extends Component {
<ide> }
<ide>
<ide> // replace state instead of push if prop is present
<del> const { replace } = this.props
<del> const changeMethod = replace ? 'replace' : 'push'
<del>
<del> // straight up redirect
<del> Router[changeMe... | 1 |
Text | Text | integrate suggested changes | 33b8e0faa0fed21ef8428da8d2709e99843b19f5 | <ide><path>docs/Updating-Software-in-Homebrew.md
<ide>
<ide> Did you find something in Homebrew that wasn't the latest version? You can help yourself and others by submitting a pull request to update the formula.
<ide>
<del>If you want to update software that is either closed source, or a GUI only program you want to... | 1 |
Text | Text | fix broken link on controlled input tip | f6f3d4262b29aa4f453998f585676eb9fff6bb50 | <ide><path>docs/tips/08-controlled-input-null-value.md
<ide> prev: children-props-type.html
<ide> next: componentWillReceiveProps-not-triggered-after-mounting.html
<ide> ---
<ide>
<del>Specifying the `value` prop on a [controlled component](/react/docs/tips/forms.html) prevents the user from changing the input unless ... | 1 |
Python | Python | add tool to find functions missing types | a08586a0a6e86148c85d09ffba167c686d52a8b0 | <ide><path>tools/functions_missing_types.py
<add>#!/usr/bin/env python
<add>import argparse
<add>import ast
<add>import importlib
<add>import os
<add>
<add>NUMPY_ROOT = os.path.dirname(os.path.join(
<add> os.path.abspath(__file__), "..",
<add>))
<add>
<add># Technically "public" functions (they don't start with an u... | 1 |
Java | Java | use repeatablecontainers.none() in annotationutils | f273fa990c5231684b0dedf4895d9e6bd8f66235 | <ide><path>spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java
<ide> public static <A extends Annotation> A getAnnotation(Annotation annotation, Clas
<ide> return null;
<ide> }
<ide> // Exhaustive retrieval of merged annotations...
<del> return MergedAnnotations.from(annotation)
<... | 2 |
Python | Python | fix linting errors | a7a152100458bdb3dfda64c875c1fea3156fab70 | <ide><path>libcloud/test/storage/test_base.py
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<ide>
<del>import sys
<ide> import errno
<ide> import hashlib
<del>
<del>from libcloud.common.base import Response
<del>from libcloud.common.exceptions import... | 3 |
Text | Text | add video link on algorithms | 3ba98401ebf01ea188463f601e5365faf1ba9df9 | <ide><path>guide/english/algorithms/index.md
<ide> This video introduces algorithms and briefly discusses some high profile uses of
<ide>
<ide> This video visually demonstrates some popular sorting algorithms that are commonly taught in programming and Computer Science courses.
<ide>
<add>[How algorithms shape our wo... | 1 |
Text | Text | add poppler to dev dependency guide [ci skip] | 410bc52fa51d99b60f5f19123458eeab33c4774a | <ide><path>guides/source/development_dependencies_install.md
<ide> Here's the list of each gems' additional dependencies:
<ide> * Action Cable depends on Redis
<ide> * Active Record depends on SQLite3, MySQL and PostgreSQL
<ide> * Active Storage depends on Yarn (additionally Yarn depends on
<del> [Node.js](https://nod... | 1 |
PHP | PHP | convert prefix names to be camelcased | 753caebd9f8de6d0e560c25f7efe683ba0d57475 | <ide><path>src/Routing/RouteBuilder.php
<ide> public function prefix(string $name, $params = [], $callback = null)
<ide> $params = [];
<ide> }
<ide> $path = '/' . Inflector::dasherize($name);
<del> $name = Inflector::underscore($name);
<add> $name = Inflector::camelize($name);
... | 5 |
Javascript | Javascript | add stack to non-error error emitted | 751fd9bbc40da8135d745631f38da5cbbb6b1c2a | <ide><path>lib/ErrorHelpers.js
<add>/*
<add> MIT License http://www.opensource.org/licenses/mit-license.php
<add> Author Tobias Koppers @sokra
<add>*/
<add>"use strict";
<add>
<add>const loaderFlag = "LOADER_EXECUTION";
<add>
<add>exports.cutOffLoaderExecution = (stack) => {
<add> stack = stack.split("\n");
<add> for(l... | 7 |
Ruby | Ruby | convert ignored_columns to a list of string | e9f82e76e83497db094fe63104f548453fbe512e | <ide><path>activerecord/lib/active_record/model_schema.rb
<ide> module ModelSchema
<ide> # If true, the default table name for a Product class will be "products". If false, it would just be "product".
<ide> # See table_name for the full rules on table/class naming. This is true, by default.
<ide>
<del> ##
<... | 3 |
Mixed | Javascript | add `ticks.precision` option to linear scale. | 9fbac8893865fc6f7efdab7f49d480e6a730c669 | <ide><path>docs/axes/cartesian/linear.md
<ide> The following options are provided by the linear scale. They are all located in
<ide> | `min` | `Number` | | User defined minimum number for the scale, overrides minimum value from data. [more...](#axis-range-settings)
<ide> | `max` | `Number` | | User defined maximum numb... | 4 |
Python | Python | fix other pytorch models | 2f3a4210185f5311f6cfab3c91b30616c9a30fc8 | <ide><path>templates/adding_a_new_model/modeling_xxx.py
<ide> def forward(self, input_ids=None, attention_mask=None, token_type_ids=None, posi
<ide> else:
<ide> raise ValueError("You have to specify either input_ids or inputs_embeds")
<ide>
<add> device = input_ids.device if input_ids is not... | 2 |
Java | Java | reinstate tests for deprecated metaannotationutils | 82fa3f3fc10c578a396ed3f97a1445f640f0b2ba | <ide><path>spring-test/src/test/java/org/springframework/test/util/MetaAnnotationUtilsTests.java
<add>/*
<add> * Copyright 2002-2020 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<a... | 2 |
Java | Java | add serverresponse.async() in webmvc.fn | 4e76a4780c4e0f5d496c9c0b75e1f9dab2d0b57c | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/function/AsyncServerResponse.java
<add>/*
<add> * Copyright 2002-2020 the original author or authors.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the Lic... | 7 |
Go | Go | simplify the creation of test directories | 5a85456d481a5f88fc0efc02c41b3bff987c0ed1 | <ide><path>runtime_test.go
<ide> package docker
<ide> import (
<ide> "bytes"
<ide> "fmt"
<add> "github.com/dotcloud/docker/engine"
<ide> "github.com/dotcloud/docker/sysinit"
<ide> "github.com/dotcloud/docker/utils"
<ide> "io"
<ide> import (
<ide> "syscall"
<ide> "testing"
<ide> "time"
<add> "net/url"
<ide> )
<i... | 4 |
Javascript | Javascript | update stats-config for release stats | 61409dd61599ed54e70a4a0bf5da04187ebe2cfb | <ide><path>.github/actions/next-stats-action/src/index.js
<ide> if (!allowedActions.has(actionInfo.actionName) && !actionInfo.isRelease) {
<ide> await checkoutRef(actionInfo.prRef, diffRepoDir)
<ide> }
<ide>
<add> if (actionInfo.isRelease) {
<add> process.env.STATS_IS_RELEASE = 'true'
<add> }
<add... | 2 |
Go | Go | move security opts to hostconfig | 294843ef23fcff3c080d9fbd12df17ae7006a9f8 | <ide><path>daemon/create.go
<ide> func (daemon *Daemon) Create(config *runconfig.Config, hostConfig *runconfig.Hos
<ide> if warnings, err = daemon.mergeAndVerifyConfig(config, img); err != nil {
<ide> return nil, nil, err
<ide> }
<del> if hostConfig != nil && config.SecurityOpt == nil {
<del> config.SecurityOpt, e... | 7 |
Go | Go | optimize pubsub.publish function | 1e0f1ec52543bc83099fb91cd34dca4d38100e6f | <ide><path>pkg/pubsub/publisher.go
<ide> func (p *Publisher) Evict(sub chan interface{}) {
<ide> // Publish sends the data in v to all subscribers currently registered with the publisher.
<ide> func (p *Publisher) Publish(v interface{}) {
<ide> p.m.RLock()
<add> if len(p.subscribers) == 0 {
<add> p.m.RUnlock()
<add> ... | 1 |
PHP | PHP | add status codes from httpstatuses.com | 1cf041841c28206d894f66dd4c7267d8ae5d82be | <ide><path>src/Network/Response.php
<ide> class Response
<ide> 206 => 'Partial Content',
<ide> 207 => 'Multi-status',
<ide> 208 => 'Already Reported',
<add> 226 => 'IM used',
<ide> 300 => 'Multiple Choices',
<ide> 301 => 'Moved Permanently',
<ide> 302 => 'Found',
<... | 1 |
Text | Text | update vggish readme for new path, soundfile | 8b479cc73ce3829903c85612d6e884fe50dd2714 | <ide><path>research/audioset/vggish/README.md
<ide> $ sudo python -m pip install --upgrade pip
<ide>
<ide> # Install dependences. Resampy needs to be installed after NumPy and SciPy
<ide> # are already installed.
<del>$ sudo pip install numpy scipy
<add>$ sudo pip install numpy scipy soundfile
<ide> $ sudo pip install... | 1 |
Python | Python | keep functions signatures in decorators | 553bb7af7cb7a50f7141b5b89297713cee6d19f6 | <ide><path>airflow/api/auth/backend/default.py
<ide> # under the License.
<ide> """Default authentication backend - everything is allowed"""
<ide> from functools import wraps
<del>from typing import Optional
<add>from typing import Callable, Optional, TypeVar, cast
<ide>
<ide> from airflow.typing_compat import Protoco... | 16 |
Python | Python | fix tag and filename conversion for conllu | e237472cdcc32276d042ce56ed0ce3cef560b37e | <ide><path>spacy/cli/converters/conllu2json.py
<ide> def conllu2json(input_path, output_path, n_sents=10, use_morphology=False):
<ide> sentences = []
<ide>
<ide> output_filename = input_path.parts[-1].replace(".conllu", ".json")
<del> output_filename = input_path.parts[-1].replace(".conll", ".json")... | 1 |
Text | Text | fix typo in #to_s deprecation in 7.0 release notes | c10d1bef13af91bfb12d13dcf3e0d8cf6b3001b6 | <ide><path>guides/source/7_0_release_notes.md
<ide> Please refer to the [Changelog][active-support] for detailed changes.
<ide> `BigDecimal`, `Float` and, `Integer`.
<ide>
<ide> This deprecation is to allow Rails application to take advantage of a Ruby 3.1
<del> [optimization][https://github.com/ruby/ruby/c... | 1 |
Go | Go | add hasvalidgitprefix to utils/utils.go | d3ac9ea98e872fee808693c736bc5a465d6426e2 | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) CmdBuild(args ...string) error {
<ide> root := cmd.Arg(0)
<ide> if utils.IsGIT(root) {
<ide> remoteURL := cmd.Arg(0)
<del> if !strings.HasPrefix(remoteURL, "git://") && !strings.HasPrefix(remoteURL, "git@") && !utils.IsURL(remoteURL) {
<add> if !u... | 4 |
Ruby | Ruby | remove glob pattern from app/channels load path | dd5a49c14082b559355b1f4d8bc5b686e8f67e3f | <ide><path>railties/lib/rails/engine/configuration.rb
<ide> def paths
<ide> exclude: ["assets", javascript_path]
<ide> paths.add "app/assets", glob: "*"
<ide> paths.add "app/controllers", eager_load: true
<del> paths.add "app/channels"... | 1 |
Python | Python | add comments to long_double detection code | 888d37086558d982a8afd92cd13778aca264e406 | <ide><path>numpy/core/setup_common.py
<ide> def long_double_representation(lines):
<ide> # the long double
<ide> if read[-8:] == _AFTER_SEQ:
<ide> saw = copy.copy(read)
<add> # if the content was 12 bytes, we only have 32 - 8 - 12 = 12
<add> # "befor... | 1 |
Python | Python | remove unused warning | db2dbc8e59d1a61a0d16fea371925e4667c8dec9 | <ide><path>spacy/errors.py
<ide> class Warnings:
<ide> "loaded. (Shape: {shape})")
<ide> W021 = ("Unexpected hash collision in PhraseMatcher. Matches may be "
<ide> "incorrect. Modify PhraseMatcher._terminal_hash to fix.")
<del> W022 = ("Training a new part-of-speech tagger using a model ... | 1 |
Text | Text | add graphql stub and opening paragraph for guide | f606d9cc6d16597b95fafff7a77599a48df9db25 | <ide><path>guide/english/graphql/index.md
<ide> title: GraphQL
<ide> ---
<ide>
<del>## GraphQL
<add># GraphQL
<add>Developed by Facebook and launched in 2015, GraphQL is an API standard defined by its use of a declarative request that returns only the data the client requested, in the shape they desire. Unlike traditi... | 1 |
Ruby | Ruby | use new syntax correctly | f7e308ab44f15db2e2d3536e1d8deb829705102e | <ide><path>Library/Homebrew/cmd/list.rb
<ide> def list
<ide> switch "--pinned"
<ide> switch "--versions"
<ide> switch "--full-name"
<del> switch "--multiple", required_for: "--versions"
<add> switch "--multiple", depends_on: "--versions"
<ide> switch :verbose
<ide> end
<ide> | 1 |
Mixed | Go | allow filtering containers by any status | f30364c5835452598e58781f360681f2d77fa16c | <ide><path>daemon/list.go
<ide> func (daemon *Daemon) foldFilter(config *ContainersConfig) (*listContext, error)
<ide> if !isValidStateString(value) {
<ide> return nil, errors.New("Unrecognised filter value for status")
<ide> }
<del> if value == "exited" || value == "created" {
<del> config.All = true
<d... | 2 |
PHP | PHP | handle loose % signs in __() function | 5334fe04c364100b031740eeea77b7d91c381d16 | <ide><path>lib/Cake/Test/Case/BasicsTest.php
<ide> public function testTranslate() {
<ide> $this->assertEquals($expected, $result);
<ide> }
<ide>
<add>/**
<add> * testTranslatePercent
<add> *
<add> * @return void
<add> */
<add> public function testTranslatePercent() {
<add> $result = __('%s are 100% real fruit', '... | 2 |
Python | Python | remove log groups in the lambda system test | ed9bab09f34fbfd36e4b597f0a891ffd0f83cebc | <ide><path>tests/system/providers/amazon/aws/example_lambda.py
<ide> import json
<ide> import zipfile
<ide> from datetime import datetime
<add>from typing import List, Optional, Tuple
<ide>
<ide> import boto3
<ide>
<ide> from airflow.models.baseoperator import chain
<ide> from airflow.providers.amazon.aws.operators.l... | 2 |
Javascript | Javascript | remove headmanager property as it’s unused | b41c85e32ad8f23bf1cd10918d8ef472e2ceaaf0 | <ide><path>packages/next/client/index.js
<ide> function renderReactElement (reactEl, domEl) {
<ide> }
<ide> }
<ide>
<del>async function doRender ({ App, Component, props, err, emitter: emitterProp = emitter }) {
<add>async function doRender ({ App, Component, props, err }) {
<ide> // Usual getInitialProps fetching... | 1 |
Javascript | Javascript | terminate statement in page.js | 55a697a86d6febe44d03ac740592abd3f5e293fc | <ide><path>docs/page.js
<ide> var onDocumentLoad = function ( event ) {
<ide>
<ide> prettyPrint();
<ide>
<del> }
<add> };
<ide>
<ide> document.head.appendChild( prettify );
<ide> | 1 |
PHP | PHP | use 3rd param instead | f4179e3b2db4b3351a8acd0f18007571e385994e | <ide><path>src/View/Helper/PaginatorHelper.php
<ide> public function sort($key, $title = null, array $options = [])
<ide> /**
<ide> * Merges passed URL options with current pagination state to generate a pagination URL.
<ide> *
<del> * ### Options:
<add> * ### Url options:
<ide> *
<ide> ... | 1 |
Text | Text | clarify the use of numeric uids | a7cfb098d48b9b9ce19bc57fd2c219981b24b75b | <ide><path>docs/reference/run.md
<ide> volume mounted on the host).
<ide>
<ide> ### USER
<ide>
<del>The default user within a container is `root` (id = 0), but if the
<del>developer created additional users, those are accessible too. The
<del>developer can set a default user to run the first process with the
<del>Doc... | 1 |
PHP | PHP | use a boolean default | 3c55601e25c28148f4328e913f5d19ec97d34edd | <ide><path>src/Http/ServerRequestFactory.php
<ide> public static function fromGlobals(
<ide> 'webroot' => $uri->webroot,
<ide> 'base' => $uri->base,
<ide> 'session' => $session,
<del> 'mergeFilesAsObjects' => Configure::read('App.uploadedFilesAsObjects'),
<add> ... | 1 |
Text | Text | unify coverage of collection helpers [ci skip] | d118875dced86d2fb2bc27dea807e09779293fba | <ide><path>guides/source/form_helpers.md
<ide> Notice that the appropriate option was automatically marked `selected="selected"
<ide>
<ide> ### Time Zone and Country Select
<ide>
<del>To leverage time zone support in Rails, you have to ask your users what time zone they are in. Doing so would require generating selec... | 1 |
Javascript | Javascript | remove jquery integration in eventdispatcher | 28804ab8c82f765b521e4959cd3a8e3d216b69dd | <ide><path>packages/@ember/-internals/glimmer/tests/integration/event-dispatcher-test.js
<del>import { RenderingTestCase, moduleFor, runTask } from 'internal-test-helpers';
<add>import { moduleFor, RenderingTestCase, runTask } from 'internal-test-helpers';
<ide>
<ide> import { Component } from '../utils/helpers';
<ide... | 3 |
Java | Java | remove a pointless concatmapiterable overload | 479a7a28f982ccdf236c3afb494556decef9ab72 | <ide><path>src/main/java/io/reactivex/rxjava3/core/Observable.java
<ide> public final <U> Observable<U> concatMapIterable(@NonNull Function<? super T, ?
<ide> return RxJavaPlugins.onAssembly(new ObservableFlattenIterable<>(this, mapper));
<ide> }
<ide>
<del> /**
<del> * Returns an {@code Observable}... | 2 |
Javascript | Javascript | make sizesdiffer and matricesdiffer type-safe | d29a6a116e1e6639526dd16e254ae957a4fd8425 | <ide><path>Libraries/Utilities/differ/matricesDiffer.js
<ide> * LICENSE file in the root directory of this source tree.
<ide> *
<ide> * @format
<add> * @flow strict
<ide> */
<ide>
<ide> 'use strict';
<ide> * @param {MatrixMath.Matrix} two Second matrix.
<ide> * @return {boolean} Whether or not the two matrices d... | 2 |
Ruby | Ruby | add missing require | c6dc50fcf05c8c4956ac86345360fefcb00f664e | <ide><path>Library/Homebrew/compat/macos.rb
<add>require "development_tools"
<add>
<ide> module OS
<ide> module Mac
<ide> def xcode_folder | 1 |
Python | Python | add functionality for network support | d4508d37973f34054947e1c1117ab84b9f6b9559 | <ide><path>libcloud/container/drivers/lxd.py
<ide> def __init__(self, name, driver, used_by, config, managed):
<ide> self.managed = managed
<ide>
<ide>
<add>class LXDNetwork(object):
<add> """
<add> Utility class representing an LXD network
<add> """
<add>
<add> @classmethod
<add> def build_fro... | 1 |
Python | Python | use tag in conll converter, not pos | 3bf4a28d8de979b12865cb2746780b4c48bd15aa | <ide><path>spacy/cli/converters/conllu2json.py
<ide> def read_conllx(input_path, use_morphology=False, n=0):
<ide> id_ = int(id_) - 1
<ide> head = (int(head) - 1) if head != '0' else id_
<ide> dep = 'ROOT' if dep == 'root' else dep
<del> tag... | 1 |
Python | Python | use r = ts.run(); r.join() instead | 2b1769c54d22ab5c055d5a0059c0ef0b6f704b23 | <ide><path>celery/task/base.py
<ide> def run(self, connect_timeout=conf.AMQP_CONNECTION_TIMEOUT):
<ide> conn.close()
<ide> return TaskSetResult(taskset_id, subtasks)
<ide>
<del> def join(self, timeout=None):
<del> """Gather the results for all of the tasks in the taskset,
<del> and ret... | 1 |
Text | Text | add the description of how it was introduced | bebf3af07256347718e514b1683dd1a678ec6ffe | <ide><path>guide/spanish/canvas/index.md
<ide> localeTitle: Lona
<ide> ## Lienzo HTML5
<ide>
<ide> Canvas es una tecnología introducida en HTML5 a la que se puede acceder mediante la etiqueta `<canvas>` . Permite dibujar gráficos a través de Javascript y es una herramienta poderosa para la interactividad en la web.
<d... | 1 |
PHP | PHP | add teststepmaybeset, fix mock values | d4157a41b4768d7f6600b9999bff577fb293d72b | <ide><path>tests/Database/DatabaseMigrationMigrateCommandTest.php
<ide> public function testBasicMigrationsCallMigratorWithProperArguments()
<ide> $app->useDatabasePath(__DIR__);
<ide> $command->setLaravel($app);
<ide> $migrator->shouldReceive('setConnection')->once()->with(null);
<del> $... | 1 |
PHP | PHP | remove unnecessary commentted line | fbbbeb3b6c5cd966f0af0ca614ac9314aff78aa1 | <ide><path>src/Illuminate/Foundation/Exceptions/Handler.php
<ide> protected function context()
<ide> try {
<ide> return array_filter([
<ide> 'userId' => Auth::id(),
<del> // 'email' => optional(Auth::user())->email,
<ide> ]);
<ide> } catch (Throwabl... | 1 |
PHP | PHP | add no suffix tests | ac393c4c737a6869622842f38411e4177d71837b | <ide><path>Cake/Test/TestCase/Core/AppTest.php
<ide> public function classnameProvider() {
<ide> ['Also/Exists', 'In', 'App', true, 'TestApp\In\Also\ExistsApp'],
<ide> ['Also', 'Exists/In', 'App', true, 'TestApp\Exists\In\AlsoApp'],
<ide> ['Also', 'Exists/In/Subfolder', 'App', true, 'TestApp\Exists\In\Subfolde... | 1 |
Text | Text | update changelog and remove the duplicate log | 2cb6043feb4632bd7f45ef9a1470d37f1c4523d9 | <ide><path>CHANGELOG.md
<ide> * [FEATURE ember-routing-consistent-resources]
<ide> * `uuid` is now consistently used across the project.
<ide> * `Ember.uuid` is now an internal function instead of a property on `Ember` itself.
<del>* [BUGFIX] sync back burner: workaround IE's issue with try/finally without Catch.
<del>... | 1 |
Text | Text | allow opening examples in gitpod | 3f2ef030e001547eb06060499f8a2e3f002b5a14 | <ide><path>examples/README.md
<ide> To run the examples:
<ide> 4. `grunt build`
<ide> 5. `npm run examples`
<ide> 6. [http://localhost:3000](http://localhost:3000)
<add>
<add>Or use Gitpod, a free dev environment for GitHub:
<add>
<add>[](https://gitpod.io/#... | 1 |
Java | Java | use full package names in reactiveadapterregistry | 729551f375a2fb9675c337873ae6cf4341735139 | <ide><path>spring-core/src/main/java/org/springframework/core/ReactiveAdapterRegistry.java
<ide> import java.util.function.Function;
<ide>
<ide> import io.reactivex.BackpressureStrategy;
<del>import io.reactivex.Completable;
<del>import io.reactivex.Flowable;
<del>import io.reactivex.Maybe;
<del>import io.reactivex.Ob... | 1 |
PHP | PHP | add more test to _basename | 43df0176da72c2127f862b716454b7f18aaadb2b | <ide><path>tests/TestCase/Filesystem/FileTest.php
<ide> public function baseNameValueProvider()
<ide> ['/نام فارسی.txt', '.txt'],
<ide> //
<ide> ['/etc/sudoers.d', null],
<add> ['/etc/.d', '.d'],
<ide> ['/etc/sudoers.d', '.d'],
<ide> ['/etc/passwd',... | 1 |
Javascript | Javascript | reduce list of globals in eslint config | 5c9ea80fa77f39618d0e24a07a04cf99faa0ebd9 | <ide><path>.eslintrc.js
<ide> module.exports = {
<ide> 'node-core/no-duplicate-requires': 'error',
<ide> },
<ide> globals: {
<del> AbortController: 'readable',
<del> AbortSignal: 'readable',
<ide> Atomics: 'readable',
<ide> BigInt: 'readable',
<del> BigInt64Array: 'readable',
<del> BigUint64... | 1 |
Mixed | Go | add docker server version to /info | 7cf343d1064e3d8211597c67574ff4ddff316fa1 | <ide><path>api/client/info.go
<ide> func (cli *DockerCli) CmdInfo(args ...string) error {
<ide>
<ide> fmt.Fprintf(cli.out, "Containers: %d\n", info.Containers)
<ide> fmt.Fprintf(cli.out, "Images: %d\n", info.Images)
<add> fmt.Fprintf(cli.out, "Engine Version: %s\n", info.ServerVersion)
<ide> ioutils.FprintfIfNotEmp... | 8 |
Text | Text | add missing example | 525b441f039af23429e06196b96e6097affb49d2 | <ide><path>threejs/lessons/threejs-backgrounds.md
<ide> let bgMesh;
<ide> }
<ide> ```
<ide>
<add>{{{example url="../threejs-background-equirectangularmap.html" }}}
<add>
<ide> Using equirectagular images requires more complicated shaders and so is slower than using cubemaps. Fortunately it's easy to convert from an eq... | 1 |
Mixed | Javascript | allow broadcastchannel in receivemessageonport | 9dd2f9f19dd35a91eabd0aa5acff9011db59e238 | <ide><path>doc/api/worker_threads.md
<ide> if (isMainThread) {
<ide> ## `worker.receiveMessageOnPort(port)`
<ide> <!-- YAML
<ide> added: v12.3.0
<add>changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/37535
<add> description: The port argument can also refer to a `BroadcastChan... | 3 |
Javascript | Javascript | add hooks back for devtools | b80f676d275d3a88f4d5524731c5398fa04afab6 | <ide><path>src/renderers/dom/ReactDOM.js
<ide>
<ide> 'use strict';
<ide>
<add>var ReactDOMComponentTree = require('ReactDOMComponentTree');
<ide> var ReactDefaultInjection = require('ReactDefaultInjection');
<ide> var ReactMount = require('ReactMount');
<ide> var ReactPerf = require('ReactPerf');
<ide> var ReactUpdat... | 5 |
Javascript | Javascript | fix mixture of tabs and spaces | da6dba24740522ffd18163fd49afa4a55ba93754 | <ide><path>test/binCases/errors/child-compilation-error/test.js
<ide> module.exports = function testAssertions(code, stdout, stderr) {
<ide> code.should.be.eql(2);
<ide>
<del> stdout[0].should.containEql("Hash: ");
<del> stdout[1].should.containEql("Version: ");
<del> stdout[2].should.containEql("Time: ");
<del> s... | 2 |
Python | Python | add tests for "_get_instance_vhd" method | 91ea09116afa5b5e969a6a2184c3a68fc192c485 | <ide><path>libcloud/test/compute/test_azure_arm.py
<ide> # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.import libcloud
<add>
<ide> import json
<ide> import sys
<ide> import func... | 1 |
Javascript | Javascript | add config schema for version pinned packages | 6740952c1cb36a974d5c7da540fbc1a249e34ddd | <ide><path>src/config-schema.js
<ide> const configSchema = {
<ide>
<ide> description: 'List of names of installed packages which are not loaded at startup.'
<ide> },
<add> versionPinnedPackages: {
<add> type: 'array',
<add> default: [],
<add>
<add> items: {
<add> type: ... | 1 |
Javascript | Javascript | replace fixturesdir with common.fixtures | 6e1948ea06b5413c493c744b9409e7c6ef60c958 | <ide><path>test/parallel/test-http2-respond-file-fd.js
<ide> 'use strict';
<ide>
<ide> const common = require('../common');
<add>const fixtures = require('../common/fixtures');
<ide> if (!common.hasCrypto)
<ide> common.skip('missing crypto');
<ide> const http2 = require('http2');
<ide> const assert = require('assert... | 1 |
Javascript | Javascript | report user activity on touchmove if userwasactive | 75a23135e62ad23fec6a6bb1d39a02af104fcf09 | <ide><path>src/js/media/media.js
<ide> vjs.MediaTechController.prototype.initControlsListeners = function(){
<ide> };
<ide>
<ide> vjs.MediaTechController.prototype.addControlsListeners = function(){
<add> var userWasActive;
<add>
<ide> // Some browsers (Chrome & IE) don't trigger a click on a flash swf, but do
<ide... | 1 |
PHP | PHP | add test class i forgot earlier | 5e3c347722f2ccd763e29090daf3d301f2f9e98c | <ide><path>tests/test_app/TestApp/Command/Helper/CommandHelper.php
<add><?php
<add>namespace TestApp\Command\Helper;
<add>
<add>use Cake\Console\Helper;
<add>
<add>class CommandHelper extends Helper
<add>{
<add> public function output($args)
<add> {
<add> $this->_io->out('I am helping ' . implode(' ', $arg... | 1 |
Mixed | Javascript | relax requirements on upgrade listener | f7fbbeedc609f56c898230971b44d3dde0934dc9 | <ide><path>doc/api/http.md
<ide> added: v0.1.94
<ide> * `head` {Buffer}
<ide>
<ide> Emitted each time a server responds to a request with an upgrade. If this
<del>event is not being listened for, clients receiving an upgrade header will have
<del>their connections closed.
<add>event is not being listened for and the r... | 7 |
Python | Python | get default logger from common place | 54668397a5f27ab6e380a65e8d6460ad8a6ca191 | <ide><path>celery/beat.py
<ide> from UserDict import UserDict
<ide> from datetime import datetime
<ide>
<add>from celery import log
<ide> from celery import conf
<ide> from celery import registry
<ide> from celery.log import setup_logger
<ide>
<ide>
<ide> def humanize_seconds(secs, prefix=""):
<add> """Show secon... | 4 |
Javascript | Javascript | add reactdomselection module | 8f15eea910c097893c7bdc24725cf7ceff93cf32 | <ide><path>src/core/ReactDOMSelection.js
<add>/**
<add> * Copyright 2013 Facebook, Inc.
<add> *
<add> * Licensed under the Apache License, Version 2.0 (the "License");
<add> * you may not use this file except in compliance with the License.
<add> * You may obtain a copy of the License at
<add> *
<add> * http://www.apac... | 4 |
Javascript | Javascript | simplify branching logic | a62c35080418299eb3171ffb336c3e70a22a7138 | <ide><path>lib/optimize/ConcatenatedModule.js
<ide> class ConcatenatedModule extends Module {
<ide> for (const identifier of allIdentifiers) {
<ide> const r = identifier.range;
<ide> const path = getPathInAst(info.ast, identifier);
<del> if (
<del> path &&
<del> path.length... | 1 |
Javascript | Javascript | fix broken assertion | 38ae95bb0c0c002b7b04040b0aa060e00b760cdd | <ide><path>test/parallel/test-cli-eval.js
<ide> child.exec(nodejs + ' --eval "require(\'./test/parallel/test-cli-eval.js\')"',
<ide> child.exec(nodejs + ' -e', common.mustCall(function(err, stdout, stderr) {
<ide> assert.strictEqual(err.code, 9);
<ide> assert.strictEqual(stdout, '');
<del> assert(stderr.match(/nod... | 1 |
Python | Python | enable added tokens | 09b0bcfea98eb9e863248fd29566b6d1caf9a0ea | <ide><path>src/transformers/models/herbert/tokenization_herbert.py
<ide> class HerbertTokenizer(XLMTokenizer):
<ide> pretrained_init_configuration = PRETRAINED_INIT_CONFIGURATION
<ide> max_model_input_sizes = PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
<ide>
<del> def __init__(self, *args, **kwargs):
<del>
<del>... | 8 |
Python | Python | adjust message [ci skip] | 1bce432b4af2c3bc3ea98a8bad54690f6ff01ec3 | <ide><path>spacy/cli/_util.py
<ide> def git_sparse_checkout(repo: str, subpath: str, dest: Path, *, branch: str = "m
<ide> msg.warn(
<ide> f"You're running an old version of Git (v{git_version[0]}.{git_version[1]}) "
<ide> f"that doesn't fully support sparse checkout yet. Thi... | 1 |
PHP | PHP | add returntypewillchange for eventlist | 2a853c3b5e554d8b44c728aee504e12c68b11a38 | <ide><path>src/Event/EventList.php
<ide>
<ide> use ArrayAccess;
<ide> use Countable;
<add>use ReturnTypeWillChange;
<ide>
<ide> /**
<ide> * The Event List
<ide> public function offsetExists($offset): bool
<ide> * @param mixed $offset The offset to retrieve.
<ide> * @return mixed Can return all value types.... | 1 |
Text | Text | remove extra space | db5f8d181fb15a7a0390bf9af5d0264ae5740ba9 | <ide><path>docs/recipes/WritingTests.md
<ide> and configure it to use [babel-preset-env](https://github.com/babel/babel/tree/m
<ide>
<ide> ```js
<ide> {
<del> "presets": ["@babel/preset-env"]
<add> "presets": ["@babel/preset-env"]
<ide> }
<ide> ```
<ide> | 1 |
Javascript | Javascript | reintroduce use of requestanimationframe | 72119e0023dcc0d9807caf6d988598b74abdc937 | <ide><path>src/effects.js
<ide> var
<ide> } ]
<ide> };
<ide>
<add>function raf() {
<add> if ( timerId ) {
<add> window.requestAnimationFrame( raf );
<add> jQuery.fx.tick();
<add> }
<add>}
<add>
<add>// Will get false negative for old browsers which is okay
<add>function isDocumentHidden() {
<add> return "hidden" ... | 2 |
Ruby | Ruby | revert the user-path fix | 05c708b9fc2a97dd890bdfb478b749b3e6e215e5 | <ide><path>Library/Homebrew/build.rb
<ide> def main
<ide> end
<ide> end
<ide>
<del>def install f
<add>def pre_superenv_hacks f
<ide> # TODO replace with Formula DSL
<ide> # Python etc. build but then pip can't build stuff.
<ide> # Scons resets ENV and then can't find superenv's build-tools.
<add> # In some ca... | 2 |
PHP | PHP | remove unused dispatcher | e82a78c40f4c8b353cab2d55488d4da400eba5fc | <ide><path>app/Providers/EventServiceProvider.php
<ide> <?php namespace App\Providers;
<ide>
<del>use Illuminate\Contracts\Events\Dispatcher;
<ide> use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
<ide>
<ide> class EventServiceProvider extends ServiceProvider { | 1 |
Javascript | Javascript | fix style and add var declaration | 9650df5c10a51976d1b8600d79ff244274e5764c | <ide><path>src/colorspace.js
<ide> var DeviceCmykCS = (function DeviceCmykCSClosure() {
<ide> var c = color[0], m = color[1], y = color[2], k = color[3];
<ide>
<ide> // CMYK -> CMY: http://www.easyrgb.com/index.php?X=MATH&H=14#text14
<del> c = (c * (1-k) + k);
<del> m = (m * (1-k) + k);
<del> ... | 1 |
Javascript | Javascript | simplify nexttick() usage | 5abd4ac079b390467360d671a186a061b5aba736 | <ide><path>lib/_stream_writable.js
<ide> function doWrite(stream, state, writev, len, chunk, encoding, cb) {
<ide> }
<ide>
<ide> function onwriteError(stream, state, sync, er, cb) {
<add> --state.pendingcb;
<ide> if (sync)
<del> process.nextTick(onwriteErrorNT, state, cb, er);
<del> else {
<del> state.pendin... | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.