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 | enable cross-platforms login to registry | 960710bd810e70b7c06b77b956c7bf8cdfeb15f8 | <ide><path>api/client/login.go
<ide> import (
<ide> //
<ide> // Usage: docker login SERVER
<ide> func (cli *DockerCli) CmdLogin(args ...string) error {
<del> cmd := Cli.Subcmd("login", []string{"[SERVER]"}, Cli.DockerCommands["login"].Description+".\nIf no server is specified \""+registry.IndexServer+"\" is the default... | 1 |
Python | Python | add pathlib in cli tests | 1b5f21e015e2c4f36fcdb34a09ce93787d59e181 | <ide><path>tests/test_cli.py
<ide> import sys
<ide> import types
<ide> from functools import partial
<add>from pathlib import Path
<ide> from unittest.mock import patch
<ide>
<ide> import click
<ide> from flask.cli import ScriptInfo
<ide> from flask.cli import with_appcontext
<ide>
<del>cwd = os.getcwd()
<del>test_pa... | 1 |
PHP | PHP | get argument order | 73d8e2f2fab62207c9264f2f3d09cb6bcbfc88f0 | <ide><path>system/arr.php
<ide> class Arr {
<ide> /**
<ide> * Get an item from an array.
<ide> *
<del> * @param string $key
<del> * @param string $default
<ide> * @param array $array
<add> * @param string $key
<add> * @param array $default
<ide> * @return mixed
<ide> */
<del> public static fu... | 2 |
Text | Text | remove note related to format.js [ci skip] | 8019ad72ea5c5bb4fd5c0e2c56c050858d7bc2c1 | <ide><path>guides/source/working_with_javascript_in_rails.md
<ide> $(document).ready ->
<ide> Obviously, you'll want to be a bit more sophisticated than that, but it's a
<ide> start. You can see more about the events [in the jquery-ujs wiki](https://github.com/rails/jquery-ujs/wiki/ajax).
<ide>
<del>
<del>NOTE: If jav... | 1 |
Javascript | Javascript | remove pdfworker from cache after detsroy | 9b1b160d4f6f293488bed497678836908525f1a3 | <ide><path>src/display/api.js
<ide> var PDFWorker = (function PDFWorkerClosure() {
<ide> this._webWorker.terminate();
<ide> this._webWorker = null;
<ide> }
<add> pdfWorkerPorts.delete(this._port);
<ide> this._port = null;
<ide> if (this._messageHandler) {
<ide> this._messa... | 1 |
Java | Java | handle webview provider missing exception | 3f3394a5668d515e3476933aec67f07794c6e765 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/network/ForwardingCookieHandler.java
<ide> protected void doInBackgroundGuarded(Void... params) {
<ide> // https://bugs.chromium.org/p/chromium/issues/detail?id=559720
<ide> return null;
<ide> } catch (Exception exception) {
<del> ... | 1 |
Javascript | Javascript | add default material | 654e95dc47d1a143efdf074d9a6736ef0531f901 | <ide><path>examples/js/loaders/GLTFLoader.js
<ide> THREE.GLTFLoader = ( function () {
<ide>
<ide> }
<ide>
<add> function createDefaultMaterial() {
<add>
<add> return new THREE.MeshPhongMaterial( {
<add> color: 0x00000,
<add> emissive: 0x888888,
<add> specular: 0x000000,
<add> shininess: 0,
<add> transpare... | 1 |
Javascript | Javascript | make polyfills and globals lazy | 9a3a082225277ff65857ac046fa09edb51702367 | <ide><path>Libraries/BatchedBridge/BatchedBridgedModules/NativeModules.js
<ide>
<ide> const BatchedBridge = require('BatchedBridge');
<ide> const RemoteModules = BatchedBridge.RemoteModules;
<add>const Platform = require('Platform');
<ide>
<ide> function normalizePrefix(moduleName: string): string {
<ide> return mo... | 2 |
Python | Python | set segmentation loss weight to 0.5 | 2e9081986f2f9261c8f78e7dae71f336f1647dc5 | <ide><path>official/vision/beta/projects/panoptic_maskrcnn/configs/panoptic_maskrcnn.py
<ide> class Losses(maskrcnn.Losses):
<ide> semantic_segmentation_use_groundtruth_dimension: bool = True
<ide> semantic_segmentation_top_k_percent_pixels: float = 1.0
<ide> instance_segmentation_weight: float = 1.0
<del> seman... | 1 |
Javascript | Javascript | add path of project to the doc gen config | 9ca685bfbdbb63794c8e203936cdd383ff8745a5 | <ide><path>docs/docs.config.js
<ide> module.exports = function(config) {
<ide>
<ide> config = basePackage(config);
<ide>
<add> config.set('source.projectPath', path.resolve(basePath, '..'));
<add>
<ide> config.set('source.files', [
<ide> { pattern: 'src/**/*.js', basePath: path.resolve(basePath,'..') },
<ide... | 1 |
Javascript | Javascript | replace assert.throws w/ common.expectserror | 0005846f033ae9866a6bc5dbbe7f73c6aeb67185 | <ide><path>test/parallel/test-buffer-alloc.js
<ide> new Buffer('', 'latin1');
<ide> new Buffer('', 'binary');
<ide> Buffer(0);
<ide>
<add>const outOfBoundsError = {
<add> code: 'ERR_BUFFER_OUT_OF_BOUNDS',
<add> type: RangeError
<add>};
<add>
<ide> // try to write a 0-length string beyond the end of b
<del>common.exp... | 1 |
Text | Text | graduate capturerejections to supported | 9a85efaa7f5f22c6905bf47d672dd73738787437 | <ide><path>doc/api/events.md
<ide> myEmitter.emit('error', new Error('whoops!'));
<ide>
<ide> ## Capture rejections of promises
<ide>
<del>> Stability: 1 - captureRejections is experimental.
<del>
<ide> Using `async` functions with event handlers is problematic, because it
<ide> can lead to an unhandled rejection in ... | 1 |
Javascript | Javascript | add more options to map-bench | a6e69f8c08958a0909a60b53d048b21d181e90e5 | <ide><path>benchmark/es/map-bench.js
<ide> const common = require('../common.js');
<ide> const assert = require('assert');
<ide>
<ide> const bench = common.createBenchmark(main, {
<del> method: ['object', 'nullProtoObject', 'fakeMap', 'map'],
<add> method: [
<add> 'object', 'nullProtoObject', 'nullProtoLiteralObj... | 1 |
Javascript | Javascript | catch getrouteentry errors | b095432e6d9750f65bab0a57a1f34019e352fd7c | <ide><path>Libraries/Core/ExceptionsManager.js
<ide> function reportException(
<ide> message =
<ide> e.jsEngine == null ? message : `${message}, js engine: ${e.jsEngine}`;
<ide>
<del> const isHandledByLogBox = e.forceRedbox !== true && !global.RN$Bridgeless;
<add> const isHandledByLogBox =
<add> e... | 1 |
PHP | PHP | fix failing tests on windows | e9dd234ef72644f972751608d8d13f5b2fceb7de | <ide><path>tests/TestCase/Console/Command/Task/PluginTaskTest.php
<ide> public function testExecuteUpdateComposer() {
<ide>
<ide> $this->Task->expects($this->at(3))
<ide> ->method('callProcess')
<del> ->with("cd '$path'; php 'composer.phar' dump-autoload");
<add> ->with('cd ' . escapeshellarg($path) . '; php ... | 1 |
Text | Text | add trpc to examples | 65ea43f6d5bf6b1245835de02ad9974efa040a07 | <ide><path>examples/with-trpc/README.md
<add># Next.js + tRPC
<add>
<add>## Next.js + tRPC + Prisma starter
<add>
<add>- https://github.com/trpc/examples-next-prisma-starter
<add>
<add>## Next.js + tRPC + Prisma starter with websockets
<add>
<add>- https://github.com/trpc/examples-next-prisma-starter-websockets
<add>
<... | 1 |
Python | Python | remove performance claim | 0ca5969ae7dcd1770f117d8c8782b7c4ec4e5ca4 | <ide><path>numpy/core/fromnumeric.py
<ide> def searchsorted(a, v, side='left', sorter=None):
<ide> As of NumPy 1.4.0 `searchsorted` works with real/complex arrays containing
<ide> `nan` values. The enhanced sort order is documented in `sort`.
<ide>
<del> This function is a faster version of the builtin pyth... | 1 |
Text | Text | add permissions doc | bf5482216bc80cee609590c518ea9415358c931f | <ide><path>share/doc/homebrew/El_Capitan_and_Homebrew.md
<add># El Capitan & Homebrew
<add>
<add>Part of the OS X 10.11/El Capitan changes is something called [System Integrity Protection](https://en.wikipedia.org/wiki/System_Integrity_Protection) or "SIP".
<add>
<add>SIP prevents you from writing to many system direct... | 1 |
Ruby | Ruby | use separate collection for requirement deps | 0b9c29a66743cf2b0fd2128ba83b2bc8e7ad9e4c | <ide><path>Library/Homebrew/formula_installer.rb
<ide> class FormulaInstaller
<ide> attr_accessor :tab, :options, :ignore_deps
<ide> attr_accessor :show_summary_heading, :show_header
<ide> attr_reader :unsatisfied_deps
<add> attr_reader :requirement_deps
<ide>
<ide> def initialize ff
<ide> @f = ff
<ide> d... | 1 |
Text | Text | add link to api documentation | 30433253eda59656b1060d6ccc5e1b8e5913c331 | <ide><path>guides/source/action_controller_overview.md
<ide> end
<ide>
<ide> The [Layouts & Rendering Guide](layouts_and_rendering.html) explains this in more detail.
<ide>
<del>`ApplicationController` inherits from `ActionController::Base`, which defines a number of helpful methods. This guide will cover some of the... | 1 |
Javascript | Javascript | fix old comments | f4f2699bf732033747eeaa16f39ec85d619b32fe | <ide><path>packages/ember-routing-handlebars/tests/helpers/action_test.js
<del>import Ember from 'ember-metal/core'; // A, FEATURES, assert, TESTING_DEPRECATION
<add>import Ember from 'ember-metal/core'; // A, FEATURES, assert
<ide> import { set } from "ember-metal/property_set";
<ide> import run from "ember-metal/run_... | 2 |
Text | Text | fix spelling error | 439f2662b4f32c0a520c1c778ec6f5bd731f313d | <ide><path>guide/english/php/PHP Syantax and Comments/index.md
<ide> ---
<del>title: PHP Syantax and Comments
<add>title: PHP Syntax and Comments
<ide> ---
<ide>
<del>### PHP Syantx
<add>### PHP Syntax
<ide>
<del>The structure of a PHP syantax somewhat looks like:
<add>The structure of a PHP syntax somewhat looks lik... | 1 |
Javascript | Javascript | update semver regex to support uppercase branches | 93080b5879d02412b737eacaaf25e0f0d8e7db9e | <ide><path>packages/ember-metal/tests/main_test.js
<ide> import Ember from '..'; // testing reexports
<ide>
<del>// From sindresourhus/semver-regex https://github.com/sindresorhus/semver-regex/blob/795b05628d96597ebcbe6d31ef4a432858365582/index.js#L3
<del>const SEMVER_REGEX = /^\bv?(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)... | 1 |
PHP | PHP | apply styleci fixes | 4087ab34e16eb4ba35512b9d2d68ad184b2a0fc5 | <ide><path>src/Illuminate/Database/Console/Factories/FactoryMakeCommand.php
<ide> protected function getArguments()
<ide> {
<ide> return [
<ide> parent::getArguments()[0],
<del> ['model', InputArgument::OPTIONAL, 'The name of the model to create']
<add> ['model', InputArgum... | 2 |
Go | Go | fix vet warning | 213eab995a3e6dcdb69b587301cc5008911e3dfe | <ide><path>pkg/archive/archive_test.go
<ide> func TestTarWithBlockCharFifo(t *testing.T) {
<ide> t.Fatal(err)
<ide> }
<ide> if len(changes) > 0 {
<del> t.Fatalf("Tar with special device (block, char, fifo) should keep them (recreate them when untar) : %s", changes)
<add> t.Fatalf("Tar with special device (block, ... | 1 |
Go | Go | simplify dir removal in overlay driver | 6ed11b53743668dba3bcf6ecef4e57a399d95569 | <ide><path>daemon/graphdriver/overlay/overlay.go
<ide> func (d *Driver) dir(id string) string {
<ide>
<ide> // Remove cleans the directories that are created for this id.
<ide> func (d *Driver) Remove(id string) error {
<del> dir := d.dir(id)
<del> if _, err := os.Stat(dir); err != nil {
<del> return err
<del> }
<del... | 1 |
Python | Python | update alias for field_mask in google memmcache | a3f5c93806258b5ad396a638ba0169eca7f9d065 | <ide><path>airflow/providers/google/cloud/hooks/cloud_memorystore.py
<ide> def update_instance(
<ide> - ``redisConfig``
<ide>
<ide> If a dict is provided, it must be of the same form as the protobuf message
<del> :class:`~google.cloud.redis_v1.types.FieldMask`
<del> :type upd... | 2 |
Javascript | Javascript | match any dates (linkedin button) | 2b60d14b5cc2360363bf0588e1c292686a14e8bd | <ide><path>cypress/integration/ShowCertification.js
<ide> describe('A certification,', function() {
<ide> });
<ide>
<ide> it('should render a LinkedIn button', function() {
<del> cy.contains('Add this certification to my LinkedIn profile').should(
<del> 'have.attr',
<del> 'href',
<del> ... | 1 |
Javascript | Javascript | attempt #6 to fix format | f87d5ef77f6954c59954342a1e9232e4764cfbdc | <ide><path>test/lang/ms-my.js
<ide> exports["lang:ms-my"] = {
<ide> ['L', '14/02/2010'],
<ide> ['LL', '14 Februari 2010'],
<ide> ['LLL', '14 Februari 2010 pukul 15.25'],
<del> ... | 1 |
Go | Go | fix bugs when pruning buildkit cache with filters | 48620057beb843ee1fb4e69ae0ed1e8eac9f307a | <ide><path>builder/builder-next/builder.go
<ide> func toBuildkitPruneInfo(opts types.BuildCachePruneOptions) (client.PruneInfo, e
<ide>
<ide> bkFilter := make([]string, 0, opts.Filters.Len())
<ide> for cacheField := range cacheFields {
<del> values := opts.Filters.Get(cacheField)
<del> switch len(values) {
<del> ... | 1 |
PHP | PHP | move json method to input class | 208eb8a380766b9f9cf5a4ecfa953fd0c8d629d9 | <ide><path>laravel/input.php
<ide>
<ide> class Input {
<ide>
<add> /**
<add> * The JSON payload for applications using Backbone.js or similar.
<add> *
<add> * @var object
<add> */
<add> public static $json;
<add>
<ide> /**
<ide> * The key used to store old input in the session.
<ide> *
<ide> public static fu... | 2 |
Python | Python | remove unnecessary prints | 2831597c9432cafc9d77e9f7401cc55d3d25ff97 | <ide><path>celery/worker/__init__.py
<ide> def on_start(self):
<ide> pass
<ide>
<ide> def on_consumer_ready(self, consumer):
<del> print 'In consumer_ready'
<del> print self.on_consumer_ready_callbacks
<ide> [callback(consumer) for callback in self.on_consumer_ready_callbacks]
<ide> ... | 1 |
Javascript | Javascript | add mjs extension to lint-js | 641eac9b0d762bcbd7d7301d477187ab99baf384 | <ide><path>tools/lint-js.js
<ide> 'use strict';
<ide>
<ide> const rulesDirs = ['tools/eslint-rules'];
<del>const extensions = ['.js', '.md'];
<add>const extensions = ['.js', '.mjs', '.md'];
<ide> // This is the maximum number of files to be linted per worker at any given time
<ide> const maxWorkload = 60;
<ide> | 1 |
Java | Java | replace bindtohttphandler with bindtowebhandler | 4d4c3d5c0b74d55c4dd6a0927e813f54724cdb5f | <ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultMockServerSpec.java
<add>/*
<add> * Copyright 2002-2017 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... | 4 |
Ruby | Ruby | inline cipher constant | d22f8796919b2e8eeadce1d74ad4cf33f695e57e | <ide><path>railties/lib/rails/secrets.rb
<ide> def initialize
<ide> end
<ide> end
<ide>
<del> CIPHER = "aes-128-gcm"
<del>
<add> @cipher = "aes-128-gcm"
<ide> @read_encrypted_secrets = false
<ide> @root = File # Wonky, but ensures `join` uses the current directory.
<ide>
<ide> def parse(paths,... | 1 |
Python | Python | fix action logging | 252c6436b3197f97f0ed27f533389f88d9e425ed | <ide><path>airflow/www/utils.py
<ide> def wrapper(*args, **kwargs):
<ide>
<ide> session.add(
<ide> models.Log(
<del> event=f.func_name,
<add> event=f.__name__,
<ide> task_instance=None,
<ide> owner=user,
<del> extra=reques... | 1 |
Python | Python | add intra/inter op support for dcgan model | ebc97a77da336dbaa92f3a8b88413b910c85295f | <ide><path>research/gan/cifar/eval.py
<ide>
<ide> flags.DEFINE_boolean('write_to_disk', True, 'If `True`, run images to disk.')
<ide>
<add>flags.DEFINE_integer(
<add> 'inter_op_parallelism_threads', 0,
<add> 'Number of threads to use for inter-op parallelism. If left as default value of 0, the system will pick ... | 2 |
Go | Go | fix readall to run on windows | 691555fc8b070a40d3e35922fda681394bdfa173 | <ide><path>builder/dockerignore/dockerignore.go
<ide> func ReadAll(reader io.ReadCloser) ([]string, error) {
<ide> continue
<ide> }
<ide> pattern = filepath.Clean(pattern)
<add> pattern = filepath.ToSlash(pattern)
<ide> excludes = append(excludes, pattern)
<ide> }
<ide> if err := scanner.Err(); err != nil { | 1 |
Javascript | Javascript | halve the size of the pageview cache | f852cefdd8efc83ae6cd6010c97aec516bd408c9 | <ide><path>web/viewer.js
<ide> var DEFAULT_URL = 'compressed.tracemonkey-pldi-09.pdf';
<ide> var DEFAULT_SCALE = 'auto';
<ide> var DEFAULT_SCALE_DELTA = 1.1;
<ide> var UNKNOWN_SCALE = 0;
<del>var CACHE_SIZE = 20;
<add>var CACHE_SIZE = 10;
<ide> var CSS_UNITS = 96.0 / 72.0;
<ide> var SCROLLBAR_PADDING = 40;
<ide> var VE... | 1 |
Python | Python | use correct fixtures in url tokenizer | 42cd598f572dbf9194aeaf9641e349d5629b31e0 | <ide><path>spacy/tests/tokenizer/test_urls.py
<ide> '"', ":", ">"]
<ide>
<ide> @pytest.mark.parametrize("text", URLS)
<del>def test_simple_url(en_tokenizer, text):
<del> tokens = en_tokenizer(text)
<add>def test_simple_url(tokenizer, text):
<add> tokens = tokenizer(text)
<ide> assert tokens[0].orth_ == t... | 1 |
Python | Python | fix mypy errors for arithmetic analysis algorithms | ad5108d6a49155bc0a5aca498426265004b0265f | <ide><path>arithmetic_analysis/in_static_equilibrium.py
<ide> """
<ide> Checks if a system of forces is in static equilibrium.
<del>
<del>python/black : true
<del>flake8 : passed
<del>mypy : passed
<ide> """
<add>from typing import List
<ide>
<del>from __future__ import annotations
<del>
<del>from numpy import array, ... | 5 |
PHP | PHP | apply fixes from styleci | d435f584348f754ffe1a680e98fd30e6d1e17d61 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public function fill(array $attributes)
<ide> $this->setAttribute($key, $value);
<ide> } elseif ($totallyGuarded) {
<ide> throw new MassAssignmentException(sprintf(
<del> "Add [%s] to fillable prop... | 2 |
Ruby | Ruby | redirect deprecation tests | 315873041155510fc629e78e4f1567e913935340 | <ide><path>actionpack/test/controller/redirect_test.rb
<ide> def setup
<ide>
<ide> def test_simple_redirect
<ide> get :simple_redirect
<del> assert_redirect_url "http://test.host/redirect/hello_world"
<add> assert_response :redirect
<add> assert_equal "http://test.host/redirect/hello_world", redirect_to... | 1 |
Go | Go | fix a minor typo in daemon/exec.go | 5b794c413a147dbc06f76caa6f2c32d1f4b1f2ce | <ide><path>daemon/exec.go
<ide> func (execConfig *execConfig) Resize(h, w int) error {
<ide> }
<ide>
<ide> func (d *Daemon) registerExecCommand(execConfig *execConfig) {
<del> // Storing execs in container inorder to kill them gracefully whenever the container is stopped or removed.
<add> // Storing execs in container... | 1 |
PHP | PHP | add the route name to the check subcommand | 569dfd2df091c96115b0dd79514e87611117ba91 | <ide><path>src/Shell/RoutesShell.php
<ide> public function check($url)
<ide> {
<ide> try {
<ide> $route = Router::parse($url);
<add> foreach (Router::routes() as $r) {
<add> if ($r->match($route)) {
<add> $name = isset($r->options['_name']) ? $r->opti... | 2 |
Python | Python | scheduler tweaks, logging improvement | f46f3e1a208f6f347faa9ad4d66c3e96c0e6e360 | <ide><path>airflow/jobs.py
<ide> def process_dag(self, dag, executor):
<ide>
<ide> descartes = [obj for obj in product(dag.tasks, active_runs)]
<ide> logging.info(
<del> 'Scheduling {} tasks instances, '
<add> 'Checking dependencies on {} tasks instances, '
<ide> 'minu... | 2 |
Text | Text | add missing --add-runtime | 585332dfe0b4b38f428deb680086b6d69275100d | <ide><path>docs/reference/commandline/dockerd.md
<ide> weight = -1
<ide> A self-sufficient runtime for linux containers.
<ide>
<ide> Options:
<add> --add-runtime=[] Register an additional OCI compatible runtime
<ide> --api-cors-header="" Set CORS headers in th... | 2 |
Text | Text | fix unnecessary translation of strong tag | 372cba1c4cd6ae63fc17d385d1d6ffff1556ddbb | <ide><path>curriculum/challenges/spanish/01-responsive-web-design/applied-visual-design/use-the-strong-tag-to-make-text-bold.spanish.md
<ide> id: 587d781a367417b2b2512ab7
<ide> title: Use the strong Tag to Make Text Bold
<ide> challengeType: 0
<ide> videoUrl: ''
<del>localeTitle: Utilice la etiqueta fuerte para hacer e... | 1 |
Ruby | Ruby | remove deprecated block usage in composed_of | fdb7f84eb10c5e59490764a1a259aa00a1fcfe5f | <ide><path>activerecord/lib/active_record/aggregations.rb
<ide> module ClassMethods
<ide> # :constructor => Proc.new { |ip| IPAddr.new(ip, Socket::AF_INET) },
<ide> # :converter => Proc.new { |ip| ip.is_a?(Integer) ? IPAddr.new(ip, Socket::AF_INET) : IPAddr.new(ip.to_s) }
<ide> ... | 2 |
PHP | PHP | add functions for encrypt / decrypt | ea9432aa1036c45b9af78af7ab111d2da4ca32b5 | <ide><path>src/Illuminate/Foundation/helpers.php
<ide> function database_path($path = '')
<ide> }
<ide> }
<ide>
<add>if (! function_exists('decrypt')) {
<add> /**
<add> * Decrypt the given value.
<add> *
<add> * @param string $value
<add> * @return string
<add> */
<add> function decrypt... | 1 |
Javascript | Javascript | simplify map implementation | 4b25f0a62b8028690a9b28f99ab9a2b32bb8bce6 | <ide><path>d3.js
<ide> function d3_selection_filter(filter) {
<ide> return d3_selection(subgroups);
<ide> }
<ide> function d3_selection_map(map) {
<del> for (var j = 0, m = this.length; j < m; j++) {
<del> for (var group = this[j], i = 0, n = group.length, node; i < n; i++) {
<del> if (node = group[i]) node.... | 3 |
Ruby | Ruby | remove deprecated constants autoload | b990921f05b641c0d6f1b98c2c2ac19b9cdf9906 | <ide><path>actionpack/lib/action_controller.rb
<ide> module ActionController
<ide> autoload :UrlFor
<ide> end
<ide>
<del> autoload :Integration, 'action_controller/deprecated/integration_test'
<del> autoload :IntegrationTest, 'action_controller/deprecated/integration_test'
<del> autoload :Routing, ... | 1 |
PHP | PHP | add deprecation warnings to event/filesystem | dce82efd44279378df075b37a16dea42d343f435 | <ide><path>src/Event/Event.php
<ide> public function __construct($name, $subject = null, $data = null)
<ide> */
<ide> public function __get($attribute)
<ide> {
<add> $method = 'get' . ucfirst($attribute);
<add> deprecationWarning(
<add> "Event::${$attribute} is deprecated. " .
<add... | 8 |
Javascript | Javascript | add documentation to textinput's flow types | d00f0882fbdd532f8698d2569bd771ca5843d0f5 | <ide><path>Libraries/Components/TextInput/TextInput.js
<ide> export type TextContentType =
<ide> type PasswordRules = string;
<ide>
<ide> type IOSProps = $ReadOnly<{|
<add> /**
<add> * If `false`, disables spell-check style (i.e. red underlines).
<add> * The default value is inherited from `autoCorrect`.
<add> ... | 1 |
Javascript | Javascript | remove redefinition of fog chunk | 15ee4cf3b3cb6c8bbec642c22b3645e98f1511c8 | <ide><path>examples/js/effects/OutlineEffect.js
<ide> THREE.OutlineEffect = function ( renderer, parameters ) {
<ide>
<ide> var vertexShaderChunk = [
<ide>
<del> "#include <fog_pars_vertex>",
<del>
<ide> "uniform float outlineThickness;",
<ide>
<ide> "vec4 calculateOutline( vec4 pos, vec3 objectNormal, vec4 sk... | 1 |
Ruby | Ruby | fix typo in method description in responder class | 56d386254123df3083437ecd619b4a7242cf0788 | <ide><path>actionpack/lib/action_controller/metal/responder.rb
<ide> def initialize(controller, resources, options={})
<ide> undef_method(:to_json) if method_defined?(:to_json)
<ide> undef_method(:to_yaml) if method_defined?(:to_yaml)
<ide>
<del> # Initializes a new responder an invoke the proper format. If... | 1 |
PHP | PHP | add a passwordreset event. | d36101c68f43e22fbe69e61eb2d9b68d9d698d15 | <ide><path>src/Illuminate/Auth/Events/PasswordReset.php
<add><?php
<add>
<add>namespace Illuminate\Auth\Events;
<add>
<add>use Illuminate\Queue\SerializesModels;
<add>
<add>class PasswordReset
<add>{
<add> use SerializesModels;
<add>
<add> /**
<add> * The user.
<add> *
<add> * @var \Illuminate\Contrac... | 2 |
PHP | PHP | add test for callback condition and fix docs | f2aa2726bafb580db836a083fb0df558768d2a8e | <ide><path>src/Validation/Validator.php
<ide> public function allowEmptyString($field, $when = true, $message = null)
<ide> * Opposite to allowEmptyString()
<ide> *
<ide> * @param string $field The name of the field.
<del> * @param string|null $message The message to show if the field is not
<add> ... | 2 |
Javascript | Javascript | update a typo in module.js' comments | 520cf1d6de3373a0949203aac7539cbc96761814 | <ide><path>lib/module.js
<ide> function toRealPath(requestPath) {
<ide> });
<ide> }
<ide>
<del>// given a path check a the file exists with any of the set extensions
<add>// given a path, check if the file exists with any of the set extensions
<ide> function tryExtensions(p, exts, isMain) {
<ide> for (var i = 0; i... | 1 |
Go | Go | add error when running overlay over btrfs | 32f1025b22d16872ead5ec2e3650bf76622fae99 | <ide><path>daemon/graphdriver/overlay/overlay.go
<ide> func Init(home string, options []string) (graphdriver.Driver, error) {
<ide> return nil, graphdriver.ErrNotSupported
<ide> }
<ide>
<add> // check if they are running over btrfs
<add> var buf syscall.Statfs_t
<add> if err := syscall.Statfs(path.Dir(home), &buf);... | 1 |
Ruby | Ruby | register spec subclasses for people who spec | 1c09c29a0958eac86fffede00f30a1bee36d09a9 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def exists?
<ide> #
<ide> # assert_redirected_to page_url(:title => 'foo')
<ide> class TestCase < ActiveSupport::TestCase
<add>
<add> # Use AS::TestCase for the base class when describing a model
<add> register_spec_type(self) do |desc|
<add> ... | 2 |
Javascript | Javascript | update open source env | 3ff39870ce776c653823e1733363be0401896294 | <ide><path>jestSupport/env.js
<ide>
<ide> require('../packager/react-packager/src/Resolver/polyfills/babelHelpers.js');
<ide> global.__DEV__ = true;
<add>global.__fbBatchedBridgeConfig = {
<add> remoteModuleConfig: [],
<add> localModulesConfig: [],
<add>};
<add>
<add>global.Promise = require('promise'); | 1 |
Text | Text | clarify the meaning of legacy status | 625c1e841adee3e687225597e60c70df6510a696 | <ide><path>doc/api/documentation.md
<ide> The stability indices are as follows:
<ide>
<ide> <!-- separator -->
<ide>
<del>> Stability: 3 - Legacy. The feature is no longer recommended for use. While it
<del>> likely will not be removed, and is still covered by semantic-versioning
<del>> guarantees, use of the feature... | 2 |
Javascript | Javascript | remove legacy addon `viewname` support | a85d6a19fc82ea86f137483a773aa0f1a0e15366 | <ide><path>packages/ember-htmlbars/lib/node-managers/component-node-manager.js
<ide> function configureCreateOptions(attrs, createOptions) {
<ide> // they are still streams.
<ide> if (attrs.id) { createOptions.elementId = getValue(attrs.id); }
<ide> if (attrs._defaultTagName) { createOptions._defaultTagName = get... | 3 |
Javascript | Javascript | use loaderoptionsplugin to set updateindex | ccf9da2171a4a35f85998f15df8f7f84e183a64a | <ide><path>test/HotTestCases.test.js
<ide> describe("HotTestCases", function() {
<ide> var recordsPath = path.join(outputDirectory, "records.json");
<ide> if(fs.existsSync(recordsPath))
<ide> fs.unlinkSync(recordsPath);
<add> var fakeUpdateLoaderOptions = {
<add> options: {
<add> updateIn... | 1 |
Javascript | Javascript | replace language select | 1e60623c8bb372b8a9f192c5619a15f4748f4e0a | <ide><path>client/src/components/Header/Header.test.js
<ide> const hasRadioNavItem = component => {
<ide> };
<ide>
<ide> const hasSignOutNavItem = component => {
<del> const { children } = navigationLinks(component, 10);
<add> const { children } = navigationLinks(component, 12);
<ide> const signOutProps = children... | 2 |
Ruby | Ruby | use faster form of running callbacks | a87b62729715fb286ea613e6e3ec59135a82529d | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
<ide> def checkout
<ide> # calling +checkout+ on this pool.
<ide> def checkin(conn)
<ide> @connection_mutex.synchronize do
<del> conn.run_callbacks :checkin do
<add> conn._run_checkin_callback... | 1 |
PHP | PHP | use putenv to define defaults | 7005190c1669e2760f0f47574996287c596d894e | <ide><path>tests/init.php
<ide> ]
<ide> ]);
<ide>
<add>// Ensure default test connection is defined
<add>if (!getenv('db_class')) {
<add> putenv('db_class=Cake\Database\Driver\Sqlite');
<add> putenv('db_dsn=sqlite::memory:');
<add>}
<add>
<ide> ConnectionManager::config('test', [
<ide> 'className' => 'Cake\Database\... | 1 |
Ruby | Ruby | fix multiple hash preloads. fixes | b713e207d470fe01ce8ea945163c6c2540292301 | <ide><path>activerecord/lib/active_record/associations/preloader.rb
<ide> def preloaders_on(association, records, scope)
<ide> end
<ide>
<ide> def preloaders_for_hash(association, records, scope)
<del> parent, child = association.to_a.first # hash should only be of length 1
<add> association.... | 2 |
Text | Text | add contributors snapshot | c069932f5da84f99cac527f7b222101359e99943 | <ide><path>README.md
<ide>
<ide> 🤗 Transformers (formerly known as `pytorch-transformers` and `pytorch-pretrained-bert`) provides state-of-the-art general-purpose architectures (BERT, GPT-2, RoBERTa, XLM, DistilBert, XLNet, CTRL...) for Natural Language Understanding (NLU) and Natural Language Generation (NLG) with o... | 1 |
Text | Text | specify correct version in the changelog [ci skip] | b74c3565cb08d6b011915c7c04c2f01fa1b78bf0 | <ide><path>activerecord/CHANGELOG.md
<ide> * `time` columns can now affected by `time_zone_aware_attributes`. If you have
<ide> set `config.time_zone` to a value other than `'UTC'`, they will be treated
<del> as in that time zone by default in Rails 5.0. If this is not the desired
<add> as in that time zone... | 1 |
Javascript | Javascript | increase ram requirement for intensive tests | 135a863f80791f7ecf7e05e5719018bb86f35cd9 | <ide><path>test/common.js
<ide> exports.isLinuxPPCBE = (process.platform === 'linux') &&
<ide> exports.isSunOS = process.platform === 'sunos';
<ide> exports.isFreeBSD = process.platform === 'freebsd';
<ide>
<del>exports.enoughTestMem = os.totalmem() > 0x20000000; /* 512MB */
<add>exports.enoughTestMem = os.totalmem() ... | 2 |
PHP | PHP | clear the resolved request facade on dispatch | fcad1d7b24af9878cfa3cf80e10adf0925a77ce4 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> use Illuminate\Routing\Router;
<ide> use Illuminate\Container\Container;
<ide> use Illuminate\Filesystem\Filesystem;
<add>use Illuminate\Support\Facades\Facade;
<ide> use Illuminate\Support\ServiceProvider;
<ide> use Illuminate\Events\EventServiceProvider;
<ide... | 2 |
Ruby | Ruby | fix bad docs from f373f296 [ci skip] | a29554461e43f8c1b428422f49103aa80275bf46 | <ide><path>actionpack/lib/action_view/lookup_context.rb
<ide> def initialize(view_paths, details = {}, prefixes = [])
<ide> initialize_details(details)
<ide> end
<ide>
<del> # Freeze the current formats in the lookup context. By freezing them, you
<del> # that next template lookups are not going to mod... | 1 |
Ruby | Ruby | improve assert_response helper | bc3b0e729282b6474f217806c14f293584dd8c97 | <ide><path>actionpack/lib/action_dispatch/testing/assertions/response.rb
<ide> def normalize_argument_to_redirection(fragment)
<ide> def generate_response_message(expected, actual = @response.response_code)
<ide> "Expected response to be a <#{code_with_name(expected)}>,"\
<ide> " but was a <... | 2 |
Javascript | Javascript | add link to `module.config()` docs | e3814b12662dac500f96f4ce1bb5f35c24195497 | <ide><path>src/loader.js
<ide> function setupModuleLoader(window) {
<ide> * configuration.
<ide> * @description
<ide> * Use this method to register work which needs to be performed on module loading.
<add> * For more about how to configure services, see
<add> * {@... | 1 |
Ruby | Ruby | fix dependents with unavailable formulae | 3a27d8121970dab95f2d28db81189ddf9619c0f5 | <ide><path>Library/Homebrew/keg.rb
<ide> def to_formula
<ide> end
<ide>
<ide> def installed_dependents
<del> my_tab = Tab.for_keg(self)
<add> tap = Tab.for_keg(self).source["tap"]
<ide> Keg.all.select do |keg|
<ide> tab = Tab.for_keg(keg)
<ide> next if tab.runtime_dependencies.nil? # no depen... | 2 |
Ruby | Ruby | make boost-jam a build-time dependency | 62cfa490828bc65cc13666c686b4eb209633af3a | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_formula_text name, text
<ide> end
<ide>
<ide> # cmake, pkg-config, and scons are build-time deps
<del> if text =~ /depends_on ['"](cmake|pkg-config|scons|smake)['"]$/
<add> if text =~ /depends_on ['"](boost-jam|cmake|pkg-config|scons|smake)['"]$/
<ide> ... | 1 |
Ruby | Ruby | allow describe queries on read-only connections | 9b1a92b33d0fa6dd917836cc5e86e426fcd03d45 | <ide><path>activerecord/lib/active_record/connection_adapters/mysql/database_statements.rb
<ide> def query(sql, name = nil) # :nodoc:
<ide> execute(sql, name).to_a
<ide> end
<ide>
<del> READ_QUERY = ActiveRecord::ConnectionAdapters::AbstractAdapter.build_read_query_regexp(:begin, :commit, :exp... | 2 |
Text | Text | update napi_make_callback documentation | 03c4ee91d003da2a6ff4c19b91c7c7dafa705a55 | <ide><path>doc/api/n-api.md
<ide> NAPI_EXTERN napi_status napi_make_callback(napi_env env,
<ide> * `[in] env`: The environment that the API is invoked under.
<ide> * `[in] async_context`: Context for the async operation that is
<ide> invoking the callback. This should normally be a value previously
<del> obtained ... | 1 |
Python | Python | add a note / warning | 9b84bd0316b6b7846de8ff2c480700af0e122cf0 | <ide><path>libcloud/compute/ssh.py
<ide> def run(self, cmd):
<ide> stdin.close()
<ide>
<ide> # Receive all the output
<del> # Note: This is used instead of chan.makefile approach to prevent
<add> # Note #1: This is used instead of chan.makefile approach to prevent
<ide> # bufferin... | 1 |
Javascript | Javascript | fix tojson casting of invalid moment | a289cf13aa567d06ed1d0a767cb0144588afd7b9 | <ide><path>src/lib/moment/to-type.js
<ide> export function toObject () {
<ide> }
<ide>
<ide> export function toJSON () {
<del> // JSON.stringify(new Date(NaN)) === 'null'
<del> return this.isValid() ? this.toISOString() : 'null';
<add> // JSON.stringify(new Date(NaN)) === null
<add> return this.isValid() ?... | 2 |
Mixed | Javascript | reset webpack file for none preset | f987a6db9bd7905e87eb399fc9b408818b153439 | <ide><path>src/Illuminate/Foundation/Console/Presets/None.php
<ide> public static function install()
<ide> {
<ide> static::updatePackages();
<ide> static::updateBootstrapping();
<add> static::updateWebpackConfiguration();
<ide>
<ide> tap(new Filesystem, function ($filesystem) {
<ide>... | 2 |
Ruby | Ruby | apply suggestions from code review | 2188b268de15935b848a6a5ac8ee4efa1cea4d60 | <ide><path>Library/Homebrew/cmd/commands.rb
<ide> def commands
<ide>
<ide> prepend_separator = false
<ide>
<del> { "Built-in commands" => Commands.internal_commands,
<add> {
<add> "Built-in commands" => Commands.internal_commands,
<ide> "Built-in developer commands" => Command... | 1 |
PHP | PHP | remove deprecated code from auth namespace | c4fc7bd632d178303c3ca872a6ce1118c3eca58a | <ide><path>src/Auth/BaseAuthenticate.php
<ide> abstract class BaseAuthenticate implements EventListenerInterface
<ide> * - `passwordHasher` Password hasher class. Can be a string specifying class name
<ide> * or an array containing `className` key, any other keys will be passed as
<ide> * config to... | 1 |
Python | Python | remove double licenses | 027813d334645d6076a72b41b7b87ec30334cbb1 | <ide><path>official/modeling/multitask/base_model.py
<ide> # See the License for the specific language governing permissions and
<ide> # limitations under the License.
<ide>
<del># Lint as: python3
<del># Copyright 2020 The TensorFlow Authors. All Rights Reserved.
<del>#
<del># Licensed under the Apache License, Versi... | 2 |
Python | Python | put a note in the error traceback code | 18ff39368281ffd64e5869722c30c5e54596d94b | <ide><path>keras/utils/traceback_utils.py
<ide> def error_handler(*args, **kwargs):
<ide> return fn(*args, **kwargs)
<ide> except Exception as e: # pylint: disable=broad-except
<ide> filtered_tb = _process_traceback_frames(e.__traceback__)
<add> # To get the full stack trace, call:
<add> # `t... | 1 |
Text | Text | use code markup/markdown in headers | 2d6949d8c00dd1b2bea009ad0132709c3215f70f | <ide><path>doc/api/http2.md
<ide> req.on('end', () => {
<ide> req.end();
<ide> ```
<ide>
<del>### Class: Http2Session
<add>### Class: `Http2Session`
<ide> <!-- YAML
<ide> added: v8.4.0
<ide> -->
<ide> User code will not create `Http2Session` instances directly. Server-side
<ide> new HTTP/2 connection is received. Clie... | 1 |
Java | Java | use the c.f.react.bridge.reactmarker | e70d1dba58bdb92eb5a025c6348303e9c650148c | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarkerConstants.java
<ide> public class ReactMarkerConstants {
<ide> public static final String CREATE_CATALYST_INSTANCE_END = "CREATE_CATALYST_INSTANCE_END";
<ide> public static final String RUN_JS_BUNDLE_START = "RUN_JS_BUNDLE_START";
<ide> pu... | 3 |
PHP | PHP | remove unintentional whitespace from docblocks | 9a4c071fb2a50b364b3cc0128364bc35bc84d9d7 | <ide><path>src/Illuminate/Session/Store.php
<ide> public function ageFlashData()
<ide>
<ide> /**
<ide> * Remove data that was flashed on last request
<del> *
<add> *
<ide> * @return void
<ide> */
<ide> public function removeFlashNowData()
<ide> public function flash($key, $value)
<ide> ... | 1 |
Ruby | Ruby | add test for `uninstall` before removing artifacts | ecb17f4f1d265e1625828565ecbbdac6d5f989c6 | <ide><path>Library/Homebrew/cask/spec/cask/cli/uninstall_spec.rb
<ide> expect(Hbc.appdir.join("Caffeine.app")).not_to exist
<ide> end
<ide>
<add> it "calls `uninstall` before removing artifacts" do
<add> cask = Hbc::CaskLoader.load_from_file(TEST_FIXTURE_DIR/"cask/Casks/with-uninstall-script-app.rb")
<add>
<... | 2 |
Javascript | Javascript | add @description section | 76cb53f8376a210b13c47dba88f99bbf9170233e | <ide><path>src/ngSanitize/sanitize.js
<ide> * @ngdoc overview
<ide> * @name ngSanitize
<ide> * @description
<add> *
<add> * The `ngSanitize` module provides functionality to sanitize HTML.
<add> *
<add> * # Installation
<add> * As a separate module, it must be loaded after Angular core is loaded; otherwise, an 'Un... | 1 |
PHP | PHP | remove duplicate 'just' | 4ef35884eceb4ff17c7eaf7f6f9ba6fa551e32cf | <ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php
<ide> protected function compileJoins(Builder $query, $joins)
<ide>
<ide> $type = $join->type;
<ide>
<del> // Cross joins generate a cartesian product between the first table and the joined
<del> // table. Since they don't... | 1 |
Javascript | Javascript | simplify implementation of planehelper | 96bc672f4b17482b3a8e20680aaf723def1933b1 | <ide><path>src/helpers/PlaneHelper.js
<ide> import { LineBasicMaterial } from '../materials/LineBasicMaterial.js';
<ide> import { MeshBasicMaterial } from '../materials/MeshBasicMaterial.js';
<ide> import { Float32BufferAttribute } from '../core/BufferAttribute.js';
<ide> import { BufferGeometry } from '../core/BufferG... | 1 |
Javascript | Javascript | exit the process on module load error. (temporary) | 0407145c11ae3bf28ce3d43a087df3bdfadc3f7f | <ide><path>src/node.js
<ide> node.Module.prototype.loadObject = function (callback) {
<ide> } else {
<ide> node.stdio.writeError("Error reading " + self.filename + "\n");
<ide> loadPromise.emitError();
<add> node.exit(1);
<ide> }
<ide> });
<ide> return loadPromise;
<ide> node.Module.prototy... | 1 |
Java | Java | update copyright date | 12a78d1af2fffa83ceffaa314aa5a20d6096e0e7 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/AnnotationDrivenBeanDefinitionParser.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "... | 1 |
Python | Python | remove v8_typed_array_max_size_in_heap option | b42dcb0eeb2d2c302b0ecabbc1092605a54213d6 | <ide><path>configure.py
<ide> def configure_v8(o):
<ide> o['variables']['node_use_bundled_v8'] = b(not options.without_bundled_v8)
<ide> o['variables']['force_dynamic_crt'] = 1 if options.shared else 0
<ide> o['variables']['node_enable_d8'] = b(options.enable_d8)
<del> # Unconditionally force typed arrays to all... | 1 |
Ruby | Ruby | remove insignificant classes from docs | 32b27f997b68a998991ed62c4cadc5bdc114d34d | <ide><path>actionpack/lib/action_controller/vendor/html-scanner/html/node.rb
<ide> def ==(node)
<ide>
<ide> # A CDATA node is simply a text node with a specialized way of displaying
<ide> # itself.
<del> class CDATA < Text
<add> class CDATA < Text #:nodoc:
<ide> def to_s
<ide> "<![CDATA[#{super}]>"
<... | 2 |
Ruby | Ruby | add versioned_formulae to to_hash | 11c7b08a345142775be8b9f647618920f7cb03ca | <ide><path>Library/Homebrew/formula.rb
<ide> def to_hash
<ide> "full_name" => full_name,
<ide> "oldname" => oldname,
<ide> "aliases" => aliases.sort,
<add> "versioned_formulae" => versioned_formulae.map(&:name),
<ide> "desc" => desc,
<ide> "homepage" => homepage,
<ide> "versions... | 1 |
Go | Go | remove iscpcannotcopyreadonly utility | e31e9180cda6fe21cc2f23baf41a1cb7287e5e8e | <ide><path>integration-cli/docker_cli_cp_to_container_test.go
<ide> func (s *DockerCLICpSuite) TestCpToErrReadOnlyRootfs(c *testing.T) {
<ide> dstPath := containerCpPath(containerID, "/root/shouldNotExist")
<ide>
<ide> err := runDockerCp(c, srcPath, dstPath)
<del> assert.ErrorContains(c, err, "")
<del>
<del> assert.... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.