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 | use validators for consistency | 4157317f4cec9fe2166c095dfade113c5d3d30e6 | <ide><path>lib/internal/console/constructor.js
<ide> const {
<ide> isStackOverflowError,
<ide> codes: {
<ide> ERR_CONSOLE_WRITABLE_STREAM,
<del> ERR_INVALID_ARG_TYPE,
<ide> ERR_INVALID_ARG_VALUE,
<ide> ERR_INCOMPATIBLE_OPTION_PAIR,
<ide> },
<ide> } = require('internal/errors');
<del>const { validat... | 1 |
Ruby | Ruby | add utility method to quell output | af7bf47e3112a9d50a1cd915d29f36fc6d6463dd | <ide><path>Library/Homebrew/test/test_formula_install.rb
<ide> def initialize
<ide>
<ide> class ConfigureTests < Test::Unit::TestCase
<ide> def test_detect_failed_configure
<del> tmperr = $stderr
<del> tmpout = $stdout
<del> require 'stringio'
<del> $stderr = StringIO.new
<del> $stdout = StringIO.new
... | 3 |
Go | Go | increase timeout in waitclose to 10sec | a70beda1ecfb049a3f80ad5b159ba51d653fd067 | <ide><path>runtime/graphdriver/devmapper/deviceset.go
<ide> func (devices *DeviceSet) removeDeviceAndWait(devname string) error {
<ide>
<ide> // waitRemove blocks until either:
<ide> // a) the device registered at <device_set_prefix>-<hash> is removed,
<del>// or b) the 1 second timeout expires.
<add>// or b) the 10 s... | 1 |
Python | Python | add systemd support | 7968182ccf237dd085700a958681942768770e33 | <ide><path>glances/glances.py
<ide> def __init__(self):
<ide> """
<ide>
<ide> # Ignore the following FS name
<del> self.ignore_fsname = ('', 'none', 'gvfs-fuse-daemon', 'fusectl',
<del> 'cgroup')
<add> self.ignore_fsname = ('', 'cgroup', 'fusectl', 'gvfs-fuse-... | 1 |
Mixed | Ruby | create sqlite3 directory if not present | f036239447c79843983ee1c0d3dfe68484d63203 | <ide><path>activerecord/CHANGELOG.md
<add>* Create a directory for sqlite3 file if not present on the system.
<add>
<add> *Richard Schneeman*
<add>
<ide> * Removed redundant override of `xml` column definition for PG,
<ide> in order to use `xml` column type instead of `text`.
<ide>
<ide><path>activerecord/l... | 3 |
Ruby | Ruby | use memoized dup of url_helpers for reinclusion | 7bcca5b763425f34250bf28dc0980ff21de1183a | <ide><path>actionpack/lib/abstract_controller/railties/routes_helpers.rb
<ide> def self.with(routes, include_path_helpers = true)
<ide> define_method(:inherited) do |klass|
<ide> super(klass)
<ide>
<del> namespace = klass.module_parents.detect { |m| m.respond_to?(:railtie_routes_url_he... | 3 |
Javascript | Javascript | update _app.js to use a function component. | ba2fbc2b65394ba29bceba9d3c6494391bfb00ac | <ide><path>examples/with-styled-components/pages/_app.js
<del>import App from 'next/app'
<ide> import { ThemeProvider } from 'styled-components'
<ide>
<ide> const theme = {
<ide> const theme = {
<ide> },
<ide> }
<ide>
<del>export default class MyApp extends App {
<del> render() {
<del> const { Component, pagePr... | 1 |
Python | Python | correct an error in rmsprop optimizer | 32b15912a216a5517e751c810e3f172c3b8f6be2 | <ide><path>keras/optimizers/optimizer_experimental/rmsprop.py
<ide> def update_step(self, gradient, variable):
<ide> average_grad.assign(rho * average_grad)
<ide> average_grad.scatter_add(
<ide> tf.IndexedSlices(
<del> tf.square(gradient.values)... | 1 |
Text | Text | update documentation for #pluck method [ci skip] | 1e2650acbb1178da7d24bb9cdac31920c2f75dc9 | <ide><path>guides/source/active_record_querying.md
<ide> Client.pluck(:name)
<ide> # => ["David", "Jeremy", "Jose"]
<ide> ```
<ide>
<add>You are not limited to querying fields from a single table, you can query multiple tables as well.
<add>
<add>```
<add>Client.joins(:comments, :categories).pluck("clients.email, comm... | 1 |
Javascript | Javascript | replace object.assign with object spread | b2e7837288d79d8671fbe316bc58aabe46775ac9 | <ide><path>lib/Compilation.js
<ide> class Compilation {
<ide> optionsOrPreset = { preset: optionsOrPreset };
<ide> }
<ide> if (typeof optionsOrPreset === "object" && optionsOrPreset !== null) {
<del> const options = Object.assign({}, optionsOrPreset);
<add> const options = { ...optionsOrPreset };
<ide> if... | 41 |
Python | Python | fix bug in warnings t5 pipelines | 06dd597552a78c53ce52ec1acf5ff3ab3ece82ea | <ide><path>src/transformers/pipelines.py
<ide> def __call__(
<ide> elif self.framework == "tf":
<ide> input_length = tf.shape(inputs["input_ids"])[-1].numpy()
<ide>
<del> if input_length < self.model.config.min_length // 2:
<add> min_length = generate_kwargs.get("min_l... | 1 |
Python | Python | remove unused imports | 1b3b01e042920e13934608d36da93a4d02dd95e9 | <ide><path>rest_framework/request.py
<ide> from __future__ import unicode_literals
<ide>
<ide> import sys
<del>import warnings
<ide>
<ide> from django.conf import settings
<ide> from django.http import QueryDict
<ide><path>rest_framework/serializers.py
<ide> """
<ide> from __future__ import unicode_literals
<ide>
<d... | 3 |
Go | Go | fix some missing synchronization in libcontainerd | 647cec4324186faa3183bd6a7bc72a032a86c8c9 | <ide><path>libcontainerd/client_daemon.go
<ide> import (
<ide> const InitProcessName = "init"
<ide>
<ide> type container struct {
<del> sync.Mutex
<add> mu sync.Mutex
<ide>
<ide> bundleDir string
<ide> ctr containerd.Container
<ide> type container struct {
<ide> oomKilled bool
<ide> }
<ide>
<add>func (c *co... | 1 |
Python | Python | raise proper exception, not a string | aa3441ae45b348aa2e1b422d1c5a69b49e909a95 | <ide><path>tools/js2c.py
<ide> def ReadMacros(lines):
<ide> fun = eval("lambda " + ",".join(args) + ': ' + body)
<ide> macros[name] = PythonMacro(args, fun)
<ide> else:
<del> raise ("Illegal line: " + line)
<add> raise Exception("Illegal line: " + line)
<ide> return (cons... | 1 |
Python | Python | pass additional options in task.retry | 6c1faced5063b10c251be294809e94853dd44dc2 | <ide><path>celery/app/task.py
<ide> def retry(self, args=None, kwargs=None, exc=None, throw=True,
<ide> S = self.subtask_from_request(
<ide> request, args, kwargs,
<ide> countdown=countdown, eta=eta, retries=retries,
<add> **options
<ide> )
<ide>
<ide> if max_... | 1 |
Javascript | Javascript | add types to new hooks | 49f79cb702f1898c21a8f7cd9dd66a18773511a6 | <ide><path>lib/Compilation.js
<ide> class Compilation {
<ide> /** @type {SyncBailHook} */
<ide> shouldRecord: new SyncBailHook([]),
<ide>
<del> /** @type {SyncHook<Chunk>} */
<add> /** @type {SyncHook<Chunk, Set<string>>} */
<ide> additionalChunkRuntimeRequirements: new SyncHook([
<ide> "chunk",
<ide>... | 1 |
Ruby | Ruby | add test for slug to id with id is out of range | b74256be5bcd8703148bbf13713002dbad725703 | <ide><path>activerecord/test/cases/base_test.rb
<ide> def test_find_by_slug
<ide> assert_equal Topic.find("1-meowmeow"), Topic.find(1)
<ide> end
<ide>
<add> def test_out_of_range_slugs
<add> assert_equal [Topic.find(1)], Topic.where(id: ["1-meowmeow", "9223372036854775808-hello"])
<add> end
<add>
<ide> de... | 1 |
Ruby | Ruby | remove dead code | 3ff3e7443857aa15ec6a2c9db6810c6dbf91a915 | <ide><path>Library/Homebrew/superenv.rb
<ide> def superenv?
<ide> MacOS.sdk_path.nil?) and # because superenv will fail to find stuff
<ide> superbin and superbin.directory? and
<ide> not ARGV.include? "--env=std"
<del>rescue # blanket rescue because there are naked raises
<del> false
<ide> end
<ide>
<ide> # Not... | 1 |
Java | Java | refine use of substring operations | edfc6c0293fc45096876d9821670892aba2ea2ec | <ide><path>spring-aop/src/main/java/org/springframework/aop/aspectj/AspectJAdviceParameterNameDiscoverer.java
<ide> private PointcutBody getPointcutBody(String[] tokens, int startIndex) {
<ide> }
<ide>
<ide> if (tokens[currentIndex].endsWith(")")) {
<del> sb.append(tokens[currentIndex].substring(0, tokens[... | 14 |
Javascript | Javascript | eliminate caching of linesvnode | b23dcb7b9f3c606a349d6cc9f88a5988f83e001b | <ide><path>src/text-editor-component.js
<ide> class CustomGutterDecorationComponent {
<ide> class LinesTileComponent {
<ide> constructor (props) {
<ide> this.props = props
<del> this.linesVnode = null
<ide> etch.initialize(this)
<ide> }
<ide>
<ide> update (newProps) {
<ide> if (this.shouldUpdate(n... | 1 |
Javascript | Javascript | avoid dependency on shared state | 065f4c48ec66654a604af5408fb5efb6ddb461fa | <ide><path>spec/text-editor-spec.js
<ide> describe('TextEditor', () => {
<ide> await atom.packages.activatePackage('language-javascript')
<ide> })
<ide>
<del> it('generates unique ids for each editor', () => {
<del> // Deserialized editors are initialized with an id:
<del> new TextEditor({id: 0})
<del> ... | 1 |
Javascript | Javascript | make color.setscalar returns this. | 4ce415a6a8f2c5bcfc89434ada4e0529dd85fe69 | <ide><path>src/math/Color.js
<ide> Color.prototype = {
<ide> this.g = scalar;
<ide> this.b = scalar;
<ide>
<add> return this;
<add>
<ide> },
<ide>
<ide> setHex: function ( hex ) { | 1 |
Java | Java | improve performance of stringutils#cleanpath | 1c6dda3ca4dc28beee98a4337985f9e4a12a8157 | <ide><path>spring-core/src/main/java/org/springframework/util/StringUtils.java
<ide> /*
<del> * Copyright 2002-2019 the original author or authors.
<add> * Copyright 2002-2020 the original author or authors.
<ide> *
<ide> * Licensed under the Apache License, Version 2.0 (the "License");
<ide> * you may not use this ... | 2 |
Java | Java | fix issue with extracting matrix variables | d8469d118b41fd18b70a11f0c0dcd12b60a8f6c6 | <ide><path>spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java
<ide>
<ide> import org.apache.commons.logging.Log;
<ide> import org.apache.commons.logging.LogFactory;
<add>import org.springframework.util.Assert;
<ide> import org.springframework.util.StringUtils;
<ide>
<ide> /**
<ide> public String... | 3 |
Ruby | Ruby | recognize version_scheme in merge | 2f2304ea408640439be010c4b6c433083fd771be | <ide><path>Library/Homebrew/dev-cmd/bottle.rb
<ide> def merge
<ide> (\n^\ {3}[\S\ ]+$)* # options can be in multiple lines
<ide> )?|
<ide> (homepage|desc|sha1|sha256|version|mirror)\ ['"][\S\ ]+['"]| # specs with a stri... | 1 |
PHP | PHP | add tests for contentdisposition flag | 6ce4a3a1ec5994e2b60180875812f6953d0490bf | <ide><path>lib/Cake/Network/Email/CakeEmail.php
<ide> protected function _attachFiles($boundary = null) {
<ide> $msg[] = '--' . $boundary;
<ide> $msg[] = 'Content-Type: ' . $fileInfo['mimetype'];
<ide> $msg[] = 'Content-Transfer-Encoding: base64';
<del> if (!isset($fileInfo['contentDisposition']) || $fileInf... | 2 |
Text | Text | fix changelog typo [ci skip] | 135f9aad0993f2d095b350d8662a5ea9c75d79dd | <ide><path>CHANGELOG.md
<ide> ### 2.12.0 (March 14, 2017)
<ide>
<ide> - [#15000](https://github.com/emberjs/ember.js/pull/15000) / [#15002](https://github.com/emberjs/ember.js/pull/15002) / [#15006](https://github.com/emberjs/ember.js/pull/15006) / [#15008](https://github.com/emberjs/ember.js/pull/15008) / [#15009](ht... | 1 |
PHP | PHP | fix duplicate keys in paginatorcomponent tests | 608a903a06b9f9d00bc9a5324213a86e48a58c8c | <ide><path>tests/TestCase/Controller/Component/PaginatorComponentTest.php
<ide> public function checkLimitProvider()
<ide> ['limit' => 0, 'maxLimit' => 100],
<ide> 1,
<ide> ],
<del> 'limit = 0' => [
<add> 'limit = 0 v2' => [
<ide> ['limit... | 1 |
PHP | PHP | add breadcrumbshelper to doc block | 589e142ac2a2ace6f1e77566db439a119805def1 | <ide><path>src/View/View.php
<ide> * `plugins/SuperHot/Template/Posts/index.ctp`. If a theme template
<ide> * is not found for the current action the default app template file is used.
<ide> *
<add> * @property \Cake\View\Helper\BreadCrumbsHelper $BreadCrumbs
<ide> * @property \Cake\View\Helper\FlashHelper $Flash
<... | 1 |
Text | Text | use example from website | 271fa8fb75cf83f61b2bb4ba2ca0236602a15ef7 | <ide><path>README.md
<ide> webpack can do many optimizations to **reduce the output size**. It also cares a
<ide> # A small example what's possible
<ide>
<ide> ``` javascript
<add>// webpack is a module bundler
<add>// This means webpack takes modules with dependencies
<add>// and emit static assets representing tha... | 1 |
Python | Python | update other calls to backend.rnn | aada299b09e909d435743e5aa9a9d4197ad3620a | <ide><path>keras/layers/rnn/base_rnn.py
<ide> def step(inputs, states):
<ide> unroll=self.unroll,
<ide> input_length=row_lengths if row_lengths is not None else timesteps,
<ide> time_major=self.time_major,
<del> zero_output_for_mask=self.zero_output_for_mask)
<add> zero_output_for_... | 3 |
Ruby | Ruby | support separate downloads for intel and arm | 5f92d002443a4fce6aa3d6cae6863e43282d6bd9 | <ide><path>Library/Homebrew/dev-cmd/bump-cask-pr.rb
<ide> def bump_cask_pr
<ide> tmp_config = cask.config
<ide> tmp_url = tmp_cask.url.to_s
<ide>
<del> if new_hash.nil? && old_hash != :no_check
<del> resource_path = fetch_resource(cask, new_version, tmp_url)
<del> Utils::Tar.va... | 1 |
PHP | PHP | simulate exit code for closure scheduled tasks | 46686ae80466bcdf6d9fe1931aeb1408f1f1f72a | <ide><path>src/Illuminate/Console/Scheduling/CallbackEvent.php
<ide> use Illuminate\Contracts\Container\Container;
<ide> use InvalidArgumentException;
<ide> use LogicException;
<add>use Exception;
<ide>
<ide> class CallbackEvent extends Event
<ide> {
<ide> public function run(Container $container)
<ide> $r... | 2 |
PHP | PHP | remove unnecessary code | fae67da8ad12017ac592c774fb88419d489ba816 | <ide><path>src/Illuminate/Database/Eloquent/Relations/BelongsTo.php
<ide> protected function getEagerModelKeys(array $models)
<ide> }
<ide> }
<ide>
<del> // If there are no keys that were not null we will just return an array with null
<del> // so this query wont fail plus returns zer... | 2 |
Ruby | Ruby | simplify regex detecting comments in sql query | f63a347d134f5091d7c230d34dab85c7c5fc7021 | <ide><path>activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
<ide> class AbstractAdapter
<ide> include Savepoints
<ide>
<ide> SIMPLE_INT = /\A\d+\z/
<del> COMMENT_REGEX = %r{(?:--.*\n)*|/\*(?:[^*]|\*[^/])*\*/}m
<add> COMMENT_REGEX = %r{(?:--.*\n)|/\*(?:[^*]|\*[^/])*\*/}m
<ide... | 1 |
Python | Python | set version to v2.1.0a9.dev0 | 829c9091a4e254f831684a83c6a163fb6c18cd97 | <ide><path>spacy/about.py
<ide> # fmt: off
<ide>
<ide> __title__ = "spacy-nightly"
<del>__version__ = "2.1.0a8"
<add>__version__ = "2.1.0a9.dev0"
<ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"
<ide> __uri__ = "https://spacy.io"
<ide> __author__ = "Explosion AI" | 1 |
Mixed | Javascript | fix typos in comments and docs | 823295fee058f169523e84f94be13962a9513d3d | <ide><path>CHANGELOG.md
<ide> to make the fixes available to people that still need IE8 support._
<ide> - secure `link[href]` as a `RESOURCE_URL`s in `$sce`
<ide> ([f35f334b](https://github.com/angular/angular.js/commit/f35f334bd3197585bdf034f4b6d9ffa3122dac62),
<ide> [#14687](https://github.com/angular/angular.... | 13 |
Javascript | Javascript | remove this aliases | b594b3bc34e7a8f1b8c016744488e2230210da1e | <ide><path>lib/dgram.js
<ide> function replaceHandle(self, newHandle) {
<ide> }
<ide>
<ide> Socket.prototype.bind = function(port_ /*, address, callback*/) {
<del> var self = this;
<ide> let port = port_;
<ide>
<del> self._healthCheck();
<add> this._healthCheck();
<ide>
<ide> if (this._bindState !== BIND_STAT... | 1 |
Javascript | Javascript | remove doreload arg used only for testing | 36a547b852a7d254535e2d203cffe10f2e5c5617 | <ide><path>src/Angular.js
<ide> function bootstrap(element, modules, config) {
<ide> * The page should reload and the debug information should now be available.
<ide> *
<ide> */
<del>function reloadWithDebugInfo(doReload) {
<add>function reloadWithDebugInfo() {
<ide> window.name = 'NG_ENABLE_DEBUG_INFO!' + window.... | 2 |
Text | Text | clarify `redirects` on client-side navigation | 46bdef81373d286408047241f8f8ef744b0a5a2f | <ide><path>docs/api-reference/next.config.js/redirects.md
<ide> module.exports = {
<ide>
<ide> > **Why does Next.js use 307 and 308?** Traditionally a 302 was used for a temporary redirect, and a 301 for a permanent redirect, but many browsers changed the request method of the redirect to `GET`, regardless of the orig... | 1 |
PHP | PHP | add currentlocale method | 318c226907707e6d82941e8449ab9527b789cd90 | <ide><path>src/Illuminate/Foundation/Application.php
<ide> public function getLocale()
<ide> return $this['config']->get('app.locale');
<ide> }
<ide>
<add> /**
<add> * Get the current application locale.
<add> *
<add> * @return string
<add> */
<add> public function currentLocale()
<ad... | 2 |
Go | Go | apply volumes-from before creating volumes | 3bd73a96333e011738136f6a9eda23642cc204ab | <ide><path>container.go
<ide> func (container *Container) Start(hostConfig *HostConfig) error {
<ide> binds[path.Clean(dst)] = bindMap
<ide> }
<ide>
<del> // FIXME: evaluate volumes-from before individual volumes, so that the latter can override the former.
<del> // Create the requested volumes volumes
<ide> if co... | 2 |
Javascript | Javascript | use arrow function | 156a38fef1122cae39f4852b51bcdc8a65b45893 | <ide><path>test/parallel/test-writeuint.js
<ide> function testUint(clazz) {
<ide> type: RangeError,
<ide> message: /^The value "[^"]*" is invalid for option "value"$/
<ide> }, 2);
<del> assert.throws(function() {
<add> assert.throws(() => {
<ide> data.writeUIntBE(val, 0, i);
<ide> }, err... | 1 |
Ruby | Ruby | add a couple of missing requires in ar | 2d80591f11b19bfc06fb712993648212ba5926df | <ide><path>activerecord/lib/active_record/scoping.rb
<ide> # frozen_string_literal: true
<ide>
<ide> require "active_support/core_ext/module/delegation"
<add>require "active_record/scoping/default"
<add>require "active_record/scoping/named"
<ide>
<ide> module ActiveRecord
<ide> module Scoping | 1 |
Text | Text | remove cli doc entry related to api-only function | 4f0429621c7e6ccaac8bc9a62a703bf68f2d4cd4 | <ide><path>docs/sources/reference/commandline/cli.md
<ide> container at any point.
<ide> This is useful when you want to set up a container configuration ahead
<ide> of time so that it is ready to start when you need it.
<ide>
<del>Note that volumes set by `create` may be over-ridden by options set with
<del>`start`.
... | 1 |
Javascript | Javascript | add workaround for node.js memory leak | cdf73dacf525bffd9e6396f86266026564ec1a02 | <ide><path>lib/hmr/lazyCompilationBackend.js
<ide> module.exports = (compiler, client, callback) => {
<ide> const activeModules = new Map();
<ide> const prefix = "/lazy-compilation-using-";
<ide>
<del> const server = http.createServer((req, res) => {
<add> const requestListener = (req, res) => {
<ide> const keys =... | 1 |
Javascript | Javascript | handle elements with no childnodes property | bec614fd90c48c3921a4b659912008574e553b40 | <ide><path>src/ng/compile.js
<ide> function $CompileProvider($provide) {
<ide> ? applyDirectivesToNode(directives, nodeList[i], attrs, transcludeFn, $rootElement)
<ide> : null;
<ide>
<del> childLinkFn = (nodeLinkFn && nodeLinkFn.terminal || !nodeList[i].childNodes.length)
<add> ch... | 2 |
PHP | PHP | add an accessor for the input registry | 178c286bcb06c5695576af294b48cb63948883f0 | <ide><path>src/View/Helper/FormHelper.php
<ide> public function __construct(View $View, $settings = array()) {
<ide> parent::__construct($View, $settings);
<ide>
<ide> $this->initStringTemplates($this->_defaultTemplates);
<del> if (empty($settings['registry'])) {
<del> $settings['registry'] = new InputRegistry(... | 1 |
Java | Java | simplify hint registration for spring aop proxies | 5178e9c28eda20859829937c1bc3d38b8b314726 | <ide><path>spring-aop/src/main/java/org/springframework/aop/framework/AopProxyUtils.java
<ide> import java.lang.reflect.Proxy;
<ide> import java.util.ArrayList;
<ide> import java.util.Arrays;
<add>import java.util.Collections;
<ide> import java.util.List;
<ide>
<ide> import org.springframework.aop.SpringProxy;
<ide> i... | 5 |
Python | Python | fix small doc error | 5fcd832b5c5025b164c99f0bd46cb94d707b93d3 | <ide><path>keras/engine/training.py
<ide> def predict(self, x,
<ide>
<ide> # Arguments
<ide> x: The input data, as a Numpy array
<del> (or list of Numpy arrays if the model has multiple outputs).
<add> (or list of Numpy arrays if the model has multiple inputs).
<ide> ... | 1 |
Python | Python | avoid use of numpy.tensordot | c9987cf131a5cc8d41437136dad1c765f20e5862 | <ide><path>spacy/_ml.py
<ide> def __init__(self, nO=None, nI=None, nF=None, nP=None, **kwargs):
<ide> self.nF = nF
<ide>
<ide> def begin_update(self, X, drop=0.):
<del> tensordot = self.ops.xp.tensordot
<del> ascontiguous = self.ops.xp.ascontiguousarray
<del>
<del> Yf = tensordot(X, se... | 1 |
Python | Python | add wait_for_completion to glue job run | e0af0b976c0cc43d2b1aa204d047fe755e4c5be7 | <ide><path>airflow/providers/amazon/aws/operators/glue.py
<ide> class AwsGlueJobOperator(BaseOperator):
<ide> :type create_job_kwargs: Optional[dict]
<ide> :param run_job_kwargs: Extra arguments for Glue Job Run
<ide> :type run_job_kwargs: Optional[dict]
<add> :param wait_for_completion: Whether or not w... | 2 |
Javascript | Javascript | fix deprecation warning due to util.print | 0179e940cc3cbd81e6abaf7b12677b72070f94c5 | <ide><path>test/parallel/test-child-process-double-pipe.js
<ide> const common = require('../common');
<ide> const assert = require('assert');
<ide> const os = require('os');
<del>const util = require('util');
<ide> const spawn = require('child_process').spawn;
<ide>
<ide> // We're trying to reproduce:
<ide> let result... | 1 |
Text | Text | fix nits regarding stream utilities | daa512b5765c898893535d838472eca20d9d50c4 | <ide><path>doc/api/stream.md
<ide> There are four fundamental stream types within Node.js:
<ide> * [`Transform`][] - `Duplex` streams that can modify or transform the data as it
<ide> is written and read (for example, [`zlib.createDeflate()`][]).
<ide>
<del>Additionally, this module includes the utility functions [p... | 1 |
Text | Text | translate 02.3 to korean | fe8cd0c44272497f6f827ed453bd35b80155347a | <ide><path>docs/docs/02.3-jsx-gotchas.ko-KR.md
<add>---
<add>id: jsx-gotchas-ko-KR
<add>title: JSX Gotchas
<add>permalink: jsx-gotchas-ko-KR.html
<add>prev: jsx-spread-ko-KR.html
<add>next: interactivity-and-dynamic-uis-ko-KR.html
<add>---
<add>
<add>JSX는 HTML처럼 보이지만 하다 보면 부딪히게 될 몇 가지 중요한 차이점이 있습니다.
<add>
<add>> 주의:
<a... | 1 |
Java | Java | enable javascript systrace markers via js module | 619da521f318ad10f9d2a8df0dd3a5ed9be5b9b2 | <ide><path>ReactAndroid/src/main/java/com/facebook/react/CoreModulesPackage.java
<ide> import java.util.Arrays;
<ide> import java.util.List;
<ide>
<add>import com.facebook.react.bridge.BridgeProfiling;
<ide> import com.facebook.react.bridge.JavaScriptModule;
<ide> import com.facebook.react.bridge.NativeModule;
<ide> i... | 3 |
Text | Text | fix changelog [ci skip] | 040e22b10413481ca017bd8ada7691231ef8d5bf | <ide><path>actionview/CHANGELOG.md
<del>## Rails 7.0.0.alpha2 (September 15, 2021) ##
<del>
<ide> * Support svg unpaired tags for `tag` helper.
<ide>
<ide> tag.svg { tag.use('href' => "#cool-icon") }
<ide> *Oleksii Vasyliev*
<ide>
<ide>
<add>## Rails 7.0.0.alpha2 (September 15, 2021) ##
<add>
<add>* ... | 1 |
Ruby | Ruby | convert `brew linkapps` test to spec | 5bf70805d8c134174dfb55791c25066239d9bc0e | <ide><path>Library/Homebrew/test/cmd/linkapps_spec.rb
<add>describe "brew linkapps", :integration_test do
<add> let(:home_dir) { @home_dir = Pathname.new(Dir.mktmpdir) }
<add> let(:apps_dir) { home_dir/"Applications" }
<add>
<add> after(:each) do
<add> home_dir.rmtree unless @home_dir.nil?
<add> end
<add>
<add> ... | 2 |
Javascript | Javascript | remove flakey test for selected attribute | 87bd130289c6ed9bfc355c1f8587ae6ce00a4776 | <ide><path>test/unit/attributes.js
<ide> QUnit.test( "attr('tabindex', value)", function( assert ) {
<ide> } );
<ide>
<ide> QUnit.test( "removeAttr(String)", function( assert ) {
<del> assert.expect( 13 );
<add> assert.expect( 12 );
<ide> var $first;
<ide>
<ide> assert.equal( jQuery( "#mark" ).removeAttr( "class" )... | 1 |
Java | Java | paramaterize websocket tests by client and server | 1b8cdb89241290af2999dd073cf463cd30271537 | <ide><path>spring-web-reactive/src/test/java/org/springframework/web/reactive/socket/server/AbstractWebSocketIntegrationTests.java
<ide> import org.junit.runners.Parameterized;
<ide> import org.junit.runners.Parameterized.Parameter;
<ide> import org.junit.runners.Parameterized.Parameters;
<add>import reactor.core.publi... | 2 |
Mixed | Javascript | enable autodestroy by default | 4bec6d13f9e9068fba778d0c806a2ca1335c8180 | <ide><path>doc/api/stream.md
<ide> added: v0.9.4
<ide> The `'error'` event is emitted if an error occurred while writing or piping
<ide> data. The listener callback is passed a single `Error` argument when called.
<ide>
<del>The stream is not closed when the `'error'` event is emitted unless the
<del>[`autoDestroy`][w... | 15 |
Ruby | Ruby | move the yaml hook closer to `init_with` | b71732c84a4bb5f8f7cbf65c5193db97c7e31eca | <ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb
<ide> require 'set'
<ide> require 'yaml'
<ide>
<del># Wire up YAML format compatibility with Rails 4.2. Makes the YAML parser call
<del># `init_with` when it encounters `!ruby/hash-with-ivars:ActionController::Parameters`,
<del># instead of trying ... | 1 |
Ruby | Ruby | register autload for deduplicable | d6895fb8b4cb83d85dfcb690e87764044e02ea65 | <ide><path>activerecord/lib/active_record/connection_adapters.rb
<ide> module ConnectionAdapters
<ide> autoload :PoolManager
<ide> autoload :LegacyPoolManager
<ide> autoload :SchemaCache
<add> autoload :Deduplicable
<ide>
<ide> autoload_at "active_record/connection_adapters/abstract/schema_definitio... | 2 |
Javascript | Javascript | add note about blackboxing | bf0af6dbb16d9c405338d48bc6f194626c99c4f3 | <ide><path>src/ng/log.js
<ide> *
<ide> * The main purpose of this service is to simplify debugging and troubleshooting.
<ide> *
<add> * To reveal the location of the calls to `$log` in the JavaScript console,
<add> * you can "blackbox" the AngularJS source in your browser:
<add> *
<add> * [Mozilla description of bla... | 1 |
Javascript | Javascript | fix typo in animationclip | ae1573e26cf78e41e9eef5d4afd9111dba20229b | <ide><path>src/animation/AnimationClip.js
<ide> Object.assign( AnimationClip, {
<ide> var times = [];
<ide> var values = [];
<ide>
<del> for ( var m = 0;
<del> m !== animationKeys[k].morphTargets.length; ++ m ) {
<add> for ( var m = 0; m !== animationKeys[k].morphTargets.length; ++ m ) {
<ide> ... | 1 |
Javascript | Javascript | remove unused variables | 28f6fcb763266ecd476274f430cce0ef625f8b16 | <ide><path>src/manipulation.js
<ide> var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
<ide> rtagName = /<([\w:]+)/,
<del> rtbody = /<tbody/i,
<ide> rhtml = /<|&#?\w+;/,
<ide> rnoInnerhtml = /<(?:script|style|link)/i,
<ide> manipulation_rcheckableType = /^(?:checkbox|radio)$... | 1 |
Python | Python | add percentile function | 44b42db55290aedbf3e30ef2de81d0bccc547a04 | <ide><path>numpy/lib/function_base.py
<ide> __docformat__ = "restructuredtext en"
<ide> __all__ = ['select', 'piecewise', 'trim_zeros',
<del> 'copy', 'iterable',
<add> 'copy', 'iterable', 'percentile',
<ide> 'diff', 'gradient', 'angle', 'unwrap', 'sort_complex', 'disp',
<ide> '... | 1 |
Javascript | Javascript | fix net keepalive and nodelay | 8e19dab677e64ec5ba40ab8523d23d02c92a24a2 | <ide><path>lib/net.js
<ide> Socket.prototype.setKeepAlive = function(enable, initialDelayMsecs) {
<ide> return this;
<ide> }
<ide>
<del> if (this._handle.setKeepAlive && enable !== this[kSetKeepAlive]) {
<add> if (!this._handle.setKeepAlive) {
<add> return this;
<add> }
<add>
<add> if (enable !== this[kSe... | 3 |
Text | Text | fix items orderting in nativecomponentsandroid.md | 0b9c704544330b34477ae9a07a32eda183678ce8 | <ide><path>docs/NativeComponentsAndroid.md
<ide> Setter declaration requirements for methods annotated with `@ReactPropGroup` are
<ide> }
<ide> ```
<ide>
<del>## 5. Register the `ViewManager`
<add>## 4. Register the `ViewManager`
<ide>
<ide> The final Java step is to register the ViewManager to the application, thi... | 1 |
Text | Text | update chinese translation of fornt-end-libraries | 797cc3024e286c4d87a3ad920562de2066e7c8de | <ide><path>curriculum/challenges/chinese/03-front-end-libraries/bootstrap/use-comments-to-clarify-code.md
<ide> forumTopicId: 18347
<ide>
<ide> 我们必须确保让每个人都知道,他们不应该直接修改此页面上这些代码。
<ide>
<del>记住,你可以在 `<!--` 为开始,`-->` 为结束的地方进行评论注释(像这样,`<!-- 我是一段注释 -->`)。
<add>记住,你可以在 `<!--` 为开始,`-->` 为结束的地方进行评论注释。
<ide>
<del>请你在你的 HTML 顶... | 16 |
Text | Text | update man pages to reflect prior change | 75d3ca8e6f89aa67dbd5b891295c4bf6d05b6beb | <ide><path>docs/Manpage.md
<ide> With `--verbose` or `-v`, many commands print extra debugging information. Note
<ide>
<ide> If `--cc=``compiler` is passed, attempt to compile using `compiler`.
<ide> `compiler` should be the name of the compiler's executable, for instance
<del> `gcc-8` for gcc 8, `gcc-4.2` ... | 1 |
Text | Text | update deployment documentation. | 748c8e8002987a68396858f4b5ca3eda9bd6d0d2 | <ide><path>docs/deployment.md
<ide> If you need to use different Environment Variables across multiple environments,
<ide>
<ide> If you’d like to do a static HTML export of your Next.js app, follow the directions on our [Static HTML Export documentation](/docs/advanced-features/static-html-export.md).
<ide>
<add>## O... | 1 |
Javascript | Javascript | allow creation of gcm ciphers with createcipher | ce56dccb99db128c8973642dfd0b47958c30010e | <ide><path>lib/crypto.js
<ide> Cipher.prototype.setAutoPadding = function(ap) {
<ide> return this;
<ide> };
<ide>
<add>Cipher.prototype.getAuthTag = function() {
<add> return this._handle.getAuthTag();
<add>};
<add>
<add>
<add>Cipher.prototype.setAuthTag = function(tagbuf) {
<add> this._handle.setAuthTag(tagbuf);
... | 2 |
Javascript | Javascript | move common schema functions to util | b50d4cf7c370dc0f9fa2c39ea0e73e28ca8918ac | <ide><path>lib/WebpackOptionsValidationError.js
<ide> const WebpackError = require("./WebpackError");
<ide> const webpackOptionsSchema = require("../schemas/webpackOptionsSchema.json");
<ide>
<del>const getSchemaPart = (path, parents, additionalPath) => {
<del> parents = parents || 0;
<del> path = path.split("/");
<de... | 5 |
Go | Go | implement docker save with standalone client lib | 373f55eecd39625f9f2751d8f940e83a056b6261 | <ide><path>api/client/lib/image_save.go
<add>package lib
<add>
<add>import (
<add> "io"
<add> "net/url"
<add>)
<add>
<add>// ImageSave retrieves one or more images from the docker host as a io.ReadCloser.
<add>// It's up to the caller to store the images and close the stream.
<add>func (cli *Client) ImageSave(imageIDs ... | 2 |
Javascript | Javascript | remove unnecessary bind | fea1f1cb9a766e93027374ac0b934ec5448639b1 | <ide><path>lib/_http_client.js
<ide> ClientRequest.prototype._implicitHeader = function _implicitHeader() {
<ide>
<ide> ClientRequest.prototype.abort = function abort() {
<ide> if (!this.aborted) {
<del> process.nextTick(emitAbortNT.bind(this));
<add> process.nextTick(emitAbortNT, this);
<ide> }
<ide> this... | 1 |
Ruby | Ruby | remove extra newline from applicationjob template | 655273cad1e623025581dfa3f84e9b12c3edc182 | <ide><path>railties/lib/rails/generators/rails/app/templates/app/jobs/application_job.rb
<ide> class ApplicationJob < ActiveJob::Base
<del>
<ide> end | 1 |
PHP | PHP | increase range for comparing now | 7f64c34c654676cd24f4f0397b0a0384a906dfe3 | <ide><path>tests/TestCase/Database/QueryTest.php
<ide> function ($q) {
<ide> $this->assertWithinRange(
<ide> date('U'),
<ide> (new DateTime($result->fetchAll('assoc')[0]['d']))->format('U'),
<del> 5
<add> 10
<ide> );
<ide>
<ide> $query = new Query($... | 1 |
PHP | PHP | simplify router code | dc49a4aaebb6b9e079693c4a8a3916ae61eaed72 | <ide><path>system/router.php
<ide> private static function translate_wildcards($key)
<ide> // Now, to properly close the regular expression, we need to append a ")?" for each optional segment in the route.
<ide> if ($replacements > 0)
<ide> {
<del> $key .= implode('', array_fill(0, $replacements, ')?'));
<add> ... | 1 |
Javascript | Javascript | show default `activeopacity` value in docs | 5e5cbda682bd4874e2cc79b59972d8855357125e | <ide><path>Libraries/Components/Touchable/TouchableOpacity.js
<ide> var TouchableOpacity = React.createClass({
<ide> ...TouchableWithoutFeedback.propTypes,
<ide> /**
<ide> * Determines what the opacity of the wrapped view should be when touch is
<del> * active.
<add> * active. Defaults to 0.2.
<ide... | 1 |
Javascript | Javascript | add warnings to react module | c04d02e5e8de18436ac95037ab856ac5ba7d29b9 | <ide><path>packages/react/react.js
<del>/* eslint-disable comma-dangle */
<ide> 'use strict';
<ide>
<del>var React = require('./lib/React');
<del>
<del>var assign = require('./lib/Object.assign');
<del>var deprecated = require('./lib/deprecated');
<del>
<del>// We want to warn once when any of these methods are used.
... | 3 |
PHP | PHP | add hasmanythrough tests | 46ec7a4a370a190baa870ccd21a9f6e17d9131a8 | <ide><path>tests/Database/DatabaseEloquentHasManyThroughTest.php
<add><?php
<add>
<add>use Mockery as m;
<add>use Illuminate\Database\Eloquent\Collection;
<add>use Illuminate\Database\Eloquent\Relations\HasManyThrough;
<add>
<add>class DatabaseEloquentHasManyTest extends PHPUnit_Framework_TestCase {
<add>
<add> public ... | 1 |
Javascript | Javascript | fix warning in flatlistexample | 7104c1f3ce5b751bf1af71aceba5c6d410a964f6 | <ide><path>RNTester/js/components/RNTesterExampleContainer.js
<ide> const RNTesterBlock = require('./RNTesterBlock');
<ide> const RNTesterExampleFilter = require('./RNTesterExampleFilter');
<ide> const RNTesterPage = require('./RNTesterPage');
<ide>
<add>const invariant = require('invariant');
<add>
<ide> class RNTest... | 3 |
PHP | PHP | add options to sort (and order) routes | 8ebfc02b24ec8b59cd12f879e7d28d0aadfbbe91 | <ide><path>src/Illuminate/Foundation/Console/RouteListCommand.php
<ide> protected function getRoutes()
<ide> $results[] = $this->getRouteInformation($route);
<ide> }
<ide>
<add> if ($sort = $this->option('sort')) {
<add> $results = array_sort($results, function ($value) use ($sort... | 1 |
Python | Python | raise error on complex input to i0 | a2b9c2d5b6637b040917c0a2ef393dae83f09ee3 | <ide><path>numpy/lib/function_base.py
<ide> def i0(x):
<ide> """
<ide> Modified Bessel function of the first kind, order 0.
<ide>
<del> Usually denoted :math:`I_0`. This function does broadcast, but will *not*
<del> "up-cast" int dtype arguments unless accompanied by at least one float or
<del> compl... | 2 |
Ruby | Ruby | fix unsubscribe callbacks | 568599dd206301b8fde9b75f4913de4caed65967 | <ide><path>lib/action_cable/channel/base.rb
<ide> def subscribe
<ide> end
<ide>
<ide> def unsubscribe
<del> self.class.on_unsubscribe.each do |callback|
<add> self.class.on_unsubscribe_callbacks.each do |callback|
<ide> EM.next_tick { send(callback) }
<ide> end
<ide> e... | 1 |
Javascript | Javascript | treat nodes with empty children arrays as leaves | d024c3f82c620681187ab15ed23e3cba28e54e11 | <ide><path>d3.layout.js
<ide> d3.layout.hierarchy = function() {
<ide> // Also converts the data representation into a standard hierarchy structure.
<ide> function recurse(data, depth, nodes) {
<ide> var childs = children.call(hierarchy, data, depth),
<add> n,
<ide> node = d3_layout_hierarchyInli... | 4 |
Python | Python | simplify underscore tests | abdb853ebf74ef241340216852cd779c23c2b422 | <ide><path>spacy/tests/test_underscore.py
<ide> from mock import Mock
<ide>
<ide> from ..vocab import Vocab
<del>from ..tokens.doc import Doc
<add>from ..tokens import Doc, Span, Token
<ide> from ..tokens.underscore import Underscore
<ide>
<ide>
<ide> def test_token_underscore_method():
<ide> assert token._.hell... | 1 |
Mixed | Python | update cifar input following data change | 6515a419aad7ecce38cb00656ebe7517997d0a0a | <ide><path>resnet/README.md
<ide> curl -o cifar-100-binary.tar.gz https://www.cs.toronto.edu/~kriz/cifar-100-binar
<ide> ```shell
<ide> # cd to the your workspace.
<ide> # It contains an empty WORKSPACE file, resnet codes and cifar10 dataset.
<add># Note: User can split 5k from train set for eval set.
<ide> ls -R
<ide>... | 3 |
Javascript | Javascript | remove internal files in `blueprints-js` folder | 2a06e7dc1895b78759522dda062d1897b016172d | <ide><path>blueprints-js/-addon-import.js
<del>'use strict';
<del>
<del>const stringUtil = require('ember-cli-string-utils');
<del>const path = require('path');
<del>const inflector = require('inflection');
<del>
<del>module.exports = {
<del> description: 'Generates an import wrapper.',
<del>
<del> fileMapTokens: fun... | 2 |
Text | Text | update version in readme code | 6beb0eb29930e4b42d84c1663b4434fba525ebb1 | <ide><path>README.md
<ide> Thanks to the awesome folks over at [Fastly](http://www.fastly.com/), there's a
<ide> `<head>`:
<ide>
<ide> ```html
<del><link href="http://vjs.zencdn.net/4.12/video-js.css" rel="stylesheet">
<del><script src="http://vjs.zencdn.net/4.12/video.js"></script>
<add><link href="http://vjs.zencdn.... | 1 |
Java | Java | fix race condition in writeresultpublisher | c35b3e5c822d9ffc57893393603866468ce24c80 | <ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/WriteResultPublisher.java
<ide> void subscribe(WriteResultPublisher publisher, Subscriber<? super Void> subscrib
<ide> @Override
<ide> void publishComplete(WriteResultPublisher publisher) {
<ide> publisher.completedBeforeSubscribed =... | 1 |
Text | Text | simplify section on adequate record [ci skip] | 56f2b70db1210f63e972a8755551cc6eb95dc497 | <ide><path>guides/source/4_2_release_notes.md
<ide> then deserialized again at run time.
<ide>
<ide> ### Adequate Record
<ide>
<del>Adequate Record is a set of refactorings that make Active Record `find` and
<del>`find_by` methods and some association queries up to 2x faster.
<add>Adequate Record is a set of performa... | 1 |
PHP | PHP | remove unneeded use calls | a17aabea13b23119ac843bf32898cc385ac8f06b | <ide><path>src/View/StringTemplate.php
<ide>
<ide> use Cake\Configure\Engine\PhpConfig;
<ide> use Cake\Core\InstanceConfigTrait;
<del>use Cake\Core\Plugin;
<del>use Cake\Error;
<ide>
<ide> /**
<ide> * Provides an interface for registering and inserting | 1 |
Ruby | Ruby | use standardloader when we know the path already | caaa32325cf7bcf03d07f7525da082f53217cceb | <ide><path>Library/Homebrew/formulary.rb
<ide> def self.loader_for(ref)
<ide>
<ide> possible_cached_formula = Pathname.new("#{HOMEBREW_CACHE_FORMULA}/#{ref}.rb")
<ide> if possible_cached_formula.file?
<del> return FromPathLoader.new(possible_cached_formula.to_s)
<add> return StandardLoader.new(ref, p... | 1 |
Python | Python | fix error message and format with python/black | 2fb3beeaf1215a1be4a7bc97097ef6a33fd65aeb | <ide><path>dynamic_programming/climbing_stairs.py
<add>#!/usr/bin/env python3
<add>
<add>
<ide> def climb_stairs(n: int) -> int:
<del> """
<del> LeetCdoe No.70: Climbing Stairs
<del> Distinct ways to climb a n step staircase where
<del> each time you can either climb 1 or 2 steps.
<del>
<del> Args:
<del> n: ... | 1 |
Javascript | Javascript | add a feature flag to disable legacy context | 0c1ec049f8832d1c27f876844666fda393036800 | <ide><path>packages/react-dom/src/__tests__/ReactDOMServerIntegrationLegacyContextDisabled-test.internal.js
<add>/**
<add> * Copyright (c) Facebook, Inc. and its affiliates.
<add> *
<add> * This source code is licensed under the MIT license found in the
<add> * LICENSE file in the root directory of this source tree.
<a... | 14 |
Text | Text | expand propositional logic stub | fb32d44c54dd1f47dba3789f73b8759b8bf9b1c6 | <ide><path>guide/english/mathematics/propositional-logic/index.md
<ide> title: Propositional Logic
<ide> ---
<ide> ## Propositional Logic Intro
<ide>
<del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/mathematics/propositional-logic/index.md' target='_blank' rel='nofollow'>Help ... | 1 |
Javascript | Javascript | use global.eventtarget instead of internals | 36fbbe0b86131fa2dcca558872b02335586e0089 | <ide><path>test/parallel/test-abortcontroller.js
<del>// Flags: --no-warnings --expose-internals
<add>// Flags: --no-warnings
<ide> 'use strict';
<ide>
<ide> const common = require('../common');
<ide>
<ide> const { ok, strictEqual } = require('assert');
<del>const { Event } = require('internal/event_target');
<ide>
... | 5 |
Javascript | Javascript | change renderfinish event to complete | 26a2dcb516d8687b2e0b4c1056be95e0b2e517c2 | <ide><path>examples/js/renderers/RaytracingRenderer.js
<ide> THREE.RaytracingRenderer = function ( parameters ) {
<ide>
<ide> if ( blockY >= canvasHeight ) {
<ide>
<del> dispatch( { type: "renderfinish" } );
<add> dispatch( { type: "complete" } );
<ide>
<ide> return;
<ide> | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.