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
add nobridge prefix to venice metro logs
8a677face45735c80e76c78b3f1633e02491c28f
<ide><path>Libraries/Utilities/HMRClient.js <ide> const HMRClient: HMRClientNativeInterface = { <ide> JSON.stringify({ <ide> type: 'log', <ide> level, <add> mode: global.RN$Bridgeless ? 'NOBRIDGE' : 'BRIDGE', <ide> data: data.map(item => <ide> typeof item === '...
1
Text
Text
fix some links
4d1e0862ced8134b1b4e57480bbd46ca14e61d0f
<ide><path>doc/api/dns.md <ide> added: v0.1.27 <ide> - `rrtype` {string} Resource record type. Default: `'A'`. <ide> - `callback` {Function} <ide> - `err` {Error} <del> - `records` {string[] | Object[] | string[][] | Object} <add> - `records` {string[] | Object[] | Object} <ide> <ide> Uses the DNS protocol to reso...
4
Python
Python
fix issue with tf clip
590a5a5382dc47af188b0c7f34bed3b4ef6d394e
<ide><path>keras/backend/tensorflow_backend.py <ide> <ide> import numpy as np <ide> import os <del>import copy <ide> import warnings <ide> from .common import floatx, _EPSILON, image_dim_ordering, reset_uids <ide> py_all = all <ide> def clip(x, min_value, max_value): <ide> """ <ide> if max_value is not None an...
1
PHP
PHP
expand doc blocks more
ad2f11ee6392c9b3fba534900ae968ee991ba725
<ide><path>src/Controller/Component/CookieComponent.php <ide> public function __construct(ComponentRegistry $collection, array $config = array <ide> /** <ide> * Set the configuration for a specific top level key. <ide> * <add> * ### Examples: <add> * <add> * Set a single config option for a key: <add> * <add> * {{{ <...
1
Ruby
Ruby
remove redundant parenthesis
e6f0a5372eaebdf2d71c060ed5ecaa2e9a95777c
<ide><path>actionview/test/template/atom_feed_helper_test.rb <ide> class ScrollsController < ActionController::Base <ide> FEEDS["defaults"] = <<-EOT <ide> atom_feed(:schema_date => '2008') do |feed| <ide> feed.title("My great blog!") <del> feed.updated((@scrolls.first.created_at)) <add> ...
1
Ruby
Ruby
improve test case to test enum correctly
d510295b31dd6311f88e2eb2c76b12b1b0ab960a
<ide><path>activerecord/test/cases/associations/has_one_associations_test.rb <ide> class SpecialBook < ActiveRecord::Base <ide> self.table_name = "books" <ide> belongs_to :author, class_name: "SpecialAuthor" <ide> has_one :subscription, class_name: "SpecialSupscription", foreign_key: "subscriber_id" <add> <...
1
PHP
PHP
update collection.php
01fa44a345c8df3624a633a2cc2738083f275241
<ide><path>src/Illuminate/Collections/Collection.php <ide> public function except($keys) <ide> /** <ide> * Run a filter over each of the items. <ide> * <del> * @param (callable(TValue): bool)|null $callback <add> * @param (callable(TValue, TKey): bool)|null $callback <ide> * @return static ...
1
Ruby
Ruby
improve error message on cask doctor
f9a67019d62c26d60081479934eb1f71a3d8a905
<ide><path>Library/Homebrew/cask/cmd/doctor.rb <ide> def check_staging_location <ide> <ide> if path.exist? && !path.writable? <ide> add_error "The staging path #{user_tilde(path.to_s)} is not writable by the current user." <add> add_error "To fix, run \'sudo chown -R ${USER}:staff #{user_til...
1
Text
Text
update v2 docs [ci skip]
10742d3219385d52f02e887944cc506599d9d6de
<ide><path>website/docs/usage/spacy-101.md <ide> of a model, see the usage guides on <ide> <ide> </Infobox> <ide> <del><Infobox title="📖 Entity Linking"> <del> <del>To learn more about entity linking in spaCy, and how to **train and update** the <del>entity linker predictions, see the usage guides on <del>[entity li...
2
Javascript
Javascript
change variable name
f7114d0c1c16ac10c6a9df9c1d369ead828bebbb
<ide><path>src/ng/q.js <ide> function qFactory(nextTick, exceptionHandler) { <ide> } <ide> <ide> function processQueue(state) { <del> var fn, promise, pending; <add> var fn, deferred, pending; <ide> <ide> pending = state.pending; <ide> state.processScheduled = false; <ide> state.pending = undefi...
1
Javascript
Javascript
add suffix _timeout consistently in scheduler
2325375f4faaa77db6671e914da5220a879a1da8
<ide><path>packages/scheduler/src/Scheduler.js <ide> var maxSigned31BitInt = 1073741823; <ide> // Times out immediately <ide> var IMMEDIATE_PRIORITY_TIMEOUT = -1; <ide> // Eventually times out <del>var USER_BLOCKING_PRIORITY = 250; <add>var USER_BLOCKING_PRIORITY_TIMEOUT = 250; <ide> var NORMAL_PRIORITY_TIMEOUT = 5000;...
1
Javascript
Javascript
improve http test reliability
fcd82e760106ed7bd7aea634b65fe9faac7c8e7c
<ide><path>test/parallel/test-http-client-immediate-error.js <ide> <ide> const common = require('../common'); <ide> const assert = require('assert'); <add>const net = require('net'); <ide> const http = require('http'); <del>const req = http.get({ host: '127.0.0.1', port: 1 }); <del>req.on('error', common.mustCall((err...
1
Ruby
Ruby
use the single line editor in console test
c8b88dd4df3b3abded80177b8cbdd428af7d5230
<ide><path>railties/test/application/console_test.rb <ide> def spawn_console(options, wait_for_prompt: true) <ide> end <ide> <ide> def test_sandbox <del> spawn_console("--sandbox") <add> options = "--sandbox" <add> options += " -- --singleline --nocolorize" if RUBY_VERSION >= "2.7" <add> spawn_console(...
2
Javascript
Javascript
add delay support to animated.spring
9c2ce53b89bc3b8198c6e6157e8c8629712652cb
<ide><path>Libraries/Animated/src/AnimatedImplementation.js <ide> type SpringAnimationConfig = AnimationConfig & { <ide> speed?: number, <ide> tension?: number, <ide> friction?: number, <add> delay?: number, <ide> }; <ide> <ide> type SpringAnimationConfigSingle = AnimationConfig & { <ide> type SpringAnimationCo...
1
Javascript
Javascript
add benchmark for string concatenations
3b1e837c270b4b540705b7c447db850e48cc2bf3
<ide><path>benchmark/es/string-concatenations.js <add>'use strict'; <add> <add>const common = require('../common.js'); <add> <add>const configs = { <add> n: [1e3], <add> mode: [ <add> 'multi-concat', <add> 'multi-join', <add> 'multi-template', <add> 'to-string-string', <add> 'to-string-concat', <add> ...
1
Text
Text
add a blurb about serve-static
4aaf985555bd84b6923e239cdf5ac3fbb8000efa
<ide><path>docs/recipes/ServerRendering.md <ide> In the following recipe, we are going to look at how to set up server-side rende <ide> <ide> ### Install Packages <ide> <del>For this example, we'll be using [Express](http://expressjs.com/) as a simple web server. <add>For this example, we'll be using [Express](http:/...
1
Javascript
Javascript
make queuemicrotask faster
2c49e8b537a5fba07568c2363ba6a594caa74c17
<ide><path>benchmark/process/queue-microtask-breadth.js <add>'use strict'; <add> <add>const common = require('../common.js'); <add>const bench = common.createBenchmark(main, { <add> n: [4e5] <add>}); <add> <add>function main({ n }) { <add> var j = 0; <add> <add> function cb() { <add> j++; <add> if (j === n) <a...
3
Text
Text
fix typo for how pki works
bf9c6d3115dd388cf379ec1a80d29104521a7b42
<ide><path>docs/swarm/how-swarm-mode-works/pki.md <ide> in a swarm use mutual Transport Layer Security (TLS) to authenticate, authorize, <ide> and encrypt the communications between themselves and other nodes in the swarm. <ide> <ide> When you create a swarm by running `docker swarm init`, the Docker Engine <del>desig...
1
Ruby
Ruby
use literal "python"
7ccec0cdf0d521471d185b6a48bb3678cb536aaf
<ide><path>Library/Homebrew/language/python.rb <ide> def create <ide> <ide> Pathname.glob(@venv_root/"lib/python*/orig-prefix.txt").each do |prefix_file| <ide> prefix_path = prefix_file.read <del> prefix_path.sub! %r{^#{HOMEBREW_CELLAR}/#{python}/[^/]+}, Formula["python"].opt_prefix <a...
1
Go
Go
parse input timestamps with standard rfc3339
999f464feb5b78e8ecc97625e70f3b1796d0a758
<ide><path>integration-cli/docker_cli_events_test.go <ide> import ( <ide> "github.com/go-check/check" <ide> ) <ide> <add>func (s *DockerSuite) TestEventsTimestampFormats(c *check.C) { <add> image := "busybox" <add> <add> // Start stopwatch, generate an event <add> time.Sleep(time.Second) // so that we don't grab even...
3
Text
Text
update sample formula
59fab56afdf6129c37ff30eb842bf7bff41348e0
<ide><path>docs/Formula-Cookbook.md <ide> class Foo < Formula <ide> # depends_on "cmake" => :build <ide> <ide> def install <del> system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking" <add> # ENV.deparallelize <add> system "./configure", "--disable-debug", <add> ...
1
Javascript
Javascript
add simple test for d3.interpolatetransform
537e9e234aa57612e67ac10f3fa092f740cda3de
<ide><path>test/interpolate/interpolate-transform-test.js <add>var vows = require("vows"), <add> load = require("../load"), <add> assert = require("../assert"); <add> <add>var suite = vows.describe("d3.interpolateTransform"); <add> <add>suite.addBatch({ <add> "interpolateTransform": { <add> topic: load("inter...
1
Javascript
Javascript
use hasownproperty in for in loops
1a10838a61ed2d85a114b8638fe55f4b4c56dc26
<ide><path>lib/HotModuleReplacementPlugin.js <ide> var hotInitCode = Template.getFunctionContent(function() { <ide> return; <ide> hotRequestedFilesMap[chunkId] = false; <ide> for(var moduleId in moreModules) { <del> hotUpdate[moduleId] = moreModules[moduleId]; <add> if(Object.prototype.hasOwnProperty.call(mo...
1
Python
Python
use resolver404 instead of base exception
0ac52e0808288892717c017e57c57aa8ad81e6d3
<ide><path>rest_framework/relations.py <ide> from rest_framework.fields import Field <ide> from rest_framework.reverse import reverse <ide> from django.core.exceptions import ObjectDoesNotExist, ImproperlyConfigured <del>from django.core.urlresolvers import resolve, get_script_prefix, NoReverseMatch <add>from django.co...
1
Text
Text
fix a writing mistake
464def3ecf79247834bd1d5053c3a76aeee03084
<ide><path>guides/source/active_record_validations.md <ide> If you validate the presence of an object associated via a `has_one` or <ide> Since `false.blank?` is true, if you want to validate the presence of a boolean <ide> field you should use `validates :field_name, inclusion: { in: [true, false] }`. <ide> <del>The ...
1
Javascript
Javascript
use const where applicable in maintemplate
9c9f2b89c942afce94b751b1979a1986a9bc4c00
<ide><path>lib/MainTemplate.js <ide> module.exports = class MainTemplate extends Template { <ide> constructor(outputOptions) { <ide> super(outputOptions); <ide> this.plugin("startup", (source, chunk, hash) => { <del> let buf = []; <add> const buf = []; <ide> if(chunk.entryModule) { <ide> buf.push("// Lo...
1
Javascript
Javascript
remove unnecessary parameter to jquery#constructor
98cee73244d55910a1ac82bcf6cae04a7f650484
<ide><path>src/core.js <ide> jQuery.fn = jQuery.prototype = { <ide> }, <ide> <ide> end: function() { <del> return this.prevObject || this.constructor( null ); <add> return this.prevObject || this.constructor(); <ide> }, <ide> <ide> // For internal use only.
1
Text
Text
update coverage badge for switched location
36b9ee7e9eabd0fe7ad5cf5c5db821570a024c24
<ide><path>README.md <ide> # Chart.js <ide> <del>[![Build Status](https://travis-ci.org/chartjs/Chart.js.svg?branch=master)](https://travis-ci.org/chartjs/Chart.js) [![Code Climate](https://codeclimate.com/github/nnnick/Chart.js/badges/gpa.svg)](https://codeclimate.com/github/nnnick/Chart.js)[![Coverage Status](https:...
1
Javascript
Javascript
remove extra spacing in http options
083c421b5ca08576897b5da396085a462010780e
<ide><path>benchmark/http/client-request-body.js <ide> var bench = common.createBenchmark(main, { <ide> dur: [5], <ide> type: ['asc', 'utf', 'buf'], <ide> bytes: [32, 256, 1024], <del> method: ['write', 'end '] // two spaces added to line up each row <add> method: ['write', 'end'] <ide> }); <ide> <ide> functi...
2
Javascript
Javascript
update some todos
2ecf8f35f013e4bc6c5f814c50aebcf5237029a9
<ide><path>src/geo/centroid.js <ide> d3.geo.centroid = function(object) { <ide> d3_geo_centroidDimension = d3_geo_centroidW = d3_geo_centroidX = d3_geo_centroidY = d3_geo_centroidZ = 0; <ide> d3.geo.stream(object, d3_geo_centroid); <del> // TODO mixed geometries <ide> var m; <ide> if (d3_geo_centroidW && <ide>...
3
Text
Text
fix judgement spelling [ci skip]
d81f2953f4c4399b0bf7188944025675f066dc78
<ide><path>guides/source/contributing_to_ruby_on_rails.md <ide> can expect it to be marked "invalid" as soon as it's reviewed. <ide> Sometimes, the line between 'bug' and 'feature' is a hard one to draw. <ide> Generally, a feature is anything that adds new behavior, while a bug is <ide> anything that causes incorrect b...
1
Python
Python
correct the correction
c0b93a1c7a961e30b30d02d641c9d22120ef5d73
<ide><path>src/transformers/benchmark/benchmark_utils.py <ide> def start_memory_tracing( <ide> gpus_to_trace: Optional[List[int]] = None, <ide> ) -> MemoryTrace: <ide> """ Setup line-by-line tracing to record rss mem (RAM) at each line of a module or sub-module. <del> See `../../../examples/benchmarking/...
1
Go
Go
provide the hostconfig during "run"
1df87b95066198c30312147393c18e0be0564fd0
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) createContainer(config *runconfig.Config, hostConfig *runc <ide> containerValues.Set("name", name) <ide> } <ide> <del> var data interface{} <del> if hostConfig != nil { <del> data = runconfig.MergeConfigs(config, hostConfig) <del> } else { <del> data =...
7
Text
Text
move code of conduct to admin repo
645cd19b584f8c6d1c9d75a40724cc2dd498fc74
<ide><path>CODE_OF_CONDUCT.md <ide> # Code of Conduct <ide> <ide> The Node.js Code of Conduct document has moved to <del>https://github.com/nodejs/TSC/blob/master/CODE_OF_CONDUCT.md. Please update <add>https://github.com/nodejs/admin/blob/master/CODE_OF_CONDUCT.md. Please update <ide> links to this document accordingl...
4
Ruby
Ruby
remove file#to_path alias
a7ba8e1fb325a20dc5115eeef278ce946d0450c7
<ide><path>actionpack/lib/action_controller/metal/data_streaming.rb <del>require 'active_support/core_ext/file/path' <ide> require 'action_controller/metal/exceptions' <ide> <ide> module ActionController #:nodoc: <ide> def send_data(data, options = {}) #:doc: <ide> private <ide> def send_file_headers!(option...
6
Text
Text
remove strong syntax around code inline code
83e3d939537d1ab3e4e84577bbaa8a94b9edc8bb
<ide><path>curriculum/challenges/english/01-responsive-web-design/basic-html-and-html5/link-to-external-pages-with-anchor-elements.md <ide> You can use `a` (*anchor*) elements to link to content outside of your web page. <ide> <ide> `<a href="https://freecodecamp.org">this links to freecodecamp.org</a>` <ide> <del>Th...
1
Python
Python
fix a bug
fbe2af255824ad463da6936ab86738429008aee9
<ide><path>numpy/f2py/crackfortran.py <ide> def crack2fortrangen(block,tab='\n'): <ide> global skipfuncs, onlyfuncs <ide> setmesstext(block) <ide> ret='' <del> if type(block) is type([]): <add> if isinstance(block, list): <ide> for g in block: <del> if g['block'] in ['function','sub...
1
Python
Python
add binary to file reading
dd983ea6b9e716abd5e35886e4d4672f1e420b72
<ide><path>inception/inception/data/build_image_data.py <ide> def _process_image(filename, coder): <ide> width: integer, image width in pixels. <ide> """ <ide> # Read the image file. <del> with tf.gfile.FastGFile(filename, 'r') as f: <add> with tf.gfile.FastGFile(filename, 'rb') as f: <ide> image_data = f...
1
PHP
PHP
add a chunk method to collection
6cd389a68d7fffa94fd3439ee49065562fe74ef9
<ide><path>src/Illuminate/Support/Collection.php <ide> public function slice($offset, $length = null, $preserveKeys = false) <ide> return new static(array_slice($this->items, $offset, $length, $preserveKeys)); <ide> } <ide> <add> /** <add> * Chunk the underlying collection array. <add> * <add> * @param int $siz...
2
Python
Python
expand tasks in mapped group at parse time
a16aa730686c99916f5bc5550ed52259499b2468
<ide><path>airflow/decorators/base.py <ide> ListOfDictsExpandInput, <ide> OperatorExpandArgument, <ide> OperatorExpandKwargsArgument, <add> is_mappable, <ide> ) <del>from airflow.models.mappedoperator import ( <del> MappedOperator, <del> ValidationSource, <del> ensure_xcomarg_return_value, <del>...
12
Javascript
Javascript
add browserify support - fixes
85a7725cbafed1d892e156a0570e178198bef26a
<ide><path>src/Three.js <ide> <ide> var THREE = { REVISION: '68dev' }; <ide> <add>// browserify support <add>if (typeof module === 'object') { <add> module.exports = THREE; <add>} <add> <ide> self.console = self.console || { <ide> <ide> info: function () {},
1
PHP
PHP
fix docblock type
52b182cdff0a115ae31b2c1f03007e73e06e12b3
<ide><path>src/Illuminate/Foundation/helpers.php <ide> function auth($guard = null) <ide> /** <ide> * Create a new redirect response to the previous location. <ide> * <del> * @param int $status <del> * @param array $headers <del> * @param bool $fallback <add> * @param int $status...
1
Mixed
Go
add --uts=host to allow sharing the uts namespace
f2e5207fc989288ad136d48222df8e7754eb0e9b
<ide><path>daemon/container.go <ide> func populateCommand(c *Container, env []string) error { <ide> pid := &execdriver.Pid{} <ide> pid.HostPid = c.hostConfig.PidMode.IsHost() <ide> <add> uts := &execdriver.UTS{ <add> HostUTS: c.hostConfig.UTSMode.IsHost(), <add> } <add> <ide> // Build lists of devices allowed and ...
10
Python
Python
fix usage of transaction.non_atomic_requests
a44cb679888e59e366ea8e932f80699800589d7f
<ide><path>tests/test_atomic_requests.py <ide> from django.db import connection, connections, transaction <ide> from django.http import Http404 <ide> from django.test import TestCase, TransactionTestCase, override_settings <del>from django.utils.decorators import method_decorator <ide> <ide> from rest_framework import...
1
Mixed
Go
fix implicit devicemapper selection
0a376291b2213699f986a7bca1cc8c4f4ed00f8d
<ide><path>daemon/graphdriver/devmapper/deviceset.go <ide> var ( <ide> DefaultDataLoopbackSize int64 = 100 * 1024 * 1024 * 1024 <ide> DefaultMetaDataLoopbackSize int64 = 2 * 1024 * 1024 * 1024 <ide> DefaultBaseFsSize uint64 = 10 * 1024 * 1024 * 1024 <del> DefaultThinpBlockSize uint32 = 128 // 6...
5
Javascript
Javascript
replace assert.throws w/ common.expectserror
094bfaf769f5b6bc8ca6fbcc289cdf5e0f07073f
<ide><path>test/async-hooks/test-embedder.api.async-resource.js <ide> common.expectsError( <ide> code: 'ERR_INVALID_ARG_TYPE', <ide> type: TypeError, <ide> }); <del>assert.throws(() => { <add>common.expectsError(() => { <ide> new AsyncResource('invalid_trigger_id', { triggerAsyncId: null }); <del>}, common....
19
Javascript
Javascript
fix typo in error message
fa44659c66c5a9a692b5d675eda8724308174317
<ide><path>test/common.js <ide> process.on('exit', function() { <ide> <ide> if (!found) { <ide> console.error('Unknown global: %s', x); <del> assert.ok(false, 'Unknown global founded'); <add> assert.ok(false, 'Unknown global found'); <ide> } <ide> } <ide> });
1
PHP
PHP
fix mysql deletes with join and alias
d2b6c8bc5cc443e41bcfe344973e105b728bebb5
<ide><path>src/Illuminate/Database/Query/Grammars/MySqlGrammar.php <ide> protected function compileDeleteWithJoins($query, $table, $where) <ide> { <ide> $joins = ' '.$this->compileJoins($query, $query->joins); <ide> <del> return trim("delete {$table} from {$table}{$joins} {$where}"); <add> $a...
2
Javascript
Javascript
remove comments from migration
688bfd6137b11bb865e8fb7d3ff2d9a4f9586e8f
<ide><path>loopbackMigration.js <ide> function createConnection(URI) { <ide> } <ide> <ide> function createQuery(db, collection, options, batchSize) { <del> return Rx.Observable.create(function (observer) { <add> return Rx.Observable.create(function(observer) { <ide> var cursor = db.collection(collection).find({}...
1
Javascript
Javascript
add negation to test name
6f6cdf6eebd552f162fd564afd191b64c8ef68c8
<ide><path>test/compareLocations.unittest.js <ide> describe("compareLocations", () => { <ide> expect(compareLocations("alpha", createLocation())).toBe(-1); <ide> }); <ide> <del> it("returns 0 when both the first parameter and the second parameter is an object", () => { <add> it("returns 0 when both the first pa...
1
Javascript
Javascript
fix typo in .eslintrc.js
2f1a23e5be9e1774a579d4201da24adaf3df2f1e
<ide><path>.eslintrc.js <ide> module.exports = { <ide> { <ide> object: 'assert', <ide> property: 'equal', <del> message: 'Use assert.astrictEqual() rather than assert.equal().', <add> message: 'Use assert.strictEqual() rather than assert.equal().', <ide> }, <ide> { <ide> ...
1
Go
Go
add devmapper struct doc
d233894c25e2b1b7124d69bddece94c88fb44452
<ide><path>graphdriver/devmapper/devmapper_doc.go <add>package devmapper <add> <add>// Definition of struct dm_task and sub structures (from lvm2) <add>// <add>// struct dm_ioctl { <add>// /* <add>// * The version number is made up of three parts: <add>// * major - no backward or forward compatibility, <add>// *...
1
Go
Go
fix overlay use of rootdir and defer
36a82c20321936a71b30fcfde8bc6c76d6cc8d1f
<ide><path>daemon/graphdriver/overlay/overlay.go <ide> func (d *Driver) Get(id string, mountLabel string) (s string, err error) { <ide> if _, err := os.Stat(dir); err != nil { <ide> return "", err <ide> } <add> // If id has a root, just return it <add> rootDir := path.Join(dir, "root") <add> if _, err := os.Stat(ro...
1
Javascript
Javascript
remove cache of page text content in core
8eaf0cdb18d0c3994465b8890b004a04cf123f35
<ide><path>src/core.js <ide> var Page = (function PageClosure() { <ide> return pe.getOperatorList(content, resources, dependency); <ide> }, <ide> extractTextContent: function Page_extractTextContent() { <del> if ('textContent' in this) { <del> // text content was extracted <del> return ...
1
Javascript
Javascript
add sanity checks for scale options
3f23aaba9a18c6ff70eee9ec1ce51cc4b6e62634
<ide><path>src/core/core.config.js <ide> function mergeScaleConfig(config, options) { <ide> // First figure out first scale id's per axis. <ide> Object.keys(configScales).forEach(id => { <ide> const scaleConf = configScales[id]; <add> if (!isObject(scaleConf)) { <add> return console.error(`Invalid scale...
2
Javascript
Javascript
avoid webpack build dependencies in test
aebca14af8981b596ce20a1d1dadf5a14424b028
<ide><path>test/ConfigCacheTestCases.test.js <ide> const { describeCases } = require("./ConfigTestCases.template"); <ide> describeCases({ <ide> name: "ConfigCacheTestCases", <ide> cache: { <del> type: "filesystem" <add> type: "filesystem", <add> buildDependencies: { <add> defaultWebpack: [] <add> } <ide> }, <i...
1
Javascript
Javascript
fix minor typo in index.test.js
16c3e6f613bfd4051a3bc6aed736fa145394cc0a
<ide><path>test/integration/app-document/test/index.test.js <ide> import { <ide> killApp, <ide> } from 'next-test-utils' <ide> <del>// test suits <add>// test suites <ide> import rendering from './rendering' <ide> import client from './client' <ide> import csp from './csp'
1
PHP
PHP
add prefix to has table call for mysql
1553f0ca825b255ca958168f2d3a06c0cee54904
<ide><path>src/Illuminate/Database/Schema/MySqlBuilder.php <ide> public function hasTable($table) <ide> <ide> $database = $this->connection->getDatabaseName(); <ide> <add> $table = $this->connection->getTablePrefix().$table; <add> <ide> return count($this->connection->select($sql, array($database, $table))) > 0;...
1
Python
Python
add tests for the y2038 problem
6a3ca96df7179e745c76dc09a67bf37af3d818ce
<ide><path>numpy/core/tests/test_datetime.py <ide> def test_datetime_is_busday(self): <ide> assert_equal(np.is_busday(holidays, busdaycal=bdd), <ide> np.zeros(len(holidays), dtype='?')) <ide> <add> def test_datetime_y2038(self): <add> # Test parsing on either side of the Y2038 bo...
1
Javascript
Javascript
simplify state transitions in http.client
735b9d50a3cb09c9a87045fce1493036fc742295
<ide><path>lib/http.js <ide> function Client ( ) { <ide> net.Stream.call(this, { allowHalfOpen: true }); <ide> var self = this; <ide> <add> // Possible states: <add> // - disconnected <add> // - connecting <add> // - connected <add> this._state = 'disconnected'; <add> <ide> httpSocketSetup(self); <ide> <id...
2
Javascript
Javascript
add k and kk formatting tokens
46093762bd4fcd7dde7ed84151ff55605465ab17
<ide><path>src/lib/format/format.js <ide> import zeroFill from '../utils/zero-fill'; <ide> <del>export var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g; <add>export v...
3
Text
Text
add missing options for crypto sign.sign()
cb3d6d5113a3bb076106e2b7c35e2471744bf218
<ide><path>doc/api/crypto.md <ide> changes: <ide> * `privateKey` {string | Object} <ide> - `key` {string} <ide> - `passphrase` {string} <add> - `padding` {integer} <add> - `saltLength` {integer} <ide> * `outputFormat` {string} <ide> * Returns: {Buffer | string} <ide>
1
Javascript
Javascript
optimize emit for two arguments
ae8f8e7258bb9db0bc6928e9dc1cd535d95a7910
<ide><path>lib/events.js <ide> process.EventEmitter.prototype.emit = function (type) { <ide> if (!this._events[type]) return false; <ide> <ide> if (typeof this._events[type] == 'function') { <del> if (arguments.length < 3) { <add> if (arguments.length <= 3) { <ide> // fast case <ide> this._events...
1
Python
Python
return extra_specs in openstacknodesize
a6c19b6ce97a6c7d151ede99627bcdc8f6590f12
<ide><path>libcloud/compute/drivers/openstack.py <ide> def _to_size(self, el): <ide> # XXX: needs hardcode <ide> vcpus=vcpus, <ide> bandwidth=None, <add> extra=el.get('extra_specs') <ide> ...
1
Python
Python
remove reference to voting on issue
0f07defe2ca0ba7a726aafb4a30c89627510bae1
<ide><path>spacy/errors.py <ide> class Errors(metaclass=ErrorsWithCodes): <ide> E198 = ("Unable to return {n} most similar vectors for the current vectors " <ide> "table, which contains {n_rows} vectors.") <ide> E199 = ("Unable to merge 0-length span at `doc[{start}:{end}]`.") <del> E200 = ("Can'...
1
PHP
PHP
allow customization of schedule mutex cache store
20e29199365a11b31e35179bbfe3e83485e05a03
<ide><path>src/Illuminate/Console/Scheduling/CacheEventMutex.php <ide> <ide> namespace Illuminate\Console\Scheduling; <ide> <del>use Illuminate\Contracts\Cache\Repository as Cache; <add>use Illuminate\Contracts\Cache\Factory as Cache; <ide> <ide> class CacheEventMutex implements EventMutex <ide> { <ide> /** <ide...
6
Mixed
Python
fix readme + argparse
d067ce0a0861ba1a200e9e7ccdec529994a55e7c
<ide><path>tutorials/image/cifar10_estimator/README.md <ide> $ python cifar10_main.py --data-dir=/prefix/to/downloaded/data/cifar-10-batches- <ide> --is-cpu-ps=False \ <ide> --force-gpu-compatible=True \ <ide> --num-gpus=2 \ <del> ...
2
PHP
PHP
add missing docblock
a9e332988f707a3e721dd24b7881fc2c8f07daa5
<ide><path>src/Illuminate/Console/Parser.php <ide> public static function parse($expression) <ide> * <ide> * @param string $expression <ide> * @return string <add> * <add> * @throws \InvalidArgumentException <ide> */ <ide> protected static function name($expression) <ide> {
1
Javascript
Javascript
add message for dispose deprecation
3b8ec68a3a4cb014fdc7770bb0fec5248aee2691
<ide><path>lib/domain.js <ide> Domain.prototype.dispose = util.deprecate(function() { <ide> // mark this domain as 'no longer relevant' <ide> // so that it can't be entered or activated. <ide> this._disposed = true; <del>}); <add>}, 'Domain.dispose is deprecated. Recover from failed I/O actions explicitly ' + <ad...
1
Java
Java
fix dispatchviewmanagercommand ordering for nodes
754d2848a4766355534c2c3317c0ca3628048bef
<ide><path>ReactAndroid/src/main/java/com/facebook/react/flat/FlatUIImplementation.java <ide> public void addAnimation(int reactTag, int animationID, Callback onSuccess) { <ide> @Override <ide> public void dispatchViewManagerCommand(int reactTag, int commandId, ReadableArray commandArgs) { <ide> ensureMountsToV...
1
Ruby
Ruby
fix cache#fetch instrumentation
edd33c08d98723ae9bb89cf7f019277117ed6414
<ide><path>activesupport/lib/active_support/cache.rb <ide> def fetch(name, options = nil) <ide> options = merged_options(options) <ide> key = namespaced_key(name, options) <ide> <del> cached_entry = find_cached_entry(key, name, options) unless options[:force] <del> entry = handle_...
1
Javascript
Javascript
remove some hacks to uimanager
87e02702a9e1d5b8839e043ca1e3a84f6be713b1
<ide><path>Libraries/ReactNative/PaperUIManager.js <ide> if (Platform.OS === 'ios') { <ide> lazifyViewManagerConfig(viewName); <ide> }); <ide> } else if (getConstants().ViewManagerNames) { <del> // We want to add all the view managers to the UIManager. <del> // However, the way things are set up, the list of vi...
1
Javascript
Javascript
add styles to experimental-amp example
23178db57564ada957a53e0b96094a324f29108b
<ide><path>examples/experimental-amp/components/Layout.js <add>export default function Layout ({ children }) { <add> return ( <add> <> <add> {children} <add> <style jsx global>{` <add> body {font-family: Roboto, sans-serif; padding: 30px; color: #444;} <add> `}</style> <add> </> <add> ) <a...
2
Javascript
Javascript
add option of specifying literal regexp
c8d349870812284a82896087c05c2d19c8f5cdfd
<ide><path>src/ng/directive/validators.js <ide> var requiredDirective = function() { <ide> * It is most often used for text-based {@link input `input`} controls, but can also be applied to custom text-based controls. <ide> * <ide> * The validator sets the `pattern` error key if the {@link ngModel.NgModelController#$...
1
PHP
PHP
move php8 only attributes inside docblock
4c07d7757fcd1bb0e89cd2f710559f6a85d6592b
<ide><path>src/Collection/Iterator/BufferedIterator.php <ide> <ide> use Cake\Collection\Collection; <ide> use Countable; <del>use ReturnTypeWillChange; <ide> use Serializable; <ide> use SplDoublyLinkedList; <ide> <ide> public function __construct(iterable $items) <ide> * <ide> * @return mixed <ide> */ ...
22
Javascript
Javascript
add test for js1 build viewconfigs
3ccfbd6c399f4adc9b821f754c63b627dd71665d
<ide><path>packages/react-native-codegen/buck_tests/generate-view-configs-cli.js <ide> * This source code is licensed under the MIT license found in the <ide> * LICENSE file in the root directory of this source tree. <ide> * <del> * @emails oncall+react_native <ide> * @flow <ide> * @format <ide> */ <ide> <ide> '...
3
Ruby
Ruby
update documentation for default_scope
c4023cbe206415cf3ca1ca92cd9980a4aa4aed00
<ide><path>activerecord/lib/active_record/base.rb <ide> def subclasses #:nodoc: <ide> end <ide> <ide> # Sets the default options for the model. The format of the <del> # <tt>method_scoping</tt> argument is the same as in with_scope. <add> # <tt>options</tt> argument is the same as in find...
1
Ruby
Ruby
add tests for vendored deps
64a929184a45f530a49af7b047d5b6605b50b1f8
<ide><path>Library/Homebrew/rubocops/lines_cop.rb <ide> def audit_formula(_node, _class_node, _parent_class_node, body_node) <ide> problem "\"\#\{prefix}#{match[1]}\" should be \"\#{#{match[2].downcase}}\"" <ide> end <ide> end <add> find_every_method_call_by_name(body_node, ...
2
Java
Java
fix compiler error
1aeae5d40ddf87deb6268d5d470b5c59cba3c176
<ide><path>spring-web/src/main/java/org/springframework/http/codec/json/Jackson2SmileEncoder.java <ide> package org.springframework.http.codec.json; <ide> <ide> import java.nio.charset.StandardCharsets; <add>import java.util.Collections; <ide> import java.util.List; <ide> <ide> import com.fasterxml.jackson.databind.O...
1
Go
Go
improve the ut
e0de1718ee269776c7b23a1b03d796800ed4f451
<ide><path>integration-cli/docker_cli_events_unix_test.go <ide> func (s *DockerSuite) TestEventsContainerWithMultiNetwork(c *check.C) { <ide> out, _ := dockerCmd(c, "events", "--since", since, "--until", until, "-f", "type=network") <ide> netEvents := strings.Split(strings.TrimSpace(out), "\n") <ide> <del> // NOTE: ...
1
Ruby
Ruby
add a /rails.rb for each framework for consistency
a23f4b6aeed6b49f90f5c544c818798840f090b7
<ide><path>actionpack/lib/action_controller/rails.rb <add>require "action_controller" <add> <ide> module ActionController <ide> class Plugin < Rails::Plugin <ide> plugin_name :action_controller <ide><path>actionpack/lib/action_view/rails.rb <add>require "action_view" <ide>\ No newline at end of file <ide><path>ac...
7
PHP
PHP
fix serverrequesttest cases
f1a647f42ff27b9f403c19c9035b0f0918d70590
<ide><path>tests/TestCase/Http/ServerRequestTest.php <ide> public function testCustomArgsDetector() <ide> return $request->param('controller') === $name; <ide> }); <ide> <del> $request->params = ['controller' => 'cake']; <add> $request = $request->withQueryParams(['controller' => 'cak...
1
Javascript
Javascript
add missing closing square bracket in example
77b302ab00b28294d31948cfcb702219b84c9227
<ide><path>src/ngResource/resource.js <ide> angular.module('ngResource', ['ng']). <ide> * $resourceProvider.defaults.actions.update = { <ide> * method: 'PUT' <ide> * }; <del> * }); <add> * }]); <ide> * ``` <ide> * <ide> * Or you can even overwrite the wh...
1
Ruby
Ruby
move kismet to the boneyard
4f466b6c10bbc35fb1cdef2691b07856ed3d6e9f
<ide><path>Library/Homebrew/tap_migrations.rb <ide> "jscoverage" => "homebrew/boneyard", <ide> "jsl" => "homebrew/binary", <ide> "kerl" => "homebrew/headonly", <add> "kismet" => "homebrew/boneyard", <ide> "libgtextutils" => "homebrew/science", <ide> "librets" => "homebrew/boneyard", <ide> "lmutil" => "home...
1
Text
Text
update set image card
15515e62eafe47a7a2b81c9f5070115a75ddfb51
<ide><path>client/src/pages/guide/english/bootstrap/cards/index.md <ide> The structure of the card can be enhanced by the addition of a header and a foot <ide> <div class="card-img-overlay">Overlay content</div> <ide> </div> <ide> ``` <add>### Card is balanced with the image <add> <add><div class="card" style="width:...
1
Text
Text
add note to contributing about docs manifest
f6de29f9d431742899e6010c198fcbc95f7fe78f
<ide><path>contributing.md <ide> This will use the version of `next` built inside of the Next.js monorepo and the <ide> main `yarn dev` monorepo command can be running to make changes to the local <ide> Next.js version at the same time (some changes might require re-running `yarn next-with-deps` to take effect). <ide> ...
1
Text
Text
update local setup guide
8ccb50a67f5dc9c621010292be3aaa92777adf23
<ide><path>docs/how-to-setup-freecodecamp-locally.md <ide> Follow these steps: <ide> translate/add-spanish-basic-html <ide> ``` <ide> <del> And these are really bad name: <del> <del> ```shell <del> challenges-branch <del> update-guide <del> fix/#12345 <del> fix-#123 <del> changes-for-1234 ...
1
PHP
PHP
update typehints for controller/
c98e585cc1d539d2b98fc469a170f996f512513b
<ide><path>src/Controller/Component/RequestHandlerComponent.php <ide> public function convertXml(string $xml): array <ide> * @return void <ide> * @throws \Cake\Http\Exception\NotFoundException If invoked extension is not configured. <ide> */ <del> public function beforeRender(EventInterface $event) <a...
5
Text
Text
upgrade example to docker compose v2
43a4a8e6a6fd1ebd42769dc2b24f63fb8b89e9b6
<ide><path>examples/with-docker-compose/README.md <ide> First, run the development server: <ide> docker network create my_network <ide> <ide> # Build dev using new BuildKit engine <del>COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f docker-compose.dev.yml build --parallel <add>docker compose -f docker-c...
1
Python
Python
fix issues with eager tensor capture in graph mode
c457f769cca3c8e090a33f2e80bbc13c07ad5ae4
<ide><path>keras/layers/preprocessing/index_lookup.py <ide> def get_config(self): <ide> "vocabulary_dtype": self.vocabulary_dtype, <ide> "idf_weights": utils.listify_tensors(self.input_idf_weights), <ide> "vocabulary": utils.listify_tensors(self.input_vocabulary), <del> "v...
1
Python
Python
revive sunos support, lost in 6b98a63
1e7a0aa8837dd9244a4941560b2a20da1b4aa60d
<ide><path>tools/gyp/pylib/gyp/generator/make.py <ide> <ide> def GetFlavor(params): <ide> """Returns |params.flavor| if it's set, the system's default flavor else.""" <del> return params.get('flavor', 'mac' if sys.platform == 'darwin' else 'linux') <add> flavors = { <add> 'darwin': 'mac', <add> 'sunos5': 'so...
1
PHP
PHP
fix plural messages not falling back to key
31033e9089e0b54ed66d00b8cd23d3abc283ff6f
<ide><path>src/I18n/Formatter/IcuFormatter.php <ide> class IcuFormatter implements FormatterInterface <ide> * Returns a string with all passed variables interpolated into the original <ide> * message. Variables are interpolated using the MessageFormatter class. <ide> * <del> * If an array is passed i...
6
Javascript
Javascript
implement defs and use nodes. first test
10ba26e9fa3b060b132c7e0c3cc17a4188e734d9
<ide><path>examples/jsm/loaders/SVGLoader.js <ide> SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), { <ide> <ide> var transform = getNodeTransform( node ); <ide> <add> var traverseChildNodes = true; <add> <ide> var path = null; <ide> <ide> switch ( node.nodeName ) { <ide> SVGLoader....
1
Javascript
Javascript
remove api no longer present in qunit 2.0
ce3ab8f23c5be2dac4bdc944c911b92342aa04f9
<ide><path>packages/ember/tests/helpers/link_to_test.js <ide> function assertNav(options, callback) { <ide> let nav = false; <ide> <ide> function check(event) { <del> QUnit.equal(event.defaultPrevented, options.prevented, `expected defaultPrevented=${options.prevented}`); <add> QUnit.assert.equal(event.defau...
1
Text
Text
add sponsors to readme
d3760f7fbf414a21d0010368c8dad5f9299df204
<ide><path>readme.md <ide> Laravel has the most extensive and thorough documentation and video tutorial lib <ide> <ide> If you're not in the mood to read, [Laracasts](https://laracasts.com) contains over 900 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost t...
1
Ruby
Ruby
add a test for select argument error with block
246417c74edeb1d957f9a341862c33aff645d22c
<ide><path>activerecord/test/cases/relations_test.rb <ide> def test_select_argument_error <ide> assert_raises(ArgumentError) { Developer.select } <ide> end <ide> <add> def test_select_argument_error_with_block <add> assert_raises(ArgumentError) { Developer.select(:id) { |d| d.id % 2 == 0 } } <add> end <add>...
1
Go
Go
add deviceset singleton
f317a6b6fe31685445ac97a1475136c5ab7860b5
<ide><path>runtime.go <ide> type Runtime struct { <ide> volumes *Graph <ide> srv *Server <ide> Dns []string <add> deviceSet DeviceSet <ide> } <ide> <ide> var sysInitPath string <ide> func (runtime *Runtime) getContainerElement(id string) *list.Element { <ide> return nil <ide> } <i...
4
Ruby
Ruby
avoid uninitialized variable warnings on ruby 2.7
890015ae46ad023fdc9459c943dc77ba9683b42d
<ide><path>activesupport/lib/active_support/error_reporter.rb <ide> def set_context(...) <ide> # Rails.error.report(error) <ide> # <ide> def report(error, handled: true, severity: handled ? :warning : :error, context: {}, source: DEFAULT_SOURCE) <del> return if error.instance_variable_get(:@__rails_e...
1
Text
Text
add react native blog post
951adcdd4c260ccf6267c5470195b544ed5afde8
<ide><path>docs/_posts/2015-03-26-introducing-react-native.md <add>--- <add>title: "Introducing React Native" <add>author: Ben Alpert <add>--- <add> <add>In January at React.js Conf, we announced React Native, a new framework for building native apps using React. We're happy to announce that we're open-sourcing React N...
1
Javascript
Javascript
use template strings in parallel tests
a6ab883eaaceb25c1983ab8eae752bdad23f7bfc
<ide><path>test/parallel/test-buffer-bigint64.js <ide> const buf = Buffer.allocUnsafe(8); <ide> ['LE', 'BE'].forEach(function(endianness) { <ide> // Should allow simple BigInts to be written and read <ide> let val = 123456789n; <del> buf['writeBigInt64' + endianness](val, 0); <del> let rtn = buf['readBigInt64' + ...
7