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
PHP
PHP
render responses when cast as string
338b74c1427d4786f041669b6085266f156153a2
<ide><path>laravel/response.php <ide> public function status($status = null) <ide> } <ide> } <ide> <add> /** <add> * Render the response when cast to string <add> * <add> * @return string <add> */ <add> public function __toString() <add> { <add> return $this->render(); <add> } <add> <ide> } <ide>\ No newline a...
1
Text
Text
avoid the phrase "key property"
6541903bc48f4c3c66181d660fab0034b555f938
<ide><path>docs/docs/04-multiple-components.md <ide> React.render( <ide> <ide> ## Ownership <ide> <del>In the above example, instances of `Avatar` *own* instances of `ProfilePic` and `ProfileLink`. In React, **an owner is the component that sets the `props` of other components**. More formally, if a component `X` is ...
1
Text
Text
remove testing block
ac225731d55a6cce8983fc696debee312822de14
<ide><path>README.md <ide> Check out our [documentation on the docs tab](https://github.com/github/atom/doc <ide> 1. `gh-setup atom` <ide> <ide> 2. `cd ~/github/atom && rake install` <del> <del>```coffeescript <del>-> 'hello' <del>```
1
Javascript
Javascript
add isabsoluteurl helper
20a25a278373d2e7c19e3fc5b204cee7e42c4218
<ide><path>lib/helpers/isAbsoluteURL.js <add>'use strict'; <add> <add>/** <add> * Determines whether the specified URL is absolute <add> * <add> * @param {string} url The URL to test <add> * @returns {boolean} True if the specified URL is absolute, otherwise false <add> */ <add>module.exports = function isAbsoluteURL(u...
2
Javascript
Javascript
remove extend() and tests
1299daf16c27609b0ec7be2efe9a8fe97e75f6c4
<ide><path>src/js/extend.js <del>/** <del> * @file extend.js <del> * @module extend <del> */ <del> <del>import _inherits from '@babel/runtime/helpers/inherits'; <del>import log from './utils/log'; <del> <del>/** <del> * Used to subclass an existing class by emulating ES subclassing using the <del> * `extends` keyword. ...
3
Text
Text
add a paragraph break
4d89910820e4c0fb62e1e496e5df837b77514f27
<ide><path>docs/reference/run.md <ide> volume mounted on the host). <ide> <ide> The default user within a container is `root` (id = 0), but if the developer <ide> created additional users, those are accessible by name. When passing a numeric <del>ID, the user doesn't have to exist in the container. The developer can ...
1
Javascript
Javascript
move packager initialization events to reporter
b80e2c8799cc2ef76c77752bbf00be849b0be6b1
<ide><path>local-cli/server/runServer.js <ide> const systraceProfileMiddleware = require('./middleware/systraceProfileMiddlewar <ide> const unless = require('./middleware/unless'); <ide> const webSocketProxy = require('./util/webSocketProxy.js'); <ide> <del>function runServer(args, config, readyCallback) { <add>functi...
4
Python
Python
increase range in float16 almost equal nulp test
5f84b380f3708e94196582e427356cc38d76b977
<ide><path>numpy/testing/tests/test_utils.py <ide> def test_float32_fail(self): <ide> <ide> def test_float16_pass(self): <ide> nulp = 5 <del> x = np.linspace(-20, 20, 50, dtype=np.float16) <add> x = np.linspace(-4, 4, 10, dtype=np.float16) <add> x = 10**x <ide> x = np.r_[-x, x]...
1
Ruby
Ruby
supply additional data for requirements
5277f849d9dc30c8beac490fe163f3cb7ac7dba1
<ide><path>Library/Homebrew/formula.rb <ide> def to_hash <ide> end <ide> <ide> hsh["requirements"] = requirements.map do |req| <add> req.name.prepend("maximum_") if req.try(:comparator) == "<=" <ide> { <ide> "name" => req.name, <ide> "cask" => req.cask, <ide> "downloa...
4
Javascript
Javascript
update watchmode tests
5e112dbfbe043b9f7a43798b3ef1522155e7317f
<ide><path>test/Compiler.test.js <ide> describe("Compiler", () => { <ide> }); <ide> <ide> compiler.outputFileSystem = new MemoryFs(); <del> compiler.watch({}, err => { <add> <add> const watch = compiler.watch({}, err => { <ide> if (err) return done(err); <ide> expect(compiler.watchMode).toBeTruthy(); <del>...
1
Javascript
Javascript
increase coverage of buffer
04796ee97f594186c6aed9ecfeae4cf61dca544d
<ide><path>test/parallel/test-buffer-bytelength.js <ide> assert.throws(() => { Buffer.byteLength({}, 'latin1'); }, <ide> assert.throws(() => { Buffer.byteLength(); }, <ide> /"string" must be a string, Buffer, or ArrayBuffer/); <ide> <add>assert.strictEqual(Buffer.byteLength('', undefined, true), -1); <ad...
3
Javascript
Javascript
fix code generation for indexed ram bundles
f91e376515e820ae378e16dc9602a8c4d573a66e
<ide><path>packager/src/ModuleGraph/output/__tests__/indexed-ram-bundle-test.js <ide> declare var jest: any; <ide> jest.disableAutomock(); <ide> <ide> const indexedRamBundle = require('../indexed-ram-bundle'); <add>const {addModuleIdsToModuleWrapper} = require('../util'); <ide> <ide> declare var describe: any; <ide> ...
2
Ruby
Ruby
write tests using cask as argument
049528132582a5587f353a8a015a8f918ecdab44
<ide><path>Library/Homebrew/cmd/--cache.rb <ide> def __cache <ide> puts HOMEBREW_CACHE <ide> else <ide> args.named.each do |name| <add> formula = Formulary.factory name <add> if Fetch.fetch_bottle?(formula) <add> puts formula.bottle.cached_download <add> else <add> ...
3
Text
Text
add djoser to authentication docs
113a28ed8ad65d912180e8be7a92b679251b0249
<ide><path>docs/api-guide/authentication.md <ide> The [HawkREST][hawkrest] library builds on the [Mohawk][mohawk] library to let y <ide> <ide> HTTP Signature (currently a [IETF draft][http-signature-ietf-draft]) provides a way to achieve origin authentication and message integrity for HTTP messages. Similar to [Amazon...
1
Python
Python
add checkpoint arg to export_inference_graph
599c26f5ecde037763cc6f9d29127489316f44c3
<ide><path>official/vision/serving/export_saved_model_lib.py <ide> def export_inference_graph( <ide> export_checkpoint_subdir: Optional[str] = None, <ide> export_saved_model_subdir: Optional[str] = None, <ide> save_options: Optional[tf.saved_model.SaveOptions] = None, <del> log_model_flops_and_params: bo...
1
Python
Python
set version to 2.1.0a6
5a4737df0993af42550faa14be732dce8425561d
<ide><path>spacy/about.py <ide> # fmt: off <ide> <ide> __title__ = "spacy-nightly" <del>__version__ = "2.1.0a6.dev1" <add>__version__ = "2.1.0a6" <ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython" <ide> __uri__ = "https://spacy.io" <ide> __author__ = "Explosion AI" <ide>...
1
Text
Text
clarify setservers() methods in dns.md
95205a61251aca0af3f1c8663caaffb03a5f5c3a
<ide><path>doc/api/dns.md <ide> An error will be thrown if an invalid address is provided. <ide> The `dns.setServers()` method must not be called while a DNS query is in <ide> progress. <ide> <add>Note that this method works much like <add>[resolve.conf](http://man7.org/linux/man-pages/man5/resolv.conf.5.html). <add>T...
1
Go
Go
add /proc/scsi to masked paths
a21ecdf3c8a343a7c94e4c4d01b178c87ca7aaa1
<ide><path>oci/defaults.go <ide> func DefaultLinuxSpec() specs.Spec { <ide> "/proc/timer_list", <ide> "/proc/timer_stats", <ide> "/proc/sched_debug", <add> "/proc/scsi", <ide> }, <ide> ReadonlyPaths: []string{ <ide> "/proc/asound",
1
Go
Go
add configs support to client
102738101a68711c2ca50e36b24d389c35d087df
<ide><path>client/config_create.go <add>package client <add> <add>import ( <add> "encoding/json" <add> <add> "github.com/docker/docker/api/types" <add> "github.com/docker/docker/api/types/swarm" <add> "golang.org/x/net/context" <add>) <add> <add>// ConfigCreate creates a new Config. <add>func (cli *Client) ConfigCreate...
12
PHP
PHP
add textarea widget and tests
84537f2c1c85f90d0132d84f6b46e5e673c62491
<ide><path>src/View/Input/Textarea.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * For full copyright and license information, please see...
2
Javascript
Javascript
reuse hostname from underlying net.socket
5977cba985a4a1831ab5679a7701026f544d9080
<ide><path>lib/_tls_wrap.js <ide> exports.connect = function(/* [port, host], options, cb */) { <ide> }; <ide> options = util._extend(defaults, options || {}); <ide> <del> var hostname = options.servername || options.host || 'localhost', <add> var hostname = options.servername || <add> options.ho...
3
Text
Text
add graph model to doc
f2c97d817b6f8e886e9bae5975e36f9e77f7ee69
<ide><path>docs/sources/models.md <ide> model = keras.models.Sequential() <ide> ``` <ide> - __Methods__: <ide> - __add__(layer): Add a layer to the model. <del> - __compile__(optimizer, loss, class_mode="categorical"): <del> - __Arguments__: <add> - __compile__(optimizer, loss, class_mode="categorica...
1
Ruby
Ruby
remove intermediate method
74ad97ce7f3325fc0a16c5ec3262e191a92667cd
<ide><path>Library/Homebrew/cmd/config.rb <ide> def dump_build_config(f) <ide> f.puts "X11: #{describe_x11}" <ide> end <ide> <del> def write_build_config(f) <del> Homebrew.dump_build_config(f) <del> end <del> <ide> def dump_verbose_config(f) <ide> f.puts "HOMEBREW_VERSION: #{HOMEBREW_VERSION}" <ide> ...
2
Javascript
Javascript
add meridiem translation and correct quotemark
315abe846d9333cc4cea2d7781365d12ca3da347
<ide><path>src/locale/br.js <ide> function softMutation(text) { <ide> return mutationTable[text.charAt(0)] + text.substring(1); <ide> } <ide> <add>var monthsParse = [ <add> /^gen/i, <add> /^c[ʼ\']hwe/i, <add> /^meu/i, <add> /^ebr/i, <add> /^mae/i, <add> /^(mez|eve)/i, <add...
2
Mixed
Javascript
delay animations until attached
cfb5fba527cd93b596329fb05079e320b6586701
<ide><path>docs/docs/getting-started/v3-migration.md <ide> options: { <ide> <ide> Animation system was completely rewritten in Chart.js v3. Each property can now be animated separately. Please see [animations](../configuration/animations.md) docs for details. <ide> <del> <ide> #### Customizability <ide> <ide> * `cus...
6
Javascript
Javascript
improve console logging to metro
76e10c4e8bc3e31eecf80b15bde29d133caaca1e
<ide><path>Libraries/Core/Devtools/logToConsole.js <ide> const getDevServer = require('./getDevServer'); <ide> let ID = 0; <ide> <ide> function logToConsole( <del> level: 'trace' | 'info' | 'warn' | 'log', <add> level: <add> | 'trace' <add> | 'info' <add> | 'warn' <add> | 'log' <add> | 'group' <add> ...
2
Python
Python
remove unused function
7c42a178f67676467ca6e71d0628954a22396271
<ide><path>slim/train_image_classifier.py <ide> def _configure_optimizer(learning_rate): <ide> raise ValueError('Optimizer [%s] was not recognized', FLAGS.optimizer) <ide> return optimizer <ide> <del> <del>def _add_variables_summaries(learning_rate): <del> summaries = [] <del> for variable in slim.get_model_va...
1
PHP
PHP
fix typo in docblock
4fe16c2997cfee9b46dea810dc04016c93002625
<ide><path>src/Illuminate/View/Component.php <ide> abstract class Component <ide> protected static $methodCache = []; <ide> <ide> /** <del> * That properties / methods that should not be exposed to the component. <add> * The properties / methods that should not be exposed to the component. <ide> *...
1
Java
Java
fix intermittent test failure in asynctests
38cf91922c0423fa8ffd541e9cc7f1d2cae87529
<ide><path>spring-test-mvc/src/main/java/org/springframework/test/web/servlet/DefaultMvcResult.java <ide> <ide> import org.springframework.mock.web.MockHttpServletRequest; <ide> import org.springframework.mock.web.MockHttpServletResponse; <del>import org.springframework.web.context.request.async.WebAsyncManager; <del>...
2
PHP
PHP
fix closing div tag
51a013fbbf4d834216909d532d40dc4067a6810f
<ide><path>app/views/hello.php <ide> <div class="welcome"> <ide> <a href="http://laravel.com" title="Laravel PHP Framework"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIcAAACHCAYAAAA850oKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdp...
1
Python
Python
use our own improperlyconfigured exception
384df480059d91d5319ded7d6fc52c23eb12a0c9
<ide><path>celery/backends/mongodb.py <ide> """MongoDB backend for celery.""" <ide> from datetime import datetime <ide> <del>from django.core.exceptions import ImproperlyConfigured <ide> from billiard.serialization import pickle <ide> try: <ide> import pymongo <ide> <ide> from celery import conf <ide> from celery...
8
Python
Python
add spacy.blank() loading function
7c7fac93372eb30445d2e36fa21631ce4937f046
<ide><path>spacy/__init__.py <ide> def load(name, **overrides): <ide> return util.load_model(name, **overrides) <ide> <ide> <add>def blank(name, **kwargs): <add> LangClass = util.get_lang_class(name) <add> return LangClass(**kwargs) <add> <add> <ide> def info(model=None, markdown=False): <ide> return cl...
1
Python
Python
fix naming conventions issue
f851ff39dfc2fb4729e7e96bcb462c0ec1c7deed
<ide><path>glances/glances.py <ide> def __update__(self): <ide> self.network.append(netstat) <ide> self.network_old = self.network_new <ide> <del> # DISK IO <add> # DISK I/O <ide> self.diskio = [] <ide> try: <ide> self.diskio_old <ide> d...
1
Javascript
Javascript
remove excessive license boilerplate
683e09603e3418ed13333bac05876cb7d52453f5
<ide><path>lib/process.js <del>// Copyright io.js contributors <del>// <del>// Permission is hereby granted, free of charge, to any person obtaining a <del>// copy of this software and associated documentation files (the <del>// "Software"), to deal in the Software without restriction, including <del>// without limitat...
1
Javascript
Javascript
fix unit tests
57e3a67f628719487317db8564a9c71742f936de
<ide><path>test/unit/router.test.js <ide> /* global describe, it, expect */ <ide> import Router from '../../dist/lib/router/router' <ide> <add>class PageLoader { <add> constructor (options = {}) { <add> this.options = options <add> this.loaded = {} <add> } <add> <add> loadPage (route) { <add> this.loaded[r...
1
Text
Text
add devdocs link for offline documentation
8afd770a1abe06aabda3e6b44cad2755c8076ab7
<ide><path>README.md <ide> If you enjoyed my course, consider supporting Egghead by [buying a subscription] <ide> <ide> For PDF, ePub, and MOBI exports for offline reading, and instructions on how to create them, please see: [paulkogel/redux-offline-docs](https://github.com/paulkogel/redux-offline-docs). <ide> <add>F...
1
Javascript
Javascript
use addgroup for adding draw calls in test
6d5d6f8b74a23f3deffb25b0d014b495d6b36b13
<ide><path>test/unit/geometry/EdgesGeometry.js <ide> function addDrawCalls ( geometry ) { <ide> var start = i * 3; <ide> var count = 3; <ide> <del> geometry.addDrawCall ( start, count, offset ); <del> <add> geometry.addGroup( start, count ); <ide> } <ide> <ide> return geometry;
1
Go
Go
fix race in set running
77936ba1a1ff404b75ae8a34c6d4e280c23d9144
<ide><path>container.go <ide> func (container *Container) Start() (err error) { <ide> return err <ide> } <ide> container.waitLock = make(chan struct{}) <add> container.State.SetRunning(0) <ide> go container.monitor() <ide> <ide> if container.Config.Tty { <ide> func (container *Container) Start() (err error) { <i...
2
Ruby
Ruby
avoid call to array#first
dd4e81df86a119a32d52396c4ef856c856b7965a
<ide><path>activesupport/lib/active_support/notifications/fanout.rb <ide> def initialize(pattern, delegate) <ide> @delegate = delegate <ide> end <ide> <del> def publish(*args) <del> return unless subscribed_to?(args.first) <del> @delegate.call(*args) <add> def publish(...
1
Text
Text
update url for issue
6fcae83036970dd2aad73127da6cbd0d2becb333
<ide><path>CONTRIBUTING.md <ide> A great way to contribute to the project is to send a detailed report when you <ide> encounter an issue. We always appreciate a well-written, thorough bug report, <ide> and will thank you for it! <ide> <del>Check that [our issue database](https://github.com/docker/docker/issues) <add>C...
1
Mixed
Ruby
stringify database configurations
63c4e9765b53ae1f8b4674c45012295f873a40be
<ide><path>activerecord/CHANGELOG.md <add>* Allow `ActiveRecord::Base.configurations=` to be set with a symbolized hash. <add> <add> *Gannon McGibbon* <add> <ide> * Don't update counter cache unless the record is actually saved. <ide> <ide> Fixes #31493, #33113, #33117. <ide><path>activerecord/lib/active_re...
3
Text
Text
add f3n67u to collaborators
dffcfdde34189a257692c2b80d9b03ee71486deb
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Evan Lucas** <<evanlucas@me.com>> (he/him) <ide> * [fhinkel](https://github.com/fhinkel) - <ide> **Franziska Hinkelmann** <<franziska.hinkelmann@gmail.com>> (she/her) <add>* [F3n67u](https://github.com/F3n67u) - <add...
1
Go
Go
switch node management tests to api types
22b34d64496c9b6ebae5e2b4a98ecd9a172cc557
<ide><path>integration-cli/check_test.go <ide> import ( <ide> <ide> "github.com/docker/docker/cliconfig" <ide> "github.com/docker/docker/pkg/reexec" <add> "github.com/docker/engine-api/types/swarm" <ide> "github.com/go-check/check" <ide> ) <ide> <ide> func (s *DockerSwarmSuite) AddDaemon(c *check.C, joinSwarm, man...
3
Text
Text
use rails instead of rake
33e202d3ae8dfa3aa978a09944030622832e6e15
<ide><path>actionpack/CHANGELOG.md <ide> <ide> ## Rails 5.0.0.beta2 (February 01, 2016) ## <ide> <del>* Add `-g` and `-c` options to `bin/rake routes`. These options return the url `name`, `verb` and <add>* Add `-g` and `-c` options to `bin/rails routes`. These options return the url `name`, `verb` and <ide> ...
2
PHP
PHP
remove unused property
6838dd332d9232278bf5731b080cd36bb5cac0d5
<ide><path>src/Utility/Inflector.php <ide> class Inflector <ide> 'pokemon', 'proceedings', 'research', 'sea[- ]bass', 'series', 'species', 'weather', <ide> ]; <ide> <del> /** <del> * Default map of accented and special characters to ASCII characters <del> * <del> * @var array <del> */ <d...
1
Python
Python
fix support for builds in dirs with whitespace
50bf6df95bdb5e4254719b0a6061cd1cdece2b7c
<ide><path>numpy/distutils/fcompiler/__init__.py <ide> from numpy.distutils.ccompiler import CCompiler, gen_lib_options <ide> from numpy.distutils import log <ide> from numpy.distutils.misc_util import is_string, all_strings, is_sequence, \ <del> make_temp_file, get_shared_lib_extension <add> make_temp_file, get_...
5
Text
Text
use canonical docs url
2ef91b1c783b1f9d415c9bd2f4aba8ba9f958182
<ide><path>README.md <ide> <ide> ## Documentation <ide> <del>You can find documentation at [chartjs.org/docs](http://www.chartjs.org/docs). The markdown files that build the site are available under `/docs`. Please note - in some of the json examples of configuration you might notice some liquid tags - this is just f...
1
Text
Text
change html-scanner to rails-html-sanitizer
4c3afea7dfb380f6357c9ebceac973bfa20151f6
<ide><path>guides/source/action_view_overview.md <ide> strip_links('Blog: <a href="http://myblog.com/">Visit</a>.') <ide> #### strip_tags(html) <ide> <ide> Strips all HTML tags from the html, including comments. <del>This uses the html-scanner tokenizer and so its HTML parsing ability is limited by that of html-scanne...
1
Javascript
Javascript
fix minor typo
6ca5272f94f095b864682f438e4cd916aae073ad
<ide><path>src/ng/directive/ngClass.js <ide> function classDirective(name, selector) { <ide> * @name ng.directive:ngClass <ide> * <ide> * @description <del> * The `ngClass` allows you to set CSS class on HTML element dynamically by databinding an <del> * expression that represents all classes to be added. <add> * Th...
1
Text
Text
use h1 for packages and features sections
cecec376e3049abc4a0a22648334999c4988ae6e
<ide><path>docs/features.md <del>## Features <add># Features <ide><path>docs/packages/intro.md <del>## Packages <add># Packages <ide> <ide> ### Package Layout <ide>
2
Javascript
Javascript
treat \ the same as /
9520adeb37f5ebe02a68669ec97770f4869705bb
<ide><path>lib/url.js <ide> Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { <ide> throw new TypeError("Parameter 'url' must be a string, not " + typeof url); <ide> } <ide> <add> // Copy chrome, IE, opera backslash-handling behavior. <add> // See: https://code.google.com/p/chromium/is...
2
Javascript
Javascript
add help button toggle
fc97bc826620a3c90fa88eaff7c67ba6395afd25
<ide><path>client/main.js <ide> main = (function(main) { <ide> }); <ide> <ide> $(helpChatBtnClass).on('click', function() { <del> main.chat.helpChat.toggleChat(true); <add> // is button already pressed? <add> // no? open chat <add> // yes? close chat <add> var shouldChatB...
1
Javascript
Javascript
increase coverage for repl
5934a445c344309f735c3f1b79ae5777d75f4ca7
<ide><path>test/parallel/test-repl-envvars.js <ide> const stream = require('stream'); <ide> const REPL = require('internal/repl'); <ide> const assert = require('assert'); <ide> const inspect = require('util').inspect; <add>const { REPL_MODE_SLOPPY, REPL_MODE_STRICT } = require('repl'); <ide> <ide> const tests = [ <ide...
1
Python
Python
add test for weighted histogram mismatch
0033161ec65311c600dffc6d7af8daf4116b760f
<ide><path>numpy/lib/tests/test_histograms.py <ide> def test_outliers(self): <ide> h, b = histogram(a, bins=8, range=[1, 9], weights=w) <ide> assert_equal(h, w[1:-1]) <ide> <add> def test_arr_weights_mismatch(self): <add> a = np.arange(10) + .5 <add> w = np.arange(11) + .5 <add> ...
1
PHP
PHP
add bc test for
dc7b8cbb89c92dc46777abcad90fdfb50e704515
<ide><path>lib/Cake/Test/Case/Model/ModelValidationTest.php <ide> public function testIsUniqueValidator() { <ide> $this->assertFalse($Article->validates(), 'Should fail, conditions are combined with or'); <ide> } <ide> <add>/** <add> * Test backward compatibility of the isUnique method when used as a validator for ...
1
Javascript
Javascript
fix lint for moved reactnative
744548ad143b7350e7e1d7d39e72bf2f4108fee6
<ide><path>src/renderers/native/ReactIOS/IOSDefaultEventPluginOrder.js <ide> <ide> var IOSDefaultEventPluginOrder = [ <ide> 'ResponderEventPlugin', <del> 'IOSNativeBridgeEventPlugin' <add> 'IOSNativeBridgeEventPlugin', <ide> ]; <ide> <ide> module.exports = IOSDefaultEventPluginOrder; <ide><path>src/renderers/nati...
20
Text
Text
consolidate node.js instructions
dab119f2be22534980261fc14fdf442293eb7b69
<ide><path>docs/how-to-setup-freecodecamp-locally.md <ide> Software required for both Docker and Local builds: <ide> | [Node.js](http://nodejs.org) | `12.x` | [LTS Schedule](https://github.com/nodejs/Release#release-schedule) | <ide> | npm (comes bundled with Node) | `6.x` | Does not have LTS releases, we use the...
1
Ruby
Ruby
rescue the assertion exception
0579f303ec0968e66a0e17bc494b06d0996aaffd
<ide><path>activesupport/test/test_test.rb <ide> def test_array_of_expressions <ide> end <ide> <ide> def test_array_of_expressions_identify_failure <del> assert_difference ['@object.num', '1 + 1'] do <del> @object.increment <add> assert_raises(MiniTest::Assertion) do <add> assert_differ...
1
Text
Text
fix incorrect heading level
d4d6dfdb9412419ede5059e72a407cdbbde8a4dd
<ide><path>doc/api/dns.md <ide> Here is an example of the result object: <ide> minttl: 60 } ] <ide> ``` <ide> <del>## `dnsPromises.resolveCaa(hostname)` <add>### `dnsPromises.resolveCaa(hostname)` <ide> <!-- YAML <ide> added: v15.0.0 <ide> -->
1
Text
Text
add stub linux and windows requirements
bb2527bbb81287ce1a660ab6a4eeb7c09dc5e84a
<ide><path>README.md <ide> Atom will automatically update when a new release is available. <ide> * [node.js](http://nodejs.org/) <ide> * Command Line Tools for [Xcode](https://developer.apple.com/xcode/downloads/) <ide> <add>**Linux Requirements** <add> * [node.js](http://nodejs.org/) <add> <add>**Windows Require...
1
Javascript
Javascript
upgrade externalsplugin to es6
994bc7a7018c259a6affcf2a25a3bdc82537c3ab
<ide><path>lib/ExternalsPlugin.js <ide> MIT License http://www.opensource.org/licenses/mit-license.php <ide> Author Tobias Koppers @sokra <ide> */ <add>"use strict"; <add> <ide> var ExternalModuleFactoryPlugin = require("./ExternalModuleFactoryPlugin"); <ide> <del>function ExternalsPlugin(type, externals) { <del> th...
1
Text
Text
simplify recommendation in webcrypto.md
c9bb345b05307688bc6b727580121a9bf2819108
<ide><path>doc/api/webcrypto.md <ide> added: v15.0.0 <ide> * Type: {ArrayBuffer|TypedArray|DataView|Buffer} <ide> <ide> The initialization vector must be unique for every encryption operation <del>using a given key. It is recommended by the AES-GCM specification that <add>using a given key. The AES-GCM specification r...
1
Ruby
Ruby
permit glibc 2.35
1ac5fc05bd4c46c5f5812428790f465f531dec4e
<ide><path>Library/Homebrew/formula_auditor.rb <ide> def audit_postgresql <ide> <ide> def audit_glibc <ide> return unless @core_tap <del> return if formula.name != "glibc" || formula.version.to_s == OS::CI_GLIBC_VERSION <add> return if formula.name != "glibc" || [OS::CI_GLIBC_VERSION, "2.35"].inclu...
1
Ruby
Ruby
unify heredoc style
50fee143583b129a86a56bdc21d1f4ff4b9f5812
<ide><path>Library/Homebrew/cask/lib/hbc/cli.rb <ide> def self.parser <ide> end <ide> <ide> opts.on("--binarydir=PATH") do <del> opoo <<-EOF.undent <add> opoo <<-EOS.undent <ide> Option --binarydir is obsolete! <ide> Homebrew-Cask now uses the same location as your Homebre...
13
Python
Python
support sentinel with ssl
18a0963ed36f87b8fb884ad27cfc2b7f1ca9f53c
<ide><path>celery/backends/redis.py <ide> class RedisBackend(BaseKeyValueStoreBackend, AsyncBackendMixin): <ide> <ide> #: :pypi:`redis` client module. <ide> redis = redis <add> connection_class_ssl = redis.SSLConnection if redis else None <ide> <ide> #: Maximum number of connections in the pool. <ide> ...
2
Python
Python
fix typo in docstring
af36d77d01866d310b0258f69d11a23d829dc231
<ide><path>spacy/tests/regression/test_issue4501-5000.py <ide> def test_issue4590(en_vocab): <ide> <ide> <ide> def test_issue4651_with_phrase_matcher_attr(): <del> """Test that the EntityRuler PhraseMatcher is deserialize correctly using <add> """Test that the EntityRuler PhraseMatcher is deserialized correctly...
1
Javascript
Javascript
use content-range instead of content-length
c02b2cb37c6c82a65b8877b5671122b6c23ae6b7
<ide><path>src/core/worker.js <ide> var WorkerMessageHandler = PDFJS.WorkerMessageHandler = { <ide> <ide> var length = fullRequestXhr.getResponseHeader('Content-Length'); <ide> length = parseInt(length, 10); <add>//#if (GENERIC || CHROME) <add> if (fullRequestXhr.status === 206) { <add> ...
1
PHP
PHP
use the getattributes method on insert
c5401623dcb8eb3b7511c821c60d97427579cac5
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> protected function performInsert(Builder $query) <ide> // If the model has an incrementing key, we can use the "insertGetId" method on <ide> // the query builder, which will give us back the final inserted ID for this <ide> // table fro...
1
Ruby
Ruby
remove resolver autoload
d1e8912cff88ca93ed63120e75d74aee9e5ef76e
<ide><path>activerecord/lib/active_record/connection_adapters.rb <ide> module ConnectionAdapters <ide> autoload :Column <ide> autoload :PoolConfig <ide> autoload :PoolManager <del> autoload :Resolver <ide> <ide> autoload_at "active_record/connection_adapters/abstract/schema_definitions" do <ide> ...
1
Javascript
Javascript
remove unused svelte spike code..
2861674ec08fe3c5342af5a084d8ae55e09a20e7
<ide><path>broccoli/deprecated-features.js <ide> function handleExportedDeclaration(d, map) { <ide> } <ide> <ide> module.exports = DEPRECATED_FEATURES; <del> <del>// TODO: remove this, it is primarily just for testing if svelte is working... <del>function svelte(infile, outfile) { <del> console.log(DEPRECATED_FEATURE...
1
Ruby
Ruby
remove unnecessary array allocations
dc79f803b1a5b0436a3375999bc10403c3edb513
<ide><path>Library/Homebrew/dependencies.rb <ide> class Dependencies <ide> include Enumerable <ide> <del> def initialize(*args) <del> @deps = Array.new(*args) <add> def initialize <add> @deps = [] <ide> end <ide> <ide> def each(*args, &block) <ide> def inspect <ide> class Requirements <ide> include En...
1
PHP
PHP
fix doc string
d4f4f261d62e383ba6f38c856d644a9627c84a5c
<ide><path>src/Http/Response.php <ide> protected function _createStream(): void <ide> * Formats the Content-Type header based on the configured contentType and charset <ide> * the charset will only be set in the header if the response is of type text/* <ide> * <del> * @param string|null $type The typ...
1
Text
Text
fix extraneous markup in changelog
dc0bea7a52d4646f46ced75828a5b92908af3374
<ide><path>CHANGELOG.md <ide> <ide> ### Major changes <ide> <del>- **Initial render now uses `document.createElement` instead of generating HTML.** Previously we would generate a large string of HTML and then set `node.innerHTML`. At the time, this was decided to be faster than using `document.createElement` for the ...
1
Python
Python
allow lowercase log levels.
08fb1d06cff06397f365c546032479b8d9925931
<ide><path>celery/bin/base.py <ide> def __init__(self): <ide> super().__init__(('DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL', 'FATAL')) <ide> <ide> def convert(self, value, param, ctx): <add> value = value.upper() <ide> value = super().convert(value, param, ctx) <ide> return mleve...
1
Javascript
Javascript
update example to use a module
474251928ecba842610ea0aee3b0f51f317e0dc9
<ide><path>src/ng/directive/ngSwitch.js <ide> * <ide> * <ide> * @example <del> <example module="ngAnimate" deps="angular-animate.js" animations="true"> <add> <example module="switchExample" deps="angular-animate.js" animations="true"> <ide> <file name="index.html"> <del> <div ng-controller="Ctrl"> <add> ...
1
Javascript
Javascript
catch only chunk loading errors
d900e7df0b5c65d6c81b8c66660d0c34c3fe963d
<ide><path>lib/dependencies/DepBlockHelpers.js <ide> var DepBlockHelpers = exports; <ide> DepBlockHelpers.getLoadDepBlockWrapper = function(depBlock, outputOptions, requestShortener, name) { <ide> var promiseCode = DepBlockHelpers.getDepBlockPromise(depBlock, outputOptions, requestShortener, name); <ide> return [ <de...
1
Java
Java
use volatile for subscriber in base publishers
06b2ab39088f128d3aa5ca355d0bc0f2c7b36ab3
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerReadPublisher.java <ide> <ide> private volatile long demand; <ide> <del> private volatile boolean completionBeforeDemand; <del> <del> @Nullable <del> private volatile Throwable errorBeforeDemand; <del> <ide> @SuppressWarnin...
2
Mixed
Python
make filtering optional, and pluggable
47b534a13e42d498629bf9522225633122c563d5
<ide><path>docs/api-guide/filtering.md <add># Filtering <add> <add>> The root QuerySet provided by the Manager describes all objects in the database table. Usually, though, you'll need to select only a subset of the complete set of objects. <add>> <add>> &mdash; [Django documentation][cite] <add> <add>The default behav...
11
Javascript
Javascript
use const or let and assert.strictequal
8a3c7d76b38c848d33acbf963e11d2b6be1a44ec
<ide><path>test/parallel/test-fs-read-file-sync.js <ide> 'use strict'; <del>var common = require('../common'); <del>var assert = require('assert'); <del>var path = require('path'); <del>var fs = require('fs'); <add>const common = require('../common'); <add>const assert = require('assert'); <add>const path = require('pa...
1
Javascript
Javascript
convert the page view to es6 syntax
6dfdff2f03d764f1c2d177586ffd5998d1f4edfc
<ide><path>web/pdf_page_view.js <ide> import { <ide> import { getGlobalEventBus } from './dom_events'; <ide> import { RenderingStates } from './pdf_rendering_queue'; <ide> <del>var TEXT_LAYER_RENDER_DELAY = 200; // ms <add>const TEXT_LAYER_RENDER_DELAY = 200; // ms <ide> <ide> /** <ide> * @typedef {Object} PDFPageVi...
1
Text
Text
add changelog entry for
2a41b6ea98cdf227b93cc483e9a3f3640db54a05
<ide><path>actionview/CHANGELOG.md <add>* Add `config.action_view.image_loading` to configure the default value of <add> the `image_tag` `:loading` option. <add> <add> By setting `config.action_view.image_loading = "lazy"`, an application can opt in to <add> lazy loading images sitewide, without changing vie...
1
Javascript
Javascript
add sendflash to send a flash message json
b8f8ea80cf10f9df66a37fb5cd6f7f25bd2a1137
<ide><path>server/middlewares/express-extensions.js <ide> export default function() { <ide> res.renderWithoutFlash = res.render; <ide> // render to observable stream using build in render <ide> res.render$ = Observable.fromNodeCallback(res.render, res); <add> res.sendFlash = (type, message) => { <add> ...
1
PHP
PHP
remove superfluous whitespace in doc blocks
05305555a38008b238c544a2c9a57d007806f2e0
<ide><path>src/Auth/AbstractPasswordHasher.php <ide> <ide> /** <ide> * Abstract password hashing class <del> * <ide> */ <ide> abstract class AbstractPasswordHasher <ide> { <ide><path>src/Auth/BaseAuthenticate.php <ide> <ide> /** <ide> * Base Authentication class with common methods and properties. <del> * <ide> *...
300
Javascript
Javascript
use findnextwhere correctly
c476db0dd7269ef47e36162b3f9ab2323f409d2e
<ide><path>src/Chart.Core.js <ide> return animationWrapper.chartInstance === chartInstance; <ide> }); <ide> <del> if (index != -1) <add> if (index) <ide> { <ide> this.animations.splice(index, 1); <ide> }
1
Go
Go
remove misleading comment
99c59d5988d20a6722224da918fdec299d3aaded
<ide><path>distribution/pull_v2.go <ide> func (p *v2Puller) pullV2Tag(ctx context.Context, ref reference.Named) (tagUpdat <ide> tagOrDigest string // Used for logging/progress only <ide> ) <ide> if tagged, isTagged := ref.(reference.NamedTagged); isTagged { <del> // NOTE: not using TagService.Get, since it uses HE...
1
Text
Text
update variable names.
77f36c7194f405684b00518882dfceaaf92b68b0
<ide><path>guide/english/csharp/null-conditional-operator/index.md <ide> However, in C# 6.0 null-conditional operators were introduced, so now the above <ide> be represented as follows: <ide> <ide> ```csharp <del>Address address = student?.Address; <add>Address address = employee?.Address; <ide> ``` <ide> <ide> If em...
1
Ruby
Ruby
extract column check in values_list
89fc7fbf82c29463e20550cca3e10453614b61f8
<ide><path>activerecord/lib/active_record/insert_all.rb <ide> <ide> module ActiveRecord <ide> class InsertAll <del> attr_reader :model, :connection, :inserts, :on_duplicate, :returning, :unique_by <add> attr_reader :model, :connection, :inserts, :keys <add> attr_reader :on_duplicate, :returning, :unique_by ...
1
Text
Text
add badge for coverage status
428cbe83e1158e8256b2ba83eab6ab8c61b5e373
<ide><path>README.md <ide> <ide> [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.txt) <ide> [![Build Status](https://img.shields.io/travis/cakephp/cakephp/master.svg?style=flat-square)](https://travis-ci.org/cakephp/cakephp) <add>[![Coverage Status](https://img...
1
Text
Text
add facebook api key instructions
102d504965e90b68a4ad3231d33923ab1fac7854
<ide><path>README.md <ide> Obtaining API Keys <ide> ------------------ <ide> <ide> <img src="http://images.google.com/intl/en_ALL/images/srpr/logo6w.png" width="200"> <del> - Go to [https://cloud.google.com/console/project](https://cloud.google.com/console/project) <del> - Click **CREATE PROJECT** button <del> - Enter...
1
Ruby
Ruby
handle sigttou and sigttin to avoid hangs
8eb4756d3efcb13d5d39a0cb0b3d05aef1dfc56a
<ide><path>Library/Homebrew/sandbox.rb <ide> def exec(*args) <ide> end <ide> <ide> write_to_pty = proc do <add> # Don't hang if stdin is not able to be used - throw EIO instead. <add> old_ttin = trap(:TTIN, "IGNORE") <add> <ide> # Update the window size whenever the parent t...
1
PHP
PHP
add empty lines
6a09db676e53f95f07c7ff252dd1842fea053fdc
<ide><path>src/Illuminate/Filesystem/Filesystem.php <ide> public function get($path, $lock = false) <ide> if ($lock) { <ide> return $this->sharedGet($path, $lock); <ide> } <add> <ide> return file_get_contents($path); <ide> } <ide> <ide> public function shared...
1
Go
Go
remove unused sysinfo parameter to runconfig.parse
e45b0f92711ff190cff4b61b2ea80cdd53203a16
<ide><path>api/client/commands.go <ide> func (cli *DockerCli) CmdCreate(args ...string) error { <ide> flName = cmd.String([]string{"-name"}, "", "Assign a name to the container") <ide> ) <ide> <del> config, hostConfig, cmd, err := runconfig.Parse(cmd, args, nil) <add> config, hostConfig, cmd, err := runconfig.Parse...
8
Ruby
Ruby
improve exit codes
e9158ca6dc99e3bb7ae475bee98153e78cafa2b0
<ide><path>Library/Homebrew/cmd/upgrade.rb <ide> def upgrade <ide> <ide> Homebrew.perform_preinstall_checks <ide> <del> outdated = if ARGV.named.empty? <add> if ARGV.named.empty? <ide> require 'cmd/outdated' <del> Homebrew.outdated_brews <add> outdated = Homebrew.outdated_brews <ide> els...
1
Go
Go
reduce allocations for logfile reader
933a87236f57af13befe3dc83a396cefced23300
<ide><path>daemon/logger/jsonfilelog/jsonlog/jsonlog.go <ide> func (jl *JSONLog) Reset() { <ide> jl.Log = "" <ide> jl.Stream = "" <ide> jl.Created = time.Time{} <del> jl.Attrs = make(map[string]string) <add> for k := range jl.Attrs { <add> delete(jl.Attrs, k) <add> } <ide> } <ide><path>daemon/logger/jsonfilelog/rea...
7
Ruby
Ruby
add removed files too
3a0204dd0b1e31f1ebfb34224e1ffb2d3ca84b8d
<ide><path>Library/Homebrew/formula_installer.rb <ide> def git_etc_preinstall <ide> etc.cd do <ide> quiet_system 'git', 'init' unless (etc+'.git').directory? <ide> quiet_system 'git', 'checkout', '-B', "#{f.name}-last" <del> system 'git', 'add', '.' <add> system 'git', 'add', '--all', '.' <ide...
1
Text
Text
suggest usage of https instead of git protocol
82f1d3c82a820a8911478e43a663114153c97540
<ide><path>README.md <ide> directory `build/chromium`. <ide> <ide> To get a local copy of the current code, clone it using git: <ide> <del> $ git clone git://github.com/mozilla/pdf.js.git <add> $ git clone https://github.com/mozilla/pdf.js.git <ide> $ cd pdf.js <ide> <ide> Next, install Node.js via the [of...
1
Python
Python
call replace_listener attr if it's available
44a3a585992bcdf7625aacbb3984796f489cb10e
<ide><path>spacy/language.py <ide> def replace_listeners( <ide> util.set_dot_to_object(pipe_cfg, listener_path, tok2vec_cfg["model"]) <ide> # Go over the listener layers and replace them <ide> for listener in pipe_listeners: <del> util.replace_model_node(pipe.model...
1
Ruby
Ruby
introduce class_names helper
f24734a7e12a1514d2570f516f2a50aee03d3d44
<ide><path>actionview/lib/action_view/helpers/tag_helper.rb <ide> def boolean_tag_option(key) <ide> def tag_option(key, value, escape) <ide> case value <ide> when Array, Hash <del> value = build_tag_values(value) if key.to_s == "class" <add> value = TagHelper.build_tag_...
2
Text
Text
specify default encoding in writable.write
9dcde529a47011c67e928a15f900198ba52637ee
<ide><path>doc/api/stream.md <ide> changes: <ide> not operating in object mode, `chunk` must be a string, `Buffer` or <ide> `Uint8Array`. For object mode streams, `chunk` may be any JavaScript value <ide> other than `null`. <del>* `encoding` {string} The encoding, if `chunk` is a string <add>* `encoding` {string}...
1
PHP
PHP
fix typehint inconsistency
3c30fddff8fb81c9f31331fc93c7932161447b0a
<ide><path>src/Error/Debugger.php <ide> use InvalidArgumentException; <ide> use ReflectionObject; <ide> use ReflectionProperty; <add>use Throwable; <ide> <ide> /** <ide> * Provide custom logging and error handling. <ide> public static function trace(array $options = []) <ide> * will be displayed. <ide> * ...
1