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 |
|---|---|---|---|---|---|
Go | Go | fix error string in docker cli test | 76ace9bb5e2c5ecdd02046956ab00f76c3b25a3a | <ide><path>integration-cli/docker_cli_run_test.go
<ide> func (s *DockerSuite) TestRunAttachFailedNoLeak(c *check.C) {
<ide> // TODO Windows Post TP5. Fix the error message string
<ide> c.Assert(strings.Contains(string(out), "port is already allocated") ||
<ide> strings.Contains(string(out), "were not connected beca... | 1 |
Javascript | Javascript | drop reactdom from internal dom extensions | 531c2bc4c9a25f98c794a2c732a1232975ab9bbb | <ide><path>src/browser/ui/dom/components/ReactDOMButton.js
<ide> var AutoFocusMixin = require('AutoFocusMixin');
<ide> var ReactBrowserComponentMixin = require('ReactBrowserComponentMixin');
<ide> var ReactClass = require('ReactClass');
<ide> var ReactElement = require('ReactElement');
<del>var ReactDOM = require('Reac... | 7 |
Python | Python | add host header by default to all requests | 4cf416d25b06f489f7cc4d52b5bc6c3cd9a0666a | <ide><path>libcloud/base.py
<ide> def request(self, action, params={}, data='', headers={}, method='GET'):
<ide> # We always send a content length and user-agent header
<ide> headers.update({'Content-Length': len(data)})
<ide> headers.update({'User-Agent': 'libcloud/%s' % (self.driver.name)})
<a... | 2 |
Mixed | Ruby | standardize nodoc comments | 18707ab17fa492eb25ad2e8f9818a320dc20b823 | <ide><path>actioncable/lib/action_cable/channel/broadcasting.rb
<ide> def broadcasting_for(model)
<ide> serialize_broadcasting([ channel_name, model ])
<ide> end
<ide>
<del> def serialize_broadcasting(object) #:nodoc:
<add> def serialize_broadcasting(object) # :nodoc:
<ide> ca... | 287 |
Mixed | Go | use fs cgroups by default | 419fd7449fe1a984f582731fcd4d9455000846b0 | <ide><path>daemon/execdriver/native/driver.go
<ide> func NewDriver(root, initPath string, options []string) (*Driver, error) {
<ide> // this makes sure there are no breaking changes to people
<ide> // who upgrade from versions without native.cgroupdriver opt
<ide> cgm := libcontainer.Cgroupfs
<del> if systemd.UseSys... | 2 |
Javascript | Javascript | fix some leftovers | 69c71c9332ce8d79c97ca7127e7a1ed531b12bd6 | <ide><path>pdf.js
<ide> var CanvasGraphics = (function() {
<ide> }
<ide>
<ide> this.current.fontSize = size;
<del> this.ctx.font = this.current.fontSize +'px "' + fontName + '", Symbol';
<add> this.ctx.font = this.current.fontSize +'px "' + fontName + '"';
<ide> },... | 1 |
Text | Text | update docs to use tf_model_garden gcs bucket | a4b919de434b5eb9662cb035fe8dbebb8e757120 | <ide><path>official/nlp/docs/pretrained_models.md
<ide> in order to keep consistent with BERT paper.
<ide>
<ide> Model | Configuration | Training Data | Checkpoint & Vocabulary | TF-HUB SavedModels
<ide> ---------------------------------------- | :---------------------... | 1 |
Python | Python | add surface area of cuboid, conical frustum | 467ade28a04ed3e77b6c89542fd99f390139b5bd | <ide><path>maths/area.py
<ide> def surface_area_cube(side_length: float) -> float:
<ide> """
<ide> Calculate the Surface Area of a Cube.
<del>
<ide> >>> surface_area_cube(1)
<ide> 6
<add> >>> surface_area_cube(1.6)
<add> 15.360000000000003
<add> >>> surface_area_cube(0)
<add> 0
<ide> >>>... | 1 |
Java | Java | use concatwith instead of mergewith | 09af706af6857d67708071703c515b3554b2576a | <ide><path>spring-core/src/test/java/org/springframework/core/codec/ByteArrayDecoderTests.java
<ide> public void decode() {
<ide> public void decodeError() {
<ide> DataBuffer fooBuffer = stringBuffer("foo");
<ide> Flux<DataBuffer> source =
<del> Flux.just(fooBuffer).mergeWith(Flux.error(new RuntimeException()))... | 6 |
PHP | PHP | convert write() to use immutable patterns | 8dbd685e3793d359e772bc89dc7ea4a434ee6017 | <ide><path>src/Http/Cookie/Cookie.php
<ide> class Cookie implements CookieInterface
<ide> * @param bool $secure Is secure
<ide> * @param bool $httpOnly HTTP Only
<ide> */
<del> public function __construct($name, $value = '', $expiresAt = null, $path = '', $domain = '', $secure = false, $httpOnly = fal... | 3 |
Text | Text | add documentation about default scales | 8c6335106707309d1b2441c82ac66bd9641c13cd | <ide><path>docs/axes/index.md
<ide> Scales in Chart.js >v2.0 are significantly more powerful, but also different tha
<ide> * Scale titles are supported.
<ide> * New scale types can be extended without writing an entirely new chart type.
<ide>
<add>## Default scales
<add>
<add>The default `scaleId`'s for carterian char... | 1 |
PHP | PHP | refactor the memcache class | 25ebe9fb97ee67c8b98830241e20f691790b20ab | <ide><path>system/memcached.php
<ide> class Memcached {
<ide> */
<ide> public static function instance()
<ide> {
<del> return ( ! is_null(static::$instance)) ? static::$instance : static::$instance = static::connect(Config::get('cache.servers'));
<add> if (is_null(static::$instance))
<add> {
<add> static::$ins... | 1 |
Ruby | Ruby | remove unwanted `to_sym` call | b9c43e0ee9beda5d1587e168695afa80186f8c22 | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
<ide> class SchemaCreation < AbstractAdapter::SchemaCreation
<ide> private
<ide>
<ide> def visit_AddColumn(o)
<del> sql_type = type_to_sql(o.type.to_sym, o.limit, o.precision, o.scale)
<add> ... | 1 |
Ruby | Ruby | add non-/usr/local bottles support | 20c0ddc40100b08f26d274c550ab0051d9831d21 | <ide><path>Library/Homebrew/bottles.rb
<ide> def bottle_filename f, bottle_revision=nil
<ide> end
<ide>
<ide> def install_bottle? f
<del> return true if ARGV.include? '--install-bottle' and MacOS.bottles_supported?(true)
<ide> return true if f.downloader and defined? f.downloader.local_bottle_path \
<ide> and f... | 5 |
Python | Python | check lower limit of base in base_repr | 857c3a8ec160a618a54edd9407f77fbfc2a07678 | <ide><path>numpy/core/numeric.py
<ide> def base_repr(number, base=2, padding=0):
<ide> digits = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
<ide> if base > len(digits):
<ide> raise ValueError("Bases greater than 36 not handled in base_repr.")
<add> elif base < 2:
<add> raise ValueError("Bases less ... | 1 |
Text | Text | update changelog for 2.8.4 | 9f0aaa2e79528d48b3d60743dd78eb94f1673da8 | <ide><path>CHANGELOG.md
<ide> Changelog
<ide> =========
<ide>
<add>### 2.8.4 [See full changelog](https://gist.github.com/ichernev/a4fcb0a46d74e4b9b996)
<add>
<add>Features:
<add>
<add>* [#2000](https://github.com/moment/moment/issues/2000) Add LTS localised format that includes seconds
<add>* [#1960](https://github.c... | 1 |
Go | Go | use gotest.tools/v3/assert more | 71119a5649ae44b25b0ab5cdb589c6000a448c25 | <ide><path>daemon/logger/awslogs/cloudwatchlogs_test.go
<ide> func TestCreateSuccess(t *testing.T) {
<ide>
<ide> err := stream.create()
<ide>
<del> if err != nil {
<del> t.Errorf("Received unexpected err: %v\n", err)
<del> }
<del> if input.LogGroupName == nil {
<del> t.Fatal("Expected non-nil LogGroupName")
<del> ... | 1 |
Go | Go | improve aufs cleanup and debugging | 43899a77bf638d4baa42291c1988bcb2a75e8ef5 | <ide><path>graphdriver/aufs/aufs.go
<ide> func (a *AufsDriver) Remove(id string) error {
<ide> return err
<ide> }
<ide> realPath := path.Join(a.rootPath(), p, id)
<del> if err := os.Rename(realPath, tmp); err != nil {
<add> if err := os.Rename(realPath, tmp); err != nil && !os.IsNotExist(err) {
<ide> return... | 2 |
PHP | PHP | apply fixes from styleci | ab149811dca29130ee354d9e9ff448ab81004ec3 | <ide><path>src/Illuminate/Database/Eloquent/Relations/Pivot.php
<ide> protected function getDeleteQuery()
<ide> {
<ide> return $this->newQuery()->where([
<ide> $this->foreignKey => $this->getAttribute($this->foreignKey),
<del> $this->relatedKey => $this->getAttribute($this->relatedKey... | 1 |
Javascript | Javascript | update incorrect comment | 1882a198de3ff126a5ed1e321308a112f9e76b86 | <ide><path>lib/dependencies/HarmonyExportInitFragment.js
<ide> const EMPTY_SET = new Set();
<ide>
<ide> class HarmonyExportInitFragment extends InitFragment {
<ide> /**
<del> * @param {string} exportsArgument the promises that should be awaited
<add> * @param {string} exportsArgument the exports identifier
<ide> ... | 1 |
Ruby | Ruby | remove deprecated option | b33a24feb0e29986345bec56db0c5f56eacfac56 | <ide><path>Library/Homebrew/homebrew_bootsnap.rb
<ide> raise "Needs HOMEBREW_TEMP or HOMEBREW_DEFAULT_TEMP!" unless tmp
<ide>
<ide> Bootsnap.setup(
<del> cache_dir: "#{tmp}/homebrew-bootsnap",
<del> development_mode: false, # TODO: use ENV["HOMEBREW_DEVELOPER"]?,
<del> load_path_cache: true,
<de... | 1 |
PHP | PHP | fix windows test | 094b1c9b036c1c781cdab342fe5b27ffd2680d10 | <ide><path>tests/TestCase/Console/ConsoleIoTest.php
<ide> public function testOverwrite()
<ide> [str_repeat("\x08", $number), 0],
<ide> ['Less text', 0],
<ide> [str_repeat(' ', $number - 9), 0],
<del> ["\n", 0]
<add> [PHP_EOL, 0]
<ide> ... | 1 |
Java | Java | add websocketclient for java websocket (jsr-356) | 30ee71ea1a71e05ab7a725a8cda8d3c0b5c68d3a | <ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/socket/adapter/StandardEndpoint.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 wi... | 5 |
Javascript | Javascript | fix issues and | f0bf3954fe363eda86a3db170063aba34f1be08e | <ide><path>src/scales/scale.logarithmic.js
<ide> module.exports = function(Chart) {
<ide> determineDataLimits: function() {
<ide> var me = this;
<ide> var opts = me.options;
<del> var tickOpts = opts.ticks;
<ide> var chart = me.chart;
<ide> var data = chart.data;
<ide> var datasets = data.datasets;
<... | 2 |
PHP | PHP | add a method to retreive the policies | 6d8e53082c188c89f765bf016d1e4bca7802b025 | <ide><path>src/Illuminate/Foundation/Support/Providers/AuthServiceProvider.php
<ide> public function register()
<ide> {
<ide> //
<ide> }
<add>
<add> /**
<add> * Get the policies defined on the provider.
<add> *
<add> * @return array
<add> */
<add> public function policies()
<add> ... | 1 |
Javascript | Javascript | remove wrong @restrict and add missing @param | 573d41b73cf67b59b2c9f84ace7f9491793fa179 | <ide><path>src/ng/directive/input.js
<ide> var ngModelDirective = function() {
<ide> /**
<ide> * @ngdoc directive
<ide> * @name ng.directive:ngChange
<del> * @restrict E
<ide> *
<ide> * @description
<ide> * Evaluate given expression when user changes the input.
<ide> var ngModelDirective = function() {
<ide> * No... | 1 |
Ruby | Ruby | reduce the number of calls to camelize | 40761c4bf39826254b7a5266210f91742591f58c | <ide><path>activerecord/lib/active_record/migration.rb
<ide> def migrations(path)
<ide>
<ide> migrations = files.inject([]) do |klasses, file|
<ide> version, name, scope = file.scan(/([0-9]+)_([_a-z0-9]*)\.?([_a-z0-9]*)?.rb/).first
<add> name = name.camelize
<ide>
<ide> raise Ille... | 1 |
Text | Text | release notes for v3.27.1 | ac201b8e3e52226dbc74daf7be476985f9109a61 | <ide><path>CHANGELOG.md
<ide>
<ide> - [#19472](https://github.com/emberjs/ember.js/pull/19472) [BUGFIX] Prevent transformation of block params called `attrs`
<ide>
<add>### v3.27.1 (May 13, 2021)
<add>
<add>- [#19540](https://github.com/emberjs/ember.js/pull/19540) [BUGFIX] Ensure ember-testing is loaded lazily
<add>... | 1 |
Javascript | Javascript | add workaround for ios jit error in isarraylike | 154166458284bcce7d6a86328b7fd13483232a1a | <ide><path>src/core.js
<ide> function(i, name) {
<ide> });
<ide>
<ide> function isArraylike( obj ) {
<del> var length = obj.length,
<add>
<add> // Support: iOS 8.2 (not reproducible in simulator)
<add> // `in` check used to prevent JIT error (gh-2145)
<add> // hasOwn isn't used here due to false negatives
<add> // reg... | 2 |
Text | Text | add formatted string literals example | 6361c48b99d2b6858a821e523fc3bf1303455cd7 | <ide><path>guide/english/python/converting-integer-to-string-in-python/index.md
<ide> print("Hello, I am " + str(age) + " years old")
<ide> ```
<ide> <a href='https://repl.it/Jz8Q/0' target='_blank' rel='nofollow'>Run code on repl.it</a>
<ide>
<add>Formatted string literals or "f-strings":
<add>
<add>Python 3.6 (and l... | 1 |
Java | Java | operatorswitchmap accidental main method | 7b0b75cd80928d2ba022e8a3ad7625ae5816a6f0 | <ide><path>src/main/java/io/reactivex/internal/operators/OperatorSwitchMap.java
<ide>
<ide> import org.reactivestreams.*;
<ide>
<del>import io.reactivex.Observable;
<ide> import io.reactivex.Observable.Operator;
<ide> import io.reactivex.internal.queue.*;
<ide> import io.reactivex.internal.subscriptions.SubscriptionH... | 1 |
PHP | PHP | add the registry alias to debug table debug info | 4911a538dbb8316d35408c8a166feada74c5d546 | <ide><path>src/ORM/Table.php
<ide> public function __debugInfo()
<ide> {
<ide> $conn = $this->connection();
<ide> return [
<add> 'registryAlias' => $this->registryAlias(),
<ide> 'table' => $this->table(),
<ide> 'alias' => $this->alias(),
<ide> 'entityCl... | 2 |
Javascript | Javascript | remove erroneous assert message from test | b9d63ab1b7b82fe959c616ee16a8c6497c824114 | <ide><path>test/parallel/test-process-external-stdio-close-spawn.js
<ide> if (process.argv[2] === 'child') {
<ide> });
<ide>
<ide> child.on('close', common.mustCall((exitCode, signal) => {
<del> assert.strictEqual(exitCode, 0, 'exit successfully');
<add> assert.strictEqual(exitCode, 0);
<ide> assert.stri... | 1 |
Text | Text | add changelog for v1.11.1 | ca0c1becea921300599b44dc5b4f2d6e463309ec | <ide><path>CHANGELOG.md
<ide> information on the list of deprecated flags and APIs please have a look at
<ide> https://docs.docker.com/engine/deprecated/ where target removal dates can also
<ide> be found.
<ide>
<add>## 1.11.1 (2016-04-26)
<add>
<add>### Distribution
<add>
<add>- Fix schema2 manifest media type to be ... | 1 |
Ruby | Ruby | use localized monkey-patching | bd352bcf35fd45f811e5bd2dbe7f918124e591a2 | <ide><path>Library/Homebrew/dev-cmd/extract.rb
<ide> require "formulary"
<ide> require "tap"
<ide>
<del># rubocop:disable Style/MethodMissingSuper
<del>class BottleSpecification
<del> def method_missing(*); end
<add>def with_monkey_patch
<add> BottleSpecification.class_eval do
<add> if method_defined?(:method_mis... | 1 |
Javascript | Javascript | add jsdoc marker to ensure it is included in docs | d307e77ff3a3c4170011fe88dbf562a69a31ccd2 | <ide><path>src/Angular.js
<ide> function reloadWithDebugInfo() {
<ide> window.location.reload();
<ide> }
<ide>
<del>/*
<add>/**
<add> * @ngdoc function
<ide> * @name angular.getTestability
<ide> * @module ng
<ide> * @description | 1 |
Javascript | Javascript | fix permanent deoptimizations | d5925af8d7e8d689603208094a85972aacc53f49 | <ide><path>lib/internal/util.js
<ide> function getSignalsToNamesMapping() {
<ide> return signalsToNamesMapping;
<ide>
<ide> signalsToNamesMapping = Object.create(null);
<del> for (const key in signals) {
<add> for (var key in signals) {
<ide> signalsToNamesMapping[signals[key]] = key;
<ide> }
<ide>
<ide... | 2 |
Go | Go | convert parse errors to more informative format | 64466b0cd9ff36dc3f123a3a68eae438ac9e8e60 | <ide><path>builder/remotecontext/detect.go
<ide> import (
<ide> "github.com/docker/docker/api/types/backend"
<ide> "github.com/docker/docker/builder"
<ide> "github.com/docker/docker/builder/dockerignore"
<add> "github.com/docker/docker/errdefs"
<ide> "github.com/docker/docker/pkg/fileutils"
<ide> "github.com/docke... | 1 |
Text | Text | update changelog for | 2e43eefa94b5f98ab4b082dde1dbf34c5d7eedff | <ide><path>activerecord/CHANGELOG.md
<add>* Use advisory locking to raise a ConcurrentMigrationError instead of
<add> attempting to migrate when another migration is currently running.
<add>
<add> *Sam Davies*
<add>
<ide> * Added `ActiveRecord::Relation#left_outer_joins`.
<ide>
<ide> Example: | 1 |
Go | Go | convert libnetwork stats directly to api types | d36376f86c8944f6955f537a1a12f4072f8d7403 | <ide><path>daemon/daemon.go
<ide> import (
<ide> "github.com/docker/go-connections/nat"
<ide> "github.com/docker/libnetwork"
<ide> nwconfig "github.com/docker/libnetwork/config"
<del> lntypes "github.com/docker/libnetwork/types"
<ide> "github.com/docker/libtrust"
<del> "github.com/opencontainers/runc/libcontainer"
... | 2 |
PHP | PHP | fix other uses of deprecated database features | e441a345d886097094385ebe686350f85dc7d7d8 | <ide><path>src/ORM/Association/Loader/SelectLoader.php
<ide> protected function _buildSubquery($query)
<ide> $filterQuery->mapReduce(null, null, true);
<ide> $filterQuery->formatResults(null, true);
<ide> $filterQuery->contain([], true);
<del> $filterQuery->valueBinder(new ValueBinder());... | 14 |
Text | Text | add title text to image chart | 43f64a4204e9d78f1aff2514c824f1795be06a49 | <ide><path>guide/english/chef/index.md
<ide> Chef enables programmers and system administrators to work together. Instead of
<ide> <p>The client will then check in every now and again to make sure that no changes have occurred, and nothing needs to change. If it does, then the client deals with it. Patches and updates ... | 1 |
Javascript | Javascript | switch assertequal arguments | 24950985df4e55293efecd393d09d18abd94ed05 | <ide><path>test/sequential/test-inspector-debug-end.js
<ide> async function testNoServerNoCrash() {
<ide> const instance = new NodeInstance([],
<ide> `process._debugEnd();
<ide> process.exit(42);`);
<del> strictEqual(42, (await instance.expectS... | 1 |
Java | Java | generate module definition on demand | 30a5eb51f8efea5cb5ccc75edbefc9575eadba3b | <ide><path>ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java
<ide> public void stopProfiler(String title, String filename) {
<ide> private String buildModulesConfigJSONProperty(
<ide> NativeModuleRegistry nativeModuleRegistry,
<ide> JavaScriptModulesConfig jsModulesConfig) {
<... | 3 |
PHP | PHP | improve doc block and signature | b55ee6710592af2748bee4fdbaf277d7e578f8e0 | <ide><path>src/TestSuite/EmailTrait.php
<ide> public function assertMailContainsHtml($contents, $message = null)
<ide> }
<ide>
<ide> /**
<del> * Asserts an email contains expected text contents
<add> * Asserts an email contains an expected text content
<ide> *
<del> * @param int $contents Cont... | 1 |
Mixed | Ruby | fix validation callbacks on multiple context | 470d0e459f2d1cb8e6d5c0a8a2fe3282ca65690e | <ide><path>activemodel/CHANGELOG.md
<add>* Fix to working before/after validation callbacks on multiple contexts.
<add>
<add> *Yoshiyuki Hirano*
<add>
<ide> ## Rails 5.2.0.beta2 (November 28, 2017) ##
<ide>
<ide> * No changes.
<ide><path>activemodel/lib/active_model/validations/callbacks.rb
<ide> module ClassMe... | 3 |
Javascript | Javascript | improve error logging for inspector test | bfb4f4224d9f8f87944d611dd569d1d3579f5523 | <ide><path>test/inspector/inspector-helper.js
<ide> function parseWSFrame(buffer, handler) {
<ide> }
<ide> if (buffer.length < bodyOffset + dataLen)
<ide> return 0;
<del> const message = JSON.parse(
<del> buffer.slice(bodyOffset, bodyOffset + dataLen).toString('utf8'));
<add> const jsonPayload =
<add> b... | 1 |
Javascript | Javascript | make "unexpected batch number" a warning | abcd5673251b3e17fc42ea9c93a2c6bd4068855e | <ide><path>src/renderers/shared/stack/reconciler/ReactReconciler.js
<ide> var ReactRef = require('ReactRef');
<ide> var ReactInstrumentation = require('ReactInstrumentation');
<ide>
<del>var invariant = require('invariant');
<add>var warning = require('warning');
<ide>
<ide> /**
<ide> * Helper to call ReactRef.attac... | 1 |
Python | Python | apply suggestions from code review | e6bea5f79c127a53a9252d8d3f51108815c60267 | <ide><path>numpy/lib/function_base.py
<ide> def unwrap(p, discont=None, axis=-1, *, period=2*pi):
<ide> If the discontinuity in `p` is smaller than ``period/2``,
<ide> but larger than `discont`, no unwrapping is done because taking
<ide> the complement would only make the discontinuity larger.
<del>
<... | 1 |
Javascript | Javascript | change fixtures.readsync to fixtures.readkey | f212fee2a3709abb267796e8e4a3fb5d85d438b1 | <ide><path>test/parallel/test-tls-getprotocol.js
<ide> const clientConfigs = [
<ide>
<ide> const serverConfig = {
<ide> secureProtocol: 'TLS_method',
<del> key: fixtures.readSync('/keys/agent2-key.pem'),
<del> cert: fixtures.readSync('/keys/agent2-cert.pem')
<add> key: fixtures.readKey('agent2-key.pem'),
<add> c... | 2 |
Go | Go | join memory and cpu cgroup in systemd too | 4ddfffcab3edf3d05ee8319e87410fe747979a04 | <ide><path>pkg/cgroups/apply_systemd.go
<ide> func systemdApply(c *Cgroup, pid int) (ActiveCgroup, error) {
<ide> })})
<ide> }
<ide>
<add> // Always enable accounting, this gets us the same behaviour as the raw implementation,
<add> // plus the kernel has some problems with joining the memory cgroup at a later tim... | 1 |
Javascript | Javascript | improve assert benchmarks | 5442c28b651a79c2269bf2b931e81cd553171656 | <ide><path>benchmark/assert/deepequal-buffer.js
<ide> const common = require('../common.js');
<ide> const assert = require('assert');
<ide>
<ide> const bench = common.createBenchmark(main, {
<del> n: [1e5],
<del> len: [1e2, 1e4],
<add> n: [2e4],
<add> len: [1e2, 1e3],
<add> strict: [0, 1],
<ide> method: [
<ide>... | 10 |
Javascript | Javascript | add mustcall to openssl-client-cert-engine | c903c99d4bac9e13a34e97a4a98bd290925fda68 | <ide><path>test/addons/openssl-client-cert-engine/test.js
<ide> const serverOptions = {
<ide> rejectUnauthorized: true
<ide> };
<ide>
<del>const server = https.createServer(serverOptions, (req, res) => {
<add>const server = https.createServer(serverOptions, common.mustCall((req, res) => {
<ide> res.writeHead(200);... | 1 |
Javascript | Javascript | reduce scope of imports | fe3931b0775a91b1661df8ca708c572d571f4b73 | <ide><path>src/controllers/controller.bar.js
<ide>
<ide> import DatasetController from '../core/core.datasetController';
<ide> import defaults from '../core/core.defaults';
<del>import elements from '../elements';
<add>import Rectangle from '../elements/element.rectangle';
<ide> import helpers from '../helpers';
<ide>... | 8 |
Javascript | Javascript | get camera values from matrix world | dd184263c3225e65c5b342be05d5da5c26fdc8da | <ide><path>editor/js/Sidebar.Object.js
<ide> Sidebar.Object = function ( editor ) {
<ide>
<ide> if ( editor.selected.isCamera === true && cameraTransitioning === false ) {
<ide>
<add> editor.selected.updateMatrixWorld( true );
<ide> editor.currentCamera = transitionCamera;
<ide> transitionCamera.copy( edito... | 1 |
Python | Python | use a consistent method name | f5ad09c1a82bd48e6821b03b4dcd60bdd492f27d | <ide><path>libcloud/compute/drivers/gce.py
<ide> def set_named_ports(self, named_ports):
<ide> return self.driver.ex_instancegroup_set_named_ports(
<ide> instancegroup=self.instance_group, named_ports=named_ports)
<ide>
<del> def set_autoHealingPolicies(self, healthcheck, initialdelaysec):
<add>... | 1 |
Ruby | Ruby | unify environment variables | fb0052068f3f948e0103066bb6a80099c13cc600 | <ide><path>Library/Homebrew/env_config.rb
<add># frozen_string_literal: true
<add>
<add>module Homebrew
<add> module EnvConfig
<add> module_function
<add>
<add> ENVS = {
<add> HOMEBREW_ARCH: {
<add> description: "Linux only: Homebrew will pass the set value to type name to the co... | 1 |
Text | Text | add mutt data to inthewild.md | 925153f5a5442e3825b741fb510375f4b2fa1fc0 | <ide><path>INTHEWILD.md
<ide> Currently, **officially** using Airflow:
<ide> 1. [Modernizing Medicine](https://www.modmed.com/) [[@kehv1n](https://github.com/kehv1n), [@dalupus](https://github.com/dalupus)]
<ide> 1. [Movember](https://movember.com)
<ide> 1. [Multiply](https://www.multiply.com) [[@nrhvyc](https://github... | 1 |
Javascript | Javascript | fix invalid ping response throwing error in client | 71ae456a7ca706ce8eaa006486d8bebf0beff7af | <ide><path>packages/next/client/on-demand-entries-client.js
<ide> export default async ({ assetPrefix }) => {
<ide> }
<ide>
<ide> evtSource.onmessage = event => {
<del> const payload = JSON.parse(event.data)
<del> if (payload.invalid) {
<del> // Payload can be invalid even if the page does not... | 2 |
PHP | PHP | remove casts that aren't needed now | 03a051542cd0ebb2c075a38a47709ee5bfaab59f | <ide><path>src/View/Widget/MultiCheckboxWidget.php
<ide> protected function _isSelected(string $key, $selected): bool
<ide> }
<ide> $isArray = is_array($selected);
<ide> if (!$isArray) {
<del> return (string)$key === (string)$selected;
<add> return $key === (string)$selecte... | 1 |
Python | Python | add test for initialization of bert2rnd | 1e68c28670cc8d0e8d20ca9fadc697f03908015b | <ide><path>examples/run_summarization.py
<add># coding=utf-8
<add># Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
<add># Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
<add>#
<add># Licensed under the Apache License, Version 2.0 (the "License");
<add># you may not use ... | 2 |
Text | Text | fix capitalization, markdown syntax link in docs | 14fad0d6902550cd61fc07370759ef785effa207 | <ide><path>docs/topics/documenting-your-api.md
<ide> The built-in API documentation includes:
<ide> ### Installation
<ide>
<ide> The `coreapi` library is required as a dependency for the API docs. Make sure
<del>to install the latest version. The `pygments` and `markdown` libraries
<add>to install the latest version. ... | 1 |
Mixed | Ruby | reset cache_versions on relation | a237867e8fada034d977b4b7e04e012470c14a5b | <ide><path>activerecord/CHANGELOG.md
<add>* Resolve issue where a relation cache_version could be left stale.
<add>
<add> Previously, when `reset` was called on a relation object it did not reset the cache_versions
<add> ivar. This led to a confusing situation where despite having the correct data the relation
... | 3 |
Javascript | Javascript | enable coverage logging from the worker | ef5a02c16485707acdfd38f612c16513beeb4a6a | <ide><path>src/environment/__tests__/ReactWebWorker-test.js
<ide> describe('ReactWebWorker', function() {
<ide> var data = JSON.parse(e.data);
<ide> if (data.type == 'error') {
<ide> error = data.message + "\n" + data.stack;
<add> } else if (data.type == 'log') {
<add> console.log(data.m... | 2 |
Text | Text | add changelog entry for | 58a6a246cc8e78e15d083df041aea54d61a6b62a | <ide><path>activesupport/CHANGELOG.md
<ide> ## Rails 5.0.0.beta1 (December 18, 2015) ##
<ide>
<add>* Add petabyte and exabyte numberic conversion.
<add>
<add> *Akshay Vishnoi*
<add>
<ide> * Add thread_m/cattr_accessor/reader/writer suite of methods for declaring class and module variables that live per-thread.
... | 1 |
PHP | PHP | remove reference from the signature | 6b8a79be6d74aba787d279beaa77a8400c26d69f | <ide><path>lib/Cake/Model/Datasource/DboSource.php
<ide> public function prepareFields(Model $Model, $queryData) {
<ide> /**
<ide> * Builds an SQL statement.
<ide> *
<add> * This is merely a convenient wrapper to DboSource::buildStatement().
<add> *
<ide> * @param Model $Model
<ide> * @param array $queryData
<ide> ... | 1 |
Javascript | Javascript | adopt standard parallels per usgs | ef084aaf615608441f136a270dafaa2f9b570f5a | <ide><path>d3.js
<del>d3 = {version: "0.8.0"}; // semver
<add>d3 = {version: "0.8.1"}; // semver
<ide> if (!Date.now) Date.now = function() {
<ide> return +new Date();
<ide> };
<ide> d3.geo.albers = function() {
<ide> return reload();
<ide> };
<ide>
<del>// A composite projection for the United States, 960x500.
<a... | 4 |
Javascript | Javascript | use fewer global variables in hooks | f523b2e0d369e3f42938b56784f9ce1990838753 | <ide><path>packages/react-reconciler/src/ReactFiberHooks.js
<ide> import type {
<ide> ReactContext,
<ide> ReactEventResponderListener,
<ide> } from 'shared/ReactTypes';
<del>import type {SideEffectTag} from 'shared/ReactSideEffectTags';
<ide> import type {Fiber} from './ReactFiber';
<ide> import type {ExpirationTim... | 3 |
Javascript | Javascript | convert _app.js to functional components | ea0d916b50fdf7faa0534446a4bf672bedb0e344 | <ide><path>examples/with-app-layout/pages/_app.js
<ide> import React from 'react'
<del>import App from 'next/app'
<ide>
<del>class Layout extends React.Component {
<del> render() {
<del> const { children } = this.props
<del> return <div className="layout">{children}</div>
<del> }
<del>}
<add>const Layout = ({ ... | 1 |
Javascript | Javascript | remove redundant boolean check of request variable | 2471713608f618b467fd11af0a6dc4bec22a3b4d | <ide><path>lib/DelegatedModuleFactoryPlugin.js
<ide> class DelegatedModuleFactoryPlugin {
<ide> module => {
<ide> const request = module.libIdent(this.options);
<ide> if (request) {
<del> if (request && request in this.options.content) {
<add> if (request in this.options.content) {
<ide> ... | 1 |
Javascript | Javascript | increase coverage of internal/stream/end-of-stream | 7d2494d867f38d5d56f955cb7126e49f3348b96c | <ide><path>test/parallel/test-stream-finished.js
<ide> const { promisify } = require('util');
<ide> rs.push(null);
<ide> rs.resume();
<ide> }
<add>
<add>// Test that calling returned function removes listeners
<add>{
<add> const ws = new Writable({
<add> write(data, env, cb) {
<add> cb();
<add> }
<add> ... | 1 |
Javascript | Javascript | update deployment used for e2e test | 0f724a67feb3e80a5cbacbe152d170f73db432fe | <ide><path>test/e2e/app-dir/app/app/very-large-data-fetch/page.js
<ide> export default async function Home() {
<ide> const res = await fetch(
<del> `https://data-api-endpoint-nmw78dd69-ijjk-testing.vercel.app/api/data?amount=128000`
<add> `https://next-data-api-endpoint.vercel.app/api/data?amount=128000`
<ide> ... | 1 |
Python | Python | add test for #629 | 28051478f847c7d62a219484e6d2114adc7bf102 | <ide><path>numpy/core/tests/test_scalarmath.py
<ide> def test_basic(self):
<ide> assert_array_equal(x[...],value)
<ide> assert_array_equal(x[()],value)
<ide>
<add>class TestRepr(NumpyTestCase):
<add> def check_float_repr(self):
<add> from numpy import nan, inf
<add> for t in [n... | 1 |
Javascript | Javascript | increase browser start and total run timeout times | 8910a0dc8a1693b907d358e002d08a77101baa5a | <ide><path>testem.dist.js
<ide> module.exports = {
<ide> test_page: "dist/tests/index.html?hidepassed&hideskipped&timeout=60000",
<ide> timeout: 540,
<ide> reporter: FailureOnlyPerBrowserReporter,
<del> browser_start_timeout: 600,
<add> browser_start_timeout: 1200,
<ide> parallel: 4,
<ide> disable_watching:... | 1 |
Ruby | Ruby | incorporate suggestions from code review | eebc161ea51aa74a93ce3394aeab72a35a57ed04 | <ide><path>Library/Homebrew/cli/parser.rb
<ide> def check_named_args(args)
<ide>
<ide> def process_option(*args)
<ide> option, = @parser.make_switch(args)
<del> @processed_options.reject! { |existing| option.long.first.present? && existing.second == option.long.first }
<add> @processed_opti... | 3 |
Javascript | Javascript | remove outdated comment | 32fb7d93348c9d2d70bb4450913e22c68a7e76ca | <ide><path>lib/internal/util/inspect.js
<ide> function getFunctionBase(value, constructor, tag) {
<ide> }
<ide>
<ide> function formatError(err, constructor, tag, ctx) {
<del> // TODO(BridgeAR): Always show the error code if present.
<ide> let stack = err.stack || ErrorPrototype.toString(err);
<ide>
<ide> // A st... | 1 |
PHP | PHP | shift things around | b17a5e347de088fc846f64c31557a7ca483c1531 | <ide><path>lib/Cake/Routing/Route/Route.php
<ide> public function match($url, $context = array()) {
<ide> $url['prefix'] = $defaults['prefix'];
<ide> }
<ide>
<del> // check that all the key names are in the url
<del> $keyNames = array_flip($this->keys);
<del> if (array_intersect_key($keyNames, $url) !== $keyNa... | 1 |
Java | Java | remove inefficiency in httpstatus.series() | 97cc89630dce6e65dbe3f80e3d777f897c944667 | <ide><path>spring-web/src/main/java/org/springframework/http/HttpStatus.java
<ide> public enum HttpStatus {
<ide> * {@code 100 Continue}.
<ide> * @see <a href="https://tools.ietf.org/html/rfc7231#section-6.2.1">HTTP/1.1: Semantics and Content, section 6.2.1</a>
<ide> */
<del> CONTINUE(100, "Continue"),
<add> CONT... | 2 |
Text | Text | add table of contents to readme (#735) | d6439d172b70e866becfa380af244bba9950fb6e | <ide><path>README.md
<ide>
<ide> Next.js is a minimalistic framework for server-rendered React applications.
<ide>
<del>**NOTE! the README on the `master` branch might not match that of the [latest stable release](https://github.com/zeit/next.js/releases/latest)! **
<add>_**NOTE! the README on the `master` branch mig... | 1 |
PHP | PHP | fix cs issues | 8351c8f912ace3523f98d97c83a7695ef0c73d1a | <ide><path>tests/Notifications/NotificationSlackChannelTest.php
<ide> public function testCorrectPayloadWithAttachmentFieldBuilderIsSentToSlack()
<ide> [
<ide> 'title' => 'Special powers',
<ide> 'value' => 'Zonda',
<... | 1 |
Ruby | Ruby | use a case statement | 230161c1deb4bee497c12e7dfe87f41a236b2d44 | <ide><path>Library/Homebrew/extend/ENV/super.rb
<ide> def universal_binary
<ide> end
<ide>
<ide> def cxx11
<del> if self['HOMEBREW_CC'] == 'clang'
<add> case self["HOMEBREW_CC"]
<add> when "clang"
<ide> append 'HOMEBREW_CCCFG', "x", ''
<ide> append 'HOMEBREW_CCCFG', "g", ''
<del> elsif self... | 1 |
Java | Java | fix failing test (after previous commit) | 53e8ebe6a66e71f2565c496861a0baa0db80359e | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/DefaultPathSegmentContainer.java
<ide> private static void parseParamValues(String input, Charset charset, MultiValueMa
<ide> }
<ide>
<ide> static PathSegmentContainer subPath(PathSegmentContainer container, int fromIndex, int toIndex) {
<a... | 2 |
Javascript | Javascript | unify ga and add to donation | 78df3067078b29e868ca5fbe40e01101cd60982d | <ide><path>client/src/client-only-routes/ShowCertification.js
<ide> import {
<ide> showCert,
<ide> userFetchStateSelector,
<ide> usernameSelector,
<del> isDonatingSelector
<add> isDonatingSelector,
<add> executeGA
<ide> } from '../redux';
<ide> import validCertNames from '../../utils/validCertNames';
<ide> imp... | 18 |
Javascript | Javascript | fix touch events | 07cd9800e8cbd1b7822ead6b249d015650ef80c8 | <ide><path>src/js/component.js
<ide> vjs.Component = vjs.CoreObject.extend({
<ide> this.ready(ready);
<ide> // Don't want to trigger ready here or it will before init is actually
<ide> // finished for all children that run this constructor
<add>
<add>
<add> var touchmove = false;
<add> this.on('touchs... | 6 |
Python | Python | fix a typo in a comment | 413735b239239bc8ff38ee893e8448daf9b2bff6 | <ide><path>django/utils/http.py
<ide> def urlunquote_plus(quoted_url):
<ide> def urlencode(query, doseq=0):
<ide> """
<ide> A version of Python's urllib.urlencode() function that can operate on
<del> unicode strings. The parameters are first case to UTF-8 encoded strings and
<add> unicode strings. The par... | 1 |
Javascript | Javascript | improve code in test-http-bind-twice.js | 80f19b043dda93135d69459def5944e60518c690 | <ide><path>test/parallel/test-http-bind-twice.js
<ide> 'use strict';
<ide> const common = require('../common');
<del>var assert = require('assert');
<del>var http = require('http');
<add>const assert = require('assert');
<add>const http = require('http');
<ide>
<del>var server1 = http.createServer(common.fail);
<add>c... | 1 |
PHP | PHP | remove bad test | d4631a6eaddaf8bf8d7e24262631030efe32b7c2 | <ide><path>lib/Cake/Test/Case/Cache/Engine/MemcacheEngineTest.php
<ide> public function testMultipleServers() {
<ide> $Memcache = new MemcacheEngine();
<ide> $Memcache->init(array('engine' => 'Memcache', 'servers' => $servers));
<ide>
<del> $servers = array_keys($Memcache->__Memcache->getExtendedStats());
<ide> ... | 1 |
Javascript | Javascript | fix asset resolver url handling | 28d5d6baf1e6ac52e8672a653f56c3898e4e11d2 | <ide><path>Libraries/Image/AssetSourceResolver.js
<ide> class AssetSourceResolver {
<ide> }
<ide>
<ide> isLoadedFromFileSystem(): boolean {
<del> return !!this.jsbundleUrl;
<add> return !!(this.jsbundleUrl && this.jsbundleUrl.startsWith('file://'));
<ide> }
<ide>
<ide> canLoadFromEmbeddedBundledLocation... | 2 |
Text | Text | fix some translation errors | d6706f5d06080158e79e92064ff65a3e3ae6ce8b | <ide><path>threejs/lessons/fr/threejs-materials.md
<del>Title: Les Materials de Three.js
<del>Description: Les Materials dans Three.js
<del>TOC: Materials
<add>Title: Les Matériaux dans Three.js
<add>Description: Les Matériaux dans Three.js
<add>TOC: Matériaux
<ide>
<ide> Cet article fait partie d'une série consacrée ... | 1 |
Go | Go | use local random instance | 25fab69f7dcf72dabfeb60f61f50f175692f0b03 | <ide><path>pkg/namesgenerator/names-generator.go
<ide> var (
<ide> // Ada Yonath - an Israeli crystallographer, the first woman from the Middle East to win a Nobel prize in the sciences. https://en.wikipedia.org/wiki/Ada_Yonath
<ide> "yonath",
<ide> }
<add>
<add> rnd = rand.New(rand.NewSource(time.Now().UnixNano()... | 1 |
Python | Python | drop u'' prefix for python 3.x compatibility | 5829eb7a5b0d45fe668d7ce1ad394a7b5966c70d | <ide><path>rest_framework/tests/test_fields.py
<ide> def test_choices_not_required(self):
<ide> def test_invalid_choice_model(self):
<ide> s = ChoiceFieldModelSerializer(data={'choice' : 'wrong_value'})
<ide> self.assertFalse(s.is_valid())
<del> self.assertEqual(s.errors, {'choice': [u'Selec... | 1 |
Javascript | Javascript | fix kupdatetimer timer refresh | 0812ebda88798e103498e78c8ae95497e0a4bad1 | <ide><path>lib/internal/http2/core.js
<ide> class Http2Stream extends Duplex {
<ide> if (this.destroyed)
<ide> return;
<ide> if (this[kTimeout])
<del> _unrefActive([kTimeout]);
<add> _unrefActive(this[kTimeout]);
<ide> if (this[kSession])
<ide> this[kSession][kUpdateTimer]();
<ide> } | 1 |
Text | Text | fix changelog indent [ci skip] | 08d9c7532c7081d6b5964b8edf802fab72224cd7 | <ide><path>actionpack/CHANGELOG.md
<del>* Alias the `ActionDispatch::Request#uuid` method to `ActionDispatch::Request#request_id`.
<add>* Alias the `ActionDispatch::Request#uuid` method to `ActionDispatch::Request#request_id`.
<ide> Due to implementation, `config.log_tags = [:request_id]` also works in substitut... | 1 |
Python | Python | add backfill option to not pickle the dag | 727786a3a27698eb2f9154cd35e6ad57b3b72027 | <ide><path>airflow/bin/cli.py
<ide> def backfill(args):
<ide> mark_success=args.mark_success,
<ide> include_adhoc=args.include_adhoc,
<ide> local=args.local,
<add> donot_pickle=args.donot_pickle,
<ide> ignore_dependencies=args.ignore_dependencies)
<ide>
<ide>
<ide> def get_parse... | 1 |
Text | Text | fix headings for changelog_v10.md | db2ac1dbd94cd8a7628ddd609c5238aa2ad3d52e | <ide><path>doc/changelogs/CHANGELOG_V10.md
<ide>
<ide> <table>
<ide> <tr>
<del><th>Current</th>
<add><th>LTS 'Dubnium'</th>
<add><th title="Previously called 'Stable'">Current</th>
<ide> </tr>
<ide> <tr>
<del><td>
<add><td valign="top">
<ide> <a href="#10.13.0">10.13.0</a><br/>
<add></td>
<add><td valign="top">
<ide> ... | 1 |
Text | Text | note synchronous part of child_process.spawn | 25e5ae41688676a5fd29b2e2e7602168eee4ceb5 | <ide><path>doc/api/child_process.md
<ide> child registers an event handler for the [`'disconnect'`][] event
<ide> or the [`'message'`][] event. This allows the child to exit
<ide> normally without the process being held open by the open IPC channel.*
<ide>
<add>On UNIX-like operating systems, the [`child_process.spawn... | 1 |
Text | Text | add french translation | bf72b7a71c8578206217c150abb6973afbffd97c | <ide><path>threejs/lessons/fr/threejs-scenegraph.md
<ide> Cet article fait partie d'une série consacrée à Three.js.
<ide> Le premier article s'intitule [Principes de base](threejs-fundamentals.html).
<ide> Si vous ne l'avez pas encore lu, vous voudriez peut-être commencer par là.
<ide>
<del>Le coeurs de Three.js est s... | 1 |
Javascript | Javascript | handle certificate challenges separately | 2c78402837c501a131a9cc61000127e8255cc996 | <ide><path>tools/challenge-md-parser/translation-parser/translation-parser.js
<ide> exports.mergeChallenges = (engChal, transChal) => {
<ide> title: ${engChal.title}
<ide> localeTitle: ${transChal.localeTitle}`
<ide> );
<del> const translatedTests = transChal.tests.map(({ text }, id) => ({
<del> text,
<... | 1 |
Text | Text | fix typo in releases.md | c91e0ed3ad048deba9639e35570e5b6dcd7b7d39 | <ide><path>doc/releases.md
<ide> official release builds for Node.js, hosted on <https://nodejs.org/>.
<ide> ## Who can make a release?
<ide>
<ide> Release authorization is given by the Node.js TSC. Once authorized, an
<del>individual must be have the following:
<add>individual must have the following:
<ide>
<ide> ##... | 1 |
Python | Python | move std, var, mean calls out of try block | 08fb5807118423e314f324b9bcafdbaab9316f4d | <ide><path>numpy/core/fromnumeric.py
<ide> def mean(a, axis=None, dtype=None, out=None, keepdims=np._NoValue):
<ide> if type(a) is not mu.ndarray:
<ide> try:
<ide> mean = a.mean
<del> return mean(axis=axis, dtype=dtype, out=out, **kwargs)
<ide> except AttributeError:
<ide> ... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.