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 |
|---|---|---|---|---|---|
Java | Java | add qualified element on rootbeandefinition | 2b0bf9f04a62fafd9ce28da37dbeb227b82cf462 | <ide><path>spring-beans/src/main/java/org/springframework/beans/factory/annotation/QualifierAnnotationAutowireCandidateResolver.java
<ide> package org.springframework.beans.factory.annotation;
<ide>
<ide> import java.lang.annotation.Annotation;
<add>import java.lang.reflect.AnnotatedElement;
<ide> import java.lang.ref... | 4 |
Ruby | Ruby | remove unused journey code | 639f5fda302ad6b5d535cf393161e4e77ea5050b | <ide><path>actionpack/lib/action_dispatch/journey.rb
<ide> require "action_dispatch/journey/router"
<ide> require "action_dispatch/journey/gtg/builder"
<ide> require "action_dispatch/journey/gtg/simulator"
<del>require "action_dispatch/journey/nfa/builder"
<del>require "action_dispatch/journey/nfa/simulator"
<ide><path... | 8 |
Text | Text | increase macos minimum supported version | 945324050bc9532c241c8c004967133d6c4dd485 | <ide><path>BUILDING.md
<ide> platforms in production.
<ide> |--------------|--------------|----------------------------------|----------------------|------------------|
<ide> | GNU/Linux | Tier 1 | kernel >= 2.6.32, glibc >= 2.12 | x64, arm | |
<ide> | GNU/Linux | Tier 1 ... | 1 |
Python | Python | pin pytorch to make ci green | 0f502682fb08c7dac5b255903f63dcd9cc2d68eb | <ide><path>setup.py
<ide> "timeout-decorator",
<ide> "timm",
<ide> "tokenizers>=0.10.1,<0.11",
<del> "torch>=1.0",
<add> "torch>=1.0,<1.10",
<ide> "torchaudio",
<ide> "tqdm>=4.27",
<ide> "unidic>=1.0.2",
<ide><path>src/transformers/dependency_versions_table.py
<ide> "timeout-decorator"... | 2 |
Python | Python | shorten long comment line | 815ac8fe897bbf74c92009f53c30dd0bdbbd9e16 | <ide><path>numpy/lib/scimath.py
<ide> """
<ide> Wrapper functions to more user-friendly calling of certain math functions
<del>whose output data-type is different than the input data-type in certain domains of the input.
<add>whose output data-type is different than the input data-type in certain
<add>domains of the in... | 1 |
Text | Text | normalize internal links in 'why react' article | b872100be6e4793c0b344c72badede7309a1968f | <ide><path>docs/_posts/2013-06-05-why-react.md
<ide> some pretty cool things with it:
<ide> (including IE8) and automatically use
<ide> [event delegation](http://davidwalsh.name/event-delegate).
<ide>
<del>Head on over to
<del>[facebook.github.io/react](http://facebook.github.io/react) to check
<del>out what we ha... | 1 |
Javascript | Javascript | increase default auto scale to 125% | d4cdf5ce41ff50cc4f2033ff72194ebc28b7668c | <ide><path>web/viewer.js
<ide> var CACHE_SIZE = 20;
<ide> var CSS_UNITS = 96.0 / 72.0;
<ide> var SCROLLBAR_PADDING = 40;
<ide> var VERTICAL_PADDING = 5;
<add>var MAX_AUTO_SCALE = 1.25;
<ide> var MIN_SCALE = 0.25;
<ide> var MAX_SCALE = 4.0;
<ide> var SETTINGS_MEMORY = 20;
<ide> var PDFView = {
<ide> scale = Ma... | 1 |
Javascript | Javascript | call onanimationcomplete when reached last frame | f7e39620870787c4a49ee4c0085a46171d5f57b6 | <ide><path>src/Chart.Core.js
<ide>
<ide> this.animations[i].animationObject.render(this.animations[i].chartInstance, this.animations[i].animationObject);
<ide>
<add> // Check if executed the last frame.
<ide> if (this.animations[i].animationObject.currentStep == this.animations[i].animationObject.n... | 1 |
Javascript | Javascript | reduce scope of eslint disable comment | fa86b36124ec022544256828bb9936ba3ed42ec0 | <ide><path>lib/internal/inspector/_inspect.js
<ide> * IN THE SOFTWARE.
<ide> */
<ide>
<del>// TODO(aduh95): remove restricted syntax errors
<del>/* eslint-disable no-restricted-syntax */
<del>
<ide> 'use strict';
<ide>
<ide> const {
<ide> const { EventEmitter } = require('events');
<ide> const net = require('net');... | 1 |
Javascript | Javascript | pretify some tests with $destroy events | bca96e7c7cc723a091241fddd6845d6de262a3c9 | <ide><path>test/directive/ngViewSpec.js
<ide> describe('ng-view', function() {
<ide> var createCtrl = function(name) {
<ide> return function($scope) {
<ide> log.push('init-' + name);
<del> var destroy = $scope.$destroy;
<del> $scope.$destroy = function() {
<del> log.push('destro... | 1 |
Ruby | Ruby | add checks for xcode/clt minimum versions | 4015d0465a975aaac26d5a47395ab61e29d1702f | <ide><path>Library/Homebrew/os/mac/xcode.rb
<ide> def latest_version
<ide> end
<ide> end
<ide>
<add> def minimum_version
<add> case MacOS.version
<add> when "10.12" then "8.0"
<add> else "2.0"
<add> end
<add> end
<add>
<add> def minimum_version?
<add> ver... | 1 |
Javascript | Javascript | remove simd support from util.format() | 2ba4eeadbb816068139759957c8443565a4d795a | <ide><path>lib/util.js
<ide> const inspectDefaultOptions = Object.seal({
<ide> });
<ide>
<ide> var Debug;
<del>var simdFormatters;
<del>
<del>// SIMD is only available when --harmony_simd is specified on the command line
<del>// and the set of available types differs between v5 and v6, that's why we use
<del>// a map ... | 2 |
Ruby | Ruby | implement hash equality for whereclause | 3bac3a4e8bb083daa3e2a0994482f9d944d6896c | <ide><path>activerecord/lib/active_record/relation/where_clause.rb
<ide> def ==(other)
<ide> other.is_a?(WhereClause) &&
<ide> predicates == other.predicates
<ide> end
<add> alias :eql? :==
<add>
<add> def hash
<add> [self.class, predicates].hash
<add> end
<ide>
<ide> ... | 2 |
Ruby | Ruby | fix missing `magenta` in tty | db88ca1e1871df380a6408dadc2bdb81a4b25f3e | <ide><path>Library/Homebrew/cask/lib/hbc/utils.rb
<ide> def odebug(title, *sput)
<ide> if $stdout.tty? && title.to_s.length > width
<ide> title = title.to_s[0, width - 3] + "..."
<ide> end
<del> puts "#{Tty.magenta}==> #{title}#{Tty.reset}"
<add> puts "#{Tty.magenta}==>#{Tty.reset} #{Tty.white}#{tit... | 2 |
Python | Python | add a unit test for plugin's sorted stats method | 7bd0cff0aaa4bcec32eec67e1a97c4f952eb5091 | <ide><path>unitest.py
<ide> from glances.thresholds import GlancesThresholdWarning
<ide> from glances.thresholds import GlancesThresholdCritical
<ide> from glances.thresholds import GlancesThresholds
<add>from glances.plugins.glances_plugin import GlancesPlugin
<ide>
<ide> # Global variables
<ide> # =================
... | 1 |
Mixed | Ruby | remove body content from redirect responses | c2e756a944fd3ca2efa58bd285c0e75e0b4794ab | <ide><path>actionpack/CHANGELOG.md
<add>* Make `redirect_to` return an empty response body.
<add>
<add> Application controllers that wish to add a response body after calling
<add> `redirect_to` can continue to do so.
<add>
<add> *Jon Dufresne*
<add>
<ide> * Use non-capturing group for subdomain matching i... | 7 |
Javascript | Javascript | increase dgram timeout for armv6 | bcc6d4740c7c5243f006a0ca3c28bc2585012e21 | <ide><path>test/internet/test-dgram-broadcast-multi-process.js
<ide> var common = require('../common'),
<ide> Buffer = require('buffer').Buffer,
<ide> fork = require('child_process').fork,
<ide> LOCAL_BROADCAST_HOST = '255.255.255.255',
<del> TIMEOUT = 5000,
<add> TIMEOUT = common.platformTimeout(5000... | 2 |
Javascript | Javascript | remove unused injected $window | f132ce740a869ac68d76e88ab1b2d50a829ed52e | <ide><path>src/ng/controller.js
<ide> function $ControllerProvider() {
<ide> }
<ide> };
<ide>
<del> this.$get = ['$injector', '$window', function($injector, $window) {
<add> this.$get = ['$injector', function($injector) {
<ide>
<ide> /**
<ide> * @ngdoc service | 1 |
Text | Text | add a missing definite article | b4905859d55cf756d3855c1deddb68a9509bdab4 | <ide><path>docs/README.md
<ide> aws cloudfront create-invalidation --profile docs.docker.com --distribution-id
<ide> When using Docker on Mac OSX the man pages will be missing by default. You can manually generate them by following these steps:
<ide>
<ide> 1. Checkout the docker source. You must clone into your `/Use... | 1 |
Javascript | Javascript | add minify flag to react-native bundle command | 3f969cb1db3a39dd8a4fd622abbb7e4270a84216 | <ide><path>local-cli/bundle/buildBundle.js
<ide> async function buildBundle(
<ide> maxWorkers: number,
<ide> resetCache: boolean,
<ide> transformer: string,
<add> minify: boolean,
<ide> },
<ide> config: ConfigT,
<ide> output = outputBundle,
<ide> async function buildBundle(
<ide> entryFile: arg... | 2 |
Javascript | Javascript | remove trailing whitespace | 95f8a8bab0cff27025a795cb00bd1e59b28aaded | <ide><path>src/ng/directive/ngBind.js
<ide> var ngBindTemplateDirective = ['$interpolate', '$compile', function($interpolate
<ide> * @name ngBindHtml
<ide> *
<ide> * @description
<del> * Evaluates the expression and inserts the resulting HTML into the element in a secure way. By default,
<del> * the resulting HTML ... | 1 |
Javascript | Javascript | remove unnecessary comma in mtlloader | 892a92d47eb18ccfc8b0dd69fd09f6966fd55a20 | <ide><path>examples/js/loaders/MTLLoader.js
<ide> THREE.MTLLoader.MaterialCreator.prototype = {
<ide> var texParams = {
<ide>
<ide> scale: new THREE.Vector2( 1, 1 ),
<del> offset: new THREE.Vector2( 0, 0 ),
<add> offset: new THREE.Vector2( 0, 0 )
<ide>
<ide> };
<ide> | 1 |
PHP | PHP | fix failing htmlhelper tests | fd575d4b1fd3227d401e797aee41848b9ad9fa8a | <ide><path>lib/Cake/Test/TestCase/View/Helper/HtmlHelperTest.php
<ide> public function testLink() {
<ide> $this->assertTags($result, $expected);
<ide>
<ide> Router::reload();
<add> Router::connect('/:controller', array('action' => 'index'));
<add> Router::connect('/:controller/:action/*');
<ide>
<del> $result ... | 1 |
Javascript | Javascript | combine properties using defineproperties | 0ac04ecee20f00cf3daaf006496d461bb9fecbc2 | <ide><path>lib/_stream_writable.js
<ide> const {
<ide> Boolean,
<ide> FunctionPrototype,
<ide> ObjectDefineProperty,
<add> ObjectDefineProperties,
<ide> ObjectSetPrototypeOf,
<ide> Symbol,
<ide> SymbolHasInstance,
<ide> Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
<ide> ... | 1 |
Go | Go | remove useless http call from export | 6d9439c627e36349679249d991400da45eb75587 | <ide><path>api/client/export.go
<ide> package client
<ide> import (
<ide> "errors"
<ide> "io"
<del> "net/url"
<ide> "os"
<ide>
<ide> flag "github.com/docker/docker/pkg/mflag"
<ide> func (cli *DockerCli) CmdExport(args ...string) error {
<ide> return errors.New("Cowardly refusing to save to a terminal. Use the -o... | 1 |
PHP | PHP | fix integration test case with form tampering | f55b44a75c593fc22143c6031c1d952747d00b27 | <ide><path>src/TestSuite/IntegrationTestCase.php
<ide> protected function _buildRequest($url, $method, $data)
<ide> protected function _addTokens($url, $data)
<ide> {
<ide> if ($this->_securityToken === true) {
<del> $keys = Hash::flatten($data);
<del> $tokenData = $this->_buildFie... | 2 |
Java | Java | transform absolute links in resourcetransformers | 125ae99035653496efbf6d03270bbbdde5828d3a | <ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/resource/AppCacheManifestTransformer.java
<ide> * applications spec</a>
<ide> * @since 4.1
<ide> */
<del>public class AppCacheManifestTransformer implements ResourceTransformer {
<add>public class AppCacheManifestTransformer extends ResourceTrans... | 4 |
Text | Text | implement minor improvements to building.md text | 398790149d18a26dd4b9ec263214345467d7439e | <ide><path>BUILDING.md
<ide> There are three support tiers:
<ide> platforms are welcome.
<ide>
<ide> Platforms may move between tiers between major release lines. The table below
<del>will be updated to reflect those changes.
<add>will reflect those changes.
<ide>
<ide> ### Platform list
<ide>
<ide> platforms. Thi... | 1 |
Ruby | Ruby | extract with_environment to helper module | fba00f2bbfd970ece1d2503a333a9a2730ae5b63 | <ide><path>Library/Homebrew/test/helper/env.rb
<add>module Test
<add> module Helper
<add> module Env
<add> def with_environment(partial_env)
<add> old = ENV.to_hash
<add> ENV.update partial_env
<add> begin
<add> yield
<add> ensure
<add> ENV.replace old
<add> ... | 2 |
Javascript | Javascript | set eof to true at the end of a flatestream | 43847d7ff8da1876975edf741f889342a816e216 | <ide><path>src/core/stream.js
<ide> var FlateStream = (function FlateStreamClosure() {
<ide> var buffer = this.ensureBuffer(bufferLength + blockLen);
<ide> var end = bufferLength + blockLen;
<ide> this.bufferLength = end;
<del> for (var n = bufferLength; n < end; ++n) {
<del> if (typeof (b... | 1 |
Javascript | Javascript | fix misspelling uikit | 688c74693b9d252eefd61a2822dabd81ca9fd1d2 | <ide><path>Libraries/Components/Navigation/NavigatorIOS.ios.js
<ide> type Event = Object;
<ide> * [`UINavigationController`](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UINavigationController_Class/),
<ide> * enabling you to implement a navigation stack. It works exactly the same as it
<ide>... | 1 |
Mixed | Python | rename the default token class to "basictoken" | 3b1404bd7d37d8c60cf45071852f86eea8d4c68f | <ide><path>djangorestframework/tests/authentication.py
<ide> from djangorestframework.views import APIView
<ide> from djangorestframework import permissions
<ide>
<del>from djangorestframework.tokenauth.models import Token
<add>from djangorestframework.tokenauth.models import BasicToken
<ide> from djangorestframework.... | 4 |
Ruby | Ruby | audit generic binary names | 81bf8a168ada914ec47ca5b37a9fe44f8d797fea | <ide><path>Library/Homebrew/cmd/audit.rb
<ide> def audit_installed
<ide> audit_check_output(check_jars)
<ide> audit_check_output(check_non_libraries)
<ide> audit_check_output(check_non_executables(f.bin))
<add> audit_check_output(check_generic_executables(f.bin))
<ide> audit_check_output(check_non_ex... | 3 |
Text | Text | update example years to 2013 in contributing.md | 94a88069ac57a4a8cc69ca2d72c1a0de69efa9e6 | <ide><path>CONTRIBUTING.md
<ide> present in the framework.
<ide>
<ide> ```java
<ide> /*
<del> * Copyright 2002-2012 the original author or authors.
<add> * Copyright 2002-2013 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use this... | 1 |
Python | Python | fix cyclic import | e54c3a7d48214e076ce0a5dd1d0ae863b584c155 | <ide><path>glances/core/glances_globals.py
<ide> def get_locale_path(paths):
<ide>
<ide> # Create and init the logging instance
<ide> logger = glances_logger()
<del>
<del># Instances shared between all Glances scripts
<del># ============================================
<del>
<del># Glances_processes for processcount a... | 10 |
Text | Text | change a to an for html word [ci skip] | f5fced2bb94659253e87b12d35e569322b3098fd | <ide><path>guides/source/layouts_and_rendering.md
<ide> extension for the layout file.
<ide>
<ide> #### Rendering HTML
<ide>
<del>You can send a HTML string back to the browser by using the `:html` option to
<add>You can send an HTML string back to the browser by using the `:html` option to
<ide> `render`:
<ide>
<id... | 1 |
Go | Go | move "logs" to daemon/logs.go | 066330fc9687edd3f8a5066fd4201ea14af15f93 | <ide><path>daemon/daemon.go
<ide> func (daemon *Daemon) Install(eng *engine.Engine) error {
<ide> if err := eng.Register("commit", daemon.ContainerCommit); err != nil {
<ide> return err
<ide> }
<add> if err := eng.Register("logs", daemon.ContainerLogs); err != nil {
<add> return err
<add> }
<ide> return nil
<ide>... | 4 |
Python | Python | fix no attribute 'per_replica_batch_size' | c3b4ffc5b1f39443ee471145aeb0f41b552c6575 | <ide><path>research/deep_speech/deep_speech.py
<ide> def generate_dataset(data_dir):
<ide> speech_dataset = dataset.DeepSpeechDataset(train_data_conf)
<ide> return speech_dataset
<ide>
<add>def per_device_batch_size(batch_size, num_gpus):
<add> """For multi-gpu, batch-size must be a multiple of the number of GPUs... | 1 |
Javascript | Javascript | add data node to serverstate declaration | f0eacf66eac95db0aea40d502e0d2f049d9be3c7 | <ide><path>examples/with-apollo/lib/withData.js
<ide> export default ComposedComponent => {
<ide>
<ide> static async getInitialProps (ctx) {
<ide> // Initial serverState with apollo (empty)
<del> let serverState = { apollo: { } }
<add> let serverState = {
<add> apollo: {
<add> data... | 1 |
Javascript | Javascript | fix typo in variable name | 2ef81bde20bbc74190fa5e2b96c6a783af8de6b0 | <ide><path>client/src/components/settings/Username.js
<ide> class UsernameSettings extends Component {
<ide> isFormPristine: true,
<ide> formValue: props.username,
<ide> characterValidation: { valid: false, error: null },
<del> sumbitClicked: false
<add> submitClicked: false
<ide> };
<id... | 1 |
PHP | PHP | add missing use statement | 5d0b19fb065e23a05d17b6f27288cac76381e6c3 | <ide><path>App/Controller/PagesController.php
<ide> */
<ide> namespace App\Controller;
<ide>
<add>use Cake\Core\Configure;
<ide> use Cake\Error;
<ide> use Cake\Utility\Inflector;
<ide> | 1 |
PHP | PHP | remove nested ternary | 0e193eaa648ae7c7e60eca806551fe9f8627d231 | <ide><path>src/Illuminate/Notifications/resources/views/email-plain.blade.php
<del>{{ ( $greeting !== null ) ? $greeting : ($level == 'error' ? 'Whoops!' : 'Hello!') }}
<add><?php
<add>if( $greeting !== null ) {
<add> echo e($greeting);
<add>} else {
<add> echo $level == 'error' ? 'Whoops!' : 'Hello!';
<add>}
<add>
<ad... | 1 |
Javascript | Javascript | add test for http client "aborted" event | 6d6f9e5c023721300ad39440b0f7a4c9168f7975 | <ide><path>test/parallel/test-http-client-aborted-event.js
<add>'use strict';
<add>const common = require('../common');
<add>const http = require('http');
<add>
<add>const server = http.Server(function(req, res) {
<add> res.write('Part of my res.');
<add> res.destroy();
<add>});
<add>
<add>server.listen(0, common.mus... | 1 |
Java | Java | use senderror in responsestatusexceptionresolver | 80767ff6e9963761aa7e5516090fcda2c5a3bf74 | <ide><path>spring-web/src/main/java/org/springframework/web/bind/annotation/ResponseStatus.java
<ide> * {@link #reason} that should be returned.
<ide> *
<ide> * <p>The status code is applied to the HTTP response when the handler
<del> * method is invoked, or whenever said exception is thrown.
<add> * method is invok... | 3 |
Mixed | Javascript | remove unintended access to deps/ | 4100001624a4cc88c61143e2678bf80c2aacd922 | <ide><path>doc/api/deprecations.md
<ide> the client and is now unsupported. Use the `ciphers` parameter instead.
<ide> ### DEP0084: requiring bundled internal dependencies
<ide> <!-- YAML
<ide> changes:
<add> - version: REPLACEME
<add> pr-url: https://github.com/nodejs/node/pull/25138
<add> description: This fun... | 4 |
Java | Java | add defaultrequest option to webclient.builder | 8bffb6a798424b83fa1b20f344650732d2f2c985 | <ide><path>spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java
<ide> class DefaultWebClient implements WebClient {
<ide> @Nullable
<ide> private final MultiValueMap<String, String> defaultCookies;
<ide>
<add> @Nullable
<add> private final Consumer<RequestHeadersSpec<?>... | 4 |
Ruby | Ruby | take last artifact rather than first | 580fb58f6264153f804d681f92be6073a6683014 | <ide><path>Library/Homebrew/utils/github.rb
<ide> def get_artifact_url(workflow_array)
<ide> EOS
<ide> end
<ide>
<del> artifact.first["archive_download_url"]
<add> artifact.last["archive_download_url"]
<ide> end
<ide>
<ide> def public_member_usernames(org, per_page: 100) | 1 |
Python | Python | use nodesize in _to_node for kvm | 868063b4402ccc6c9f3e09bddd5be7aaa8355beb | <ide><path>libcloud/compute/drivers/libvirt_driver.py
<ide> import logging
<ide> import netaddr
<ide> import random
<add>import hashlib
<ide>
<ide> from tempfile import NamedTemporaryFile
<ide> from os.path import join as pjoin
<ide> def _to_node(self, domain):
<ide> state, max_mem, memory, vcpu_count, used_cp... | 1 |
Ruby | Ruby | use the supplied bind values | d9a20711da15efb781a8b8402871be4890d05c6d | <ide><path>activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
<ide> def table_exists?(name)
<ide> SELECT COUNT(*)
<ide> FROM pg_tables
<ide> WHERE tablename = $1
<del> AND schemaname = #{schema ? "'#{schema}'" : "ANY (current_schemas(false))"}
<add> ... | 1 |
Text | Text | fix function name ($ngoninit --> $oninit) | a909ed1a5ce2ba4594c63da12034632d5319f690 | <ide><path>CHANGELOG.md
<ide> changes section for more information
<ide> - allow directive definition property `require` to be an object
<ide> ([cd21216f](https://github.com/angular/angular.js/commit/cd21216ff7eb6d81fc9aa1d1ef994c3d8e046394),
<ide> [#8401](https://github.com/angular/angular.js/issues/8401), [#13... | 1 |
Javascript | Javascript | remove unused types | d9839740ef687bb2ae11cc408f3699aa5c958742 | <ide><path>packages/react-events/src/Focus.js
<ide> type FocusProps = {
<ide> onBlur: (e: FocusEvent) => void,
<ide> onFocus: (e: FocusEvent) => void,
<ide> onFocusChange: boolean => void,
<del> stopPropagation: boolean,
<ide> };
<ide>
<ide> type FocusState = {
<ide> const FocusResponder = {
<ide> focusTa... | 3 |
Mixed | Python | fix whisper doc | 84125d7e73f07ea6201008b0364bb87f035fbeb1 | <ide><path>README_es.md
<ide> Número actual de puntos de control: ** (from Microsoft Research Asia) released with the paper [LayoutXLM: Multimodal Pre-training for Multilingual Visually-rich D... | 2 |
Go | Go | resume healthcheck on restore | 9f39889dee7d96430359d7e1f8970a88acad59e5 | <ide><path>daemon/daemon.go
<ide> func (daemon *Daemon) restore() error {
<ide>
<ide> c.RestartManager().Cancel() // manually start containers because some need to wait for swarm networking
<ide>
<del> if c.IsPaused() && alive {
<add> switch {
<add> case c.IsPaused() && alive:
<ide> s, err := daemon... | 2 |
Javascript | Javascript | display prompt once after error callback | 9f5977a74d99d9caa5361220eaf3d6189e400b0a | <ide><path>lib/repl.js
<ide> function REPLServer(prompt,
<ide> self.output.write(self.writer(ret) + '\n');
<ide> }
<ide>
<del> // Display prompt again
<del> self.displayPrompt();
<add> // Display prompt again (unless we already did by emitting the 'error'
<add> // event on the domain ... | 2 |
Ruby | Ruby | add support for openjdk formula | cd93d4e38a4a850680cde1edef63448633a9f1dd | <ide><path>Library/Homebrew/extend/os/mac/language/java.rb
<ide> module Language
<ide> module Java
<ide> def self.system_java_home_cmd(version = nil)
<ide> version_flag = " --version #{version}" if version
<del> "/usr/libexec/java_home#{version_flag}"
<add> "/usr/libexec/java_home#{version_flag} -... | 2 |
Python | Python | add order= argument to recarray __new__ | e6f253346d7d87ba362f8283205f09eb336c482d | <ide><path>numpy/core/records.py
<ide> class recarray(ndarray):
<ide> occupy in memory).
<ide> offset : int, optional
<ide> Start reading buffer (`buf`) from this offset onwards.
<add> order : {'C', 'F'}, optional
<add> Row-major or column-major order.
<ide>
<ide> Returns
<ide> --... | 1 |
Python | Python | use less precision for almostequal | 26482c2d7029405fbd818548e4e404504baf240e | <ide><path>celery/tests/test_task.py
<ide> def test_every_minute_execution_is_due(self):
<ide> last_ran = self.now - timedelta(seconds=61)
<ide> due, remaining = EveryMinutePeriodic().is_due(last_ran)
<ide> self.assertTrue(due)
<del> self.assertAlmostEquals(remaining, self.next_minute, 2)... | 1 |
Javascript | Javascript | address @ichernev concerns | 3c527715518319a54d42a96658332b9a90c0f24a | <ide><path>moment.js
<ide>
<ide> currentDate = currentDateArray(config);
<ide>
<del> //compute day of the year form weeks and weekdays
<add> //compute day of the year from weeks and weekdays
<ide> if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
<ide> f... | 2 |
Text | Text | add object keys to example | bbce381e16b0687dbcd1919fe40f117530be3c96 | <ide><path>CONTRIBUTING.md
<ide> in the proper package's repository.
<ide> # * `package-disabled` - after the package is disabled.
<ide> #
<ide> # name - The {String} name of the package to disable.
<add># options - The {Object} with disable options (default: {}):
<add># :trackTime - `true` to track the ... | 1 |
Python | Python | add more docs to function fromfile() | ae4e6ce449c06b25806b499ff2384d7335583570 | <ide><path>numpy/add_newdocs.py
<ide> """)
<ide>
<ide> add_newdoc('numpy.core.multiarray','fromfile',
<del> """fromfile(file=, dtype=float, count=-1, sep='')
<add> """fromfile(file=, dtype=float, count=-1, sep='') -> array.
<ide>
<del> Return an array of the given data type from a (text or binary) file.
... | 1 |
Text | Text | fix checkstyle violation | d9bb9b55eecc87e18ae07a3b7d6d0897addf5741 | <ide><path>import-into-eclipse.md
<ide> _When instructed to execute `./gradlew` from the command line, be sure to execut
<ide>
<ide> 1. Ensure that Eclipse launches with JDK 8.
<ide> - For example, on Mac OS this can be configured in the `Info.plist` file located in the `Contents` folder of the installed Eclipse or... | 1 |
Text | Text | capitalize url in titles for consistency | e5366448cbffcd0827a5c6646fd2d37cb8094c7c | <ide><path>guide/english/html/url-encoding-reference/index.md
<ide> ---
<del>title: Url Encoding Reference
<add>title: URL Encoding Reference
<ide> ---
<del>## Url Encoding Reference
<add>## URL Encoding Reference
<ide>
<ide> A URL is an address for a website. Just like postal addresses have to follow a specific forma... | 1 |
Java | Java | support stomp disconnect with receipt | 7da3fb4ce6dc90048b2a3f661fa80f38bede8ed9 | <ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java
<ide> else if (logger.isTraceEnabled()) {
<ide> @Override
<ide> public void onSuccess(Void result) {
<ide> if (accessor.getCommand() == StompCommand.DISCONNECT) {
<del> clearConnectio... | 2 |
Mixed | Text | remove the word "mongrel" from documents | b9e98d62c24b04937a219285aef69c2a8344beab | <ide><path>activesupport/lib/active_support/backtrace_cleaner.rb
<ide> module ActiveSupport
<ide> #
<ide> # bc = BacktraceCleaner.new
<ide> # bc.add_filter { |line| line.gsub(Rails.root.to_s, '') } # strip the Rails.root prefix
<del> # bc.add_silencer { |line| line =~ /mongrel|rubygems/ } # skip any line... | 7 |
Python | Python | add a device argument to the eval script | 196cce6e9b10c5749daf05fdc02d75b924639b00 | <ide><path>examples/research_projects/robust-speech-event/eval.py
<ide> import re
<ide> from typing import Dict
<ide>
<add>import torch
<ide> from datasets import Audio, Dataset, load_dataset, load_metric
<ide>
<ide> from transformers import AutoFeatureExtractor, pipeline
<ide> def main(args):
<ide> dataset = dat... | 1 |
Javascript | Javascript | stop alloc() uninitialized memory return | 40a7beeddac9b9ec9ef5b49157daaf8470648b08 | <ide><path>lib/buffer.js
<ide> function assertSize(size) {
<ide> Buffer.alloc = function alloc(size, fill, encoding) {
<ide> assertSize(size);
<ide> if (fill !== undefined && fill !== 0 && size > 0) {
<del> return _fill(createUnsafeBuffer(size), fill, encoding);
<add> const buf = createUnsafeBuffer(size);
<ad... | 2 |
Javascript | Javascript | remove broken code in promises/write | ca6b12e28df53110de7ee58699d5af099d036c67 | <ide><path>lib/internal/fs/promises.js
<ide> async function write(handle, buffer, offset, length, position) {
<ide>
<ide> if (typeof buffer !== 'string')
<ide> buffer += '';
<del> if (typeof position !== 'function') {
<del> if (typeof offset === 'function') {
<del> position = offset;
<del> offset =... | 1 |
Python | Python | drop accidental (uneeded) validation logic | 24ed0fa4b987a4a03b090963965e9865830c943f | <ide><path>rest_framework/serializers.py
<ide> def restore_object(self, attrs, instance=None):
<ide> else:
<ide> instance = self.opts.model(**attrs)
<ide>
<del> try:
<del> instance.full_clean(exclude=self.get_validation_exclusions())
<del> except ValidationError as err:
<de... | 1 |
Javascript | Javascript | replace indexof with includes | 01422769775a2ce7dfef8aa6dbda2d326f002e13 | <ide><path>test/addons-napi/test_constructor/test.js
<ide> const propertyNames = [];
<ide> for (const name in test_object) {
<ide> propertyNames.push(name);
<ide> }
<del>assert.ok(propertyNames.indexOf('echo') >= 0);
<del>assert.ok(propertyNames.indexOf('readwriteValue') >= 0);
<del>assert.ok(propertyNames.indexOf('r... | 23 |
Javascript | Javascript | add a test for a bug fixed on beta | 38c7307cc70fedb9c8554b140f7c187548f140a2 | <ide><path>packages/ember-handlebars/tests/helpers/bound_helper_test.js
<ide> QUnit.module("Handlebars bound helpers", {
<ide> }
<ide> });
<ide>
<add>test("primitives should work correctly", function() {
<add> view = EmberView.create({
<add> prims: Ember.A(["string", 12]),
<add>
<add> template: compile('{{#ea... | 1 |
Ruby | Ruby | remove the #sum method from collectionassociation | fd1c45761e023cecdc9ad472df64f8c265e25aaf | <ide><path>activerecord/lib/active_record/associations/collection_association.rb
<ide> def destroy_all
<ide> end
<ide> end
<ide>
<del> # Calculate sum using SQL, not Enumerable.
<del> def sum(*args)
<del> if block_given?
<del> scope.sum(*args) { |*block_args| yield(*block_args) ... | 1 |
Ruby | Ruby | remove dup from post body for forcing encoding | 64b17ba6e99c7a51a25eec24d1901ff5a6343843 | <ide><path>actionpack/lib/action_dispatch/http/request.rb
<ide> def raw_post
<ide> # variable is already set, wrap it in a StringIO.
<ide> def body
<ide> if raw_post = get_header("RAW_POST_DATA")
<del> raw_post = raw_post.dup.force_encoding(Encoding::BINARY)
<add> raw_post = (+raw_post).forc... | 1 |
Go | Go | add test for inspect with a sha256 prefix | 61d6240069cda31559523b98cecb6b340a9d45fd | <ide><path>integration-cli/docker_cli_inspect_test.go
<ide> func (s *DockerSuite) TestInspectJSONFields(c *check.C) {
<ide> c.Assert(err, check.IsNil)
<ide> c.Assert(out, checker.Equals, "[]\n")
<ide> }
<add>
<add>func (s *DockerSuite) TestInspectByPrefix(c *check.C) {
<add> id, err := inspectField("busybox", "Id")
<... | 1 |
Javascript | Javascript | convert template and its subclasses to es2015 | c6af4ab3fa30306eed211a603f3b87bd9d3732e2 | <ide><path>lib/ChunkTemplate.js
<ide> MIT License http://www.opensource.org/licenses/mit-license.php
<ide> Author Tobias Koppers @sokra
<ide> */
<del>var ConcatSource = require("webpack-sources").ConcatSource;
<del>var Template = require("./Template");
<add>"use strict";
<ide>
<del>function ChunkTemplate(outputOptio... | 4 |
Ruby | Ruby | add tests for hard coded compilers in system calls | 77468fdae36ee58580a643d8bc0fdd9f8b6e61c3 | <ide><path>Library/Homebrew/rubocops/lines_cop.rb
<ide> def audit_formula(_node, _class_node, _parent_class_node, body_node)
<ide> problem "\"#{m.source}\" should be \"#{match[0]}\""
<ide> end
<ide>
<del> # # Avoid hard-coding compilers
<del> # find_every_method_call_by_name(bod... | 2 |
Python | Python | implement missing methods of variablespec | 583f7cd4d664f760bbab4dcf283d725ced10fcce | <ide><path>keras/distribute/parameter_server_evaluation_test.py
<ide> def element_spec(self):
<ide>
<ide> @property
<ide> def _type_spec(self):
<del> weight_specs = []
<del> for w in self.weights:
<del> weight_specs.append(
<del> resource_variable_ops.VariableSpec(
<del> w.shape, w... | 1 |
Text | Text | add info on conventional commit messages | 16d52cbcdfa412846437d53063c6c1ab9fc20ed1 | <ide><path>docs/CONTRIBUTING.md
<ide> $ git add path/to/filename.ext
<ide>
<ide> You can also run `git add .` to add all unstaged files. Take care, though, because you can accidentally add files you don't want added. Review your `git status` first.
<ide>
<del>### Commit Your Changes
<add>### Commit Your Changes
<ide... | 1 |
PHP | PHP | fix failing tests from 2.x merge | b0a9e0d96ce2a492b124a2708b5bf21ef2193954 | <ide><path>src/Network/Response.php
<ide> public function cookie($options = null) {
<ide> * ### Whitelist of URIs
<ide> * e.g `cors($request, array('http://www.cakephp.org', '*.google.com', 'https://myproject.github.io'));`
<ide> *
<del> * @param CakeRequest $request Request object
<add> * @param Cake\Network\Reques... | 2 |
Javascript | Javascript | remove literals that obscure assert messages | 246aeaca1ed47e245ee4c92084b59f5ddb31163c | <ide><path>test/addons-napi/test_buffer/test.js
<ide> assert.strictEqual(binding.newBuffer().toString(), binding.theText);
<ide> assert.strictEqual(binding.newExternalBuffer().toString(), binding.theText);
<ide> console.log('gc1');
<ide> global.gc();
<del>assert.strictEqual(binding.getDeleterCallCount(), 1, 'deleter wa... | 1 |
Python | Python | add counting sort | 35d38737168ebfe4eb54e829f98dc31296aa52dd | <ide><path>sorts/counting_sort.py
<add>"""
<add>This is pure python implementation of counting sort algorithm
<add>For doctests run following command:
<add>python -m doctest -v counting_sort.py
<add>or
<add>python3 -m doctest -v counting_sort.py
<add>For manual testing run:
<add>python counting_sort.py
<add>"""
<add>
<... | 1 |
PHP | PHP | remove unused method | 0c3bb9f99d57080adc90bca2e01115d5d3478739 | <ide><path>src/Utility/Security.php
<ide> class Security
<ide> */
<ide> protected static $_instance;
<ide>
<del> /**
<del> * Generate authorization hash.
<del> *
<del> * @return string Hash
<del> */
<del> public static function generateAuthKey()
<del> {
<del> return Security::h... | 1 |
Ruby | Ruby | require instances to use a subclass | 1c5ba1f6859418f5b0e0b6a0047db00f15f105ab | <ide><path>Library/Homebrew/formula.rb
<ide> class Formula
<ide>
<ide> # @private
<ide> def initialize(name, path, spec, alias_path: nil, force_bottle: false)
<add> # Only allow instances of subclasses. The base class does not hold any spec information (URLs etc).
<add> raise "Do not call `Formula.new' direc... | 1 |
Text | Text | remove incorrect option in docker install command | f04837cf803583dfeb4dcd8311e4e5ef8764c37c | <ide><path>docs/sources/installation/ubuntulinux.md
<ide> NetworkManager (this might slow your network).
<ide>
<ide> To install the latest version of Docker, use the standard `-N` flag with `wget`:
<ide>
<del> $ wget -N -qO- https://get.docker.com/ | sh
<add> $ wget -qO- https://get.docker.com/ | sh
<ide> | 1 |
Python | Python | fix more warnings | dc161865bf049bdc3b68df40b2a39015ef3c7ee4 | <ide><path>libcloud/compute/drivers/vcloud.py
<ide> def ex_revert_to_snapshot(self, node):
<ide> def _perform_snapshot_operation(self, node, operation, xml_data, headers):
<ide> res = self.connection.request(
<ide> '%s/action/%s' % (get_url_path(node.id), operation),
<del> data=ET.tos... | 2 |
Javascript | Javascript | walk expression in require.ensure if not a fn expr | bd56e8385f3ff065e47a843bd2b9cb5a438d9857 | <ide><path>lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js
<ide> module.exports = AbstractPlugin.create({
<ide> } finally {
<ide> this.state.current = old;
<ide> }
<add> if(fnExpression.type !== "FunctionExpression") {
<add> this.walkExpression(fnExpression);
<add> }
<ide> return true... | 2 |
Ruby | Ruby | fix typo in exception class name | 035d88205765c8880265115b51493a389c810849 | <ide><path>actionview/lib/action_view/helpers/tags/datetime_field.rb
<ide> def render
<ide> private
<ide>
<ide> def format_date(value)
<del> raise NoImplementedError
<add> raise NotImplementedError
<ide> end
<ide>
<ide> def datetime_value(value) | 1 |
Text | Text | fix the timing of setimmediate's execution | e9f2ec4e1e590ce0b1f4a071997688f54ea52fdd | <ide><path>doc/api/timers.md
<ide> added: v0.9.1
<ide> * `...args` {any} Optional arguments to pass when the `callback` is called.
<ide>
<ide> Schedules the "immediate" execution of the `callback` after I/O events'
<del>callbacks and before timers created using [`setTimeout()`][] and
<del>[`setInterval()`][] are trigg... | 1 |
Python | Python | add test for morph analysis | 3c3259024310e3ed28bc71c8bb6fa60d608a049c | <ide><path>spacy/tests/doc/test_morphanalysis.py
<add># coding: utf-8
<add>from __future__ import unicode_literals
<add>
<add>import pytest
<add>import numpy
<add>from spacy.attrs import IS_ALPHA, IS_DIGIT, IS_LOWER, IS_PUNCT, IS_TITLE, IS_STOP
<add>from spacy.symbols import VERB
<add>from spacy.vocab import Vocab
<add... | 1 |
Javascript | Javascript | change var to let | d23a4cf7b71ae906e979d60b40cfee9bf375afb6 | <ide><path>lib/internal/repl/history.js
<ide> function setupHistory(repl, historyPath, ready) {
<ide> }
<ide> }
<ide>
<del> var timer = null;
<del> var writing = false;
<del> var pending = false;
<add> let timer = null;
<add> let writing = false;
<add> let pending = false;
<ide> repl.pause();
<ide> // ... | 1 |
Go | Go | reduce use of const for driver name | b1a6d5388dfd54f4a0674eefecb4bb7cdc3f9aed | <ide><path>libnetwork/drivers/macvlan/macvlan.go
<ide> const (
<ide> vethLen = 7
<ide> containerVethPrefix = "eth"
<ide> vethPrefix = "veth"
<del> macvlanType = "macvlan" // driver type name
<add> driverName = "macvlan" // driver type name
<ide> modePrivate = ... | 4 |
Python | Python | update version number of trunk | b2eb92995656ae62d980506a24ba5a6faa601cc0 | <ide><path>numpy/version.py
<del>version='1.0'
<add>version='1.0.1'
<ide> release=False
<ide>
<ide> if not release: | 1 |
Ruby | Ruby | remove blank line | b4efff4bac1c66e5af24de86cdb69a058ccf4147 | <ide><path>actionpack/lib/action_dispatch/testing/assertions/response.rb
<ide> def assert_response(type, message = nil)
<ide> # assert_redirected_to @customer
<ide> #
<ide> def assert_redirected_to(options = {}, message=nil)
<del>
<ide> assert_response(:redirect, message)
<ide> retur... | 1 |
Java | Java | fix permission requests on pre-m android | 4e1abdd74dc4127a86d62e7750d01d39bb781c08 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/permissions/PermissionsModule.java
<ide> public void shouldShowRequestPermissionRationale(final String permission, final
<ide> }
<ide>
<ide> /**
<del> * Request the given permission. successCallback is called with true if the permission had been
<d... | 1 |
Ruby | Ruby | remove unneeded rubocop comment | ad82cd888e9acf2fdc4c795156b3e0c0e4e88988 | <ide><path>Library/Homebrew/debrew.rb
<ide> def self.debug(e)
<ide> if e.is_a?(Ignorable)
<ide> menu.choice(:irb) do
<ide> puts "When you exit this IRB session, execution will continue."
<del> set_trace_func proc { |event, _, _, id, binding, klass| # rubocop:disable Metr... | 1 |
Python | Python | add tester for pytest | fddaa7c8cf341794a8f3ea098b028c49975d546a | <ide><path>numpy/testing/_private/pytesttester.py
<add>"""
<add>Pytest test running.
<add>
<add>This module implements the ``test()`` function for NumPy modules. The usual
<add>boiler plate for doing that is to put the following in the module
<add>``__init__.py`` file::
<add>
<add> from numpy.testing import PytestTe... | 1 |
Text | Text | update notes about gcm decryption | 193d6d1bda6bb8c768b809057774aa4bca5f5d99 | <ide><path>doc/api/crypto.md
<ide> supported), the `decipher.setAuthTag()` method is used to pass in the
<ide> received _authentication tag_. If no tag is provided, or if the cipher text
<ide> has been tampered with, [`decipher.final()`][] will throw, indicating that the
<ide> cipher text should be discarded due to fai... | 1 |
Javascript | Javascript | fix a fixer | 2caae7c4e4f338c004d77a060a7f59737306fc3b | <ide><path>threejs/lessons/resources/lesson.js
<ide> $(document).ready(function($){
<ide> const classRE = /^(\w+)$/;
<ide> $('a').each(function() {
<ide> const href = this.getAttribute('href');
<add> if (!href) {
<add> return;
<add> }
<ide> const m = methodPropertyRE.exec(href);
<ide> if (m) ... | 1 |
Text | Text | update changelog for | bdb02c2b73e134bd7809bbe47cbc0e6693ec1dc1 | <ide><path>CHANGELOG.md
<ide> The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
<ide> and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
<ide> Dates are formatted as YYYY-MM-DD.
<ide>
<del><!--
<ide> ## [Unreleased]
<ide>
<del>Nothing yet
<del>-->
<a... | 1 |
Text | Text | add linting instructions | 58a79e34e5d164e26436ba55793f2a14f4e5c672 | <ide><path>.github/pull_request_template.md
<ide> Choose the right checklist for the change that you're making:
<ide>
<ide> ## Documentation / Examples
<ide>
<del>- [ ] Make sure the linting passes
<add>- [ ] Make sure the linting passes by running `yarn lint`
<ide><path>contributing.md
<ide> If you would like to run... | 2 |
Ruby | Ruby | remove dead testing core_ext | 8746f7cac2d9bd92f91f7371a6f6b3487bae7a3b | <ide><path>activesupport/lib/active_support/testing/core_ext/test.rb
<del>require 'active_support/testing/core_ext/test/unit/assertions'
<del>require 'active_support/testing/setup_and_teardown'
<del>
<del>class Test::Unit::TestCase #:nodoc:
<del> include ActiveSupport::Testing::SetupAndTeardown
<del>end
<ide>\ No newl... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.