content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Go | Go | move ensureremoveall() to pkg/containerfs | 25ee00c494ff588f6347b4735f2080df9eb05262 | <ide><path>daemon/delete.go
<ide> import (
<ide> "github.com/docker/docker/api/types"
<ide> "github.com/docker/docker/container"
<ide> "github.com/docker/docker/errdefs"
<del> "github.com/docker/docker/pkg/system"
<add> "github.com/docker/docker/pkg/containerfs"
<ide> "github.com/opencontainers/selinux/go-selinux"
... | 15 |
Text | Text | fix replaceme for tls min/max protocol option | 5202b70fecd3cedb752ffccdb12fc7ac9a472340 | <ide><path>doc/api/tls.md
<ide> argument.
<ide> <!-- YAML
<ide> added: v0.11.13
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/24405
<add> description: The `minVersion` and `maxVersion` can be used to restrict
<add> the allowed TLS protocol versions.
<... | 1 |
Python | Python | move settings into more sensible ordering | dce47a11d3d65a697ea8aa322455d626190bc1e5 | <ide><path>rest_framework/settings.py
<ide> ),
<ide> 'DEFAULT_THROTTLE_CLASSES': (
<ide> ),
<del>
<ide> 'DEFAULT_CONTENT_NEGOTIATION_CLASS':
<ide> 'rest_framework.negotiation.DefaultContentNegotiation',
<ide>
<ide> 'PAGINATE_BY': None,
<ide> 'PAGINATE_BY_PARAM': None,
<ide>
<del> # ... | 1 |
Text | Text | add plugin localization doc | 9141a6256f0502fb647ff157936261b3c7d7e6bc | <ide><path>docs/guides/languages.md
<ide> During a Video.js player instantiation you can force it to localize to a specifi
<ide> </video>
<ide> ```
<ide>
<add>Localization in Plugins
<add>-----------------------
<add>
<add>When you're developing a plugin, you can also introduce new localized strings. Simply wrap the s... | 2 |
PHP | PHP | use session->get default | bd7956649a55d727ae7cdab83c76fb3bc2a3f1ad | <ide><path>src/Illuminate/Auth/Guard.php
<ide> public function id()
<ide> {
<ide> if ($this->loggedOut) return;
<ide>
<del> return $this->session->get($this->getName()) ?: $this->getRecallerId();
<add> return $this->session->get($this->getName(), $this->getRecallerId());
<ide> }
<ide>
<ide> /** | 1 |
Java | Java | add api to reset cxxmodulewrapper's module pointer | 17020ff9af5648aeb5b45314e4fca7cb2c9352b1 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/cxxbridge/CxxModuleWrapperBase.java
<ide>
<ide> package com.facebook.react.cxxbridge;
<ide>
<del>import java.util.Map;
<ide>
<ide> import com.facebook.jni.HybridData;
<ide> import com.facebook.proguard.annotations.DoNotStrip;
<ide> public void onCatalystInstan... | 1 |
Javascript | Javascript | remove flash until author required bug is fixed | 1906f5d57c4a1f7f6a870f974051f3e35cee6616 | <ide><path>server/utils/middleware.js
<ide> export function ifNoUser401(req, res, next) {
<ide> }
<ide>
<ide> export function flashIfNotVerified(req, res, next) {
<del> const user = req.user;
<del> if (!user) {
<del> return next();
<del> }
<del> const email = req.user.email;
<del> const emailVerifi... | 1 |
PHP | PHP | fix problem with default values and prompts | da7aefe36cf3a82a5357ef136c600e8110f34019 | <ide><path>src/Console/ConsoleOptionParser.php
<ide> public function parse(array $argv, ?ConsoleIo $io = null): array
<ide> $params[$name] = false;
<ide> }
<ide> $prompt = $option->prompt();
<del> if ($useDefault && $prompt) {
<add> if (!isset($params[$name]... | 2 |
Python | Python | add greedy decoding and sampling | 07bc8efbc30f88e25d78b66811d670584a1bb97b | <ide><path>examples/run_generation.py
<ide>
<ide> import argparse
<ide> import logging
<del>from tqdm import trange
<ide>
<ide> import torch
<del>import torch.nn.functional as F
<ide> import numpy as np
<ide>
<del>from transformers import GPT2Config, OpenAIGPTConfig, XLNetConfig, TransfoXLConfig, XLMConfig, CTRLConf... | 7 |
Text | Text | capitalize test text for cascading css variables | a284b296fcc65a459212fb9fd2e088a4b36f552f | <ide><path>curriculum/challenges/english/01-responsive-web-design/basic-css/cascading-css-variables.english.md
<ide> Define a variable named <code>--penguin-belly</code> in the <code>:root</code> s
<ide>
<ide> ```yml
<ide> tests:
<del> - text: declare the <code>--penguin-belly</code> variable in the <code>:root</code... | 1 |
Text | Text | add ssr at soundcloud talk | d5810e46f95ddb8863af4df821bdbd49a4f4b4ed | <ide><path>docs/docs/videos.md
<ide> by [Stoyan Stefanov](http://www.phpied.com/)
<ide> <iframe width="650" height="315" src="//www.youtube.com/embed/i__969noyAM" frameborder="0" allowfullscreen></iframe>
<ide>
<ide> Facebook engineers [Bill Fisher](http://twitter.com/fisherwebdev) and [Jing Chen](http://twitter.com/j... | 1 |
Javascript | Javascript | remove "onunload" event handler | a117dd05f638a078c21dc57f19966f4ae81f98f0 | <ide><path>src/ajax/xhr.js
<ide> jQuery.ajaxSettings.xhr = function() {
<ide> } catch ( e ) {}
<ide> };
<ide>
<del>var xhrId = 0,
<del> xhrCallbacks = {},
<del> xhrSuccessStatus = {
<add>var xhrSuccessStatus = {
<ide> // file protocol always yields status code 0, assume 200
<ide> 0: 200,
<ide> // Support: IE9
<... | 1 |
Python | Python | fix typo in siamese example | 71aadf5e8b4020d4c9423ee5a5f42271abd860e5 | <ide><path>examples/mnist_siamese.py
<ide> def contrastive_loss(y_true, y_pred):
<ide> http://yann.lecun.com/exdb/publis/pdf/hadsell-chopra-lecun-06.pdf
<ide> '''
<ide> margin = 1
<del> sqaure_pred = K.square(y_pred)
<add> square_pred = K.square(y_pred)
<ide> margin_square = K.square(K.maximum(mar... | 1 |
Go | Go | add tests for size quota | 8c31e4536a808d4a7224efce857ae63585480aa7 | <ide><path>volume/local/local_linux_test.go
<add>// +build linux
<add>
<add>package local // import "github.com/docker/docker/volume/local"
<add>
<add>import (
<add> "io/ioutil"
<add> "os"
<add> "path/filepath"
<add> "testing"
<add>
<add> "github.com/docker/docker/pkg/idtools"
<add> "github.com/docker/docker/quota"
<ad... | 1 |
Go | Go | use prefix naming for restart tests | 1ddd013b194d7f551547bd2940a92ba3db72f95e | <ide><path>integration-cli/docker_cli_restart_test.go
<ide> import (
<ide> "time"
<ide> )
<ide>
<del>func TestDockerRestartStoppedContainer(t *testing.T) {
<add>func TestRestartStoppedContainer(t *testing.T) {
<ide> runCmd := exec.Command(dockerBinary, "run", "-d", "busybox", "echo", "foobar")
<ide> out, _, err := ... | 1 |
PHP | PHP | allow publishing of pagination views | 883b6db9d3d2b553637b08adefc97f6b22d188f1 | <ide><path>src/Illuminate/Pagination/PaginationServiceProvider.php
<ide> class PaginationServiceProvider extends ServiceProvider
<ide> public function boot()
<ide> {
<ide> $this->loadViewsFrom(__DIR__.'/resources/views', 'pagination');
<add>
<add> if ($this->app->runningInConsole()) {
<add> ... | 1 |
Text | Text | add log_level options to configuration guide | f0466b619bf5f0d79f99962f9e0e242d2ffbd699 | <ide><path>guides/source/configuring.md
<ide> numbers. New applications filter out passwords by adding the following `config.f
<ide>
<ide> * `config.log_formatter` defines the formatter of the Rails logger. This option defaults to an instance of `ActiveSupport::Logger::SimpleFormatter` for all modes except production,... | 1 |
Python | Python | replace relative imports in cversions.py | 38d987d392a87341f64528cdb55f7a746a7ba8d5 | <ide><path>numpy/core/code_generators/cversions.py
<ide>
<ide> from os.path import dirname
<ide>
<del>from .genapi import fullapi_hash
<del>from . import numpy_api
<add>from genapi import fullapi_hash
<add>import numpy_api
<ide>
<ide>
<ide> if __name__ == '__main__': | 1 |
Python | Python | add gzip support to unitaries tests | 59a5400118500274ad2eae0c3fe134debc0aefb9 | <ide><path>unitest-restful.py
<ide> def setUp(self):
<ide> """The function is called *every time* before test_*."""
<ide> print('\n' + '=' * 78)
<ide>
<add> def http_get(self, url, gzipped=False):
<add> """Make the gt request"""
<add> if gzipped:
<add> ret = requests.get(url... | 1 |
Python | Python | raise error when `source=` use on a child | 8af366a73282359c63eab6e81b80fb859604424f | <ide><path>rest_framework/fields.py
<ide> class ListField(Field):
<ide> def __init__(self, *args, **kwargs):
<ide> self.child = kwargs.pop('child', copy.deepcopy(self.child))
<ide> self.allow_empty = kwargs.pop('allow_empty', True)
<add>
<ide> assert not inspect.isclass(self.child), '`child`... | 2 |
Text | Text | add fishrock123 to collaborators | a0831c580d50b54fd4add58071341b3b7ec83499 | <ide><path>README.md
<ide> information about the governance of the io.js project, see
<ide> * **Rod Vagg** ([@rvagg](https://github.com/rvagg)) <rod@vagg.org>
<ide> * **Thorsten Lorenz** ([@thlorenz](https://github.com/thlorenz)) <thlorenz@gmx.de>
<ide> * **Stephen Belanger** ([@qard](https://github.com/qar... | 1 |
Go | Go | prevent exec delete locking | 332f134890246cfc73703b2911c9fdc20e063096 | <ide><path>libcontainerd/client_daemon.go
<ide> import (
<ide> "github.com/containerd/typeurl"
<ide> "github.com/docker/docker/errdefs"
<ide> "github.com/docker/docker/pkg/ioutils"
<del> "github.com/opencontainers/image-spec/specs-go/v1"
<add> v1 "github.com/opencontainers/image-spec/specs-go/v1"
<ide> specs "githu... | 1 |
PHP | PHP | limit the supported ciphers and check key length | 9bb8eeaba2864f5d034a8c2649c28c921af861e4 | <ide><path>src/Illuminate/Encryption/Encrypter.php
<ide>
<ide> namespace Illuminate\Encryption;
<ide>
<add>use RuntimeException;
<ide> use Illuminate\Support\Str;
<ide> use Illuminate\Contracts\Encryption\DecryptException;
<ide> use Illuminate\Contracts\Encryption\Encrypter as EncrypterContract;
<ide> class Encrypter... | 1 |
Javascript | Javascript | improve $controller function doc readability | 06ada222c26f717552fad88fb9534abf09824c61 | <ide><path>src/ng/controller.js
<ide> function $ControllerProvider() {
<ide> * @description
<ide> * `$controller` service is responsible for instantiating controllers.
<ide> *
<del> * It's just simple call to {@link AUTO.$injector $injector}, but extracted into
<add> * It's just a simple call to ... | 1 |
Javascript | Javascript | use more es6 syntaxes in the todomvc example | 27d9a24d1020685bc723f91ef60d0907df58ec23 | <ide><path>examples/todomvc/src/actions/index.js
<ide> import * as types from '../constants/ActionTypes'
<ide>
<del>export function addTodo(text) {
<del> return { type: types.ADD_TODO, text }
<del>}
<add>export const addTodo = text => ({ type: types.ADD_TODO, text })
<ide>
<del>export function deleteTodo(id) {
<del>... | 12 |
Text | Text | remove ccp link | 9eb4daa29731a098ef60b6fe9a4e8bd0e7f1f1e9 | <ide><path>README.md
<ide> within webpack itself use this plugin interface. This makes webpack very
<ide>
<ide> |Name|Status|Description|
<ide> |:--:|:----:|:----------|
<del>|[common-chunks-webpack-plugin][common]|![common-npm]|Generates chunks of common modules shared between entry points and splits them into separa... | 1 |
Python | Python | fix docs and bad word tokens generation_utils.py | 9d94aecd516c7540a94b9d781ef28d7375a796bc | <ide><path>src/transformers/generation_tf_utils.py
<ide> def generate(
<ide> model = TFAutoModelWithLMHead.from_pretrained('distilgpt2') # Download model and configuration from S3 and cache.
<ide> input_context = 'The dog'
<ide> input_ids = tokenizer.encode(input_context, return_t... | 2 |
Javascript | Javascript | fix spec for path | 090bbf9e77fb1e75858aea0312a8b166cafcfab2 | <ide><path>spec/atom-paths-spec.js
<ide> import path from 'path'
<ide> const temp = require('temp').track()
<ide>
<ide> describe("AtomPaths", () => {
<del> const portableAtomHomePath = path.join(atomPaths.getAppDirectory(), '.atom')
<del> console.log(portableAtomHomePath)
<add> const portableAtomHomePath = path.joi... | 1 |
PHP | PHP | add functional tests | 52bf07957a8edfa5090decc57446785b472a53ab | <ide><path>tests/TestCase/ORM/QueryRegressionTest.php
<ide> use Cake\Datasource\EntityInterface;
<ide> use Cake\Event\Event;
<ide> use Cake\I18n\Time;
<add>use Cake\ORM\Query;
<ide> use Cake\TestSuite\TestCase;
<ide>
<ide> /**
<ide> public function testFormatDeepDistantAssociationRecords2()
<ide> $expected = [... | 1 |
Python | Python | add gpt2-xl for tf | ab756f713c7dd5257e27bb74edd906dfdfbf0e5d | <ide><path>src/transformers/modeling_tf_gpt2.py
<ide> "gpt2": "https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-tf_model.h5",
<ide> "gpt2-medium": "https://s3.amazonaws.com/models.huggingface.co/bert/gpt2-medium-tf_model.h5",
<ide> "gpt2-large": "https://s3.amazonaws.com/models.huggingface.co/bert/g... | 1 |
Python | Python | remove outdated arg from train | 3f0d61232dbc8b45845463b27d766cdbb813af5e | <ide><path>spacy/cli/train.py
<ide> def train_cli(
<ide> def init_pipeline(
<ide> config: Config, output_path: Optional[Path], *, use_gpu: int = -1
<ide> ) -> Language:
<del> init_kwargs = {"use_gpu": use_gpu, "silent": False}
<add> init_kwargs = {"use_gpu": use_gpu}
<ide> if output_path is not None:
<ide... | 1 |
Text | Text | fix url for tip about database permission problems | 5cd84c96aa63f2f69b496fa036a94879cb715aa3 | <ide><path>guides/source/testing.md
<ide> default. Loading involves three steps:
<ide> 2. Load the fixture data into the table
<ide> 3. Dump the fixture data into a method in case you want to access it directly
<ide>
<del>TIP: In order to remove existing data from the database, Rails tries to disable referential integ... | 1 |
Javascript | Javascript | relativize ignore module paths | a4cf604a4aa2d14f95895d8c3337a722712740de | <ide><path>lib/NormalModuleFactory.js
<ide> Author Tobias Koppers @sokra
<ide> */
<ide> var async = require("async");
<add>var path = require("path");
<ide> var Tapable = require("tapable");
<ide> var NormalModule = require("./NormalModule");
<ide> var RawModule = require("./RawModule");
<ide> function NormalModuleFac... | 1 |
Python | Python | add logging options to docker operator | 19d6f54704949d017b028e644bbcf45f5b53120b | <ide><path>airflow/providers/docker/operators/docker.py
<ide> from docker import APIClient, tls # type: ignore[attr-defined]
<ide> from docker.constants import DEFAULT_TIMEOUT_SECONDS # type: ignore[attr-defined]
<ide> from docker.errors import APIError # type: ignore[attr-defined]
<del>from docker.types import Devi... | 2 |
Go | Go | fix concurrent createnetwork in bridge driver | 7d466c6600fbe07636e763799d0d806ce35a90a2 | <ide><path>libnetwork/drivers/bridge/bridge.go
<ide> const (
<ide> DefaultGatewayV6AuxKey = "DefaultGatewayIPv6"
<ide> )
<ide>
<add>type defaultBridgeNetworkConflict struct {
<add> ID string
<add>}
<add>
<add>func (d defaultBridgeNetworkConflict) Error() string {
<add> return fmt.Sprintf("Stale default bridge network... | 3 |
PHP | PHP | add displayable value to required_unless | 39cbd0066c3382fca83a06c34c213266cfe34e35 | <ide><path>src/Illuminate/Validation/Concerns/ReplacesAttributes.php
<ide> protected function replaceRequiredIf($message, $attribute, $rule, $parameters)
<ide> */
<ide> protected function replaceRequiredUnless($message, $attribute, $rule, $parameters)
<ide> {
<del> $other = $this->getDisplayableAttr... | 2 |
Javascript | Javascript | fix src/locale (missing local variables) | ae32797f323b2bb331c0b770d1ab94c84424605d | <ide><path>src/locale/ar-sa.js
<ide>
<ide> import moment from "../moment";
<ide>
<add>var symbolMap = {
<add> '1': '١',
<add> '2': '٢',
<add> '3': '٣',
<add> '4': '٤',
<add> '5': '٥',
<add> '6': '٦',
<add> '7': '٧',
<add> '8': '٨',
<add> '9': '٩',
<add> '0': '٠'
<add>}, numberMap = {
<ad... | 39 |
Javascript | Javascript | use mustnotcall() in test-stream2-objects | 64ded9f9bca71a2b230a9c114964ccfc258db98f | <ide><path>test/parallel/test-stream2-objects.js
<ide> function toArray(callback) {
<ide>
<ide> function fromArray(list) {
<ide> const r = new Readable({ objectMode: true });
<del> r._read = common.noop;
<add> r._read = common.mustNotCall();
<ide> list.forEach(function(chunk) {
<ide> r.push(chunk);
<ide> }... | 1 |
PHP | PHP | remove unused path | fc7bad49e8ecf6cf3dc70adc152e4cdbd2dc94ec | <ide><path>src/Illuminate/Foundation/Console/AppNameCommand.php
<ide> protected function setAppDirectoryNamespace()
<ide> {
<ide> $files = Finder::create()
<ide> ->in($this->laravel['path'])
<del> ->exclude($this->laravel['path'].'/Http/Views')
<ide> ... | 1 |
PHP | PHP | add passthru methods to eloquent builder | 2996da8d616aa648ac7646001d318928ae4a41f6 | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> class Builder
<ide> protected $passthru = [
<ide> 'insert', 'insertOrIgnore', 'insertGetId', 'insertUsing', 'getBindings', 'toSql', 'dump', 'dd',
<ide> 'exists', 'doesntExist', 'count', 'min', 'max', 'avg', 'average', 'sum', 'getConnectio... | 1 |
Java | Java | improve encoder javadoc | d51005fbbeaf6e84f94a2f9d491d705119898572 | <ide><path>spring-core/src/main/java/org/springframework/core/codec/Encoder.java
<ide>
<ide> import org.reactivestreams.Publisher;
<ide> import reactor.core.publisher.Flux;
<add>import reactor.core.publisher.Mono;
<ide>
<ide> import org.springframework.core.ResolvableType;
<ide> import org.springframework.core.io.buf... | 1 |
Mixed | Python | add kannada support | a78db10941d0818b0077d1fb6d1795d9ebb34f99 | <ide><path>.github/contributors/akki2825.md
<add>## Contributor Agreement
<add>
<add>1. The term "contribution" or "contributed materials" means any source code,
<add>object code, patch, tool, sample, graphic, specification, manual,
<add>documentation, or any other material posted or submitted by you to the project.
<a... | 3 |
Mixed | Ruby | remove xml parser from actiondispatch | c9909db9f2f81575ef2ea2ed3b4e8743c8d6f1b9 | <ide><path>actionpack/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Remove support for parsing XML parameters from request. If you still want to parse XML
<add> parameters, please install `actionpack-xml_parser' gem.
<add>
<add> *Prem Sichanugrist*
<add>
<ide> * Fix `time_zone_options_for_se... | 5 |
Javascript | Javascript | use options object for nodetemplateplugin | b296e5a08c71208b979d3d4e4e6e7730377865ec | <ide><path>lib/WebpackOptionsApply.js
<ide> WebpackOptionsApply.prototype.process = function(options, compiler) {
<ide> var NodeTemplatePlugin = require("./node/NodeTemplatePlugin");
<ide> var NodeTargetPlugin = require("./node/NodeTargetPlugin");
<ide> compiler.apply(
<del> new NodeTemplatePlugin(optio... | 2 |
Ruby | Ruby | check cellar access | b1514c1c40390b2238f378ff132b76e2e8a744ef | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_access_cache
<ide> end
<ide> end
<ide>
<add>def check_access_cellar
<add> if HOMEBREW_CELLAR.exist? && !HOMEBREW_CELLAR.writable_real?
<add> <<-EOS.undent
<add> #{HOMEBREW_CELLAR} isn't writable.
<add> You should `chown` #{HOMEBREW_CELLAR}
<add>... | 1 |
Python | Python | fix pytorch/tf auto tests | db2644b9eb948b62c282c1ba25f8f44a17615b93 | <ide><path>src/transformers/modeling_tf_pytorch_utils.py
<ide> def convert_tf_weight_name_to_pt_weight_name(tf_name, start_prefix_to_remove="",
<ide> #####################
<ide>
<ide>
<del>def load_pytorch_checkpoint_in_tf2_model(tf_model, pytorch_checkpoint_path, tf_inputs=None, allow_missing_keys=False):
<add>def l... | 3 |
Text | Text | fix typos in handle scope descriptions | 1786504afa068b2b6591f23799dadd4e867cc529 | <ide><path>doc/api/n-api.md
<ide> NAPI_EXTERN napi_status napi_open_handle_scope(napi_env env,
<ide>
<ide> Returns `napi_ok` if the API succeeded.
<ide>
<del>This API open a new scope.
<add>This API opens a new scope.
<ide>
<ide> #### napi_close_handle_scope
<ide> <!-- YAML
<ide> NAPI_EXTERN napi_status
<ide>
<ide>... | 1 |
Go | Go | return container exit code with start -a/-i | 65edb07065e9e8a08090a4ac88cf449b7faaff09 | <ide><path>api/client/commands.go
<ide> func (cli *DockerCli) CmdStart(args ...string) error {
<ide> return fmt.Errorf("You cannot start and attach multiple containers at once.")
<ide> }
<ide>
<del> steam, _, err := cli.call("GET", "/containers/"+cmd.Arg(0)+"/json", nil, false)
<add> stream, _, err := cli.call(... | 2 |
Text | Text | remove ref to data-react-id | 83a978d5dd9c0ded959e9d6fa5757030eac2d63d | <ide><path>docs/recipes/ServerRendering.md
<ide> hydrate(
<ide>
<ide> You can set up your build tool of choice (Webpack, Browserify, etc.) to compile a bundle file into `static/bundle.js`.
<ide>
<del>When the page loads, the bundle file will be started up and [`ReactDOM.hydrate()`](https://reactjs.org/docs/react-dom.... | 1 |
PHP | PHP | fix return type | ff69df0a028747f4361ef2b4615b2b03a719dbca | <ide><path>src/Controller/Component/PaginatorComponent.php
<ide> public function implementedEvents()
<ide> *
<ide> * @param \Cake\Datasource\RepositoryInterface|\Cake\Datasource\QueryInterface $object The table or query to paginate.
<ide> * @param array $settings The settings/configuration used for pagin... | 1 |
Text | Text | correct typos in various docs | 8f87080fcd05cdd9cddccf055c68f1da30fc7332 | <ide><path>doc/api/crypto.md
<ide> otherwise `err` will be `null`. By default, the successfully generated
<ide> thrown if any of the input arguments specify invalid values or types.
<ide>
<ide> If `digest` is `null`, `'sha1'` will be used. This behavior is deprecated,
<del>please specify a `digest` explicitely.
<add>p... | 4 |
Text | Text | remove target size for ctc | bb28770aa1fb541b5a7cc0745b17ca4881bfade6 | <ide><path>GOVERNANCE.md
<ide> A guide for Collaborators is maintained in
<ide>
<ide> ## CTC Membership
<ide>
<del>CTC seats are not time-limited. There is no fixed size of the CTC.
<del>However, the expected target is between 6 and 12, to ensure adequate
<del>coverage of important areas of expertise, balanced with ... | 1 |
Python | Python | allow subclasses in ndarray.__array_function__ | f7a82245fcd61a9b477d250d94951f33dfe2f097 | <ide><path>numpy/core/_methods.py
<ide> def _array_function(self, func, types, args, kwargs):
<ide> # TODO: rewrite this in C
<ide> # Cannot handle items that have __array_function__ other than our own.
<ide> for t in types:
<del> if t is not mu.ndarray:
<del> method = getattr(t, '__array_... | 3 |
Python | Python | add experimental warning | d9e848c1d646a47e4cff50555f7bff3ad8e4033c | <ide><path>src/transformers/models/gpt2/modeling_gpt2.py
<ide> class GPT2DoubleHeadsModelOutput(ModelOutput):
<ide> Whether or not to return a :class:`~transformers.file_utils.ModelOutput` instead of a plain tuple.
<ide> """
<ide> PARALLELIZE_DOCSTRING = r"""
<add> This is an experimental feature and is ... | 2 |
PHP | PHP | move xmlexception under utility\error | a427c33cb9e1be23c824cf2fa11b0f3dc05889a5 | <ide><path>src/Controller/Component/RequestHandlerComponent.php
<ide> use Cake\Controller\Controller;
<ide> use Cake\Core\App;
<ide> use Cake\Core\Configure;
<del>use Cake\Error;
<add>use Cake\Error\Exception;
<ide> use Cake\Event\Event;
<ide> use Cake\Network\Request;
<ide> use Cake\Network\Response;
<ide> use Cake\Ro... | 4 |
Ruby | Ruby | fix railtie to pass class when setting options | 4533bb7dcbdd6e0451395bc869d6c3603c6ff1df | <ide><path>actionpack/lib/system_testing/driver_adapter.rb
<ide> def driver
<ide> @driver ||= DriverAdapters.lookup(default_driver).new
<ide> end
<ide>
<del> def driver=(adapter: default_driver, settings: {})
<del> @driver = DriverAdapters.lookup(adapter).new(settings)
<add> def driver=(... | 3 |
Javascript | Javascript | fix duplication due to unsafe cache | 80b1e77705c1810ae7e95dea4453035da2ef652a | <ide><path>lib/Compilation.js
<ide> const byLocation = compareSelect(err => err.loc, compareLocations);
<ide>
<ide> const compareErrors = concatComparators(byModule, byLocation, byMessage);
<ide>
<del>/** @type {WeakMap<Dependency, Module & { restoreFromUnsafeCache: Function }>} */
<add>/** @type {WeakMap<Dependency,... | 11 |
Javascript | Javascript | revise comment + add non-bubbling event test | 1aae05c4364ca8553c62b46a8df70ebe8fa574f0 | <ide><path>packages/react-dom/src/__tests__/ReactDOMEventListener-test.js
<ide> describe('ReactDOMEventListener', () => {
<ide> document.body.removeChild(container);
<ide> }
<ide> });
<add>
<add> it('should bubble non-native bubbling events', () => {
<add> const container = document.createElement('div')... | 2 |
PHP | PHP | change default value of property | 8a11965b20c60961e3864dd71e8799a6b6c78a11 | <ide><path>src/Routing/Route/Route.php
<ide> class Route
<ide> *
<ide> * @var bool
<ide> */
<del> protected $braceKeys = false;
<add> protected $braceKeys = true;
<ide>
<ide> /**
<ide> * Valid HTTP methods.
<ide> protected function _writeRoute(): void
<ide>
<ide> if (strpos($rout... | 1 |
PHP | PHP | replace more strings with constants | 3383aacd9e1f1e812c828cdcb2b2f86853d416ce | <ide><path>tests/TestCase/Validation/ValidationTest.php
<ide> public function testCompareFieldsEqualTo()
<ide> 'other' => 'a value'
<ide> ]
<ide> ];
<del> $this->assertTrue(Validation::compareFields('a value', 'other', 'equalto', $context));
<add> $this->assertTrue(Vali... | 1 |
Ruby | Ruby | add `--adopt` switch | a715dec49d825da2c09da3e3fe83d7009a415cb8 | <ide><path>Library/Homebrew/cask/artifact/moved.rb
<ide> def summarize_installed
<ide>
<ide> private
<ide>
<del> def move(force: false, command: nil, **options)
<add> def move(adopt: false, force: false, verbose: false, command: nil, **options)
<add> unless source.exist?
<add> raise Ca... | 9 |
Ruby | Ruby | fix active support isolated build | 32ea85f1c232261214ccc155f75349654fb7ed74 | <ide><path>activesupport/test/message_encryptors_test.rb
<ide> # frozen_string_literal: true
<ide>
<add>require_relative "abstract_unit"
<ide> require_relative "rotation_coordinator_tests"
<ide>
<ide> class MessageEncryptorsTest < ActiveSupport::TestCase
<ide><path>activesupport/test/message_verifiers_test.rb
<ide> #... | 2 |
Python | Python | remove lock in fit_generator | 2f4eed1f0fb01e58791f02fbe1640869f13f876b | <ide><path>keras/engine/training.py
<ide> def generator_queue(generator, max_q_size=10,
<ide> if pickle_safe:
<ide> q = multiprocessing.Queue(maxsize=max_q_size)
<ide> _stop = multiprocessing.Event()
<del> lock = multiprocessing.Lock()
<ide> else:
<ide> q = queue.Queue()
<ide> ... | 1 |
Ruby | Ruby | add newline if preinstall updated | 2682b59b7f9bf668d73ee36e073f6e2a823f57ef | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def update_report
<ide> if !ARGV.include?("--preinstall") && !ENV["HOMEBREW_UPDATE_FAILED"]
<ide> puts "Already up-to-date."
<ide> end
<del> elsif hub.empty?
<del> puts "No changes to formulae."
<ide> else
<del> hub.dump
<del> ... | 1 |
Javascript | Javascript | use es6 export in null-grammar.js | 782b07096452849e497bd7199a26b289e8f4e6df | <ide><path>src/null-grammar.js
<ide>
<ide> import {Disposable} from 'event-kit'
<ide>
<del>module.exports = Object.freeze({
<add>export default Object.freeze({
<ide> name: 'Null Grammar',
<ide> scopeName: 'text.plain',
<ide> onDidUpdate (callback) { | 1 |
Ruby | Ruby | add pax to allowlist | ed1324c9ca3115184b270baa8e46259a3490a6cc | <ide><path>Library/Homebrew/rubocops/uses_from_macos.rb
<ide> class ProvidedByMacos < FormulaCop
<ide> net-snmp
<ide> netcat
<ide> openldap
<add> pax
<ide> pcsc-lite
<ide> pod2man
<ide> rpcgen | 1 |
Ruby | Ruby | use pathname#rmtree instead of fileutils | daf8c26108bd34dfbcad05f321f0edb61fba13b3 | <ide><path>Library/Homebrew/cmd/cleanup.rb
<ide> def cleanup_formula f
<ide> puts "Would remove: #{keg}"
<ide> else
<ide> puts "Removing: #{keg}..."
<del> rm_rf keg
<add> keg.rmtree
<ide> end
<ide> else
<ide> ... | 1 |
PHP | PHP | fix method signature of inherited method | 7101e3d232b8198d2a8a601175caf5581bbd16b9 | <ide><path>src/Illuminate/Database/Schema/Grammars/Grammar.php
<ide> public function wrapTable($table)
<ide> }
<ide>
<ide> /**
<del> * Wrap a value in keyword identifiers.
<del> *
<del> * @param string $value
<del> * @return string
<add> * {@inheritdoc}
<ide> */
<del> public function wrap($value)
<add> publ... | 1 |
Python | Python | fix problem with half | ac303eae46874e48854b60626b9db7a407688e3d | <ide><path>tests/test_modeling_bart.py
<ide> def test_tokenization(self):
<ide> @unittest.skipIf(torch_device == "cpu", "Cant do half precision")
<ide> def test_generate_fp16(self):
<ide> config, input_ids, batch_size = self._get_config_and_data(output_past=True)
<del> input_ids = input_ids.half(... | 1 |
Text | Text | clarify weak keys text | 50a4e00143720ee707905c13aac26d45b1b549e7 | <ide><path>doc/api/crypto.md
<ide> it can be used to put the ECDH key pair into an inconsistent state.
<ide>
<ide> The `crypto` module still supports some algorithms which are already
<ide> compromised and are not currently recommended for use. The API also allows
<del>the use of ciphers and hashes with a small key si... | 1 |
Mixed | Python | update callback system | 54b999e661d4eca342d270115f4ef740ce979923 | <ide><path>docs/sources/callbacks.md
<ide> ## Usage of callbacks
<ide>
<del>A callback is a set of functions to be applied at given stages of the training procedure. You can use callbacks to get a view on internal states and statistics of the model during training.
<add>A callback is a set of functions to be applied a... | 5 |
Javascript | Javascript | remove unused promiserejectioniserror | a8b5b63d4ea280275ede452f5e14b835e3eb7a3a | <ide><path>Libraries/promiseRejectionIsError.js
<del>/**
<del> * Copyright (c) Facebook, Inc. and its affiliates.
<del> *
<del> * This source code is licensed under the MIT license found in the
<del> * LICENSE file in the root directory of this source tree.
<del> *
<del> * @format
<del> * @flow strict
<del> */
<del>
<d... | 1 |
Python | Python | update concat_v2 to be concat to match 1.0 final | 634479399664e6a908e6e68ef13ffabf0b49f33e | <ide><path>resnet/cifar_input.py
<ide> def build_input(dataset, data_path, batch_size, mode):
<ide> labels = tf.reshape(labels, [batch_size, 1])
<ide> indices = tf.reshape(tf.range(0, batch_size, 1), [batch_size, 1])
<ide> labels = tf.sparse_to_dense(
<del> tf.concat_v2(values=[indices, labels], axis=1),
<ad... | 2 |
Text | Text | improve the test common documentation | 5ffb5b6fce376fa08be1af7552ce6d6c9e80bc56 | <ide><path>test/common/README.md
<ide> The `common` module is used by tests for consistency across repeated
<ide> tasks.
<ide>
<ide> ### allowGlobals(...whitelist)
<del>* `whitelist` [<Array>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) Array of Globals
<del>* return [<... | 1 |
Text | Text | use h4 for individual methods in apm api doc | e6229f614584c79b6ac1a4cf064f2a3dec7ea266 | <ide><path>docs/apm-rest-api.md
<ide> All requests that take parameters require `application/json`.
<ide>
<ide> ### Packages
<ide>
<del>**GET** /api/packages
<add>#### GET /api/packages
<ide>
<ide> Returns a list of all packages in the following format:
<ide> ```json
<ide> Returns a list of all packages in the follo... | 1 |
Text | Text | fix broken changelog markup [ci skip] | 5df4efd2fd08dfdf8583bcb6a4322aa5997c18e1 | <ide><path>actionpack/CHANGELOG.md
<ide> There is no controller instance when using a redirect route or a
<ide> mounted rack application so pass the request object as the context
<ide> when resolving dynamic CSP sources in this scenario.
<del>
<add>
<ide> Fixes #34200.
<del>
<add>
<ide> *And... | 3 |
Mixed | Javascript | add eventemitter.on to async iterate over events | 38a593b0f3bc4fa52ed9216d75a98bbf7ab5bd9e | <ide><path>doc/api/events.md
<ide> Value: `Symbol.for('nodejs.rejection')`
<ide>
<ide> See how to write a custom [rejection handler][rejection].
<ide>
<add>## events.on(emitter, eventName)
<add><!-- YAML
<add>added: REPLACEME
<add>-->
<add>
<add>* `emitter` {EventEmitter}
<add>* `eventName` {string|symbol} The name o... | 3 |
PHP | PHP | add error message when a table has no primary key | f0f52b4af6cab46cb134911fe1aea4629ae63e22 | <ide><path>src/ORM/Table.php
<ide> protected function _processSave($entity, $options) {
<ide> * @param array $data The actual data that needs to be saved
<ide> * @return \Cake\Datasource\EntityInterface|bool
<ide> * @throws \RuntimeException if not all the primary keys where supplied or could
<del> * be generated wh... | 2 |
Javascript | Javascript | remove unused uniform | 32955b5cc13cdd1aef074dbade9139e908136b6b | <ide><path>examples/js/objects/Water.js
<ide> THREE.Water = function ( width, height, options ) {
<ide> time: { value: 0.0 },
<ide> size: { value: 1.0 },
<ide> distortionScale: { value: 20.0 },
<del> noiseScale: { value: 1.0 },
<ide> textureMatrix: { value: new THREE.Matrix4() },
<ide> sunColor: ... | 1 |
Javascript | Javascript | improve core.openemptyeditoronstart description | 6472f069afb9d6a2b3cd4a64b589c7b372e877cf | <ide><path>src/config-schema.js
<ide> const configSchema = {
<ide> ]
<ide> },
<ide> openEmptyEditorOnStart: {
<del> description: 'Automatically open an empty editor on startup.',
<add> description: 'When checked opens an untitled editor on _File > New Window_; otherwise no buffer is op... | 1 |
Python | Python | add timing to spacy evaluate command | 02586a52431865a165439098bff8482cae96397a | <ide><path>spacy/__init__.py
<ide> from .cli.info import info as cli_info
<ide> from .glossary import explain
<ide> from .deprecated import resolve_load_name
<del>from .about import __version__
<add>#from .about import __version__
<ide> from . import util
<ide>
<ide> | 1 |
Text | Text | add command line $ tip for new programmers | e8bdbef00a26fd469c255cd5cfb4b3c71278beb4 | <ide><path>guides/source/migrations.md
<ide> adding these columns will also be created. For example, running
<ide> $ rails generate model Product name:string description:text
<ide> ```
<ide>
<add>TIP: All lines starting with a dollar sign `$` are intended to be run on the command line.
<add>
<ide> will create a migrat... | 1 |
PHP | PHP | add tests for cacheoverlappingstrategy | 781d4c03b2cf56ee6b90d68e8a5766496b91799c | <ide><path>tests/Console/Scheduling/CacheOverlappingStrategyTest.php
<add><?php
<add>
<add>namespace Illuminate\Tests\Console\Scheduling;
<add>
<add>use Illuminate\Console\Scheduling\CacheOverlappingStrategy;
<add>use Illuminate\Console\Scheduling\Event;
<add>use PHPUnit\Framework\TestCase;
<add>use Mockery as m;
<add>... | 1 |
Python | Python | reduce false-positives when detecting sqlite usage | e81ec7c6ad227897948ace6b06991c7553129072 | <ide><path>airflow/settings.py
<ide> def prepare_engine_args(disable_connection_pool=False):
<ide> if disable_connection_pool or not pool_connections:
<ide> engine_args['poolclass'] = NullPool
<ide> log.debug("settings.prepare_engine_args(): Using NullPool")
<del> elif 'sqlite' not in SQL_ALCHEMY... | 2 |
Python | Python | allow partial content on bytesio | b570bf699c162e3223043582179db1c67b0a4c74 | <ide><path>flask/helpers.py
<ide> :copyright: © 2010 by the Pallets team.
<ide> :license: BSD, see LICENSE for more details.
<ide> """
<del>
<add>import io
<ide> import os
<ide> import socket
<ide> import sys
<ide> def send_file(filename_or_fp, mimetype=None, as_attachment=False,
<ide>
<ide> .. versionchan... | 2 |
Text | Text | add openverse to inthewild.md | a2dd000bad25dcb4ced8ae052e7007078f5910e2 | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [Open Knowledge International](https://okfn.org) [@vitorbaptista](https://github.com/vitorbaptista)
<ide> 1. [Opensignal](https://www.opensignal.com) [@harrisjoseph](https://github.com/harrisjoseph)
<ide> 1. [OpenSlate](https://openslate.co... | 1 |
Javascript | Javascript | combine slug utils into one module | 9c2f1ffd820f85f6eda7080c41e5e214f74b3d4a | <ide><path>api-server/common/utils/index.js
<ide> export {
<ide> renderSignInEmail
<ide> } from './auth';
<ide>
<del>export function dashify(str) {
<del> return ('' + str)
<del> .toLowerCase()
<del> .replace(/\s/g, '-')
<del> .replace(/[^a-z0-9\-.]/gi, '')
<del> .replace(/:/g, '');
<del>}
<del>// todo: ... | 17 |
Javascript | Javascript | add a constant declaration for `net` | 4126441013bb569c19417f4a23c5f6b3bc38ef2b | <ide><path>benchmark/idle_server.js
<del>net = require('net');
<del>connections = 0;
<add>'use strict';
<ide>
<add>const net = require('net');
<add>var connections = 0;
<ide> var errors = 0;
<ide>
<del>server = net.Server(function (socket) {
<add>var server = net.Server(function (socket) {
<ide>
<ide> socket.on('e... | 1 |
Ruby | Ruby | use github api to generate release notes | 4f1bbf003ad1ad3523cdc59a04d49e0973d05090 | <ide><path>Library/Homebrew/dev-cmd/release.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "cli/parser"
<del>require "release_notes"
<ide>
<ide> module Homebrew
<ide> extend T::Sig
<ide> def release
<ide> if args.major? || args.minor?
<ide> latest_major_minor_version = "#{latest_version.major}... | 4 |
Mixed | Javascript | add debugger alias for exec(expr) | 7d75e3f5420ecc41784ea9d3409c405dad756a37 | <ide><path>doc/api/debugger.md
<ide> debug>
<ide> * `watchers`: List all watchers and their values (automatically listed on each
<ide> breakpoint)
<ide> * `repl`: Open debugger's repl for evaluation in debugging script's context
<del>* `exec expr`: Execute an expression in debugging script's context
<add>* `exec expr... | 3 |
Text | Text | add breaking change note for | fd1528a6c8920d032af65304e7659171c29106a0 | <ide><path>CHANGELOG.md
<ide> - strip off empty hash segments when comparing
<ide> ([e93710fe](https://github.com/angular/angular.js/commit/e93710fe0e4fb05ceee59a04f290692a5bec5d20),
<ide> [#9635](https://github.com/angular/angular.js/issues/9635))
<del>- **$parse:**
<add>- **$parse:**
<ide> - fix operators a... | 1 |
Ruby | Ruby | remove mass_assignment_options from activerecord | 2d7ae1b08ee2a10b12cbfeef3a6cc6da55b57df6 | <ide><path>activerecord/lib/active_record/associations/association.rb
<ide> def invertible_for?(record)
<ide> def stale_state
<ide> end
<ide>
<del> def build_record(attributes, options)
<del> reflection.build_association(attributes, options) do |record|
<add> def build_record(att... | 18 |
Ruby | Ruby | fix pg warnings on geometric types | dbdbda9a4a5cb9cd22e7a5a5625caa84edae6d5d | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def reload_type_map
<ide> initialize_type_map(type_map)
<ide> end
<ide>
<add> def add_oid(row, records_by_oid, type_map)
<add> return type_map if type_map.key? row['type_elem'].to_i
<add>
<add> ... | 1 |
PHP | PHP | add test cases | b2833d90647b14c0a8150f3ad6610ba567881498 | <ide><path>src/Validation/Validator.php
<ide> public function count(): int
<ide> * @param string $field The name of the field from which the rule will be added
<ide> * @param array|string $name The alias for a single rule or multiple rules array
<ide> * @param array|\Cake\Validation\ValidationRule $rule ... | 2 |
Ruby | Ruby | create `rails@localhost` user on travis ci | 249a982a2518facd0332f49196be7a6084330246 | <ide><path>ci/travis.rb
<ide> include FileUtils
<ide>
<ide> commands = [
<add> 'mysql -e "create user rails@localhost;"',
<add> 'mysql -e "grant all privileges on activerecord_unittest.* to rails@localhost;"',
<add> 'mysql -e "grant all privileges on activerecord_unittest2.* to rails@localhost;"',
<add> 'mysql -e ... | 1 |
Javascript | Javascript | pass cache instance into $http | 16363d8000a484b428a16eb07d8bd0f19c4b4337 | <ide><path>src/widgets.js
<ide> angularWidget('ng:include', function(element){
<ide> useScope = scope.$eval(scopeExp),
<ide> fromCache;
<ide>
<del> function updateContent(content) {
<del> element.html(content);
<del> if (useScope) {
<del> childScope = useScop... | 2 |
Javascript | Javascript | add secp224k1 check in crypto-dh-stateless | 940325042bef787e84917a27f9435d423b3f7f6d | <ide><path>test/parallel/test-crypto-dh-stateless.js
<ide> for (const [params1, params2] of [
<ide> test(crypto.generateKeyPairSync('ec', { namedCurve: 'secp256k1' }),
<ide> crypto.generateKeyPairSync('ec', { namedCurve: 'secp256k1' }));
<ide>
<add>const not256k1 = crypto.getCurves().find((c) => /^sec.*(224|384|5... | 1 |
Python | Python | simplify origin string cleaning | 68cb2daa410a72bcfb548587747afc9c5b946d11 | <ide><path>airflow/www/views.py
<ide> from json import JSONDecodeError
<ide> from operator import itemgetter
<ide> from typing import Any, Callable
<del>from urllib.parse import parse_qsl, unquote, urlencode, urlparse
<add>from urllib.parse import unquote, urljoin, urlsplit
<ide>
<ide> import configupdater
<ide> impor... | 3 |
Python | Python | fix unitnorm to be a class, like other constraints | 24be9eb88b899b3cc8ed0470bb4f72e33060698e | <ide><path>keras/constraints.py
<ide> def __call__(self, p):
<ide> p *= T.ge(p, 0)
<ide> return p
<ide>
<del>def UnitNorm(Constraint):
<add>class UnitNorm(Constraint):
<ide> def __call__(self, p):
<ide> return e / T.sqrt(T.sum(e**2, axis=-1, keepdims=True))
<ide>
<ide> identity = Constrain... | 1 |
Text | Text | use consistent typography in streams.md | a78c2335b137a1038610b7daa2d85406c3098f61 | <ide><path>doc/api/stream.md
<ide> pre-v0.10 style streams can be wrapped in a Readable class using the
<ide> There are some cases where it is necessary to trigger a refresh of the
<ide> underlying readable stream mechanisms, without actually consuming any
<ide> data. In such cases, it is possible to call `readable.rea... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.