content_type stringclasses 8
values | main_lang stringclasses 7
values | message stringlengths 1 50 | sha stringlengths 40 40 | patch stringlengths 52 962k | file_count int64 1 300 |
|---|---|---|---|---|---|
Javascript | Javascript | update booleankeyframetrack inheritance | 5bceba4cf6026194f3118962d484d348d3a5f75b | <ide><path>src/animation/tracks/BooleanKeyframeTrack.js
<ide> import { InterpolateDiscrete } from '../../constants.js';
<del>import { KeyframeTrackPrototype } from '../KeyframeTrackPrototype.js';
<del>import { KeyframeTrackConstructor } from '../KeyframeTrackConstructor.js';
<add>import { KeyframeTrack } from '../Keyfr... | 1 |
Javascript | Javascript | fix typo in comment | 0d468ab200584c3aaa6ef721f51037d37c9fea7b | <ide><path>lib/_http_server.js
<ide> function resOnFinish(req, res, socket, state, server) {
<ide>
<ide> // Make sure the requestTimeout is cleared before finishing.
<ide> // This might occur if the application has sent a response
<del> // without consuming the request body, which would have alredy
<add> // with... | 1 |
Python | Python | remove trailing semicolon | 56ce2bfa7c031564f06cad469219dbeb350d7be7 | <ide><path>libcloud/compute/drivers/hostvirtual.py
<ide> def create_node(self, name, image, size, **kwargs):
<ide> >>> from libcloud.compute.base import NodeAuthSSHKey
<ide> >>> key = open('/home/user/.ssh/id_rsa.pub').read()
<ide> >>> auth = NodeAuthSSHKey(pubkey=key)
<del> >>> from libc... | 1 |
Javascript | Javascript | close watchers correctly when closing watching | 263c5c9f4013ff956b3d4ad1b154a3d3af7e7a6f | <ide><path>lib/Compiler.js
<ide> function Watching(compiler, watchOptions, handler) {
<ide> this.error = null;
<ide> this.stats = null;
<ide> this.handler = handler;
<add> this.closed = false;
<ide> if(typeof watchOptions === "number") {
<ide> this.watchOptions = {
<ide> aggregateTimeout: watchOptions
<ide> Wa... | 3 |
Python | Python | add create_output option in graph model | 425f29038ad13e1f627f75aadb16e44d71a25d1b | <ide><path>keras/layers/containers.py
<ide> def add_input(self, name, ndim=2, dtype='float'):
<ide> if ndim == 2:
<ide> layer.input = T.imatrix()
<ide> else:
<del> raise Exception('Type "int" can only be used with ndim==2.')
<add> raise Exception('Ty... | 2 |
Javascript | Javascript | fix sourcemap loading on android | d1e9fc0737fc0987436807d3b9992869f51ce078 | <ide><path>Libraries/JavaScriptAppEngine/Initialization/SourceMapsUtils.js
<ide> var SourceMapsUtils = {
<ide> .then(map => new SourceMapConsumer(map));
<ide> },
<ide>
<del> extractSourceMapURL(data: ({url:string, text:string})): ?string {
<add> extractSourceMapURL(data: ({url?:string, text?:string, fullSour... | 1 |
Go | Go | add debugs for key change events in networkdb | 929921a640bc2dc2e8534a95b72cd3342d484188 | <ide><path>libnetwork/networkdb/cluster.go
<ide> package networkdb
<ide> import (
<ide> "bytes"
<ide> "crypto/rand"
<add> "encoding/hex"
<ide> "fmt"
<ide> "math/big"
<ide> rnd "math/rand"
<ide> func (l *logWriter) Write(p []byte) (int, error) {
<ide>
<ide> // SetKey adds a new key to the key ring
<ide> func (nDB ... | 1 |
Javascript | Javascript | fix typo in claim certificate api | 95fd287f8bac36e8636d62e53dd6d85fec0178a3 | <ide><path>server/boot/certificate.js
<ide> export default function certificate(app) {
<ide>
<ide> function verifyCert(certType, req, res, next) {
<ide> const { user } = req;
<del> return user.getChallengeMap()
<add> return user.getChallengeMap$()
<ide> .flatMap(() => certTypeIds[certType])
<ide> ... | 1 |
Python | Python | fix anotehr file | 06d674890f7cb4ae72392e7a5266f92837ef024e | <ide><path>research/object_detection/dataset_tools/context_rcnn/generate_embedding_data.py
<add># Copyright 2020 The TensorFlow Authors. All Rights Reserved.
<add>#
<add># Licensed under the Apache License, Version 2.0 (the "License");
<add># you may not use this file except in compliance with the License.
<add># You m... | 1 |
Python | Python | modify benchmarks for radix sort | 01eebb134411b8a48aa33ea0c5c6b1757abe60db | <ide><path>benchmarks/benchmarks/bench_function_base.py
<ide> def time_select_larger(self):
<ide> np.select(self.cond_large, ([self.d, self.e] * 10))
<ide>
<ide>
<add>def memoize(f):
<add> _memoized = {}
<add> def wrapped(*args):
<add> if args not in _memoized:
<add> _memoized[args] = ... | 1 |
Go | Go | add info for driver | cfd188e9251f5047e4fd677fe8f2921ae28b8bcc | <ide><path>execdriver/namespaces/driver.go
<ide> func init() {
<ide> }
<ide>
<ide> type driver struct {
<add> root string
<ide> }
<ide>
<del>func NewDriver() (*driver, error) {
<del> return &driver{}, nil
<add>type info struct {
<add> ID string
<add> driver *driver
<add>}
<add>
<add>func (i *info) IsRunning() boo... | 3 |
Javascript | Javascript | improve assertion messages | 8e814fcf3aa82ddf796a4714c43bed26381e6883 | <ide><path>test/parallel/test-domain-safe-exit.js
<ide> // USE OR OTHER DEALINGS IN THE SOFTWARE.
<ide>
<ide> 'use strict';
<add>require('../common');
<ide> // Make sure the domain stack doesn't get clobbered by un-matched .exit()
<ide>
<del>require('../common');
<ide> const assert = require('assert');
<ide> const do... | 1 |
Python | Python | increase test coverages by factorizing cntk pads | 25a8973dfce5251c0bd527ffa16ce17174b94218 | <ide><path>keras/backend/cntk_backend.py
<ide> def function(inputs, outputs, updates=[], **kwargs):
<ide> def temporal_padding(x, padding=(1, 1)):
<ide> assert len(padding) == 2
<ide> num_dynamic_axis = _get_dynamic_axis_num(x)
<del> base_shape = x.shape
<del> if num_dynamic_axis > 0:
<del> assert ... | 1 |
Python | Python | add function to resolve model names and link them | aedefef49dddae29ba9775f389ec7150749ac85f | <ide><path>spacy/__init__.py
<ide> import json
<ide> from pathlib import Path
<ide> from .util import set_lang_class, get_lang_class, parse_package_meta
<add>from .deprecated import resolve_model_name
<ide>
<ide> from . import en
<ide> from . import de
<ide>
<ide> def load(name, **overrides):
<ide> data_path = ov... | 2 |
Javascript | Javascript | add test for top-level _document error | a0e3198aa0442fc6bfb8fe3eb01ad32e729be606 | <ide><path>test/acceptance/ReactRefreshLogBox.dev.test.js
<ide> test('_app top level error shows logbox', async () => {
<ide> expect(await session.hasRedbox()).toBe(false)
<ide> await cleanup()
<ide> })
<add>
<add>test('_document top level error shows logbox', async () => {
<add> const [session, cleanup] = await s... | 1 |
Ruby | Ruby | upgrade virtualenv to 16.6.2 | ba9dde9a4e384cb590718331d74e18da5e78786e | <ide><path>Library/Homebrew/language/python_virtualenv_constants.rb
<ide> # frozen_string_literal: true
<ide>
<ide> PYTHON_VIRTUALENV_URL =
<del> "https://files.pythonhosted.org/packages/37/27" \
<del> "/706af3ee62032933a3217454609c50a5325a6bd9c2c2f495b58c456ba286" \
<del> "/virtualenv-16.6.1.tar.gz"
<add> "https:... | 1 |
Python | Python | add test for the nditer debug_print | d7c8f3dfab63852870d94c43b7b6d667700710a8 | <ide><path>numpy/core/tests/test_nditer.py
<ide> import sys
<ide> import pytest
<ide>
<add>import subprocess, textwrap, re
<add>
<ide> import numpy as np
<ide> import numpy.core._multiarray_tests as _multiarray_tests
<ide> from numpy import array, arange, nditer, all
<ide> def test_partial_iteration_error(in_dtype, bu... | 1 |
Go | Go | fix a misused network object name | f041953d04bffa2be05466173f02dd016c68286d | <ide><path>integration-cli/docker_cli_network_unix_test.go
<ide> func (s *DockerNetworkSuite) TestDockerNetworkInspectCustomSpecified(c *check.C)
<ide> c.Assert(nr.IPAM.Config[0].Gateway, checker.Equals, "172.28.5.254")
<ide> c.Assert(nr.Internal, checker.False)
<ide> dockerCmd(c, "network", "rm", "br0")
<del> asser... | 1 |
Python | Python | add reboot_node to vps.net | 95ba6a7f537889c8e25a1d33b44f9b4c3f548470 | <ide><path>libcloud/drivers/vpsnet.py
<ide> def create_node(self, name, image, size, **kwargs):
<ide> node = self._to_node(res.object['virtual_machine'])
<ide> return node
<ide>
<add> def reboot_node(self, node):
<add> res = self.connection.request('/virtual_machines/%s/%s.%s' %
<add> ... | 2 |
Ruby | Ruby | remove unnecessary parameter from method | bd9c436d50c71eef58b3f9ba511e701cf27b377c | <ide><path>Library/Homebrew/livecheck/livecheck.rb
<ide> def status_hash(package_or_resource, status_str, messages = nil, full_name: fals
<ide> end
<ide>
<ide> # Formats and prints the livecheck result for a formula/cask/resource.
<del> sig { params(info: Hash, verbose: T::Boolean, ambiguous_cask: T::Boolea... | 1 |
Text | Text | simplify governance info in readme intro | eddfa2c52ee91e657c1a3e42815e6dff960a7fe3 | <ide><path>README.md
<ide> Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. For
<ide> more information on using Node.js, see the [Node.js Website][].
<ide>
<del>Node.js contributions, policies, and releases are managed under an
<del>[open governance model](./GOVERNANCE.md). The [Node.js Foundati... | 1 |
PHP | PHP | use string template | 19903b0cbfd616e7de095cc6fe0f2d41506f6719 | <ide><path>src/View/Helper/FormHelper.php
<ide> public function secure($fields = array()) {
<ide> $out .= $this->hidden('_Token.unlocked', array(
<ide> 'value' => urlencode($unlocked),
<ide> ));
<del> return $this->Html->useTag('hiddenblock', $out);
<add> return $this->formatTemplate('hiddenblock', ['content' ... | 1 |
Java | Java | add responseentity.of(optional) variant | 432cdd7802b9d1109eb02925d45782b6c99b9e01 | <ide><path>spring-web/src/main/java/org/springframework/http/ResponseEntity.java
<ide> import java.net.URI;
<ide> import java.util.Arrays;
<ide> import java.util.LinkedHashSet;
<add>import java.util.Optional;
<ide> import java.util.Set;
<ide>
<ide> import org.springframework.lang.Nullable;
<ide> public static BodyBuil... | 2 |
PHP | PHP | fix duplicate logging definition | 4e4ac0b8e2153bef704528f3f2eb06665fbb88e8 | <ide><path>src/TestSuite/Fixture/PHPUnitExtension.php
<ide> public function executeBeforeFirstTest(): void
<ide> $enableLogging = in_array('--debug', $_SERVER['argv'] ?? [], true);
<ide> if ($enableLogging) {
<ide> $helper->enableQueryLogging();
<add> Log::drop('queries');
<ide> ... | 1 |
Go | Go | update plugingetter import path in docker/docker | a98be0344b24d71235c17a87ff425f3d602e48e8 | <ide><path>daemon/daemon.go
<ide> import (
<ide> "github.com/docker/docker/pkg/fileutils"
<ide> "github.com/docker/docker/pkg/graphdb"
<ide> "github.com/docker/docker/pkg/idtools"
<add> "github.com/docker/docker/pkg/plugingetter"
<ide> "github.com/docker/docker/pkg/progress"
<ide> "github.com/docker/docker/pkg/reg... | 9 |
Java | Java | improve concurrentlrucache performance | 713a112812fd9ca1e6b64f3f8105374743d677bc | <ide><path>spring-core/src/main/java/org/springframework/util/MimeTypeUtils.java
<ide> import java.util.Random;
<ide> import java.util.concurrent.ConcurrentHashMap;
<ide> import java.util.concurrent.ConcurrentLinkedQueue;
<add>import java.util.concurrent.locks.Lock;
<ide> import java.util.concurrent.locks.ReadWriteLock... | 1 |
Python | Python | add right test | 311dc9f71c72d4460b194d17734c3d80830c2798 | <ide><path>research/object_detection/meta_architectures/context_rcnn_lib.py
<ide> def compute_box_context_attention(box_features, context_features,
<ide> output_features = output_features[:, :, tf.newaxis, tf.newaxis, :]
<ide>
<ide> return output_features
<del>
<ide>\ No newline at end of file | 1 |
Javascript | Javascript | simplify the cmap format 6 conversion - fix #449 | 6329f89982ba7d9e9c80a30fdfb55f57c5054d03 | <ide><path>fonts.js
<ide> var Font = (function Font() {
<ide> var entryCount = int16(font.getBytes(2));
<ide>
<ide> var glyphs = [];
<del> var min = 0xffff, max = 0;
<del> for (var j = 0; j < entryCount; j++) {
<del> var charcode = int16(font.getBytes(2));
<de... | 1 |
Javascript | Javascript | replace space with \b in regex | ea77b33a526763675713dbc23cbd7fa98f733f27 | <ide><path>tools/doc/html.js
<ide> const BSD_ONLY_SYSCALLS = new Set(['lchmod']);
<ide> // '<a href="http://man7.org/linux/man-pages/man2/open.2.html">open(2)</a>'
<ide> function linkManPages(text) {
<ide> return text.replace(
<del> / ([a-z.]+)\((\d)([a-z]?)\)/gm,
<add> /\b([a-z.]+)\((\d)([a-z]?)\)/gm,
<ide> ... | 1 |
Javascript | Javascript | remove unused variables on async hook test | 056e68749cc60156f51811d5026ec98e68ebb257 | <ide><path>test/parallel/test-async-hooks-enable-recursive.js
<ide> const nestedHook = async_hooks.createHook({
<ide> });
<ide>
<ide> async_hooks.createHook({
<del> init: common.mustCall((id, type) => {
<add> init: common.mustCall(() => {
<ide> nestedHook.enable();
<ide> }, 2)
<ide> }).enable(); | 1 |
Ruby | Ruby | add chop removed in 89bcca5 | 531d14d0da70ae2bac2a5d58acaa6165039557e2 | <ide><path>activerecord/test/cases/fixtures_test.rb
<ide> def test_bulk_insert_multiple_table_with_a_multi_statement_query
<ide>
<ide> create_fixtures("bulbs", "authors", "computers")
<ide>
<del> expected_sql = <<~EOS
<add> expected_sql = <<~EOS.chop
<ide> INSERT INTO #{ActiveRecord::Base.conn... | 1 |
Ruby | Ruby | keep the socket reference after close | 4d01cd1545a00ed6f96d6cb658a590afd36e1871 | <ide><path>actioncable/test/client_test.rb
<ide> def with_puma_server(rack_app = ActionCable.server, port = 3099)
<ide> yield port
<ide>
<ide> ensure
<del> server.stop(true)
<del> t.join
<add> server.stop(true) if server
<add> t.join if t
<ide> end
<ide>
<ide> def start_event_machine
<ide> def i... | 1 |
Ruby | Ruby | add to_i method | 74433968f61bd6098fed0ecd663bccbd0d69bd35 | <ide><path>Library/Homebrew/version/null.rb
<ide> def to_f
<ide> Float::NAN
<ide> end
<ide>
<add> def to_i
<add> 0
<add> end
<add>
<ide> def to_s
<ide> ""
<ide> end | 1 |
Javascript | Javascript | prefix public path in importscripts | eb63cb78b6b0db89bcd32bf0d9484641ce7a7f2b | <ide><path>lib/runtime/AutoPublicPathRuntimeModule.js
<ide> class AutoPublicPathRuntimeModule extends RuntimeModule {
<ide> }
<ide> );
<ide> const undoPath = getUndoPath(chunkName, false);
<add>
<ide> return Template.asString([
<ide> "var scriptUrl;",
<ide> scriptType === "module"
<ide><path>lib/webworke... | 5 |
Text | Text | explain async action creators | c86ba09c16af391deb169b1229eaeff09cd261b1 | <ide><path>docs/recipes/ReducingBoilerplate.md
<ide> dispatch({
<ide>
<ide> you might write an action creator in a separate file, and import it from your component:
<ide>
<del>#### `ActionCreators.js`
<add>#### `actionCreators.js`
<ide>
<ide> ```js
<ide> export function addTodo(text) {
<ide> export function addTodo(... | 1 |
Javascript | Javascript | add index to core | 087ba88da6d76f9aea00608923eac8ba1e6679f5 | <ide><path>src/core/index.js
<add>export {default as _adapters} from './core.adapters';
<add>export {default as Animation} from './core.animation';
<add>export {default as Animations} from './core.animations';
<add>export {default as Animator} from './core.animator';
<add>export {default as Chart} from './core.controll... | 1 |
Ruby | Ruby | add more tests to new api | b30eb39ff072ce95ccd5ce94ae08d116c23fd260 | <ide><path>actionmailer/lib/action_mailer/base.rb
<ide> class Base < AbstractController::Base
<ide> @@deliveries = []
<ide> cattr_accessor :deliveries
<ide>
<del> @@default_charset = "utf-8"
<del> cattr_accessor :default_charset
<add> extlib_inheritable_accessor :default_charset
<add> self.default_... | 3 |
Ruby | Ruby | fix regular expression | 33c3faa1252f2391ec456fa922ea2bf654f341b6 | <ide><path>Library/Homebrew/requirements/java_requirement.rb
<ide> def oracle_java_os
<ide> end
<ide>
<ide> def satisfies_version(java)
<del> java_version_s = system_command(java, args: ["-version"], print_stderr: false).stderr[/\d+.\d/]
<add> java_version_s = system_command(java, args: ["-version"], print_s... | 1 |
Javascript | Javascript | remove ascii art | 24df55bd00d5af34e87afab0551cb21f56c30acb | <ide><path>src/geo/projection.js
<ide> function d3_geo_projectionMutator(projectAt) {
<ide> }
<ide>
<ide> // TODO automate wrapping.
<del> projection.point = function(coordinates, c) { context = c; clip.point(coordinates, resample); context = null; };
<del> projection.line = function(coordinates, c) { con... | 1 |
Ruby | Ruby | simplify available check | 2776f08fa095b95dafbc9af5f80188f3f063e001 | <ide><path>Library/Homebrew/gpg.rb
<ide> def self.gpg2
<ide> GPG_EXECUTABLE = gpg2 || gpg
<ide>
<ide> def self.available?
<del> File.exist?(GPG_EXECUTABLE.to_s) && File.executable?(GPG_EXECUTABLE.to_s)
<add> File.executable?(GPG_EXECUTABLE.to_s)
<ide> end
<ide>
<ide> def self.create_test_key(path) | 1 |
PHP | PHP | add test for find() and array conditions | 0ff9545e5adab509153551596a0be81a6a1493bd | <ide><path>lib/Cake/Test/Case/Model/ModelReadTest.php
<ide> public function testFindAll() {
<ide> }
<ide> }
<ide>
<add>/**
<add> * Test that find() with array conditions works when there is only one element.
<add> *
<add> * @return void
<add> */
<add> public function testFindAllArrayConditions() {
<add> $this->loa... | 1 |
Python | Python | add cudnn gru and lstm layers. | b3370c0da4430367761e6762e85de7ab4962ff62 | <ide><path>keras/layers/__init__.py
<ide> from .pooling import *
<ide> from .local import *
<ide> from .recurrent import *
<add>from .cudnn_recurrent import *
<ide> from .normalization import *
<ide> from .embeddings import *
<ide> from .noise import *
<ide><path>keras/layers/cudnn_recurrent.py
<add>from .. import back... | 4 |
PHP | PHP | present tense and fix tests | 58278256e853de199d35c0a087a724fd52b5cd35 | <ide><path>src/TestSuite/Constraint/Response/CookieEquals.php
<ide> public function matches($other)
<ide> */
<ide> public function toString()
<ide> {
<del> return sprintf('was in cookie \'%s\'', $this->cookieName);
<add> return sprintf('is in cookie \'%s\'', $this->cookieName);
<ide> }
<i... | 5 |
Javascript | Javascript | make timezone optional | 9473780e77a960ba27644ca76c2413924cc8972e | <ide><path>src/ng/filter/filters.js
<ide> dateFilter.$inject = ['$locale'];
<ide> function dateFilter($locale) {
<ide>
<ide>
<del> var R_ISO8601_STR = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d)))?$/;
<add> var R_ISO8601_STR = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(... | 2 |
Javascript | Javascript | fix some warnings | 99705440a085de64c57155e00ea4f3361dec9879 | <ide><path>Libraries/AppRegistry/AppRegistry.js
<ide> if (__DEV__) {
<ide> }
<ide>
<ide> var runnables = {};
<add>var runCount = 1;
<ide>
<ide> type ComponentProvider = () => ReactClass<any>;
<ide>
<ide> var AppRegistry = {
<ide> ', performance optimizations are ' + (__DEV__ ? 'OFF' : 'ON');
<ide> console.... | 2 |
Javascript | Javascript | remove var in libraries/component | a06c0da828f42b804b526a5de35b94b5b4468c1c | <ide><path>Libraries/Components/RefreshControl/RefreshControl.js
<ide> const nullthrows = require('nullthrows');
<ide> import type {ColorValue} from 'StyleSheetTypes';
<ide> import type {ViewProps} from 'ViewPropTypes';
<ide>
<add>let RefreshLayoutConsts;
<ide> if (Platform.OS === 'android') {
<ide> const AndroidSwi... | 2 |
Python | Python | fix a typo in the example | 3a8d7ff5f047c7b3476b8dcffa0e6850e952a645 | <ide><path>docs/examples/http_proxy/set_http_proxy_method.py
<ide>
<ide> cls = get_driver(Provider.RACKSPACE)
<ide> driver = cls('username', 'api key', region='ord')
<del>driver.set_http_proxy(proxy_url=PROXY_URL)
<add>driver.connection.set_http_proxy(proxy_url=PROXY_URL)
<ide>
<ide> pprint(driver.list_nodes()) | 1 |
Python | Python | correct io counter and max cpu/mem | 6f62a9f2e8418fb4e7c224942843d5fcab87882f | <ide><path>glances/processes.py
<ide> def update(self):
<ide> self.processcount['pid_max'] = self.pid_max
<ide>
<ide> # Compute the maximum value for keys in self._max_values_list
<del> # Reset the max dict
<del> self.reset_max_values()
<add> # # Reset the max dict
<add> # s... | 1 |
Javascript | Javascript | add polygon tag to transform | 42444f6bb9a001096cfd95306a1e720eb1ed537e | <ide><path>vendor/fbtransform/transforms/xjs.js
<ide> var knownTags = {
<ide> p: true,
<ide> param: true,
<ide> path: true,
<add> polygon: true,
<ide> polyline: true,
<ide> pre: true,
<ide> progress: true, | 1 |
Go | Go | optimize the unit test for restartmanager | 0a0bbab81d30a22e1c60e17c57be09df1541ee9c | <ide><path>restartmanager/restartmanager.go
<ide> type restartManager struct {
<ide> canceled bool
<ide> }
<ide>
<del>// New returns a new restartmanager based on a policy.
<add>// New returns a new restartManager based on a policy.
<ide> func New(policy container.RestartPolicy, restartCount int) RestartManager {... | 2 |
Javascript | Javascript | remove unneeded code | 01fb5c7006d1e2c6896d9cb80e664ecee0a1f675 | <ide><path>lib/dependencies/URLDependency.js
<ide> URLDependency.Template = class URLDependencyTemplate extends ModuleDependency.Te
<ide> chunkGraph,
<ide> moduleGraph,
<ide> runtimeRequirements,
<del> runtimeTemplate,
<del> runtime
<add> runtimeTemplate
<ide> } = templateContext;
<ide> const dep = /... | 1 |
Ruby | Ruby | remove useless conditional | f597dc5cf6a0a513e89144dd302e7e3cbac22a5d | <ide><path>actionpack/lib/action_dispatch/http/response.rb
<ide> def to_ary
<ide> end
<ide>
<ide> def rack_response(status, header)
<del> header[SET_COOKIE] = header[SET_COOKIE].join("\n") if header[SET_COOKIE].respond_to?(:join)
<del>
<ide> if NO_CONTENT_CODES.include?(@status)
<ide> header... | 1 |
Javascript | Javascript | pass testid down in modal | 5050e7eaa17cb417baf7c20eb5c4406cce6790a5 | <ide><path>Libraries/Modal/Modal.js
<ide> class Modal extends React.Component<Props> {
<ide> // $FlowFixMe[method-unbinding] added when improving typing for this parameters
<ide> onStartShouldSetResponder={this._shouldSetResponder}
<ide> supportedOrientations={this.props.supportedOrientations}
<... | 1 |
Ruby | Ruby | support more methods | 675264a4493586794c942acf3d9db896fd9453f2 | <ide><path>activestorage/app/models/active_storage/attachment.rb
<ide> class ActiveStorage::Attachment < ActiveStorage::Record
<ide> after_create_commit :mirror_blob_later, :analyze_blob_later
<ide> after_destroy_commit :purge_dependent_blob_later
<ide>
<del> scope :with_all_variant_records, -> { includes(blob: :... | 4 |
Java | Java | support multi sources for images | 65f4988ddf480a78667a1856b728174c9ac2fb9f | <ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/RCTImageView.java
<ide>
<ide> import com.facebook.csslayout.Spacing;
<ide> import com.facebook.drawee.drawable.ScalingUtils.ScaleType;
<add>import com.facebook.react.bridge.ReadableArray;
<ide> import com.facebook.react.uimanager.PixelUtil;
<ide> import com... | 2 |
Javascript | Javascript | delay listen emit | d64e070e26cc3545367ef38098a0fe963be0ea8d | <ide><path>lib/net_uv.js
<ide> function listenip(self, ip, port) {
<ide> self.emit('error', errnoException(errno, 'listen'));
<ide> } else {
<ide> self._handle.listen(self._backlog || 128);
<del> self.emit('listening');
<add> process.nextTick(function() {
<add> self.emit('listening');
<add> });
... | 1 |
Text | Text | specify width and height for image(remote source) | 6b2a49e73e52bf40ab82f792e7748aa36847c17f | <ide><path>docs/Props.md
<ide> class Bananas extends Component {
<ide> uri: 'https://upload.wikimedia.org/wikipedia/commons/d/de/Bananavarieties.jpg'
<ide> };
<ide> return (
<del> <Image source={pic} />
<add> <Image source={pic} style={{width: 193, height: 110}}/>
<ide> );
<ide> }
<ide> } | 1 |
Javascript | Javascript | convert code samples to js | 08ca84e58732e10bece209dd2d677d33b18838d7 | <ide><path>src/text-editor.js
<ide> const DEFAULT_NON_WORD_CHARACTERS = "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-…"
<ide> // then be called with all current editor instances and also when any editor is
<ide> // created in the future.
<ide> //
<del>// ```coffee
<del>// atom.workspace.observeTextEditors (editor) ->
<add>// ```j... | 1 |
Python | Python | adjust assertraisesregex argument | 78688e7bc057ecb8a9ddcfdfbe157737aadf81a2 | <ide><path>keras/layers/normalization/batch_normalization_test.py
<ide> def test_basic_batchnorm_v2_input_shape_and_virtual_batch_size(self):
<ide> norm = batch_normalization.BatchNormalization(virtual_batch_size=8)
<ide> _ = norm(np.ones((1, 28, 28)))
<ide>
<del> with self.assertRaisesRegex(Exc... | 1 |
PHP | PHP | change default job attempts from unlimited to 1 | a37d88a3a3c193882f29aab88b33accbd995c749 | <ide><path>src/Illuminate/Queue/Console/ListenCommand.php
<ide> class ListenCommand extends Command
<ide> {--queue= : The queue to listen on}
<ide> {--sleep=3 : Number of seconds to sleep when no job is available}
<ide> {--timeout=60 : ... | 5 |
Ruby | Ruby | indicate action that failed in yamlcolumn | 1c1aba775826589b5038959120ea57e050e38123 | <ide><path>activerecord/lib/active_record/coders/yaml_column.rb
<ide> def initialize(attr_name, object_class = Object)
<ide> def dump(obj)
<ide> return if obj.nil?
<ide>
<del> assert_valid_value(obj)
<add> assert_valid_value(obj, action: "dump")
<ide> YAML.dump obj
<ide> end
<... | 4 |
Mixed | Javascript | add missing deprecation code | b3f35e2c70c7d1e3ee7b4c3fd74672adceb16c52 | <ide><path>doc/api/deprecations.md
<ide> Previously, `index.js` and extension searching lookups would apply to
<ide> With this deprecation, all ES module main entry point resolutions require
<ide> an explicit [`"exports"` or `"main"` entry][] with the exact file extension.
<ide>
<del>### DEP0XXX: Extension Performance... | 2 |
Javascript | Javascript | expose xhr instance | ab361ac169bc39524e2b5d9fa1be64a93fef0546 | <ide><path>lib/adapters/http.js
<ide> module.exports = function httpAdapter(resolve, reject, config) {
<ide> status: res.statusCode,
<ide> statusText: res.statusMessage,
<ide> headers: res.headers,
<del> config: config
<add> config: config,
<add> request: req
<ide> };
... | 2 |
Python | Python | replace assigment with augmented assignment | 7c206a82a6f074abcc4898a005ecd2c84a920054 | <ide><path>airflow/providers/amazon/aws/hooks/datasync.py
<ide> def wait_for_task_execution(self, task_execution_arn, max_iterations=2 * 180):
<ide> )
<ide> status = task_execution["Status"]
<ide> self.log.info("status=%s", status)
<del> iterations = iterations - 1
<add> ... | 12 |
Text | Text | add text "advanced android development" | 4446ed1099613d960db2c9ba84d22fd5e8a0332c | <ide><path>client/src/pages/guide/english/android-development/core-components/index.md
<ide> A _broadcast receiver_ is another component without user interface (except an op
<ide> ## [Content providers](https://developer.android.com/guide/topics/providers/content-providers)
<ide> A _content provider_ is a component use... | 1 |
Ruby | Ruby | require different core extensions correctly | 1a4d8736ce7294d2ecfc46172cc8de3b4591ac23 | <ide><path>activesupport/lib/active_support/i18n.rb
<add>require 'active_support/core_ext/hash/deep_merge'
<add>require 'active_support/core_ext/hash/except'
<add>require 'active_support/core_ext/hash/slice'
<ide> begin
<del> require 'active_support/core_ext/hash/deep_merge'
<del> require 'active_support/core_ext/has... | 1 |
Javascript | Javascript | fix uniforms to support fog | d9fa714202b9f9c687ffe848751e1565790adb56 | <ide><path>examples/js/loaders/LDrawLoader.js
<ide> THREE.LDrawLoader = ( function () {
<ide> edgeMaterial.userData.conditionalEdgeMaterial = new THREE.ShaderMaterial( {
<ide> vertexShader: conditionalLineVertShader,
<ide> fragmentShader: conditionalLineFragShader,
<del> uniforms: {
<del> diffuse... | 1 |
PHP | PHP | remove insert and update methods from eloquent | 21efdbf69b031935f812076f106d7aff5c3b7aaf | <ide><path>system/db/eloquent.php
<ide> public function save()
<ide> $this->timestamp();
<ide> }
<ide>
<del> $result = ($this->exists) ? $this->update() : $this->insert();
<add> if ($this->exists)
<add> {
<add> $result = $this->query->where('id', '=', $this->attributes['id'])->update($this->dirty) == 1;
<add... | 1 |
Javascript | Javascript | get new infra in place | 235193ef315cf2351e942da277b3d3ace245a400 | <ide><path>packages/ember-runtime/tests/mixins/array_test.js
<ide> const TestArray = EmberObject.extend(EmberArray, {
<ide>
<ide> ArrayTests.extend({
<ide>
<del> name: 'Basic Mutable Array',
<add> name: 'Basic Ember Array',
<ide>
<ide> newObject(ary) {
<ide> ary = ary ? ary.slice() : this.newFixture(3);
<ide... | 5 |
Text | Text | fix typo in overview doc for react-devtools | 6508ab3be8a4a79d18e46fac7318454307a51170 | <ide><path>packages/react-devtools/OVERVIEW.md
<ide> It consists of:
<ide>
<ide> 1. the total length of next items that belong to string table
<ide> 2. for each string in a table:
<del> 1. encoded size
<del> 2. a list of its UTF encoded codepoints
<add> * encoded size
<add> * a list of its UTF encoded codepoin... | 1 |
Text | Text | add elements.arc.angle in documentation | 6e69a38305e532a36b8d8b1ed58a9c3655c58192 | <ide><path>docs/configuration/elements.md
<ide> Global arc options: `Chart.defaults.global.elements.arc`.
<ide>
<ide> | Name | Type | Default | Description
<ide> | ---- | ---- | ------- | -----------
<add>| `angle` - for polar only | `number` | `circumference / (arc count)` | Arc angle to cover.
<ide> | `backgroundCol... | 1 |
PHP | PHP | add tests for phperror and file headers | 2e0682f865aeed35df904f7ae813e2dafc4e0622 | <ide><path>src/Error/ErrorRendererInterface.php
<ide> <?php
<ide> declare(strict_types=1);
<ide>
<add>/**
<add> * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
<add> * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
<add> *
<add> * Licensed under The MIT License
<add> * For ... | 3 |
Javascript | Javascript | remove unused trailing function arguments | bf2b5e1d5c239a1b4ea812051ec82101e1ce4347 | <ide><path>tools/doc/html.js
<ide> function altDocs(filename) {
<ide> const host = 'https://nodejs.org';
<ide> const href = (v) => `${host}/docs/latest-v${v.num}/api/${filename}.html`;
<ide>
<del> function li(v, i) {
<add> function li(v) {
<ide> let html = `<li><a href="${href(v)}">${v.num}`;
<ide>
<ide> ... | 3 |
Javascript | Javascript | remove @providesmodule in www shims | 3e9515eedebe0c19f047391605c5b3c71d13fbc2 | <ide><path>scripts/rollup/shims/facebook-www/EventPluginHub.js
<ide> *
<ide> * This source code is licensed under the MIT license found in the
<ide> * LICENSE file in the root directory of this source tree.
<del> *
<del> * @providesModule EventPluginHub
<ide> */
<ide>
<ide> 'use strict';
<ide><path>scripts/rollup/... | 7 |
Go | Go | add test for ingress removal on service removal | 805b6a7f749a6c7cbb237e21ee7260d536621808 | <ide><path>integration/network/service_test.go
<ide> func TestServiceWithPredefinedNetwork(t *testing.T) {
<ide> if runtime.GOARCH == "arm64" || runtime.GOARCH == "arm" {
<ide> config.Timeout = 50 * time.Second
<ide> config.Delay = 100 * time.Millisecond
<add> } else {
<add> config.Timeout = 30 * time.Second... | 1 |
Javascript | Javascript | replace input[select] with option for clarity | ce20dd06fe196bdcc0d1b0c9d2d271f90aea21fc | <ide><path>src/ng/directive/input.js
<ide> var CONSTANT_VALUE_REGEXP = /^(true|false|\d+)$/;
<ide> * @name ngValue
<ide> *
<ide> * @description
<del> * Binds the given expression to the value of `input[select]` or `input[radio]`, so
<del> * that when the element is selected, the `ngModel` of that element is set to t... | 1 |
Java | Java | add contains form data requestmatcher | de0a0437397124083eeea9fb46c8bf3cc5a70763 | <ide><path>spring-test/src/main/java/org/springframework/test/web/client/match/ContentRequestMatchers.java
<ide>
<ide> package org.springframework.test.web.client.match;
<ide>
<del>import java.io.ByteArrayInputStream;
<ide> import java.io.IOException;
<del>import java.io.InputStream;
<ide> import java.util.List;
<ide... | 2 |
PHP | PHP | apply fixes from styleci | 20d9fffe5ea845db6336d089a4d6e5b6c85a9d9c | <ide><path>src/Illuminate/Support/Pluralizer.php
<ide>
<ide> namespace Illuminate\Support;
<ide>
<del>use Doctrine\Inflector\InflectorFactory;
<ide> use Doctrine\Inflector\Inflector;
<del>use Doctrine\Inflector\RulesetInflector;
<add>use Doctrine\Inflector\InflectorFactory;
<ide>
<ide> class Pluralizer
<ide> { | 1 |
Python | Python | correct a bug on the sensor plugin | e1801def7d255bd7732501f60079a9847ad55b7a | <ide><path>glances/plugins/glances_alert.py
<ide> """Alert plugin."""
<ide>
<ide> # Import system lib
<add>import types
<ide> from datetime import datetime
<ide>
<ide> # Import Glances libs
<ide> def msg_curse(self, args=None):
<ide> msg = str(alert[3])
<ide> ret.append(self.cu... | 2 |
PHP | PHP | fix command bug | 1973197d53c9daaf65c54c4c872669e787a408d3 | <ide><path>src/Illuminate/Database/Seeder.php
<ide> public function call($class)
<ide> {
<ide> $this->resolve($class)->run();
<ide>
<del> $this->command->getOutput()->writeln("<info>Seeded:</info> $class");
<add> if ($this->command)
<add> {
<add> $this->command->getOutput()->writeln("<info>Seeded:</info> $clas... | 1 |
Ruby | Ruby | fix configurable cristalization and tests | d677097eb6d49f75ef41dae2ee832d5e0a1d177d | <ide><path>activesupport/lib/active_support/configurable.rb
<ide> module Configurable
<ide>
<ide> class Configuration < ActiveSupport::InheritableOptions
<ide> def compile_methods!
<del> self.class.compile_methods!(keys.reject {|key| respond_to?(key)})
<add> self.class.compile_methods!(keys)
<i... | 2 |
Text | Text | fix a missed bullet | 446ddf7b06739a50c0766032b6bb893313884397 | <ide><path>README.md
<ide> tests for CakePHP by doing the following:
<ide> * [#cakephp](http://webchat.freenode.net/?channels=#cakephp) on irc.freenode.net - Come chat with us, we have cake.
<ide> * [Forum](http://discourse.cakephp.org/) - Offical CakePHP forum.
<ide> * [GitHub Issues](https://github.com/cakephp/cakeph... | 1 |
Python | Python | fix py2/3 issue | 5551052840833ef9a5c2f1f679dd390e0a035a0d | <ide><path>spacy/en/download.py
<ide> def main(data_size='all', force=False):
<ide> print("Model already installed. Please run 'python -m "
<ide> "spacy.en.download --force' to reinstall.", file=sys.stderr)
<ide> sys.exit(1)
<del> except PackageNotFoundException, CompatiblePackageNotFou... | 1 |
Javascript | Javascript | allow form label and name to differ | c4240cdf2f11d4d7f7164f3cb9c16d32b9ca0eb8 | <ide><path>client/src/components/formHelpers/Form.js
<ide> import {
<ide> const propTypes = {
<ide> buttonText: PropTypes.string,
<ide> enableSubmit: PropTypes.bool,
<del> formFields: PropTypes.arrayOf(PropTypes.string).isRequired,
<add> formFields: PropTypes.arrayOf(
<add> PropTypes.shape({ name: PropTypes.st... | 6 |
Ruby | Ruby | introduce ignore_errors parameter | 49285fb88c2b0845d9d4847b89e32ac9b54206e9 | <ide><path>Library/Homebrew/formulary.rb
<ide> def self.clear_cache
<ide> super
<ide> end
<ide>
<del> def self.load_formula(name, path, contents, namespace, flags:)
<add> def self.load_formula(name, path, contents, namespace, flags:, ignore_errors:)
<ide> raise "Formula loading disabled by HOMEBREW_DISABLE... | 1 |
Javascript | Javascript | fix invalid prop usage in rntesterexamplelist | da057749f8be59516b7dcb5cb3a7bdb67c3d990c | <ide><path>RNTester/js/components/RNTesterExampleList.js
<ide> class RNTesterExampleList extends React.Component<Props, $FlowFixMeState> {
<ide> automaticallyAdjustContentInsets={false}
<ide> keyboardDismissMode="on-drag"
<ide> renderSectionHeader={renderSecti... | 1 |
Ruby | Ruby | update depends_on_java to suggest temurin | 8c22e009acaafa7de7c2c8ee298229efd21f2503 | <ide><path>Library/Homebrew/cask/dsl/caveats.rb
<ide> def eval_caveats(&block)
<ide> if java_version == :any
<ide> <<~EOS
<ide> #{@cask} requires Java. You can install the latest version with:
<del> brew install --cask adoptopenjdk
<add> brew install --cask temuri... | 1 |
Ruby | Ruby | verbose => false as in new thor version | b4ef958de6b16294094de28d00ba25fe2f48accc | <ide><path>railties/lib/generators/actions.rb
<ide> module Actions
<ide> #
<ide> # apply "recipes/jquery.rb"
<ide> #
<del> def apply(path, log_status=true)
<add> def apply(path)
<ide> path = find_in_source_paths(path) unless path =~ /^http\:\/\//
<ide>
<del> log :apply, pat... | 17 |
Javascript | Javascript | make test context an es6 module | f3ef620c6876ad13188f5c95f65b010952d219ea | <ide><path>karma.conf.js
<ide> module.exports = function(karma) {
<ide> plugins: [
<ide> resolve(),
<ide> babel({exclude: 'node_modules/**'}), // use babel since we have ES proposal features
<del> commonjs()
<add> commonjs({exclude: ['src/**', 'test/**']})
<ide> ],
<ide> output: {
<ide> name:... | 2 |
PHP | PHP | add regression test for | 9b0c1fc5606ca53116ea2913b5e629c6e7f13d49 | <ide><path>tests/TestCase/ORM/QueryRegressionTest.php
<ide> public function testDotNotationNotOverride()
<ide>
<ide> $this->assertEquals([['name' => 'nate', 'tag' => 'tag1']], $results);
<ide> }
<add>
<add> /**
<add> * Test expression based ordering with unions.
<add> *
<add> * @return void
... | 1 |
Text | Text | replace uses of `you` and other style nits | 71f22c842bc3f9e04ebf110461c42b07a304f352 | <ide><path>doc/api/addons.md
<ide> involving knowledge of several components and APIs :
<ide> See [Linking to Node.js' own dependencies][] for additional information.
<ide>
<ide> All of the following examples are available for [download][] and may
<del>be used as a starting-point for your own Addon.
<add>be used as... | 13 |
Javascript | Javascript | replace common port with specific number | e0faf8c3e9765afa6180db75c06e39d5b88c0b2b | <ide><path>test/parallel/test-net-connect-options-invalid.js
<ide> 'use strict';
<del>const common = require('../common');
<add>require('../common');
<ide> const assert = require('assert');
<ide> const net = require('net');
<ide>
<ide> const net = require('net');
<ide> ];
<ide> invalidKeys.forEach((invalidKey) => ... | 2 |
Mixed | Go | remove dm.no_warn_on_loop_devices in info warning | 2aa01e0fbc76ecb8cf1a1b608e254e6cb8821ff7 | <ide><path>api/client/system/info.go
<ide> func runInfo(dockerCli *client.DockerCli) error {
<ide>
<ide> // print a warning if devicemapper is using a loopback file
<ide> if pair[0] == "Data loop file" {
<del> fmt.Fprintln(dockerCli.Err(), " WARNING: Usage of loopback devices is strongly discouraged for produ... | 2 |
Javascript | Javascript | adjust morph usage to be inclusive | a9422f48228f5943886999d5ae3025464c18c409 | <ide><path>packages/ember-metal-views/lib/renderer.js
<ide> Renderer.prototype.appendAttrTo =
<ide>
<ide> Renderer.prototype.replaceIn =
<ide> function Renderer_replaceIn(view, target) {
<del> var morph = this._dom.createMorph(target, null, null);
<add> var morph;
<add> if (target.firstNode) {
<add> mo... | 5 |
Text | Text | clarify behaviour of writefile(fd) | a763de137ceb81a19a2446b0f7286c4a309c27e4 | <ide><path>doc/api/fs.md
<ide> changes:
<ide> * `callback` {Function}
<ide> * `err` {Error}
<ide>
<del>Asynchronously writes data to a file, replacing the file if it already exists.
<del>`data` can be a string or a buffer.
<add>When `file` is a filename, asynchronously writes data to the file, replacing the
<add>fil... | 1 |
Java | Java | remove some superfluous reads before writes. | c9bb518df5991a65c2f97b8ed7ba5458233963ea | <ide><path>src/main/java/io/reactivex/internal/operators/flowable/FlowableWindowBoundary.java
<ide> public void request(long n) {
<ide>
<ide> @Override
<ide> public void cancel() {
<del> if (!cancelled) {
<del> cancelled = true;
<del> }
<add> canc... | 9 |
Text | Text | use a numbered list for maintainers responsibility | cc96d312526dac5eff3e0521b921e08301715ce5 | <ide><path>hack/MAINTAINERS.md
<ide> speak up!
<ide>
<ide> It is every maintainer's responsibility to:
<ide>
<del>* 1) Expose a clear roadmap for improving their component.
<del>* 2) Deliver prompt feedback and decisions on pull requests.
<del>* 3) Be available to anyone with questions, bug reports, criticism etc.
<a... | 1 |
Python | Python | fix typo in docstring | 17e5fb365d7bde8fc795311bb37fe6358e258dc5 | <ide><path>flask/app.py
<ide> def make_response(self, rv):
<ide> :class:`tuple` A tuple in the form ``(response, status,
<ide> headers)`` where `response` is any of the
<ide> types defined here, `status` is a string
<del> ... | 1 |
Javascript | Javascript | parse materialindex when adding groups | 206a7d0d4b012be1d79fbccfa38c332279a343c3 | <ide><path>src/loaders/BufferGeometryLoader.js
<ide> THREE.BufferGeometryLoader.prototype = {
<ide>
<ide> var group = groups[ i ];
<ide>
<del> geometry.addGroup( group.start, group.count );
<add> geometry.addGroup( group.start, group.count, group.materialIndex );
<ide>
<ide> }
<ide> | 1 |
Ruby | Ruby | return nil for strings with no date information | 06a7c2948a8dbf31357b552d468fcf42002736e7 | <ide><path>activerecord/lib/active_record/attribute_methods.rb
<ide> def define_write_method(attr_name)
<ide> def define_write_method_for_time_zone_conversion(attr_name)
<ide> method_body = <<-EOV
<ide> def #{attr_name}=(time)
<del> unless time.blank? || time.acts_like?(:time)... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.