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 | add test for a vm indexed property | b409eaaf25dabe38f26e400ff01ffef598f0760d | <ide><path>test/parallel/test-vm-context-property-forwarding.js
<ide> assert.strictEqual(vm.runInContext('x;', ctx), 3);
<ide> vm.runInContext('y = 4;', ctx);
<ide> assert.strictEqual(sandbox.y, 4);
<ide> assert.strictEqual(ctx.y, 4);
<add>
<add>// Test `IndexedPropertyGetterCallback` and `IndexedPropertyDeleterCallbac... | 1 |
Ruby | Ruby | use a class attribute | 7903e3ada80d7938b1b78b06d0f678e95367a56b | <ide><path>lib/action_mailbox/routing.rb
<ide> module ActionMailbox
<ide> module Routing
<ide> extend ActiveSupport::Concern
<ide>
<del> class_methods do
<del> attr_reader :router
<add> included do
<add> cattr_accessor :router, default: ActionMailbox::Router.new
<add> end
<ide>
<add> class... | 1 |
Javascript | Javascript | add test for missing `close`/`finish` event" | fb05c8e27d29c6277e644c793eeaba1d7007178e | <ide><path>test/parallel/test-http-response-close-event-race.js
<del>var common = require('../common');
<del>var assert = require('assert');
<del>var http = require('http');
<del>
<del>var clientRequest = null;
<del>var eventCount = 0;
<del>var testTickCount = 3;
<del>
<del>var server = http.createServer(function(req, ... | 1 |
Javascript | Javascript | remove trailing spaces | e626f4a7e8d7f662f229c0a42794b3cba4f60d59 | <ide><path>packages/ember-runtime/lib/system/core_object.js
<ide> var ClassMixinProps = {
<ide> ```
<ide>
<ide> This will return the original hash that was passed to `meta()`.
<del>
<add>
<ide> @static
<ide> @method metaForProperty
<ide> @param key {String} property name
<ide> var ClassMixinPro... | 1 |
Java | Java | fix empty payload handling in rsocketrequester | 26d800cc936a9e1f6d326c3b48022267bb30ed0f | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/rsocket/DefaultRSocketRequester.java
<ide> final class DefaultRSocketRequester implements RSocketRequester {
<ide>
<ide> private final RSocketStrategies strategies;
<ide>
<del> private final DataBuffer emptyDataBuffer;
<add> private final Mono<D... | 2 |
PHP | PHP | fix cs errors in tests | 944caaaa99a6d8fd3937229d613ac3da9a289130 | <ide><path>tests/TestCase/Cache/Engine/MemcachedEngineTest.php
<ide> public function setUp()
<ide> parent::setUp();
<ide> $this->skipIf(!class_exists('Memcached'), 'Memcached is not installed or configured properly.');
<ide>
<add> // @codingStandardsIgnoreStart
<ide> $socket = @fsockopen... | 2 |
Java | Java | add naming strategy for @mvc request mappings | 9d479feadded560b1d9a2c485730984ff5dcbfdb | <ide><path>spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java
<ide> @Mapping
<ide> public @interface RequestMapping {
<ide>
<add>
<add> /**
<add> * Assign a name to this mapping.
<add> * <p><b>Supported at the method and also at type level!</b>
<add> * When used on both levels, a c... | 14 |
Mixed | Go | remove files for no longer used docker/swarm godep | 87e4661332cbf649250a384dbfe8491c8eb7c1e7 | <ide><path>libnetwork/Godeps/_workspace/src/github.com/docker/swarm/discovery/README.md
<del>---
<del>page_title: Docker Swarm discovery
<del>page_description: Swarm discovery
<del>page_keywords: docker, swarm, clustering, discovery
<del>---
<del>
<del># Discovery
<del>
<del>Docker Swarm comes with multiple Discovery b... | 25 |
Python | Python | create "embeddings" layer category | 0b96fc2855a835e86b36c5255daab44f57af8624 | <ide><path>examples/imdb_lstm.py
<ide> from keras.optimizers import SGD, RMSprop, Adagrad
<ide> from keras.utils import np_utils
<ide> from keras.models import Sequential
<del>from keras.layers.core import Dense, Dropout, Activation, Embedding
<add>from keras.layers.core import Dense, Dropout, Activation
<add>from kera... | 4 |
Javascript | Javascript | improve error message for non-existent local files | c604cc22d17d544ed084dfd512c7223903a94f93 | <ide><path>src/core/network.js
<ide> var NetworkManager = (function NetworkManagerClosure() {
<ide> });
<ide> } else if (pendingRequest.onProgressiveData) {
<ide> pendingRequest.onDone(null);
<del> } else {
<add> } else if (chunk) {
<ide> pendingRequest.onDone({
<ide> b... | 2 |
Python | Python | add versionadded tags to meshgrid arguments | b8222cbedb5428d2b9eac73aac90ef2409799384 | <ide><path>numpy/lib/function_base.py
<ide> def meshgrid(*xi, **kwargs):
<ide> indexing : {'xy', 'ij'}, optional
<ide> Cartesian ('xy', default) or matrix ('ij') indexing of output.
<ide> See Notes for more details.
<add> .. versionadded:: 1.7.0
<ide> sparse : bool, optional
<ide> ... | 1 |
Javascript | Javascript | parse expression only once during compile phase | 9a828738cd2e959bc2a198989e96c8e416d28b71 | <ide><path>src/ng/directive/ngEventDirs.js
<ide> forEach(
<ide> function(name) {
<ide> var directiveName = directiveNormalize('ng-' + name);
<ide> ngEventDirectives[directiveName] = ['$parse', function($parse) {
<del> return function(scope, element, attr) {
<del> var fn = $parse(attr[directiveName... | 1 |
Java | Java | move remaining jaxb2 test files from core to http | 6d089cdc08e54091224cf2ec61ca4c81a6c40ca2 | <ide><path>spring-web-reactive/src/main/java/org/springframework/core/codec/support/CharSequenceEncoder.java
<add>/*
<add> * Copyright 2002-2016 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... | 10 |
Javascript | Javascript | fix eslint errors and warnings in preprocessor.js | 88be0cefac62076c43b5fb327990deb6bbce9f8f | <ide><path>jest/preprocessor.js
<ide> const babelRegisterOnly = require('metro-babel-register');
<ide> const createCacheKeyFunction = require('fbjs-scripts/jest/createCacheKeyFunction');
<ide> const generate = require('@babel/generator').default;
<ide>
<del>const nodeFiles = RegExp(
<add>const nodeFiles = new RegExp(
... | 1 |
Text | Text | remove deploy to now buttons | 3fa04620e78bb6ff9ee2368076b004a9a59bfd25 | <ide><path>examples/active-class-name/README.md
<del>[](https://deploy.now.sh/?repo=https://github.com/zeit/next.js/tree/master/examples/active-class-name)
<del>
<ide> # activeClassName example
<ide>
<ide> ## How to use
<ide><path>examples/amp/README.md
<del>[![... | 162 |
Javascript | Javascript | move all animation parsing to animation parser | 9a970e016f5066dbb2ef79db1962888ad2a992ce | <ide><path>examples/js/loaders/FBXLoader.js
<ide> THREE.FBXLoader = ( function () {
<ide>
<ide> },
<ide>
<del>
<ide> // create the main THREE.Group() to be returned by the loader
<ide> parseScene: function ( deformers, geometryMap, materialMap ) {
<ide>
<ide> THREE.FBXLoader = ( function () {
<ide> } );
<id... | 1 |
Javascript | Javascript | remove the need to rewrite chunk in reasons | 7036ec488b3f5228df74ad9816262960b35c1826 | <ide><path>lib/Chunk.js
<ide> class Chunk {
<ide> moveModule(module, otherChunk) {
<ide> GraphHelpers.disconnectChunkAndModule(this, module);
<ide> GraphHelpers.connectChunkAndModule(otherChunk, module);
<del> module.rewriteChunkInReasons(this, [otherChunk]);
<ide> }
<ide>
<ide> /**
<ide><path>lib/Module.js
<i... | 6 |
Python | Python | remove audit command | 4fca38c078142744922a8c763bc1468e680a830d | <ide><path>setup.py
<ide> def hello():
<ide> from setuptools import Command, setup
<ide>
<ide>
<del>class run_audit(Command):
<del> """Audits source code using PyFlakes for following issues:
<del> - Names which are used but not defined or used before they are defined.
<del> - Names which are redefine... | 1 |
Javascript | Javascript | remove debug message | 3e0de40d3a5b033e1a188b8b896372b29e8ce502 | <ide><path>vendor/browser-transforms.js
<ide> function loadScripts(scripts) {
<ide> dummyAnchor.href = script.src;
<ide> sourceFilename = dummyAnchor.pathname.substr(1);
<ide> }
<del> console.log(sourceFilename);
<ide>
<ide> var options = {
<ide> sourceMapInline: true, | 1 |
Javascript | Javascript | use portable eol | 4fedb702b221469a65f0f2bc267ae08c8159e72a | <ide><path>test/parallel/test-child-process-pipe-dataflow.js
<ide> const common = require('../common');
<ide> const assert = require('assert');
<ide> const path = require('path');
<ide> const fs = require('fs');
<add>const os = require('os');
<ide> const spawn = require('child_process').spawn;
<ide> const tmpdir = requ... | 1 |
Java | Java | fix typo on javadoc | aa848d54ffa281165cf258ae020811b2d9b18fc7 | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/support/ServletUriComponentsBuilder.java
<ide> private static ServletUriComponentsBuilder initFromRequest(HttpServletRequest re
<ide> *
<ide> * <p>As of 4.3.15, this method replaces the contextPath with the value
<ide> * of "X-Forwarded-Prefix... | 1 |
Javascript | Javascript | load common.js to test for global leaks | 02fe8215f09ce8a89a5cd4e76cbd78a59771c96e | <ide><path>test/parallel/test-arm-math-exp-regress-1376.js
<ide> // See https://github.com/nodejs/node/issues/1376
<ide> // and https://code.google.com/p/v8/issues/detail?id=4019
<ide>
<add>require('../common');
<ide> Math.abs(-0.5);
<ide> Math.acos(-0.5);
<ide> Math.acosh(-0.5);
<ide><path>test/parallel/test-bad-unic... | 48 |
PHP | PHP | fix failing postgres tests | 618509293da26581c4837d8665f77eeaa959129f | <ide><path>tests/TestCase/Database/QueryTest.php
<ide> public function testSqlCaseStatement() {
<ide> ->add(['published' => 'N']), 1, 'integer'
<ide> );
<ide>
<add> //Postgres requires the case statement to be cast to a integer
<add> if ($this->connection->driver() instanceof \Cake\Database\Driver\Postgres) ... | 1 |
Text | Text | add note about changing basepath config | 6c282a3df4df178ea121234baa1a7868c0389b82 | <ide><path>docs/api-reference/next.config.js/basepath.md
<ide> module.exports = {
<ide> }
<ide> ```
<ide>
<add>Note: this value must be set at build time and can not be changed without re-building as the value is inlined in the client-side bundles.
<add>
<ide> ## Links
<ide>
<ide> When linking to other pages using `n... | 1 |
Python | Python | handle nan and inf in assert_equal | 60fd0b786909db327fe4f3e925047e2c2f58f2d2 | <ide><path>numpy/testing/tests/test_utils.py
<ide> def test_objarray(self):
<ide> a = np.array([1, 1], dtype=np.object)
<ide> self._test_equal(a, 1)
<ide>
<del>class TestEqual(_GenericTest, unittest.TestCase):
<add>class TestArrayEqual(_GenericTest, unittest.TestCase):
<ide> def setUp(self):
<ide> ... | 2 |
Javascript | Javascript | remove trailing spaces from banners | e29779957a3b2c5b71e6aa3a2d88d21bed6eec2d | <ide><path>lib/BannerPlugin.js
<ide> const wrapComment = str => {
<ide> return `/*!\n * ${str
<ide> .replace(/\*\//g, "* /")
<ide> .split("\n")
<del> .join("\n * ")}\n */`;
<add> .join("\n * ")
<add> .replace(/\s+\n/g, "\n")
<add> .trimRight()}\n */`;
<ide> };
<ide>
<ide> class BannerPlugin {
<ide><path>test/... | 3 |
Text | Text | improve changelog [ci skip] | d65ab433ae095d99b51786c5c69be8f6cdd5e249 | <ide><path>activesupport/CHANGELOG.md
<del>* Fixed backward compatibility isues introduced in 326e652
<add>* Fixed backward compatibility isues introduced in 326e652.
<ide>
<del> Empty Hash or Array should not present in serialization result
<add> Empty Hash or Array should not present in serialization resul... | 1 |
Python | Python | take two on auth for beeline | 19651db63f3f8584979fc82cde94e9fc753fa46f | <ide><path>airflow/hooks/hive_hooks.py
<ide> class HiveCliHook(BaseHook):
<ide> Note that you can also set default hive CLI parameters using the
<ide> ``hive_cli_params`` to be used in your connection as in
<ide> ``{"hive_cli_params": "-hiveconf mapred.job.tracker=some.jobtracker:444"}``
<add>
<add> The ... | 1 |
Ruby | Ruby | remove meaningless line from adapter_test.rb | d3b3925d7d7ee53bfa1236db883924c6a3b09086 | <ide><path>activerecord/test/cases/adapter_test.rb
<ide> def test_create_record_with_pk_as_zero
<ide> end
<ide>
<ide> def test_tables
<del> tables = nil
<ide> tables = @connection.tables
<ide> assert_includes tables, "accounts"
<ide> assert_includes tables, "authors" | 1 |
Go | Go | add testcontainerorphaning integration test | c995c9bb91a2bf5b2038330d063a073d2e0c611c | <ide><path>integration/commands_test.go
<ide> func TestRunCidFile(t *testing.T) {
<ide> })
<ide>
<ide> }
<add>
<add>func TestContainerOrphaning(t *testing.T) {
<add>
<add> // setup a temporary directory
<add> tmpDir, err := ioutil.TempDir("", "project")
<add> if err != nil {
<add> t.Fatal(err)
<add> }
<add> defer os... | 1 |
Javascript | Javascript | name anonymous function in _stream_writable.js | caf2335a47db089a1e1b2c5a90d85cf644f6c355 | <ide><path>lib/_stream_writable.js
<ide> WritableState.prototype.getBuffer = function getBuffer() {
<ide> };
<ide>
<ide> Object.defineProperty(WritableState.prototype, 'buffer', {
<del> get: internalUtil.deprecate(function() {
<add> get: internalUtil.deprecate(function writableStateBufferGetter() {
<ide> return ... | 1 |
Go | Go | remove unused eventbuffer update | 54d021ef8f56f90cc4f7fc604190560361dd6b0c | <ide><path>daemon/logger/awslogs/cloudwatchlogs.go
<ide> func (l *logStream) collectBatch(created chan bool) {
<ide> if !more {
<ide> // Flush event buffer and release resources
<ide> l.processEvent(batch, eventBuffer, eventBufferTimestamp)
<del> eventBuffer = eventBuffer[:0]
<ide> l.publishBatch(batc... | 1 |
Python | Python | fix broken static checks from | f2315bf31b513c18eb266467f6c3036351d15050 | <ide><path>airflow/www/views.py
<ide> def duration(self, session=None):
<ide> dag = dag.partial_subset(task_ids_or_regex=root, include_upstream=True, include_downstream=False)
<ide> chart_height = wwwutils.get_chart_height(dag)
<ide> chart = nvd3.lineChart(
<del> name="lineChart",... | 1 |
Javascript | Javascript | remove unused (local) variables in web/ | d7dfa447cd696843ff178a6b85e588a8fe4633b0 | <ide><path>web/debugger.js
<ide>
<ide> var FontInspector = (function FontInspectorClosure() {
<ide> var fonts;
<del> var panelWidth = 300;
<ide> var active = false;
<ide> var fontAttribute = 'data-font-name';
<ide> function removeSelection() {
<ide> var Stepper = (function StepperClosure() {
<ide> ret... | 4 |
Python | Python | enable memory metrics in tests that need it | 6da129cb3152d93c425aab08a92d68c99e09d252 | <ide><path>tests/test_trainer.py
<ide> def check_mem_metrics(self, trainer, check_func):
<ide> def test_mem_metrics(self):
<ide>
<ide> # with mem metrics enabled
<del> trainer = get_regression_trainer()
<add> trainer = get_regression_trainer(skip_memory_metrics=False)
<ide> self.check... | 1 |
Javascript | Javascript | use map to track handles in master | 847037eaeddbb4ad493a6686f61f8b2d03266ff2 | <ide><path>lib/internal/cluster/master.js
<ide> function removeWorker(worker) {
<ide> delete cluster.workers[worker.id];
<ide>
<ide> if (keys(cluster.workers).length === 0) {
<del> assert(keys(handles).length === 0, 'Resource leak detected.');
<add> assert(handles.size === 0, 'Resource leak detected.');
<ide... | 2 |
Javascript | Javascript | add fast path for utf8 | 770efeab6db5d78199d3b5bbc1bfb44a21637dc0 | <ide><path>lib/internal/webstreams/adapters.js
<ide> const {
<ide> Uint8Array,
<ide> } = primordials;
<ide>
<add>const { TextEncoder } = require('internal/encoding');
<add>
<ide> const {
<ide> ReadableStream,
<ide> isReadableStream,
<ide> const {
<ide> const {
<ide> createDeferredPromise,
<ide> kEmptyObject,... | 1 |
Ruby | Ruby | remove duplicated codes | 30c84aababbd9411a0820e9e238f12b4c6054714 | <ide><path>activerecord/test/cases/database_tasks_test.rb
<ide> require 'cases/helper'
<ide>
<ide> module ActiveRecord
<del> class DatabaseTasksCreateTest < ActiveRecord::TestCase
<add> module DatabaseTasksSetupper
<ide> def setup
<ide> @mysql_tasks, @postgresql_tasks, @sqlite_tasks = stub, stub, stub
<del... | 1 |
Text | Text | fix typo in readme | 58fcb37760ad1d0421f15b1081fd55bdbeccd314 | <ide><path>README.md
<ide> # Chart.js
<ide>
<del>[](https://travis-ci.org/nnnick/Chart.js) [](https://codeclimate.com/github/nnnick/Chart.js)[ => {
<ide> const createSocketSecret = (atomVersion) => {
<ide> const socketSecret = crypto.randomBytes(16).toString('hex')
<ide>
<del> fs.writeFileSync(getSocketSecretPath(atomVersion), socketSecret, 'utf8')
<add> f... | 1 |
Javascript | Javascript | add disabled class to button on press | 51096dc7c79b6020dec8ff4ae7ae44ae327f5ad9 | <ide><path>public/js/lib/coursewares/commonFrameWork_0.0.6.js
<ide> function showCompletion() {
<ide> var didCompleteWith = $('#completed-with').val() || null;
<ide> $('#complete-courseware-dialog').modal('show');
<ide> $('#submit-challenge').click(function(e) {
<del> $('#submit-challenge').attr('disab... | 1 |
Javascript | Javascript | publish validationerrorkeys as css | d34f3bc7a61056a1f4aebb49d2475414fa16d5e4 | <ide><path>src/directive/form.js
<ide> FormController.$inject = ['name', '$element', '$attrs'];
<ide> function FormController(name, element, attrs) {
<ide> var form = this,
<ide> parentForm = element.parent().inheritedData('$formController') || nullFormCtrl,
<add> invalidCount = 0, // used to easily determ... | 4 |
Ruby | Ruby | optimize hash key | 2e95d2ef90a32a7ed6fbb14f4e0a6764fc9e017b | <ide><path>actionview/lib/action_view/helpers/url_helper.rb
<ide> def link_to(name = nil, options = nil, html_options = nil, &block)
<ide> html_options = convert_options_to_data_attributes(options, html_options)
<ide>
<ide> url = url_for(options)
<del> html_options['href'] ||= url
<add> h... | 1 |
PHP | PHP | add type support into set() | 674c973d2942bb2fdb3ed23b41a36c381b59cf05 | <ide><path>lib/Cake/Model/Datasource/Database/Query.php
<ide> public function insert() {
<ide> public function update($table) {
<ide> $this->_dirty = true;
<ide> $this->_type = 'update';
<del> $this->_parts['update'][] = $table;
<add> $this->_parts['update'][0] = $table;
<ide> return $this;
<ide> }
<ide>
<id... | 2 |
PHP | PHP | use regular function for php 7.3 compatibility | 27ddf7da753290940a3a359ef7c3be37542b84d9 | <ide><path>src/Illuminate/Database/Query/Grammars/SqlServerGrammar.php
<ide> protected function compileAnsiOffset(Builder $query, $components)
<ide> // As this moves the order statement to be part of the "select" statement, we need to
<ide> // move the bindings to the right position: right after "select... | 1 |
Javascript | Javascript | hack something up that renders font right again | 75884a6160ba269fd8ebed2b687fd6145eb702f3 | <ide><path>fonts.js
<ide> var serifFonts = {
<ide> 'Wide Latin': true, 'Windsor': true, 'XITS': true
<ide> };
<ide>
<del>// Create the FontMeasure object only on the main thread.
<del>if (!isWorker) {
<del> var FontMeasure = (function FontMeasure() {
<del> var kScalePrecision = 30;
<del> var ctx = document.cr... | 3 |
Python | Python | add test utils | 522201ec9e00ed2fe135a621bde1b288c59ddd25 | <ide><path>keras/utils/test_utils.py
<add>import numpy as np
<add>
<add>def get_test_data(nb_train=1000, nb_test=500, input_shape=(10,), output_shape=(2,),
<add> classification=True, nb_class=2):
<add> '''
<add> classification=True overrides output_shape
<add> (i.e. output_shape is set to (1,)) an... | 1 |
PHP | PHP | remove the log statement for missing templates | 3641d4485f05f6848e0f24f8bf1e57eb83af6c26 | <ide><path>src/Shell/Task/TemplateTask.php
<ide> public function generate($template, $vars = null) {
<ide> try {
<ide> return $this->View->render($template);
<ide> } catch (MissingTemplateException $e) {
<del> $this->log($e->getMessage());
<ide> return '';
<ide> }
<ide> } | 1 |
Ruby | Ruby | fix metadata assertions in direct upload tests | 896e7477f8777a3c6f497bfa82e7ea5b9b9c89ff | <ide><path>activestorage/test/controllers/direct_uploads_controller_test.rb
<ide> class ActiveStorage::S3DirectUploadsControllerTest < ActionDispatch::Integration
<ide> "my_key_2": "my_value_2",
<ide> "platform": "my_platform",
<ide> "library_ID": "12345",
<del> custom: {
<add> "cu... | 1 |
Ruby | Ruby | pass string to factory | 472b6e4fe1f4d7d8a64fde8bc66f11c990b21bc9 | <ide><path>Library/Homebrew/cmd/versions.rb
<ide> def version_for_sha sha
<ide> # Unload the class so Formula#version returns the correct value
<ide> begin
<ide> Formulary.unload_formula name
<del> nostdout { Formula.factory(path).version }
<add> nostdout { Formula.factory(pa... | 1 |
Go | Go | add more tests | 5f0f0c228d438f01c3b9837eb6e8e97133d9d1f5 | <ide><path>pkg/symlink/fs_test.go
<ide> func TestFollowSymlinkRelativePath2(t *testing.T) {
<ide> t.Fatal(err)
<ide> }
<ide> }
<add>
<add>func TestFollowSymlinkScopeLink(t *testing.T) {
<add> tmpdir, err := ioutil.TempDir("", "TestFollowSymlinkScopeLink")
<add> if err != nil {
<add> t.Fatal(err)
<add> }
<add> defer... | 1 |
PHP | PHP | add redis.connection aliases in container | fb9446f27855e6fb330cf4a65f717f32bd20a4c1 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function registerCoreContainerAliases()
<ide> 'queue.failer' => [\Illuminate\Queue\Failed\FailedJobProviderInterface::class],
<ide> 'redirect' => [\Illuminate\Routing\Redirector::class],
<ide> 'redi... | 1 |
Javascript | Javascript | fix jslint warning | 7b4a540422f2155f0e57d963be69960c1325474d | <ide><path>lib/url.js
<ide> Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
<ide> // Back slashes before the query string get converted to forward slashes
<ide> // See: https://code.google.com/p/chromium/issues/detail?id=25916
<ide> var queryIndex = url.indexOf('?'),
<del> splitter... | 1 |
Python | Python | fix version test | 6e6dc21376e781813e4faea7264d661c2e6d67f3 | <ide><path>djangorestframework/compat.py
<ide> def apply_markdown(text):
<ide> extensions = ['headerid(level=2)']
<ide> safe_mode = False,
<ide>
<del> if markdown.version < (2, 1):
<add> if markdown.version_info < (2, 1):
<ide> output_format = markdown.DEFAULT_OUTPUT_FORMAT
<i... | 1 |
Mixed | Ruby | use weak references in descendants tracker | 7432c9226e67de1b9a334a097446ea8c12350dbe | <ide><path>activesupport/CHANGELOG.md
<add>* Use weak references in descendants tracker to allow anonymous subclasses to
<add> be garbage collected.
<add>
<add> *Edgars Beigarts*
<add>
<ide> * Update `ActiveSupport::Notifications::Instrumenter#instrument` to make
<ide> passing a block optional. This will ... | 3 |
Javascript | Javascript | improve path tests | f49bd39cdefce968793c8891774df7a02f67b5ac | <ide><path>test/parallel/test-path.js
<ide> assert.strictEqual(path.win32.delimiter, ';');
<ide> assert.strictEqual(path.posix.delimiter, ':');
<ide>
<ide> if (common.isWindows)
<del> assert.deepStrictEqual(path, path.win32, 'should be win32 path module');
<add> assert.strictEqual(path, path.win32);
<ide> else
<del>... | 1 |
Python | Python | add tf prefix to tf-res test class | 893122f6662acb339c7e1a014834b2670ae00e0b | <ide><path>tests/models/resnet/test_modeling_tf_resnet.py
<ide> from transformers import AutoFeatureExtractor
<ide>
<ide>
<del>class ResNetModelTester:
<add>class TFResNetModelTester:
<ide> def __init__(
<ide> self,
<ide> parent,
<ide> def prepare_config_and_inputs_for_common(self):
<ide>
<id... | 1 |
Go | Go | update imports to be consistent | 40c6d00c97c737d9d3827f159518007803affcc7 | <ide><path>runtime/execdriver/native/create.go
<ide> package native
<ide>
<ide> import (
<ide> "fmt"
<add> "os"
<add>
<ide> "github.com/dotcloud/docker/pkg/label"
<ide> "github.com/dotcloud/docker/pkg/libcontainer"
<ide> "github.com/dotcloud/docker/runtime/execdriver"
<ide> "github.com/dotcloud/docker/runtime/exe... | 2 |
Python | Python | add regression test for #693 | ad934a9abd973141434a12eb346a339d876b5baf | <ide><path>spacy/tests/regression/test_issue693.py
<add># coding: utf8
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>
<add>
<add>@pytest.mark.xfail
<add>@pytest.mark.models
<add>def test_issue693(EN):
<add> """Test that doc.noun_chunks parses the complete sentence."""
<add>
<add> text... | 1 |
Javascript | Javascript | upgrade useinsertioneffect to stable | 02f411578a8e58af8ec28e385f6b0dcb768cdc41 | <ide><path>packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js
<ide> describe('ReactHooksInspectionIntegration', () => {
<ide> ]);
<ide> });
<ide>
<del> // @gate experimental || www
<ide> it('should inspect the current state of all stateful hooks, including useInsertionEffect', ()... | 9 |
Ruby | Ruby | keep options titles consistent to "options" | ac15647bf0e6ed85714dee4e2b14b2e7e6f29320 | <ide><path>actionpack/lib/action_dispatch/routing/mapper.rb
<ide> def root(options = {})
<ide> # match 'photos/:id', :to => 'photos#show'
<ide> # match 'photos/:id', :controller => 'photos', :action => 'show'
<ide> #
<del> # === Supported options
<add> # === Options
<ide> ... | 3 |
Text | Text | remove badge from readme | b587aeee1c1be3633a56b945af3e7c2c303369ca | <ide><path>README.md
<ide> # Keras: Deep Learning library for Theano and TensorFlow
<ide>
<del>
<del>
<ide> ## You have just found Keras.
<ide>
<ide> Keras is a minimalist, highly modular neural networks library, written in Python and capable of running on ... | 1 |
Go | Go | fix godoc for stockruntimename | 8925f735a1940ab3fa363f58e754739a32028cb5 | <ide><path>daemon/config/config_windows.go
<ide> import (
<ide> )
<ide>
<ide> const (
<del> // This is used by the `default-runtime` flag in dockerd as the default value.
<del> // On windows we'd prefer to keep this empty so the value is auto-detected based on other options.
<add> // StockRuntimeName is used by the 'd... | 1 |
Javascript | Javascript | expand hash in stats | 513a1f1c8008117e8c2c7a5833ac2ca77b7737ed | <ide><path>lib/webpack.js
<ide> function webpack(context, moduleName, options, callback) {
<ide> function writeFiles() {
<ide> var remFiles = fileWrites.length;
<ide> fileWrites.forEach(function(writeAction) {
<del> options.events.emit("task", "write " + writeAction[0]);
<del> fileSizeMap[path.basena... | 1 |
Python | Python | add unit test for azurecosmosdocumentsensor | 3c3342f1fd0662401c09bdc2f7de277b53ac1d43 | <ide><path>tests/providers/microsoft/azure/sensors/test_azure_cosmos.py
<add># Licensed to the Apache Software Foundation (ASF) under one
<add># or more contributor license agreements. See the NOTICE file
<add># distributed with this work for additional information
<add># regarding copyright ownership. The ASF licens... | 2 |
PHP | PHP | add comment with the value of the hashed password | c3d3dc14031c44510b948ad17b4c395906603cc6 | <ide><path>database/factories/UserFactory.php
<ide> return [
<ide> 'name' => $faker->name,
<ide> 'email' => $faker->unique()->safeEmail,
<del> 'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm',
<add> 'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQ... | 1 |
PHP | PHP | improve key generation | b9f6d162e64ab0be170db2ae476bf3dcdfb99563 | <ide><path>application/config/database.php
<ide> 'host' => 'localhost',
<ide> 'database' => 'database',
<ide> 'username' => 'root',
<del> 'password' => 'password',
<add> 'password' => '',
<ide> 'charset' => 'utf8',
<ide> ),
<ide>
<ide> 'host' => 'localhost',
<ide> 'database' => 'databa... | 2 |
Python | Python | add test for serializermethodfield | a6901ea36de19a35fa82783c984841b4c3ca0dad | <ide><path>rest_framework/tests/test_fields.py
<ide> class BooleanRequiredSerializer(serializers.Serializer):
<ide> bool_field = serializers.BooleanField(required=True)
<ide>
<ide> self.assertFalse(BooleanRequiredSerializer(data={}).is_valid())
<add>
<add>
<add>class SerializerMethodFieldTest(TestC... | 1 |
Ruby | Ruby | add regression test | 5db56a513286814991c27000af2c0243cc19d1e2 | <ide><path>test/test_insert_manager.rb
<ide> module Arel
<ide> INSERT INTO "users" VALUES (1)
<ide> }
<ide> end
<add>
<add> it "accepts sql literals" do
<add> table = Table.new :users
<add> manager = Arel::InsertManager.new
<add> manager.into table
<add>
<add> ... | 1 |
Javascript | Javascript | add playerreset event | 0e5442f98e1bb3c258b807ca9bf171ca638d4e11 | <ide><path>src/js/mixins/evented.js
<ide> const isEvented = (object) =>
<ide> !!object.eventBusEl_ &&
<ide> ['on', 'one', 'off', 'trigger'].every(k => typeof object[k] === 'function');
<ide>
<add>/**
<add> * Adds a callback to run after the evented mixin applied.
<add> *
<add> * @param {Object} object
<add> * ... | 2 |
Javascript | Javascript | add tests for iswindow | 65a44dd49cf594008ce4d21de4b57abeab7fe52c | <ide><path>test/AngularSpec.js
<ide> describe('angular', function() {
<ide> });
<ide>
<ide>
<add> describe('isWindow', function () {
<add> it('should return true for the Window object', function() {
<add> expect(isWindow(window)).toBe(true);
<add> });
<add>
<add> it('should return false for any objec... | 1 |
PHP | PHP | remove queue responses. no longer needed | 6c22d54f89d1021306b6dfab1604a06d4c9cc53e | <ide><path>src/Illuminate/Queue/Worker.php
<ide> public function runNextJob($connectionName, $queue = null, $delay = 0, $sleep =
<ide> }
<ide>
<ide> $this->sleep($sleep);
<del>
<del> return ['job' => null, 'failed' => false];
<ide> }
<ide>
<ide> /**
<ide> public function process($connec... | 1 |
PHP | PHP | allow bc for nullish db values as strings | 960d3dfbe0db71cf63a761d58532b31b07331369 | <ide><path>src/Database/Type/DateTimeType.php
<ide> public function toDatabase($value, Driver $driver)
<ide> */
<ide> public function toPHP($value, Driver $driver)
<ide> {
<del> if ($value === null) {
<add> if ($value === null || (int)$value === 0) {
<ide> return null;
<ide> ... | 3 |
Javascript | Javascript | add string.prototype.trim to polyfill check | 2b0e51bdbaa0f0e589c8a24e358a7739e70f38dc | <ide><path>src/browser/ui/React.js
<ide> if (__DEV__) {
<ide> Function.prototype.bind,
<ide> Object.keys,
<ide> String.prototype.split,
<add> String.prototype.trim,
<ide>
<ide> // shams
<ide> Object.create,
<ide> if (__DEV__) {
<ide> if (!expectedFeatures[i]) {
<ide> co... | 1 |
PHP | PHP | add docs for runcommand + container | 923446ec557f4e069f097c1233a68febb0443e0c | <ide><path>src/Console/BaseCommand.php
<ide> public function abort(int $code = self::CODE_ERROR): void
<ide> /**
<ide> * Execute another command with the provided set of arguments.
<ide> *
<add> * If you are using a string command name, that command's dependencies
<add> * will not be resolved with... | 1 |
Text | Text | update template.md too | ef2ec255dd30e216ca6f6f88084229d6b6289410 | <ide><path>examples/dll-app-and-vendor/0-vendor/template.md
<ide> This is the vendor build part.
<ide>
<del>It's built separately from the app part. The vendors dll is only built when vendors has changed and not while the normal development cycle.
<add>It's built separately from the app part. The vendors dll is only b... | 1 |
Ruby | Ruby | recommend adoptopenjdk as per | c9a75db27d36dcf3a8fa85590e7e3c0b61de3862 | <ide><path>Library/Homebrew/cask/dsl/caveats.rb
<ide> def eval_caveats(&block)
<ide> if java_version == :any
<ide> <<~EOS
<ide> #{@cask} requires Java. You can install the latest version with:
<del> brew cask install java
<add> brew cask install adoptopenjdk
<ide>... | 1 |
Ruby | Ruby | pass `verbose` to unpack strategies | 81939dc496f54f5f1ce390578c17797ce95de4f5 | <ide><path>Library/Homebrew/download_strategy.rb
<ide> def _fetch
<ide> class NoUnzipCurlDownloadStrategy < CurlDownloadStrategy
<ide> def stage
<ide> UnpackStrategy::Uncompressed.new(cached_location)
<del> .extract(basename: basename_without_params)
<add> ... | 20 |
PHP | PHP | fix cs errors | 06fb49d1974bf46715bc99b04163376633e74609 | <ide><path>src/Database/Schema/MysqlSchema.php
<ide> protected function _convertColumn(string $column): array
<ide> }
<ide> if (strpos($col, 'blob') !== false || $col === 'binary') {
<ide> $lengthName = substr($col, 0, -4);
<del> $length = isset(TableSchema::$columnLengths[$length... | 3 |
Javascript | Javascript | add test case like html-plugin | ed742e071b69c8cab6b60ed9d7ac1731a42aa02a | <ide><path>lib/optimize/RealContentHashPlugin.js
<ide> const toCachedSource = source => {
<ide> * @property {AssetInfo} info
<ide> * @property {Source} source
<ide> * @property {RawSource | undefined} newSource
<add> * @property {RawSource | undefined} newSourceWithoutOwn
<ide> * @property {string} content
<del> * ... | 6 |
Ruby | Ruby | extract the transaction class to a local variable | f5cec76ea8de1b9d076d0b1138ab8c2cabc0390d | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/transaction.rb
<ide> def initialize(connection)
<ide> end
<ide>
<ide> def begin_transaction(options = {})
<del> transaction =
<del> if @stack.empty?
<del> RealTransaction.new(@connection, current_transaction, ... | 1 |
Python | Python | fix missing rowvar in cov call in corrcoeff | b1c994b77d851e49a1c62248b09aeaea5645fbdf | <ide><path>numpy/lib/function_base.py
<ide> def corrcoef(x, y=None, rowvar=1, bias=0, ddof=None):
<ide> cov : Covariance matrix
<ide>
<ide> """
<del> c = cov(x, y, bias=bias, ddof=ddof)
<add> c = cov(x, y, rowvar, bias, ddof)
<ide> try:
<ide> d = diag(c)
<ide> except ValueError: # scalar ... | 1 |
Python | Python | make _compatloggeradapter work on python 2.4 | eec93b23fa568c485e6be59e1b7d31a3c1d54e80 | <ide><path>celery/utils/compat.py
<ide> def critical(self, msg, *args, **kwargs):
<ide> self.log(logging.CRITICAL, msg, args, **kwargs)
<ide> fatal = critical
<ide>
<del> def log(self, level, msg, args, **kwargs):
<add> def log(self, level, msg, *args, **kwargs):
<ide> if self.logger.isEnable... | 1 |
Javascript | Javascript | fix ssr crash on a hasownproperty attribute | f60a7f722cfd0083ca43387798dde7cd95b2fe26 | <ide><path>packages/react-dom/src/__tests__/ReactServerRendering-test.js
<ide> describe('ReactDOMServer', () => {
<ide> (__DEV__ ? '\n in iframe (at **)' : ''),
<ide> );
<ide> });
<add>
<add> it('should not crash on poisoned hasOwnProperty', () => {
<add> let html;
<add> expect(
<add... | 3 |
Ruby | Ruby | fix make_relative_symlink when names differ | 527c841f1cdcf1352187d63058acd7fdb304363f | <ide><path>Library/Homebrew/extend/pathname.rb
<ide> def make_relative_symlink src
<ide> Dir.chdir self.dirname do
<ide> # TODO use Ruby function so we get exceptions
<ide> # NOTE Ruby functions may work, but I had a lot of problems
<del> rv = system 'ln', '-sf', src.relative_path_from(self.dirname... | 1 |
Javascript | Javascript | add known issue for vm module | 9e5d0e3d76a9ae23a43e1849e37e945a6326a0c6 | <ide><path>test/known_issues/test-vm-strict-mode.js
<add>'use strict';
<add>// https://github.com/nodejs/node/issues/12300
<add>
<add>require('../common');
<add>const assert = require('assert');
<add>const vm = require('vm');
<add>
<add>const ctx = vm.createContext({ x: 42 });
<add>
<add>// The following line wrongly t... | 1 |
Javascript | Javascript | reset elements for donut charts | a6c712323f86ed9d12256f824287202c9d641dd4 | <ide><path>src/Chart.Doughnut.js
<ide> _options: this.options,
<ide> }, this);
<ide>
<add> this.resetElements();
<add>
<ide> // Update the chart with the latest data.
<ide> this.update();
<ide>
<ide> return 0;
<ide> }
<ide> ... | 1 |
PHP | PHP | add `@since` annotations | 96dd7a2c8adc36bfb405dd232ce00bd9a2d29628 | <ide><path>src/Validation/Validator.php
<ide> public function allowEmpty($field, $when = true, $message = null)
<ide> * Valid values are true (always), 'create', 'update'. If a callable is passed then
<ide> * the field will allowed to be empty only when the callback returns true.
<ide> * @param string|nu... | 1 |
Ruby | Ruby | remove trailing whitespace | 81d467abbaa6410fc3734314b8a7605163d6c64f | <ide><path>Library/Homebrew/test/support/fixtures/cask/Casks/with-languages.rb
<ide> cask 'with-languages' do
<ide> version '1.2.3'
<del>
<add>
<ide> language "zh" do
<ide> sha256 "abc123"
<ide> "zh-CN"
<ide>
<ide> url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
<ide> homepage 'http://example.com/... | 1 |
Javascript | Javascript | use new uniform() instead of object literals | 66bdaf5a00e4346a2e5e3a735ce913432cba4c28 | <ide><path>examples/js/Mirror.js
<ide> THREE.ShaderLib[ 'mirror' ] = {
<ide>
<ide> uniforms: {
<del> "mirrorColor": { value: new THREE.Color( 0x7F7F7F ) },
<del> "mirrorSampler": { value: null },
<del> "textureMatrix" : { value: new THREE.Matrix4() }
<add> "mirrorColor": new THREE.Uniform( new THREE.Color( 0x7F7F... | 1 |
Text | Text | add gitter link to readme | e52740f09ad610dbd73dff405989258fa2a9fb4b | <ide><path>README.md
<ide> By default, Keras will use TensorFlow as its tensor manipulation library. [Follo
<ide>
<ide> ## Support
<ide>
<del>You can ask questions and join the development discussion on the [Keras Google group](https://groups.google.com/forum/#!forum/keras-users).
<add>You can ask questions and join ... | 2 |
Text | Text | correct apm command | bd9681457610955d13b3e3647f70ac66ce209543 | <ide><path>docs/private-beta/tasks.md
<ide> package authors about breaking API changes.
<ide>
<ide> * Finish APM backend (integrate with GitHub Releases)
<ide> * Streamline Dev workflow
<del> * `api create` - create package scaffolding
<add> * `apm create` - create package scaffolding
<ide> * `apm test` ... | 1 |
Python | Python | eliminate slow check for pypy during numpy import | acdd0e3ffff0db9f45951c6b51887937ca31935e | <ide><path>numpy/core/_internal.py
<ide> import ast
<ide> import re
<ide> import sys
<del>import platform
<ide> import warnings
<ide>
<ide> from .multiarray import dtype, array, ndarray, promote_types
<ide> except ImportError:
<ide> ctypes = None
<ide>
<del>IS_PYPY = platform.python_implementation() == 'PyPy'
<ad... | 2 |
Python | Python | add two tests for different arr_ndims | ffa6cf66b03dab41ae843f3b8117a279fb2ef5c2 | <ide><path>numpy/core/tests/test_shape_base.py
<ide> def test_tuple(self):
<ide> assert_raises_regex(TypeError, 'tuple', np.block, ([1, 2], [3, 4]))
<ide> assert_raises_regex(TypeError, 'tuple', np.block, [(1, 2), (3, 4)])
<ide>
<add> def test_different_ndims(self):
<add> a = 1.
<add> ... | 1 |
Python | Python | use image_connection in v2 os update_image | 2321d34f7d095d98470c3bc1aaeb1d77b0d94bd6 | <ide><path>libcloud/compute/drivers/openstack.py
<ide> def ex_update_image(self, image_id, data):
<ide> """
<ide> Patch a NodeImage. Can be used to set visibility
<ide> :param image_id: ID of the image which should be used
<add>
<ide> :type image_id: ``str``
<ide> :par... | 1 |
Javascript | Javascript | add a comma for better reading flow | 0c9480de8c122dd2da10ed745dade02e0479aba8 | <ide><path>src/ng/directive/ngTransclude.js
<ide> * You can specify that you want to insert a named transclusion slot, instead of the default slot, by providing the slot name
<ide> * as the value of the `ng-transclude` or `ng-transclude-slot` attribute.
<ide> *
<del> * Any existing content of the element that this d... | 1 |
Python | Python | enhance ipex integration in trainer | b7d8bd378caa170b54c3a07949d9f85b73c29333 | <ide><path>src/transformers/testing_utils.py
<ide> def require_intel_extension_for_pytorch(test_case):
<ide> """
<ide> Decorator marking a test that requires Intel Extension for PyTorch.
<ide>
<del> These tests are skipped when Intel Extension for PyTorch isn't installed.
<add> These tests are skipped wh... | 4 |
Ruby | Ruby | simplify build options api | 3f9e88ae69b1ce7c854008b8cbebc38df11b8701 | <ide><path>Library/Homebrew/cmd/options.rb
<ide> def options
<ide> ff.each do |f|
<ide> next if f.build.empty?
<ide> if ARGV.include? '--compact'
<del> puts f.build.collect {|k,v| "--"+k} * " "
<add> puts f.build.as_flags * " "
<ide> else
<ide> puts f.name if ff.length > 1
<i... | 3 |
PHP | PHP | add array dependencies to translator functions | d9a3d99ce657d5a9bde485a4027f08f5a1b7ab70 | <ide><path>src/Illuminate/Translation/Translator.php
<ide> public function has($key, $locale = null)
<ide> * @param string $locale
<ide> * @return string
<ide> */
<del> public function get($key, $replace = array(), $locale = null)
<add> public function get($key, array $replace = array(), $locale = null)
<ide> ... | 1 |
PHP | PHP | improve code readibility | 7630f2ea0dddc7ab6f114b46998d4f9a6223d81c | <ide><path>src/Database/QueryCompiler.php
<ide> public function compile(Query $query, ValueBinder $generator): string
<ide> */
<ide> protected function _sqlCompiler(string &$sql, Query $query, ValueBinder $generator): Closure
<ide> {
<del> return function ($parts, $name) use (&$sql, $query, $generat... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.