content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Javascript | Javascript | fix wrong context argument to `apply` | e0af1aabec3d3ee24f57aaaf9407860463f20213 | <ide><path>packages/react-reconciler/src/ReactFiberWorkLoop.new.js
<ide> export function queueRecoverableErrors(errors: Array<mixed>) {
<ide> workInProgressRootRecoverableErrors = errors;
<ide> } else {
<ide> workInProgressRootConcurrentErrors = workInProgressRootConcurrentErrors.push.apply(
<del> null,
... | 2 |
Javascript | Javascript | remove console.logs (#402) | 43b0e6f51420325abf2aed1157a197392364b25d | <ide><path>client/next-prefetcher.js
<ide> /* global self */
<ide>
<ide> const CACHE_NAME = 'next-prefetcher-v1'
<add>const log = () => {}
<ide>
<ide> self.addEventListener('install', () => {
<del> console.log('Installing Next Prefetcher')
<add> log('Installing Next Prefetcher')
<ide> })
<ide>
<ide> self.addEventL... | 2 |
PHP | PHP | add throws tag for public method | 3bd551afada4561f96b54775e15b68c781dabd62 | <ide><path>src/View/Helper/FormHelper.php
<ide> protected function validateValueSources(array $sources): void
<ide> * @see FormHelper::$supportedValueSources for valid values.
<ide> * @param string|string[] $sources A string or a list of strings identifying a source.
<ide> * @return $this
<add> * @th... | 1 |
PHP | PHP | add simple caching to fixture loading | 2da2f840f727c80e97b5ad35b46f4eacd3b8d925 | <ide><path>src/TestSuite/Fixture/FixtureHelper.php
<ide> class FixtureHelper
<ide> */
<ide> public function loadFixtures(array $fixtureNames): array
<ide> {
<add> static $cachedFixtures = [];
<add>
<ide> $fixtures = [];
<ide> foreach ($fixtureNames as $fixtureName) {
<ide> ... | 1 |
Ruby | Ruby | fix typo in routing documentation | 858efc9cbdec47888a4056cf82238605d825b542 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def put(*args, &block)
<ide> map_method(:put, args, &block)
<ide> end
<ide>
<del> # Define a route that only recognizes HTTP PUT.
<add> # Define a route that only recognizes HTTP DELETE.
<ide> # For supported argu... | 1 |
Text | Text | add hint and solution | 7bc3f6378f64daf227105ccd2f564d989eeca94e | <ide><path>guide/english/certifications/front-end-libraries/react-and-redux/use-provider-to-connect-redux-to-react/index.md
<ide> title: Use Provider to Connect Redux to React
<ide> ---
<ide> ## Use Provider to Connect Redux to React
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/maste... | 1 |
Javascript | Javascript | hoist reflection from verification | 69b4611049e3211b7a64ffcf49dcb87128163218 | <ide><path>Libraries/Utilities/__tests__/verifyComponentAttributeEquivalence-test.js
<ide>
<ide> 'use strict';
<ide>
<del>const getNativeComponentAttributes = require('../../ReactNative/getNativeComponentAttributes');
<add>jest.dontMock('../verifyComponentAttributeEquivalence');
<add>
<ide> const verifyComponentAttri... | 3 |
Text | Text | add gdams to collaborators | 91e897ac9281de1a36139b6514609753f1154ab2 | <ide><path>README.md
<ide> For more information about the governance of the Node.js project, see
<ide> **Jeremiah Senkpiel** <fishrock123@rocketmail.com>
<ide> * [gabrielschulhof](https://github.com/gabrielschulhof) -
<ide> **Gabriel Schulhof** <gabriel.schulhof@intel.com>
<add>* [gdams](https://github.com/... | 1 |
Javascript | Javascript | fix crypto-stream after openssl update | a76811c811f8e1602181f1c4368370c192adff0c | <ide><path>test/parallel/test-crypto-stream.js
<ide> var key = new Buffer('48fb56eb10ffeb13fc0ef551bbca3b1b', 'hex'),
<ide>
<ide> cipher.pipe(decipher)
<ide> .on('error', common.mustCall(function end(err) {
<del> assert(/Unsupported/.test(err));
<add> assert(/bad decrypt/.test(err));
<ide> }));
<ide>
<ide> ... | 1 |
PHP | PHP | remove logexception and cacheexception | 669ab207227b2e2dfa3fbf983f8eaaca6736ad31 | <ide><path>lib/Cake/Cache/Cache.php
<ide> public static function config($name = null, $settings = array()) {
<ide> *
<ide> * @param string $name Name of the config array that needs an engine instance built
<ide> * @return boolean
<del> * @throws CacheException
<add> * @throws Cake\Error\Exception
<ide> */
<ide> pr... | 7 |
Javascript | Javascript | accept eprotonosupport ipv6 error | 62512bb29cd000dd5ce848258c10f3211f153bd5 | <ide><path>test/parallel/test-dgram-error-message-address.js
<ide> var family_ipv6 = 'IPv6';
<ide> socket_ipv6.on('listening', assert.fail);
<ide>
<ide> socket_ipv6.on('error', common.mustCall(function(e) {
<del> // EAFNOSUPPORT means IPv6 is disabled on this system.
<del> var code = (e.code === 'EADDRNOTAVAIL' ? e.... | 1 |
Ruby | Ruby | move methods to a more logical place | 129e25032beec324f3441608c14b86f0e75227aa | <ide><path>Library/Homebrew/formula.rb
<ide> def downloader
<ide> active_spec.downloader
<ide> end
<ide>
<add> def cached_download
<add> downloader.cached_location
<add> end
<add>
<add> def clear_cache
<add> downloader.clear_cache
<add> end
<add>
<ide> # if the dir is there, but it's empty we conside... | 1 |
Text | Text | replace xcode to xcode | 2953a1a02ee9aef15fa143e90eb727b03da2d010 | <ide><path>docs/GettingStarted.md
<ide> npm install -g react-native-cli
<ide>
<ide> <block class="mac ios" />
<ide>
<del>#### XCode
<add>#### Xcode
<ide>
<ide> [Xcode](https://developer.apple.com/xcode/downloads/) 7.0 or higher. Open the App Store or go to https://developer.apple.com/xcode/downloads/. This will also... | 1 |
Javascript | Javascript | fix incorrect markup in tests | 06d154f91c67250864c590ce20c5ad5cf03a3191 | <ide><path>test/ng/compileSpec.js
<ide> describe('$compile', function() {
<ide> // All interpolations are disallowed.
<ide> $rootScope.onClickJs = '';
<ide> expect(function() {
<del> $compile('<button onclick="{{onClickJs}}"></script>');
<add> $compile('<button onclick="{{onClickJs}}... | 2 |
Python | Python | improve pep8 (s1721) | f069d8107118f407fa2cffa6fc096dc3d086f339 | <ide><path>glances/core/glances_client_browser.py
<ide> def serve_forever(self):
<ide> # Do not retreive stats for statics server
<ide> # Why ? Because for each offline servers, the timeout will be reached
<ide> # So ? The curse interface freezes
<del> ... | 5 |
Ruby | Ruby | remove broken --verbose functionality | 4a89cfb1dc75a1fae98809868b26d98eda1f8c6f | <ide><path>Library/Homebrew/cmd/man.rb
<ide> def man
<ide> puts "Writing HTML fragments to #{DOC_PATH}"
<ide> puts "Writing manpages to #{TARGET_PATH}"
<ide>
<del> target_file = nil
<ide> Dir["#{SOURCE_PATH}/*.md"].each do |source_file|
<ide> target_html = DOC_PATH/"#{File.basename(sourc... | 1 |
PHP | PHP | remove redundant fixture from strategy names | dca117a59f53b49844c759c689ebcd3f9eefb71b | <add><path>src/TestSuite/Fixture/TransactionStrategy.php
<del><path>src/TestSuite/Fixture/TransactionFixtureStrategy.php
<ide> *
<ide> * Any test that calls Connection::rollback(true) will break this strategy.
<ide> */
<del>class TransactionFixtureStrategy implements FixtureStrategyInterface
<add>class TransactionSt... | 5 |
Python | Python | remove jython check | f0e9fea0234569724f6081b683851bf40ff3a07f | <ide><path>celery/apps/worker.py
<ide> def restart_worker_sig_handler(*args):
<ide>
<ide>
<ide> def install_cry_handler(sig='SIGUSR1'):
<del> # Jython/PyPy does not have sys._current_frames
<del> if is_jython or is_pypy: # pragma: no cover
<add> # PyPy does not have sys._current_frames
<add> if is_pypy: ... | 1 |
Go | Go | fix change detection when applying tar layers | 10cd902f900392a2f10a6f8763bba70607ea0d41 | <ide><path>archive/changes.go
<ide> import (
<ide> "path/filepath"
<ide> "strings"
<ide> "syscall"
<add> "time"
<ide> )
<ide>
<ide> type ChangeType int
<ide> func (change *Change) String() string {
<ide> return fmt.Sprintf("%s %s", kind, change.Path)
<ide> }
<ide>
<add>// Gnu tar and the go tar writer don't have ... | 1 |
Text | Text | add poojadurgad as a triager | 18ff3c8db37d780826ae7ee0bc85a0d5a665f28b | <ide><path>README.md
<ide> For information about the governance of the Node.js project, see
<ide> Collaborators follow the [Collaborator Guide](./doc/guides/collaborator-guide.md) in
<ide> maintaining the Node.js project.
<ide>
<add>### Triagers
<add>
<add>* [PoojaDurgad](https://github.com/PoojaDurgad) -
<add>**Pooja... | 1 |
Javascript | Javascript | use babel polyfill for async | 2e598f692d10fd72a14dbbb50103539950e68ebc | <ide><path>client/src/client/workers/test-evaluator.js
<ide> /* global chai, importScripts */
<del>importScripts('https://cdnjs.cloudflare.com/ajax/libs/chai/4.2.0/chai.min.js');
<add>importScripts(
<add> 'https://cdnjs.cloudflare.com/ajax/libs/chai/4.2.0/chai.min.js',
<add> 'https://cdnjs.cloudflare.com/ajax/libs/ba... | 3 |
Ruby | Ruby | add cask methods." | a6033529cfdcfc6458aaa83a0bc9c4c141c60f96 | <ide><path>Library/Homebrew/tap.rb
<ide> def initialize(user, repo)
<ide> def clear_cache
<ide> @remote = nil
<ide> @formula_dir = nil
<del> @cask_dir = nil
<ide> @formula_files = nil
<ide> @alias_dir = nil
<ide> @alias_files = nil
<ide> def formula_dir
<ide> @formula_dir ||= [path/"Formula... | 1 |
PHP | PHP | break guard into two interfaces | 7b586da6619b043fa79b6711c08a1c17cdca5a76 | <ide><path>src/Illuminate/Contracts/Auth/Guard.php
<ide>
<ide> namespace Illuminate\Contracts\Auth;
<ide>
<del>interface Guard
<add>interface Guard extends StatelessGuard
<ide> {
<del> /**
<del> * Determine if the current user is authenticated.
<del> *
<del> * @return bool
<del> */
<del> public ... | 2 |
Javascript | Javascript | replace "integer" type with "number" | f1df1d43d449b9aecb6c0585520cb10602ca9dd8 | <ide><path>packages/ember-runtime/lib/mixins/array.js
<ide> export default Mixin.create(Enumerable, {
<ide> ```
<ide>
<ide> @method slice
<del> @param {Integer} beginIndex (Optional) index to begin slicing from.
<del> @param {Integer} endIndex (Optional) index to end the slice at (but not included).
<add... | 2 |
Text | Text | update license year | ffe48048dee66aaec5ee078f2e75dd19d99d1ee5 | <ide><path>license.md
<ide> The MIT License (MIT)
<ide>
<del>Copyright (c) 2016 Zeit, Inc.
<add>Copyright (c) 2016-present Zeit, Inc.
<ide>
<ide> Permission is hereby granted, free of charge, to any person obtaining a copy
<ide> of this software and associated documentation files (the "Software"), to deal | 1 |
Text | Text | update license year | d7b3458b150a160f93c1f5c89f8a224ed872cb6f | <ide><path>LICENSE.md
<ide> BSD 3-Clause License
<ide>
<del>Copyright (c) 2016, Free Code Camp.
<add>Copyright (c) 2017, Free Code Camp.
<ide> All rights reserved.
<ide>
<ide> Redistribution and use in source and binary forms, with or without
<ide><path>README.md
<ide> We welcome pull requests from Free Code Camp cam... | 2 |
Text | Text | update japanese translation to 75fafe1 | 852753c13adfda7b9764827773b9e1789c5404a9 | <ide><path>docs/docs/10.9-perf.ja-JP.md
<ide> Reactは普通、従来の枠を超えてとても速いです。しかし、ア
<ide> ### `Perf.start()` と `Perf.stop()`
<ide> 測定の開始/終了です。その間のReactの操作は以下のような分析のために記録されます。あまり時間を使わない操作は無視されます。
<ide>
<add>停止した後、あなたは、測定結果を得るために `Perf.getLastMeasurements()` (後述)が必要になります。
<add>
<ide> ### `Perf.printInclusive(measurements)`
<id... | 1 |
Text | Text | add model architectures intro | 96a9c65f97059d33fa19f9fe0ff0d89abb739259 | <ide><path>website/docs/usage/training.md
<ide> that reference this variable.
<ide> ### Model architectures {#model-architectures}
<ide>
<ide> <!-- TODO: refer to architectures API: /api/architectures -->
<add>A **model architecture** is a function that wires up a Thinc `Model` instance,
<add>which you can then use in... | 1 |
Python | Python | increase toc depth | 08b4638139c94ae5a1d9ad0342aaf022153e23c3 | <ide><path>docs/conf.py
<ide> on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
<ide>
<ide> if on_rtd:
<del> cmd = 'sphinx-apidoc -d 2 -o apidocs/ ../libcloud/'
<add> cmd = 'sphinx-apidoc -d 3 -o apidocs/ ../libcloud/'
<ide> subprocess.call(cmd, shell=True)
<ide>
<ide> # If extensions (or modules to do... | 1 |
Python | Python | add signum function | 1bbb0092f3fc311fac9e56e12c1fa223dbe16465 | <ide><path>maths/signum.py
<add>"""
<add>Signum function -- https://en.wikipedia.org/wiki/Sign_function
<add>"""
<add>
<add>
<add>def signum(num: float) -> int:
<add> """
<add> Applies signum function on the number
<add>
<add> >>> signum(-10)
<add> -1
<add> >>> signum(10)
<add> 1
<add> >>> signum(0... | 1 |
Javascript | Javascript | add comments to clarify why a sort is needed here | ef593368155bc3bc9e361b65242455c230295acb | <ide><path>lib/Compilation.js
<ide> class Compilation extends Tapable {
<ide> hash.update(child.hash);
<ide> });
<ide> let chunk;
<add> // clone needed as sort below is inplace mutation
<ide> const chunks = this.chunks.slice();
<add> /**
<add> * sort here will bring all "falsy" values to the beginning
<add... | 1 |
Python | Python | fix xla and amp | 86caeb76367834369a7e9e04fbc12a78b7ce1c8b | <ide><path>src/transformers/models/t5/modeling_tf_t5.py
<ide> def __init__(self, config, has_relative_attention_bias=False, **kwargs):
<ide> self.o = tf.keras.layers.Dense(self.d_model, use_bias=False, name="o")
<ide> self.dropout = tf.keras.layers.Dropout(config.dropout_rate)
<ide>
<del> if sel... | 2 |
Ruby | Ruby | fix failing flash test | 8736dd324117af90e0bf120cfd2074b06ccb45eb | <ide><path>actionpack/lib/action_controller/base.rb
<ide> def process_cleanup
<ide> end
<ide>
<ide> Base.class_eval do
<del> [ Flash, Filters, Layout, Benchmarking, Rescue, MimeResponds, Helpers,
<add> [ Filters, Layout, Benchmarking, Rescue, Flash, MimeResponds, Helpers,
<ide> Cookies, Caching, Verifi... | 1 |
Text | Text | fix typo in docs | 2e8ccfd883ea2c4e304a03b3585e1fa7f9fe3d0a | <ide><path>docs/api-guide/viewsets.md
<ide> A more complete example of extra actions:
<ide>
<ide> @action(detail=False)
<ide> def recent_users(self, request):
<del> recent_users = User.objects.all().order('-last_login')
<add> recent_users = User.objects.all().order_by('-last_login... | 1 |
Text | Text | make javascript javascript and github github | e139ab85969c92916639f6fa026740e3cc8dc0ff | <ide><path>docs/00-Getting-Started.md
<ide> First we need to include the Chart.js library on the page. The library occupies
<ide> <script src="Chart.js"></script>
<ide> ```
<ide>
<del>Alternatively, if you're using an AMD loader for javascript modules, that is also supported in the Chart.js core. Please note: the libr... | 3 |
Java | Java | provide simple way to create clientresponse | 04c2a2990dda185cca75ded2b218dff3054dafa8 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ClientResponse.java
<ide> /*
<del> * Copyright 2002-2017 the original author or authors.
<add> * Copyright 2002-2018 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
... | 10 |
PHP | PHP | move utility/debugger to error/debugger | bf51a2b2b2793f84202cf1830a2aa550f955db75 | <add><path>src/Error/Debugger.php
<del><path>src/Utility/Debugger.php
<ide> * @since 1.2.0
<ide> * @license http://www.opensource.org/licenses/mit-license.php MIT License
<ide> */
<del>namespace Cake\Utility;
<add>namespace Cake\Error;
<ide>
<ide> use Cake\Core\Configure;
<ide> use Cake\Error\Exceptio... | 3 |
Javascript | Javascript | add font mime type | 77e6d833f6818cbf3eecbe8e7cf640453af36ee1 | <ide><path>lib/nodeserver/server.js
<ide> StaticServlet.MimeMap = {
<ide> 'jpeg': 'image/jpeg',
<ide> 'gif': 'image/gif',
<ide> 'png': 'image/png',
<del> 'manifest': 'text/cache-manifest'
<add> 'manifest': 'text/cache-manifest',
<add> // it should be application/font-woff
<add> // but only this silences chrom... | 1 |
Ruby | Ruby | use thread variable in taggedlogging | 6e76f8f5c05cb2f00d7a2f4d58e6dd35a23655f6 | <ide><path>activesupport/lib/active_support/tagged_logging.rb
<ide> module ActiveSupport
<ide> class TaggedLogging
<ide> def initialize(logger)
<ide> @logger = logger
<del> @tags = Hash.new { |h,k| h[k] = [] }
<ide> end
<ide>
<ide> def tagged(*new_tags)
<ide> def #{severity}(progname = nil, ... | 1 |
Javascript | Javascript | convert select/option to not use wrappers | abfd151b90c54510d0a7a5b4404c443688510c35 | <ide><path>src/renderers/dom/client/wrappers/ReactDOMOption.js
<ide>
<ide> 'use strict';
<ide>
<del>var ReactBrowserComponentMixin = require('ReactBrowserComponentMixin');
<ide> var ReactChildren = require('ReactChildren');
<del>var ReactClass = require('ReactClass');
<ide> var ReactDOMSelect = require('ReactDOMSelec... | 5 |
PHP | PHP | allow customizing templates for prev() and next() | 058daad01c2eb82e323c498e9e8a8db8dcf65063 | <ide><path>src/View/Helper/PaginatorHelper.php
<ide> protected function _toggledLink($text, $enabled, $options, $templates)
<ide> }
<ide> $text = $options['escape'] ? h($text) : $text;
<ide>
<add> $templater = $this->templater();
<add> $newTemplates = !empty($options['templates']) ? $opti... | 2 |
Javascript | Javascript | move fbobjc bundle command to cli | 7ad418a396994324764f19907b86f4d3c5b39e41 | <ide><path>packager/react-packager/index.js
<ide> */
<ide> 'use strict';
<ide>
<del>require('babel-core/register')({
<del> only: /react-packager\/src/
<del>});
<add>require('babel-core/register')();
<ide>
<ide> useGracefulFs();
<ide>
<ide><path>private-cli/index.js
<ide> */
<ide> 'use strict';
<ide>
<del>require... | 15 |
Python | Python | add support for managed identity in wasb hook | caf0a8499f6099c943b0dd5054a9480b2e046bf1 | <ide><path>airflow/providers/microsoft/azure/hooks/wasb.py
<ide> from typing import Any, Dict, List, Optional
<ide>
<ide> from azure.core.exceptions import ResourceExistsError, ResourceNotFoundError
<del>from azure.identity import ClientSecretCredential
<add>from azure.identity import ClientSecretCredential, ManagedId... | 2 |
Text | Text | simplify http2stream encoding text | 9191b42c83d52e361ca8933f672802aa0f92e5d7 | <ide><path>doc/api/http2.md
<ide> All `Http2Stream` instances are [`Duplex`][] streams. The `Writable` side of the
<ide> `Duplex` is used to send data to the connected peer, while the `Readable` side
<ide> is used to receive data sent by the connected peer.
<ide>
<del>The default text character encoding for all `Http2... | 1 |
Javascript | Javascript | remove broken concatenation for now | 181a2f032ac57d7efda67c2b2fd0dccd14790588 | <ide><path>lib/css/CssExportsGenerator.js
<ide> class CssExportsGenerator extends Generator {
<ide> super();
<ide> }
<ide>
<del> /**
<del> * @param {NormalModule} module module for which the bailout reason should be determined
<del> * @param {ConcatenationBailoutReasonContext} context context
<del> * @returns {s... | 1 |
Javascript | Javascript | introduce knowledge of freebsd jails | c15e81afdd5413f94df23eb82b6fc65875cb07fb | <ide><path>test/common.js
<ide> exports.tmpDir = path.join(exports.testDir, exports.tmpDirName);
<ide>
<ide> var opensslCli = null;
<ide>
<add>Object.defineProperty(exports, 'inFreeBSDJail', {
<add> get: function() {
<add> if (process.platform === 'freebsd' &&
<add> child_process.execSync('sysctl -n security... | 7 |
Java | Java | ensure xmleventdecoder compiles on jdk 9 and 11 | ab1b8dee58532f704bd7cc41365a63226f6e5fd3 | <ide><path>spring-web/src/main/java/org/springframework/http/codec/xml/XmlEventDecoder.java
<ide>
<ide> import java.io.InputStream;
<ide> import java.util.ArrayList;
<add>import java.util.Iterator;
<ide> import java.util.List;
<ide> import java.util.Map;
<ide> import java.util.function.Function;
<ide> * by other deco... | 1 |
Javascript | Javascript | add test case | e2edfa72239a8c200abddb0ab0d19039f95648b3 | <ide><path>test/cases/side-effects/dynamic-reexports/index.js
<ide> import {
<ide> value2 as value2Checked
<ide> } from "./checked-export";
<ide> import Default2 from "./dynamic-reexport-default";
<add>import {
<add> value as valueMultipleSources,
<add> value2 as value2MultipleSources
<add>} from "./multiple-sources";... | 5 |
Javascript | Javascript | add newline to warning | 6846ef9fb8238dd1170f462926b3057bdc05eba5 | <ide><path>src/renderers/shared/fiber/ReactChildFiber.js
<ide> function throwOnInvalidObjectType(returnFiber : Fiber, newChild : Object) {
<ide> if (owner && typeof owner.tag === 'number') {
<ide> const name = getComponentName((owner : any));
<ide> if (name) {
<del> addendum += ' Check th... | 1 |
Ruby | Ruby | extend `search` tests | 3a361c139e9dad4874c17cb254a8657140354195 | <ide><path>Library/Homebrew/test/cmd/search_remote_tap_spec.rb
<ide> require "cmd/search"
<ide>
<ide> describe Homebrew do
<del> specify "#search_taps" do
<del> # Otherwise the tested method returns [], regardless of our stub
<del> ENV.delete("HOMEBREW_NO_GITHUB_API")
<add> describe "#search_taps" do
<add> ... | 2 |
Ruby | Ruby | add simply bounce handling | 8eb239bd1a1350b151d57a639e589c68aed1f47a | <ide><path>lib/action_mailroom/mailbox.rb
<ide> class ActionMailroom::Mailbox
<ide> include Callbacks, Routing
<ide>
<ide> attr_reader :inbound_email
<del> delegate :mail, to: :inbound_email
<add> delegate :mail, :bounced!, to: :inbound_email
<ide>
<ide> def self.receive(inbound_email)
<ide> new(inbound_e... | 2 |
Python | Python | add statistic calculation for provider's testing. | f08c2d58d135ddcb3ab617c2719ab8e8f9472cec | <ide><path>dev/stats/calculate_statistics_provider_testing_issues.py
<add>#!/usr/bin/env python3
<add># Licensed to the Apache Software Foundation (ASF) under one
<add># or more contributor license agreements. See the NOTICE file
<add># distributed with this work for additional information
<add># regarding copyright o... | 1 |
Ruby | Ruby | allow unscoping of left_outer_joins | f3d69c005291591220875efc48f82ea3909c6625 | <ide><path>activerecord/lib/active_record/relation/query_methods.rb
<ide> def reorder!(*args) # :nodoc:
<ide>
<ide> VALID_UNSCOPING_VALUES = Set.new([:where, :select, :group, :order, :lock,
<ide> :limit, :offset, :joins, :includes, :from,
<del> ... | 1 |
Text | Text | add two tests to challenge | ec8d2489290f6ca9e66bfeaaf3013e1305f8a708 | <ide><path>curriculum/challenges/english/10-coding-interview-prep/rosetta-code/abundant-deficient-and-perfect-number-classifications.md
<ide> dashedName: abundant-deficient-and-perfect-number-classifications
<ide>
<ide> # --description--
<ide>
<del>These define three classifications of positive integers based on thei... | 1 |
Ruby | Ruby | remove 10.9 warning | ada07d07bf997341444949030478a967e7bf42db | <ide><path>Library/Homebrew/cmd/doctor.rb
<ide> def check_for_osx_gcc_installer
<ide> end
<ide> end
<ide>
<del>def check_for_unsupported_osx
<del> if MacOS.version > 10.8 then <<-EOS.undent
<del> You are using Mac OS X #{MacOS.version}.
<del> We do not yet provide support for this (unreleased) version.
<del> ... | 1 |
Text | Text | add missing middleware methods to guide | 1c54862c82f8977fa90f8d8da748df87c724c7a1 | <ide><path>guides/source/rails_on_rack.md
<ide> You can swap an existing middleware in the middleware stack using `config.middle
<ide> config.middleware.swap ActionDispatch::ShowExceptions, Lifo::ShowExceptions
<ide> ```
<ide>
<add>#### Moving a Middleware
<add>
<add>You can move an existing middleware in the middlewa... | 1 |
Text | Text | fix incorrect changelog entry for 16.3.3 | 41f6d8cc7acb13d31b05783b958fa993d67cae68 | <ide><path>CHANGELOG.md
<ide>
<ide> * The [new host config shape](https://github.com/facebook/react/blob/c601f7a64640290af85c9f0e33c78480656b46bc/packages/react-noop-renderer/src/createReactNoop.js#L82-L285) is flat and doesn't use nested objects. ([@gaearon](https://github.com/gaearon) in [#12792](https://github.com/... | 1 |
Ruby | Ruby | drop a temporary table before end of a test case | 445696c0ca1b5fea1066677e0a9cb13ad0fe30e1 | <ide><path>railties/test/json_params_parsing_test.rb
<ide> require "active_record"
<ide>
<ide> class JsonParamsParsingTest < ActionDispatch::IntegrationTest
<del> test "prevent null query" do
<add> def test_prevent_null_query
<ide> # Make sure we have data to find
<ide> klass = Class.new(ActiveRecord::Base) ... | 1 |
Java | Java | convert view to @reactprop | bf598647d2ff7aad1d29c7c5d28d816c01941c1c | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java
<add>// Copyright 2004-present Facebook. All Rights Reserved.
<add>
<add>package com.facebook.react.uimanager;
<add>
<add>import android.graphics.Color;
<add>import android.os.Build;
<add>import android.view.View;
<add>
<add>import ... | 6 |
Mixed | Javascript | add `getplayer` method to video.js. | a15e616a453006d2e8038efc98eef71bee268085 | <ide><path>docs/guides/setup.md
<ide> However, using an `id` attribute isn't always practical; so, the `videojs` funct
<ide> videojs(document.querySelector('.video-js'));
<ide> ```
<ide>
<add>### Getting References to Players
<add>
<add>Once players are created, Video.js keeps track of them internally. There are a few... | 3 |
Text | Text | update readme with setup instructions | c83cd98cae72e82dd4f13087a72143433e6b56ba | <ide><path>App/README.md
<ide> you can install this project & the required dependencies using:
<ide> php composer.phar create-project cakephp/cakephp-app --dev
<ide>
<ide> This will download this repository, install the CakePHP framework and testing libraries.
<add>
<add>## Configuration
<add>
<add>Once you've instal... | 1 |
Javascript | Javascript | use utf8stream for net streams with utf8 encoding | ed5f1162fae2303a324017a98b247728dbe4718e | <ide><path>lib/net.js
<ide> var sys = require("sys");
<ide> var fs = require("fs");
<add>var Utf8Decoder = require("utf8decoder").Utf8Decoder;
<ide> var events = require("events");
<ide> var dns = require('dns');
<ide>
<ide> function initStream (self) {
<ide>
<ide> // Optimization: emit the original buffer ... | 1 |
Go | Go | remove duplication of dns in config merging | 48cb2f03177732823b4091fd3ddd44b2bef2c58e | <ide><path>runconfig/config_test.go
<ide> func TestMerge(t *testing.T) {
<ide> volumesUser := make(map[string]struct{})
<ide> volumesUser["/test3"] = struct{}{}
<ide> configUser := &Config{
<del> Dns: []string{"3.3.3.3"},
<add> Dns: []string{"2.2.2.2", "3.3.3.3"},
<ide> PortSpecs: []string{"3333:2222... | 2 |
Javascript | Javascript | rewrite tests for colgroup, caption | b3e546c4eb0e14c5fefefa1e0c14026ba63f0017 | <ide><path>test/unit/manipulation.js
<ide> var testAppendForObject = function( valueObj, isFragment ) {
<ide>
<ide> var testAppend = function( valueObj ) {
<ide>
<del> expect( 63 );
<add> expect( 66 );
<ide>
<ide> testAppendForObject( valueObj, false );
<ide> testAppendForObject( valueObj, true );
<ide>
<ide> va... | 1 |
PHP | PHP | use short array syntax | 0f4e8ebffcc8c2f890f2d36b842ba12287366053 | <ide><path>src/Utility/Hash.php
<ide> public static function sort(array $data, $path, $dir = 'asc', $type = 'regular')
<ide>
<ide> // $type can be overloaded for case insensitive sort
<ide> if (is_array($type)) {
<del> $type += array('ignoreCase' => false, 'type' => 'regular');
<add> ... | 1 |
Ruby | Ruby | move formulacreator to formula_creator.rb | e05f72bc5232a7fd880da28050e59e45123ef0d7 | <ide><path>Library/Homebrew/dev-cmd/create.rb
<ide> #: the specified tap.
<ide>
<ide> require "formula"
<add>require "formula_creator"
<ide> require "missing_formula"
<ide> require "cli_parser"
<del>require "digest"
<del>require "erb"
<ide>
<ide> module Homebrew
<ide> module_function
<ide> def create
<ide> ... | 2 |
Javascript | Javascript | fix a typo | 0040efc8d85923d64bee1fdf7e9029d65d01b751 | <ide><path>packages/react-reconciler/src/ReactFiberPendingPriority.js
<ide> function findNextExpirationTimeToWorkOn(completedExpirationTime, root) {
<ide> let nextExpirationTimeToWorkOn =
<ide> earliestPendingTime !== NoWork ? earliestPendingTime : latestPingedTime;
<ide>
<del> // If there is no pending or pint... | 1 |
Javascript | Javascript | use a different way to add the event listener | 22c858c2eca56d9be135ea187226c0d1e16f5309 | <ide><path>extensions/firefox/components/PdfStreamConverter.js
<ide> function log(aMsg) {
<ide> Services.console.logStringMessage(msg);
<ide> dump(msg + '\n');
<ide> }
<del>function getWindow(top, id) {
<del> return top.QueryInterface(Ci.nsIInterfaceRequestor)
<del> .getInterface(Ci.nsIDOMWindowUtils)
<... | 1 |
PHP | PHP | add aggregate method to eloquent passthru | 097ca1ac101622b3b0769a8970a0509aa898165e | <ide><path>src/Illuminate/Database/Eloquent/Builder.php
<ide> class Builder
<ide> * @var string[]
<ide> */
<ide> protected $passthru = [
<add> 'aggregate',
<ide> 'average',
<ide> 'avg',
<ide> 'count', | 1 |
PHP | PHP | refactor the database connector | a1956f016c5e075074d66cdd2c84bac5792c7e36 | <ide><path>system/db/connector.php
<ide> private function connect_to_server($config)
<ide> {
<ide> $dsn = $config->driver.':host='.$config->host.';dbname='.$config->database;
<ide>
<del> if (isset($config->port)) $dsn .= ';port='.$config->port;
<add> if (isset($config->port))
<add> {
<add> $dsn .= ';port='.$co... | 1 |
Mixed | Python | add shortest path by bfs | 308505f18f71b793a2a2547717d3586ace6d99af | <ide><path>DIRECTORY.md
<ide> * [Bfs](https://github.com/TheAlgorithms/Python/blob/master/graphs/bfs.py)
<ide> * [Bfs Shortest Path](https://github.com/TheAlgorithms/Python/blob/master/graphs/bfs_shortest_path.py)
<ide> * [Breadth First Search](https://github.com/TheAlgorithms/Python/blob/master/graphs/breadth_fi... | 2 |
PHP | PHP | change a doc block | 9a2ebbbc2ccf6b2f91db2cea0271d58c38642fd4 | <ide><path>src/Illuminate/Support/ServiceProvider.php
<ide> abstract class ServiceProvider {
<ide> /**
<ide> * The application instance.
<ide> *
<del> * @var \Illuminate\Foundation\Application
<add> * @var \Illuminate\Contracts\Foundation\Application
<ide> */
<ide> protected $app;
<ide>
<ide> abstract class ... | 1 |
PHP | PHP | add test for the model push method | a8cf7f4b82762b4738f605e04da637227c7de5a8 | <ide><path>tests/Integration/Database/EloquentPushTest.php
<add><?php
<add>
<add>namespace Illuminate\Tests\Integration\Database;
<add>
<add>use Illuminate\Support\Facades\Schema;
<add>use Illuminate\Database\Eloquent\Model;
<add>use Illuminate\Database\Schema\Blueprint;
<add>
<add>/**
<add> * @group integration
<add> ... | 1 |
Ruby | Ruby | fix scope typo in add_lock! closes . [zubek] | c302cdfcc4e70d1adbc5fb4c89d361e446349800 | <ide><path>activerecord/lib/active_record/base.rb
<ide> def add_limit!(sql, options, scope = :auto)
<ide> # The optional scope argument is for the current :find scope.
<ide> # The :lock option has precedence over a scoped :lock.
<ide> def add_lock!(sql, options, scope = :auto)
<del> sco... | 1 |
Ruby | Ruby | require json arrays/objects for audit exceptions | b4d4f6d50422107ef79c5b976bed891915d5ef2e | <ide><path>Library/Homebrew/dev-cmd/audit.rb
<ide> def audit_json_files
<ide>
<ide> def audit_tap_audit_exceptions
<ide> @tap_audit_exceptions.each do |list_name, formula_names|
<add> unless [Hash, Array].include? formula_names.class
<add> problem <<~EOS
<add> audit_exceptions/#{li... | 1 |
Java | Java | add cache(int capacity) to observable | d44f059848e3f46462a9f981ce163af9dc2f159d | <ide><path>rxjava-core/src/main/java/rx/Observable.java
<ide> public final Observable<T> cache() {
<ide> return create(new OnSubscribeCache<T>(this));
<ide> }
<ide>
<add> /**
<add> * {@code cache} with initial capacity.
<add> *
<add> * @param capacity
<add> * initial cache siz... | 3 |
Text | Text | fix confusing language about microtask queue | f2172012f30e7de48cea54b4dbbbbaa1195d9a02 | <ide><path>doc/api/globals.md
<ide> The `queueMicrotask()` method queues a microtask to invoke `callback`. If
<ide> be emitted.
<ide>
<ide> In general, `queueMicrotask` is the idiomatic choice over `process.nextTick()`.
<del>`process.nextTick()` will always run before microtasks, and so unexpected
<del>execution order... | 1 |
Text | Text | change id links for scales objects | e1a1d9cd6dc16b3291f45b57dd0c13a69694f41f | <ide><path>docs/02-Scales.md
<ide> afterCalculateTickRotation | Function | undefined | Callback that runs after tic
<ide> beforeFit | Function | undefined | Callback that runs before the scale fits to the canvas. Passed a single argument, the scale instance.
<ide> afterFit | Function | undefined | Callback that runs af... | 1 |
Ruby | Ruby | fix typo in am i18n validation test name [skip ci] | 3f92a8247cf0cf0ae78d55aee5e9a6510060e939 | <ide><path>activemodel/test/cases/validations/i18n_validation_test.rb
<ide> def test_errors_full_messages_uses_format
<ide> # validates_length_of :within too short w/ mocha
<ide>
<ide> COMMON_CASES.each do |name, validation_options, generate_message_options|
<del> test "validates_length_of for :withing on gener... | 1 |
Javascript | Javascript | move a comment to its original location | 40a9e64e1f23e478036c5f302a60e5503ccf3a30 | <ide><path>packages/react-dom/src/server/ReactPartialRenderer.js
<ide> class ReactDOMServerRenderer {
<ide> const flatChildren = flattenTopLevelChildren(children);
<ide>
<ide> const topFrame: Frame = {
<add> type: null,
<ide> // Assume all trees start in the HTML namespace (not totally true, but
<id... | 1 |
Javascript | Javascript | remove trailing spaces | f8ef75eb9124ce924be5fb521c783efd5c996e33 | <ide><path>src/ajax.js
<ide> jQuery.each( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".sp
<ide> var jsc = now();
<ide>
<ide> jQuery.extend({
<del>
<add>
<ide> get: function( url, data, callback, type ) {
<ide> // shift arguments if data argument was ommited
<ide> if ( jQuery.isFunction( data... | 11 |
Javascript | Javascript | fix saucelabs config | 94f1e21ba398a3d379aedfdb65b49e48e27e210f | <ide><path>karma.conf.js
<ide> module.exports = function(config) {
<ide> sauceLabs: {
<ide> recordScreenshots: false,
<ide> connectOptions: {
<del> port: 5757,
<add> // port: 5757,
<ide> logfile: 'sauce_connect.log'
<ide> },
<ide> public: 'public' | 1 |
Python | Python | remove unused import | 40af53f96c407ce0c3a5679270f8467994f46e1d | <ide><path>t/unit/backends/test_mongodb.py
<del>import perform as perform
<del>
<ide> import datetime
<ide> from pickle import dumps, loads
<ide> from unittest.mock import ANY, MagicMock, Mock, patch, sentinel | 1 |
PHP | PHP | remove deprecated methods from connection | d9206d432bda438dbe4e4a5c8d6d0cdcdd08879b | <ide><path>src/Database/Connection.php
<ide> public function getDriver()
<ide> return $this->_driver;
<ide> }
<ide>
<del> /**
<del> * Sets the driver instance. If a string is passed it will be treated
<del> * as a class name and will be instantiated.
<del> *
<del> * If no params are pass... | 4 |
Javascript | Javascript | refactor the import of internalutil | 1a12b82396c6c0747f8f5c96a28d019f774e0257 | <ide><path>lib/internal/fs/streams.js
<ide> const {
<ide> ERR_OUT_OF_RANGE,
<ide> ERR_STREAM_DESTROYED
<ide> } = require('internal/errors').codes;
<del>const internalUtil = require('internal/util');
<add>const { deprecate } = require('internal/util');
<ide> const { validateNumber } = require('internal/validators');... | 1 |
Go | Go | add newdaemon without testingt | 04d9e157b2b09401ae3e9e00e143606218910580 | <ide><path>testutil/daemon/daemon.go
<ide> type logT interface {
<ide> Logf(string, ...interface{})
<ide> }
<ide>
<add>// nopLog is a no-op implementation of logT that is used in daemons created by
<add>// NewDaemon (where no testingT is available).
<add>type nopLog struct{}
<add>
<add>func (nopLog) Logf(string, ...i... | 2 |
Go | Go | remove use of global volume driver store | 977109d808ae94eb3931ae920338b1aa669f627e | <ide><path>daemon/daemon.go
<ide> func setDefaultMtu(conf *config.Config) {
<ide> }
<ide>
<ide> func (daemon *Daemon) configureVolumes(rootIDs idtools.IDPair) (*store.VolumeStore, error) {
<del> volumesDriver, err := local.New(daemon.configStore.Root, rootIDs)
<add> volumeDriver, err := local.New(daemon.configStore.Ro... | 9 |
Python | Python | tighten test_gen_pyf_stdout check | 02533c5da4b5e4328d49dcafb8d0a5592ae337c7 | <ide><path>numpy/f2py/tests/test_f2py2e.py
<ide> def test_gen_pyf_stdout(capfd, hello_world_f90, monkeypatch):
<ide> f2pycli()
<ide> out, _ = capfd.readouterr()
<ide> assert "Saving signatures to file" in out
<add> assert "function hi() ! in " in out
<ide>
<ide>
<ide> def test_gen_pyf_n... | 1 |
Text | Text | add changes metadata to tls newsession event | 9cbfabac25e9ee4c1b792efc45195ad5dc717e22 | <ide><path>doc/api/tls.md
<ide> server.on('keylog', (line, tlsSocket) => {
<ide> ### Event: `'newSession'`
<ide> <!-- YAML
<ide> added: v0.9.2
<add>changes:
<add> - version: v0.11.12
<add> pr-url: https://github.com/nodejs/node-v0.x-archive/pull/7118
<add> description: The `callback` argument is now supported.
<... | 1 |
PHP | PHP | fix tests under http namespace | 6f70593c1de7ffa711b6aa3d32dfda674fa587bf | <ide><path>tests/TestCase/Http/ControllerFactoryTest.php
<ide> public function testApplicationController()
<ide> ]);
<ide> $result = $this->factory->create($request, $this->response);
<ide> $this->assertInstanceOf('TestApp\Controller\CakesController', $result);
<del> $this->assertSame($re... | 1 |
Text | Text | remove backported changelog entry [ci skip] | d7b72761043f8d76dd95a7198c2dbba89da13b0b | <ide><path>activestorage/CHANGELOG.md
<del>* Allow full use of the AWS S3 SDK options for authentication. If an
<del> explicit AWS key pair and/or region is not provided in `storage.yml`,
<del> attempt to use environment variables, shared credentials, or IAM
<del> (instance or task) role credentials. Orde... | 1 |
Javascript | Javascript | try new way | cc845c3bae12df701eddcff94cb8b6f462c4a142 | <ide><path>src/text-editor.js
<ide> class TextEditor {
<ide> //
<ide> // Returns a {Cursor}.
<ide> addCursorAtBufferPosition (bufferPosition, options) {
<del> this.selectionsMarkerLayer.markBufferPosition(bufferPosition, {invalidate: 'never'})
<add> this.selectionsMarkerLayer.markBufferPosition(bufferPositi... | 1 |
Text | Text | correct grunt command in readme.md | 9d6beac3958da79671344fd11b9a3fe9b85f88e1 | <ide><path>README.md
<ide> npm install -g grunt-cli
<ide> ```
<ide> Make sure you have `grunt` installed by testing:
<ide> ```
<del>grunt -v
<add>grunt -V
<ide> ```
<ide>
<ide> Now by running the `grunt` command, in the jquery directory, you can build a full version of jQuery, just like with a `npm run build` command: | 1 |
Go | Go | remove getminimalipnet() as it's unused | 513310f776cf887b475106ed4d853c01045d5ee4 | <ide><path>libnetwork/types/types.go
<ide> func GetMinimalIP(ip net.IP) net.IP {
<ide> return ip
<ide> }
<ide>
<del>// GetMinimalIPNet returns a copy of the passed IP Network with congruent ip and mask notation
<del>func GetMinimalIPNet(nw *net.IPNet) *net.IPNet {
<del> if nw == nil {
<del> return nil
<del> }
<del> ... | 1 |
Java | Java | return static defaultapplicationstartup step | 5204d736f3a93ae274dd535c7dd17cc2e6532c7b | <ide><path>spring-core/src/main/java/org/springframework/core/metrics/DefaultApplicationStartup.java
<ide> /*
<del> * Copyright 2002-2020 the original author or authors.
<add> * Copyright 2002-2021 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> *... | 1 |
Javascript | Javascript | fix indentation to make jscs happy | a594fa523f8dfa11f1be14130cf5761d4d6464dc | <ide><path>test/ng/directive/ngClassSpec.js
<ide> describe('ngClass', function() {
<ide> );
<ide>
<ide> it('should allow ngClass with overlapping classes', inject(function($rootScope, $compile, $animate) {
<del> element = $compile('<div ng-class="{\'same yes\': test, \'same no\': !test}"></div>')($rootScope);... | 1 |
PHP | PHP | remove support for integers with leading 0s | 6615ea8448e6323b5a453cd3023600f4c4fc4322 | <ide><path>src/Controller/ControllerFactory.php
<ide> protected function coerceStringToType(string $argument, ReflectionNamedType $typ
<ide> case 'float':
<ide> return is_numeric($argument) ? (float)$argument : null;
<ide> case 'int':
<del> return ctype_digit($argu... | 2 |
Javascript | Javascript | fix race condition in profiling plugin | 387dce100f024c4b43833d960235648dae8edebb | <ide><path>lib/debug/ProfilingPlugin.js
<ide> const createTrace = (fs, outputPath) => {
<ide> profiler,
<ide> end: callback => {
<ide> // Wait until the write stream finishes.
<del> fsStream.on("finish", () => {
<add> fsStream.on("close", () => {
<ide> callback();
<ide> });
<ide> // Tear down the r... | 1 |
Javascript | Javascript | fix owner tree for legacy backend | 4bfabbc32b545da69d6a7c80dca21ac9248494b2 | <ide><path>src/backend/legacy/renderer.js
<ide> export function attach(
<ide> id: getID(owner),
<ide> type: getElementType(owner),
<ide> });
<del> owner = owner.owner;
<add> if (owner._currentElement) {
<add> owner = owner._currentElement._owner... | 1 |
PHP | PHP | return null instead of false on cache miss | f16842088dd1b10a7f0be0fe933ebb636befa184 | <ide><path>src/Utility/Inflector.php
<ide> class Inflector {
<ide> * @param string $type Inflection type
<ide> * @param string $key Original value
<ide> * @param string $value Inflected value
<del> * @return string Inflected value, from cache
<add> * @return string|null Inflected value on cache hit or null on cache ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.