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 |
|---|---|---|---|---|---|
Text | Text | update turborepo examples link | d83ceeec080fb5ab52df31d57978b1ce14139133 | <ide><path>examples/with-turbo/README.md
<ide> The official examples are maintained by the Turborepo team:
<ide>
<del>- [Typescript](https://github.com/vercel/turborepo/tree/main/examples/basic)
<add>- [Turborepo + Next.js Examples](https://github.com/vercel/turborepo/tree/main/examples/with-nextjs) | 1 |
Go | Go | remove unused experimental code | 16fe5a12891984ae5d0b28e737958566a13958ae | <ide><path>cmd/dockerd/config_experimental.go
<del>package main
<del>
<del>import (
<del> "github.com/docker/docker/daemon/config"
<del> "github.com/spf13/pflag"
<del>)
<del>
<del>func attachExperimentalFlags(conf *config.Config, cmd *pflag.FlagSet) {
<del>}
<ide><path>cmd/dockerd/config_solaris.go
<ide> func installCo... | 5 |
Javascript | Javascript | add known issue test for sync writable callback | 5bef2ccf20cceda7975f8bce860e0f60595482fc | <ide><path>test/known_issues/test-stream-writable-sync-error.js
<add>'use strict';
<add>const common = require('../common');
<add>
<add>// Tests for the regression in _stream_writable discussed in
<add>// https://github.com/nodejs/node/pull/31756
<add>
<add>// Specifically, when a write callback is invoked synchronousl... | 1 |
Python | Python | fix bug in testing multiple browsers | 1532e86dcb82ff78d2fe0b52c0b7f1bc45eca0ce | <ide><path>test.py
<ide> def setUp(manifestFile, masterMode):
<ide> assert not os.path.isdir(TMPDIR)
<ide>
<ide> testBrowsers = [ b for b in
<del> ( 'firefox5', )
<del>#'chrome12', 'chrome13', 'firefox4', 'firefox6','opera11' ):
<add> ( 'firefox5', 'firefox6', )
<add>#'c... | 1 |
Go | Go | fix imagesummary.size value | be20dc15af0cb281bd6d11586cfcc96bd50d12ca | <ide><path>cli/command/formatter/image.go
<ide> func (c *imageContext) CreatedAt() string {
<ide>
<ide> func (c *imageContext) Size() string {
<ide> c.AddHeader(sizeHeader)
<del> //NOTE: For backward compatibility we need to return VirtualSize
<del> return units.HumanSizeWithPrecision(float64(c.i.VirtualSize), 3)
<ad... | 2 |
Javascript | Javascript | fix lint errors | 2655e47d8cb64c003e73ad3a86ad2e0ec609be51 | <ide><path>examples/js/misc/GPUComputationRenderer.js
<ide> * @param {WebGLRenderer} renderer The renderer
<ide> */
<ide>
<del>THREE.GPUComputationRenderer = function( sizeX, sizeY, renderer ) {
<add>THREE.GPUComputationRenderer = function ( sizeX, sizeY, renderer ) {
<ide>
<ide> this.variables = [];
<ide>
<ide>... | 2 |
Text | Text | add strategic initiatives from tsc repo | f1e936ff1590addc5efbcd04d2e71f8ee1b526a5 | <ide><path>README.md
<ide> For information on reporting security vulnerabilities in Node.js, see
<ide>
<ide> * [Contributing to the project][]
<ide> * [Working Groups][]
<del>* [Strategic Initiatives][]
<add>* [Strategic initiatives][]
<ide> * [Technical values and prioritization][]
<ide>
<ide> ## Current project tea... | 2 |
Ruby | Ruby | remove unused method in routeset test | 30f93dc65ed47d193ce5ff550ada4c14baf41e4d | <ide><path>actionpack/test/dispatch/routing/route_set_test.rb
<ide> def call(env)
<ide> end
<ide>
<ide> private
<del> def clear!
<del> @set.clear!
<del> end
<del>
<ide> def draw(&block)
<ide> @set.draw(&block)
<ide> end | 1 |
Java | Java | test square brackets with index/key expressions | 6f64cfd1e5305566312bfa2125774aa4e3edfd75 | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterUtils.java
<ide> /*
<del> * Copyright 2002-2021 the original author or authors.
<add> * Copyright 2002-2022 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> ... | 4 |
Javascript | Javascript | improve types for react native styles | da047966e4c2064a48e02ff74830c99808d8194b | <ide><path>Libraries/Inspector/ElementProperties.js
<ide> const flattenStyle = require('flattenStyle');
<ide> const mapWithSeparator = require('mapWithSeparator');
<ide> const openFileInEditor = require('openFileInEditor');
<ide>
<add>import type {StyleObj} from 'StyleSheetTypes';
<add>
<ide> class ElementProperties e... | 3 |
Javascript | Javascript | add context provider/consumer to getcomponentname | c4abfa401503b483944d044c2d6c12c5562a1a8b | <ide><path>packages/shared/getComponentName.js
<ide> import type {Fiber} from 'react-reconciler/src/ReactFiber';
<ide> import {
<ide> REACT_ASYNC_MODE_TYPE,
<ide> REACT_CALL_TYPE,
<add> REACT_CONTEXT_TYPE,
<ide> REACT_FORWARD_REF_TYPE,
<ide> REACT_FRAGMENT_TYPE,
<del> REACT_RETURN_TYPE,
<ide> REACT_PORTAL_T... | 1 |
Java | Java | avoid package import cycles | 6db20eb77346c6420eef48883e89cfeb6eb1d13a | <ide><path>spring-jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/AbstractEmbeddedDatabaseConfigurer.java
<ide> import org.apache.commons.logging.Log;
<ide> import org.apache.commons.logging.LogFactory;
<ide>
<del>import org.springframework.jdbc.support.JdbcUtils;
<del>
<ide> /**
<ide> * Base class fo... | 2 |
Javascript | Javascript | return empty string when given null/undefined | 0645099e027cd0e31a828572169a8c25474e2b5c | <ide><path>src/serialize.js
<ide> jQuery.param = function( a, traditional ) {
<ide> encodeURIComponent( value == null ? "" : value );
<ide> };
<ide>
<add> if ( a == null ) {
<add> return "";
<add> }
<add>
<ide> // If an array was passed in, assume that it is an array of form elements.
<ide> if ( Array.isArray... | 2 |
Python | Python | add tests for underscore | 9bd81917397e558464e1dd86ab31f1b660279e62 | <ide><path>spacy/tests/test_underscore.py
<add>from mock import Mock
<add>from ..tokens.underscore import Underscore
<add>
<add>
<add>def test_create_doc_underscore():
<add> doc = Mock()
<add> doc.doc = doc
<add> uscore = Underscore(Underscore.doc_extensions, doc)
<add> assert uscore._doc is doc
<add> as... | 1 |
Ruby | Ruby | fix another constant reference | 5539c97191aa499d2e1fc78fe97d534bd744076a | <ide><path>Library/Homebrew/extend/ENV.rb
<ide> def remove_cc_etc
<ide> removed
<ide> end
<ide> def append_to_cflags newflags
<del> append(CC_FLAG_VARS, newflags)
<add> append(HomebrewEnvExtension::CC_FLAG_VARS, newflags)
<ide> end
<ide> def remove_from_cflags val
<del> remove CC_FLAG_VARS, val
<ad... | 1 |
Javascript | Javascript | fix documentation for ie | 55ce859998ad1f34ae84175cbb322fd8ce498970 | <ide><path>docs/spec/ngdocSpec.js
<ide> describe('ngdoc', function(){
<ide> '<doc:source>\n<>\n</doc:source></doc:example> after');
<ide> doc.parse();
<ide> expect(doc.description).toContain('<p>before </p><doc:example>' +
<del> '<doc:source>\n<>\n</doc:source></doc:example>... | 3 |
Text | Text | add a note about pr approvals [ci skip] | dbb3ca338e21d08e18163989cf05cfa042c850ea | <ide><path>guides/source/contributing_to_ruby_on_rails.md
<ide> While you're waiting for feedback on your pull request, open up a few other
<ide> pull requests and give someone else some! I'm sure they'll appreciate it in
<ide> the same way that you appreciate feedback on your patches.
<ide>
<add>Note that your pull r... | 1 |
Javascript | Javascript | remove unecessary _this binding | fe73712e5b24f5a94d83df128e18ef5af2ca9e01 | <ide><path>lib/Compilation.js
<ide> class Compilation extends Tapable {
<ide> recursive,
<ide> callback
<ide> ) {
<del> let _this = this;
<del> const start = _this.profile && Date.now();
<del> const currentProfile = _this.profile && {};
<add> const start = this.profile && Date.now();
<add> const currentProfil... | 1 |
Javascript | Javascript | save a copy of symbol in primordials | fda80e3c99855083882a01d0d2b28b7543777b32 | <ide><path>lib/internal/bootstrap/primordials.js
<ide> primordials.SafePromise = makeSafe(
<ide> 'Function',
<ide> 'Object',
<ide> 'RegExp',
<del> 'String'
<add> 'String',
<add> 'Symbol',
<ide> ].forEach((name) => {
<ide> const target = primordials[name] = Object.create(null);
<ide> copyProps(global[name],... | 1 |
Java | Java | add mergedannotation.gettypehierarchy method | 3b145a5a73ae4418d7d5ad2b0f10b0dd48ab3fcf | <ide><path>spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java
<ide> public static MultiValueMap<String, Object> getAllAnnotationAttributes(Annotated
<ide>
<ide> Adapt[] adaptations = Adapt.values(classValuesAsString, nestedAnnotationsAsMap);
<ide> return getAnnotations(element... | 8 |
PHP | PHP | introduce the `strip` argument to router | 52be365598e64d3f7178475a3a3f0f46245c70e3 | <ide><path>lib/Cake/Routing/Router.php
<ide> public static function reverse($params, $full = false) {
<ide> * @param array|string $url URL to normalize Either an array or a string URL.
<ide> * @return string Normalized URL
<ide> */
<del> public static function normalize($url = '/') {
<add> public static function nor... | 2 |
Javascript | Javascript | remove dead code in compilation.js | 847bfa4c6379679540df02e4fae3da6c838d454a | <ide><path>lib/Compilation.js
<ide> class Compilation extends Tapable {
<ide> const cacheName = (cacheGroup || "m") + identifier;
<ide> if (this.cache && this.cache[cacheName]) {
<ide> const cacheModule = this.cache[cacheName];
<del>
<del> let rebuild = true;
<del> if (this.fileTimestamps && this.contextTime... | 1 |
Java | Java | expose channelid from reactornettywebsocketsession | eb7b206142aa486fa49c609305e59190247ecb09 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/ReactorNettyWebSocketSession.java
<ide>
<ide> import java.util.function.Consumer;
<ide>
<add>import io.netty.channel.ChannelId;
<ide> import io.netty.handler.codec.http.websocketx.WebSocketFrame;
<ide> import org.reactivestreams.P... | 1 |
Javascript | Javascript | fix creation of binary folders | 415861f1f92e570ae4fcd4b5b8d8d7ac8fcbdce3 | <ide><path>src/main-process/auto-updater-win32.js
<ide> class AutoUpdater extends EventEmitter {
<ide>
<ide> quitAndInstall() {
<ide> if (SquirrelUpdate.existsSync()) {
<del> SquirrelUpdate.restartAtom(require('electron').app);
<add> SquirrelUpdate.restartAtom();
<ide> } else {
<ide> require(... | 2 |
Text | Text | use serial comma in cluster docs | 74af116b2e0774566225ec080b5ad7684ab4ac9a | <ide><path>doc/api/cluster.md
<ide> primary.
<ide>
<ide> The event handler is executed with two arguments, the `worker` contains the
<ide> worker object and the `address` object contains the following connection
<del>properties: `address`, `port` and `addressType`. This is very useful if the
<add>properties: `address`... | 1 |
Java | Java | add support of init and destroy methods | 672555a568445d27ab3d1efc0d87dd9bde779acc | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/annotation/InitDestroyAnnotationBeanPostProcessor.java
<ide> import java.util.Map;
<ide> import java.util.Set;
<ide> import java.util.concurrent.ConcurrentHashMap;
<add>import java.util.stream.Stream;
<ide>
<ide> import org.apache.commons.logging.... | 10 |
Python | Python | remove some outdated comments from test | c13154933e35eb34563c8c7d65e7b527fd813a7f | <ide><path>test/test_masked_recurrent.py
<ide>
<ide> model = Sequential()
<ide> model.add(Embedding(5, 2, zero_is_mask=True))
<del>#model.add(SimpleRNN(2,3, activation='relu', return_sequences=True))
<del>#model.add(SimpleRNN(3,3, activation='relu'))
<ide> model.add(SimpleRNN(2,3, activation='relu', return_sequences=T... | 1 |
Ruby | Ruby | keep `info/#{f.name}/dir` files in cleaner | fbb3ccbfd6d6ea896bf1ae7b5f20ea8c267511fe | <ide><path>Library/Homebrew/cleaner.rb
<ide> def clean
<ide> # Get rid of any info 'dir' files, so they don't conflict at the link stage
<ide> Dir.glob(@f.info/"**/dir").each do |f|
<ide> info_dir_file = Pathname(f)
<del> observe_file_removal info_dir_file if info_dir_file.file? && !@f.skip_clean?(in... | 2 |
Text | Text | add issue template | 36dc0574afda6f70fb38d7612a2485d5686705ac | <ide><path>.github/issue_template.md
<add><!--- Provide a general summary of the issue in the Title above -->
<add>
<add><!--
<add> Thank you very much for contributing to Next.js by creating an issue! ❤️
<add> To avoid duplicate issues we ask you to check off the following list
<add>-->
<add>
<add><!-- Checked c... | 1 |
Javascript | Javascript | add comments migration to loopback script | 2422663f3499cf76b354a20f7ce6680c76d1d752 | <ide><path>seed/loopbackMigration.js
<ide> var storyCount = dbObservable
<ide> })
<ide> .count();
<ide>
<add>var commentCount = dbObservable
<add> .flatMap(function(db) {
<add> return createQuery(db, 'comments', {});
<add> })
<add> .withLatestFrom(dbObservable, function(comments, db) {
<add> return {
<add... | 1 |
Mixed | Go | initialize volumes when container is created | 7107898d5cf0f86dc1c6dab29e9dbdad3edc9411 | <ide><path>daemon/create.go
<ide> func (daemon *Daemon) Create(config *runconfig.Config, hostConfig *runconfig.Hos
<ide> return nil, nil, err
<ide> }
<ide> }
<add> if err := container.Mount(); err != nil {
<add> return nil, nil, err
<add> }
<add> defer container.Unmount()
<add> if err := container.prepareVolumes... | 3 |
Ruby | Ruby | fix indent on test case [ci skip] | b9cd5a29dd4c6142b19c861fbf1a67452320b3dd | <ide><path>activerecord/test/cases/associations/has_many_associations_test.rb
<ide> def test_select_with_block
<ide> assert_equal [1], posts(:welcome).comments.select { |c| c.id == 1 }.map(&:id)
<ide> end
<ide>
<del> def test_select_without_foreign_key
<add> def test_select_without_foreign_key
<ide> asser... | 1 |
Go | Go | prevent ingress deletion when endpoint count == 1 | d84f18271771fa470bbab0ca4d2c4d4ad96ebc0d | <ide><path>libnetwork/network.go
<ide> func (n *network) delete(force bool) error {
<ide>
<ide> if len(n.loadBalancerIP) != 0 {
<ide> endpoints := n.Endpoints()
<del> if force || len(endpoints) == 1 {
<add> if force || (len(endpoints) == 1 && !n.ingress) {
<ide> n.deleteLoadBalancerSandbox()
<ide> }
<ide> ... | 1 |
Ruby | Ruby | remove extraneous file | 29a9225b3fdda1c276b5930fa1402f3811ad7d50 | <ide><path>scripts/helpers/parsed_file.rb
<add>require 'fileutils'
<add>
<add>class ParsedFile
<add>
<add> def get_latest_file(directory)
<add> puts "- retrieving latest file in directory: #{directory}"
<add> Dir.glob("#{directory}/*").max_by(1) {|f| File.mtime(f)}[0]
<add> end
<add>
<add> def save_to(director... | 1 |
Python | Python | fix the syntax | d26c9a61e964ae066209a8ab73baedbfb1842d96 | <ide><path>docs/examples/compute/openstack_floating_ips.py
<ide> ex_tenant_name='your_tenant')
<ide>
<ide> # get the first pool - public by default
<del>pool, = driver.ex_list_floating_ip_pools()
<add>pool = driver.ex_list_floating_ip_pools()[0]
<ide>
<ide> # create an ip in the pool
<ide> floating... | 1 |
Python | Python | fix sparse checkout | dc22771f879455a81d8338588aa726a58b08bf50 | <ide><path>spacy/cli/_util.py
<ide> def git_sparse_checkout(repo, subpath, dest, branch):
<ide> run_command(cmd)
<ide> # Now we need to find the missing filenames for the subpath we want.
<ide> # Looking for this 'rev-list' command in the git --help? Hah.
<del> cmd = f"git -C {tmp_dir} re... | 1 |
Javascript | Javascript | find duplicates globally. don't fallback shortest | 15e83490b8023e34edb995346b19e8318e7be7fb | <ide><path>lib/ModuleFilenameHelpers.js
<ide> ModuleFilenameHelpers.createFooter = function createFooter(module, requestShorte
<ide> }
<ide> };
<ide>
<del>ModuleFilenameHelpers.replaceDuplicates = function replaceDuplicates(array, fn) {
<add>ModuleFilenameHelpers.replaceDuplicates = function replaceDuplicates(array, ... | 2 |
Text | Text | add v3.21.0-beta.3 to changelog | 1b8e122635607afe8f967a00f9a33c52ab1f3472 | <ide><path>CHANGELOG.md
<ide> # Ember Changelog
<ide>
<add>### v3.21.0-beta.3 (July 27, 2020)
<add>
<add>- [#19048](https://github.com/emberjs/ember.js/pull/19048) [BUGFIX] Update router.js to ensure transition.abort works for query param only transitions.
<add>- [#19056](https://github.com/emberjs/ember.js/pull/19056... | 1 |
PHP | PHP | add support for "_serialized" = true for xmlview | 62f75376eac496e7f5f351c02085690ce623e667 | <ide><path>src/View/XmlView.php
<ide> use Cake\Network\Response;
<ide> use Cake\Utility\Hash;
<ide> use Cake\Utility\Xml;
<add>use Cake\View\SerializeView;
<ide>
<ide> /**
<ide> * A view class that is used for creating XML responses.
<ide> * If you don't use the `_serialize` key, you will need a view. You can use ex... | 2 |
Ruby | Ruby | simplify activesupport.test_order definition | 9f7ab82ad2d458b2bc5b3c5dba7cfc577a4b87eb | <ide><path>activesupport/lib/active_support.rb
<ide> def self.eager_load!
<ide> NumberHelper.eager_load!
<ide> end
<ide>
<del> @@test_order = nil
<del>
<del> def self.test_order=(new_order) # :nodoc:
<del> @@test_order = new_order
<del> end
<del>
<del> def self.test_order # :nodoc:
<del> @@test_order
<... | 1 |
Text | Text | remove duplicate sentence in readme.md | 1146b3546a847dcd832148b6dbc96c9109744af1 | <ide><path>README.md
<ide> friendly** by using hashes.
<ide>
<ide> [Optimization documentation](https://webpack.github.io/docs/optimization.html)
<ide>
<del>webpack optimizes in several ways. It also makes your chunks **cache-friendly** by using hashes.
<del>
<ide> # A small example of what's possible
<ide>
<ide> ``... | 1 |
Ruby | Ruby | use json to cache descriptions | 65996b5887ac6e4b669e9460b8e2a4fbc7171984 | <ide><path>Library/Homebrew/descriptions.rb
<ide> require "formula"
<ide> require "formula_versions"
<del>require "csv"
<ide>
<ide> class Descriptions
<del> CACHE_FILE = HOMEBREW_CACHE + "desc_cache"
<add> CACHE_FILE = HOMEBREW_CACHE + "desc_cache.json"
<ide>
<ide> def self.cache
<ide> @cache || self.load_cac... | 1 |
Ruby | Ruby | remove extra case | 7c17fdfd11ccb991812cabf9d16acaa65eda08a5 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract/quoting.rb
<ide> def type_cast(value, column)
<ide> return value unless column
<ide>
<ide> case column.type
<del> when :binary then value
<ide> when :integer then value.to_i
<ide> when :float then va... | 1 |
Python | Python | add example section in the -h tag | 7bdbfea67b7965e49d5245bc6d3a19fcc60a840e | <ide><path>glances/core/glances_main.py
<ide> class GlancesMain(object):
<ide> username = "glances"
<ide> password = ""
<ide>
<add> # Exemple of use
<add> example_of_use = "\
<add>Examples of use:\n\
<add>\n\
<add>Monitor local machine (standalone mode):\n\
<add> $ glances\n\
<add>\n\
<add>Monitor local... | 1 |
Mixed | Go | add cert-expiry to swarm update | 7d8d51aa9d0c1737ff7f97a3efac0a2ef0975b56 | <ide><path>api/client/swarm/update.go
<ide> type updateOptions struct {
<ide> secret string
<ide> taskHistoryLimit int64
<ide> dispatcherHeartbeat time.Duration
<add> nodeCertExpiry time.Duration
<ide> }
<ide>
<ide> func newUpdateCommand(dockerCli *client.DockerCli) *cobra.Command {
<ide> func ... | 2 |
PHP | PHP | avoid code duplication | 6861cb9cbcda6054e600e221f457064a8b3ae1c4 | <ide><path>src/Filesystem/Filesystem.php
<ide> class Filesystem
<ide> public const TYPE_DIR = 'dir';
<ide>
<ide> /**
<del> * Find files (non-recursively) in given directory path.
<add> * Find files / directories (non-recursively) in given directory path.
<ide> *
<ide> * @param string $path Di... | 1 |
PHP | PHP | fix bug in many to many eager loading | cc4514e8f6918bf0072da22f9dd55c94268c945c | <ide><path>laravel/database/eloquent/query.php
<del><?php namespace Laravel\Database\Eloquent; use Laravel\Database;
<add><?php namespace Laravel\Database\Eloquent;
<add>
<add>use Laravel\Database;
<add>use Laravel\Database\Eloquent\Relationships\Has_Many_And_Belongs_To;
<ide>
<ide> class Query {
<ide>
<ide> public f... | 1 |
Mixed | Javascript | deprecate repl.inputstream and repl.outputstream | e11b5d3d7d76738e1e2f3baaa9aef0d6bfe298a2 | <ide><path>doc/api/deprecations.md
<ide> Type: Documentation-only
<ide>
<ide> Use [`request.destroy()`][] instead of [`request.abort()`][].
<ide>
<add><a id="DEP0XXX"></a>
<add>### DEP0XXX: `repl.inputStream` and `repl.outputStream`
<add><!-- YAML
<add>changes:
<add> - version: REPLACEME
<add> pr-url: https://git... | 4 |
Java | Java | suppress recent deprecation warnings in tests | 8af0151f1b207d70ca804610fdedc24733d7d89a | <ide><path>spring-core/src/test/java/org/springframework/util/Log4jConfigurerTests.java
<ide> * @author Juergen Hoeller
<ide> * @author Sam Brannen
<ide> */
<add>@SuppressWarnings("deprecation")
<ide> public class Log4jConfigurerTests {
<ide>
<ide> @Test
<ide><path>spring-jdbc/src/test/java/org/springframework/jdb... | 3 |
Javascript | Javascript | fix a case where attrmorph was being extended | b9020834ad51cd414678c8b3101c92907b539f2e | <ide><path>packages/ember-htmlbars/lib/morphs/attr-morph.js
<ide> export var styleWarning = '' +
<ide>
<ide> function EmberAttrMorph(element, attrName, domHelper, namespace) {
<ide> HTMLBarsAttrMorph.call(this, element, attrName, domHelper, namespace);
<add>
<add> this.streamUnsubscribers = null;
<ide> }
<ide>
<id... | 1 |
Javascript | Javascript | increase inspect coverage | 4abe50c1d1a5b3ab943dd078de370bacd97ec9ef | <ide><path>test/parallel/test-util-inspect.js
<ide> assert(!/Object/.test(
<ide> 'ArrayBuffer { (detached), byteLength: 0 }');
<ide> }
<ide>
<add>// Truncate output for ArrayBuffers using plural or singular bytes
<add>{
<add> const ab = new ArrayBuffer(3);
<add> assert.strictEqual(util.inspect(a... | 1 |
Python | Python | fix syntax error and formatting in test (see ) | d70a64d78bb73cf6cfa381b5ca67cb6eb91d55b1 | <ide><path>spacy/tests/regression/test_issue910.py
<add># coding: utf8
<ide> from __future__ import unicode_literals
<add>
<ide> import json
<ide> import random
<ide> import contextlib
<ide> import shutil
<ide> import pytest
<ide> import tempfile
<ide> from pathlib import Path
<del>
<add>from thinc.neural.optimizers im... | 1 |
Text | Text | add section on reading files | 66e1fa154ca2ad90869de8967c3ff7fd6c077a28 | <ide><path>docs/basic-features/data-fetching.md
<ide> export const getStaticProps: GetStaticProps = async context => {
<ide> }
<ide> ```
<ide>
<add>### Reading files: Use `process.cwd()`
<add>
<add>Files can be read directly from the filesystem in `getStaticProps`.
<add>
<add>In order to do so you have to get the full... | 1 |
Javascript | Javascript | add coverage for err_tls_invalid_protocol_version | cc3f2b386c6ee34f5574c69c29647165a9bc3aef | <ide><path>test/parallel/test-tls-basic-validations.js
<ide> assert.throws(
<ide> }
<ide> );
<ide> }
<add>
<add>assert.throws(() => { tls.createSecureContext({ minVersion: 'fhqwhgads' }); },
<add> {
<add> code: 'ERR_TLS_INVALID_PROTOCOL_VERSION',
<add> name: 'TypeError'
... | 1 |
Javascript | Javascript | add missing return in checkouthead | 196fb35b6553fd978839916994fc3b857ff3279c | <ide><path>src/git-repository-async.js
<ide> module.exports = class GitRepositoryAsync {
<ide> var checkoutOptions = new Git.CheckoutOptions()
<ide> checkoutOptions.paths = [this._gitUtilsRepo.relativize(_path)]
<ide> checkoutOptions.checkoutStrategy = Git.Checkout.STRATEGY.FORCE | Git.Checkout.STRATE... | 1 |
Ruby | Ruby | remove redundant accessors | 436ec799a46533190fd10030709bcce741f612c5 | <ide><path>actioncable/test/stubs/test_adapter.rb
<ide> # frozen_string_literal: true
<ide>
<ide> class SuccessAdapter < ActionCable::SubscriptionAdapter::Base
<del> class << self; attr_accessor :subscribe_called, :unsubscribe_called end
<del>
<ide> def broadcast(channel, payload)
<ide> end
<ide> | 1 |
Ruby | Ruby | implement #== for column | 79437642d537f24a36d9e649713941eebfff35c2 | <ide><path>activerecord/lib/active_record/connection_adapters/column.rb
<ide> def with_type(type)
<ide> clone.instance_variable_set('@cast_type', type)
<ide> end
<ide> end
<add>
<add> def ==(other)
<add> other.name == name &&
<add> other.default == default &&
<add> ... | 1 |
Text | Text | fix logo in readme.md | 8d07c2d1aeb3326f1f62854e6adfd26f0d8e0342 | <ide><path>README.md
<ide> It benefits directly from the experience accumulated over several years
<ide> of large-scale operation and support of hundreds of thousands of
<ide> applications and databases.
<ide>
<del>
<add>
<ide> For such flags, the default value is just the initial value of the variable.
<ide>
<del> You can also add "deprecated" flags, they are still usable, bur are not shown
<add> You can also add "deprecated" flags,... | 1 |
Javascript | Javascript | resolve eslint error | 87963c4d0136215a3e50e1c8d35586d5b9c2dad5 | <ide><path>packages/react-codemod/transforms/class.js
<ide> module.exports = (file, api, options) => {
<ide> );
<ide> }
<ide> return !invalidProperties.length;
<del> }
<add> };
<ide>
<ide> const hasMixins = classPath => {
<ide> if (ReactUtils.hasMixins(classPath)) { | 1 |
Text | Text | add jump to what's new in 2.0 link at the top | 5bebaf159448e971527df60282007fe80dc6270b | <ide><path>README.md
<ide> Hackathon Starter 2.0 [ {
<ide> // A ChainNode watches a single key on an object. If you provide a starting
<ide> // value for the key then the node won't actually watch it. For a root node
<ide> // pass null for parent and key and object for value.
<del>var Chai... | 1 |
Javascript | Javascript | add test for getting parse error from http client | ee9af669905aeddd6da32712e711aeee9f9d36b3 | <ide><path>test/simple/test-http-client-parse-error.js
<add>var common = require("../common");
<add>var assert = require('assert');
<add>
<add>var http = require('http');
<add>var net = require('net');
<add>
<add>// Create a TCP server
<add>var srv = net.createServer(function(c) {
<add> c.write('bad http - should trig... | 1 |
Python | Python | allow arbitrary output shapes for custom losses | 6b122ba25f79ab0a43ff8d78f65cfba36a7bcee5 | <ide><path>keras/engine/training.py
<ide> from .. import callbacks as cbks
<ide>
<ide>
<del>def standardize_input_data(data, names, shapes=None, check_batch_dim=True,
<add>def standardize_input_data(data, names, shapes=None,
<add> check_batch_dim=True,
<ide> except... | 1 |
Ruby | Ruby | add missing require and fixtures | 1d38c82b7ad98d64f5ee45c0e08d5826e14d98c0 | <ide><path>activerecord/test/cases/adapters/postgresql/timestamp_test.rb
<ide> require 'cases/helper'
<ide> require 'models/developer'
<add>require 'models/topic'
<ide>
<ide> class TimestampTest < ActiveRecord::TestCase
<add> fixtures :topics
<add>
<ide> def test_group_by_date
<ide> keys = Topic.group("date_tru... | 1 |
Javascript | Javascript | check alternate in reacttreetraversal | 1e722e4a97dc03632d0f88ae47b2581ca9619736 | <ide><path>src/renderers/shared/shared/ReactTreeTraversal.js
<ide> function getLowestCommonAncestor(instA, instB) {
<ide> // Walk in lockstep until we find a match.
<ide> var depth = depthA;
<ide> while (depth--) {
<del> if (instA === instB) {
<add> if (instA === instB || instA === instB.alternate) {
<ide> ... | 1 |
Javascript | Javascript | use strict equalities in web/compatibility.js | 097bf41285f69b6558f3104b2c0f73b393e6b344 | <ide><path>web/compatibility.js
<ide> if (typeof PDFJS === 'undefined') {
<ide> 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
<ide> window.atob = function (input) {
<ide> input = input.replace(/=+$/, '');
<del> if (input.length % 4 == 1) {
<add> if (input.length % 4 === 1) {
<ide>... | 1 |
Text | Text | remove spaces around slashes | 85fe13402659a174773bfecebac6e8bb5164f572 | <ide><path>doc/api/assert.md
<ide> validating against a string property. See below for examples.
<ide> If specified, `message` will be the message provided by the `AssertionError` if
<ide> the block fails to throw.
<ide>
<del>Custom validation object / error instance:
<add>Custom validation object/error instance:
<ide... | 8 |
PHP | PHP | add tests for put method of filestore | c7f4c23e17013b9c6f86a8fd1d37a590e2ad29b4 | <ide><path>tests/Cache/CacheFileStoreTest.php
<ide> public function testPutCreatesMissingDirectories()
<ide> $this->assertTrue($result);
<ide> }
<ide>
<del> public function testExpiredItemsReturnNull()
<add> public function testPutWillConsiderZeroAsEternalTime()
<add> {
<add> $files = $this... | 1 |
Ruby | Ruby | remove unused code | 1f53f06b08495395d7134bfa70093a2df5c82f6c | <ide><path>activerecord/lib/active_record/type/adapter_specific_registry.rb
<ide> def initialize
<ide>
<ide> def initialize_copy(other)
<ide> @registrations = @registrations.dup
<del> super
<ide> end
<ide>
<ide> def add_modifier(options, klass, **args) | 1 |
Go | Go | create helpers to cancel deferred deactivation | 20b38f427aa05186bd09c8c4201dcc95ed56aa46 | <ide><path>pkg/devicemapper/devmapper.go
<ide> var (
<ide> ErrLoopbackSetCapacity = errors.New("Unable set loopback capacity")
<ide> ErrBusy = errors.New("Device is Busy")
<ide> ErrDeviceIdExists = errors.New("Device Id Exists")
<add> ErrEnxio = errors.New("No such devic... | 2 |
Text | Text | fix typos and formats for changelog | 84054a7d167ebefc807f2c5ec7c8ecf57f369f36 | <ide><path>actionpack/CHANGELOG.md
<ide>
<ide> ## Rails 3.1.3 (unreleased) ##
<ide>
<del>* Fix using `tranlate` helper with a html translation which uses the `:count` option for
<add>* Fix using `translate` helper with a html translation which uses the `:count` option for
<ide> pluralization.
<ide>
<ide> ... | 1 |
Javascript | Javascript | remove check in renderdidsuspenddelayifpossible | df61e708c82134133e002f8559c19d4897204b54 | <ide><path>packages/react-reconciler/src/ReactFiberWorkLoop.new.js
<ide> export function renderDidSuspend(): void {
<ide> }
<ide>
<ide> export function renderDidSuspendDelayIfPossible(): void {
<del> if (
<del> workInProgressRootExitStatus === RootInProgress ||
<del> workInProgressRootExitStatus === RootSuspend... | 2 |
Python | Python | fix naming convention | 6a550005471f76754cbe7bcf6652bb44fd494bfc | <ide><path>glances/core/glances_client.py
<ide> # Import Glances libs
<ide> from glances.core.glances_globals import version
<ide> from glances.core.glances_stats import GlancesStatsClient
<del>from glances.outputs.glances_curses import glancesCurses
<add>from glances.outputs.glances_curses import GlancesCurses
<ide>
... | 31 |
Javascript | Javascript | add strict equalities in src/shared/fonts_utils.js | 42e541a67181ba8a92ad071b16302374fcf9084e | <ide><path>src/shared/fonts_utils.js
<ide> function readCharset(aStream, aCharstrings) {
<ide> sid = aStream.getByte() << 8 | aStream.getByte();
<ide> charset[CFFStrings[sid]] = readCharstringEncoding(aCharstrings[i]);
<ide> }
<del> } else if (format == 1) {
<add> } else if (format === 1) {
<ide> ... | 1 |
Python | Python | update gyp to 828ce09 | cb5da7b443513627436a276ea4249779930d4648 | <ide><path>tools/gyp/pylib/gyp/common.py
<ide> def close(self):
<ide> return Writer()
<ide>
<ide>
<add>def EnsureDirExists(path):
<add> """Make sure the directory for |path| exists."""
<add> try:
<add> os.makedirs(os.path.dirname(path))
<add> except OSError:
<add> pass
<add>
<add>
<ide> def GetFlavor(param... | 12 |
Text | Text | add changes for 1.4.5 | 1d18e60ef7776c53716622c18f6a127284a58d92 | <ide><path>CHANGELOG.md
<add><a name="1.4.5"></a>
<add># 1.4.5 permanent-internship (2015-08-28)
<add>
<add>
<add>## Bug Fixes
<add>
<add>- **$animate:** `$animate.enabled(false)` should disable animations on $animateCss as well
<add> ([c3d5e33e](https://github.com/angular/angular.js/commit/c3d5e33e18bd9e423e2d0678e85... | 1 |
Ruby | Ruby | expand output excluded by quiet | 700e2f19f108ab3b354d939352921952247be6b2 | <ide><path>Library/Homebrew/cmd/update-report.rb
<ide> def output_update_report
<ide> EOS
<ide> end
<ide>
<del> return if new_tag.blank? || new_tag == old_tag
<add> return if new_tag.blank? || new_tag == old_tag || args.quiet?
<ide>
<ide> puts
<ide> ohai "Homebrew was updated to version #{new_... | 1 |
Javascript | Javascript | remove trivial test | 2acaa41e34b6b363a0b4c35fb192f9f1a73f9286 | <ide><path>spec/config-file-spec.js
<ide> describe('ConfigFile', () => {
<ide> })
<ide> })
<ide> })
<del>
<del> describe('updating the config', () => {
<del> it('persists the data to the file', async () => {
<del> configFile = new ConfigFile(filePath)
<del> subscription = await configFile.watc... | 1 |
Text | Text | use strong_params in example | 760662de868c0311f2e40a5e6f8982a521a3d990 | <ide><path>guides/source/engines.md
<ide> The form will be making a `POST` request to `/posts/:post_id/comments`, which wi
<ide> ```ruby
<ide> def create
<ide> @post = Post.find(params[:post_id])
<del> @comment = @post.comments.create(params[:comment])
<add> @comment = @post.comments.create(comment_params)
<ide> ... | 1 |
Ruby | Ruby | remove dead code." | e3dcf7776ab5854cf7e0e28527cc70b79aec2c60 | <ide><path>Library/Homebrew/cmd/test-bot.rb
<ide> def resolve_test_tap
<ide> end
<ide> end
<ide>
<add> if git_url = ENV["UPSTREAM_GIT_URL"] || ENV["GIT_URL"]
<add> # Also can get tap from Jenkins GIT_URL.
<add> url_path = git_url.sub(%r{^https?://github\.com/}, "").chomp("/")
<add> begin
<a... | 1 |
Go | Go | rewrite docker rmi | 795ed6b1e511fa6713fbc9ea4e8569aab15b98ff | <ide><path>api/client.go
<ide> func (cli *DockerCli) CmdPort(args ...string) error {
<ide> // 'docker rmi IMAGE' removes all images with the name IMAGE
<ide> func (cli *DockerCli) CmdRmi(args ...string) error {
<ide> cmd := cli.Subcmd("rmi", "IMAGE [IMAGE...]", "Remove one or more images")
<add> force := cmd.Bool([]st... | 6 |
Javascript | Javascript | prevent fallback when not ff extension | c0cfb486213d37820327f9c8042ca8d36e157fd9 | <ide><path>web/viewer.js
<ide> var PDFView = {
<ide> }
<ide> },
<ide>
<del> fallback: function pdfViewDownload() {
<add> fallback: function pdfViewFallback() {
<add> if (!PDFJS.isFirefoxExtension)
<add> return;
<ide> // Only trigger the fallback once so we don't spam the user with messages
<ide> ... | 1 |
PHP | PHP | fix nested entity expansion | 23c860682b8d826cd8903171e065e9c1e01e7bb0 | <ide><path>src/Controller/Component/RequestHandlerComponent.php
<ide> public function startup(Event $event)
<ide> public function convertXml($xml)
<ide> {
<ide> try {
<del> $xml = Xml::build($xml, ['readFile' => false]);
<del> if (isset($xml->data)) {
<del> return Xm... | 3 |
Ruby | Ruby | take care not to mix in public methods | d99b4ec57f07005211bad7c0b6605b03f811c865 | <ide><path>actionpack/lib/action_controller/test_case.rb
<ide> def clean_backtrace(&block)
<ide> #
<ide> # The exception is stored in the exception accessor for further inspection.
<ide> module RaiseActionExceptions
<del> attr_accessor :exception
<add> protected
<add> attr_accessor :excepti... | 1 |
Text | Text | add changelog entry for [ci skip] | c352e064bc1baa6b558147dfb177ee3e3d8605e5 | <ide><path>activerecord/CHANGELOG.md
<add>* `rake railties:install:migrations` respects the order of railties.
<add>
<add> *Arun Agrawal*
<add>
<ide> * Fix redefine a has_and_belongs_to_many inside inherited class
<ide> Fixing regression case, where redefining the same has_an_belongs_to_many
<ide> defini... | 1 |
Go | Go | use strslice from pkg/stringutils | 17999c70c39e14a474e69ce10de05a66258e2a5b | <ide><path>runconfig/hostconfig.go
<ide> import (
<ide> "strings"
<ide>
<ide> "github.com/docker/docker/pkg/nat"
<add> "github.com/docker/docker/pkg/stringutils"
<ide> "github.com/docker/docker/pkg/ulimit"
<ide> )
<ide>
<ide> func NewLxcConfig(values []KeyValuePair) *LxcConfig {
<ide> return &LxcConfig{values}
<i... | 3 |
Java | Java | fix issue with obtaining websocketcontainer | d20dabf1fbcc77f152d0334a30fc30c1aa7d053a | <ide><path>spring-websocket/src/main/java/org/springframework/web/socket/server/endpoint/ServerEndpointExporter.java
<ide> import org.springframework.context.ApplicationContext;
<ide> import org.springframework.context.ApplicationContextAware;
<ide> import org.springframework.util.Assert;
<del>import org.springframewor... | 1 |
Javascript | Javascript | invalidate element on parent and children | f7b3c0b1b098d1cf106a5fe5be2ef4dbd5c241d0 | <ide><path>packages/ember-views/lib/views/container_view.js
<ide> Ember.ContainerView.states = {
<ide> view.domManager.prepend(view, buffer.string());
<ide> }
<ide> childView.transitionTo('inDOM');
<del> childView.invalidateRecursively('element');
<add> childView.proper... | 2 |
Python | Python | reintroduce failing siamese test | 52dbeb1f26bac4272e35a8bb578f16cc584c3721 | <ide><path>tests/keras/test_graph_model.py
<ide> def test_siamese_1():
<ide> new_graph = model_from_yaml(yaml_str)
<ide>
<ide>
<del># def test_siamese_2():
<del># # Note: not working. TODO: fix it.
<del># graph = Graph()
<del># graph.add_input(name='input1', input_shape=(32,))
<del># graph.add_inp... | 1 |
Python | Python | raise error for negative 'num' in linspace | 43d4aa5de8a991fa40c9976280cef5b4b080a806 | <ide><path>numpy/core/function_base.py
<ide> def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None):
<ide> evenly spaced samples, so that `stop` is excluded. Note that the step
<ide> size changes when `endpoint` is False.
<ide> num : int, optional
<del> Number of samples... | 2 |
Python | Python | move matrix tests in testing to matrixlib | 4819af522b547719c3b8c50ef01fa738704e1690 | <ide><path>numpy/matrixlib/tests/test_interaction.py
<ide> """
<ide> from __future__ import division, absolute_import, print_function
<ide>
<add>import textwrap
<ide> import warnings
<ide>
<ide> import numpy as np
<ide> from numpy.testing import (assert_, assert_equal, assert_raises,
<ide> ... | 2 |
Javascript | Javascript | fix incorrect sethidden(hidden) docs description | cb67d16aee38fcaefbce0bdd3d004efee2726ff9 | <ide><path>Libraries/Components/StatusBar/StatusBar.js
<ide> class StatusBar extends React.Component {
<ide>
<ide> /**
<ide> * Show or hide the status bar
<del> * @param hidden The dialog's title.
<add> * @param hidden Hide the status bar.
<ide> * @param animation Optional animation when
<ide> * chan... | 1 |
PHP | PHP | remove fetch mode option | 770c41552f07c75450c72099b8feedbd428888fe | <ide><path>config/database.php
<ide>
<ide> return [
<ide>
<del> /*
<del> |--------------------------------------------------------------------------
<del> | PDO Fetch Style
<del> |--------------------------------------------------------------------------
<del> |
<del> | By default, database results ... | 1 |
Ruby | Ruby | add env.refurbish_args helper | 0ec7e3928734cab72e29e5e5dc6ebf558f18312b | <ide><path>Library/Homebrew/extend/ENV/std.rb
<ide> def make_jobs
<ide> Hardware::CPU.cores
<ide> end
<ide> end
<add>
<add> # This method does nothing in stdenv since there's no arg refurbishment
<add> def refurbish_args; end
<ide> end
<ide><path>Library/Homebrew/extend/ENV/super.rb
<ide> def libstdcxx
<i... | 2 |
Javascript | Javascript | fix the event handler when legend is disabled | a94885e32d611723f35393726dac93872e1b1a74 | <ide><path>src/core/core.controller.js
<ide> module.exports = function(Chart) {
<ide>
<ide> eventHandler: function(e) {
<ide> var me = this;
<add> var legend = me.legend;
<add> var tooltip = me.tooltip;
<ide> var hoverOptions = me.options.hover;
<ide>
<ide> // Buffer any update calls so that renders do... | 1 |
PHP | PHP | add comment for test | 5efddd11c83a1497c8c3e93179ee4a0f38253f44 | <ide><path>lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php
<ide> public function testMatchWithNamedParametersAndPassedArgs() {
<ide> $this->assertFalse($result);
<ide> }
<ide>
<add>/**
<add> * Ensure that named parameters are urldecoded
<add> *
<add> * @return void
<add> */
<ide> public function testParseNamedP... | 1 |
Ruby | Ruby | fix counter cache setting in belongs-to proxy | 966c276d6071f8c331f75820f8c2f30d1bba02b2 | <ide><path>activerecord/lib/active_record/associations/belongs_to_association.rb
<ide> def replace(record)
<ide> else
<ide> raise_on_type_mismatch(record)
<ide>
<del> if counter_cache_name && @owner[counter_cache_name] && !@owner.new_record?
<add> if counter_cache_name && !@owner.ne... | 1 |
Python | Python | fix typo in local_task_job | 77412ac6ea3486673d5e2340d10b355e12317fc0 | <ide><path>airflow/jobs/local_task_job.py
<ide> def signal_handler(signum, frame):
<ide> time_since_last_heartbeat = (timezone.utcnow() - self.latest_heartbeat).total_seconds()
<ide> if time_since_last_heartbeat > heartbeat_time_limit:
<ide> Stats.incr('local_task_job... | 1 |
Javascript | Javascript | remove refs to old css experiment | d650da0623f57b899a7fc89b10d6632daf2058dd | <ide><path>examples/with-react-md/next.config.js
<del>module.exports = {
<del> experimental: { css: true },
<del>}
<ide><path>examples/z-experimental-refresh/next.config.js
<del>module.exports = {
<del> experimental: {
<del> reactRefresh: true,
<del> },
<del>}
<ide><path>test/acceptance/next.config.js
<del>module... | 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.