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
Ruby
Ruby
remove unused attribute
0f57f75008242d1739326fec38791c01852c9aa7
<ide><path>activestorage/lib/active_storage/attached.rb <ide> module ActiveStorage <ide> # Abstract base class for the concrete ActiveStorage::Attached::One and ActiveStorage::Attached::Many <ide> # classes that both provide proxy access to the blob association for a record. <ide> class Attached <del> attr_rea...
2
Text
Text
add install of virtual kernel extras for aufs
e715ca506f41b22cde21187328fcb416cec5e6a2
<ide><path>docs/installation/linux/ubuntulinux.md <ide> packages from the new repository: <ide> - Ubuntu Trusty 14.04 (LTS) <ide> <ide> For Ubuntu Trusty, Wily, and Xenial, it's recommended to install the <del>`linux-image-extra` kernel package. The `linux-image-extra` package <add>`linux-image-extra-*` kernel package...
1
Go
Go
increase the maxjsondecoderetry in json log reader
a82f9ac81956c6b63772c9c720878d377dd9ee02
<ide><path>daemon/logger/jsonfilelog/jsonfilelog.go <ide> import ( <ide> const ( <ide> // Name is the name of the file that the jsonlogger logs to. <ide> Name = "json-file" <del> maxJSONDecodeRetry = 10 <add> maxJSONDecodeRetry = 20000 <ide> ) <ide> <ide> // JSONFileLogger is Logger implementation for ...
1
Javascript
Javascript
replace entries with keys
a1f827a859654ee4781dd0ef215907cf859d58c8
<ide><path>lib/internal/policy/manifest.js <ide> class DependencyMapperInstance { <ide> this.#patternDependencies = undefined; <ide> } else { <ide> const patterns = []; <del> for (const { 0: key } of ObjectEntries(dependencies)) { <add> const keys = ObjectKeys(dependencies); <add> for (le...
1
Python
Python
add default `conf` parameter to spark jdbc hook
7506c73f1721151e9c50ef8bdb70d2136a16190b
<ide><path>airflow/providers/apache/spark/example_dags/example_spark_dag.py <ide> jdbc_to_spark_job = SparkJDBCOperator( <ide> cmd_type='jdbc_to_spark', <ide> jdbc_table="foo", <del> spark_conf={}, <ide> spark_jars="${SPARK_HOME}/jars/postgresql-42.2.12.jar", <ide> jdbc_driver...
2
PHP
PHP
add finder options to paginator->paginate method
4d5d3e1fb253100270ac2278b8300a6e33f1f773
<ide><path>src/Controller/Component/PaginatorComponent.php <ide> public function paginate($object, array $settings = []) { <ide> unset($options['finder'], $options['maxLimit']); <ide> <ide> if (empty($query)) { <del> $query = $object->find($type); <add> $query = $object->find($type, isset($options['finderOptio...
1
Javascript
Javascript
check noassert option in buf.write*()
084acc819db956cc7fd83c90c55188092d3d5b41
<ide><path>test/parallel/test-buffer-write-noassert.js <add>'use strict'; <add>require('../common'); <add>const assert = require('assert'); <add> <add>// testing buffer write functions <add> <add>function write(funx, args, result, res) { <add> { <add> const buf = Buffer.alloc(9); <add> assert.strictEqual(buf[fun...
1
Go
Go
add the link of "the documentation"
1a67e9572e95507791465e78e503ec21a4a32781
<ide><path>cmd/dockerd/daemon.go <ide> func (cli *DaemonCli) start(opts *daemonOptions) (err error) { <ide> <ide> // return human-friendly error before creating files <ide> if runtime.GOOS == "linux" && os.Geteuid() != 0 { <del> return fmt.Errorf("dockerd needs to be started with root. To see how to run dockerd in ...
1
Python
Python
remove extra space
2068d20bc5f71415e6980ecabc02f8785b2aaca4
<ide><path>libcloud/common/openstack.py <ide> def _populate_hosts_and_request_paths(self): <ide> if self._ex_force_auth_url != None: <ide> aurl = self._ex_force_auth_url <ide> <del> if aurl == None : <add> if aurl == None: <ide> raise LibcloudError('Ope...
1
Mixed
Javascript
add reactor support
9e135accbb045d52eb65de602c81b5090daae1c4
<ide><path>doc/api/wasi.md <ide> Attempt to begin execution of `instance` as a WASI command by invoking its <ide> <ide> If `start()` is called more than once, an exception is thrown. <ide> <add>### `wasi.initialize(instance)` <add><!-- YAML <add>added: <add> - REPLACEME <add>--> <add> <add>* `instance` {WebAssembly.I...
4
Python
Python
replace deprecated functions
705acc35d6661c6b9cb19dfdb247d75f13574843
<ide><path>im2txt/im2txt/ops/image_processing.py <ide> def image_summary(name, image): <ide> image_summary("final_image", image) <ide> <ide> # Rescale to [-1,1] instead of [0, 1] <del> image = tf.sub(image, 0.5) <del> image = tf.mul(image, 2.0) <add> image = tf.subtract(image, 0.5) <add> image = tf.multiply(im...
3
PHP
PHP
return instance from more eloquent methods
99ba29aeeb210f33e24c7dbeedda6cce9ec916dd
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> public function getObservableEvents() <ide> * Set the observable event names. <ide> * <ide> * @param array $observables <del> * @return void <add> * @return $this <ide> */ <ide> public function setObservableEvents(array $obser...
1
Javascript
Javascript
remove duplicate line
21ce27161d1961b48c660b7524b59d154f510e99
<ide><path>flow/react-native-host-hooks.js <ide> declare module 'UIManager' { <ide> declare function removeSubviewsFromContainerWithID() : void; <ide> declare function replaceExistingNonRootView() : void; <ide> declare function setChildren() : void; <del> declare function setChildren() : void; <ide> declare fu...
1
Javascript
Javascript
fix listener leak in stream.pipe()
2a65d2962578db2cc841c6679a1762a17ac8dfb2
<ide><path>lib/stream.js <ide> Stream.prototype.pipe = function(dest, options) { <ide> source.on('end', onend); <ide> } <ide> <del> dest.on('close', function() { <del> source.removeListener('data', ondata); <del> dest.removeListener('drain', ondrain); <del> source.removeListener('end', onend); <del> }...
2
PHP
PHP
apply fixes from styleci
7bd4e6dc547526d072374eb4846e31369987d66f
<ide><path>src/Illuminate/Testing/TestResponse.php <ide> use Illuminate\Testing\Assert as PHPUnit; <ide> use Illuminate\Testing\Constraints\SeeInOrder; <ide> use Illuminate\Testing\Fluent\AssertableJson; <del>use Illuminate\Validation\ValidationException; <ide> use LogicException; <ide> use Symfony\Component\HttpFounda...
1
Text
Text
remove reference to unmaintained plugin/gem
a2df57c991b844a9b963bc452fa517cc53560686
<ide><path>guides/source/security.md <ide> The most effective countermeasure is to _issue a new session identifier_ and dec <ide> reset_session <ide> ``` <ide> <del>If you use the popular RestfulAuthentication plugin for user management, add reset_session to the SessionsController#create action. Note that this removes...
1
PHP
PHP
apply fixes from styleci
7a74817c91be61676deafe3a84a758a71350d9f2
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> use Illuminate\Support\Str; <ide> use Illuminate\Support\Traits\ForwardsCalls; <ide> use JsonSerializable; <del>use LogicException; <ide> <ide> abstract class Model implements Arrayable, ArrayAccess, Jsonable, JsonSerializable, QueueableEntity, UrlRoutable <i...
1
Python
Python
add key control on mac os x
3198e3d7a32979207431625a1001d4eab65b8faf
<ide><path>glances/glances.py <ide> def displayProcess(self, processcount, processlist, sortedby='', log_count=0): <ide> # CPU% <ide> cpu_percent = processlist[processes]['cpu_percent'] <ide> if psutil_get_cpu_percent_tag: <del> self.term_window.addnstr...
1
PHP
PHP
fix failing tests
cfb6ed4cdab1aaac63cfa153f3020dc5b27c5b96
<ide><path>lib/Cake/Test/Case/Model/Datasource/Database/MysqlTest.php <ide> public function testExceptionOnBrokenConnection() { <ide> public function testUpdateStatements() { <ide> $this->loadFixtures('Article', 'User'); <ide> $test = ConnectionManager::getDatasource('test'); <add> $db = $test->config['database']...
1
Ruby
Ruby
handle cases where logger is not a tagged logger
43c6c7787954d959347a1f90d71b11ba0cb7a8c7
<ide><path>lib/action_cable/connection/base.rb <ide> class Base <ide> def initialize(server, env) <ide> @server, @env = server, env <ide> <del> @logger = new_tagged_logger || server.logger <add> @logger = new_tagged_logger <ide> <ide> @websocket = ActionCable::Connection::WebS...
3
Javascript
Javascript
use correct server path since main was changed
de6d394d7365d2651614ac3517d51a91c63e3f1c
<ide><path>packages/next-server/index.js <add>// This file is used for when users run `require('next-server')` <ide> const Server = require('./dist/server/next-server').default <del>module.exports = function (opts) { <del> return new Server(opts) <add>module.exports = function (options) { <add> return new Server(opti...
3
PHP
PHP
fix phpunit getmock warnings in 3.next
618457e8a6c07c7c1247b4bee6f0acd6fc5bd270
<ide><path>tests/TestCase/Console/ShellTest.php <ide> public function testRunCommandInvokeTask() <ide> { <ide> $parser = new ConsoleOptionParser('knife'); <ide> $parser->addSubcommand('slice'); <del> $io = $this->getMock('Cake\Console\ConsoleIo'); <add> $io = $this->getMockBuilder('Cak...
12
Ruby
Ruby
remove cors initializer from rails app
9917c0c255e1c1005b85885a15cc9a28bb8e4275
<ide><path>railties/lib/rails/generators/rails/app/app_generator.rb <ide> def delete_non_api_initializers_if_api_option <ide> end <ide> end <ide> <add> def delete_api_initializers <add> unless options[:api] <add> remove_file 'config/initializers/cors.rb' <add> end <add> e...
2
PHP
PHP
add missing cell option
178f2cfb8715dfeae6535c0845087108b770805f
<ide><path>src/Shell/Task/TestTask.php <ide> public function getOptionParser() { <ide> 'Entity', 'entity', <ide> 'Helper', 'helper', <ide> 'Component', 'component', <del> 'Behavior', 'behavior' <add> 'Behavior', 'behavior', <add> 'Cell', 'cell', <ide> ] <ide> ])->addArgument('name', [ <ide> ...
1
Python
Python
add metavar to cli arguments
7f02e56c9cb8b548624d13e9c2c2b89d753f996b
<ide><path>airflow/cli/cli_parser.py <ide> def positive_int(value): <ide> "Output table format. The specified value is passed to " <ide> "the tabulate module (https://pypi.org/project/tabulate/). " <ide> ), <add> metavar="FORMAT", <ide> choices=tabulate_formats, <ide> default="plain") <id...
1
Python
Python
add tests for ninefold
2475916e0d17e4b03bb93970b88555a229a5f3c0
<ide><path>libcloud/test/storage/test_ninefold.py <add># Licensed to the Apache Software Foundation (ASF) under one or more <add># contributor license agreements. See the NOTICE file distributed with <add># this work for additional information regarding copyright ownership. <add># The ASF licenses this file to You und...
1
Text
Text
fix epic typo
5be91d5f23ef96403134973ad5130293a16bd6d6
<ide><path>docs/api/applyMiddleware.md <ide> import sandwiches from './reducers'; <ide> let createStoreWithMiddleware = applyMiddleware(thunk)(createStore); <ide> <ide> // We can use it exactly like “vanilla” createStore. <del>let store = createStoreWithMiddleware(sandhiches); <add>let store = createStoreWithMiddlewar...
1
Javascript
Javascript
reduce usage of require('util')
51256e5d78d8cbb4c532c9d7226ae5ad08d09020
<ide><path>lib/internal/fs/utils.js <ide> const { <ide> }, <ide> hideStackFrames <ide> } = require('internal/errors'); <del>const { isUint8Array, isArrayBufferView } = require('internal/util/types'); <add>const { <add> isUint8Array, <add> isArrayBufferView, <add> isDate <add>} = require('internal/util/types'); <...
1
Text
Text
add full stop to the release note items
99423defd826b09d9bf37bf942c2682b90ea8b42
<ide><path>docs/topics/release-notes.md <ide> You can determine your currently installed version using `pip freeze`: <ide> <ide> ### 3.0.1 <ide> <del>**Date**: [December 2014][3.0.1-milestone] <add>**Date**: [December 2014][3.0.1][3.0.1-milestone]: <ide> <del>* More helpful error message when the default Serializer ...
1
PHP
PHP
add arrayaccess test for request object
4e0754d3b9d869c0fd23574ee725c67ac834b2dd
<ide><path>tests/Http/HttpRequestTest.php <ide> public function testInputMethod() <ide> $this->assertInstanceOf('Symfony\Component\HttpFoundation\File\UploadedFile', $request['file']); <ide> } <ide> <add> public function testArrayAccess() <add> { <add> $request = Request::create('/', 'GET', ['...
1
Ruby
Ruby
deprecate unused method
3688a2e01a471acacd13b54eddf57e97d24466f8
<ide><path>activerecord/lib/active_record/tasks/database_tasks.rb <ide> def dump_schema(db_config, format = ActiveRecord::Base.schema_format) # :nodoc: <ide> def schema_file(format = ActiveRecord::Base.schema_format) <ide> File.join(db_dir, schema_file_type(format)) <ide> end <add> deprecate :s...
2
PHP
PHP
correct doc block
6002d6913d7bfbd0fa2b69ce79964b36ee985342
<ide><path>lib/Cake/Network/Email/CakeEmail.php <ide> protected function _attachInlineFiles($boundary = null) { <ide> /** <ide> * Render the body of the email. <ide> * <del> * @param string $content Content to render <add> * @param array $content Content to render <ide> * @return array Email body ready to be sent <i...
1
Python
Python
fix mypy errors for sftp provider
756b1207a96ff65f7e0f83864a7ad0386df9fa9d
<ide><path>airflow/providers/sftp/sensors/sftp.py <ide> """This module contains SFTP sensor.""" <ide> from typing import Optional <ide> <del>from paramiko import SFTP_NO_SUCH_FILE <add>from paramiko.sftp import SFTP_NO_SUCH_FILE <ide> <ide> from airflow.providers.sftp.hooks.sftp import SFTPHook <ide> from airflow.sen...
2
Text
Text
improve perf_hooks docs
d58b83d61f011fd3d6d9461dc5493d016d96c3a3
<ide><path>doc/api/perf_hooks.md <ide> added: v8.5.0 <ide> Returns a list of `PerformanceEntry` objects in chronological order <ide> with respect to `performanceEntry.startTime`. <ide> <add>```js <add>const { <add> performance, <add> PerformanceObserver <add>} = require('perf_hooks'); <add> <add>const obs = new Perf...
1
PHP
PHP
remove redundant test logic
c943d94e1b458b298b88b954050db0f50a8a7e26
<ide><path>tests/TestCase/TestSuite/FixtureManagerTest.php <ide> public function testFixturizeCoreConstraint() <ide> ]; <ide> $this->assertSame($expectedConstraint, $schema->getConstraint('tag_id_fk')); <ide> $this->manager->unload($test); <del> <del> $this->manager->load($test); <del> ...
1
Javascript
Javascript
add alpnprotocols option to clientoptions
b4749014385e77268152d25c62f39791aed955a4
<ide><path>test/parallel/test-http2-connect.js <ide> const { connect: tlsConnect } = require('tls'); <ide> }; <ide> <ide> const clientOptions = { <add> ALPNProtocols: ['h2'], <ide> port, <ide> rejectUnauthorized: false <ide> };
1
Javascript
Javascript
enable log_view_lookups for {{outlet}} keyword
89cf0a916c8cd436c5370392d8890130d712a97a
<ide><path>packages/ember-application/tests/system/logging_test.js <ide> QUnit.test("do not log when template and view are missing when flag is not true" <ide> }); <ide> }); <ide> <del>QUnit.skip("log which view is used with a template", function() { <add>QUnit.test("log which view is used with a template", function...
2
PHP
PHP
apply suggestions from code review
09f79790b71d2d0588511480f4cdc3179ac98777
<ide><path>src/Cache/Engine/MemcachedEngine.php <ide> public function init(array $config = []): bool <ide> $this->_setOptions(); <ide> <ide> $serverList = $this->_Memcached->getServerList(); <del> if (count($serverList)) { <add> if ($serverList) { <ide> if ($this->_config['per...
1
PHP
PHP
fix ticket #825. related with session set to cache
66de46cd5b8bc9d144b4389211585c2aa56fc512
<ide><path>cake/libs/cache.php <ide> function settings($name = null) { <ide> } <ide> return array(); <ide> } <add> <add> function __destruct() { <add> if (Configure::read('Session.save') == 'cache' && function_exists('session_write_close')) { <add> session_write_close(); <add> } <add> } <ide> } <ide...
1
Javascript
Javascript
use const to define constants
804e7aa9ab0b34fa88709ef0980b960abca5e059
<ide><path>lib/_debug_agent.js <ide> 'use strict'; <ide> <del>var assert = require('assert'); <del>var net = require('net'); <del>var util = require('util'); <del>var Buffer = require('buffer').Buffer; <del> <del>var Transform = require('stream').Transform; <add>const assert = require('assert'); <add>const net = requi...
48
Python
Python
improve error messages in data validation checks
b2f0dd4cb2eba673c25742c87d78b895af1a9c53
<ide><path>keras/engine/training.py <ide> def _standardize_input_data(data, names, shapes=None, <ide> # Raises <ide> ValueError: in case of improperly formatted user-provided data. <ide> """ <add> if not names: <add> return [] <ide> if data is None: <ide> return [None for _ in rang...
1
Javascript
Javascript
remove donate page tests
7a4e84d163a5ebdff1a69c1fc46538c999ea298a
<ide><path>client/src/pages/donate.test.js <del>/* global jest, expect */ <del>import React from 'react'; <del>import 'jest-dom/extend-expect'; <del>import ShallowRenderer from 'react-test-renderer/shallow'; <del>import { apiLocation } from '../../config/env.json'; <del> <del>import { DonatePage } from './donate'; <del...
1
Javascript
Javascript
remove `name` from `stringify()`
8d3bc88bbe3c0690f433a97c1df33fca099f18be
<ide><path>lib/querystring.js <ide> var stringifyPrimitive = function(v) { <ide> }; <ide> <ide> <del>QueryString.stringify = QueryString.encode = function(obj, sep, eq, name) { <add>QueryString.stringify = QueryString.encode = function(obj, sep, eq) { <ide> sep = sep || '&'; <ide> eq = eq || '='; <ide> if (util...
2
Javascript
Javascript
use template literals in test-writewrap
25f27b787e804585b59d7d30df37fed63412bbb8
<ide><path>test/async-hooks/test-writewrap.js <ide> hooks.enable(); <ide> // <ide> const server = tls <ide> .createServer({ <del> cert: fs.readFileSync(common.fixturesDir + '/test_cert.pem'), <del> key: fs.readFileSync(common.fixturesDir + '/test_key.pem') <add> cert: fs.readFileSync(`${common.fixturesDir}/t...
1
Ruby
Ruby
convert inject to map + join
1ef2b47fb12a94f960b34c4bb1e6ad1f9c900e18
<ide><path>actionpack/lib/action_view/helpers/form_options_helper.rb <ide> def options_from_collection_for_select(collection, value_method, text_method, se <ide> # <b>Note:</b> Only the <tt><optgroup></tt> and <tt><option></tt> tags are returned, so you still have to <ide> # wrap the output in an appropriat...
1
PHP
PHP
add comment for content-type removal
2ecd01521fa95f2d79e9a483d6b84bc26145ddbc
<ide><path>src/Http/Response.php <ide> protected function _setStatus(int $code, string $reasonPhrase = ''): void <ide> } <ide> $this->_reasonPhrase = $reasonPhrase; <ide> <add> // These status codes don't have bodies and can't have content-types. <ide> if (in_array($code, [304, 204], tru...
1
Text
Text
remove two more react.min.js references
76a0a9cba72b61c1c9df641a4f653619a174d68d
<ide><path>docs/docs/02-displaying-data.md <ide> Let's look at a really simple example. Create a `hello-react.html` file with the <ide> <html> <ide> <head> <ide> <title>Hello React</title> <del> <script src="http://fb.me/react-{{site.react_version}}.min.js"></script> <add> <script src="http://fb.me/react-{{...
2
Ruby
Ruby
let version.parse instantiate subclasses
35793f0e0cf855a687176e44ad8e564605de925f
<ide><path>Library/Homebrew/version.rb <ide> def tokenize <ide> <ide> def self.parse spec <ide> version = _parse(spec) <del> Version.new(version, true) unless version.nil? <add> new(version, true) unless version.nil? <ide> end <ide> <ide> def self._parse spec
1
Text
Text
add v3.23.0-beta.1 to changelog
c79a57ae3732d461aba234b2bd78d9fb4e90f862
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.23.0-beta.1 (October 5, 2020) <add> <add>- [#19160](https://github.com/emberjs/ember.js/pull/19160) / [#19182](https://github.com/emberjs/ember.js/pull/19182) [FEATURE] Implements the helper manager feature specified in the [Helper Managers RFC](https:/...
1
Ruby
Ruby
remove test ordering bug
ab3503b496b2f489391c6cc76240d8516182a2c1
<ide><path>activesupport/test/core_ext/class/delegating_attributes_test.rb <ide> class Child < Parent <ide> <ide> class Mokopuna < Child <ide> end <add> <add> class PercysMom <add> superclass_delegating_accessor :superpower <add> end <add> <add> class Percy < PercysMom <add> end <ide> end <ide> <ide> class...
1
PHP
PHP
remove unneeded exception classes
7e861c136815ebe82bf8fb6da96e1eb3453b1b33
<ide><path>src/I18n/Exception/CannotFormatException.php <del><?php <del>declare(strict_types=1); <del> <del>/** <del> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) <del> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) <del> * <del> * Licensed under The MIT License <del> *...
4
Python
Python
fix syntax error in azure driver
a42cd63b2e747c1d8ab6cf63b81b222f8c61dd90
<ide><path>libcloud/compute/drivers/azure.py <ide> def reboot_node(self, node=None, ex_cloud_service_name=None, <ide> return True <ide> else: <ide> return False <del> except Exception, e: <add> except Exception: <ide> return False <ide> <ide> de...
1
Javascript
Javascript
update historymanager spec to mock the state store
4f86d60f7bfce22804a4e76a6eafe28f2cbbed1b
<ide><path>spec/history-manager-spec.js <del>/** @babel */ <add>const {it, fit, ffit, fffit, beforeEach, afterEach} = require('./async-spec-helpers') <add>const {Emitter, Disposable, CompositeDisposable} = require('event-kit') <ide> <del>import {it, fit, ffit, fffit, beforeEach, afterEach} from './async-spec-helpers' ...
1
Ruby
Ruby
fix rubocop warnings
d1191c8bb0a60baf14f78cf7c5e903aa363ce53e
<ide><path>Library/Homebrew/os/mac/architecture_list.rb <ide> def universal? <ide> end <ide> <ide> def ppc? <del> (Hardware::CPU::PPC_32BIT_ARCHS+Hardware::CPU::PPC_64BIT_ARCHS).any? { |a| self.include? a } <add> (Hardware::CPU::PPC_32BIT_ARCHS+Hardware::CPU::PPC_64BIT_ARCHS).any? { |a| include? a } <ide> ...
1
Text
Text
update html tags to fix misalignment
fcddfc90b2b93b624e04c5b720ebdb5b5b9d4211
<ide><path>client/src/pages/learn/apis-and-microservices/basic-node-and-express/index.md <ide> Express, while not included with Node.js, is another module often used with it. <ide> <ide> Working on these challenges will involve you writing your code on Glitch on our starter project. After completing each challenge you...
1
Javascript
Javascript
name anonymous functions
bbed075325a45569a9038a087c7a40f81582000a
<ide><path>lib/child_process.js <ide> exports._forkChild = function(fd) { <ide> p.open(fd); <ide> p.unref(); <ide> const control = setupChannel(process, p); <del> process.on('newListener', function(name) { <add> process.on('newListener', function onNewListener(name) { <ide> if (name === 'message' || name ==...
1
PHP
PHP
create authorize middleware
648fa7e35b1163e255a6f1a8939d79900761087c
<ide><path>src/Illuminate/Auth/Access/Middleware/Authorize.php <add><?php <add> <add>namespace Illuminate\Auth\Access\Middleware; <add> <add>use Closure; <add>use Illuminate\Contracts\Auth\Access\Gate; <add> <add>class Authorize <add>{ <add> /** <add> * The gate instance. <add> * <add> * @var \Illuminate...
1
Ruby
Ruby
use block variable instead of global
b28b192af194ca63fad6e3cde3b56b78f9132cac
<ide><path>activesupport/lib/active_support/core_ext/uri.rb <ide> def unescape(str, escaped = /%[a-fA-F\d]{2}/) <ide> # YK: My initial experiments say yes, but let's be sure please <ide> enc = str.encoding <ide> enc = Encoding::UTF_8 if enc == Encoding::US_ASCII <del> str.gsub(escaped) { [$&[1, 2...
1
Java
Java
add a way to dismiss popupmenu elements
353c070be9e9a5528d2098db4df3f0dc02d758a9
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java <ide> public class NativeViewHierarchyManager { <ide> private final LayoutAnimationController mLayoutAnimator = new LayoutAnimationController(); <ide> <ide> private boolean mLayoutAnimationEnabled; <add> private Pop...
5
Python
Python
add test for ticket #449
19ab75e0741b1c4bda24f753779b8862bca6aaeb
<ide><path>numpy/core/tests/test_regression.py <ide> def check_noncommutative_reduce_accumulate(self, level=rlevel): <ide> todivide = N.array([2.0, 0.5, 0.25]) <ide> assert_equal(N.subtract.reduce(tosubtract), -10) <ide> assert_equal(N.divide.reduce(todivide), 16.0) <del> assert_array_equ...
1
Javascript
Javascript
use reactfibererrordialog fork for fabric renderer
8c747d01cb395ce06d93c2db6bb3f7b95b57d09d
<ide><path>scripts/rollup/forks.js <ide> const forks = Object.freeze({ <ide> case RN_FB_PROD: <ide> switch (entry) { <ide> case 'react-native-renderer': <add> case 'react-native-renderer/fabric': <ide> // Use the RN fork which plays well with redbox. <ide> return...
1
Python
Python
remove trailing dot
a468d264285122ed589fd763f9c170e000649bdf
<ide><path>docs/conf.py <ide> # General information about the project. <ide> now = datetime.datetime.utcnow() <ide> project = u'Apache Libcloud' <del>copyright = u'2013 - %s, The Apache Software Foundation. Apache Libcloud, Libcloud, Apache, the Apache feather, and the Apache Libcloud project logo are trademarks of the...
1
Text
Text
move changelog entry to the top [ci skip]
939ff861396857d6a476b5a2e8c53a69d8305688
<ide><path>actionpack/CHANGELOG.md <ide> ## Rails 4.0.0 (unreleased) ## <ide> <add>* Extract support for email address obfuscation via `:encode`, `:replace_at`, and `replace_dot` <add> options from the `mail_to` helper into the `actionview-encoded_mail_to` gem. <add> <add> *Nick Reed + DHH* <add> <ide> * Han...
1
Text
Text
add new notebooks
f744b81572e533af5a8469c2fba661c5972f2b66
<ide><path>notebooks/README.md <ide> Pull Request so it can be included under the Community notebooks. <ide> |[Fine-tune Roberta for sentiment analysis](https://github.com/DhavalTaunk08/NLP_scripts/blob/master/sentiment_analysis_using_roberta.ipynb) | How to fine-tune an Roberta model for sentiment analysis | [Dhaval T...
1
PHP
PHP
use secure default for session cookie
7d37bfd75eac2ae175e619bbaee7c559ef829f67
<ide><path>src/Http/Session.php <ide> protected static function _defaultConfig(string $name) <ide> ]; <ide> <ide> if (isset($defaults[$name])) { <add> if ( <add> PHP_VERSION_ID >= 70300 <add> && ($name !== 'php' || empty(ini_get('session.cookie_samesite'))) <add...
1
Ruby
Ruby
add deprecatedoption class
da0a65356d662575c0005b70371050b8015227b2
<ide><path>Library/Homebrew/options.rb <ide> def inspect <ide> end <ide> end <ide> <add>class DeprecatedOption <add> attr_reader :old, :current <add> <add> def initialize(old, current) <add> @old = old <add> @current = current <add> end <add> <add> def old_flag <add> "--#{old}" <add> end <add> <add> d...
2
Ruby
Ruby
add spec for svn directory name containing `@`
d14f5dae7eaedc48ca1048c169f54a7cbce5b021
<ide><path>Library/Homebrew/test/unpack_strategy/subversion_spec.rb <ide> require_relative "shared_examples" <ide> <ide> describe UnpackStrategy::Subversion do <del> let(:repo) { <del> mktmpdir.tap do |repo| <del> system "svnadmin", "create", repo <del> end <del> } <del> let(:working_copy) { <del> mkt...
1
Java
Java
add param map to freemarker url macro
32ebf18429a179e6bf416db42ae2d474802369ea
<ide><path>org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/support/RequestContext.java <ide> import org.springframework.web.util.WebUtils; <ide> <ide> /** <del> * Context holder for request-specific state, like current web application <del> * context, current locale, current theme, and po...
2
Javascript
Javascript
fix deprecation code
da40050b59046b615ae50c6dd8c71c315d8578de
<ide><path>lib/repl.js <ide> REPLServer.prototype.setPrompt = function setPrompt(prompt) { <ide> REPLServer.prototype.turnOffEditorMode = util.deprecate( <ide> function() { _turnOffEditorMode(this); }, <ide> 'REPLServer.turnOffEditorMode() is deprecated', <del> 'DEP00XX'); <add> 'DEP0078'); <ide> <ide> // A stre...
1
Ruby
Ruby
delete only unnecessary reporter
d82bf140030a62d216e68a81e63ea5d97c45125b
<ide><path>railties/lib/rails/test_unit/minitest_plugin.rb <ide> def self.plugin_rails_init(options) <ide> Minitest.backtrace_filter = ::Rails.backtrace_cleaner if ::Rails.respond_to?(:backtrace_cleaner) <ide> end <ide> <del> self.reporter.reporters.clear # Replace progress reporter for colors. <add> #...
1
PHP
PHP
add missing curly brackets
ae4ff8e705ba9f3f6e6c2dc9e758ceb03446d1b9
<ide><path>src/Illuminate/Foundation/Application.php <ide> public function registerConfiguredProviders() <ide> public function register($provider, $options = array(), $force = false) <ide> { <ide> if ($registered = $this->getProvider($provider) && ! $force) <del> return $register...
2
PHP
PHP
add env variable
e1b8847a92bdd85163990ee2e3284262da09b5fd
<ide><path>config/logging.php <ide> 'stderr' => [ <ide> 'driver' => 'monolog', <ide> 'handler' => StreamHandler::class, <add> 'formatter' => env('LOG_STDERR_FORMATTER'), <ide> 'with' => [ <ide> 'stream' => 'php://stderr', <ide> ],
1
Go
Go
fix remote build target as dockerfile
a74cc833450dfc48cc95b2b109cbcb24feff4929
<ide><path>builder/remotecontext/archive.go <ide> func FromArchive(tarStream io.Reader) (builder.Source, error) { <ide> } <ide> <ide> tsc.sums = sum.GetSums() <del> <ide> return tsc, nil <ide> } <ide> <ide><path>builder/remotecontext/detect.go <ide> func newGitRemote(gitURL string, dockerfilePath string) (builder....
4
Go
Go
fix usageinusermode value on windows
ec16053ccfe2f5bab23730b8611dd9c2e5edf9b4
<ide><path>daemon/daemon_windows.go <ide> func (daemon *Daemon) stats(c *container.Container) (*types.StatsJSON, error) { <ide> CPUUsage: types.CPUUsage{ <ide> TotalUsage: hcss.Processor.TotalRuntime100ns, <ide> UsageInKernelmode: hcss.Processor.RuntimeKernel100ns, <del> UsageInUsermode: hcss.Pro...
1
Javascript
Javascript
fix bindattr with keywords - fixed #798
27eca01d12ee22de0997be117158699678b40ca9
<ide><path>packages/ember-handlebars/lib/helpers/binding.js <ide> require('ember-handlebars/ext'); <ide> require('ember-handlebars/views/handlebars_bound_view'); <ide> require('ember-handlebars/views/metamorph_view'); <ide> <del>var get = Ember.get, getPath = Ember.Handlebars.getPath, set = Ember.set, fmt = Ember.Stri...
2
Java
Java
add generation context interface
1816c77c51132b6fff6bd2f275c993bc7e1250c6
<ide><path>spring-core/src/main/java/org/springframework/aot/generate/DefaultGenerationContext.java <add>/* <add> * Copyright 2002-2022 the original author or authors. <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file except in compliance with the License....
3
Go
Go
add vxfs magic number, fixes
e1c5e9b5610e46bf9526dafcbfba3332fe1983e0
<ide><path>daemon/graphdriver/driver_linux.go <ide> const ( <ide> FsMagicSmbFs = FsMagic(0x0000517B) <ide> FsMagicSquashFs = FsMagic(0x73717368) <ide> FsMagicTmpFs = FsMagic(0x01021994) <add> FsMagicVxFS = FsMagic(0xa501fcf5) <ide> FsMagicXfs = FsMagic(0x58465342) <ide> FsMagicZfs = FsMagic(0x2...
1
Text
Text
fix small typos
a612a5ba3fddb6f1634ced0f2bafe3341ea50466
<ide><path>website/docs/usage/layers-architectures.md <ide> that we want to classify as being related or not. As these candidate pairs are <ide> typically formed within one document, this function takes a [`Doc`](/api/doc) as <ide> input and outputs a `List` of `Span` tuples. For instance, the following <ide> implement...
2
Go
Go
add support for extra_hosts in composefile v3
f32869d956eb175f88fd0b16992d2377d8eae79c
<ide><path>cli/command/stack/deploy.go <ide> func convertService( <ide> Command: service.Entrypoint, <ide> Args: service.Command, <ide> Hostname: service.Hostname, <add> Hosts: convertExtraHosts(service.ExtraHosts), <ide> Env: convertEnvironment(service...
1
Ruby
Ruby
fix rdoc list markup in `databasetasks`. [ci skip]
31af8c90b60dc475fd80d2919bfb874b4acc4507
<ide><path>activerecord/lib/active_record/tasks/database_tasks.rb <ide> class DatabaseNotSupported < StandardError; end # :nodoc: <ide> # <ide> # The possible config values are: <ide> # <del> # * +env+: current environment (like Rails.env). <del> # * +database_configuration+: configuration of your...
1
Ruby
Ruby
update expected versions for mojave
1cf2ea79cf1e0f32f6db5cc56614357db5ecfbbe
<ide><path>Library/Homebrew/os/mac/xcode.rb <ide> def latest_version <ide> # on the older supported platform for that Xcode release, i.e there's no <ide> # CLT package for 10.11 that contains the Clang version from Xcode 8. <ide> case MacOS.version <del> when "10.14" then "1000.10.38" <ad...
1
Javascript
Javascript
remove require() for backburner instance
872eb97fad1bd7f8f34001182cc9b37d06f82858
<ide><path>packages/ember-metal/lib/tags.js <ide> import { CONSTANT_TAG, DirtyableTag } from '@glimmer/reference'; <ide> import { meta as metaFor } from './meta'; <del>import require from 'require'; <add>import run from './run_loop'; <ide> <ide> let hasViews = () => false; <ide> <ide> export function markObjectAsDirt...
1
Ruby
Ruby
set default_formula to gnupg (2.1.x)
ca303f6195bbe0a8cc47e87a6fa530a35d3b6b5e
<ide><path>Library/Homebrew/requirements/gpg2_requirement.rb <ide> <ide> class GPG2Requirement < Requirement <ide> fatal true <del> default_formula "gnupg2" <add> default_formula "gnupg" <ide> <ide> # MacGPG2/GPGTools installs GnuPG 2.0.x as a vanilla `gpg` symlink <ide> # pointing to `gpg2`, as do we. Ensure...
1
Ruby
Ruby
simplify package uninstallation
1a4874dc6253f2eb2d077fbfc40ae88457a4ba40
<ide><path>Library/Homebrew/cask/pkg.rb <ide> def uninstall <ide> odebug "Deleting pkg files" <ide> @command.run!( <ide> "/usr/bin/xargs", <del> args: [ <del> "-0", "--", "/bin/rm", "--" <del> ], <add> args: ["-0", "--", "/bin/rm", "--"], <ide> ...
2
Text
Text
clarify changes in readableflowing
3ebe7535b456771078368ba72345f8d2e16ce695
<ide><path>doc/api/stream.md <ide> pass.unpipe(writable); <ide> // readableFlowing is now false. <ide> <ide> pass.on('data', (chunk) => { console.log(chunk.toString()); }); <add>// readableFlowing is still false. <ide> pass.write('ok'); // Will not emit 'data'. <ide> pass.resume(); // Must be called to make strea...
1
Javascript
Javascript
fix typo in breakpoint config
c082972b9393693096a2dc857ce09039ef154903
<ide><path>examples/with-stitches/stitches.config.js <ide> export const { css, styled, global, getCssString } = createCss({ <ide> }), <ide> }, <ide> media: { <del> bp1: '@media (min-width: 520px)', <del> bp2: '@media (min-width: 900px)', <add> bp1: '(min-width: 520px)', <add> bp2: '(min-width: 900px...
1
Python
Python
fix spanish noun_chunks (resolves )
686225eaddd56fac86cb18a3e172d84371ea8be1
<ide><path>spacy/lang/es/syntax_iterators.py <ide> <ide> def noun_chunks(obj): <ide> doc = obj.doc <del> np_label = doc.vocab.strings['NP'] <del> left_labels = ['det', 'fixed', 'neg'] #['nunmod', 'det', 'appos', 'fixed'] <add> np_label = doc.vocab.strings.add('NP') <add> left_labels = ['det', 'fixed', ...
1
PHP
PHP
add docblock and comment
8c36b31e36f9073edaa1672e892d81e819528fd1
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> protected function performInsert(Builder $query, array $options = []) <ide> <ide> $this->wasRecentlyCreated = true; <ide> <add> // When inserting newly created models, they might have default values for some <add> // attributes. So it's...
1
Javascript
Javascript
allow enfile in test-worker-init-failure
97d9b9c90eb5ba9943d451e85e115ddf95f9f1d4
<ide><path>test/parallel/test-worker-init-failure.js <ide> if (process.argv[2] === 'child') { <ide> }); <ide> <ide> // We want to test that if there is an error in a constrained running <del> // environment, it will be one of `EMFILE` or `ERR_WORKER_INIT_FAILED`. <add> // environment, it will be one of `...
1
Text
Text
refine spaces in example from vm.md
a235e670a820107210be27e0cd266164763fb014
<ide><path>doc/api/vm.md <ide> to the `http` module passed to it. For instance: <ide> 'use strict'; <ide> const vm = require('vm'); <ide> <del>const code = <del>`(function(require) { <add>const code = ` <add>(function(require) { <add> const http = require('http'); <ide> <del> const http = require('http'); <add> h...
1
Javascript
Javascript
fix typo in messagechannel test
74de55533de68e8a70663c9c38d175834994de31
<ide><path>test/parallel/test-worker-message-port-infinite-message-loop.js <ide> const { MessageChannel } = require('worker_threads'); <ide> <ide> // Make sure that an infinite asynchronous .on('message')/postMessage loop <ide> // does not lead to a stack overflow and does not starve the event loop. <del>// We schedul...
1
PHP
PHP
add assert to clarify what happened
5dfed195412e81754bbd4d36359d9851d031c29a
<ide><path>tests/TestCase/ORM/MarshallerTest.php <ide> public function testMergeManyWithAppend() { <ide> $this->assertNotSame($entities[0], $result[0]); <ide> $this->assertSame($entities[1], $result[0]); <ide> $this->assertEquals('Changed 2', $result[0]->comment); <add> <add> $this->assertEquals('Comment 1', $re...
1
Mixed
Javascript
enable autoskip for time scale to match others
a33086bfc13d08f6421ea15ef91b56331d2f2551
<ide><path>docs/docs/getting-started/v3-migration.md <ide> options: { <ide> } <ide> ``` <ide> <del>Also, the time scale option `distribution: 'series'` was removed and a new scale type `timeseries` was introduced in its place. <add>* The time scale option `distribution: 'series'` was removed and a new scale type `time...
3
Ruby
Ruby
add example of params to button_to docs [ci skip]
4bfc35a4f9ce8bd2df00b92ba730787977947d78
<ide><path>actionview/lib/action_view/helpers/url_helper.rb <ide> def link_to(name = nil, options = nil, html_options = nil, &block) <ide> # <%= button_to "New", action: "new" %> <ide> # # => "<form method="post" action="/controller/new" class="button_to"> <ide> # # <button type="submit">Ne...
1
PHP
PHP
update doc block
328f505d6cac8bffdb6dc103d60af0b7ce54066b
<ide><path>src/Illuminate/Support/Testing/Fakes/MailFake.php <ide> public function assertSent($mailable, $callback = null) <ide> } <ide> <ide> /** <del> * Determine if a mailable was sent based on a truth-test callback. <add> * Determine if a mailable was not sent based on a truth-test callback. <ide> ...
1
PHP
PHP
add withstringbody method
738e44e6fdac3fe5ff0f7f1117b40eda47787713
<ide><path>src/Http/Response.php <ide> public function withFile($path, array $options = []) <ide> return $new; <ide> } <ide> <add> /** <add> * Convenience method to set a string into the response body <add> * <add> * @param string $string The string to be sent <add> * @return static <add...
2
PHP
PHP
tweak the csrf token a little more
aa55f3441fbc1ec78cf96f2c76ab83e8d6d58f82
<ide><path>laravel/session.php <ide> public static function start(Driver $driver) <ide> { <ide> static::$exists = false; <ide> <add> static::$session = array('id' => Str::random(40), 'data' => array()); <add> } <add> <add> if ( ! static::has('csrf_token')) <add> { <ide> // A CSRF token is stored in every ...
1
Python
Python
fix the timeout error on travis
8b59e31d2b1d854a1eae585db7bd1582ef95c978
<ide><path>tests/keras/utils/data_utils_test.py <ide> from keras import backend as K <ide> <ide> pytestmark = pytest.mark.skipif( <del> K.backend() == 'tensorflow' and 'TRAVIS_PYTHON_VERSION' in os.environ, <add> K.backend() in {'tensorflow', 'cntk'} and 'TRAVIS_PYTHON_VERSION' in os.environ, <ide> reason='T...
2
Python
Python
use httplib constants
35620f7b8e7a5c8659427f6c7b1ced929a6ef3dc
<ide><path>libcloud/base.py <ide> class Response(object): <ide> <ide> tree = None <ide> body = None <del> status_code = 200 <add> status_code = httplib.OK <ide> headers = {} <ide> error = None <ide>
1
PHP
PHP
remove config entry
641fcfb60aa47266c5b4767830dc45bad00c561c
<ide><path>config/view.php <ide> realpath(storage_path('framework/views')) <ide> ), <ide> <del> /* <del> |-------------------------------------------------------------------------- <del> | Blade View Modification Checking <del> |---------------------------------------------------------------...
1