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
fix performance regression
9cbf6af5b5ace0cc53c1a1da3234aeca02522ec6
<ide><path>lib/internal/streams/lazy_transform.js <ide> module.exports = LazyTransform; <ide> <ide> function LazyTransform(options) { <ide> this._options = options; <del> this.writable = true; <del> this.readable = true; <ide> } <ide> ObjectSetPrototypeOf(LazyTransform.prototype, stream.Transform.prototype); <ide>...
1
Ruby
Ruby
add arm to cpu.type
c6cbf9590d897db7cff7f2f81863ae34ccc947ed
<ide><path>Library/Homebrew/extend/os/linux/hardware/cpu.rb <ide> def cpuinfo <ide> def type <ide> @type ||= if cpuinfo =~ /Intel|AMD/ <ide> :intel <add> elsif cpuinfo =~ /ARM|Marvell/ <add> :arm <ide> else <ide> :dunno <ide> end <ide> def cores <ide> ...
1
Ruby
Ruby
add view paths to engine setup
02c5137eadbb3530033d919b7aebeb6f4f389b83
<ide><path>actionmailer/lib/action_mailer/railtie.rb <ide> class Railtie < Rails::Railtie <ide> <ide> initializer "action_mailer.view_paths" do |app| <ide> # TODO: this should be combined with the logic for default config.action_mailer.view_paths <del> view_path = ActionView::PathSet.type_cast(app.confi...
7
Text
Text
standardize typography for _semantic versioning_
87089bf8c63db4696090b52bd8b2d9794ffe83c2
<ide><path>README.md <ide> Looking for help? Check out the <ide> * **Nightly**: Code from the Current branch built every 24-hours when there are <ide> changes. Use with caution. <ide> <del>Current and LTS releases follow [Semantic Versioning](https://semver.org). A <add>Current and LTS releases follow [semantic vers...
2
Python
Python
fix some bare except statements
34434c5f44ed19e6a8e70996782f9839d6659e1d
<ide><path>glances/exports/glances_cassandra.py <ide> def init(self): <ide> # Table <ide> try: <ide> session.execute("CREATE TABLE %s (plugin text, time timeuuid, stat map<text,float>, PRIMARY KEY (plugin, time)) WITH CLUSTERING ORDER BY (time DESC)" % self.table) <del> except: <add> ...
4
Javascript
Javascript
improve cross-platform consistency
8b2f96609d289f81dd5f7091da1f9f1a1c40b8bf
<ide><path>client/src/templates/Challenges/components/Hotkeys.js <ide> import { HotKeys, GlobalHotKeys } from 'react-hotkeys'; <ide> import { navigate } from 'gatsby'; <ide> <ide> const keyMap = { <del> EXECUTE_CHALLENGE: 'ctrl+enter', <add> EXECUTE_CHALLENGE: ['ctrl+enter', 'cmd+enter'], <ide> NAVIGATE_PREV: ['ct...
1
PHP
PHP
get usages
706d0d6aafee7ac942000cffa55b84ff4b24f82e
<ide><path>src/Illuminate/Broadcasting/BroadcastManager.php <ide> protected function callCustomCreator(array $config) <ide> protected function createPusherDriver(array $config) <ide> { <ide> return new PusherBroadcaster( <del> new Pusher($config['key'], $config['secret'], $config['app_id'], a...
3
Ruby
Ruby
fix failing test under sqlite3
813e4cc14233d8c87b6b7165592c48998af48072
<ide><path>activerecord/test/cases/migration_test.rb <ide> class MigrationTest < ActiveRecord::TestCase <ide> <ide> def setup <ide> super <del> %w(reminders people_reminders prefix_reminders_suffix).each do |table| <add> %w(reminders people_reminders prefix_reminders_suffix p_things_s).each do |table| <ide...
1
PHP
PHP
add command to clean batches table
3b87b6f972de4445bed7458c810671f2bbc861cb
<ide><path>src/Illuminate/Bus/BatchRepository.php <ide> public function delete(string $batchId); <ide> * @return mixed <ide> */ <ide> public function transaction(Closure $callback); <add> <add> /** <add> * Prune all of the entries older than the given date. <add> * <add> * @param \DateTime...
5
Ruby
Ruby
add java_cache env
b331e03c39f247beeee8c6083745d48b35b138f4
<ide><path>Library/Homebrew/extend/ENV/shared.rb <ide> def fortran <ide> set_cpu_flags(flags) <ide> end <ide> <add> def java_cache <add> append "_JAVA_OPTIONS", "-Duser.home=#{HOMEBREW_CACHE}/java_cache" <add> end <add> <ide> # ld64 is a newer linker provided for Xcode 2.5 <ide> # @private <ide> def l...
1
Javascript
Javascript
fix lint errors
6fec6507ed7d316551ad78975d5037f1138b6f9c
<ide><path>src/renderers/dom/fiber/ReactDOMFiber.js <ide> var DOMRenderer = ReactFiberReconciler({ <ide> parentInstance.appendChild(child); <ide> }, <ide> <del> insertBefore(parentInstance : Instance, child : Instance | TextInstance, beforeChild : Instance | TextInstance) : void { <add> insertBefore( <add> ...
3
Javascript
Javascript
extract mockwindow, use tohavebeencalledonce
cbedf556416522a0a4b08abd3101e856e59c6a6a
<ide><path>test/BrowserSpecs.js <ide> 'use strict'; <ide> <del>describe('browser', function(){ <add>function MockWindow() { <add> var events = {}; <add> var timeouts = this.timeouts = []; <ide> <del> var browser, fakeWindow, xhr, logs, scripts, removedScripts, setTimeoutQueue, sniffer; <add> this.setTimeout = fun...
1
Python
Python
set version to v2.1.7.dev1
97c51ef93bbad7bb63be3c5280ce2e48af6db513
<ide><path>spacy/about.py <ide> # fmt: off <ide> <ide> __title__ = "spacy" <del>__version__ = "2.1.7.dev0" <add>__version__ = "2.1.7.dev1" <ide> __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython" <ide> __uri__ = "https://spacy.io" <ide> __author__ = "Explosion AI"
1
Ruby
Ruby
update variable name and msg string per comments
77c242548eab3df72f4905ffb29b896073ee11d2
<ide><path>Library/Homebrew/cmd/update-report.rb <ide> def update_report <ide> HOMEBREW_REPOSITORY.cd do <ide> analytics_message_displayed = <ide> Utils.popen_read("git", "config", "--local", "--get", "homebrew.analyticsmessage").chuzzle <del> cask_analytics_message_displayed = <add> caskana...
1
Javascript
Javascript
update skeleton in existing loop
e80b396b90af872ff91e6f609b7c340dea111f97
<ide><path>src/renderers/WebGLRenderer.js <ide> THREE.WebGLRenderer = function ( parameters ) { <ide> <ide> if ( camera.parent === undefined ) camera.updateMatrixWorld(); <ide> <del> // update Skeleton objects <del> <del> scene.traverse( function ( object ) { <del> <del> if ( object instanceof THREE.SkinnedMesh...
1
Text
Text
add mention of canary vs stable
6c1389b69e83794fc96c405126c9366d99c09055
<ide><path>README.md <ide> Next.js is a minimalistic framework for server-rendered React applications. <ide> <ide> --- <ide> <add>**The below readme is the documentation for the `canary` (prerelease) branch. To view the documentation for the latest stable Next.js version visit [nextjs.org/docs](https://nextjs.org/doc...
1
Ruby
Ruby
make average compatible accross ruby versions
d237c7c72ccfd87302983669f83c8c90d2aec82e
<ide><path>activerecord/lib/active_record/relation/calculations.rb <ide> def type_cast_calculated_value(value, type, operation = nil) <ide> case operation <ide> when "count" then value.to_i <ide> when "sum" then type.deserialize(value || 0) <del> when "average" then value.respond_to...
1
Javascript
Javascript
simplify test runner
98ba33e7a3305b898f0262180706df5cb8d2e41c
<ide><path>curriculum/test/test-challenges.js <ide> const DeepFreeze = o => { <ide> return o; <ide> }; <ide> <del>function isPromise(value) { <del> return ( <del> value && <del> typeof value.subscribe !== 'function' && <del> typeof value.then === 'function' <del> ); <del>} <del> <ide> function transformSa...
1
Text
Text
remove comma and correct the sentence
298159c73abd0c085f07f4ad9ca1d080f5dcc55c
<ide><path>curriculum/challenges/english/06-quality-assurance/quality-assurance-and-testing-with-chai/assert-deep-equality-with-.deepequal-and-.notdeepequal.md <ide> dashedName: assert-deep-equality-with--deepequal-and--notdeepequal <ide> <ide> # --description-- <ide> <del>As a reminder, this project is being built u...
2
Text
Text
update changelog [ci skip]
2d4cfb28408f53daea11f45fb5e0aebdce8963d3
<ide><path>railties/CHANGELOG.md <add>* Configure `secrets.yml` and `database.yml` to read configuration <add> from the system environment by default for production. <add> <add> *José Valim* <add> <ide> * `config.assets.raise_runtime_errors` is set to true by default <ide> <ide> This option has been intr...
1
Javascript
Javascript
remove legacy warning in keyframetrack
c184493e3cf4fb22f50ed330a6456fd705052def
<ide><path>src/animation/KeyframeTrack.js <ide> Object.assign( THREE.KeyframeTrack, { <ide> <ide> if ( json.times === undefined ) { <ide> <del> console.warn( "legacy JSON format detected, converting" ); <del> <ide> var times = [], values = []; <ide> <ide> THREE.AnimationUtils.flattenJSON( json.keys, times,...
1
Javascript
Javascript
fix shadowing of apolloclient
d166840e5a2d10ec10dc40105f79f2de80a30c42
<ide><path>examples/with-apollo/lib/apollo.js <ide> import { InMemoryCache } from 'apollo-cache-inmemory' <ide> import { HttpLink } from 'apollo-link-http' <ide> import fetch from 'isomorphic-unfetch' <ide> <del>let apolloClient = null <add>let globalApolloClient = null <ide> <ide> /** <ide> * Creates and provides t...
1
PHP
PHP
move route hook into a separate interface
bb152bdb673a77ee9193eb8f34a1616e02ad90b4
<ide><path>src/Console/CommandRunner.php <ide> use Cake\Console\Exception\MissingOptionException; <ide> use Cake\Console\Exception\StopException; <ide> use Cake\Core\ConsoleApplicationInterface; <del>use Cake\Core\HttpApplicationInterface; <ide> use Cake\Core\PluginApplicationInterface; <ide> use Cake\Event\EventDispat...
6
Javascript
Javascript
add note about view rerender to didinsertelement
908981282ed8a3ad9ea388b51dd60cada92cdd47
<ide><path>packages/ember-views/lib/views/view.js <ide> Ember.View = Ember.CoreView.extend( <ide> willInsertElement: Ember.K, <ide> <ide> /** <del> Called when the element of the view has been inserted into the DOM. <del> Override this function to do any set up that requires an element in the <del> docume...
1
Text
Text
update parameter type for fs.chmod()
283e7a43dc401da1437dada74a6fb4321dd5555e
<ide><path>doc/api/fs.md <ide> changes: <ide> --> <ide> <ide> * `path` {string|Buffer|URL} <del>* `mode` {integer} <add>* `mode` {string|integer} <ide> * `callback` {Function} <ide> * `err` {Error} <ide> <ide> changes: <ide> --> <ide> <ide> * `path` {string|Buffer|URL} <del>* `mode` {integer} <add>* `mode` {string...
1
PHP
PHP
fix drop_foreign sql grammar for mysql
d43157b61f8e9f035403f3a220123f7fea007589
<ide><path>laravel/database/schema/grammars/mysql.php <ide> protected function drop_key(Table $table, Fluent $command) <ide> */ <ide> public function drop_foreign(Table $table, Fluent $command) <ide> { <del> return $this->drop_constraint($table, $command); <add> return "ALTER TABLE ".$this->wrap($table)." DROP ...
1
Ruby
Ruby
remove basic authentication support for github
09c3058618a5f938f5d648a5dc510bd3f770cf3f
<ide><path>Library/Homebrew/dev-cmd/pr-pull.rb <ide> def changed_formulae(tap, original_commit) <ide> end <ide> <ide> def download_artifact(url, dir, pr) <del> token, username = GitHub.api_credentials <del> case GitHub.api_credentials_type <del> when :env_username_password, :keychain_username_password <de...
2
Java
Java
remove unused imports in tests
a30cf3058eee3737074a35f14408f9ec28feea1a
<ide><path>spring-test/src/main/java/org/springframework/test/web/servlet/setup/DefaultMockMvcBuilder.java <ide> /* <del> * Copyright 2002-2013 the original author or authors. <add> * Copyright 2002-2014 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <i...
2
Ruby
Ruby
fix args error
7e47d1be94d02522057554cca73d77a41c3395ce
<ide><path>Library/Homebrew/cmd/log.rb <ide> def log <ide> ENV["PATH"] = ENV["HOMEBREW_PATH"] <ide> <ide> if args.no_named? <del> git_log HOMEBREW_REPOSITORY <add> git_log HOMEBREW_REPOSITORY, args: args <ide> else <ide> path = Formulary.path(args.named.first) <ide> tap = Tap.from_pat...
1
Javascript
Javascript
remove last change
516b6ab872060be003bc9f01733d8e2414a3fc55
<ide><path>src/main-process/atom-window.js <ide> const getAppName = require('../get-app-name'); <ide> const path = require('path'); <ide> const url = require('url'); <ide> const { EventEmitter } = require('events'); <del>const { compose } = require('@hyurl/structured-clone'); <ide> const StartupTime = require('../start...
1
Mixed
Javascript
expose buildid to custom webpack configs
ddd30787efbf699beb873f07df5333f01c58ba83
<ide><path>readme.md <ide> In order to extend our usage of `webpack`, you can define a function that extend <ide> // (But you could use ES2015 features supported by your Node.js version) <ide> <ide> module.exports = { <del> webpack: (config, { dev }) => { <add> webpack: (config, { buildId, dev }) => { <ide> // P...
2
PHP
PHP
remove deprecated method
fcad5ec272c9406e2afa9f1fde25271920ca6e24
<ide><path>src/Illuminate/Collections/Traits/EnumeratesValues.php <ide> public function uniqueStrict($key = null) <ide> return $this->unique($key, true); <ide> } <ide> <del> /** <del> * Take items in the collection until the given condition is met. <del> * <del> * This is an alias to the "ta...
1
Mixed
Go
update secret command
d87c91e39ff0d3defb5b98fdc9275c8c0bfc987e
<ide><path>cli/command/secret/create.go <ide> func newSecretCreateCommand(dockerCli *command.DockerCli) *cobra.Command { <ide> } <ide> <ide> cmd := &cobra.Command{ <del> Use: "create [name]", <add> Use: "create [OPTIONS] SECRET [SECRET...]", <ide> Short: "Create a secret using stdin as content", <ide> Args...
5
PHP
PHP
fix missing arguments in development errors
219db9d0c2a1e1362b4ce7d8e59a521d332e1c19
<ide><path>src/Error/Renderer/WebExceptionRenderer.php <ide> public function render(): ResponseInterface <ide> if ($isDebug) { <ide> $trace = (array)Debugger::formatTrace($exception->getTrace(), [ <ide> 'format' => 'array', <del> 'args' => false, <add> '...
2
PHP
PHP
remove outdated doc block note
232abb7f0607b2f67fefe9271af21348eaa3eb0f
<ide><path>src/Validation/Validator.php <ide> public function __construct() <ide> * @param array $data The data to be checked for errors <ide> * @param bool $newRecord whether the data to be validated is new or to be updated. <ide> * @return array Array of invalid fields <del> * @see Validator::valid...
1
Go
Go
remove all images matching a regexp
74c88fdbc0180c276f75322066e7da2e3cd38f6d
<ide><path>image/image.go <ide> import ( <ide> "os" <ide> "path" <ide> "path/filepath" <add> "regexp" <ide> "sort" <ide> "strings" <ide> "time" <ide> func (index *Index) Delete(name string) error { <ide> return nil <ide> } <ide> <add>// DeleteMatch deletes all images whose name matches `pattern` <add>func (inde...
2
Text
Text
add helpers to contribute docs
87830f3a9c4a3b0cab09aa152ec7e043f24cdba2
<ide><path>docs/_sidebar.md <ide> - [Work on video challenges](how-to-help-with-video-challenges.md) <ide> - [Work on the news theme](how-to-work-on-the-news-theme.md) <ide> - [Work on the docs theme](how-to-work-on-the-docs-theme.md) <add> - [Work on practice projects](how-to-work-on-practice-projects.md) <ide>...
3
Text
Text
improve documentation for using react with webpack
a3d6553a304d42794363efeefbf50e8e6883424e
<ide><path>docs/docs/getting-started.md <ide> $ npm install --save react react-dom babelify babel-preset-react <ide> $ browserify -t [ babelify --presets [ react ] ] main.js -o bundle.js <ide> ``` <ide> <del>To install React DOM and build your bundle with webpack: <add>To install React DOM and build your bundle with...
1
Ruby
Ruby
expect 8.0 on macos 10.12
425eedf43e7e6171f18e42f1d43c400bea3b0d02
<ide><path>Library/Homebrew/os/mac/xcode.rb <ide> def latest_version <ide> when "10.9" then "6.2" <ide> when "10.10" then "7.2.1" <ide> when "10.11" then "7.3.1" <add> when "10.12" then "8.0" <ide> else <ide> # Default to newest known version of Xcode for unreleased OSX...
1
Text
Text
create article for autoencoder networks
b1a9ae7b65881180b33b35bd8f7fddda0a989a87
<ide><path>guide/english/machine-learning/autoencoders/index.md <add>--- <add>title: Autoencoder Networks <add>--- <add>## Autoencoder Networks <add>![Autoencoder network](http://ufldl.stanford.edu/tutorial/images/Autoencoder636.png) <add> <add>The Autoencoder is a type of neural network used to reduce the dimensionali...
1
Ruby
Ruby
adjust formula count for unsymlinked files
e714a47c10c35bffd8de2d9e703db9d8c9e6d0eb
<ide><path>Library/Homebrew/cmd/tap.rb <ide> def install_tap user, repo <ide> <ide> files = [] <ide> tapd.find_formula{ |file| files << tapd.basename.join(file) } <del> tapped = link_tap_formula(files) <del> puts "Tapped #{tapped} formula" <add> link_tap_formula(files) <add> puts "Tapped #{files.co...
2
Python
Python
extract common variable
235e58d51d27a9f8665f43050d485d3d23f7288f
<ide><path>numpy/core/tests/test_multiarray.py <ide> def test_searchsorted(self): <ide> assert_equal(b, out + 1) <ide> # Test empty array, use a fresh array to get warnings in <ide> # valgrind if access happens. <del> b = np.ndarray(shape=0, buffer=b'', dtype=dt).searchsor...
1
Go
Go
use spf13/cobra for docker commit
939a142c8db7054600cf911a8a19071f794da5f0
<ide><path>api/client/commands.go <ide> package client <ide> // Command returns a cli command handler if one exists <ide> func (cli *DockerCli) Command(name string) func(...string) error { <ide> return map[string]func(...string) error{ <del> "commit": cli.CmdCommit, <ide> "cp": cli.CmdCp, <ide> "exec": c...
7
Ruby
Ruby
expand metaprogramming for symbol, slash and dot
0086400dd75e73152429f9acf2fce984d8f46e02
<ide><path>actionpack/lib/action_dispatch/journey/nodes/node.rb <ide> def initialize(x = Object.new) <ide> def literal?; false; end <ide> end <ide> <del> %w{ Symbol Slash Dot }.each do |t| <del> class_eval <<-eoruby, __FILE__, __LINE__ + 1 <del> class #{t} < Terminal; <del> ...
1
PHP
PHP
detect persistent connection reset
d48d7b4d4b91a0597960407687bc01b2094da02a
<ide><path>src/Illuminate/Database/DetectsLostConnections.php <ide> protected function causedByLostConnection(Exception $e) <ide> 'Transaction() on null', <ide> 'child connection forced to terminate due to client_idle_limit', <ide> 'query_wait_timeout', <add> 'reset by pee...
1
Go
Go
fix typo in devmapper error message
029625981d3872872f0de95c5a4ea68cb1fa93af
<ide><path>graphdriver/devmapper/deviceset.go <ide> func (devices *DeviceSet) allocateTransactionId() uint64 { <ide> func (devices *DeviceSet) saveMetadata() error { <ide> jsonData, err := json.Marshal(devices.MetaData) <ide> if err != nil { <del> return fmt.Errorf("Error encoding metaadata to json: %s", err) <add> ...
1
Javascript
Javascript
increase timeout for test-tls-fast-writing
c133d07b8311907b3ec11980dce512ecc0f90635
<ide><path>test/parallel/test-tls-fast-writing.js <ide> var gotDrain = false; <ide> setTimeout(function() { <ide> console.log('not ok - timed out'); <ide> process.exit(1); <del>}, common.platformTimeout(500)); <add>}, common.platformTimeout(1000)); <ide> <ide> function onconnection(conn) { <ide> conn.on('data', ...
1
Javascript
Javascript
update meta and description
00c475f663d21cb5f245a9a4b5d6bf8a33ccee75
<ide><path>client/src/components/landing/index.js <ide> export const Landing = ({ edges }) => { <ide> return ( <ide> <Fragment> <ide> <Helmet> <del> <title>Learn to code | freeCodeCamp.org</title> <add> <title>Learn to code at home | freeCodeCamp.org</title> <ide> </Helmet> <ide> <...
3
Python
Python
apply proposed changes
cef6aa3830f915f9589a50700670da062e6acffd
<ide><path>numpy/core/_add_newdocs.py <ide> <ide> Examples <ide> -------- <del> For a 1D array, ``a.tolist()`` is almost the same as ``list(a)``, except that it changes numpy scalars to Python scalars: <add> For a 1D array, ``a.tolist()`` is almost the same as ``list(a)``, <add> except that ``tolist`...
1
PHP
PHP
add missing return tags
f9435aff277f9a06be11af41ebe8e6748f736832
<ide><path>lib/Cake/View/Helper/NumberHelper.php <ide> public function __construct(View $View, $settings = array()) { <ide> <ide> /** <ide> * Call methods from CakeNumber utility class <add> * @return mixed Whatever is returned by called method, or false on failure <ide> */ <ide> public function __call($method, $pa...
3
PHP
PHP
remove un-necessary parameter
6a95b5746ab50b43e0bf90eed3e418b6bbb3dd83
<ide><path>lib/Cake/Controller/Component/Auth/DigestAuthenticate.php <ide> public function getUser($request) { <ide> if (empty($digest)) { <ide> return false; <ide> } <del> $user = $this->_findUser($digest['username'], null); <add> $user = $this->_findUser($digest['username']); <ide> if (empty($user)) { <ide...
1
Go
Go
remove deprecation warning
1d02ad2a519765179480e0ae113bcf510a2713af
<ide><path>volume/volume.go <ide> import ( <ide> "os" <ide> "runtime" <ide> "strings" <del> <del> "github.com/Sirupsen/logrus" <del> "github.com/docker/docker/pkg/system" <ide> ) <ide> <ide> // DefaultDriverName is the driver name used for the driver <ide> func (m *MountPoint) Setup() (string, error) { <ide> re...
1
Text
Text
remove trailing whitespace
d0bf5ca90b2e816c37511e30225a373b8810ed0d
<ide><path>README.md <ide> The open source license grants you the freedom to use Node.js. It does not <ide> guarantee commitments of other people's time. Please be respectful and manage <ide> your expectations. <ide> <del>## Release Types <add>## Release Types <ide> <ide> * **Current**: Under active development. Cod...
1
Javascript
Javascript
add more information about the italic angle
233439949855ac14182c0371552dbe6f027b1805
<ide><path>fonts.js <ide> var Font = (function () { <ide> "\x00\x00" + // yMin <ide> "\x00\x00" + // xMax <ide> "\x00\x00" + // yMax <del> "\x00\x00" + // macStyle <add> string16(properties.italicAngle ? 1 : 0) + // macStyle <ide> "\x00\x...
1
PHP
PHP
add "use" statement
b4b05c1c340f20335295290790f34d1929b7d934
<ide><path>src/basics.php <ide> <ide> use Cake\Core\Configure; <ide> use Cake\Error\Debugger; <add>use Psy\Shell as PsyShell; <ide> <ide> define('SECOND', 1); <ide> define('MINUTE', 60); <ide> function stackTrace(array $options = []): void <ide> */ <ide> function breakpoint(): ?string <ide> { <del> ...
1
Ruby
Ruby
use method instead of variable
89bd945bb7d623571da389db0167843fdbc805d6
<ide><path>Library/Homebrew/tap.rb <ide> def initialize(user, repo) <ide> def remote <ide> @remote ||= if installed? <ide> if git? <del> @path.cd do <add> path.cd do <ide> Utils.popen_read("git", "config", "--get", "remote.origin.url").chomp <ide> end <ide> end <ide> de...
1
Javascript
Javascript
add undefined guard for window.devicepixelratio
7f4b1d9715f3da507893cf145009c729fad3606b
<ide><path>src/core/core.helpers.js <ide> module.exports = function(Chart) { <ide> document.defaultView.getComputedStyle(el, null).getPropertyValue(property); <ide> }; <ide> helpers.retinaScale = function(chart, forceRatio) { <del> var pixelRatio = chart.currentDevicePixelRatio = forceRatio || window.devicePixelR...
1
Text
Text
refine document by review comments
8d682bf734539ade2d618349f82b8b5e83a87167
<ide><path>docs/man/docker-history.1.md <ide> Show the history of when and how an image was created. <ide> 511136ea3c5a 10 months ago 0 B Imported from - <ide> <ide> ## Show the history of images created through docker commit command <del>`docker...
2
PHP
PHP
fix some input stuff and revert paginator changes
9e8acd1edafbc156690390454be8d14bc1a7a37b
<ide><path>laravel/input.php <ide> class Input { <ide> */ <ide> public static function all() <ide> { <del> $input = array_merge(static::get(), static::query(), $_FILES); <add> $input = array_merge(static::get(), static::query(), static::file()); <ide> <ide> unset($input[Request::spoofer]); <ide> <ide> public ...
2
Mixed
Javascript
fix usage of next/css
83400a8f38fe003f57184521346457353ae8f5b4
<ide><path>Readme.md <ide> We use [glamor](https://github.com/threepointone/glamor) to provide a great buil <ide> <ide> ```jsx <ide> import React from 'react' <del>import { style } from 'next/css' <add>import style from 'next/css' <ide> <ide> export default () => ( <ide> <div className={style}> <ide><path>examples/...
8
Java
Java
remove dead fallback code
0f36569d75b814a43b081d5a8036534fc1090d62
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/config/FreeMarkerConfigurerBeanDefinitionParser.java <ide> /* <del> * Copyright 2002-2018 the original author or authors. <add> * Copyright 2002-2021 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (t...
1
Javascript
Javascript
use case insensitive compare
dd7ce6909709044d61e554727b80442047e01241
<ide><path>test/simple/test-require-resolve.js <ide> var fixturesDir = common.fixturesDir; <ide> var assert = require('assert'); <ide> var path = require('path'); <ide> <del>assert.equal(path.join(__dirname, '../fixtures/a.js'), <del> path.normalize(require.resolve('../fixtures/a'))); <del>assert.equal(pat...
1
Ruby
Ruby
avoid value_for_database if attribute not updated
98aa59a7f625c5ac8e7b1575f6692d78a8f5c328
<ide><path>activemodel/lib/active_model/attribute.rb <ide> def type_cast(value) <ide> type.deserialize(value) <ide> end <ide> <add> def forgetting_assignment <add> # If this attribute was not persisted (with a `value_for_database` <add> # that might differ from `value_before_...
1
Javascript
Javascript
convert controllers to es6 classes
6affaa2a73429da1a1b990ff1c726dc317148931
<ide><path>src/controllers/controller.bar.js <ide> function isFloatBar(custom) { <ide> return custom && custom.barStart !== undefined && custom.barEnd !== undefined; <ide> } <ide> <del>export default DatasetController.extend({ <add>class BarController extends DatasetController { <ide> <del> dataElementType: Rectangl...
7
PHP
PHP
add comment. fix formatting
7612009667db1b7796a3525ce8614ccec38def53
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> public function aggregate($function, $columns = ['*']) <ide> $this->aggregate = compact('function', 'columns'); <ide> <ide> $previousColumns = $this->columns; <add> <add> // We will also back up the select bindings since the select claus...
1
Go
Go
update integration test with assert
c6b02ad73b545cedeb53715b2d7b22a2354722f8
<ide><path>integration-cli/docker_cli_rmi_test.go <ide> import ( <ide> "os/exec" <ide> "strings" <ide> <add> "github.com/docker/docker/pkg/integration/checker" <ide> "github.com/go-check/check" <ide> ) <ide> <ide> func (s *DockerSuite) TestRmiWithContainerFails(c *check.C) { <ide> errSubstr := "is using it" <ide>...
1
PHP
PHP
add dirname test
b1d86bde040d418f995b6cf920c671275a979a89
<ide><path>tests/Support/SupportStringableTest.php <ide> public function testWhenContainsAll() <ide> return $stringable->studly(); <ide> })); <ide> } <add> <add> public function testDirname() <add> { <add> $this->assertSame('/framework/tests', (string) $this->stringable('/framew...
1
Ruby
Ruby
explain edge case in install/cmd
0afc41ceefcf2b69443287f12a45bb7d2c2c35e3
<ide><path>Library/Homebrew/cmd/install.rb <ide> def install <ide> return <ide> end <ide> <add> # We don't seem to get good search results when the tap is specified <add> # so we might as well return early. <ide> return if name.include?("/") <ide> <ide> ohai "Searching for similarly named form...
1
Python
Python
remove custom asynchookstestconfiguration
3a056c04090ae58bef7ed8af9abf68228d8ff41a
<ide><path>test/async-hooks/testcfg.py <ide> import testpy <ide> <ide> def GetConfiguration(context, root): <del> return testpy.AsyncHooksTestConfiguration(context, root, 'async-hooks') <add> return testpy.ParallelTestConfiguration(context, root, 'async-hooks') <ide><path>test/testpy/__init__.py <ide> def ListTests(...
2
Python
Python
copy smalloc.h on installation
d3204b0225f9087cf419c69abeab7d1586e6af5d
<ide><path>tools/install.py <ide> def files(action): <ide> 'src/node_internals.h', <ide> 'src/node_object_wrap.h', <ide> 'src/node_version.h', <add> 'src/smalloc.h', <ide> ], 'include/node/') <ide> <ide> if 'false' == variables.get('node_shared_cares'):
1
Javascript
Javascript
fix handleless node_handle handling
71ca122def15ae58584ea680399e3d049e172365
<ide><path>lib/internal/child_process.js <ide> const errnoException = util._errnoException; <ide> const SocketListSend = SocketList.SocketListSend; <ide> const SocketListReceive = SocketList.SocketListReceive; <ide> <add>const MAX_HANDLE_RETRANSMISSIONS = 3; <add> <ide> // this object contain function to convert TCP o...
1
Go
Go
move network operations out of container package
cc8f358c23d307d19b06cd5e7d039d8fad01a947
<ide><path>container/container.go <ide> import ( <ide> "encoding/json" <ide> "fmt" <ide> "io" <del> "net" <ide> "os" <ide> "path/filepath" <ide> "runtime" <del> "strconv" <ide> "strings" <ide> "sync" <ide> "syscall" <ide> import ( <ide> "github.com/containerd/containerd/cio" <ide> containertypes "github.com/...
5
Java
Java
fix javadoc link in dynamicintroductionadvice
a78701cc4b7cb66be91ebee4fa9764e753dacd68
<ide><path>spring-aop/src/main/java/org/springframework/aop/DynamicIntroductionAdvice.java <ide> * <p>Introductions are often <b>mixins</b>, enabling the building of composite <ide> * objects that can achieve many of the goals of multiple inheritance in Java. <ide> * <del> * <p>Compared to {qlink IntroductionInfo}, ...
1
Python
Python
remove unused function in plot_lfads
597fb3e6e75896bac4a6961e1873c44a0aeccfe2
<ide><path>lfads/plot_lfads.py <ide> def all_plot(d, full_name="", exclude="", nspaces=0): <ide> _plot_item(v, name=k, full_name=full_name+"/"+k, nspaces=nspaces+4) <ide> <ide> <del>def plot_priors(): <del> g0s_prior_mean_bxn = train_modelvals['prior_g0_mean'] <del> g0s_prior_var_bxn = train_modelvals['prio...
1
Javascript
Javascript
show thrown message in doesnotthrow()
c53db1e8e9bb65779d791046daa39ed88c8f1045
<ide><path>lib/assert.js <ide> function innerThrows(shouldThrow, block, expected, message) { <ide> } else if (actual !== undefined) { <ide> if (!expected || expectedException(actual, expected)) { <ide> details = message ? `: ${message}` : '.'; <del> fail(actual, expected, `Got unwanted exception${detai...
2
Go
Go
fix path corruption in 'docker diff'
e16c93486d16ac4f3a05f720ee6478b5cef93f10
<ide><path>changes.go <ide> func Changes(layers []string, rw string) ([]Change, error) { <ide> file := filepath.Base(path) <ide> // If there is a whiteout, then the file was removed <ide> if strings.HasPrefix(file, ".wh.") { <del> originalFile := strings.TrimLeft(file, ".wh.") <add> originalFile := strings.Tr...
1
Javascript
Javascript
upgrade watchignoreplugin to es6
ce4ce3e7cf46d1611e5267bfedb4a5badfc51aaf
<ide><path>lib/WatchIgnorePlugin.js <ide> MIT License http://www.opensource.org/licenses/mit-license.php <ide> Author Tobias Koppers @sokra <ide> */ <del>function WatchIgnorePlugin(paths) { <del> this.paths = paths; <add>"use strict" <add> <add>class WatchIgnorePlugin { <add> constructor(paths) { <add> this.paths = ...
6
Javascript
Javascript
hide editor mode if not used in a terminal
df43754fe1bf70042ae364f2365b42271468f102
<ide><path>lib/repl.js <ide> function defineDefaultCommands(repl) { <ide> this.displayPrompt(); <ide> } <ide> }); <del> <del> repl.defineCommand('editor', { <del> help: 'Enter editor mode', <del> action() { <del> if (!this.terminal) return; <del> _turnOnEditorMode(this); <del> this.out...
3
Go
Go
skip non-persistent endpoints in sandbox store
d9ad8c961c01357cb6f0efc7678f6198761e6631
<ide><path>libnetwork/sandbox_store.go <ide> func (sb *sandbox) storeUpdate() error { <ide> retry: <ide> sbs.Eps = nil <ide> for _, ep := range sb.getConnectedEndpoints() { <add> // If the endpoint is not persisted then do not add it to <add> // the sandbox checkpoint <add> if ep.Skip() { <add> continue <add> }...
1
Ruby
Ruby
extract encrypted models to their own files
81afcabd1985ba2c1b816d223b18eda6f0953282
<ide><path>activerecord/test/cases/encryption/concurrency_test.rb <ide> # frozen_string_literal: true <ide> <ide> require "cases/encryption/helper" <del>require "models/post" <add>require "models/post_encrypted" <ide> <ide> class ActiveRecord::Encryption::ConcurrencyTest < ActiveRecord::TestCase <ide> setup do <ide...
21
Java
Java
fix missing resources in gzipresourceresolvertests
72e4fac28d59ed5db3e81efe01ccbcc3a8311dbf
<ide><path>spring-web-reactive/src/test/java/org/springframework/web/reactive/resource/GzipResourceResolverTests.java <ide> <ide> package org.springframework.web.reactive.resource; <ide> <add>import java.io.File; <ide> import java.io.FileOutputStream; <ide> import java.io.IOException; <add>import java.nio.file.Files;...
2
Javascript
Javascript
replace instanceof check with nullness check
6a694f80f41730e9a32d208b5dc5547e3b286de9
<ide><path>src/workspace.js <ide> module.exports = class Workspace extends Model { <ide> if (paneContainer === this.getCenter()) { <ide> const itemIsTextEditor = item instanceof TextEditor <ide> const activeTextEditorChanged = <del> itemIsTextEditor || (this.activeTextEditor instanceof TextEditor...
1
Javascript
Javascript
remove rc suffix from versions
fc46dba67fc47783bbb5919e656c66c6e51ce16d
<ide><path>ReactVersions.js <ide> // <ide> // 0.0.0-experimental-241c4467e-20200129 <ide> <del>const ReactVersion = '18.0.0-rc.3'; <add>const ReactVersion = '18.0.0'; <ide> <ide> // The label used by the @next channel. Represents the upcoming release's <ide> // stability. Could be "alpha", "beta", "rc", etc. <ide> ...
1
Java
Java
check both connection and connected flag
3bc1121b9d6f73f601776a20e6ec5b0e1ea0f4b2
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java <ide> public void afterConnectionClosed() { <ide> public ListenableFuture<Void> forward(final Message<?> message, final StompHeaderAccessor accessor) { <ide> TcpConnection<byte[]> conn = this.tcpC...
1
Go
Go
check version for docker-default aa profile
f8db9a09e0ec9b1925839ffff4f1cc5fe3ace630
<ide><path>contrib/apparmor/main.go <ide> import ( <ide> "fmt" <ide> "log" <ide> "os" <del> "os/exec" <ide> "path" <del> "strconv" <del> "strings" <ide> "text/template" <add> <add> "github.com/docker/docker/pkg/aaparser" <ide> ) <ide> <ide> type profileData struct { <ide> func main() { <ide> // parse the arg <id...
3
Javascript
Javascript
add dedicated lanepriority for suspense retries
965d08cfff50609eed5d3f2317145f7be762423d
<ide><path>packages/react-reconciler/src/ReactFiberLane.js <ide> export opaque type LanePriority = <ide> | 13 <ide> | 14 <ide> | 15 <del> | 16; <add> | 16 <add> | 17; <ide> export opaque type Lanes = number; <ide> export opaque type Lane = number; <ide> export opaque type LaneMap<T> = Array<T>; <ide> import { ...
6
Text
Text
remove duplicate content
28e1be83df3453b2a14d6ecc9b3bcd89733c50d5
<ide><path>examples/with-iron-session/README.md <ide> It uses current best practices for authentication in the Next.js ecosystem. <ide> <ide> **Features:** <ide> <del>- [Static Generation](https://nextjs.org/docs/basic-features/pages#static-generation-recommended) (SG), recommended example <del>- [Server-side Renderi...
1
Ruby
Ruby
improve support for local bottle installs
0735eba995a1b35d14fbba8f41553d96b2fa14f7
<ide><path>Library/Homebrew/formula_installer.rb <ide> def install <ide> options = display_options(formula).join(" ") <ide> oh1 "Installing #{Formatter.identifier(formula.full_name)} #{options}".strip if show_header? <ide> <del> unless formula.tap&.private? <add> if formula.tap&.installed? && !formula.ta...
2
Ruby
Ruby
fix status code check in check_bintray_mirror
7a75de7cb135cfa832acbf58819329cc19b0fe41
<ide><path>Library/Homebrew/dev-cmd/pull.rb <ide> def verify_bintray_published(formulae_names) <ide> def check_bintray_mirror(name, url) <ide> headers = curl_output("--connect-timeout", "15", "--head", url)[0] <ide> status_code = headers.scan(%r{^HTTP\/.* (\d+)}).last.first <del> return if status_code.star...
1
Javascript
Javascript
provide support for dynamic message resolution
c9a4421fc3c97448527eadef1f42eb2f487ec2e0
<ide><path>src/ngMessages/messages.js <ide> 'use strict'; <ide> <add>/* jshint ignore:start */ <add>// this code is in the core, but not in angular-messages.js <add>var isArray = angular.isArray; <add>var forEach = angular.forEach; <add>var isString = angular.isString; <add>var jqLite = angular.element; <add>/* jshint...
2
Javascript
Javascript
avoid a dynamic require in lib/util/serialization
686725a6c3c871735cf255d53f2a10992c935fae
<ide><path>lib/util/internalSerializables.js <add>/* <add> MIT License http://www.opensource.org/licenses/mit-license.php <add> Author Tobias Koppers @sokra <add>*/ <add> <add>"use strict"; <add> <add>// We need to include a list of requires here <add>// to allow webpack to be bundled with only static requires <add>// ...
3
PHP
PHP
fix fqcn in docblocks
6b3aaa272ae06cf18f3341b73ae2da2bee74287b
<ide><path>src/Database/Expression/QueryExpression.php <ide> protected function _parseCondition($field, $value) <ide> /** <ide> * Returns the type name for the passed field if it was stored in the typeMap <ide> * <del> * @param string|Cake\Database\Expression\QueryExpression $field The field name to g...
2
Ruby
Ruby
support insert with multiple values
5e6312e1745dc278ba0a99bf2bc7b78977785d35
<ide><path>lib/arel/insert_manager.rb <ide> def insert fields <ide> def create_values values, columns <ide> Nodes::Values.new values, columns <ide> end <add> <add> def create_values_list(rows) <add> Nodes::ValuesList.new(rows) <add> end <ide> end <ide> end <ide><path>lib/arel/nodes.rb <ide> r...
5
PHP
PHP
fix fatal error on file uploads
eb6e0fd3d77193f392181a12bef51a1c721652e7
<ide><path>src/Illuminate/Http/Request.php <ide> protected function filterFiles($files) <ide> $files[$key] = $this->filterFiles($files[$key]); <ide> } <ide> <del> if (! $files[$key]) { <add> if (empty($files[$key])) { <ide> unset($files[$key]); <ide> ...
1
Python
Python
fix dropout in rnn
90d24ddf1aefc1493436d8952da97b224cf937f4
<ide><path>keras/layers/recurrent.py <ide> def step(self, inputs, states): <ide> <ide> def get_constants(self, inputs, training=None): <ide> constants = [] <del> if self.implementation == 0 and 0 < self.dropout < 1: <add> if self.implementation != 0 and 0 < self.dropout < 1: <ide> ...
1
Python
Python
fix reuters example
c53c15dbd007480100920b692782e28f6f23c86f
<ide><path>examples/reuters_mlp.py <ide> <ide> ''' <ide> Train and evaluate a simple MLP on the Reuters newswire topic classification task. <del> <ide> GPU run command: <ide> THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python examples/reuters_mlp.py <del> <ide> CPU run command: <ide> ...
2
Python
Python
require django 1.11 lts for celery 4.3
072dab85261599234341cc714b0d6f0caca20f00
<ide><path>celery/fixups/django.py <ide> def _maybe_close_fd(fh): <ide> <ide> <ide> def _verify_django_version(django): <del> if django.VERSION < (1, 8): <del> raise ImproperlyConfigured('Celery 4.x requires Django 1.8 or later.') <add> if django.VERSION < (1, 11): <add> raise ImproperlyConfigured...
2
Javascript
Javascript
add more test cases of server.listen option
474e9d64b54b91f6c38454d5e7700337b4c54406
<ide><path>test/parallel/test-net-server-listen-handle.js <add>'use strict'; <add> <add>const common = require('../common'); <add>const assert = require('assert'); <add>const net = require('net'); <add>const fs = require('fs'); <add>const uv = process.binding('uv'); <add>const TCP = process.binding('tcp_wrap').TCP; <ad...
3
Javascript
Javascript
fix comment typo
90e5d3638844414e1b9df0fe66c3fc46b211d210
<ide><path>packages/react-server/src/ReactFizzHooks.js <ide> export function resetHooksState(): void { <ide> } <ide> <ide> function getCacheForType<T>(resourceType: () => T): T { <del> // TODO: This should silently mark this as client rendered since it's not necesssarily <add> // TODO: This should silently mark this...
1
Javascript
Javascript
remove unused arg to createsecurecontext()
3b4159c8ed85b6b531b7df09378d67168574d731
<ide><path>lib/_tls_common.js <ide> const { SSL_OP_CIPHER_SERVER_PREFERENCE } = internalBinding('constants').crypto; <ide> let toBuf = null; <ide> <ide> const { SecureContext: NativeSecureContext } = internalBinding('crypto'); <del>function SecureContext(secureProtocol, secureOptions, context) { <add>function SecureCo...
1