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 | avoid nil in url specs | 248891fde17ec66751b460dfc2137ba9fb819395 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> class AbstractDownloadStrategy
<ide> def initialize name, package
<ide> @url = package.url
<del> @specs = package.specs
<del>
<del> case @specs
<del> when Hash
<del> @spec = @specs.keys.first # only use first spec
<del> @ref = @specs.values... | 4 |
Javascript | Javascript | remove blank line from qunit test file | af1a6f5289a4ec08fa40e3c8357789fe904f4b37 | <ide><path>blueprints/component-test/qunit-files/tests/__testType__/__path__/__test__.js
<ide> moduleForComponent('<%= componentPathName %>', '<%= friendlyTestDescription %>',
<ide> });
<ide>
<ide> test('it renders', function(assert) {
<del><% if (testType === 'integration' ) { %>
<del> // Set any properties with thi... | 1 |
Javascript | Javascript | add test case for es2015 modules | d0bbf967fb51c031e16c5dfe040afce9a4113b5b | <ide><path>test/configCases/plugins/provide-plugin/harmony.js
<add>export default "ECMAScript 2015";
<add>export const alias = "ECMAScript Harmony";
<add>export const year = 2015;
<ide><path>test/configCases/plugins/provide-plugin/index.js
<ide> it("should provide a module for a property request", function() {
<ide> v... | 3 |
Ruby | Ruby | capture stdout during `popen_write` | 246db8a134f162b764c36cd0050c8303a2197615 | <ide><path>Library/Homebrew/utils/popen.rb
<ide> def self.safe_popen_read(*args, **options, &block)
<ide> raise ErrorDuringExecution.new(args, status: $CHILD_STATUS, output: [[:stdout, output]])
<ide> end
<ide>
<del> def self.popen_write(*args, **options, &block)
<del> popen(args, "wb", options, &block)
<add... | 1 |
PHP | PHP | remove deprecated code from email class | c36f088e7697fa25e67338f6795f42b7de262e03 | <ide><path>src/Mailer/Email.php
<ide> protected function _constructTransport($name)
<ide> }
<ide>
<ide> $className = App::className($config['className'], 'Mailer/Transport', 'Transport');
<del> if (!$className) {
<del> $className = App::className($config['className'], 'Network/Email',... | 1 |
Javascript | Javascript | use double quotes | 5f5dbd5c9506bfaa41b7897dca611fed895d167a | <ide><path>lib/EnvironmentPlugin.js
<ide> class EnvironmentPlugin {
<ide> if(value === undefined) {
<ide> compiler.plugin("this-compilation", function(compilation) {
<ide> const error = new Error(
<del> 'EnvironmentPlugin - ' + key + ' environment variable is undefined. \n\n' +
<del> 'You can pass... | 1 |
Javascript | Javascript | name anonymous functions for debugging purposes | 335e86359dbb37cc309abeef2409490636628400 | <ide><path>pdf.js
<ide> var PDFFunction = (function pDFFunction() {
<ide> return out;
<ide> };
<ide> },
<del> constructStiched: function(fn, dict, xref) {
<add> constructStiched: function pDFFunctionConstructStiched(fn, dict, xref) {
<ide> var domain = dict.get('Domain');
<ide> var r... | 1 |
Text | Text | remove outdated arm information from release guide | 7fa032b96bcb48f7d5514c9b24d39fc81febe27b | <ide><path>doc/guides/releases.md
<ide> minutes which will prevent Jenkins from clearing the workspace to start a new
<ide> one. This isn't a big deal, it's just a hassle because it'll result in another
<ide> failed build if you start again!
<ide>
<del>ARMv7 takes the longest to compile. Unfortunately ccache isn't as ... | 1 |
Ruby | Ruby | remove 1.8 backport | 62456a35f15bb3a9c8883fac2c510480f3f276b7 | <ide><path>activerecord/lib/active_record/base.rb
<ide> def initialize_dup(other)
<ide> super
<ide> end
<ide>
<del> # Backport dup from 1.9 so that initialize_dup() gets called
<del> unless Object.respond_to?(:initialize_dup)
<del> def dup # :nodoc:
<del> copy = super
<del> ... | 1 |
Text | Text | add non-breaking space with example | 1be6528d4b9360331cae0a17c940d791942d9aa0 | <ide><path>guide/english/html/tutorials/how-to-insert-spaces-or-tabs-in-text-using-html-and-css/index.md
<ide> Span Tags ``<span>`` are self closing tags meaning they do not need a ``/>``.
<ide>
<ide> An example of how a ``<span>`` tag inserts a space between text can be seen below.
<ide>
<del> ``<p>Hello may name... | 1 |
Ruby | Ruby | fix bug where custom deprecators are not used | 6c98fbd9c3cc28ccbfc1b46a9ce3d58fdb19f3c8 | <ide><path>activesupport/lib/active_support/deprecation/method_wrappers.rb
<ide> module MethodWrapper
<ide> # module Fred
<ide> # extend self
<ide> #
<del> # def foo; end
<del> # def bar; end
<del> # def baz; end
<add> # def aaa; end
<add> # def bbb; ... | 4 |
Ruby | Ruby | add missing dependency | 944b4d57960569d5c9a08783044677721a6de4df | <ide><path>actionpack/lib/action_controller/metal/mime_responds.rb
<ide> module ActionController #:nodoc:
<ide> module MimeResponds
<ide> extend ActiveSupport::Concern
<ide>
<add> include ActionController::ImplicitRender
<add>
<ide> included do
<ide> class_attribute :responder, :mimes_for_respond_to... | 1 |
PHP | PHP | fix cs error | 9fb13bf865b19fc01918a50677d4d741c5daa876 | <ide><path>src/ORM/Association/BelongsToMany.php
<ide>
<ide> use Cake\Core\App;
<ide> use Cake\Database\Expression\IdentifierExpression;
<del>use Cake\Database\ExpressionInterface;
<ide> use Cake\Database\Expression\QueryExpression;
<add>use Cake\Database\ExpressionInterface;
<ide> use Cake\Datasource\EntityInterface;... | 1 |
Javascript | Javascript | reactcomponentexpect fails silently | 39c3fb2b097c4d2d7b7bb9b5b1a33b88c180fd8f | <ide><path>src/test/reactComponentExpect.js
<ide> function reactComponentExpect(instance) {
<ide> }
<ide>
<ide> expect(instance).not.toBeNull();
<add> expect(instance).not.toBeUndefined();
<ide>
<ide> invariant(
<ide> ReactTestUtils.isCompositeComponent(instance), | 1 |
Python | Python | add unit-test for record-arrays with object field | 7ae3b470b424cd8f80fdf54eab22a7fa8ac127ac | <ide><path>numpy/core/records.py
<ide> def __getattribute__(self, attr):
<ide> fielddict = sb.ndarray.__getattribute__(self,'dtype').fields
<ide> try:
<ide> res = fielddict[attr][:2]
<del> except KeyError:
<add> except (TypeError, KeyError):
<ide> raise AttributeErr... | 2 |
Javascript | Javascript | fix tests in amd mode | 56136897f241db22560b58c3518578ca1453d5c7 | <ide><path>src/attributes/val.js
<ide> define( [
<ide> "../core",
<ide> "../core/stripAndCollapse",
<ide> "./support",
<del> "../core/init",
<del> "../core/nodeName"
<add> "../core/nodeName",
<add>
<add> "../core/init"
<ide> ], function( jQuery, stripAndCollapse, support, nodeName ) {
<ide>
<ide> "use strict";
<ide... | 6 |
Text | Text | add live samples back to docs for each chart type | 9ea18065add95d80a807e67f27018caadcfeb44c | <ide><path>docs/charts/bar.md
<ide> # Bar
<ide> A bar chart provides a way of showing data values represented as vertical bars. It is sometimes used to show trend data, and the comparison of multiple data sets side by side.
<ide>
<add>{% chartjs %}
<add>{
<add> "type": "bar",
<add> "data": {
<add> "labels... | 7 |
Javascript | Javascript | add mustcall in test-net-bytes-read.js | aacc046e6b2d3c4f26af2715151f5bd01cb2776c | <ide><path>test/parallel/test-net-bytes-read.js
<ide> const net = require('net');
<ide>
<ide> const big = Buffer.alloc(1024 * 1024);
<ide>
<del>const server = net.createServer((socket) => {
<add>const handler = common.mustCall((socket) => {
<ide> socket.end(big);
<ide> server.close();
<del>}).listen(0, () => {
<a... | 1 |
Python | Python | use getboolean in jobs.py | b22ca52c2b32473272071440e1bf7c029187b66b | <ide><path>airflow/jobs.py
<ide>
<ide> # Setting up a statsd client if needed
<ide> statsd = None
<del>if conf.get('scheduler', 'statsd_on'):
<add>if conf.getboolean('scheduler', 'statsd_on'):
<ide> from statsd import StatsClient
<ide> statsd = StatsClient(
<ide> host=conf.get('scheduler', 'statsd_host... | 1 |
Python | Python | use np.copyto instead of np.fill in some places | 76f9e50c9e40967d9a41cb6a630b2448af9e8687 | <ide><path>numpy/add_newdocs.py
<ide> def luf(lamdaexpr, *args, **kwargs):
<ide> of `dst`, and selects elements to copy from `src` to `dst`
<ide> wherever it contains the value True.
<ide>
<del> Returns
<del> -------
<del> out : ndarray
<del> Returns the array `dst`.
<del>
<ide> """... | 2 |
Javascript | Javascript | fix documentation error | dc3f9d9c68c60cbbfd8abd8c0b2f439eb36aa4c7 | <ide><path>packages/ember-runtime/lib/mixins/freezable.js
<ide> var get = Ember.get, set = Ember.set;
<ide>
<ide> });
<ide>
<del> c = Context.create({ firstName: "John", lastName: "Doe" });
<add> c = Contact.create({ firstName: "John", lastName: "Doe" });
<ide> c.swapNames(); // returns c
<ide> c.freeze();
<... | 1 |
Python | Python | raise warnings on implicit many serialization | 388e6173669a295214a718e55dbf467559835dee | <ide><path>rest_framework/serializers.py
<ide> def errors(self):
<ide> many = self.many
<ide> else:
<ide> many = hasattr(data, '__iter__') and not isinstance(data, (Page, dict))
<add> if many:
<add> warnings.warn('Implict list/queryset serial... | 1 |
Javascript | Javascript | ignore managed prefs documented as "deprecated." | 9d55a1edc7f6fd2bc44e8f5d5f7408e695fba035 | <ide><path>gulpfile.js
<ide> function getVersionJSON() {
<ide> function checkChromePreferencesFile(chromePrefsPath, webPrefsPath) {
<ide> var chromePrefs = JSON.parse(fs.readFileSync(chromePrefsPath).toString());
<ide> var chromePrefsKeys = Object.keys(chromePrefs.properties);
<add> chromePrefsKeys = chromePrefsKe... | 1 |
PHP | PHP | add test for queued listener | d3ba921e5844a31e639f92188900e7b49424ec9e | <ide><path>tests/Events/EventsDispatcherTest.php
<ide> use Illuminate\Contracts\Queue\ShouldQueue;
<ide> use Illuminate\Events\CallQueuedListener;
<ide> use Illuminate\Events\Dispatcher;
<add>use Illuminate\Support\Testing\Fakes\QueueFake;
<ide> use Mockery as m;
<ide> use PHPUnit\Framework\TestCase;
<ide>
<ide> publi... | 1 |
PHP | PHP | apply fixes from styleci | 531c8dda902e0b9351e1004f06b49f81c3694337 | <ide><path>src/Illuminate/Cache/MemcachedLock.php
<ide>
<ide> namespace Illuminate\Cache;
<ide>
<del>use Carbon\Carbon;
<ide> use Illuminate\Contracts\Cache\Lock as LockContract;
<ide>
<ide> class MemcachedLock extends Lock implements LockContract
<ide><path>src/Illuminate/Cache/RedisLock.php
<ide>
<ide> namespace ... | 3 |
Javascript | Javascript | restore scrollbar positions correctly on reload | 37b5d2eb4dbbf5a23baf70c0ee1994c77e6dc05b | <ide><path>spec/text-editor-component-spec.js
<ide> describe('TextEditorComponent', () => {
<ide>
<ide> })
<ide>
<del> it('updates the bottom/right of dummy scrollbars and client height/width measurements when scrollbar styles change', async () => {
<add> it('updates the bottom/right of dummy scrollbars and... | 2 |
Python | Python | fix combined alters on postgresql | f343cbf06cba0e2ace0157224f85b89488093fa1 | <ide><path>django/db/backends/schema.py
<ide> import sys
<ide> import hashlib
<add>import operator
<ide> from django.db.backends.creation import BaseDatabaseCreation
<ide> from django.db.backends.util import truncate_name
<ide> from django.utils.log import getLogger
<ide> from django.db.models.fields.related import Man... | 1 |
Java | Java | fix failing test | 6659e96104a02c7a8cc3b4287928b9081ab33a5c | <ide><path>spring-websocket/src/test/java/org/springframework/web/socket/sockjs/transport/session/SockJsSessionTests.java
<ide> import org.springframework.web.socket.CloseStatus;
<ide> import org.springframework.web.socket.TextMessage;
<ide> import org.springframework.web.socket.handler.ExceptionWebSocketHandlerDecorat... | 1 |
Javascript | Javascript | add reactupdates.setimmediate for async callbacks | 12b532c253e6efc3d077b35f9c3aa88ed94fc435 | <ide><path>src/core/ReactUpdates.js
<ide> var mixInto = require('mixInto');
<ide> var warning = require('warning');
<ide>
<ide> var dirtyComponents = [];
<add>var setImmediateCallbackQueue = CallbackQueue.getPooled();
<add>var setImmediateEnqueued = false;
<ide>
<ide> var batchingStrategy = null;
<ide>
<ide> var TRA... | 2 |
Python | Python | allow 'tf' ordering in imagedatagenerator | cb65139aa8857421e70920422844db8a2d6b0a87 | <ide><path>keras/preprocessing/image.py
<ide> import threading
<ide>
<ide>
<del>def random_rotation(x, rg, fill_mode='nearest', cval=0.):
<add>def random_rotation(x, rg, fill_mode='nearest', cval=0., axes=(1,2)):
<ide> angle = np.random.uniform(-rg, rg)
<ide> x = ndimage.interpolation.rotate(x, angle,
<del> ... | 2 |
Python | Python | remove reference to args in xla check | 129fdae04033fe4adfe013b734deaec6ec34ae2e | <ide><path>src/transformers/training_args_tf.py
<ide> class TFTrainingArguments(TrainingArguments):
<ide> def _setup_strategy(self) -> Tuple["tf.distribute.Strategy", int]:
<ide> logger.info("Tensorflow: setting up strategy")
<ide>
<del> if self.args.xla:
<add> if self.xla:
<ide> ... | 1 |
Ruby | Ruby | add test coverage for devel spec version style | a5fff4547f460642728c88dbad76267f83afa170 | <ide><path>Library/Homebrew/test/version_spec.rb
<ide> .to be_detected_from("https://example.com/dada-v2017-04-17.tar.gz")
<ide> end
<ide>
<add> specify "devel spec version style" do
<add> expect(Version.create("1.3.0-beta.1"))
<add> .to be_detected_from("https://registry.npmjs.org/@angular/... | 1 |
Go | Go | remove unused movetosubdir() utility | 26659d5eb83330269ef634713435a995caa1e2e6 | <ide><path>pkg/directory/directory.go
<ide> package directory // import "github.com/docker/docker/pkg/directory"
<ide>
<del>import (
<del> "context"
<del> "os"
<del> "path/filepath"
<del>)
<del>
<del>// MoveToSubdir moves all contents of a directory to a subdirectory underneath the original path
<del>func MoveToSubdir... | 2 |
Python | Python | add default_model to about | ccd87ad7fb8066ba11b479a4bbab5597d4c1dd49 | <ide><path>setup.py
<ide> from distutils.core import Extension, setup
<ide>
<ide>
<del>MAJOR = 0
<del>MINOR = 100
<del>MICRO = 0
<del>ISRELEASED = False
<del>VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
<add>MAJOR = 0
<add>MINOR = 100
<add>MICRO = 0
<add>ISRELEASE = F... | 1 |
Ruby | Ruby | remove duplicate method | e18e7d9253736616862ca0c164497c3617b07da4 | <ide><path>activerecord/test/cases/finder_test.rb
<ide> def with_env_tz(new_tz = 'US/Eastern')
<ide> ensure
<ide> old_tz ? ENV['TZ'] = old_tz : ENV.delete('TZ')
<ide> end
<del>
<del> def with_active_record_default_timezone(zone)
<del> old_zone, ActiveRecord::Base.default_timezone = ActiveRecord::B... | 1 |
Python | Python | fix print statements in fcompiler for python3 | bee85b21cb5a7263d09e9ea58081c1c4cac55089 | <ide><path>numpy/distutils/fcompiler/__init__.py
<ide> def dump_properties(self):
<ide> % (self.__class__.__name__)):
<ide> if l[:4]==' --':
<ide> l = ' ' + l[4:]
<del> print l
<add> print(l)
<ide>
<ide> #############... | 15 |
Ruby | Ruby | add hooks for pouring bottles | e2fbfc83901fbd885c7a1cc1f471b0f3fe071c15 | <ide><path>Library/Homebrew/formula_installer.rb
<ide> require 'formula_cellar_checks'
<ide> require 'install_renamed'
<ide> require 'cmd/tap'
<add>require 'hooks/bottles'
<ide>
<ide> class FormulaInstaller
<ide> include FormulaCellarChecks
<ide> def initialize ff
<ide> end
<ide>
<ide> def pour_bottle? install_... | 2 |
Javascript | Javascript | add playsinline as an allowed html property | 7b11aa9450e3040199ca83faa8c191956e82e99c | <ide><path>src/renderers/dom/shared/HTMLDOMPropertyConfig.js
<ide> var HTMLDOMPropertyConfig = {
<ide> optimum: 0,
<ide> pattern: 0,
<ide> placeholder: 0,
<add> playsInline: HAS_BOOLEAN_VALUE,
<ide> poster: 0,
<ide> preload: 0,
<ide> profile: 0, | 1 |
Java | Java | fix bug with custom requestcondition | 64ee5e579adcec97122fc0ee1414031da3be0c6e | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/condition/RequestConditionHolder.java
<ide> /**
<ide> * A holder for a {@link RequestCondition} useful when the type of the held
<ide> * request condition is not known ahead of time - e.g. custom condition.
<del> *
<del> * <p>An implementatio... | 2 |
Python | Python | remove unused import | a6370bb2a2e0bfc8e5f8474b1002e8f4cb34fa24 | <ide><path>celery/worker/consumer.py
<ide> def receive_message(self, body, message):
<ide> :param message: The kombu message object.
<ide>
<ide> """
<del> print 'I am in receive_message'
<ide> try:
<ide> name = body['task']
<ide> except (KeyError, TypeError):
<ide><pa... | 2 |
Ruby | Ruby | implement argv.named in terms of argv.options_only | e18da89f3c4331d65ef32f75c3271242b41246dc | <ide><path>Library/Homebrew/extend/ARGV.rb
<ide> module HomebrewArgvExtension
<ide> def named
<del> @named ||= reject{|arg| arg[0..0] == '-'}
<add> @named ||= self - options_only
<ide> end
<ide>
<ide> def options_only
<del> select {|arg| arg[0..0] == '-'}
<add> select { |arg| arg.start_with?("-") }
<... | 2 |
Javascript | Javascript | use common owner symbol to access js wrapper | a9bb653ecc9cab6317f931fe39d4cfe5642ab37b | <ide><path>lib/zlib.js
<ide> const {
<ide> Buffer,
<ide> kMaxLength
<ide> } = require('buffer');
<add>const { owner_symbol } = require('internal/async_hooks').symbols;
<ide>
<ide> const constants = process.binding('constants').zlib;
<ide> const {
<ide> function zlibBufferSync(engine, buffer) {
<ide> }
<ide>
<ide>... | 1 |
PHP | PHP | use proper assertions | e1aa4f27542adf21b4755b5f296b3639bc821fc1 | <ide><path>tests/Auth/AuthDatabaseReminderRepositoryTest.php
<ide> public function testCreateInsertsNewRecordIntoTable()
<ide>
<ide> $results = $repo->create($user);
<ide>
<del> $this->assertTrue(is_string($results) and strlen($results) > 1);
<add> $this->assertInternalType('string', $results);
<add> $this->asse... | 3 |
Javascript | Javascript | remove broken string-creation.js | d525e6c92aa4a5806a12cfc9206e85724cafa9bc | <ide><path>benchmark/misc/string-creation.js
<del>'use strict';
<del>
<del>var common = require('../common.js');
<del>var bench = common.createBenchmark(main, {
<del> millions: [100]
<del>});
<del>
<del>function main(conf) {
<del> var n = +conf.millions * 1e6;
<del> bench.start();
<del> var s;
<del> for (var i = 0... | 1 |
Java | Java | expose combine method in corsconfiguration | b9ef5416b9af95b8739e0b977e55310ef9eaed11 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/config/CorsRegistration.java
<ide> public CorsRegistration maxAge(long maxAge) {
<ide> return this;
<ide> }
<ide>
<add> /**
<add> * Apply the given {@code CorsConfiguration} to the one being configured via
<add> * {@link CorsConfiguration#co... | 2 |
Javascript | Javascript | add uncaughtexception handler to kill child | 53f29d86c0eb5e991097b24a62b5937acca682b0 | <ide><path>lib/_debugger.js
<ide> exports.port = 5858;
<ide>
<ide> exports.start = function() {
<ide> var interface = new Interface();
<add> process.on('uncaughtException', function (e) {
<add> console.error("There was an internal error in Node's debugger. " +
<add> "Please report this bug.");
<... | 1 |
Text | Text | remove repl.it links chinese challenge articles | 015424b2a55c3d4a8498ab33104c80b6cc737c3b | <ide><path>guide/chinese/certifications/coding-interview-prep/algorithms/find-the-symmetric-difference/index.md
<ide> A = {1, 2, 3}
<ide>
<ide> ```](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce)
<ide>
<del> [:
<ide> self.end_training()
<ide>
<ide> def __init__(self,
<del> path=None,
<add> path=True,
<ide> vocab=True,
<ide> tokenizer=True,
<ide> tagger=True,
<ide> def __init__(self,
<ide> ... | 1 |
Java | Java | fix doc typo in abstractautowirecapablebeanfactory | 34956d30b3f628f6a48451eb43911d5665548127 | <ide><path>org.springframework.beans/src/main/java/org/springframework/beans/factory/support/AbstractAutowireCapableBeanFactory.java
<ide> protected Class getTypeForFactoryMethod(String beanName, RootBeanDefinition mbd,
<ide>
<ide> /**
<ide> * This implementation attempts to query the FactoryBean's generic paramete... | 1 |
Javascript | Javascript | add feature flag for setting update lane priority | 32ff4286872d1a6bb8ce71730064f60ebbdd1509 | <ide><path>packages/react-dom/src/events/ReactDOMEventListener.js
<ide> import {
<ide> import getEventTarget from './getEventTarget';
<ide> import {getClosestInstanceFromNode} from '../client/ReactDOMComponentTree';
<ide>
<del>import {enableLegacyFBSupport} from 'shared/ReactFeatureFlags';
<add>import {
<add> enableL... | 7 |
PHP | PHP | remove unnecessary return | f093a31740a1c6a841980e1606c966d3ac9f3a13 | <ide><path>lib/Cake/Cache/Engine/MemcachedEngine.php
<ide> public function init($settings = array()) {
<ide> $this->_Memcached->setSaslAuthData($this->settings['login'], $this->settings['password']);
<ide> }
<ide> }
<del>
<del> return true;
<ide> }
<ide>
<ide> return true; | 1 |
Python | Python | add simplest possible failing test | 43458944452fe11132fa1ab5f2bf1934b8fc108f | <ide><path>tests/test_model_serializer.py
<ide> class Meta:
<ide> self.maxDiff = None
<ide> self.assertEqual(unicode_repr(TestSerializer()), expected)
<ide>
<del> def test_nested_hyperlinked_relations_named_source(self):
<del> class TestSerializer(serializers.HyperlinkedModelSerializer):
<del... | 1 |
Javascript | Javascript | add redirect for users blocked by okta | 092d7d04d65e9ca76b7065b97522c5019425bbe8 | <ide><path>api-server/src/server/component-passport.js
<ide> export const createPassportCallbackAuthenticator =
<ide> return next(err);
<ide> }
<ide>
<add> const state = req && req.query && req.query.state;
<add> // returnTo, origin and pathPrefix are audited by getReturnTo
<add> ... | 1 |
PHP | PHP | correct doc block | cbbd3ec6b38e7b9526ef0370d1b2dffc0499c45f | <ide><path>lib/Cake/TestSuite/Coverage/BaseCoverageReport.php
<ide> public function setCoverage($coverage) {
<ide> /**
<ide> * Gets the base path that the files we are interested in live in.
<ide> *
<del> * @return void
<add> * @return string Path
<ide> */
<ide> public function getPathFilter() {
<ide> $path = ROO... | 1 |
Javascript | Javascript | fix output.globalobject value in node-webkit | 70d48256d7031e5cd557f4238a2ee9abbbab32b3 | <ide><path>lib/WebpackOptionsDefaulter.js
<ide> class WebpackOptionsDefaulter extends OptionsDefaulter {
<ide> switch (options.target) {
<ide> case "web":
<ide> case "electron-renderer":
<add> case "node-webkit":
<ide> return "window";
<ide> case "webworker":
<ide> return "self";
<ide> c... | 1 |
Javascript | Javascript | add sendaction() to ember.component | 9d051c2a1b751494575fa06b9ebc73af8ed59ac3 | <ide><path>packages/ember-views/lib/views/component.js
<ide> require("ember-views/views/view");
<ide>
<del>var set = Ember.set;
<add>var get = Ember.get, set = Ember.set, isNone = Ember.isNone;
<ide>
<ide> /**
<ide> @module ember
<ide> var set = Ember.set;
<ide> @namespace Ember
<ide> @extends Ember.View
<ide> */... | 2 |
Javascript | Javascript | destroy singleuse context immediately | 178741637693a95f9e81200b486df2e6aee06986 | <ide><path>lib/_tls_common.js
<ide> exports.createSecureContext = function createSecureContext(options, context) {
<ide> }
<ide>
<ide> // Do not keep read/write buffers in free list
<del> if (options.singleUse)
<add> if (options.singleUse) {
<add> c.singleUse = true;
<ide> c.context.setFreeListLength(0);
... | 2 |
Javascript | Javascript | swap .child and .statenode in coroutines | 648d6e190cf44870ab62a0e8a65189975ef44ee6 | <ide><path>src/renderers/shared/fiber/ReactFiberBeginWork.js
<ide> module.exports = function<T, P, I, TI, PI, C, CX, PL>(
<ide> } else if (nextCoroutine === null || workInProgress.memoizedProps === nextCoroutine) {
<ide> return bailoutOnAlreadyFinishedWork(current, workInProgress);
<ide> }
<del> reconc... | 7 |
Javascript | Javascript | fix merge issue | 8bd62c353cd4a8adc479d4948eaa4fdf462ee445 | <ide><path>test/Errors.test.js
<ide> Object {
<ide> "errors": Array [],
<ide> "warnings": Array [
<ide> Object {
<del> "message": "configuration\\nThe 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults ... | 1 |
Javascript | Javascript | improve documentation on directive $scope usage | 159bbf11ac80bff27bbbecee61a741a3b894f58e | <ide><path>src/ng/compile.js
<ide> * and other directives used in the directive's template will also be excluded from execution.
<ide> *
<ide> * #### `scope`
<del> * **If set to `true`,** then a new scope will be created for this directive. If multiple directives on the
<del> * same element request a new scope, only... | 1 |
Mixed | Javascript | remove `streamerror` from docs | c8aa83c6ddfaa794b390858c8eaf65e18571595d | <ide><path>doc/api/http2.md
<ide> added: v8.4.0
<ide>
<ide> * Extends: {net.Server}
<ide>
<del>In `Http2Server`, there are no `'clientError'` events as there are in
<del>HTTP1. However, there are `'sessionError'`, and `'streamError'` events for
<del>errors emitted on the socket, or from `Http2Session` or `Http2Stream... | 3 |
PHP | PHP | add method hasbag to viewerrorbag | 9b9d1eda4a287c59eba6a3f4ac5585966702a795 | <ide><path>src/Illuminate/Support/ViewErrorBag.php
<ide> class ViewErrorBag implements Countable {
<ide> * @var array
<ide> */
<ide> protected $bags = [];
<add>
<add> /**
<add> * Checks if a MessageBag exists.
<add> *
<add> * @param string $key
<add> * @return boolean
<add> */
<add> public function hasBag(... | 1 |
Text | Text | remove file name from self-reference links | e0a954e65798c393a67699cff1af6f96b684233a | <ide><path>doc/api/fs.md
<ide> the file contents.
<ide> [`fs.copyFile()`]: #fs_fs_copyfile_src_dest_mode_callback
<ide> [`fs.createReadStream()`]: #fs_fs_createreadstream_path_options
<ide> [`fs.createWriteStream()`]: #fs_fs_createwritestream_path_options
<del>[`fs.exists()`]: fs.md#fs_fs_exists_path_callback
<add>[`fs... | 5 |
Ruby | Ruby | use full paths to mdfind and pkgutil | 05094060692616040e5ef6bcd9bb996d4dd46cd0 | <ide><path>Library/Homebrew/macos.rb
<ide> def app_with_bundle_id id
<ide> end
<ide>
<ide> def mdfind attribute, id
<del> path = `mdfind "#{attribute} == '#{id}'"`.split("\n").first
<add> path = `/usr/bin/mdfind "#{attribute} == '#{id}'"`.split("\n").first
<ide> Pathname.new(path) unless path.nil? or pat... | 1 |
Ruby | Ruby | remove unused config option | 1acdc4d930b9e575d56e3ca15a7efa7eaa257540 | <ide><path>railties/test/application/middleware/session_test.rb
<ide> def read_raw_cookie
<ide>
<ide> add_to_config <<-RUBY
<ide> config.session_store :encrypted_cookie_store, key: '_myapp_session'
<del> config.action_dispatch.derive_signed_cookie_key = true
<ide> RUBY
<ide>
<ide> req... | 1 |
Go | Go | register container as late as possible | 114be249f022535f0800bd45987c4e9cd1b321a4 | <ide><path>daemon/create.go
<ide> func (daemon *Daemon) create(params types.ContainerCreateConfig) (retC *containe
<ide> }
<ide> defer func() {
<ide> if retErr != nil {
<del> if err := daemon.ContainerRm(container.ID, &types.ContainerRmConfig{ForceRemove: true}); err != nil {
<del> logrus.Errorf("Clean up Erro... | 1 |
Text | Text | break long command to avoid cropping | 16b5b6e49f3ee1a327216ec9b6fe4b857f3ea7a2 | <ide><path>docs/installation/mac.md
<ide> The next exercise demonstrates how to do this.
<ide>
<ide> 5. Start a new `nginx` container and replace the `html` folder with your `site` directory.
<ide>
<del> $ docker run -d -P -v $HOME/site:/usr/share/nginx/html --name mysite nginx
<add> $ docker run -d -P ... | 1 |
Javascript | Javascript | use recursion to traverse during layout phase | b641d0209717d1127296d26b53b8dc056d9e6952 | <ide><path>packages/react-reconciler/src/ReactFiberCommitWork.new.js
<ide> function commitLayoutEffectOnFiber(
<ide> case FunctionComponent:
<ide> case ForwardRef:
<ide> case SimpleMemoComponent: {
<add> recursivelyTraverseLayoutEffects(
<add> finishedRoot,
<add> finishedWork,
<add> ... | 2 |
Javascript | Javascript | refine ember.aliasmethod tests | 494bbbb33154e8bd3201959112974b008657e557 | <ide><path>packages/ember-metal/tests/mixin/alias_method_test.js
<ide> module('Ember.aliasMethod');
<ide>
<ide> function validateAliasMethod(obj) {
<del> var get = Ember.get;
<del> equal(get(obj, 'foo'), 'foo', 'obj.foo');
<del> equal(get(obj, 'bar'), 'foo', 'obj.bar should be a copy of foo');
<del>
<ide> equal(o... | 1 |
Mixed | Ruby | add `srcset` option to `image_tag` helper | 43efae22a7a59d5fe0be599bd074c5e7d881266a | <ide><path>actionview/CHANGELOG.md
<add>* Add `srcset` option to `image_tag` helper
<add>
<add> *Roberto Miranda*
<add>
<ide> * Fix issues with scopes and engine on `current_page?` method.
<ide>
<ide> Fixes #29401.
<ide><path>actionview/lib/action_view/helpers/asset_tag_helper.rb
<ide> def favicon_link_tag(... | 3 |
Python | Python | add test for urlquote_wrapper | 8043ff3fefd1b59bb1d3c93595fdc10b7ae04abc | <ide><path>tests/test_templatetags.py
<ide> from django.test import TestCase
<ide>
<ide> from rest_framework.relations import Hyperlink
<add>from rest_framework.templatetags import rest_framework
<ide> from rest_framework.templatetags.rest_framework import (
<ide> add_nested_class, add_query_param, as_string, brea... | 1 |
Javascript | Javascript | change everything over to jasmine | 0305b6746e2c50960b042c5d687794e030930f8b | <ide><path>src/Scope.js
<ide> function createScope(parent, services, existing) {
<ide> var watch = expressionCompile(watchExp),
<ide> last;
<ide> function watcher(){
<del> var value = watch.call(instance);
<add> var value = watch.call(instance),
<add> lastValue = last;
<id... | 3 |
Ruby | Ruby | adjust test value so that timezone has no effect | 3f90787cd25a45a621fbb7238f69ee96f26e8f74 | <ide><path>activerecord/test/cases/adapters/postgresql/timestamp_test.rb
<ide> def test_postgres_agrees_with_activerecord_about_precision
<ide> end
<ide>
<ide> def test_bc_timestamp
<del> date = Date.new(0) - 1.second
<add> date = Date.new(0) - 1.week
<ide> Developer.create!(:name => "aaron", :updated_at... | 1 |
Ruby | Ruby | remove obsolete text | b2b74260dbf7ea106e9b905fb68419dc17f3ab7a | <ide><path>Library/Homebrew/cmd/sh.rb
<ide> def sh
<ide> gem and pip will ignore our configuration and insist on using the
<ide> environment they were built under (mostly). Sadly, scons will also
<ide> ignore our configuration.
<del> All toolchain use will be logged to: ~/Library/Home... | 1 |
Python | Python | add test for chain-in-chain | 7f48a6dd2a79dffa247892ef8c593ff7d24b22d3 | <ide><path>t/integration/test_canvas.py
<ide> def test_chord_in_chain_with_args(self, manager):
<ide> res1 = c1.apply(args=(1,))
<ide> assert res1.get(timeout=TIMEOUT) == [1, 1]
<ide>
<add> @pytest.mark.xfail(reason="Issue #6200")
<add> def test_chain_in_chain_with_args(self):
<add> try:
<... | 1 |
Javascript | Javascript | remove createmutablesource from stable exports | 1f3f6db73caf72a7d2287241212b7669d0c2dd2f | <ide><path>packages/react/index.stable.js
<ide> export {
<ide> createContext,
<ide> createElement,
<ide> createFactory,
<del> createMutableSource as unstable_createMutableSource,
<ide> createRef,
<ide> forwardRef,
<ide> isValidElement, | 1 |
Text | Text | use release azure-core gem | d4f0b1031940b2cd7ceb9ab5a7665f44458917cb | <ide><path>activestorage/README.md
<ide> Variation of image attachment:
<ide> 1. Run `rails activestorage:install` to create needed directories, migrations, and configuration.
<ide> 2. Optional: Add `gem "aws-sdk", "~> 2"` to your Gemfile if you want to use AWS S3.
<ide> 3. Optional: Add `gem "google-cloud-storage", "~... | 1 |
Python | Python | optimize l2 regularizer | c38a617ec9f9321b097ddb1e6ba801eacc1b6e77 | <ide><path>keras/regularizers.py
<ide> def __call__(self, x):
<ide> if self.l1:
<ide> regularization += self.l1 * tf.reduce_sum(tf.abs(x))
<ide> if self.l2:
<del> regularization += self.l2 * tf.reduce_sum(tf.square(x))
<add> regularization += 2.0 * self.l2 * tf.nn.l2_loss(x)
<ide> return reg... | 1 |
Mixed | Ruby | deliver parameterized mail with deliveryjob | 60339da5bcb76489576321fa12e665f176d8d692 | <ide><path>actionmailer/CHANGELOG.md
<add>* Deliver parameterized mail with `ActionMailer::DeliveryJob` and remove `ActionMailer::Parameterized::DeliveryJob`.
<add>
<add> *Gannon McGibbon*
<add>
<ide> * Fix ActionMailer assertions not working when a Mail defines
<ide> a custom delivery job class
<ide>
<ide>... | 9 |
Javascript | Javascript | exclude tests from warning print script | 6a48f32f2194423d905bd2e475e093638e12e299 | <ide><path>scripts/print-warnings/print-warnings.js
<ide> const through = require('through2');
<ide> const traverse = require('babel-traverse').default;
<ide> const gs = require('glob-stream');
<ide> const Bundles = require('../rollup/bundles');
<add>const Modules = require('../rollup/modules');
<ide>
<ide> const eval... | 2 |
Text | Text | improve wording of test text | 18ac05884058d034c8c07bf94ce4467e22cafe7d | <ide><path>curriculum/challenges/english/01-responsive-web-design/basic-css/use-rgb-values-to-color-elements.md
<ide> Instead of using six hexadecimal digits like you do with hex code, with `RGB` yo
<ide>
<ide> If you do the math, the two digits for one color equal 16 times 16, which gives us 256 total values. So `RGB... | 1 |
Python | Python | raise atol for mt5onnxconfig | 9a9a525be8310a374b6543f7ddaa4c48c9893828 | <ide><path>src/transformers/models/mt5/configuration_mt5.py
<ide> def num_hidden_layers(self):
<ide> return self.num_layers
<ide>
<ide>
<del># Copied from transformers.models.t5.configuration_t5.T5OnnxConfig
<ide> class MT5OnnxConfig(OnnxSeq2SeqConfigWithPast):
<ide> @property
<add> # Copied from trans... | 1 |
Text | Text | add ja translation with orginal script | 87e8946694297c8751a3941160f513b1cb4227e2 | <ide><path>threejs/lessons/ja/threejs-primitives.md
<add>Title: Three.js のプリミティブ
<add>Description: three.js プリミティブの旅。
<add>TOC: プリミティブ
<add>
<add>This article is one in a series of articles about three.js.
<add>The first article was [about fundamentals](threejs-fundamentals.html).
<add>If you haven't read that yet you... | 1 |
Ruby | Ruby | fix syntax error | 84afbbbc037e7d55a6d6092c1f6d5516b8bb4e9d | <ide><path>actionpack/lib/action_view/helpers/benchmark_helper.rb
<ide> def benchmark(message = "Benchmarking", &block)
<ide> block.call
<ide> end
<ide>
<del> @logger.info("#{message} (#{sprintf("%.5f", bm.real})")
<add> @logger.info("#{message} (#{sprintf("%.5f", bm.real)})")
<... | 1 |
Text | Text | update default spans_key to sc in api docs | 0d0153db63442ef4523e7e33ac5c863172a61422 | <ide><path>website/docs/api/spancategorizer.md
<ide> architectures and their arguments and hyperparameters.
<ide> | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------... | 1 |
Javascript | Javascript | add null prototype support for date | 81b25eac21c15aa8fffda92f1501b9ffd593df5e | <ide><path>lib/internal/util/inspect.js
<ide> function uncurryThis(func) {
<ide> const propertyIsEnumerable = uncurryThis(Object.prototype.propertyIsEnumerable);
<ide> const regExpToString = uncurryThis(RegExp.prototype.toString);
<ide> const dateToISOString = uncurryThis(Date.prototype.toISOString);
<add>const dateToS... | 3 |
Text | Text | add ryzokuken to collaborators | fb2d9df75718dd2707e68063e8d74783e7e19e12 | <ide><path>README.md
<ide> For more information about the governance of the Node.js project, see
<ide> **Ingvar Stepanyan** <me@rreverser.com>
<ide> * [rvagg](https://github.com/rvagg) -
<ide> **Rod Vagg** <rod@vagg.org>
<add>* [ryzokuken](https://github.com/ryzokuken) -
<add>**Ujjwal Sharma** <usharma19... | 1 |
Ruby | Ruby | fix rubocop warnings | 7e42c5d08003fd38addbcd84af17df84e14a69b2 | <ide><path>Library/Homebrew/requirements/emacs_requirement.rb
<ide> class EmacsRequirement < Requirement
<ide> default_formula "emacs"
<ide>
<ide> def initialize(tags)
<del> @version = tags.shift if /\d+\.*\d*/ === tags.first
<add> @version = tags.shift if /\d+\.*\d*/ =~ tags.first
<ide> super
<ide> en... | 1 |
Ruby | Ruby | remove unused ignore_missing_templates option | 3f8d3cd04ff0bd7cbf70c11d49a3dc009dfa98a0 | <ide><path>actionpack/lib/action_controller/base.rb
<ide> class Base
<ide> # Can be set to nil for no logging. Compatible with both Ruby's own Logger and Log4r loggers.
<ide> cattr_accessor :logger
<ide>
<del> # Turn on +ignore_missing_templates+ if you want to unit test actions without making the associate... | 2 |
PHP | PHP | fix typo in documentation | 57e7877ba2d19e3df7e6973982fc6488f2da7a3d | <ide><path>src/View/Form/ArrayContext.php
<ide> public function isCreate()
<ide> * @param array $options Options:
<ide> * - `default`: Default value to return if no value found in request
<ide> * data or context record.
<del> * - `schemaDefault`: Boolen indicating whether default value from
<... | 1 |
Javascript | Javascript | add flow types rntester examples | bd32234e6ec0006ede180d09b464f1277737e789 | <ide><path>RNTester/js/ARTExample.js
<ide> const {Surface, Path, Group, Shape} = ART;
<ide>
<ide> const scale = Platform.isTV ? 4 : 1;
<ide>
<del>class ARTExample extends React.Component<{}> {
<add>type Props = $ReadOnly<{||}>;
<add>class ARTExample extends React.Component<Props> {
<ide> render() {
<ide> const ... | 58 |
PHP | PHP | remove unnecessary findorfail method | 2f59c2c5459530e9a0be8c40ac536c06f3e99973 | <ide><path>src/Illuminate/Database/Eloquent/Model.php
<ide> public static function findOrNew($id, $columns = array('*'))
<ide> return new static;
<ide> }
<ide>
<del> /**
<del> * Find a model by its primary key or throw an exception.
<del> *
<del> * @param mixed $id
<del> * @param array $columns
<del> * @re... | 3 |
Text | Text | buffer allocation throws for negative size | bc335c0a8d68164fd978192409ab6c4986cfe374 | <ide><path>doc/api/buffer.md
<ide> deprecated: v6.0.0
<ide>
<ide> * `size` {Integer} The desired length of the new `Buffer`
<ide>
<del>Allocates a new `Buffer` of `size` bytes. The `size` must be less than or equal
<del>to the value of [`buffer.kMaxLength`]. Otherwise, a [`RangeError`] is thrown.
<del>A zero-length ... | 1 |
Javascript | Javascript | implement normals loading | 91dfdffddd7e2875ea12d21816bd0c333ecdd972 | <ide><path>examples/js/loaders/AMFLoader.js
<ide> THREE.AMFLoader.prototype = {
<ide> function loadMeshVertices( node ) {
<ide>
<ide> var vertArray = [];
<add> var normalArray = [];
<ide> var currVerticesNode = node.firstElementChild;
<ide>
<ide> while ( currVerticesNode ) {
<ide> THREE.AMFLoader.prototy... | 1 |
Ruby | Ruby | restore cleaning of lib/charset.alias | d60f4ffcd80a984018c61f9ca60269d42a055bf8 | <ide><path>Library/Homebrew/cleaner.rb
<ide> def clean_dir d
<ide> elsif path.extname == '.la'
<ide> # *.la files are stupid
<ide> path.unlink unless @f.skip_clean? path
<add> elsif path == @f.lib+'charset.alias'
<add> path.unlink unless @f.skip_clean? path
<ide> elsif not path.s... | 1 |
Go | Go | enable some commit tests | ac59dfa761b0681cb67d11184ef62cc16ec93570 | <ide><path>integration-cli/docker_cli_commit_test.go
<ide> import (
<ide> )
<ide>
<ide> func (s *DockerSuite) TestCommitAfterContainerIsDone(c *check.C) {
<del> testRequires(c, DaemonIsLinux)
<ide> out, _ := dockerCmd(c, "run", "-i", "-a", "stdin", "busybox", "echo", "foo")
<ide>
<ide> cleanedContainerID := strings... | 1 |
Ruby | Ruby | remove invalid docker tag characters | d707c0bbd8e925fe9ad1c02e515effc435353b41 | <ide><path>Library/Homebrew/github_packages.rb
<ide> def self.image_formula_name(formula_name)
<ide> .tr("+", "x")
<ide> end
<ide>
<add> def self.image_version_rebuild(version_rebuild)
<add> # invalid docker tag characters
<add> version_rebuild.tr("+", ".")
<add> end
<add>
<ide> private
<id... | 2 |
Ruby | Ruby | fix flaky advisory lock test | d2215580d892df7da82880c4d1cfd7edf3314dc6 | <ide><path>activerecord/test/cases/migration_test.rb
<ide> def migrate(x)
<ide> }.new
<ide>
<ide> migrator = ActiveRecord::Migrator.new(:up, [migration], @schema_migration, 100)
<del> query = "SELECT query FROM pg_stat_activity WHERE datname = '#{ActiveRecord::Base.connection_db_config.database}... | 1 |
Javascript | Javascript | add tests for source map generator | a116dbf4a422cef25dca599710b633d4ebd57f7f | <ide><path>packager/react-packager/src/Bundler/source-map/B64Builder.js
<ide> class B64Builder {
<ide> * Adds `n` markers for generated lines to the mappings.
<ide> */
<ide> markLines(n: number) {
<add> if (n < 1) {
<add> return this;
<add> }
<ide> this.hasSegment = false;
<ide> if (this.pos ... | 4 |
PHP | PHP | add exit instructions to servershell | 04c774831c696d17572972fb1366c6c64b627085 | <ide><path>src/Console/Command/ServerShell.php
<ide> <?php
<ide> /**
<del> * built-in Server Shell
<del> *
<ide> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
<ide> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<ide> *
<ide> public function main() {
<ide>
<ide> $por... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.