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 | use commas in non-csv rate output | 17eb8fce0548290ae7cc1befa69c845552603565 | <ide><path>benchmark/common.js
<ide> function formatResult(data) {
<ide> conf += ' ' + key + '=' + JSON.stringify(data.conf[key]);
<ide> }
<ide>
<del> return `${data.name}${conf}: ${data.rate}`;
<add> const rate = Math.floor(data.rate)
<add> .toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, '$1... | 2 |
PHP | PHP | fix incorrect documentation | dffcf048d9e05d0ee465e8d4909357ea444272d4 | <ide><path>lib/Cake/Console/Command/AclShell.php
<ide> public function getOptionParser() {
<ide> 'help' => __d('cake_console', 'Check the permissions between an ACO and ARO.'),
<ide> 'parser' => array(
<ide> 'description' => array(
<del> __d('cake_console', 'Use this command to grant ACL permissions. ... | 1 |
Javascript | Javascript | turn scope into a service | 48697a2b86dbb12ea8de64cc5fece7caf68b321e | <ide><path>example/personalLog/test/personalLogSpec.js
<ide> describe('example.personalLog.LogCtrl', function() {
<ide> var logCtrl;
<ide>
<ide> function createNotesCtrl() {
<del> var scope = angular.scope();
<del> scope.$cookies = scope.$service('$cookies');
<add> var injector = angular.injector();
<add>... | 51 |
Javascript | Javascript | ignore spec window when saving application state | eb60e44ca73f00e6ccca7aceca70ae3d79594f4f | <ide><path>src/main-process/atom-application.js
<ide> module.exports = class AtomApplication extends EventEmitter {
<ide> async saveCurrentWindowOptions(allowEmpty = false) {
<ide> if (this.quitting) return;
<ide>
<add> const windows = this.getAllWindows();
<add> const hasASpecWindow = windows.some(window ... | 1 |
Text | Text | improve pagination docs. refs [ci skip] | 19b415ec25089d16d7b78c99712522adf6a5ea02 | <ide><path>docs/api-guide/pagination.md
<ide> Pagination can be turned off by setting the pagination class to `None`.
<ide>
<ide> ## Setting the pagination style
<ide>
<del>The default pagination style may be set globally, using the `DEFAULT_PAGINATION_CLASS` settings key. For example, to use the built-in limit/offse... | 1 |
Javascript | Javascript | make writeafterfin() return false | 714a32c41f7cedec76cd7a237ac12f4cee7fcf85 | <ide><path>lib/net.js
<ide> function writeAfterFIN(chunk, encoding, cb) {
<ide> if (typeof cb === 'function') {
<ide> defaultTriggerAsyncIdScope(this[async_id_symbol], process.nextTick, cb, er);
<ide> }
<add>
<add> return false;
<ide> }
<ide>
<ide> Socket.prototype.setTimeout = setStreamTimeout;
<ide><path>te... | 2 |
Python | Python | fix layoutlmv3 documentation | 4c8ec66a7433589436d13d95d48601f274c92b44 | <ide><path>src/transformers/models/layoutlmv3/modeling_layoutlmv3.py
<ide> behavior.
<ide>
<ide> Parameters:
<del> config ([`LayoutLMv2Config`]): Model configuration class with all the parameters of the model.
<add> config ([`LayoutLMv3Config`]): Model configuration class with all the parameters ... | 1 |
Python | Python | add regression test for gh-6922 | fe46c47a96e191b028823280fe3451a48d0fc18e | <ide><path>numpy/core/tests/test_regression.py
<ide> def test_empty_percentile(self):
<ide> # gh-6530 / gh-6553
<ide> assert_array_equal(np.percentile(np.arange(10), []), np.array([]))
<ide>
<add> def test_void_compare_segfault(self):
<add> # gh-6922. The following should not segfault
<add> ... | 1 |
Text | Text | clarify environment_name for logs | 15a18c18e496c8fb46ee21d8a1af0c4012abc5f5 | <ide><path>guides/source/debugging_rails_applications.md
<ide> config.logger = Logger.new(STDOUT)
<ide> config.logger = Log4r::Logger.new("Application Log")
<ide> ```
<ide>
<del>TIP: By default, each log is created under `Rails.root/log/` and the log file name is `environment_name.log`.
<add>TIP: By default, each log ... | 1 |
Go | Go | remove obsolete comment | 4cdb796b5453d4c2fe7dde85cadd2a56725e3452 | <ide><path>pkg/system/syscall_windows.go
<ide> func GetOSVersion() OSVersion {
<ide> }
<ide>
<ide> // IsWindowsClient returns true if the SKU is client
<del>// @engine maintainers - this function should not be removed or modified as it
<del>// is used to enforce licensing restrictions on Windows.
<ide> func IsWindowsC... | 1 |
Javascript | Javascript | remove un-helpful error in with-sentry example | 167a91b73e048211a855b38f50e7f551cdddd4cb | <ide><path>examples/with-sentry/pages/_error.js
<ide> const MyError = ({ statusCode, hasGetInitialPropsRun, err }) => {
<ide> return <NextErrorComponent statusCode={statusCode} />
<ide> }
<ide>
<del>MyError.getInitialProps = async ({ res, err, asPath }) => {
<add>MyError.getInitialProps = async ({ res, err }) => {
<... | 1 |
PHP | PHP | fix failing testcase | 3a183849298e606475af8a606cb2c3a9c512ad8c | <ide><path>lib/Cake/Test/Case/Routing/Filter/AssetDispatcherTest.php
<ide> public function testNotModified() {
<ide> 'View' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'View' . DS)
<ide> ));
<ide> $time = filemtime(App::themePath('TestTheme') . 'webroot' . DS . 'img' . DS . 'cake.power.gif');
<del> $time = ... | 1 |
Javascript | Javascript | remove event simulation of onchange events | 32f6f258bad524ec3886901a5b132887f8dd7553 | <ide><path>packages/react-dom/src/__tests__/ReactDOMInput-test.js
<ide> describe('ReactDOMInput', () => {
<ide> let React;
<ide> let ReactDOM;
<ide> let ReactDOMServer;
<del> let ReactTestUtils;
<ide> let setUntrackedValue;
<add> let setUntrackedChecked;
<add> let container;
<ide>
<ide> function dispatchE... | 4 |
Python | Python | add tool to help speed up travis ci | 6185631ca9b6d426067eec6d8d22e60370281a0a | <ide><path>tools/travis-sorter.py
<add>#!/usr/bin/env python3
<add>"""
<add>Run with a repo/build number or list of Travis CI build times to show the optimal build
<add>order to run faster and make full use of all available parallel build jobs.
<add>
<add>Requires the Travis Client CLI
<add>
<add>https://github.com/tra... | 1 |
Javascript | Javascript | fix param type (not optional) | 2dc83b2f04848fc169b17a7aeac5395f03eb515b | <ide><path>src/ngMock/angular-mocks.js
<ide> angular.mock.$Browser.prototype = {
<ide> *
<ide> * <div class="alert alert-info">
<ide> * Periodic tasks scheduled via {@link $interval} use a different queue and are not flushed by
<del> * `$flushPendingTasks()`. Use {@link ngMock.$interval#flush $interval.flush([mi... | 1 |
PHP | PHP | add mix intergration tests | 87ef35362234c47e868fb19e4f7fad5371f0fe42 | <ide><path>tests/Integration/Foundation/FoundationHelpersTest.php
<ide>
<ide> use Exception;
<ide> use Orchestra\Testbench\TestCase;
<add>use Illuminate\Contracts\Debug\ExceptionHandler;
<ide>
<ide> /**
<ide> * @group integration
<ide> public function test(int $a)
<ide> $testClass->test([]);
<ide> ... | 1 |
Python | Python | add a test case for it | 1b2c399b06193145e0062667867e0b39ee754e9c | <ide><path>libcloud/test/compute/test_openstack.py
<ide> def test_attach_volume(self):
<ide> self.assertEqual(
<ide> self.driver.attach_volume(node, volume, '/dev/sdb'), True)
<ide>
<add> def test_attach_volume_device_auto(self):
<add> node = self.driver.list_nodes()[0]
<add> volum... | 1 |
Java | Java | adjust layout animation with pending deletion set | c938c0afbfbd0e5ba8853feb212a976f605f51f0 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java
<ide> import com.facebook.systrace.Systrace;
<ide> import com.facebook.systrace.SystraceMessage;
<ide> import java.util.Arrays;
<add>import java.util.HashSet;
<add>import java.util.Set;
<ide> import javax.annotation.concu... | 1 |
Go | Go | remove servicing mode | d4f37c08858b90e8603741ba92de8e0d39b88eb3 | <ide><path>daemon/monitor.go
<ide> func (daemon *Daemon) ProcessEvent(id string, e libcontainerd.EventType, ei libc
<ide> }
<ide>
<ide> daemon.setStateCounter(c)
<del> if err := c.CheckpointTo(daemon.containersReplica); err != nil {
<del> return err
<del> }
<del> return daemon.postRunProcessing(c, ei)
<... | 7 |
Ruby | Ruby | add more tests for the dirty feature for enums | a0520fceff9148ebfbb2e09745ba1416bceef2bf | <ide><path>activerecord/lib/active_record/attribute_methods/dirty.rb
<ide> def write_attribute(attr, value)
<ide>
<ide> save_changed_attribute(attr, value)
<ide>
<del> # Carry on.
<ide> super(attr, value)
<ide> end
<ide>
<ide><path>activerecord/lib/active_record/enum.rb
<ide> def enum(de... | 5 |
Text | Text | remove duplicate sections from 'react/state' | 7e866537a156ec3a978cf47d693936719619aabf | <ide><path>client/src/pages/guide/english/react/state/index.md
<ide> export default App;
<ide> ## Updating State
<ide> You can change the data stored in the state of your application using the `setState` method on your component.
<ide>
<del>```js
<del>this.setState({ value: 1 });
<del>```
<del>
<del>Keep in mind that ... | 1 |
Python | Python | fix spelling of von hann's surname | 7897da783e93c43711cf7d5b555674fefba4d16e | <ide><path>numpy/lib/function_base.py
<ide> def hanning(M):
<ide> .. math:: w(n) = 0.5 - 0.5cos\\left(\\frac{2\\pi{n}}{M-1}\\right)
<ide> \\qquad 0 \\leq n \\leq M-1
<ide>
<del> The Hanning was named for Julius van Hann, an Austrian meteorologist.
<add> The Hanning was named for Julius von Ha... | 1 |
Text | Text | propose a basic solution to adjacency list problem | 781c2170010a46a7b8545f9adf95ac1dade4c56a | <ide><path>guide/english/certifications/coding-interview-prep/data-structures/adjacency-list/index.md
<ide> title: Adjacency List
<ide> ---
<ide> ## Adjacency List
<add> Remembe... | 1 |
PHP | PHP | remove size argument from constructor | 860267cc6b9fa3e41de18ffd7e7326898007ac11 | <ide><path>src/Illuminate/Http/Testing/File.php
<ide> public function __construct($name, $tempFile)
<ide>
<ide> parent::__construct(
<ide> $this->tempFilePath(), $name, $this->getMimeType(),
<del> filesize($this->tempFilePath()), null, true
<add> null, true
<ide> );
<i... | 1 |
Javascript | Javascript | update unsubscribe paths | cdc44e4b7e0b2d9cb3d7a1655d237279aa43a702 | <ide><path>server/boot/randomAPIs.js
<ide> module.exports = function(app) {
<ide> router.get('/pmi-acp-agile-project-managers-form', agileProjectManagersForm);
<ide> router.get('/nonprofits', nonprofits);
<ide> router.get('/nonprofits-form', nonprofitsForm);
<del> router.get('/unsubscribe/:email', unsubscribe);
... | 1 |
Javascript | Javascript | add param info | de065f196129766f7e774ccf0a24916db2e0f06d | <ide><path>src/ngRoute/directive/ngView.js
<ide> ngRouteModule.directive('ngView', ngViewFillContentFactory);
<ide> *
<ide> * @scope
<ide> * @priority 400
<add> * @param {string=} onload Expression to evaluate whenever the view updates.
<add> *
<add> * @param {string=} autoscroll Whether `ngView` should call {@link ... | 1 |
Javascript | Javascript | remove duplicate util binding | 2bf4697ff4be6a510410be1f1e67549be347614b | <ide><path>lib/repl.js
<ide> const {
<ide> const internalUtil = require('internal/util');
<ide> const util = require('util');
<ide> const { internalBinding } = require('internal/bootstrap/loaders');
<del>const utilBinding = internalBinding('util');
<ide> const { inherits } = util;
<ide> const Stream = require('stream')... | 1 |
Javascript | Javascript | remove unnecessary check for `nativearray` | 69f6bea2c26d60c4c15ac96a674fa0865632d8fc | <ide><path>packages/ember-runtime/lib/system/native_array.js
<ide> forEach(NativeArray.keys(), function(methodName) {
<ide> }
<ide> });
<ide>
<del>if (ignore.length > 0) {
<del> NativeArray = NativeArray.without.apply(NativeArray, ignore);
<del>}
<add>NativeArray = NativeArray.without.apply(NativeArray, ignore);
<i... | 1 |
Javascript | Javascript | fix transition bug | bcd6a56de6a5a2491d60b62badf3a672188a3a7d | <ide><path>common/app/routes/Hikes/flux/Actions.js
<ide> export default Actions({
<ide> userAnswer,
<ide> props: {
<ide> hike: { id, name, tests, challengeType },
<del> currentQuestion
<add> currentQuestion,
<add> username
<ide> }
<ide> }) {
<ide>
<ide> export default Actions({
<ide>... | 1 |
Python | Python | use yaml.safe_load instead of load | 62ed1f82707916a23b4e97aae8e48f09ddaf1dea | <ide><path>tests/schemas/test_managementcommand.py
<ide> def test_renders_default_schema_with_custom_title_url_and_description(self):
<ide> '--description=Sample description',
<ide> stdout=self.out)
<ide> # Check valid YAML was output.
<del> schema = yaml.load(se... | 1 |
Javascript | Javascript | make .getrepo() submodule-aware | a79a528fd1de2ed1360ce3c2cc31a165b5183b3c | <ide><path>spec/git-repository-async-spec.js
<ide> function copyRepository (name = 'working-dir') {
<ide> return fs.realpathSync(workingDirPath)
<ide> }
<ide>
<add>function copySubmoduleRepository () {
<add> const workingDirectory = copyRepository('repo-with-submodules')
<add> const reGit = (name) => {
<add> fs... | 2 |
Text | Text | update readme with the javadoc link | 2cdce62c3d9a1a5aec12676343e03e694a8a6e29 | <ide><path>spring-web-reactive/README.md
<ide> Spring Reactive JAR dependency is available from Spring snapshot repository:
<ide> - Version: `0.1.0.BUILD-SNAPSHOT`
<ide>
<ide> ## Documentation
<del>See the current [Javadoc][] and [reference docs][].
<add>See the current [Javadoc][].
<ide>
<ide> ## Sample applicati... | 1 |
PHP | PHP | update command.php | ac9f29da4785c8b942ced8c4ab308214d618a22b | <ide><path>src/Illuminate/Console/Command.php
<ide> public function run(InputInterface $input, OutputInterface $output)
<ide> */
<ide> protected function execute(InputInterface $input, OutputInterface $output)
<ide> {
<del> $method = method_exists($this, 'handle') ? 'handle' : 'fire';
<del>
<del> ... | 1 |
Ruby | Ruby | make internal methods to private | e4108fc619e0f1c28cdec6049d31f2db01d56dfd | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/quoting.rb
<ide> def lookup_cast_type_from_column(column) # :nodoc:
<ide> lookup_cast_type(column.sql_type)
<ide> end
<ide>
<del> def fetch_type_metadata(sql_type)
<del> cast_type = lookup_cast_type(sql_type)
<del> ... | 12 |
Python | Python | add auth options in cassandra backend | afbd2330ed6f835d0c3774cff15c1c6312a1930d | <ide><path>celery/backends/cassandra.py
<ide> import sys
<ide> try: # pragma: no cover
<ide> import cassandra
<add> import cassandra.auth
<ide> import cassandra.cluster
<ide> except ImportError: # pragma: no cover
<ide> cassandra = None # noqa
<ide> def __init__(self, servers=None, keyspace=None, tab... | 2 |
Python | Python | enable colors for `runtests.py --ipython` | ce77458baaa9f452f89a5e80809dc7cd4fdc0140 | <ide><path>runtests.py
<ide> def main(argv):
<ide> import warnings; warnings.filterwarnings("always")
<ide> import IPython
<ide> import numpy as np
<del> IPython.embed(user_ns={"np": np})
<add> IPython.embed(colors='neutral', user_ns={"np": np})
<ide> sys.exit(0)
<ide>
<id... | 1 |
Mixed | Ruby | add configuration to set custom serializers | a5f7357a3dff2617ba13a274feb8d8ac2492f26a | <ide><path>activejob/lib/active_job/railtie.rb
<ide> module ActiveJob
<ide> # = Active Job Railtie
<ide> class Railtie < Rails::Railtie # :nodoc:
<ide> config.active_job = ActiveSupport::OrderedOptions.new
<add> config.active_job.custom_serializers = []
<ide>
<ide> initializer "active_job.logger" do
<id... | 2 |
Javascript | Javascript | convert dock to an etch component | 113453a219e692fe1e5f0eb3c1c09703daaa0a89 | <ide><path>spec/dock-spec.js
<ide> const Grim = require('grim')
<ide>
<ide> import {it, fit, ffit, fffit, beforeEach, afterEach} from './async-spec-helpers'
<add>import etch from 'etch'
<add>
<add>const getNextUpdatePromise = () => etch.getScheduler().nextUpdatePromise
<ide>
<ide> describe('Dock', () => {
<ide> des... | 3 |
Text | Text | use segment instead of fragment | c786f4f27ccd7158df97379af900eba23caf1052 | <ide><path>guides/source/routing.md
<ide> TIP: By default, dynamic segments don't accept dots - this is because the dot is
<ide>
<ide> ### Static Segments
<ide>
<del>You can specify static segments when creating a route by not prepending a colon to a fragment:
<add>You can specify static segments when creating a rout... | 1 |
Ruby | Ruby | add missing newline to brew bottle | 8199f1d617b9992cb0e9f87b23ac4bcd5a0774c5 | <ide><path>Library/Contributions/examples/brew-bottle.rb
<ide> safe_system 'tar', 'czf', "#{destination}/#{filename}", "#{formula}/#{version}"
<ide> end
<ide> ohai "Bottled #{filename}"
<del>end
<ide>\ No newline at end of file
<add>end | 1 |
Go | Go | move userland proxies out of daemon's process | b4e2f5ed962f8ef81dbc2cbb1ff2a06bb64f8211 | <ide><path>daemon/networkdriver/bridge/driver_test.go
<ide> package bridge
<ide>
<ide> import (
<del> "fmt"
<ide> "net"
<ide> "strconv"
<ide> "testing"
<ide>
<add> "github.com/docker/docker/daemon/networkdriver/portmapper"
<ide> "github.com/docker/docker/engine"
<ide> )
<ide>
<add>func init() {
<add> // reset th... | 5 |
Javascript | Javascript | fix memory leak in example embed code | 6c663154943e4c0c33c19026a7b500302bda29d4 | <ide><path>docs/components/angular-bootstrap/bootstrap-prettify.js
<ide> directive.ngEmbedApp = ['$templateCache', '$browser', '$rootScope', '$location',
<ide> return {
<ide> terminal: true,
<ide> link: function(scope, element, attrs) {
<del> var modules = [];
<add> var modules = [],
<add> ... | 1 |
Java | Java | behaviorsubject subscription timegap fix 2 | 265090cf3b1433a0ccaa19f5348189ceafa6a66c | <ide><path>rxjava-core/src/main/java/rx/subjects/BehaviorSubject.java
<ide> */
<ide> package rx.subjects;
<ide>
<add>
<ide> import java.util.ArrayList;
<del>import java.util.Collection;
<ide> import java.util.List;
<ide> import java.util.concurrent.atomic.AtomicReference;
<del>
<ide> import rx.Notification;
<ide> imp... | 2 |
Javascript | Javascript | restore original click prop hook | 51fd4593fc43f4c935d3226485f6864b05366621 | <ide><path>test/unit/event.js
<ide> test("propHooks extensions", function() {
<ide>
<ide> delete jQuery.event.propHooks.click;
<ide> $fixture.unbind( "click" ).remove();
<add> jQuery.event.propHooks.click = saved;
<ide> });
<ide>
<ide> (function(){ | 1 |
Python | Python | use drain_events with amqplib/pika | e7a17c61d0e38cf3b70d4c818557df8d345658bb | <ide><path>celery/tests/test_worker.py
<ide> def test_connection(self):
<ide> send_events=False)
<ide>
<ide> l.reset_connection()
<del> self.assertTrue(isinstance(l.amqp_connection, BrokerConnection))
<add> self.assertTrue(isinstance(l.connection, BrokerConnection))
<id... | 2 |
Go | Go | add testcase isvalidstatestring | 675ac37482432e13d1312647762d9db8b9bb175e | <ide><path>container/state_test.go
<ide> func TestStateTimeoutWait(t *testing.T) {
<ide> }
<ide> }
<ide> }
<add>
<add>func TestIsValidStateString(t *testing.T) {
<add> states := []struct {
<add> state string
<add> expected bool
<add> }{
<add> {"paused", true},
<add> {"restarting", true},
<add> {"running", tr... | 1 |
PHP | PHP | call fewer functions when generating routes | aeb609b4385350e2d62d8ea5b0f987ba1cf3cae9 | <ide><path>src/Routing/Route/Route.php
<ide> protected function _writeUrl($params, $pass = [], $query = []) {
<ide> $pass = implode('/', array_map('rawurlencode', $pass));
<ide> $out = $this->template;
<ide>
<del> if (!empty($this->keys)) {
<del> $search = $replace = [];
<del>
<del> foreach ($this->keys as $k... | 1 |
Python | Python | add auth param to request client calls | b86765d9c02388f6bb82dbb5824a005e8fe73dec | <ide><path>rest_framework/tests/test_authentication.py
<ide> def test_post_form_with_request_token_failing_oauth(self):
<ide> def test_post_form_with_urlencoded_parameters(self):
<ide> """Ensure POSTing with x-www-form-urlencoded auth parameters passes"""
<ide> params = self._create_authorization_ur... | 1 |
Python | Python | fix usage of ``range(len())`` to ``enumerate`` | 29af57b6d8827949f553b997bbb860cd560fa0b2 | <ide><path>airflow/models/baseoperator.py
<ide> def resolve_template_files(self) -> None:
<ide> self.log.exception(e)
<ide> elif isinstance(content, list):
<ide> env = self.dag.get_template_env()
<del> for i in range(len(content)):
<del> ... | 7 |
PHP | PHP | throw exception if cspbuilder is not available | 28cb132908c9c7c1ebf63e47705846bb6e27baac | <ide><path>src/Http/Middleware/CspMiddleware.php
<ide> use Psr\Http\Message\ServerRequestInterface;
<ide> use Psr\Http\Server\MiddlewareInterface;
<ide> use Psr\Http\Server\RequestHandlerInterface;
<add>use RuntimeException;
<ide>
<ide> /**
<ide> * Content Security Policy Middleware
<ide> class CspMiddleware implemen... | 1 |
Mixed | Go | add format to docker stack ls | 205ec49de9c4f4abb8023d1ad36fdbc92e7ec294 | <ide><path>cli/command/formatter/stack.go
<add>package formatter
<add>
<add>import (
<add> "strconv"
<add>)
<add>
<add>const (
<add> defaultStackTableFormat = "table {{.Name}}\t{{.Services}}"
<add>
<add> stackServicesHeader = "SERVICES"
<add>)
<add>
<add>// Stack contains deployed stack information.
<add>type Stack str... | 5 |
Ruby | Ruby | reorder unpack strategies again | 278eace2faae151c753bf1fdfabe3175a23e7c35 | <ide><path>Library/Homebrew/unpack_strategy.rb
<ide> module UnpackStrategy
<ide>
<ide> def self.strategies
<ide> @strategies ||= [
<del> Pkg,
<del> Ttf,
<del> Otf,
<del> Air,
<del> Executable,
<del> Diff,
<add> Air, # needs to be before Zip
<ide> Jar, # needs to be before... | 1 |
PHP | PHP | add test for cookie stuff | df041d2f92c3cc324617ee6707c8846e4e634872 | <ide><path>tests/Integration/Cookie/CookieTest.php
<add><?php
<add>
<add>namespace Illuminate\Tests\Integration\Cookie;
<add>
<add>use Mockery;
<add>use Illuminate\Support\Str;
<add>use Illuminate\Http\Response;
<add>use Illuminate\Support\Carbon;
<add>use Orchestra\Testbench\TestCase;
<add>use Illuminate\Support\Facad... | 1 |
Python | Python | fix typo in airflow/utils/dag_processing.py | a155db1d8836d78992280422e6b74b7e6f0426a6 | <ide><path>airflow/utils/dag_processing.py
<ide> def result(self) -> Optional[Tuple[int, int]]:
<ide> """
<ide> A list of simple dags found, and the number of import errors
<ide>
<del> :return: result of running SchedulerJob.process_file() if availlablle. Otherwise, none
<add> :return: re... | 1 |
Text | Text | unify dirname and filename description | 134481dbe96b7558c7a314c6bfe70aad4fe76ce3 | <ide><path>doc/api/globals.md
<ide> added: v0.1.27
<ide>
<ide> * {String}
<ide>
<del>The name of the directory that the currently executing script resides in.
<add>The directory name of the current module. This the same as the
<add>[`path.dirname()`][] of the [`__filename`][].
<add>
<add>`__dirname` isn't actually a ... | 1 |
Ruby | Ruby | fix segmentation fault in actionpack tests | 22e0a22d5f98e162290d9820891d8191e720ad3b | <ide><path>actionpack/test/dispatch/response_test.rb
<ide> def test_response_body_encoding
<ide> original = ActionDispatch::Response.default_charset
<ide> begin
<ide> ActionDispatch::Response.default_charset = 'utf-16'
<del> resp = ActionDispatch::Response.new(200, { "Content-Type" => "text/xml" })
<... | 1 |
Python | Python | relax optimizer tests | 4b5984b8ce8799601ddf8f3fae0344b626c4ba48 | <ide><path>tests/keras/optimizers_test.py
<ide> def _test_optimizer(optimizer, target=0.75):
<ide> model.compile(loss='categorical_crossentropy',
<ide> optimizer=optimizer,
<ide> metrics=['accuracy'])
<del> history = model.fit(x_train, y_train, epochs=1, batch_size=16, verbose... | 1 |
Javascript | Javascript | write more unit tests for the find controller | b1cef896f46319a9670fd0c528c8233e91dd97d8 | <ide><path>test/unit/pdf_find_controller_spec.js
<ide> describe('pdf_find_controller', function() {
<ide> pdfFindController = null;
<ide> });
<ide>
<del> it('performs a basic search', function(done) {
<del> pdfFindController.executeCommand('find', { query: 'Dynamic', });
<add> function testSearch({ paramete... | 1 |
Javascript | Javascript | update benchmark script to new api | 7c1c89fc29ccb1a27fb132e9299b5bb240b51df5 | <ide><path>benchmark/http_simple.js
<ide> http.createServer(function (req, res) {
<ide> }
<ide> );
<ide> res.write(body);
<del>
<del> res.finish();
<add> res.close();
<ide> }).listen(8000);
<ide><path>benchmark/static_http_server.js
<ide> var server = http.createServer(fu... | 2 |
Text | Text | improve contributing.md about pull request | f5b1f157add9974b96def078592505b8b735950b | <ide><path>CONTRIBUTING.md
<ide> The core team will be monitoring for pull requests. When we get one, we'll run s
<ide> 2. **Describe your test plan in your commit.** If you've added code that should be tested, add tests!
<ide> 3. If you've changed APIs, update the documentation.
<ide> 4. If you've updated the docs, ve... | 1 |
Javascript | Javascript | add mustcall() to child-process test | f308b4d9ed234291890adec44750cb2f53b23e0e | <ide><path>test/parallel/test-child-process-stdio-big-write-end.js
<ide> // USE OR OTHER DEALINGS IN THE SOFTWARE.
<ide>
<ide> 'use strict';
<del>require('../common');
<add>const common = require('../common');
<ide> const assert = require('assert');
<ide> let bufsize = 0;
<ide>
<ide> function parent() {
<ide> child... | 1 |
Ruby | Ruby | add message to `set_ownership` | 7f7eb7e6cdac080e85450def86db420480bdc695 | <ide><path>Library/Homebrew/cask/lib/hbc/staged.rb
<ide> def set_permissions(paths, permissions_str)
<ide> def set_ownership(paths, user: current_user, group: "staff")
<ide> full_paths = remove_nonexistent(paths)
<ide> return if full_paths.empty?
<add> ohai "Changing ownership of paths required by ... | 1 |
Java | Java | add params(multivaluemap) to mockmvc | c8aa48faa9a4a3aae642d02850ee0bf6b5d4071c | <ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/request/MockHttpServletRequestBuilder.java
<ide> public MockHttpServletRequestBuilder param(String name, String... values) {
<ide> return this;
<ide> }
<ide>
<add> /**
<add> * Add request parameters to the {@link MockHttpServletRequest} for ... | 2 |
Javascript | Javascript | remove unused variable | 34d8830064d1ffc731eeb80fdabd25b82b69500e | <ide><path>packages/ember-runtime/lib/controllers/array_controller.js
<ide> Ember.ArrayController = Ember.ArrayProxy.extend(Ember.ControllerMixin,
<ide> var container = get(this, 'container'),
<ide> subControllers = get(this, '_subControllers'),
<ide> subController = subControllers[idx],
<del> ... | 1 |
Ruby | Ruby | detect versions with final/full suffix | 8b55f8f9a44a6f7acc0bfda6ee1708566b1f461e | <ide><path>Library/Homebrew/test/version_spec.rb
<ide> .to be_detected_from("https://ftpmirror.gnu.org/libidn/libidn-1.29-win64.zip")
<ide> end
<ide>
<add> specify "breseq version style" do
<add> expect(described_class.create("0.35.1"))
<add> .to be_detected_from(
<add> "https://git... | 2 |
Text | Text | add v3.28.6 to changelog.md | 96143deb03ba5dd0c7a1b893f2128889beed6b0c | <ide><path>CHANGELOG.md
<ide> - [#19695](https://github.com/emberjs/ember.js/pull/19695) [CLEANUP] Remove {{partial}}
<ide> - [#19691](https://github.com/emberjs/ember.js/pull/19691) Add build assertion against `{{outlet named}}`
<ide>
<add>## v3.28.6 (November 4, 2021)
<add>
<add>- [#19683](https://github.com/emberjs... | 1 |
PHP | PHP | fix issues with sqlite multi inserts | c3f7ebd892f1dc4d53da69736701927f1862e465 | <ide><path>lib/Cake/Database/Dialect/SqliteDialectTrait.php
<ide> protected function _insertQueryTranslator($query) {
<ide> if ($fillLength > 0) {
<ide> $val = array_merge($val, array_fill(0, $fillLength, null));
<ide> }
<del> // TODO this doesn't work all columns are inserted as null.
<ide> $val = array... | 1 |
Text | Text | update crypto.createsecretkey accepted types | fb88257b72bb6aba8f7c30cf78917299647697fe | <ide><path>doc/api/crypto.md
<ide> and it will be impossible to extract the private key from the returned object.
<ide> added: v11.6.0
<ide> -->
<ide>
<del>* `key` {Buffer}
<add>* `key` {Buffer | TypedArray | DataView}
<ide> * Returns: {KeyObject}
<ide>
<ide> Creates and returns a new key object containing a secret k... | 1 |
Javascript | Javascript | change colour => color | d2d34183249121d64c00a4bd2a646576789e37bf | <ide><path>editor/js/libs/tern-threejs/threejs.js
<ide> },
<ide> "material": {
<ide> "!type": "+THREE.Material",
<del> "!doc": "An instance of [page:Material], defining the object's appearance. Default is a [page:MeshBasicMaterial] with wireframe mode enabled and randomised colour."
<... | 1 |
PHP | PHP | catch typeerror along with exception | 571401aee9b5d6b9dc3329d44dd0571d9ebbff1e | <ide><path>src/View/SerializedView.php
<ide> use Cake\Http\ServerRequest;
<ide> use Cake\View\Exception\SerializationFailureException;
<ide> use Exception;
<add>use TypeError;
<ide>
<ide> /**
<ide> * Parent class for view classes generating serialized outputs like JsonView and XmlView.
<ide> function ($v) {
<ide> ... | 1 |
Python | Python | add warning message for redundant outputs | bfa38fb747904d20e4fb73aa233c88bff2151916 | <ide><path>keras/engine/topology.py
<ide> def __init__(self, inputs, outputs, name=None):
<ide> self.outputs = [outputs]
<ide>
<ide> # Check for redundancy in inputs.
<del> inputs_set = set(self.inputs)
<del> if len(inputs_set) != len(self.inputs):
<add> if len(set(self.inputs)... | 2 |
Text | Text | add figma, sketch and xd to the list of tools | 374df386fa1bde1046b02d58f7bb8befadce6fe7 | <ide><path>guide/english/visual-design/wireframing/index.md
<ide> title: Wireframing
<ide> <li>
<ide> <a href="http://pencil.evolus.vn/Default.html/" target="blank">Pencil</a>
<ide> </li>
<add> <li>
<add> <a href="https://www.figma.com/features/" target="blank">Figma</a>
<add> </li>
<add> <li>
<add> <a... | 1 |
PHP | PHP | replace more static return types | 45dc7bd26cf388e203b88d07f15093289b6188e1 | <ide><path>src/Illuminate/Database/Eloquent/Collection.php
<ide> public function contains($key)
<ide> * Fetch a nested element of the collection.
<ide> *
<ide> * @param string $key
<del> * @return \Illuminate\Database\Eloquent\Collection
<add> * @return static
<ide> */
<ide> public function fetch($key)
<id... | 3 |
Ruby | Ruby | fix bug with typemap default values | d30c85cebd702aca01f52b60f56613c4e1434244 | <ide><path>activerecord/lib/active_record/type/type_map.rb
<ide> def alias_type(key, target_key)
<ide> end
<ide>
<ide> protected
<del> def perform_fetch(lookup_key)
<add> def perform_fetch(lookup_key, &block)
<ide> matching_pair = @mapping.reverse_each.detect do |key, _|
<ide> ... | 2 |
Mixed | Go | add support for metrics plugins | 0e8e8f0f318656be80e34db9b5e390ffeef3fd0d | <ide><path>daemon/daemon.go
<ide> type Daemon struct {
<ide> defaultIsolation containertypes.Isolation // Default isolation mode on Windows
<ide> clusterProvider cluster.Provider
<ide> cluster Cluster
<add> metricsPluginListener net.Listener
<ide>
<ide> machineMemory uint64... | 8 |
Javascript | Javascript | update landing [ci skip] | 38037d68169e07ffd0510818320da4cefb8dd3cc | <ide><path>website/src/widgets/landing.js
<ide> const Landing = ({ data }) => {
<ide> </LandingGrid>
<ide>
<ide> <LandingBannerGrid>
<add> <LandingBanner
<add> title="Prodigy: Radically efficient machine teaching"
<add> label="From the makers... | 1 |
Text | Text | update russian localization | c61c8c047455c5fe8aadf0d0e5ccf4a9c47420e3 | <ide><path>curriculum/challenges/russian/03-front-end-libraries/bootstrap/add-font-awesome-icons-to-all-of-our-buttons.russian.md
<ide> Font Awesome - это удобная библиотека иконок. Эти
<ide>
<ide> ## Instructions
<ide> <section id='instructions'>
<del>Use Font Awesome to add an <code>info-circle</code> icon to your ... | 1 |
Javascript | Javascript | remove unnecessary bind | d00d81edd7164e54bd0fd0d28bbaba2a19443150 | <ide><path>lib/internal/fs/promises.js
<ide> class FileHandle {
<ide> return writeFile(this, data, options);
<ide> }
<ide>
<del> close() {
<add> close = () => {
<ide> return this[kHandle].close();
<ide> }
<ide> }
<ide> async function lchmod(path, mode) {
<ide> throw new ERR_METHOD_NOT_IMPLEMENTED('lc... | 2 |
Python | Python | remove duplicated tests | fb6d3928c847058301ff2365fae90916e8850640 | <ide><path>numpy/core/tests/test_numeric.py
<ide> def test_promote_types_strings(self, swap, string_dtype):
<ide> # Promote with object:
<ide> assert_equal(promote_types('O', S+'30'), np.dtype('O'))
<ide>
<del> @pytest.mark.parametrize(["dtype1", "dtype2"],
<del> [[np.dtype("V6"), np.dtyp... | 1 |
Mixed | Ruby | drop mavericks support | b58fa4ebb1e6b918d8556cba629cb55b79d423f5 | <ide><path>Library/Homebrew/exceptions.rb
<ide> def initialize(inner)
<ide> set_backtrace inner["b"]
<ide> end
<ide> end
<add>
<add>class MacOSVersionError < RuntimeError
<add> attr_reader :version
<add>
<add> def initialize(version)
<add> @version = version
<add> super "unknown or unsupported macOS versi... | 18 |
Javascript | Javascript | make value of queueconnect a set<chunkgroupinfo> | bfe55b71a2ca32aba475264e072f082a46c3fa49 | <ide><path>lib/buildChunkGraph.js
<ide> const { connectChunkGroupParentAndChild } = require("./GraphHelpers");
<ide> * @property {Set<Module>[]} availableModulesToBeMerged enqueued updates to the minimal set of available modules
<ide> * @property {QueueItem[]} skippedItems queue items that were skipped because module... | 1 |
PHP | PHP | replace last_page method with property | de48e194c7b02407ace412f87e36540e1bd8d3ab | <ide><path>system/paginator.php
<ide> public function __construct($results, $total, $per_page)
<ide> $this->per_page = $per_page;
<ide> $this->results = $results;
<ide> $this->total = $total;
<add>
<add> $this->last_page = ceil($total / $per_page);
<ide> }
<ide>
<ide> /**
<ide> public static function page($to... | 1 |
Javascript | Javascript | fix typo in lib/internal/bootstrap/loaders.js | 4b5db00ea1ed824bc405a227fea5ae66cc429f87 | <ide><path>lib/internal/bootstrap/loaders.js
<ide> // lib/internal/modules/esm/* (ES Modules).
<ide> //
<ide> // This file is compiled and run by node.cc before bootstrap/node.js
<del>// was called, therefore the loaders are bootstraped before we start to
<add>// was called, therefore the loaders are bootstrapped befor... | 1 |
PHP | PHP | reject file paths containing `..` | 6f68049bf507783c5f278eccbd0c807a0ecc45c3 | <ide><path>lib/Cake/Network/CakeResponse.php
<ide> public function file($path, $options = array()) {
<ide> 'download' => null
<ide> );
<ide>
<add> if (strpos($path, '..') !== false) {
<add> throw new NotFoundException(__d(
<add> 'cake_dev',
<add> 'The requested file contains `..` and will not be read.'
<... | 2 |
Ruby | Ruby | add methods for building test file paths | 6e634890e8ffd8336e0826508ec0d67d1e426162 | <ide><path>Library/Homebrew/test/test_mach.rb
<ide> def setup
<ide> @archs = [:i386, :x86_64, :ppc7400, :ppc64].extend(ArchitectureListExtension)
<ide> end
<ide>
<add> def dylib_path(name)
<add> Pathname.new("#{TEST_FOLDER}/mach/#{name}.dylib")
<add> end
<add>
<add> def bundle_path(name)
<add> Pathname.... | 1 |
Python | Python | fix multi query scenario in bigquery example dag | da1e6578e0207b7f2acab794ed3c5bf730719bf8 | <ide><path>airflow/providers/google/cloud/example_dags/example_bigquery_queries.py
<ide> task_id="execute_multi_query",
<ide> configuration={
<ide> "query": {
<del> "query": [
<del> f"SELECT * FROM {DATASET}.{TABLE_2}",
<del> ... | 1 |
Javascript | Javascript | handle index changes when an item is unshifted | 5fbd618c2ff0dbaa4e19d0fd0e55921ce7d89478 | <ide><path>src/ng/directive/ngClass.js
<ide> function classDirective(name, selector) {
<ide> scope.$watch('$index', function($index, old$index) {
<ide> // jshint bitwise: false
<ide> var mod = $index & 1;
<del> if (mod !== old$index & 1) {
<add> if (mod !== (old$i... | 2 |
Text | Text | fix doc for napi_get_typedarray_info | 35cf00842f65077bce64cc25d39b72477afa161e | <ide><path>doc/api/n-api.md
<ide> napi_status napi_get_typedarray_info(napi_env env,
<ide> properties to query.
<ide> - `[out] type`: Scalar datatype of the elements within the `TypedArray`.
<ide> - `[out] length`: The number of elements in the `TypedArray`.
<del>- `[out] data`: The data buffer underlying the `TypedArr... | 1 |
Ruby | Ruby | combine loops in relocate_install_names | 3662a2765de7ca27cd6c98ce50c98435a3e25f77 | <ide><path>Library/Homebrew/keg_fix_install_names.rb
<ide> def relocate_install_names old_prefix, new_prefix, old_cellar, new_cellar, optio
<ide> change_dylib_id(id, file)
<ide> end
<ide>
<del> each_install_name_for(file) do |old_cellar_name|
<del> next unless old_cellar_name.start_wi... | 1 |
Go | Go | remove producergone from logwatcher | 906b979b888cf9111a4a2583640e509d28395670 | <ide><path>daemon/logger/adapter_test.go
<ide> func TestAdapterReadLogs(t *testing.T) {
<ide> t.Fatal("timeout waiting for message channel to close")
<ide>
<ide> }
<del> lw.ProducerGone()
<add> lw.ConsumerGone()
<ide>
<ide> lw = lr.ReadLogs(ReadConfig{Follow: true})
<ide> for _, x := range testMsg {
<ide><path>d... | 9 |
Python | Python | correct an issue on amp module import error | eeb847fba6b9bac58aa0435a38cd850bf191efc8 | <ide><path>glances/amps_list.py
<ide> def load_amps(self):
<ide> item.endswith(".py") and
<ide> item != (header + "amp.py")):
<ide> # Import the amp
<del> amp = __import__(os.path.basename(item)[:-3])
<del> # Add the AMP to the dictio... | 1 |
PHP | PHP | fix style issue | c1820b2039f4bb44322c704f9c208fb10341cd38 | <ide><path>src/Illuminate/Auth/Events/Logout.php
<ide> class Logout
<ide> {
<ide> use SerializesModels;
<del>
<ide> /**
<ide> * The authenticated user.
<ide> * | 1 |
Python | Python | fix non-versioneer uses | 8faae9d5fad6a8342b21deed1dcbecaaa9a32711 | <ide><path>numpy/distutils/misc_util.py
<ide> def get_version(self, version_file=None, version_variable=None):
<ide> try:
<ide> version = version_module.get_versions()['version']
<ide> except AttributeError:
<del> version = None
<add> ... | 1 |
Text | Text | fix spelling and punctuation | eba06309d5a42cfb64297b228b03ae4fa32118e7 | <ide><path>guide/english/developer-ethics/dark-patterns/index.md
<ide> Examples include:
<ide>
<ide> * [**Bait and Switch**](https://darkpatterns.org/types-of-dark-pattern/bait-and-switch) – A user sets out to do one thing, but a different, undesirable thing happens instead.
<ide>
<del>* [**Disguised Ads**](https://d... | 1 |
PHP | PHP | add stringable support for strip_tags() | 9b85771608d71988078fb9ce2b5c44c7e1fdfef6 | <ide><path>src/Illuminate/Support/Stringable.php
<ide> public function start($prefix)
<ide> return new static(Str::start($this->value, $prefix));
<ide> }
<ide>
<add> /**
<add> * Strip HTML and PHP tags from the given string.
<add> *
<add> * @param string $allowedTags
<add> * @return st... | 2 |
Python | Python | use an array type for list view response schemas | b45ff072947d01917132ef6993bf1b7f46d9f2c8 | <ide><path>rest_framework/schemas/openapi.py
<ide> def _get_request_body(self, path, method):
<ide> }
<ide>
<ide> def _get_responses(self, path, method):
<del> # TODO: Handle multiple codes.
<del> content = {}
<add> # TODO: Handle multiple codes and pagination classes.
<add> ite... | 2 |
Python | Python | add a new test for the gogrid lb driver | b8d3d379bb636631c299967bd36a9f4799e58e2a | <ide><path>test/loadbalancer/test_gogrid.py
<ide> import unittest
<ide> from urlparse import urlparse, parse_qsl
<ide>
<add>from libcloud.common.types import LibcloudError
<ide> from libcloud.loadbalancer.base import LoadBalancer, Member, Algorithm
<ide> from libcloud.loadbalancer.drivers.gogrid import GoGridLBDriver
... | 1 |
Text | Text | fix intended parameter name | 1e8af643e3ebb63444e49a213f5480508bb8d8e0 | <ide><path>docs/advanced/AsyncActions.md
<ide> store.dispatch(selectReddit('reactjs'));
<ide>
<ide> store.dispatch(requestPosts('reactjs'));
<ide> fetch(`http://www.reddit.com/r/${reddit}.json`)
<del> .then(req => req.json())
<add> .then(response => response.json())
<ide> .then(json =>
<ide> store.dispatch(rec... | 1 |
Javascript | Javascript | remove legacy www config from rollup build | 529e58ab0a62ed22be9b40bbe44a6ac1b2c89cfe | <ide><path>scripts/rollup/build.js
<ide> async function createBundle(bundle, bundleType) {
<ide> bundle.moduleType,
<ide> pureExternalModules
<ide> ),
<del> // We can't use getters in www.
<del> legacy:
<del> bundleType === FB_WWW_DEV ||
<del> bundleType === FB_WWW_PROD ||
<del> bun... | 1 |
Javascript | Javascript | use absolute path for auth0 callback | 0e0bebed4a9f61bc454b91fa6a4fc4d961630393 | <ide><path>api-server/server/passport-providers.js
<ide> import { auth0 } from '../../config/secrets';
<del>import { homeLocation } from '../../config/env';
<add>import { homeLocation, apiLocation } from '../../config/env';
<ide>
<ide> const { clientID, clientSecret, domain } = auth0;
<ide>
<ide> const successRedirec... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.