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 |
|---|---|---|---|---|---|
Python | Python | fix separated strings in test_secrets_manager.py | f383bb34163d3d5db78c66f26f2c429140f3171f | <ide><path>tests/providers/amazon/aws/secrets/test_secrets_manager.py
<ide>
<ide>
<ide> class TestSecretsManagerBackend(TestCase):
<del> @mock.patch("airflow.providers.amazon.aws.secrets.secrets_manager." "SecretsManagerBackend.get_conn_uri")
<add> @mock.patch("airflow.providers.amazon.aws.secrets.secrets_manag... | 1 |
PHP | PHP | add compatibility for 2.1 | c7a9f3412f290e5fdca76b702f67b194cde1dffc | <ide><path>lib/Cake/bootstrap.php
<ide>
<ide> Configure::bootstrap(isset($boot) ? $boot : true);
<ide>
<add>/**
<add> * Compatibility with 2.1, which expects Set to always be autoloaded.
<add> */
<add>App::uses('Set', 'Utilty');
<add>
<ide> /**
<ide> * Full url prefix
<ide> */ | 1 |
Javascript | Javascript | add bone graph to skinnedmesh | 6a53e95c2257c39d8a15b76779f38175c899ed8c | <ide><path>examples/js/loaders/GLTFLoader.js
<ide> THREE.GLTFLoader = ( function () {
<ide>
<ide> child.bind( new THREE.Skeleton( bones, boneInverses, false ), skinEntry.bindShapeMatrix );
<ide>
<add> var buildBoneGraph = function ( parentJson, parentObject, property ) {
<add>
<add> var chil... | 1 |
Text | Text | make link work in github itself | eeba91e0de9e9e4df973cc51f98a5028beb04b04 | <ide><path>docs/getting-started/index.md
<ide> module.exports = {
<ide> As you can see, some of the boilerplate needed is not visible in our sample blocks, as the samples focus on the configuration options.
<ide> :::
<ide>
<del>All our examples are [available online](/samples/).
<add>All our examples are [available on... | 1 |
Text | Text | add the translation to the topic | 0957b18c004970024862b47dcd7a5904a4a13212 | <ide><path>docs/russian/how-to-work-on-guide-articles.md
<ide> </tr>
<ide> </table>
<ide>
<del># Contribution Guidelines
<add># Правила для внесения своего вклада в проекты
<ide>
<del>Hello 👋 !
<add>Привет 👋 !
<ide>
<del>These instructions have not been translated yet. Please check this issue for details: [`#1... | 1 |
Javascript | Javascript | fix typo that breaks ff4 | 41f46ca3464706c5079c7934162d25b909220abe | <ide><path>pdf.js
<ide> var CanvasGraphics = (function() {
<ide> var w = image.dict.get("Width");
<ide> var h = image.dict.get("Height");
<ide> var tmpCanvas = document.createElement("canvas");
<del> tmpCanvas.height = w;
<del> tmpCanvas.width = h;
<add> ... | 1 |
Javascript | Javascript | remove redundant parent check | b43a3685b60b307d61f41f0c94412380ed46ab22 | <ide><path>src/attributes/prop.js
<ide> if ( !support.optSelected ) {
<ide> if ( parent ) {
<ide> parent.selectedIndex;
<ide>
<del> if ( parent && parent.parentNode ) {
<add> if ( parent.parentNode ) {
<ide> parent.parentNode.selectedIndex;
<ide> }
<ide> } | 1 |
Javascript | Javascript | fix premature connection termination | 9777890f5d9ce95f15c64d29f1c0a55c12d24c3e | <ide><path>lib/tls.js
<ide> function pipe(pair, socket) {
<ide> // Encrypted should be unpiped from socket to prevent possible
<ide> // write after destroy.
<ide> pair.encrypted.unpipe(socket);
<del> socket.destroy();
<add> socket.destroySoon();
<ide> });
<ide> });
<ide> | 1 |
Text | Text | fix typo in mdx guide | 98227b273fbe7da12790571f70f2a334cb0c1c30 | <ide><path>docs/advanced-features/using-mdx.md
<ide> author: 'Rich Haines'
<ide>
<ide> ### Layouts
<ide>
<del>To add a layout to your MDX page, create a new component and import it into the MDX page. Then you can wrap the MDx page with your layout component:
<add>To add a layout to your MDX page, create a new compone... | 1 |
PHP | PHP | replace schemacleaner with connectionhelper | 0d650f32d7926650f079e6611138905980e519e1 | <ide><path>src/TestSuite/ConnectionHelper.php
<ide> namespace Cake\TestSuite;
<ide>
<ide> use Cake\Database\Connection;
<add>use Cake\Database\Driver\Postgres;
<ide> use Cake\Datasource\ConnectionManager;
<add>use Closure;
<ide>
<ide> /**
<ide> * Helper for managing test connections
<ide> public function enableQuery... | 5 |
Javascript | Javascript | remove unused context param from `countchildren` | 1047980dca0830cd55e1622f3fbefc38aeaadb91 | <ide><path>packages/react/src/ReactChildren.js
<ide> function mapChildren(children, func, context) {
<ide> * @param {?*} children Children tree container.
<ide> * @return {number} The number of children.
<ide> */
<del>function countChildren(children, context) {
<add>function countChildren(children) {
<ide> return ... | 1 |
Go | Go | add tests for pkg/pools | 07a75c48fd9c081219fdef4a4d46554237467fad | <ide><path>pkg/pools/pools_test.go
<add>package pools
<add>
<add>import (
<add> "bufio"
<add> "bytes"
<add> "io"
<add> "strings"
<add> "testing"
<add>)
<add>
<add>func TestBufioReaderPoolGetWithNoReaderShouldCreateOne(t *testing.T) {
<add> reader := BufioReader32KPool.Get(nil)
<add> if reader == nil {
<add> t.Fatalf("... | 1 |
Python | Python | add missing reference to block | edbd745e7122454a69aa423fd44782e4f0c90ad1 | <ide><path>numpy/core/_add_newdocs.py
<ide> def luf(lamdaexpr, *args, **kwargs):
<ide> hstack : Stack arrays in sequence horizontally (column wise)
<ide> vstack : Stack arrays in sequence vertically (row wise)
<ide> dstack : Stack arrays in sequence depth wise (along third dimension)
<add> block : Assemb... | 1 |
Python | Python | fix backprop of padding variable | 6771780d3f78ab3463fa7255516334059ed2721d | <ide><path>spacy/_ml.py
<ide> def _add_padding(self, Yf):
<ide>
<ide> def _backprop_padding(self, dY, ids):
<ide> # (1, nF, nO, nP) += (nN, nF, nO, nP) where IDs (nN, nF) < 0
<del> d_pad = dY * (ids.reshape((ids.shape[0], self.nF, 1, 1)) < 0.)
<add> mask = ids < 0.
<add> mask = mask.su... | 1 |
Ruby | Ruby | remove unneeded base file | 35867c0beed7077139fe64eeb729fada448ed1e7 | <ide><path>railties/test/application/configuration/base_test.rb
<del>require 'isolation/abstract_unit'
<del>require 'rack/test'
<del>require 'env_helpers'
<del>
<del>module ApplicationTests
<del> module ConfigurationTests
<del> class BaseTest < ActiveSupport::TestCase
<del> def setup
<del> build_app
<de... | 2 |
Mixed | Ruby | add `expires_at` option to `signed_id` | 364939c2b17b219fc8c158da63a8517e57f892ab | <ide><path>activerecord/CHANGELOG.md
<add>* Add `expires_in` option to `signed_id`.
<add>
<add> *Shouichi Kamiya*
<add>
<ide> * Allow applications to set retry deadline for query retries.
<ide>
<ide> Building on the work done in #44576 and #44591, we extend the logic that automatically
<ide><path>activereco... | 3 |
PHP | PHP | fix coding standards | 16a1a0ee7939b929724252dbaa91b1ded4f740b8 | <ide><path>lib/Cake/Model/ModelValidator.php
<ide> public function getMethods() {
<ide> public function getField($name = null) {
<ide> if ($name !== null && !empty($this->_fields[$name])) {
<ide> return $this->_fields[$name];
<del> } elseif ($name !==null) {
<add> } elseif ($name !== null) {
<ide> return nul... | 5 |
PHP | PHP | add declare() to collection classes | b66e44107a311c7cc9e3f65f56fde8999dae5258 | <ide><path>src/Collection/Collection.php
<ide> <?php
<add>declare(strict_types=1);
<ide> /**
<ide> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<ide><path>src/Collection/CollectionInterface.php
<ide> <?php
<add>decl... | 20 |
Text | Text | add changelog entry for [ci skip] | c91a531ff384f70f72e7e0e213424d3e42a48c27 | <ide><path>actionpack/CHANGELOG.md
<add>* Add alias `ActionDispatch::Http::UploadedFile#to_io` to
<add> `ActionDispatch::Http::UploadedFile#tempfile`.
<add>
<add> *Tim Linquist*
<add>
<ide> * Returns null type format when format is not know and controller is using `any`
<ide> format block.
<ide> | 1 |
Text | Text | update lite path + fix --config option | 7a75bfceac93f15238884240f85b7eddade04021 | <ide><path>research/object_detection/g3doc/running_on_mobile_tensorflowlite.md
<ide> parameters and can be run via the TensorFlow Lite interpreter on the Android
<ide> device. For a floating point model, run this from the tensorflow/ directory:
<ide>
<ide> ```shell
<del>bazel run --config=opt tensorflow/contrib/lite/t... | 1 |
Javascript | Javascript | improve randombytes() performance | 59a1981a226045bce30aeb2889b29c829c285a80 | <ide><path>benchmark/crypto/randomBytes.js
<add>'use strict';
<add>
<add>const common = require('../common.js');
<add>const { randomBytes } = require('crypto');
<add>
<add>const bench = common.createBenchmark(main, {
<add> size: [64, 1024, 8192, 512 * 1024],
<add> n: [1e3],
<add>});
<add>
<add>function main({ n, size... | 3 |
Ruby | Ruby | use location rather than location header | 4887e53bf9fd9c35acd05a4cc40a014406132ac2 | <ide><path>actionpack/lib/action_controller/base.rb
<ide> def erase_redirect_results #:nodoc:
<ide> response.redirected_to = nil
<ide> response.redirected_to_method_params = nil
<ide> response.headers['Status'] = DEFAULT_RENDER_STATUS_CODE
<del> response.headers.delete('location')
<add> ... | 3 |
Javascript | Javascript | remove redundant ascii | fafbb39ec702903943cd1565a15a3c2f4802bcd3 | <ide><path>test/cases/resolving/data-uri/index.js
<ide> it("should require js module from base64 data-uri", function() {
<ide> });
<ide>
<ide> it("should require js module from ascii data-uri", function() {
<del> const mod = require("data:text/javascript;charset=utf-8;ascii,module.exports={number:42,fn:()=>\"Hello wor... | 1 |
Python | Python | remove k8s dependency from serialization | e1e0485bb15b168440f2af0ff69f3a7fc72330fe | <ide><path>airflow/serialization/serialized_objects.py
<ide> import cattr
<ide> import pendulum
<ide> from dateutil import relativedelta
<del>from kubernetes.client import models as k8s
<add>
<add>try:
<add> from kubernetes.client import models as k8s
<add>except ImportError:
<add> k8s = None
<add>
<ide> from pen... | 1 |
Ruby | Ruby | remove workaround to a ruby 2.0.0 bug | 02a48fb83c6aff2c9fc82e962286212ba26a91c5 | <ide><path>activesupport/lib/active_support/duration.rb
<ide> def sum(sign, time = ::Time.current) #:nodoc:
<ide>
<ide> private
<ide>
<del> # We define it as a workaround to Ruby 2.0.0-p353 bug.
<del> # For more information, check rails/rails#13055.
<del> # Remove it when we drop support for 2.0.0-... | 1 |
Javascript | Javascript | remove require('buffer') on 6 fs test files | d31fe536c0a576ead9655acb140970690c4fbc78 | <ide><path>test/parallel/test-fs-mkdtemp.js
<ide> const common = require('../common');
<ide> const assert = require('assert');
<ide> const fs = require('fs');
<ide> const path = require('path');
<del>const Buffer = require('buffer').Buffer;
<ide>
<ide> common.refreshTmpDir();
<ide>
<ide><path>test/parallel/test-fs-re... | 6 |
PHP | PHP | change trait name | fab6b0a6410158eee1d9b8939464441eea5488aa | <ide><path>src/Illuminate/Foundation/Bus/DispatchesCommands.php
<ide>
<ide> use ArrayAccess;
<ide>
<add>/**
<add> * This trait is deprecated. Use the DispatchesJobs trait.
<add> */
<ide> trait DispatchesCommands {
<ide>
<ide> /**
<ide><path>src/Illuminate/Foundation/Bus/DispatchesJobs.php
<add><?php namespace Illum... | 2 |
Text | Text | fix links in errors.md | 4d1baf82ae0e3458d0038e0ca02d215740cdb77b | <ide><path>doc/api/errors.md
<ide> Creation of a [`zlib`][] object failed due to incorrect configuration.
<ide> [`dgram.createSocket()`]: dgram.html#dgram_dgram_createsocket_options_callback
<ide> [`ERR_INVALID_ARG_TYPE`]: #ERR_INVALID_ARG_TYPE
<ide> [`EventEmitter`]: events.html#events_class_eventemitter
<del>[`fs.sym... | 1 |
Python | Python | add a test enabling get_next_as_optional behavior. | 92bad0d216cc46140c52da8d75d4685eb364736a | <ide><path>official/resnet/keras/keras_imagenet_benchmark.py
<ide> def benchmark_xla_8_gpu_fp16_tweaked(self):
<ide> FLAGS.data_delay_prefetch = True
<ide> self._run_and_report_benchmark()
<ide>
<add> def benchmark_xla_8_gpu_fp16_tweaked_optional_next(self):
<add> """Test Keras model with manual config tun... | 1 |
Ruby | Ruby | remove the reflection delegate | a35325e32491d566fbb58001f8e68bed86d06955 | <ide><path>activerecord/lib/active_record/associations/association_scope.rb
<ide> module Associations
<ide> class AssociationScope #:nodoc:
<ide> attr_reader :association, :alias_tracker
<ide>
<del> delegate :reflection, :to => :association
<del>
<ide> def initialize(association)
<ide> @as... | 1 |
Javascript | Javascript | add type support for sethelpers | 487d74d74d5282a52f7b09f6869f47fe0a7cc786 | <ide><path>lib/util/SetHelpers.js
<ide> "use strict";
<ide>
<del>exports.intersect = sets => {
<add>/**
<add> * @description intersect creates Set containing the intersection of elements between all sets
<add> * @param {Set[]} sets an array of sets being checked for shared elements
<add> * @returns {Set} returns a new... | 1 |
Javascript | Javascript | use getstartpromise() in specs | 6e6c0a5ef9d333faf4e72fd28120c45171e0dbb1 | <ide><path>spec/filesystem-manager-spec.js
<ide> describe('FileSystemManager', function () {
<ide> await stopAllWatchers(manager)
<ide> })
<ide>
<del> function waitForEvent (fn) {
<del> return new Promise(resolve => {
<del> subs.add(fn(resolve))
<del> })
<del> }
<del>
<ide> function waitForChanges... | 1 |
Python | Python | fix serialization error in maya exporter | ddd0803d8ace4fb43e1950e7b60f26a7625b6631 | <add><path>utils/exporters/maya/plug-ins/threeJsFileTranslator.py
<del><path>utils/exporters/maya/plug-ins/threeJsFileTranlator.py
<ide> def _iterencode(self, o, markers=None):
<ide> if '.' in s and len(s[s.index('.'):]) > FLOAT_PRECISION - 1:
<ide> s = '%.{0}f'.format(FLOAT_PRECISION) % o
<... | 1 |
Javascript | Javascript | fix another traverse test | f1300f18877f0140994190bb1b3a945fa4b2fd3d | <ide><path>test/unit/traversing.js
<ide> QUnit.test( "not(Array)", function( assert ) {
<ide> QUnit.test( "not(jQuery)", function( assert ) {
<ide> assert.expect( 1 );
<ide>
<del> assert.deepEqual( jQuery( "p" ).not( jQuery( "#ap, #sndp, .result" ) ).get(), q( "firstp", "en", "sap", "first" ), "not(jQuery)" );
<add> ... | 1 |
PHP | PHP | fix typo in memory driver | da67b1bc667d98d363e49aa6830731faa393cdab | <ide><path>laravel/cache/drivers/memory.php
<ide> public function forget($key)
<ide> */
<ide> public function flush()
<ide> {
<del> $this->stroage = array();
<add> $this->storage = array();
<ide> }
<ide>
<ide> }
<ide>\ No newline at end of file | 1 |
Text | Text | add changes to wordpress section | d275ffb7eee81a2c1d3ca40c6a16b958330aa2eb | <ide><path>guide/english/wordpress/index.md
<ide> title: WordPress
<ide>
<ide> # WordPress
<ide>
<del>WordPress is a free and open-source content management system based on PHP and MySQL. Features include a plugin architecture and a template system. It is most associated with blogging but supports other types of web ... | 1 |
Javascript | Javascript | use fs.promises in test files | ba30381c99948c50da6997196b1455bf1beb2f1c | <ide><path>test/integration/amp-export-validation/test/index.test.js
<ide> /* eslint-env jest */
<ide> /* global jasmine */
<del>import fs from 'fs'
<add>import { promises } from 'fs'
<ide> import { join } from 'path'
<del>import { promisify } from 'util'
<ide> import { validateAMP } from 'amp-test-utils'
<ide> import ... | 9 |
Python | Python | add tqdm, clean up logging | 0b7a20c651afd014e884ba2c1a486fa971689f19 | <ide><path>modeling.py
<ide> def __init__(self, config, num_labels):
<ide>
<ide> def init_weights(m):
<ide> if isinstance(m, (nn.Linear, nn.Embedding)):
<del> print("Initializing {}".format(m))
<ide> # Slight difference here with the TF version which uses truncated_no... | 2 |
PHP | PHP | ignore invalid psalm error | 3aa74c341be07ed6ac9d1a9ba4c78286a1b6e0da | <ide><path>src/Collection/CollectionTrait.php
<ide> public function cartesianProduct(?callable $operation = null, ?callable $filter
<ide> $changeIndex = $lastIndex;
<ide>
<ide> while (!($changeIndex === 0 && $currentIndexes[0] === $collectionArraysCounts[0])) {
<add> /** @psalm-suppress Argu... | 1 |
Python | Python | add missing spaces to implicitly joined strings | 4c39c270af91ddbc213e077fc06b4bf67c7c6e99 | <ide><path>django/core/checks/compatibility/django_1_7_0.py
<ide> def _check_middleware_classes(app_configs=None, **kwargs):
<ide> return [
<ide> Warning(
<ide> "MIDDLEWARE_CLASSES is not set.",
<del> hint=("Django 1.7 changed the global defaults for the MIDDLEWARE_CLA... | 1 |
PHP | PHP | allow array of options on filesystem operations | 481f76000c861e3e2540dcdda986fb44622ccbbe | <ide><path>src/Illuminate/Filesystem/FilesystemAdapter.php
<ide> public function get($path)
<ide> *
<ide> * @param string $path
<ide> * @param string|resource $contents
<del> * @param string $visibility
<add> * @param array $options
<ide> * @return bool
<ide> */
<del> public ... | 2 |
Javascript | Javascript | use stub `object.create` for ie8 | 1b06211af6ed18c0ea4582c77902d9ad68fb62d0 | <ide><path>packages/ember-metal/lib/platform.js
<ide> var platform = Ember.platform = {};
<ide> */
<ide> Ember.create = Object.create;
<ide>
<add>// IE8 has Object.create but it couldn't treat property descripters.
<add>if (Ember.create) {
<add> if (Ember.create({a: 1}, {a: {value: 2}}).a !== 2) {
<add> Ember.crea... | 1 |
Javascript | Javascript | use the debug build of node-weak when necessary | 05fe70b582c1f888e09ea7d21a70fe736bd09d12 | <ide><path>test/gc/node_modules/weak/lib/weak.js
<del>var bindings = require('../build/Release/weakref.node')
<add>var bindings
<add>try {
<add> bindings = require('../build/Release/weakref.node')
<add>} catch (e) {
<add> if (e.code === 'MODULE_NOT_FOUND') {
<add> bindings = require('../build/Debug/weakref.node')
... | 1 |
Ruby | Ruby | fix details in cask command | 3fd1e914fd783388e9d59b504cd6a2cd8850c415 | <ide><path>Library/Homebrew/cask/lib/hbc/artifact/abstract_flight_block.rb
<ide> def uninstall_phase(**)
<ide> abstract_phase(self.class.uninstall_dsl_key)
<ide> end
<ide>
<del> def summarize
<del> directives.keys.map(&:to_s).join(", ")
<del> end
<del>
<ide> private
<ide>
<ide> ... | 2 |
Text | Text | strengthen suggestion in errors.md | 0c81cadec6aa92985819a76827f28cfe8e656a8e | <ide><path>doc/api/errors.md
<ide> signal (such as [`subprocess.kill()`][]).
<ide> <a id="ERR_UNSUPPORTED_DIR_IMPORT"></a>
<ide> ### `ERR_UNSUPPORTED_DIR_IMPORT`
<ide>
<del>`import` a directory URL is unsupported. Instead, you can
<add>`import` a directory URL is unsupported. Instead,
<ide> [self-reference a package u... | 1 |
Javascript | Javascript | use infolog instead of console.log | 0694a2991c8f518b4df9ee2b7990210d5830c6ac | <ide><path>Libraries/AppRegistry/AppRegistry.js
<ide> var ReactNative = require('ReactNative');
<ide>
<ide> var invariant = require('fbjs/lib/invariant');
<ide> var renderApplication = require('renderApplication');
<add>const infoLog = require('infoLog');
<ide>
<ide> if (__DEV__) {
<ide> // In order to use Cmd+P to... | 2 |
Javascript | Javascript | fix code style to match eslint requirements | 08f44d3078771f13e8568ba7dd91f6debe340bad | <ide><path>src/cameras/ArrayCamera.js
<ide> ArrayCamera.prototype = Object.assign( Object.create( PerspectiveCamera.prototyp
<ide> * And that near and far planes are identical for both cameras.
<ide> */
<ide> setProjectionFromUnion: function () {
<add>
<ide> var cameraLPos = new Vector3();
<ide> var cameraRPos... | 1 |
Go | Go | use int32 instead of string for ip set | 3e3abdd770bdc23c409a9e49619a1897ffbf2354 | <ide><path>networkdriver/portallocator/ipset.go
<ide> package ipallocator
<ide>
<ide> import (
<add> "sort"
<ide> "sync"
<ide> )
<ide>
<ide> // iPSet is a thread-safe sorted set and a stack.
<ide> type iPSet struct {
<ide> sync.RWMutex
<del> set []string
<add> set []int32
<ide> }
<ide>
<ide> // Push takes a string... | 1 |
Python | Python | check expand_kwargs() input type before unmapping | 4e786e31bcdf81427163918e14d191e55a4ab606 | <ide><path>airflow/decorators/base.py
<ide> def _expand_mapped_kwargs(self, resolve: Optional[Tuple[Context, Session]]) -> D
<ide> assert self.expand_input is EXPAND_INPUT_EMPTY
<ide> return {"op_kwargs": super()._expand_mapped_kwargs(resolve)}
<ide>
<del> def _get_unmap_kwargs(self, mapped_kwargs: ... | 5 |
Javascript | Javascript | fix coding style in src/core/fonts.js | 66e243f506490104abe8c31cd1c55f822751ff3e | <ide><path>src/core/fonts.js
<ide> var MacStandardGlyphOrdering = [
<ide> function getUnicodeRangeFor(value) {
<ide> for (var i = 0, ii = UnicodeRanges.length; i < ii; i++) {
<ide> var range = UnicodeRanges[i];
<del> if (value >= range.begin && value < range.end)
<add> if (value >= range.begin && value < ra... | 1 |
Python | Python | reconstruction the class glanceslimits | 8f4235fbc8edb60343bbcde368e126faf39f7af1 | <ide><path>glances/glances.py
<ide> # Specifics libs
<ide> import json
<ide> import collections
<add>from functools import partial
<ide>
<ide> # For client/server authentication
<ide> from base64 import b64decode
<ide> def get_option(self, section, option):
<ide> Get the value of an option, if it exist
<ide> ... | 1 |
PHP | PHP | replace tabs with spaces | 8da2c77e926b49423a30b7ccf9003d1afe0d4316 | <ide><path>src/Illuminate/Notifications/resources/views/email-plain.blade.php
<ide> <?php
<ide> if( $greeting !== null ) {
<del> echo e($greeting);
<add> echo e($greeting);
<ide> } else {
<del> echo $level == 'error' ? 'Whoops!' : 'Hello!';
<add> echo $level == 'error' ? 'Whoops!' : 'Hello!';
<ide> }
<ide>
<ide>... | 1 |
Python | Python | reduce verbosity of cpplint | 3eff42bbca531873905ef4478e8d6ec9a7485d3a | <ide><path>tools/cpplint.py
<ide> def ProcessFile(filename, vlevel):
<ide> 'One or more unexpected \\r (^M) found;'
<ide> 'better to use only a \\n')
<ide>
<del> if not _cpplint_state.output_format == 'tap':
<del> sys.stderr.write('Done processing %s\n' % filename)
<del>
<ide>
<ide> def Pr... | 1 |
Javascript | Javascript | change invalid.js fixture for babel transpilation | 23d5dc872654c3bc353d0a3a24d782c30659ebbc | <ide><path>spec/fixtures/babel/invalid.js
<ide> 'use 6to6';
<ide>
<del>module.exports = v => v + 1
<add>module.exports = async function hello() {} | 1 |
Python | Python | add matplotlib inventory for intersphinx | bb2865a2863492a2ea1799e1ce874607e8cf6ff9 | <ide><path>doc/source/conf.py
<ide> # -----------------------------------------------------------------------------
<ide> # Intersphinx configuration
<ide> # -----------------------------------------------------------------------------
<del>intersphinx_mapping = {'http://docs.python.org/dev': None}
<add>intersphinx_map... | 1 |
PHP | PHP | remove remaining reference operators | 8eb56960d87bb69ba520bd936d6eb4c067a22367 | <ide><path>lib/Cake/Console/Command/Task/TestTask.php
<ide> public function isLoadableClass($package, $class) {
<ide> * @param string $class the Classname of the class the test is being generated for.
<ide> * @return object And instance of the class that is going to be tested.
<ide> */
<del> public function &buildTe... | 5 |
Javascript | Javascript | fix inconsistent styling in test-url | 1684957ff5a9e5d661a07fee7de29aaa7bc3bc34 | <ide><path>test/parallel/test-url.js
<ide> var url = require('url');
<ide> // URLs to parse, and expected data
<ide> // { url : parsed }
<ide> var parseTests = {
<del> '//some_path' : {
<del> 'href': '//some_path',
<del> 'pathname': '//some_path',
<del> 'path': '//some_path'
<add> '//some_path': {
<add> h... | 1 |
Javascript | Javascript | add explicit schema for hidden challenges | 64c969a9082505abe47a23f84c246ba173282847 | <ide><path>client/gatsby-node.js
<ide> exports.onCreateBabelConfig = ({ actions }) => {
<ide> }
<ide> });
<ide> };
<add>
<add>// Typically the schema can be inferred, but not when some challenges are
<add>// skipped (at time of writing the Chinese only has responsive web design), so
<add>// this makes the missing... | 1 |
Ruby | Ruby | add missing require | 66b55dbfea370f0c4553e7d65b468dfaa81e8b37 | <ide><path>actionmailer/lib/action_mailer/old_api.rb
<add>require 'active_support/concern'
<ide> require 'active_support/core_ext/object/try'
<ide> require 'active_support/core_ext/object/blank'
<ide> | 1 |
Javascript | Javascript | check files in src for ddescribe/iit | e9fad96c7c3c351d0e53bb7bff2244bc5ce2c5f3 | <ide><path>Gruntfile.js
<ide> module.exports = function(grunt) {
<ide>
<ide> "ddescribe-iit": {
<ide> files: [
<add> 'src/**/*.js',
<ide> 'test/**/*.js',
<del> '!test/ngScenario/DescribeSpec.js'
<add> '!test/ngScenario/DescribeSpec.js',
<add> '!src/ng/directive/booleanAttr... | 1 |
Go | Go | handle debug mode for clients | 78b0defcf344294874202e819dcb3f8a0daedf43 | <ide><path>docker/client.go
<ide> import (
<ide> "github.com/docker/docker/cli"
<ide> "github.com/docker/docker/cliconfig"
<ide> flag "github.com/docker/docker/pkg/mflag"
<add> "github.com/docker/docker/utils"
<ide> )
<ide>
<ide> var clientFlags = &cli.ClientFlags{FlagSet: new(flag.FlagSet), Common: commonFlags}
<i... | 1 |
Javascript | Javascript | add broken test-isolates3.js | e1b829d2a502b5181d7a9d13e79d839ba0601421 | <ide><path>test/simple/test-child-process-fork3.js
<ide> var fork = require('child_process').fork;
<ide>
<ide> var filename = common.fixturesDir + '/destroy-stdin.js';
<ide>
<add>var options = {
<add> thread: process.TEST_ISOLATE ? true : false
<add>};
<add>
<ide> // Ensure that we don't accidentally close fd 0 and
... | 2 |
Javascript | Javascript | remove extra invariant | 928519e4bd8b9f576f8b72da55ed7d6feb0883e5 | <ide><path>Libraries/Text/Text.js
<ide> import {NativeText, NativeVirtualText} from './TextNativeComponent';
<ide> import {type TextProps} from './TextProps';
<ide> import * as React from 'react';
<ide> import {useContext, useMemo, useState} from 'react';
<del>import invariant from 'invariant';
<ide>
<ide> /**
<ide> ... | 1 |
Javascript | Javascript | use buffer.from instead of slice | 86203ade47c17130ffabf2d44fa90b7a212ca94b | <ide><path>lib/serialization/BinaryMiddleware.js
<ide> class BinaryMiddleware extends SerializerMiddleware {
<ide> };
<ide> const flush = () => {
<ide> if (currentBuffer !== null) {
<del> buffers.push(currentBuffer.slice(0, currentPosition));
<add> buffers.push(
<add> Buffer.from(
<add> currentBuf... | 2 |
PHP | PHP | fix broken tests | 7b169ed084db099615c3de95e64c1a4284dd60c8 | <ide><path>lib/Cake/Test/Case/Core/ObjectTest.php
<ide> public function testRequestAction() {
<ide> $this->assertEqual($expected, $result);
<ide>
<ide> $result = $this->object->requestAction('/tests_apps/index', array('return'));
<del> $expected = 'This is the TestsAppsController index view';
<add> $expected = '... | 1 |
Go | Go | fix the assignment to wrong variable | 4141a00921e3ae814736249ec1806d5d35c8d46c | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) poolHasFreeSpace() error {
<ide>
<ide> minFreeMetadata := (metadataTotal * uint64(devices.minFreeSpacePercent)) / 100
<ide> if minFreeMetadata < 1 {
<del> minFreeData = 1
<add> minFreeMetadata = 1
<ide> }
<ide>
<ide> metadataFr... | 1 |
Ruby | Ruby | remove unnecessary addition of `lib` | a89a06bb10e76c8377582650007cb5b66e2f248f | <ide><path>railties/lib/rails/generators/rails/plugin/plugin_generator.rb
<ide> def rakefile_test_tasks
<ide> require 'rake/testtask'
<ide>
<ide> Rake::TestTask.new(:test) do |t|
<del> t.libs << 'lib'
<ide> t.libs << 'test'
<ide> t.pattern = 'test/**/*_test.rb'
<ide> t.verbose = false | 1 |
Ruby | Ruby | execute less operations | 994a1c2a4747efcca3c6278c119096d93f793da1 | <ide><path>activerecord/lib/active_record/associations/association_collection.rb
<ide> def ensure_owner_is_not_new
<ide>
<ide> def fetch_first_or_last_using_find?(args)
<ide> args.first.kind_of?(Hash) || !(loaded? || !@owner.persisted? || @reflection.options[:finder_sql] ||
<del> ... | 1 |
Javascript | Javascript | add test for selection.map | badce35c7632aa1f909f0946a2686645f8db2066 | <ide><path>test/core/selection-map-test.js
<add>require("../env");
<add>require("../../d3");
<add>
<add>var vows = require("vows"),
<add> assert = require("assert");
<add>
<add>var suite = vows.describe("selection.map");
<add>
<add>suite.addBatch({
<add> "select(body)": {
<add> topic: function() {
<add> ret... | 1 |
Javascript | Javascript | allow instantiating webgltextures from a worker | 17791a42c5af98dd981311615c87b4c2dbad8589 | <ide><path>src/renderers/webgl/WebGLTextures.js
<ide> import { _Math } from '../../math/Math.js';
<ide>
<ide> function WebGLTextures( _gl, extensions, state, properties, capabilities, utils, infoMemory ) {
<ide>
<del> var _isWebGL2 = ( typeof WebGL2RenderingContext !== 'undefined' && _gl instanceof window.WebGL2Rende... | 1 |
Python | Python | dbapihook consistent insert_rows logging | 76014609c07bfa307ef7598794d1c0404c5279bd | <ide><path>airflow/providers/common/sql/hooks/sql.py
<ide> def insert_rows(self, table, rows, target_fields=None, commit_every=1000, replac
<ide> self.log.info("Loaded %s rows into %s so far", i, table)
<ide>
<ide> conn.commit()
<del> self.log.info("Done loading. Loaded a tot... | 1 |
Javascript | Javascript | handle modifications to fs.open | 06ada03ed93d6f81caef24c6dade6e616fd843b1 | <ide><path>lib/fs.js
<ide> var WriteStream = fs.WriteStream = function(path, options) {
<ide> this._queue = [];
<ide>
<ide> if (this.fd === null) {
<del> this._queue.push([fs.open, this.path, this.flags, this.mode, undefined]);
<add> this._open = fs.open;
<add> this._queue.push([this._open, this.path, thi... | 2 |
Ruby | Ruby | pass explicit sort to handle apfs | d9074b80b7617e73084a55d8318da3fb67641bbf | <ide><path>Library/Homebrew/cmd/options.rb
<ide> module Homebrew
<ide>
<ide> def options
<ide> if ARGV.include? "--all"
<del> puts_options Formula.to_a
<add> puts_options Formula.to_a.sort
<ide> elsif ARGV.include? "--installed"
<del> puts_options Formula.installed
<add> puts_options Form... | 1 |
Javascript | Javascript | change appearence example to hooks | 22576fa615f0308aab00686235295b3dc0d34852 | <ide><path>packages/rn-tester/js/examples/Appearance/AppearanceExample.js
<ide> */
<ide>
<ide> import * as React from 'react';
<add>import {useState, useEffect} from 'react';
<ide> import {Appearance, Text, useColorScheme, View} from 'react-native';
<ide> import type {AppearancePreferences} from 'react-native/Librari... | 1 |
Javascript | Javascript | remove a broken hook | 18d7396835c8e2fb496a501c53504ab46d92b19b | <ide><path>lib/node/NodeSourcePlugin.js
<ide> module.exports = class NodeSourcePlugin {
<ide> normalModuleFactory.hooks.parser
<ide> .for("javascript/dynamic")
<ide> .tap("NodeSourcePlugin", handler);
<del> normalModuleFactory.hooks.parser
<del> .for("javascript/esm")
<del> .tap("NodeSourcePlug... | 1 |
Text | Text | clarify usage of util.promisify.custom | cc258af0e4898338b6be49ac79b49dc28169d0c9 | <ide><path>doc/api/util.md
<ide> console.log(promisified === doSomething[util.promisify.custom]);
<ide> This can be useful for cases where the original function does not follow the
<ide> standard format of taking an error-first callback as the last argument.
<ide>
<add>For example, with a function that takes in `(foo,... | 1 |
Ruby | Ruby | reword documentation for `uncountable` [ci skip] | 6c75a111995a9aab09e19c2b6a8a42162f689bc6 | <ide><path>activesupport/lib/active_support/inflector/inflections.rb
<ide> def irregular(singular, plural)
<ide> end
<ide> end
<ide>
<del> # Add uncountable words that shouldn't be attempted inflected.
<add> # Specifies words that are uncountable and should not be inflected.
<ide> #
<ide>... | 1 |
Text | Text | add another link to "more information" | 88da0d48cf5e251e7e41c0799ff4b44984ef2aab | <ide><path>guide/english/computer-science/index.md
<ide> Computer science is categorized into several fields. The following are among the
<ide> * [Khan Academy](https://www.khanacademy.org/computing/computer-science) : A deep dive into algorithms, cryptography, introductory computing, and much more.
<ide> * [CS50](http... | 1 |
Text | Text | fix inconsistent heading level in guides [ci-skip] | e469025ef5f6879fd7ec2f8733140789d872abd2 | <ide><path>guides/source/3_2_release_notes.md
<ide> Railties
<ide>
<ide> * Remove old `config.paths.app.controller` API in favor of `config.paths["app/controller"]`.
<ide>
<del>#### Deprecations
<add>### Deprecations
<ide>
<ide> * `Rails::Plugin` is deprecated and will be removed in Rails 4.0. Instead of adding plug... | 4 |
Javascript | Javascript | add test case | 03c7f0c54afb00901f8d887efb01048a3cea749c | <ide><path>test/ConfigTestCases.test.js
<ide> describe("ConfigTestCases", () => {
<ide> let runInNewContext = false;
<ide> const moduleScope = {
<ide> require: _require.bind(null, path.dirname(p)),
<add> importScripts: _require.bind(null, path.dirname(p)),
<ide> ... | 3 |
Java | Java | add new reactmarkers for bridgeless init start/end | e125f12c01262c11d70c1015139d5f72c5576042 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/ReactMarkerConstants.java
<ide> public enum ReactMarkerConstants {
<ide> FABRIC_BATCH_EXECUTION_START,
<ide> FABRIC_BATCH_EXECUTION_END,
<ide> FABRIC_UPDATE_UI_MAIN_THREAD_START,
<del> FABRIC_UPDATE_UI_MAIN_THREAD_END
<add> FABRIC_UPDATE_UI_MAIN_TH... | 1 |
Python | Python | remove unused variable | 8211f882bd973d3a418fc4752cc22af73a67819e | <ide><path>celery/contrib/coroutine.py
<ide> class Aggregate(CoroutineTask):
<ide> def body(self):
<ide> waiting = deque()
<ide>
<del> timesince = time.time()
<ide> while True:
<ide> argtuple = (yield)
<ide> waiting.append(argtuple) | 1 |
Ruby | Ruby | remove useless assertions | 327c6023cdf17cd1ac557d5db5bccf92dd681292 | <ide><path>railties/test/generators/argv_scrubber_test.rb
<ide> def self.default_rc_file
<ide> end
<ide> }.new ['new']
<ide> args = scrubber.prepare!
<del> assert_nil args.first
<ide> assert_equal [], args
<ide> end
<ide>
<ide> def test_new_homedir_rc
<ide> defi... | 1 |
Python | Python | add test for filter_renderers | 076ca6e7651fa810a3d0bbd9d923adf10845080f | <ide><path>tests/test_negotiation.py
<ide> from __future__ import unicode_literals
<ide>
<add>import pytest
<add>from django.http import Http404
<ide> from django.test import TestCase
<ide>
<ide> from rest_framework.negotiation import DefaultContentNegotiation
<ide> def test_mediatype_string_representation(self):
<id... | 1 |
Javascript | Javascript | skip unneeded steps on app_shutdown | 7c902eb612dec7e256c13080d92da935781aa4b9 | <ide><path>extensions/firefox/bootstrap.js
<ide> function startup(aData, aReason) {
<ide> function shutdown(aData, aReason) {
<ide> if (Services.prefs.getBoolPref('extensions.pdf.js.active'))
<ide> Services.prefs.setBoolPref('extensions.pdf.js.active', false);
<add> if (aReason == APP_SHUTDOWN)
<add> return;
... | 1 |
Text | Text | move note about next export and i18n | ad8999356d8c246619cace4e777acc0a7222c834 | <ide><path>docs/advanced-features/i18n-routing.md
<ide> Next.js doesn't know about variants of a page so it's up to you to add the `href
<ide>
<ide> ## How does this work with Static Generation?
<ide>
<add>> Note that Internationalized Routing does not integrate with [`next export`](/docs/advanced-features/static-htm... | 1 |
Text | Text | add discord link | 9694c34193e33851eb5643182739d6d5a6724cd8 | <ide><path>README.md
<ide> If you’re new to the NPM ecosystem and have troubles getting a project up and
<ide>
<ide> ### Discussion
<ide>
<del>Join the **#redux** channel of the [Reactiflux](http://reactiflux.com) Slack community.
<add>Join the [#redux](https://discord.gg/0ZcbPKXt5bZ6au5t) channel of the [Reactiflux]... | 1 |
Ruby | Ruby | add support for single-package casks | ef1ea75c08f34ae7153db4244207edfda4c3c558 | <ide><path>Library/Homebrew/cask/artifact/pkg.rb
<ide> module Artifact
<ide> #
<ide> # @api private
<ide> class Pkg < AbstractArtifact
<del> attr_reader :pkg_relative_path, :path, :stanza_options
<add> attr_reader :path, :stanza_options
<ide>
<ide> def self.from_args(cask, path, **stanza_op... | 2 |
Python | Python | move xcom tests to tests/models/test_xcom.py | 7a5441836bbc8bbcb0b02bf68dbd93d63fe4ec6a | <ide><path>tests/models/test_cleartasks.py
<ide> # under the License.
<ide>
<ide> import datetime
<del>import os
<ide> import unittest
<ide>
<ide> from airflow import settings
<del>from airflow.models import DAG, TaskInstance as TI, XCom, clear_task_instances
<add>from airflow.models import DAG, TaskInstance as TI, c... | 2 |
Javascript | Javascript | remove global state | 365c1bfcf9e7b62b9e294a23270b02a1eebc3fb8 | <ide><path>local-cli/bundle/buildBundle.js
<ide>
<ide> const log = require('../util/log').out('bundle');
<ide> const Server = require('../../packager/src/Server');
<add>const Terminal = require('../../packager/src/lib/TerminalClass');
<ide> const TerminalReporter = require('../../packager/src/lib/TerminalReporter');
<... | 9 |
PHP | PHP | fix phpunit mocks | b204289a99eb29dc10ac8d75dd2bc33f3b6ae051 | <ide><path>tests/TestCase/Controller/Component/AuthComponentTest.php
<ide> */
<ide> namespace Cake\Test\TestCase\Controller\Component;
<ide>
<add>use Cake\Auth\BaseAuthorize;
<add>use Cake\Auth\FormAuthenticate;
<ide> use Cake\Controller\Component\AuthComponent;
<ide> use Cake\Core\Configure;
<ide> use Cake\Event\Eve... | 8 |
Python | Python | add pagination. thanks @devioustree! | 5db422c9d38277789bb6d2cf214f46ed7642d395 | <ide><path>djangorestframework/mixins.py
<ide> """
<del>The :mod:`mixins` module provides a set of reusable `mixin`
<add>The :mod:`mixins` module provides a set of reusable `mixin`
<ide> classes that can be added to a `View`.
<ide> """
<ide>
<ide> from django.contrib.auth.models import AnonymousUser
<del>from django.... | 2 |
PHP | PHP | add dispatchtoqueue to busfake | 14b4a4331a547dc21608e3f3e18006bfb0317add | <ide><path>src/Illuminate/Support/Testing/Fakes/BusFake.php
<ide> namespace Illuminate\Support\Testing\Fakes;
<ide>
<ide> use Closure;
<del>use Illuminate\Contracts\Bus\Dispatcher;
<add>use Illuminate\Contracts\Bus\QueueingDispatcher;
<ide> use Illuminate\Support\Arr;
<ide> use PHPUnit\Framework\Assert as PHPUnit;
<id... | 2 |
Text | Text | add french translation | 5b618ac3f9f83c03eb9996e3bacf54c7933e5015 | <ide><path>threejs/lessons/fr/threejs-lights.md
<add>Title: Lumières en Three.js
<add>Description: Configuration des mulières
<add>TOC: Lights
<add>
<add>Cet article fait partie d'une série consacrée à Three.js.
<add>Le premier article s'intitule [Principes de base](threejs-fundamentals.html). Si vous ne l'avez pas enc... | 1 |
Java | Java | add javadoc since for graphql constants | fcf64798b518149736983aa2ad1308d474a04664 | <ide><path>spring-core/src/main/java/org/springframework/util/MimeTypeUtils.java
<ide> public abstract class MimeTypeUtils {
<ide>
<ide> /**
<ide> * Public constant mime type for {@code application/graphql+json}.
<add> * @since 5.3.19
<ide> * @see <a href="https://github.com/graphql/graphql-over-http">GraphQL ov... | 2 |
Text | Text | clarify special schemes | d71f05c03db0e94ecde8c0e92fe7696e00e32436 | <ide><path>doc/api/url.md
<ide> console.log(u.href);
<ide> // fish://example.org
<ide> ```
<ide>
<del>The protocol schemes considered to be special by the WHATWG URL Standard
<del>include: `ftp`, `file`, `gopher`, `http`, `https`, `ws`, and `wss`.
<add>According to the WHATWG URL Standard, special protocol schemes are... | 1 |
Javascript | Javascript | add some improvements to frustum | 01852d283b95a56e9c930c3db35fc06f346975f4 | <ide><path>build/Three.js
<ide> THREE.Frustum.prototype.setFromMatrix = function ( m ) {
<ide> var i, plane,
<ide> planes = this.planes;
<ide> var me = m.elements;
<del>
<del> planes[ 0 ].set( me[3] - me[0], me[7] - me[4], me[11] - me[8], me[15] - me[12] );
<del> planes[ 1 ].set( me[3] + me[0], me[7] + me[4], me[... | 7 |
Python | Python | use tagspecification parameter on ec2 create_node | 0d1be1d7a28699d726c1256682a4e63889f2a1ba | <ide><path>libcloud/__init__.py
<ide> '__version__',
<ide> 'enable_debug'
<ide> ]
<del>__version__ = '2.2.0'
<add>__version__ = '2.2.0.dev1'
<ide>
<ide>
<ide> def enable_debug(fo):
<ide><path>libcloud/compute/drivers/ec2.py
<ide> def create_node(self, **kwargs):
<ide> if subnet_id:
<ide> ... | 2 |
Go | Go | add support for manifest lists ("fat manifests") | 2bb8c85bc5e59d2f5a154b58bb9a4b6e86775a40 | <ide><path>distribution/pull_v2.go
<ide> import (
<ide> "github.com/Sirupsen/logrus"
<ide> "github.com/docker/distribution"
<ide> "github.com/docker/distribution/digest"
<add> "github.com/docker/distribution/manifest/manifestlist"
<ide> "github.com/docker/distribution/manifest/schema1"
<ide> "github.com/docker/dis... | 1 |
Text | Text | add jsfiddle link to issue_template.md | 14717cfa40713635b27c2b62c61ce1d3d97f48e8 | <ide><path>.github/ISSUE_TEMPLATE.md
<ide>
<ide> ##### Description of the problem
<ide>
<add>Describe the problem/request in detail.
<add>Code snippet, screenshot, and small-test help us understand.
<add>
<add>You can edit for small-test.
<add>http://jsfiddle.net/akmcv7Lh/ (current revision)
<add>http://jsfiddle.net... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.