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 | use errdefs for errors | e214503789111f76ae08af66cf71740bc6483f99 | <ide><path>image/store.go
<ide> import (
<ide> "sync"
<ide> "time"
<ide>
<add> "github.com/docker/docker/errdefs"
<ide> "github.com/docker/docker/layer"
<ide> "github.com/docker/docker/pkg/system"
<ide> "github.com/opencontainers/go-digest"
<ide> func (is *store) Create(config []byte) (ID, error) {
<ide> }
<ide... | 2 |
Ruby | Ruby | prefer a feature check to a version check | 02b716a322d07fbb87eec0ad48f7029da1682648 | <ide><path>activesupport/lib/active_support/core_ext/rexml.rb
<ide> # This fix is identical to rexml-expansion-fix version 1.0.1
<ide>
<ide> # Earlier versions of rexml defined REXML::Version, newer ones REXML::VERSION
<del>unless (defined?(REXML::VERSION) ? REXML::VERSION : REXML::Version) > "3.1.7.2"
<add>unless REX... | 1 |
Javascript | Javascript | add tests for end event of stream.duplex | 383b1b6d3c5f753798d33ab6758ce8d5313f67e8 | <ide><path>test/parallel/test-stream-duplex-end.js
<add>'use strict';
<add>
<add>const common = require('../common');
<add>const assert = require('assert');
<add>const Duplex = require('stream').Duplex;
<add>
<add>{
<add> const stream = new Duplex({
<add> read() {}
<add> });
<add> assert.strictEqual(stream.allowH... | 1 |
Python | Python | add tensorboard to run_squad | 326944d627ad166f0e6a6921b7168a2caf31dd1e | <ide><path>examples/run_squad.py
<ide> from torch.utils.data.distributed import DistributedSampler
<ide> from tqdm import tqdm, trange
<ide>
<add>from tensorboardX import SummaryWriter
<add>
<ide> from pytorch_pretrained_bert.file_utils import PYTORCH_PRETRAINED_BERT_CACHE, WEIGHTS_NAME, CONFIG_NAME
<ide> from pytorch... | 1 |
PHP | PHP | provide retry callback with the attempt count | 96de5cc1753323f4a69ce72d5e7c2a549718670c | <ide><path>src/Illuminate/Support/helpers.php
<ide> function preg_replace_array($pattern, array $replacements, $subject)
<ide> * Retry an operation a given number of times.
<ide> *
<ide> * @param int $times
<del> * @param callable $callback
<add> * @param callable $callback First parameter ... | 2 |
Mixed | Javascript | improve errors thrown in header validation | 0a84e95cd9293bfcf1e746857921684f0732dd60 | <ide><path>doc/api/errors.md
<ide> more headers.
<ide> Used when an invalid character is found in an HTTP response status message
<ide> (reason phrase).
<ide>
<add><a id="ERR_HTTP_INVALID_HEADER_VALUE"></a>
<add>### ERR_HTTP_INVALID_HEADER_VALUE
<add>
<add>Used to indicate that an invalid HTTP header value has been sp... | 6 |
Ruby | Ruby | put exit statements in both conditional branches | 753adbb0ce1498bd74d1c2935a4394497624b373 | <ide><path>Library/Homebrew/cmd/upgrade.rb
<ide> def upgrade
<ide>
<ide> if ARGV.named.empty?
<ide> outdated = Homebrew.outdated_brews
<add> exit 0 if outdated.empty?
<ide> else
<ide> outdated = ARGV.formulae.select do |f|
<ide> if f.installed? | 1 |
Ruby | Ruby | avoid extra hash creation | 7b1fe264724e35182f6e7799163feba93a6da07f | <ide><path>actionpack/lib/action_dispatch/http/cache.rb
<ide> def handle_conditional_get!
<ide> end
<ide>
<ide> def merge_and_normalize_cache_control!(cache_control)
<del> control = {}
<ide> cc_headers = cache_control_headers
<ide> if extras = cc_headers.delete(:extras)
<id... | 1 |
Python | Python | simplify code, delete redundancy line | 22a465a91fb4f3708c8c9437db8765e38fad8ae0 | <ide><path>examples/run_classifier.py
<ide> def main():
<ide> optimizer.zero_grad()
<ide> global_step += 1
<ide>
<del> if args.do_train:
<ide> # Save a trained model and the associated configuration
<ide> model_to_save = model.module if hasattr(model, 'module'... | 1 |
PHP | PHP | add the abstract uuid type | 1dc3029e1d7b0838c01685ddefef14e8e7536a05 | <ide><path>Cake/Database/Schema/MysqlSchema.php
<ide> protected function _convertColumn($column) {
<ide> if (strpos($col, 'int') !== false) {
<ide> return ['type' => 'integer', 'length' => $length];
<ide> }
<add> if ($col === 'char' && $length === 36) {
<add> return ['type' => 'uuid', 'length' => null];
<add>... | 6 |
Mixed | Python | add files via upload | a368d620ae41dece6382c4f14b3ec1d629502360 | <ide><path>linear-algebra-python/README.md
<ide> This module contains some useful classes and functions for dealing with linear a
<ide> - returns a unit basis vector with a One at index 'pos' (indexing at 0)
<ide> - function axpy(scalar,vector1,vector2)
<ide> - computes the axpy operation
<add>- function ... | 2 |
Javascript | Javascript | update chart when attached | d5eaa12d96bc059eae7d7768f5b4f4ee45fa42ca | <ide><path>src/core/core.controller.js
<ide> class Chart {
<ide> const attached = () => {
<ide> _remove('attach', attached);
<ide>
<del> me.resize();
<ide> me.attached = true;
<add> me.resize();
<ide>
<ide> _add('resize', listener);
<ide> _add('detach', detached);
<ide><path>test/specs/core.c... | 2 |
PHP | PHP | remove unused method | 463bb87662143734251923b36a473f5b4cdb5440 | <ide><path>src/Illuminate/Session/Middleware/StartSession.php
<ide> protected function sessionIsPersistent(array $config = null)
<ide>
<ide> return ! in_array($config['driver'], [null, 'array']);
<ide> }
<del>
<del> /**
<del> * Determine if the session is using cookie sessions.
<del> *
<del> ... | 1 |
Ruby | Ruby | raise option to as number helpers | 77b89c293594e6b7d1bf9092244a43ae1e2bd67c | <ide><path>actionpack/lib/action_view/helpers/number_helper.rb
<ide> def number_to_phone(number, options = {})
<ide> return unless number
<ide> options = options.symbolize_keys
<ide>
<del> parse_float(number, true) if options[:raise]
<add> parse_float(number, true) if options.delete(:rais... | 1 |
Go | Go | make errors from graphdriver init friendlier | c0f7819905050ebdb583afba5b6f760d3892adb8 | <ide><path>daemon/daemon.go
<ide> func NewDaemonFromDirectory(config *Config, eng *engine.Engine) (*Daemon, error)
<ide> // Load storage driver
<ide> driver, err := graphdriver.New(config.Root, config.GraphOptions)
<ide> if err != nil {
<del> return nil, err
<add> return nil, fmt.Errorf("error intializing graphdri... | 3 |
Text | Text | change urls directly from 'http' to 'https' | c6b7e748b0eead30df423bd267a855e773691519 | <ide><path>BUILDING.md
<ide> $ backtrace
<ide> [Build Tools](https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017),
<ide> with the default optional components.
<ide> * Basic Unix tools required for some tests,
<del> [Git for Windows](http://git-scm.com/download/win) includes Git Bash
<add> [... | 5 |
Javascript | Javascript | rewrite the clone and merge helpers | 225bfd36f3daae2cfd0e2869658144ee6bfd988b | <ide><path>src/core/core.helpers.js
<ide> module.exports = function(Chart) {
<ide> var helpers = Chart.helpers;
<ide>
<ide> // -- Basic js utility methods
<del> helpers.clone = function(obj) {
<del> var objClone = {};
<del> helpers.each(obj, function(value, key) {
<del> if (helpers.isArray(value)) {
<del> obj... | 7 |
Javascript | Javascript | fix coding style in src/core/core.js | 131a16b65ea7cb306213cbf7b7bc18929dfab9e9 | <ide><path>src/core/core.js
<ide> var Page = (function PageClosure() {
<ide> var xref = this.xref;
<ide> var i, n = content.length;
<ide> var streams = [];
<del> for (i = 0; i < n; ++i)
<add> for (i = 0; i < n; ++i) {
<ide> streams.push(xref.fetchIfRef(content[i]));
<add>... | 1 |
Javascript | Javascript | remove unneeded bind() and related comments | 93bacfd00fd04d5c219fb392382250d96bb3a7be | <ide><path>test/internet/test-dgram-multicast-multi-process.js
<ide> if (process.argv[2] !== 'child') {
<ide> }
<ide>
<ide> var sendSocket = dgram.createSocket('udp4');
<del> // FIXME: a libuv limitation makes it necessary to bind()
<del> // before calling any of the set*() functions. The bind()
<del> // call i... | 1 |
Javascript | Javascript | fix missing end of file newline | c8a64817d2c62cdfda072dcae75d190746e7572e | <ide><path>test/ngRoute/directive/ngViewSpec.js
<ide> describe('ngView', function() {
<ide> ));
<ide> });
<ide> });
<del>});
<ide>\ No newline at end of file
<add>}); | 1 |
Javascript | Javascript | remove an unneccessary directive definition | b58a7f8a12dc7a2ae0023837ed77c165b62cefcc | <ide><path>angularFiles.js
<ide> var angularFiles = {
<ide> 'src/ng/directive/ngTransclude.js',
<ide> 'src/ng/directive/script.js',
<ide> 'src/ng/directive/select.js',
<del> 'src/ng/directive/style.js',
<ide> 'src/ng/directive/validators.js',
<ide> 'src/angular.bind.js',
<ide> 'src/publishExt... | 3 |
Javascript | Javascript | flow typing activityindicator | 0b71d1ddb03c036ed118574c105b0af505da19fc | <ide><path>Libraries/Components/ActivityIndicator/ActivityIndicator.js
<ide> const ViewPropTypes = require('ViewPropTypes');
<ide>
<ide> const createReactClass = require('create-react-class');
<ide> const requireNativeComponent = require('requireNativeComponent');
<add>
<add>import type {ViewProps} from 'ViewPropTypes... | 1 |
Javascript | Javascript | remove some duplication in the `dict.merge` method | e1ee3835cdd9e12d664c8d25db0a5dca845374b6 | <ide><path>src/core/primitives.js
<ide> class Dict {
<ide> }
<ide>
<ide> static merge({ xref, dictArray, mergeSubDicts = false }) {
<del> const mergedDict = new Dict(xref);
<del>
<del> if (!mergeSubDicts) {
<del> for (const dict of dictArray) {
<del> if (!(dict instanceof Dict)) {
<del> ... | 1 |
Go | Go | fix wrong untag when using rmi via id | e608296bc62ceeaf41ebf2bc80b21c0a1883d4f0 | <ide><path>server.go
<ide> func (srv *Server) deleteImage(img *Image, repoName, tag string) ([]APIRmi, erro
<ide> parsedRepo := strings.Split(repoAndTag, ":")[0]
<ide> if strings.Contains(img.ID, repoName) {
<ide> repoName = parsedRepo
<add> if len(strings.Split(repoAndTag, ":")) > 1 {
<add> tag = stri... | 1 |
Text | Text | add changelogs for console | 7b5a4ba9fd1c59ee2c30d4d90ba5b20b4094271e | <ide><path>doc/api/console.md
<ide> milliseconds to `stdout`. Timer durations are accurate to the sub-millisecond.
<ide> ### console.timeEnd(label)
<ide> <!-- YAML
<ide> added: v0.1.104
<add>changes:
<add> - version: v6.0.0
<add> pr-url: https://github.com/nodejs/node/pull/5901
<add> description: This method no ... | 1 |
Python | Python | improve test syntax | a996d3d9773a98a85eeab243e3d0d58750c0500c | <ide><path>tests/keras/engine/test_training.py
<ide> def test_check_not_failing():
<ide>
<ide> def test_check_last_is_one():
<ide> a = np.random.random((2, 3, 1))
<del> with pytest.raises(ValueError) as exc:
<add> with pytest.raises(ValueError,
<add> match='You are passing a target arra... | 2 |
Go | Go | fix typos in error messages | a447894946ca2ac47bf1c46f78c4839c75fd740d | <ide><path>daemon/graphdriver/devmapper/attach_loopback.go
<ide> func openNextAvailableLoopback(index int, sparseFile *os.File) (loopFile *os.Fil
<ide> // OpenFile adds O_CLOEXEC
<ide> loopFile, err = os.OpenFile(target, os.O_RDWR, 0644)
<ide> if err != nil {
<del> log.Errorf("Error openning loopback device: %s... | 1 |
Text | Text | add client-side and node.js recommended libraries | e0da99eb83a06dcd07a5f22a19702499aa8ac56a | <ide><path>README.md
<ide> Obtaining API Keys
<ide>
<ide> Recommended Node.js Libraries
<ide> -----------------------------
<del>- nodemon - automatically restart node.js server on code change.
<del>- geoip-lite - get location name from IP address.
<del>- [node-validator](https://github.com/chriso/node-validator) - in... | 1 |
Go | Go | tidy hostconfig struct | 51cf074e77020ab45b84c22259488b7a0eddc36a | <ide><path>runconfig/hostconfig.go
<ide> type LogConfig struct {
<ide> // Here, "non-portable" means "dependent of the host we are running on".
<ide> // Portable information *should* appear in Config.
<ide> type HostConfig struct {
<del> Binds []string // List of volume bindings for this contai... | 1 |
Text | Text | add docs for option `--isolation` | 38ec5d86a355674cfddf8c998591abb098475bab | <ide><path>docs/reference/commandline/build.md
<ide> parent = "smn_cli"
<ide> -f, --file="" Name of the Dockerfile (Default is 'PATH/Dockerfile')
<ide> --force-rm=false Always remove intermediate containers
<ide> --help=false Print usage
<add> -... | 7 |
Javascript | Javascript | reduce number of calls to map | c061c33e0f2d4540432827b11f418b331c48cf93 | <ide><path>lib/util/identifier.js
<ide> exports.makePathsRelative = (context, identifier, cache) => {
<ide> if(!cache) return _makePathsRelative(context, identifier);
<ide>
<ide> const relativePaths = cache.relativePaths || (cache.relativePaths = new Map());
<del> if(!relativePaths.has(context)) {
<del> relativePat... | 1 |
PHP | PHP | fix failing tests by 1 second difference | 09a623e07b7aa5ebfbd8d14374209c87c7874b97 | <ide><path>lib/Cake/Test/Case/Utility/FileTest.php
<ide> public function testExecutable() {
<ide> * @return void
<ide> */
<ide> public function testLastAccess() {
<add> $ts = time();
<ide> $someFile = new File(TMP . 'some_file.txt', false);
<ide> $this->assertFalse($someFile->lastAccess());
<ide> $this->asser... | 1 |
Ruby | Ruby | fix error in virtualenv_install_with_resources | f9481d4d35ca03706fe0d1885e5c83b89e89966e | <ide><path>Library/Homebrew/language/python.rb
<ide> def virtualenv_install_with_resources(options = {})
<ide> wanted = pythons.select { |py| needs_python?(py) }
<ide> raise FormulaAmbiguousPythonError, self if wanted.size > 1
<ide>
<add> python = wanted.first
<ide> python = "pyt... | 1 |
Javascript | Javascript | improve child_process tests | 366495d4e221ccd7080a0a05ce67160905b4a6a5 | <ide><path>test/parallel/test-child-process-stdin.js
<ide> 'use strict';
<del>var common = require('../common');
<del>var assert = require('assert');
<add>const common = require('../common');
<add>const assert = require('assert');
<ide>
<del>var spawn = require('child_process').spawn;
<add>const spawn = require('child... | 3 |
Python | Python | fix xlnet imports | c21bec54e15ab57ca4127cfb28f7a2e909ec1e09 | <ide><path>official/nlp/xlnet/preprocess_pretrain_data.py
<ide> import os
<ide> import random
<ide>
<add>from absl import app
<ide> from absl import flags
<ide> import absl.logging as _logging # pylint: disable=unused-import
<ide>
<ide> def input_fn(params):
<ide> "using multiple workers to id... | 4 |
PHP | PHP | add information to deprecation message | 16f698268791b88757ff3444497caf40df0fe4b4 | <ide><path>src/View/ViewVarsTrait.php
<ide> trait ViewVarsTrait
<ide> * Variables for the view
<ide> *
<ide> * @var array
<del> * @deprecated 3.7.0 Use `$this->set()` instead.
<add> * @deprecated 3.7.0 Use `$this->set()` instead, also see `\Cake\View\View::get()`.
<ide> */
<ide> public $... | 1 |
Javascript | Javascript | remove transparent based on alphamap | 66b4d70fb0d35175f7130b2bfb4e4a7fd8e2903f | <ide><path>src/loaders/MaterialLoader.js
<ide> MaterialLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
<ide> if ( json.map !== undefined ) material.map = getTexture( json.map );
<ide> if ( json.matcap !== undefined ) material.matcap = getTexture( json.matcap );
<ide>
<del> if ( json.alphaMa... | 1 |
Ruby | Ruby | initialize #min_cost to avoid warning in ruby 2.0 | 0b63da9d5aad9382515cc04f840a4ad73c269d4d | <ide><path>activemodel/lib/active_model/secure_password.rb
<ide> module SecurePassword
<ide> extend ActiveSupport::Concern
<ide>
<ide> class << self; attr_accessor :min_cost; end
<add> self.min_cost = false
<ide>
<ide> module ClassMethods
<ide> # Adds methods to set and authenticate against a BCr... | 1 |
Mixed | Ruby | add sqlcommenter formatting support on query logs | 6df894fd568b8f6e828442369b39a0fd63f6bad2 | <ide><path>activerecord/CHANGELOG.md
<add>* Add configurable formatter on query log tags to support sqlcommenter. See #45139
<add>
<add> It is now possible to opt into sqlcommenter-formatted query log tags with `config.active_record.query_log_tags_format = :sqlcommenter`.
<add>
<add> *Modulitos and Iheanyi*
<ad... | 8 |
Text | Text | add missing punctuation in changelog. [ci skip] | 1ceeadad3b3431e97ab333545bd9bbf263c0ecc7 | <ide><path>activesupport/CHANGELOG.md
<del>* Patch `Delegator` to work with `#try`
<add>* Patch `Delegator` to work with `#try`.
<ide>
<del> Fixes #5790
<add> Fixes #5790.
<ide>
<ide> *Nate Smith*
<ide> | 1 |
Ruby | Ruby | use class_attribute so we dont bleed | 0093dafd804c59ea1685cdab2a79b37d63c8dbf0 | <ide><path>actionpack/lib/action_controller/metal/conditional_get.rb
<add>require 'active_support/core_ext/class/attribute'
<add>
<ide> module ActionController
<ide> module ConditionalGet
<ide> extend ActiveSupport::Concern
<ide>
<ide> include RackDelegation
<ide> include Head
<ide>
<del> included { ... | 1 |
Javascript | Javascript | add "coiney madoguchi" to showcase | 298dc7c15214e85564e5b76105d335fc4b4a6acd | <ide><path>website/src/react-native/showcase.js
<ide> var apps = [
<ide> link: 'https://www.codementor.io/downloads',
<ide> author: 'Codementor',
<ide> },
<add> {
<add> name: 'Coiney窓口',
<add> icon: 'http://a4.mzstatic.com/us/r30/Purple69/v4/c9/bc/3a/c9bc3a29-9c11-868f-b960-ca46d5fcd509/icon175x175.jpe... | 1 |
Text | Text | fix typo in http2 doc | 29de91b64f2ec18e9d91fb89f58f371452f7b76e | <ide><path>doc/api/http2.md
<ide> Shortcut for `http2stream.rstStream()` using error code `0x02` (Internal Error).
<ide> added: v8.4.0
<ide> -->
<ide>
<del>* Value: {Http2Sesssion}
<add>* Value: {Http2Session}
<ide>
<ide> A reference to the `Http2Session` instance that owns this `Http2Stream`. The
<ide> value will be... | 1 |
PHP | PHP | fix typo variable name in _deletedependent() | e1c27af9e9d7d6d8a2c36f6aef63fa266afb7fae | <ide><path>lib/Cake/Model/Model.php
<ide> protected function _deleteDependent($id, $cascade) {
<ide> return;
<ide> }
<ide> if (!empty($this->__backAssociation)) {
<del> $savedAssociatons = $this->__backAssociation;
<add> $savedAssociations = $this->__backAssociation;
<ide> $this->__backAssociation = array... | 1 |
Text | Text | fix community link [404 not found] | a26db2292f153b825101f49577ce9b6f3a0a2cf6 | <ide><path>README.md
<ide> <span> · </span>
<ide> <a href="https://reactnative.dev/docs/contributing">Contribute</a>
<ide> <span> · </span>
<del> <a href="https://reactnative.dev/en/help">Community</a>
<add> <a href="https://reactnative.dev/help">Community</a>
<ide> <span> · </span>
<ide> <a href="https://g... | 1 |
Text | Text | update docs on django-oauth-toolkit | 059947028bd9e741a06ef40b3d9f0bd9cecae090 | <ide><path>docs/api-guide/authentication.md
<ide> The following third party packages are also available.
<ide>
<ide> ## Django OAuth Toolkit
<ide>
<del>The [Django OAuth Toolkit][django-oauth-toolkit] package provides OAuth 2.0 support, and works with Python 2.7 and Python 3.3+. The package is maintained by [Evonove]... | 1 |
Ruby | Ruby | correct an indent | aec45a6ee66c28f0be7c8d1d608596676fe65550 | <ide><path>Library/Homebrew/patches.rb
<ide> def download!
<ide> private
<ide>
<ide> def external_patches
<del> @patches.select{|p| p.external?}
<add> @patches.select{|p| p.external?}
<ide> end
<ide>
<ide> # Collects the urls and output names of all external patches | 1 |
Javascript | Javascript | update usdzexporter.js | 061ac286ba1f92bc01ff95a4f6f99edc95ff5c8a | <ide><path>examples/jsm/exporters/USDZExporter.js
<ide> function buildMaterial( material, textures ) {
<ide> float outputs:r
<ide> float outputs:g
<ide> float outputs:b
<del> float3 outputs:rgb
<add> float outputs:a
<add> float3 outputs:rgba
<ide> ... | 1 |
Ruby | Ruby | check raise deprecation exceptions value | c56625f8b76f5e33ac5e086af4c9d3d79c593218 | <ide><path>Library/Homebrew/utils.rb
<ide> def odeprecated(method, replacement = nil, options = {})
<ide> #{caller_message}#{tap_message}
<ide> EOS
<ide>
<del> if ARGV.homebrew_developer? || options[:die]
<add> if ARGV.homebrew_developer? || options[:die] ||
<add> Homebrew.raise_deprecation_exceptions?
<id... | 1 |
Mixed | Ruby | add a method full_messages_for to the errors class | ec1b715b0e6f0a345b94a44b2a03b6044091a706 | <ide><path>activemodel/CHANGELOG.md
<ide> ## Rails 4.0.0 (unreleased) ##
<ide>
<add>* Add ActiveModel::Errors#full_messages_for, a method that returns all the error
<add> messages for a given attribute.
<add>
<add> *Volodymyr Shatsky*
<add>
<ide> * Added a method so that validations can be easily cleared on ... | 3 |
PHP | PHP | add macroable trait to blueprint class | d29f5eb315b330b0e0be3591f032acf016797b5a | <ide><path>src/Illuminate/Database/Schema/Blueprint.php
<ide> use Closure;
<ide> use Illuminate\Support\Fluent;
<ide> use Illuminate\Database\Connection;
<add>use Illuminate\Support\Traits\Macroable;
<ide> use Illuminate\Database\Schema\Grammars\Grammar;
<ide>
<ide> class Blueprint
<ide> {
<add> use Macroable;
<add... | 1 |
PHP | PHP | use getter methods instead of properties | 5e355eee0215c25ce0f57af534c149578459aaac | <ide><path>tests/TestCase/Controller/Component/RequestHandlerComponentTest.php
<ide> public function testNoViewClassExtension()
<ide> public function testUnrecognizedExtensionFailure()
<ide> {
<ide> Router::extensions(['json', 'foo'], false);
<del> $this->Controller->setRequest($this->Controller-... | 1 |
Javascript | Javascript | update test-dns.js to work with latest api | 3c97a4391af24aea35cb5efa7a40956f7a51d547 | <ide><path>test/disabled/test-dns.js
<ide> while (i--) {
<ide> "| sed -E 's/[[:space:]]+/ /g' | cut -d ' ' -f 5- " +
<ide> "| sed -e 's/\\.$//'";
<ide>
<del> sys.exec(hostCmd).addCallback(checkDnsRecord(hosts[i], records[j]));
<add> sys.exec(hostCmd, checkDnsRecord(hosts[i], r... | 1 |
Text | Text | fix incorrect url in cli.md | 226eabb1aa4b178c32c002b641bef3688c4097ba | <ide><path>doc/api/cli.md
<ide> $ node --max-old-space-size=1536 index.js
<ide> [`tls.DEFAULT_MAX_VERSION`]: tls.html#tls_tls_default_max_version
<ide> [`tls.DEFAULT_MIN_VERSION`]: tls.html#tls_tls_default_min_version
<ide> [`unhandledRejection`]: process.html#process_event_unhandledrejection
<del>[`worker_threads.thre... | 1 |
Text | Text | fix backticks in crypto api docs | c2c6fbb0eadc584c1613ed466c50d7e8fc4d3214 | <ide><path>doc/api/crypto.md
<ide> changes:
<ide> `crypto.constants`, which may be: `crypto.constants.RSA_NO_PADDING` or
<ide> `crypto.constants.RSA_PKCS1_PADDING`.
<ide> * `encoding` {string} The string encoding to use when `buffer`, `key`,
<del> or 'passphrase` are strings.
<add> or `passphrase` are s... | 1 |
Go | Go | get err type in removenetworks() w/ errors.cause() | 6225d1f15c5fd916c3e0ef3afe022f6cc14ac696 | <ide><path>daemon/cluster/executor/container/adapter.go
<ide> import (
<ide> "context"
<ide> "encoding/base64"
<ide> "encoding/json"
<del> "errors"
<ide> "fmt"
<ide> "io"
<ide> "os"
<ide> import (
<ide> "github.com/docker/swarmkit/log"
<ide> gogotypes "github.com/gogo/protobuf/types"
<ide> "github.com/opencont... | 1 |
Text | Text | incorporate changes from code review | 5a1adeae06a6660d43274e10bb60d5d14b7cd178 | <ide><path>docs/Deprecating-Disabling-and-Removing-Formulae.md
<ide> There are many reasons why formulae may be deprecated, disabled, or removed. Thi
<ide>
<ide> This general rule of thumb can be followed:
<ide>
<del>- `deprecate!` should be used for formulae that _should_ no longer be used
<del>- `disable!` should b... | 2 |
Javascript | Javascript | fix minor issues and linter | ef78c1b69181c55029ec25be9f4ef87f03a9f0f5 | <ide><path>src/materials/Material.js
<ide> function Material() {
<ide>
<ide> this.toneMapped = true;
<ide> this.userData = {};
<del>
<ide> this.needsUpdate = true;
<ide>
<ide> }
<ide><path>src/renderers/WebGLRenderer.js
<ide> function WebGLRenderer( parameters ) {
<ide>
<ide> var _canvas = parameters.canvas !== ... | 5 |
Java | Java | reduce visibility of hint factory methods | cfd37d948d935258c55dd403bb112328eb402cf5 | <ide><path>spring-core/src/main/java/org/springframework/aot/hint/ExecutableHint.java
<ide> private ExecutableHint(Builder builder) {
<ide> * @param parameterTypes the parameter types of the constructor
<ide> * @return a builder
<ide> */
<del> public static Builder ofConstructor(List<TypeReference> parameterTypes... | 2 |
Text | Text | clarify replit use of env files | 1ba88935b2c9999b1c77b3fdcdd852cf717a738e | <ide><path>curriculum/challenges/english/05-apis-and-microservices/basic-node-and-express/use-the-.env-file.md
<ide> The environment variables are accessible from the app as `process.env.VAR_NAME`.
<ide>
<ide> Let's add an environment variable as a configuration option.
<ide>
<del>Create a `.env` file in the root of ... | 1 |
Java | Java | show columns in redboxes | 8c1b773e4d81ef452a70ae073033d6cffd33c5eb | <ide><path>ReactAndroid/src/main/java/com/facebook/react/devsupport/RedBoxDialog.java
<ide> public View getView(int position, View convertView, ViewGroup parent) {
<ide> StackFrame frame = mStack[position - 1];
<ide> FrameViewHolder holder = (FrameViewHolder) convertView.getTag();
<ide> holder.m... | 2 |
Go | Go | stop health checks before deleting task | 8b748bd326d102e4188f55b78ebd06fea0770ffc | <ide><path>daemon/monitor.go
<ide> func (daemon *Daemon) setStateCounter(c *container.Container) {
<ide> func (daemon *Daemon) handleContainerExit(c *container.Container, e *libcontainerdtypes.EventInfo) error {
<ide> var exitStatus container.ExitStatus
<ide> c.Lock()
<add>
<add> // Health checks will be automaticall... | 1 |
Go | Go | move base device creation in separate function | efc1ddd7e3341124a2ebbb8a358f44754b32f310 | <ide><path>daemon/graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) saveBaseDeviceUUID(baseInfo *devInfo) error {
<ide> return nil
<ide> }
<ide>
<add>func (devices *DeviceSet) createBaseImage() error {
<add> logrus.Debugf("Initializing base device-mapper thin volume")
<add>
<add> // Create initial de... | 1 |
Javascript | Javascript | use new buffer api where appropriate | 8ed44ff1c4b48fe62a0aef88bd1d0385f0eadd03 | <ide><path>benchmark/streams/pipe.js
<ide> const bench = common.createBenchmark(main, {
<ide> });
<ide>
<ide> function main({ n }) {
<del> const b = new Buffer(1024);
<add> const b = Buffer.alloc(1024);
<ide> const r = new Readable();
<ide> const w = new Writable();
<ide>
<ide><path>benchmark/streams/readable-b... | 12 |
Javascript | Javascript | increase coverage for exec() functions | 58cb9cde91f9b6851e98e590a54db5d8980674f7 | <ide><path>test/parallel/test-child-process-exec-buffer.js
<del>'use strict';
<del>const common = require('../common');
<del>const assert = require('assert');
<del>const exec = require('child_process').exec;
<del>const os = require('os');
<del>const str = 'hello';
<del>
<del>// default encoding
<del>exec('echo ' + str,... | 2 |
Go | Go | implement docker cp with standalone client lib | 1b2b91ba43dc6fa1b4b758fc5a8090ce6cc597ff | <ide><path>api/client/cp.go
<ide> package client
<ide>
<ide> import (
<del> "encoding/base64"
<del> "encoding/json"
<ide> "fmt"
<ide> "io"
<del> "net/http"
<del> "net/url"
<ide> "os"
<ide> "path/filepath"
<ide> "strings"
<ide>
<add> "github.com/docker/docker/api/client/lib"
<ide> "github.com/docker/docker/api/t... | 2 |
Ruby | Ruby | remove warnings from rake test | a2338c583349ebd48f3c9ec18f1df5c7cf21dfdb | <ide><path>railties/test/application/rake_test.rb
<ide> def test_the_test_rake_task_is_protected_when_previous_migration_was_production
<ide> env RAILS_ENV=production bin/rake db:create db:migrate;
<ide> env RAILS_ENV=production bin/rake db:test:prepare test 2>&1`
<ide>
<del> assert_match /Act... | 1 |
Text | Text | fix "hashownproperty" typo in querystring | 24e4488891b6189c52ea803efed5087d31651a5f | <ide><path>doc/api/querystring.md
<ide> For example, the query string `'foo=bar&abc=xyz&abc=123'` is parsed into:
<ide>
<ide> *Note*: The object returned by the `querystring.parse()` method _does not_
<ide> prototypically extend from the JavaScript `Object`. This means that the
<del>typical `Object` methods such as `o... | 1 |
Javascript | Javascript | remove underline colour in android text inputs | 6ed49341f315434ee0c2016c356aa1c3f29209c1 | <ide><path>Libraries/Image/ImageSource.js
<ide>
<ide> export type ImageSource = {
<ide> uri: string,
<del>};
<add>} | number; | 1 |
PHP | PHP | move view/widget/idgeneratortrait to view/helper | 17bcaf393d486eb1a53dfed76d279da3aa7d2581 | <ide><path>src/View/Helper/FormHelper.php
<ide> use Cake\View\Form\EntityContext;
<ide> use Cake\View\Form\NullContext;
<ide> use Cake\View\Helper;
<add>use Cake\View\Helper\IdGeneratorTrait;
<ide> use Cake\View\Helper\StringTemplateTrait;
<ide> use Cake\View\StringTemplate;
<ide> use Cake\View\View;
<del>use Cake\View... | 4 |
Go | Go | fix minor spelling error in service inspect | 920e65ccbca0423c43579c9ce3b9331efe14c97b | <ide><path>api/client/service/inspect.go
<ide> func printService(out io.Writer, service swarm.Service) {
<ide> }
<ide> fmt.Fprintln(out, "Placement:")
<ide> fmt.Fprintln(out, " Strategy:\tSPREAD")
<del> fmt.Fprintf(out, "UpateConfig:\n")
<add> fmt.Fprintf(out, "UpdateConfig:\n")
<ide> fmt.Fprintf(out, " Parallelism... | 1 |
Java | Java | restore stringutils.haslength check | b3d56ebf3b2dae906d13ae5cdd7f23b8945f3d85 | <ide><path>spring-core/src/main/java/org/springframework/util/MimeTypeUtils.java
<ide> public abstract class MimeTypeUtils {
<ide> * @throws InvalidMimeTypeException if the string cannot be parsed
<ide> */
<ide> public static MimeType parseMimeType(String mimeType) {
<del> return cachedMimeTypes.get(mimeType);
<d... | 2 |
Javascript | Javascript | fix regression in string argument handling | 41ec6d0580d91c4f2e5f30f279225eb4ec07886d | <ide><path>lib/dgram.js
<ide> Socket.prototype.send = function(buffer,
<ide> if (!util.isBuffer(buffer))
<ide> throw new TypeError('First argument must be a buffer object.');
<ide>
<add> offset = offset | 0;
<add> if (offset < 0)
<add> throw new RangeError('Offset should be >= 0');
<add>
<ide> if (offset ... | 3 |
Text | Text | use arrow function for anonymous callbacks | e958ee7a70d0af136fae8a708882cccdd4601658 | <ide><path>doc/api/async_hooks.md
<ide> The ID returned from `executionAsyncId()` is related to execution timing, not
<ide> causality (which is covered by `triggerAsyncId()`):
<ide>
<ide> ```js
<del>const server = net.createServer(function onConnection(conn) {
<add>const server = net.createServer((conn) => {
<ide> /... | 1 |
PHP | PHP | add missing interface check | e6ab885ba675a858a4b18e0c1acf215bf2824670 | <ide><path>src/ORM/Marshaller.php
<ide> public function merge(EntityInterface $entity, array $data, array $options = [])
<ide> $properties = $marshalledAssocs = [];
<ide> foreach ($data as $key => $value) {
<ide> if (!empty($errors[$key])) {
<del> if (method_exists($entity, 'i... | 1 |
Python | Python | add ascii encoding on network interface name | a17f68c1b4b073432ddef67c7c3307bce0a044ef | <ide><path>glances/glances.py
<ide> def displayNetwork(self, network):
<ide> # network interface name
<ide> self.term_window.addnstr(
<ide> self.network_y + 1 + i, self.network_x,
<del> unicode(network[i]['interface_name'], 'ascii', 'ignore') + ':',... | 1 |
Java | Java | harmonize default converters | 0612bc7bc5a82ff7414d8c8bcf665599d23a5225 | <ide><path>spring-core/src/main/java/org/springframework/core/convert/support/DefaultConversionService.java
<ide>
<ide> package org.springframework.core.convert.support;
<ide>
<add>import java.nio.charset.Charset;
<add>import java.util.Currency;
<ide> import java.util.Locale;
<ide> import java.util.UUID;
<ide>
<ide>... | 5 |
Text | Text | add link to djangorestframework-digestauth | 7ffb2435ca87676173e8c634401a9c871b1e2087 | <ide><path>docs/api-guide/authentication.md
<ide> Unauthenticated responses that are denied permission will result in an `HTTP 401
<ide>
<ide> **Note:** If you use `TokenAuthentication` in production you must ensure that your API is only available over `https` only.
<ide>
<del>=======
<add>---
<add>
<ide> If you want... | 1 |
Mixed | Javascript | fix umd bundles by removing usage of global | eeb1325b03388184f61796ccf57835d33739249a | <ide><path>packages/react-art/src/ReactARTHostConfig.js
<ide> export function getChildHostContext() {
<ide> export const scheduleTimeout = setTimeout;
<ide> export const cancelTimeout = clearTimeout;
<ide> export const noTimeout = -1;
<del>export function queueMicrotask(callback: Function) {
<add>export function schedu... | 11 |
PHP | PHP | remove unused "use" statements | a70cc4975e2a8254a91d74e0f15ce3b8400869c8 | <ide><path>src/Auth/DigestAuthenticate.php
<ide> namespace Cake\Auth;
<ide>
<ide> use Cake\Controller\ComponentRegistry;
<del>use Cake\Core\Configure;
<ide> use Cake\Http\ServerRequest;
<ide> use Cake\Utility\Security;
<ide>
<ide><path>src/Collection/Collection.php
<ide> use ArrayIterator;
<ide> use InvalidArgumentEx... | 42 |
Python | Python | remove hyphen in tap result | de051757e28e2fd256eb9a64d44bf22a0e0bbf00 | <ide><path>tools/test.py
<ide> def HasRun(self, output):
<ide> self._done += 1
<ide> command = basename(output.command[-1])
<ide> if output.UnexpectedOutput():
<del> status_line = 'not ok %i - %s' % (self._done, command)
<add> status_line = 'not ok %i %s' % (self._done, command)
<ide> if FLA... | 1 |
Javascript | Javascript | fix typo in `pre_execution.js` | 3c423a2030d35faace4aa85a7a05ed816a32f8d1 | <ide><path>lib/internal/process/pre_execution.js
<ide> const {
<ide> isBuildingSnapshot,
<ide> } = require('v8').startupSnapshot;
<ide>
<del>function prepareMainThreadExecution(expandArgv1 = false, initialzeModules = true) {
<add>function prepareMainThreadExecution(expandArgv1 = false, initializeModules = true) {
<i... | 1 |
Javascript | Javascript | fix parse query | c7a90e04219ec6177b42f6e5c26c5202ecbbbe23 | <ide><path>web/viewer.js
<ide> var PDFView = {
<ide>
<ide> // Helper function to parse query string (e.g. ?param1=value&parm2=...).
<ide> parseQueryString: function pdfViewParseQueryString(query) {
<del> var params = query.split('&');
<del> for (var i = 0; i < params.length; i++) {
<del> var param = par... | 1 |
Ruby | Ruby | add examples to array#to_sentence [ci skip] | 1e1d1da3ad71ed43fcff73bc3956579b69a1563d | <ide><path>activesupport/lib/active_support/core_ext/array/conversions.rb
<ide> require 'active_support/core_ext/string/inflections'
<ide>
<ide> class Array
<del> # Converts the array to a comma-separated sentence where the last element is joined by the connector word. Options:
<del> # * <tt>:words_connector</tt> - ... | 1 |
Ruby | Ruby | remove unused argument `expected_database` | a444bae3f29ffc09231e31526631bcb35fa2bfa0 | <ide><path>railties/test/application/rake/multi_dbs_test.rb
<ide> def db_migrate_and_schema_dump_and_load(format)
<ide> end
<ide> end
<ide>
<del> def db_migrate_namespaced(namespace, expected_database)
<add> def db_migrate_namespaced(namespace)
<ide> Dir.chdir(app_path) do
<ide> ... | 1 |
Ruby | Ruby | improve tests to use only public api | 13c18fe2cab630798bd8f7946bc2646f0d295c7f | <ide><path>activerecord/test/cases/relation_test.rb
<ide> def test_relation_merging_with_joins_as_join_dependency_pick_proper_parent
<ide> comment = post.comments.create!(body: "hu")
<ide> 3.times { comment.ratings.create! }
<ide>
<del> relation = Post.joins Associations::JoinDependency.new(Post, :com... | 1 |
Python | Python | describe dag owner more carefully | b6c20a8f5dadd14e45ecec05b8434f9a76fb4e27 | <ide><path>airflow/models/baseoperator.py
<ide> class derived from this one results in the creation of a task object,
<ide>
<ide> :param task_id: a unique, meaningful id for the task
<ide> :type task_id: str
<del> :param owner: the owner of the task, using the unix username is recommended
<add> :param ow... | 1 |
Java | Java | fix timezone issue in datetimeformatterfactory | 93c01e071098bb2e07e127c3b091d89ce73de983 | <ide><path>spring-context/src/main/java/org/springframework/format/datetime/joda/DateTimeFormatterFactory.java
<ide> * or {@link #setStyle(String) style} (considered in that order).
<ide> *
<ide> * @author Phillip Webb
<add> * @author Sam Brannen
<ide> * @see #getDateTimeFormatter()
<ide> * @see #getDateTimeFormat... | 2 |
Python | Python | add chroot detection | 21532aa519e4d07a052dd4e4f1561e511c466620 | <ide><path>setup.py
<ide>
<ide> from setuptools import setup
<ide>
<add>is_chroot = os.stat('/').st_ino != 2
<add>
<ide>
<ide> def get_data_files():
<ide> data_files = [
<ide> def get_data_files():
<ide> ('share/man/man1', ['man/glances.1'])
<ide> ]
<ide>
<del> if os.name == 'posix' and os.getuid... | 1 |
Javascript | Javascript | add support for changing /route/#hashes | ad1b6310deb6ccaec16016e999049fa307a8a61c | <ide><path>examples/with-google-analytics/pages/_app.js
<ide> const App = ({ Component, pageProps }) => {
<ide> gtag.pageview(url)
<ide> }
<ide> router.events.on('routeChangeComplete', handleRouteChange)
<add> router.events.on('hashChangeComplete', handleRouteChange)
<ide> return () => {
<ide> ... | 1 |
Python | Python | clean markdown with dedent to respect indents | 6f9c0ceeb40947c226d35587097529d04c3e3e59 | <ide><path>airflow/www/utils.py
<ide> # specific language governing permissions and limitations
<ide> # under the License.
<ide> import json
<add>import textwrap
<ide> import time
<ide> from urllib.parse import urlencode
<ide>
<ide> def wrapped_markdown(s, css_class='rich_doc'):
<ide> """Convert a Markdown string ... | 2 |
Python | Python | fix previous fix to numpy/g2py/setup.py | 8f6114b11efc2a01fe1158a444aeb788ddea6b01 | <ide><path>numpy/f2py/setup.py
<ide> def generate_f2py_py(build_dir):
<ide> elif mode=="2e-numpy":
<ide> from numpy.f2py import main
<ide> else:
<del> sys.stderr.write("Unknown mode: '%s'\n" % mode)
<add> sys.stderr.write("Unknown mode: " + repr(mode))
<ide> sys.exit(1)
<ide> main()
<ide> '''%(os.path.bas... | 1 |
Python | Python | update cversions.py links and wording | 8727cae494004e621fd099f32b601e4498721e69 | <ide><path>numpy/core/setup_common.py
<ide> #-------------------
<ide> # How to change C_API_VERSION ?
<ide> # - increase C_API_VERSION value
<del># - record the hash for the new C API with the script cversions.py
<add># - record the hash for the new C API with the cversions.py script
<ide> # and add the hash t... | 1 |
Python | Python | add usernames to todos | 5c37e69cf1e3fb053380a15b1df79a2813c6b5c3 | <ide><path>official/recommendation/data_pipeline.py
<ide> def get_dataset(self, batch_size, epochs_between_evals):
<ide>
<ide> file_pattern = os.path.join(
<ide> epoch_data_dir, rconst.SHARD_TEMPLATE.format("*"))
<del> # TODO: remove this contrib import
<add> # TODO(seemuch): remove this cont... | 3 |
Python | Python | fix multiple migrations heads | 7d37391a2b93259281cbe99125240727319633ba | <ide><path>airflow/migrations/versions/e38be357a868_update_schema_for_smart_sensor.py
<ide> """Add sensor_instance table
<ide>
<ide> Revision ID: e38be357a868
<del>Revises: 03afc6b6f902
<add>Revises: 8d48763f6d53
<ide> Create Date: 2019-06-07 04:03:17.003939
<ide>
<ide> """
<ide>
<ide> # revision identifiers, used b... | 1 |
Javascript | Javascript | avoid extra listener | 2fd2dd75657af12a74e01a9a5e39e5f677ff3c88 | <ide><path>lib/_http_client.js
<ide> ClientRequest.prototype.abort = function abort() {
<ide> // If we're aborting, we don't care about any more response data.
<ide> if (this.res) {
<ide> this.res._dump();
<del> } else {
<del> this.once('response', (res) => {
<del> res._dump();
<del> });
<ide> }
<... | 1 |
Ruby | Ruby | add --unsafe-perm to std_args only if run as root | 79a1500f2b7416cac9da55f02e8ba1d09e66404f | <ide><path>Library/Homebrew/language/node.rb
<ide> def self.std_npm_install_args(libexec)
<ide> pack = pack_for_installation
<ide>
<ide> # npm install args for global style module format installed into libexec
<del> %W[
<add> args = %W[
<ide> -ddd
<ide> --global
<del> --uns... | 1 |
PHP | PHP | fix coding standards | 072ec650e6a87371baaf6ab2d5f20921649d7bba | <ide><path>tests/TestCase/Console/Command/Task/ControllerTaskTest.php
<ide> public function setUp() {
<ide> TableRegistry::get('BakeArticles', [
<ide> 'className' => __NAMESPACE__ . '\BakeArticlesTable'
<ide> ]);
<del>
<ide> }
<ide>
<ide> /**
<ide> public function testBakePrefixed() {
<ide> ->method('create... | 1 |
Mixed | Ruby | add a monitor to modelschema#load_schema | 6a5a814eaa0d4f98d6151df5bd96cc8ec1ae5675 | <ide><path>activerecord/CHANGELOG.md
<add>* Loading model schema from database is now thread-safe.
<add>
<add> Fixes #28589.
<add>
<add> *Vikrant Chaudhary*, *David Abdemoulaie*
<add>
<ide> * Add `ActiveRecord::Base#cache_version` to support recyclable cache keys via the new versioned entries
<ide> in `Ac... | 3 |
PHP | PHP | add env class | e965a0a8b94fd79303eb2b1846605d4a9bc56be0 | <ide><path>src/Illuminate/Support/Env.php
<add><?php
<add>
<add>namespace Illuminate\Support;
<add>
<add>use PhpOption\Option;
<add>use Dotenv\Environment\DotenvFactory;
<add>use Dotenv\Environment\Adapter\PutenvAdapter;
<add>use Dotenv\Environment\Adapter\EnvConstAdapter;
<add>use Dotenv\Environment\Adapter\ServerCons... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.