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
Ruby
Ruby
use regular memoization
386ab893f68ee8344674f7fd2a248dcae9f5d2b0
<ide><path>actioncable/lib/action_cable/channel/test_case.rb <ide> def transmit(cable_message) <ide> end <ide> <ide> def connection_identifier <del> unless defined? @connection_identifier <del> @connection_identifier = connection_gid identifiers.filter_map { |id| send(id.to_sym) if id } <de...
1
Ruby
Ruby
add argv.build_head? and use it
21c37fbac6b94afd44da4ce0b0fc1599b8165fde
<ide><path>Library/Homebrew/extend/ARGV.rb <ide> def quieter? <ide> def interactive? <ide> flag? '--interactive' <ide> end <add> def build_head? <add> flag? '--HEAD' <add> end <ide> <ide> def flag? flag <ide> options.each do |arg|
1
Go
Go
add integration test for volume plugins on swarm
45990d6e6144daaaf53b09325e7576f0cbec74f3
<ide><path>integration-cli/daemon/daemon_swarm.go <ide> func (d *Swarm) GetServiceTasks(c *check.C, service string) []swarm.Task { <ide> return tasks <ide> } <ide> <del>// CheckServiceRunningTasks returns the number of running tasks for the specified service <del>func (d *Swarm) CheckServiceRunningTasks(service strin...
2
Text
Text
remove reading spaces in the code block [ci skip]
3760cff0676e05404175074bcee89bd8d3a3ed82
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> override it on a per model basis. This should help you migrate all your models t <ide> associations required by default. <ide> <ide> ```ruby <del> class Book < ApplicationRecord <del> # model is not yet ready to have its association required by ...
1
Text
Text
fix typo in addons.md
aa08cf1e7a44d0899a084f9a94e068d3724e31d6
<ide><path>doc/api/addons.md <ide> illustration of how it can be used. <ide> N-API is an API for building native Addons. It is independent from <ide> the underlying JavaScript runtime (e.g. V8) and is maintained as part of <ide> Node.js itself. This API will be Application Binary Interface (ABI) stable <del>across vers...
1
Text
Text
add more details to the deployment doc
6de65faef464e92076936aec5f8dfa705b6529fb
<ide><path>docs/deployment.md <ide> HTTPS is enabled by default and doesn't require extra configuration. <ide> <ide> #### From a git repository <ide> <del>You can link your project in [GitHub](https://zeit.co/new), [GitLab](https://zeit.co/new), or [Bitbucket](https://zeit.co/new) through the [web interface](https://...
1
Go
Go
move api to it's own package
f556cd4186dfdb5e96b2e58b5caf9edbe7e2d7df
<add><path>api/api.go <del><path>api.go <del>package docker <add>package api <ide> <ide> import ( <ide> "bufio" <ide> const ( <ide> DEFAULTUNIXSOCKET = "/var/run/docker.sock" <ide> ) <ide> <del>type HttpApiFunc func(srv *Server, version float64, w http.ResponseWriter, r *http.Request, vars map[string]string) error ...
8
Javascript
Javascript
use assignlanguagemode in texteditor spec
20b0fc688d73a0120bc293edfd8d5a9fb367aea4
<ide><path>spec/text-editor-spec.js <ide> describe('TextEditor', () => { <ide> }) <ide> <ide> it('will limit paragraph range to comments', () => { <del> editor.setGrammar(atom.grammars.grammarForScopeName('source.js')) <add> atom.grammars.assignLanguageMode(editor.getBuffer(), 'javascript') <...
1
Ruby
Ruby
replace shell `which` with native code
d6299af86c6f8304f629184298114ef244e52bd8
<ide><path>Library/Homebrew/utils.rb <ide> def puts_columns items, star_items=[] <ide> end <ide> <ide> def which cmd <del> path = `/usr/bin/which #{cmd} 2>/dev/null`.chomp <del> if path.empty? <del> nil <del> else <del> Pathname.new(path) <del> end <add> dir = ENV['PATH'].split(':').find {|p| File.executabl...
1
Mixed
PHP
change cache flush return type
4543caa9a45adbc2e127e8c92a70158bd191d83b
<ide><path>CHANGELOG-5.4.md <ide> - Support wildcards in `MessageBag::first()` ([#15217](https://github.com/laravel/framework/pull/15217)) <ide> <ide> ### Changed <add>- Cache flush method returns bool ([#15578](https://github.com/laravel/framework/issues/15578)) <ide> <ide> ### Fixed <ide> <ide><path>src/Illuminate...
16
Go
Go
remove todo windows
208ad80605e5c8c48f77f1b89b25951767135224
<ide><path>daemon/container_unix.go <ide> type Container struct { <ide> AppArmorProfile string <ide> HostnamePath string <ide> HostsPath string <del> ShmPath string // TODO Windows - Factor this out (GH15862) <del> MqueuePath string // TODO Windows - Factor this out (GH15862) <add> ShmPath ...
1
Ruby
Ruby
ask the request for the cookie jar
1989b20c163e2e344556b4f64e566afb96e93d50
<ide><path>actionpack/lib/action_dispatch/middleware/cookies.rb <ide> def cookie_jar <ide> end <ide> <ide> # :stopdoc: <add> def have_cookie_jar? <add> env.key? 'action_dispatch.cookies'.freeze <add> end <add> <ide> def cookie_jar=(jar) <ide> env['action_dispatch.cookies'.freeze] = jar <id...
1
Text
Text
update instructions for use with react-redux
6de763d1e03d9fd8e1792efadb0682f9e3f363bb
<ide><path>docs/usage/UsageWithTypescript.md <ide> While [React Redux](https://react-redux.js.org) is a separate library from Redux <ide> <ide> For a complete guide on how to correctly use React Redux with TypeScript, see **[the "Static Typing" page in the React Redux docs](https://react-redux.js.org/using-react-redux...
1
Javascript
Javascript
replace _questioncancel with a symbol
fec093b6b73b06b83b08e01641ef30e229412283
<ide><path>lib/readline.js <ide> const kMincrlfDelay = 100; <ide> const lineEnding = /\r?\n|\r(?!\n)/; <ide> <ide> const kLineObjectStream = Symbol('line object stream'); <add>const kQuestionCancel = Symbol('kQuestionCancel'); <ide> <ide> const KEYPRESS_DECODER = Symbol('keypress-decoder'); <ide> const ESCAPE_DECODER...
1
Javascript
Javascript
adjust data tests to ensure proper camelcasing
775caebd617e91e697b3e41ae33d6877e63785aa
<ide><path>src/deprecated.js <ide> define( [ <ide> "./core", <ide> "./core/nodeName", <add> "./core/camelCase", <ide> "./var/isWindow" <del>], function( jQuery, nodeName, isWindow ) { <add>], function( jQuery, nodeName, camelCase, isWindow ) { <ide> <ide> "use strict"; <ide> <ide> jQuery.isArray = Array.isArray; <...
2
Text
Text
improve instructions for verifying binaries
004f8b037e8e89987dbbe6314ba0ddf45d6719b4
<ide><path>README.md <ide> directory under _docs_ or at <https://nodejs.org/download/docs/>. <ide> <ide> ### Verifying Binaries <ide> <del>Current, LTS, and Nightly download directories all contain a SHASUMS256.txt <del>file that lists the SHA checksums for each file available for <del>download. <add>Download directo...
1
Text
Text
remove broken link from licence
45c05c709718c28a6c4c6e294c538b9874e0ef03
<ide><path>README.md <ide> To help you get your feet wet and get you familiar with our contribution process <ide> ### License <ide> <ide> React is [MIT licensed](./LICENSE). <del> <del>React documentation is [Creative Commons licensed](./LICENSE-docs).
1
Ruby
Ruby
fix assertion in `test_delete_multi`
9020c78dde1942b5caecf2f1870fe746a8b08bbb
<ide><path>activesupport/test/cache/behaviors/cache_store_behavior.rb <ide> def test_delete_multi <ide> @cache.write("foo", "bar") <ide> assert @cache.exist?("foo") <ide> @cache.write("hello", "world") <del> assert @cache.exist?("foo") <add> assert @cache.exist?("hello") <ide> assert_equal 2, @cac...
1
Text
Text
remove personal pronoun usage in policy.md
73f2dbc911e16a3b50fc9a1236d9bed7d9e04d7a
<ide><path>doc/api/policy.md <ide> only with care after auditing a module to ensure its behavior is valid. <ide> <ide> #### Example: Patched Dependency <ide> <del>Since a dependency can be redirected, you can provide attenuated or modified <del>forms of dependencies as fits your application. For example, you could lo...
1
Javascript
Javascript
fix debug for dnsopts
7f63449fde070455b337cd4b8e094d5366eb2dd8
<ide><path>lib/net.js <ide> function lookupAndConnect(self, options) { <ide> dnsopts.hints = dns.ADDRCONFIG | dns.V4MAPPED; <ide> <ide> debug('connect: find host ' + host); <del> debug('connect: dns options ' + dnsopts); <add> debug('connect: dns options', dnsopts); <ide> self._host = host; <ide> var looku...
1
Ruby
Ruby
avoid duplication using _find_all
0b26cc41dbd8c57eb382318a63c4272de3d2e4e9
<ide><path>actionview/lib/action_view/template/resolver.rb <ide> def find_all(name, prefix = nil, partial = false, details = {}, key = nil, local <ide> locals = locals.map(&:to_s).sort!.freeze <ide> <ide> cached(key, [name, prefix, partial], details, locals) do <del> find_templates(name, prefix, par...
1
Ruby
Ruby
fix greedy outdated command
ac2f52cef33bd374c945e51e9242859f0849bd73
<ide><path>Library/Homebrew/cask/cask.rb <ide> def outdated_versions(greedy: false, greedy_latest: false, greedy_auto_updates: <ide> version <ide> end <ide> <del> if greedy || greedy_latest || (greedy_auto_updates && auto_updates) <del> if latest_version.latest? <del> return versions...
1
PHP
PHP
fix cs error
321f0c9c2726535591d78713083a8b57365d0f2e
<ide><path>tests/TestCase/Http/MiddlewareQueueTest.php <ide> namespace Cake\Test\TestCase\Http; <ide> <ide> use Cake\Core\Configure; <del>use Cake\Http\Middleware\CallableMiddleware; <ide> use Cake\Http\MiddlewareQueue; <ide> use Cake\TestSuite\TestCase; <ide> use TestApp\Middleware\DumbMiddleware;
1
Javascript
Javascript
add await to the async isvalidgitdirectory
15b859a2bede85a0eb58bbe007fa048c5106ca92
<ide><path>src/git-repository-provider.js <ide> async function findGitDirectory(directory) { <ide> if ( <ide> typeof gitDir.exists === 'function' && <ide> (await gitDir.exists()) && <del> isValidGitDirectory(gitDir) <add> (await isValidGitDirectory(gitDir)) <ide> ) { <ide> return gitDir; <ide> }...
1
Python
Python
add fmod and modf as mandatory functions
6da52cd0fe2b2110cd6d7274d29a9bbb58f44551
<ide><path>numpy/core/setup.py <ide> def name_to_defsymb(name): <ide> # Mandatory functions: if not found, fail the build <ide> mandatory_funcs = ["sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs", <ide> "floor", "ceil", "sqrt", "log10", "log", "exp", "asin", "acos", <del> "atan"] <add>...
1
Text
Text
add a link to braumeister.org to the readme
a671a13b24d1895ae80c90e040b6647192a9dfe8
<ide><path>README.md <ide> What Packages Are Available? <ide> 1. You can [browse the Formula folder on GitHub][formula]. <ide> 2. Or type `brew search` for a list. <ide> 3. Or run `brew server` to browse packages off of a local web server. <add>4. Or visit [braumeister.org][braumeister] to browse packages online. <ide>...
1
Text
Text
remove all immutable data libs except immer
03c835da2dc800843526141442cc45b0edeb9a36
<ide><path>docs/introduction/Ecosystem.md <ide> store.dispatch({ <ide> <ide> ## Immutable Data <ide> <del>#### Data Structures <del> <del>**[rtfeldman/seamless-immutable](https://github.com/rtfeldman/seamless-immutable)** <br /> <del>Frozen immutable arrays/objects, backwards-compatible with JS <del> <del>```js <del>...
1
Text
Text
add v3.19.0-beta.2 to changelog
a41da5dd39739f3ef146dd71426c7e2f10f40dc5
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add>### v3.19.0-beta.2 (April 27, 2020) <add> <add>- [#18913](https://github.com/emberjs/ember.js/pull/18913) [BUGFIX] Update to glimmer-vm 0.51.0. <add>- [#18919](https://github.com/emberjs/ember.js/pull/18919) [BUGFIX] Add error for modifier manager without capa...
1
PHP
PHP
fix typo in documentation
7a4f54f917a3445a7d9743a453b5b24ba078c9aa
<ide><path>src/Database/Query.php <ide> public function limit($num) { <ide> * <ide> * {{{ <ide> * $query->offset(10) // generates OFFSET 10 <del> * $query->limit($query->newExpr()->add(['1 + 1'])); // OFFSET (1 + 1) <add> * $query->offset($query->newExpr()->add(['1 + 1'])); // OFFSET (1 + 1) <ide> * }}} <ide> * <i...
1
Javascript
Javascript
make this work as an es6 module
63be4938a7251adb6792a4213696c1dde5457763
<ide><path>threejs/resources/webgl-debug-helper.js <ide> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. <ide> */ <ide> <del>/* global define */ <add>/* global define, globalThis */ <ide> <ide> (function(root, factory) { // eslint-disable-line <ide> if (typeof define === 'function' && defi...
1
Javascript
Javascript
fix ident config position
9c392ae397b31d6b5522d93dc03ebddff1fb1cf5
<ide><path>test/configCases/loaders/remaining-request/webpack.config.js <ide> module.exports = { <ide> "./loader1", <ide> { <ide> loader: "./loader2", <add> ident: "loader2", <ide> options: { <del> ident: "loader2", <ide> f: function() { <ide> return "ok"; <ide> }
1
Javascript
Javascript
remove unused type
b4d782fb946aea1b464cb0de5c9c3f929a3408a2
<ide><path>lib/optimize/ConcatenatedModule.js <ide> const propertyAccess = require("../util/propertyAccess"); <ide> /** @typedef {import("../WebpackError")} WebpackError */ <ide> /** @typedef {import("../util/Hash")} Hash */ <ide> <del>/** <del> * @typedef {Object} CachedSourceEntry <del> * @property {string} hash the...
1
Python
Python
update error message
2a0892864c350921bb29d97b48c43d25ed807fe7
<ide><path>libcloud/common/digitalocean.py <ide> class DigitalOcean_v1_Error(LibcloudError): <ide> supported. <ide> """ <ide> <del> def __init__(self, value=('Version 1 of the DigitalOcean API reached end' <del> ' of life on November 9, 2015. Please use the v2 driver.'), <add> def __init_...
1
Python
Python
use list to be safe
403fa31ec88b95afb5bac67febd1db40006250bb
<ide><path>airflow/jobs.py <ide> def prioritize_queued(self, session, executor, dagbag): <ide> else: <ide> d[ti.pool].append(ti) <ide> <del> for pool, tis in d.items(): <add> for pool, tis in list(d.items()): <ide> open_slots = pools[pool].open_slots(session=sessio...
1
Ruby
Ruby
escape interpolated string in regexp
bfa19b338518f50ec7e5c2d2ed4919fa50217dee
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit_text <ide> end <ide> bin_names.each do |name| <ide> ["system", "shell_output", "pipe_output"].each do |cmd| <del> if text =~ /(def test|test do).*#{cmd}[\(\s]+['"]#{name}[\s'"]/m <add> if text =~ /(def test|test do).*#{cmd}[\(\s]+[...
1
Java
Java
check actual cache value for unwrapped optional
fdb31cd715f4a8811fbbe0b541b54ee5f65fa8df
<ide><path>spring-context/src/test/java/org/springframework/cache/CacheReproTests.java <ide> public void spr13081ConfigFailIfCacheResolverReturnsNullCacheName() { <ide> public void spr14230AdaptsToOptional() { <ide> AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Spr14230Config.cl...
1
Javascript
Javascript
handle arrays of images
65ae4afc8fce25dae226d9a367902339dbd94403
<ide><path>threejs/resources/editor.js <ide> function fixSourceLinks(url, source) { <ide> const srcRE = /(src=)"(.*?)"/g; <ide> const linkRE = /(href=)"(.*?")/g; <ide> const imageSrcRE = /((?:image|img)\.src = )"(.*?)"/g; <del> const loaderLoadRE = /(loader.load[a-z]*\()('|")(.*?)('|")/ig; <add> const loaderLoa...
1
Java
Java
remove code duplication in modelandviewassert
ff8a6e8fdb147e1b988c1ca5b4c8b3008b67534d
<ide><path>spring-test/src/main/java/org/springframework/test/web/ModelAndViewAssert.java <ide> /* <del> * Copyright 2002-2009 the original author or authors. <add> * Copyright 2002-2012 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may no...
1
Python
Python
remove hardcoded fontname in visualize_util
50d3fddead17b0fb8ffe315a2b3a585d7bcb3055
<ide><path>keras/utils/visualize_util.py <ide> def __call__(self, model, recursive=True, show_shape=False, <ide> self.g = pydot.Dot() <ide> self.g.set('rankdir', 'TB') <ide> self.g.set('concentrate', True) <del> self.g.set_node_defaults(shape='record', fontname="Fira Mono") <add> s...
1
Python
Python
add ma for scons build
16aff17e96d88f474ea41a3570e22bde803d9dec
<ide><path>numpy/ma/setupscons.py <add>#!/usr/bin/env python <add>__author__ = "Pierre GF Gerard-Marchant ($Author: jarrod.millman $)" <add>__version__ = '1.0' <add>__revision__ = "$Revision: 3473 $" <add>__date__ = '$Date: 2007-10-29 17:18:13 +0200 (Mon, 29 Oct 2007) $' <add> <add>import os <add> <add>def configur...
2
Javascript
Javascript
fix regression in unlistening signals
e9eb2ec1c491e82dda27fe07d0eaf14ff569351b
<ide><path>src/node.js <ide> // Load events module in order to access prototype elements on process like <ide> // process.addListener. <ide> var signalWraps = {}; <del> var addListener = process.addListener; <del> var removeListener = process.removeListener; <ide> <ide> function isSignal(event) {...
2
Ruby
Ruby
move formula resources to softwarespec
6116450328307530d6d25a3fa5b9c34e2a055f1f
<ide><path>Library/Homebrew/formula.rb <del>require 'resource' <ide> require 'dependency_collector' <ide> require 'formula_support' <ide> require 'formula_lock' <ide> def initialize name='__UNKNOWN__', path=nil <ide> end <ide> <ide> @pin = FormulaPin.new(self) <del> <del> @resources = self.class.resources <...
3
Text
Text
fix style importing
5cef35b8116400d9fdd3e5d4bceaf5a41f4a8565
<ide><path>examples/with-next-sass/README.md <ide> This example features: <ide> <ide> * An app with next-sass <ide> <del>This example uses next-sass without css-modules. The config can be found in `next.config.js`, change `withSass()` to `withSass({cssModules: true})` if you use css-modules. Then in the code, you imp...
1
Ruby
Ruby
upgrade virtualenv to 16.7.2
97cbf43a3dc8db337f6dfd703b9e5055900a4f89
<ide><path>Library/Homebrew/language/python_virtualenv_constants.rb <ide> # frozen_string_literal: true <ide> <ide> PYTHON_VIRTUALENV_URL = <del> "https://files.pythonhosted.org/packages/fc/e4" \ <del> "/f0acb4e82acd60f843308112421a41ea70c06bbce51d13fa00736d09a6ae" \ <del> "/virtualenv-16.7.1.tar.gz" <add> "https:...
1
PHP
PHP
fix bug in eloquent model hydration
720d9de5826cb5a45149715d12b2fa56fe0e7ff4
<ide><path>laravel/database/eloquent/query.php <ide> public function hydrate($model, $results, $include = true) <ide> // we were to pass them in using the constructor or fill methods. <ide> foreach ($result as $key => $value) <ide> { <del> $new->$key = $value; <add> $new->set_attribute($key, $value); <id...
1
Javascript
Javascript
fix outputmodule with initial splitchunks
c69e37c39d12c8e3c761c883069d89f90cac817c
<ide><path>lib/esm/ModuleChunkFormatPlugin.js <ide> <ide> "use strict"; <ide> <del>const { ConcatSource, RawSource } = require("webpack-sources"); <add>const { ConcatSource } = require("webpack-sources"); <ide> const { RuntimeGlobals } = require(".."); <ide> const HotUpdateChunk = require("../HotUpdateChunk"); <ide> ...
10
Javascript
Javascript
convert callback to arrow function
afab340e6708a86d8573d44041704873cf558d0e
<ide><path>test/pummel/test-net-pause.js <ide> const server = net.createServer((connection) => { <ide> server.on('listening', () => { <ide> const client = net.createConnection(common.PORT); <ide> client.setEncoding('ascii'); <del> client.on('data', function(d) { <add> client.on('data', (d) => { <ide> console....
1
Text
Text
remove unneeded new in buffer example
951dbc045aebbe1f7eff12cedabce1179544dc75
<ide><path>doc/api/buffer.md <ide> a `Buffer` is that in this case one needs to specify the `byteOffset` correctly: <ide> import { Buffer } from 'buffer'; <ide> <ide> // Create a buffer smaller than `Buffer.poolSize`. <del>const nodeBuffer = new Buffer.from([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]); <add>const nodeBuffer = Buff...
1
Javascript
Javascript
fix crash when calling __proto__.write()
24fc302eadf64d2518733a2ae40355916e6990f7
<ide><path>lib/string_decoder.js <ide> const { <ide> const internalUtil = require('internal/util'); <ide> const { <ide> ERR_INVALID_ARG_TYPE, <add> ERR_INVALID_THIS, <ide> ERR_UNKNOWN_ENCODING <ide> } = require('internal/errors').codes; <ide> const isEncoding = Buffer[internalUtil.kIsEncodingSymbol]; <ide> StringD...
2
Javascript
Javascript
add shallow support to link
4c52ea1f70d3636887555b95c9c3c0999fbb102c
<ide><path>lib/link.js <ide> export default class Link extends Component { <ide> <ide> return null <ide> } <del> ]).isRequired <add> ]).isRequired, <add> shallow: PropTypes.bool <ide> } <ide> <ide> componentWillReceiveProps (nextProps) { <ide> export default class Link extends Component { <...
1
Javascript
Javascript
add ngattrsize as argument
b9d3185e52292b1d57a7b19800db73accb2f8ff2
<ide><path>src/ng/directive/ngOptions.js <ide> var ngOptionsMinErr = minErr('ngOptions'); <ide> * <ide> * <ide> * @param {string} ngModel Assignable AngularJS expression to data-bind to. <del> * @param {string=} name Property name of the form under which the control is published. <del> * @param {string=} required Th...
2
Text
Text
fix inconsistency in documentation for building
a456775efa9ea284dd1a1d37602699bfb5bbd561
<ide><path>BUILDING.md <ide> If you are running tests prior to submitting a Pull Request, the recommended <ide> command is: <ide> <ide> ```console <del>$ make test <add>$ make -j4 test <ide> ``` <ide> <del>`make test` does a full check on the codebase, including running linters and <add>`make -j4 test` does a full ch...
1
Ruby
Ruby
fix elapsed time calculations
dda9452314bb904a3e2c850bd23f118eb80e3356
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb <ide> def no_wait_poll <ide> def wait_poll(timeout) <ide> @num_waiting += 1 <ide> <del> t0 = Time.now <add> t0 = Concurrent.monotonic_time <ide> elapsed = 0 <ide> ...
4
Text
Text
fix truncated line in the i18n edge guide
c7d39f2a2e377c020e57747b70502c51fd0b6349
<ide><path>guides/source/i18n.md <ide> This means, that in the `:en` locale, the key _hello_ will map to the _Hello wor <ide> <ide> The I18n library will use **English** as a **default locale**, i.e. if you don't set a different locale, `:en` will be used for looking up translations. <ide> <del>NOTE: The i18n library...
1
Ruby
Ruby
add dependencies to 'brew info' output
9d290b450255ad8160f2dfc75181bfdd80bbf3b7
<ide><path>Library/Homebrew/brew.h.rb <ide> def info name <ide> puts "#{f.name} #{f.version}" <ide> puts f.homepage <ide> <add> if not f.deps.empty? <add> puts "Depends on: #{f.deps.join(', ')}" <add> end <add> <ide> if f.prefix.parent.directory? <ide> kids=f.prefix.parent.children <ide> kids.each d...
1
Text
Text
add advanced test helpers docs to guides
d45b74e89708bb26c68f04e17090eb1c56898ed8
<ide><path>guides/source/testing.md <ide> class ProfileControllerTest < ActionDispatch::IntegrationTest <ide> end <ide> ``` <ide> <add>#### Using Separate Files <add> <add>If you find your helpers are cluttering `test_helper.rb`, you can extract them into separate files. One good place to store them is `lib/test`. <ad...
1
Go
Go
fix hostname support for compose file
d0117238fa74ea75cdec7b9205620c59bafc4508
<ide><path>daemon/cluster/executor/container/container.go <ide> func (c *containerConfig) config() *enginecontainer.Config { <ide> User: c.spec().User, <ide> Hostname: c.spec().Hostname, <ide> Env: c.spec().Env, <add> Hostname: c.spec().Hostname, <ide> WorkingDir: c.spec().Dir, <ide> Im...
1
Python
Python
upgrade `moto` library to version 3.0
de29eb6122cd2e66561d6b9fa99bb730cdfa3053
<ide><path>setup.py <ide> def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version <ide> 'jira', <ide> 'jsondiff', <ide> 'mongomock', <del> # Moto3 is limited for unknown reason <del> # TODO: attempt to remove the limitation <del> 'moto~=2.2,>=2.2.12', <add> 'moto>=3.0.3'...
2
Javascript
Javascript
use the toequaloneof matcher in jqlite tests
121f64936e82c92c6ec055b07be7511cc1c2834a
<ide><path>test/jqLiteSpec.js <ide> describe('jqLite', function() { <ide> '<option>test 2</option>' + <ide> '</select>').val()).toEqual(['test 1']); <ide> <del> // In jQuery >= 3.0 .val() on select[multiple] with no selected options returns an <del> // empty array, not null. <del> // S...
1
Python
Python
use tensorflow leaky_relu op for efficiency
f699346386e2de5a76fbed1f1c2d16c6fa1d9000
<ide><path>keras/backend/tensorflow_backend.py <ide> def relu(x, alpha=0., max_value=None): <ide> A tensor. <ide> """ <ide> if alpha != 0.: <del> negative_part = tf.nn.relu(-x) <del> x = tf.nn.relu(x) <add> x = tf.nn.leaky_relu(x, alpha) <add> else: <add> x = tf.nn.relu(x) <ad...
1
PHP
PHP
add keys method to messagebag
01d5d7465ee5975352b953cbe63131612b1a0d27
<ide><path>src/Illuminate/Support/MessageBag.php <ide> public function __construct(array $messages = array()) <ide> } <ide> } <ide> <add> /** <add> * Get the keys present in the message bag. <add> * <add> * @return array <add> */ <add> public function keys() <add> { <add> return array_keys($this->messages); <a...
1
Python
Python
correct error in description of ndarray.base
a6c974489b753437dc5929326d4c320d39f26c08
<ide><path>numpy/doc/subclassing.py <ide> def __array_wrap__(self, arr, context=None): <ide> True <ide> >>> # Take a view of a view <ide> >>> v2 = v1[1:] <del>>>> # base points to the view it derived from <del>>>> v2.base is v1 <add>>>> # base points to the original array that it was derived from <add>>>> v2.base is ar...
1
Javascript
Javascript
improve performance for sync write finishes
2205f85b2caadee425a0a86bd8cc3bcb889e4bfe
<ide><path>benchmark/streams/writable-manywrites.js <ide> const common = require('../common'); <ide> const Writable = require('stream').Writable; <ide> <ide> const bench = common.createBenchmark(main, { <del> n: [2e6] <add> n: [2e6], <add> sync: ['yes', 'no'] <ide> }); <ide> <del>function main({ n }) { <add>functi...
3
Ruby
Ruby
bring #reorder back
fb215110401c70cfc7013c6e2ad5753fa4e374e9
<ide><path>activerecord/lib/active_record/base.rb <ide> class Base <ide> class << self # Class methods <ide> delegate :find, :first, :last, :all, :destroy, :destroy_all, :exists?, :delete, :delete_all, :update, :update_all, :to => :scoped <ide> delegate :find_each, :find_in_batches, :to => :scoped <del>...
4
Ruby
Ruby
fix update_version_rb task
7142e924b4ea366ef4ba067cd7afe6581c98b4c4
<ide><path>tasks/release.rb <ide> file = Dir[glob].first <ide> ruby = File.read(file) <ide> <del> major, minor, tiny, pre = version.split('.') <del> pre = pre ? pre.inspect : "nil" <del> <del> ruby.gsub!(/^(\s*)MAJOR = .*?$/, "\\1MAJOR = #{major}") <del> raise "Could not insert MAJOR in...
1
Ruby
Ruby
remove some lasigns
05168067609b867eb77a99ff3eb39250d22ae046
<ide><path>activerecord/lib/active_record/attribute_methods/primary_key.rb <ide> def reset_primary_key #:nodoc: <ide> end <ide> <ide> def get_primary_key(base_name) #:nodoc: <del> key = 'id' <ide> case primary_key_prefix_type <del> when :table_name <del> key =...
1
Ruby
Ruby
parse version from sdksettings.json
c77c9422915773c33c33ebba0d913c4f5ca29c57
<ide><path>Library/Homebrew/os/mac/sdk.rb <ide> def sdk_paths <ide> <ide> # Use unversioned SDK path on Big Sur to avoid issues such as: <ide> # https://github.com/Homebrew/homebrew-core/issues/67075 <del> if OS::Mac.version >= :big_sur <del> sdk_path = File.join(sdk_pre...
1
Javascript
Javascript
add animated param in listview#scrollto
9506e5afc7844a45d3029c209ae5809c5f4c5e44
<ide><path>Libraries/CustomComponents/ListView/ListView.js <ide> var ListView = React.createClass({ <ide> this.refs[SCROLLVIEW_REF].getScrollResponder(); <ide> }, <ide> <del> scrollTo: function(destY, destX) { <del> this.getScrollResponder().scrollResponderScrollTo(destX || 0, destY || 0); <add> scrollTo:...
1
Javascript
Javascript
fix linting errors
e5844314e3b644e52d6d73b24dc66b6e1a508094
<ide><path>examples/with-redux/pages/index.js <ide> import React from 'react' <del>import { reducer, initStore, startClock } from '../store' <del>import withRedux from 'next-redux-wrapper'; <add>import { initStore, startClock } from '../store' <add>import withRedux from 'next-redux-wrapper' <ide> import Page from '../...
2
PHP
PHP
build settings in bootstrap
89d3221adcce65dbd7ab13fcc200676963f4b8ed
<ide><path>app/Config/bootstrap.php <ide> * The settings below can be used to set additional paths to models, views and controllers. <ide> * <ide> * App::build(array( <del> * 'Plugin' => array('/full/path/to/plugins/', '/next/full/path/to/plugins/'), <del> * 'Model' => array('/full/path/to/models/', '/next/...
2
Python
Python
add tests class to the seupt.py script
611cb841fa332c76479347a53ddd28e1b8d3dac5
<ide><path>setup.py <ide> import glob <ide> import sys <ide> <del>from setuptools import setup <del> <add>from setuptools import setup, Command <ide> <ide> if sys.version_info < (2, 6) or (3, 0) <= sys.version_info < (3, 3): <ide> print('Glances requires at least Python 2.6 or 3.3 to run.') <ide> sys.exit(1) ...
1
Go
Go
fix the attach behavior with -i
537149829accde869430924cf988f64cfbd16f99
<ide><path>container.go <ide> func (container *Container) Attach(stdin io.ReadCloser, stdinCloser io.Closer, s <ide> utils.Debugf("[start] attach stdout\n") <ide> defer utils.Debugf("[end] attach stdout\n") <ide> // If we are in StdinOnce mode, then close stdin <del> if container.Config.StdinOnce { <del...
1
PHP
PHP
use actual value in selected/disabled check
b90cf78401880c5868b569b623dc8ba65dda7091
<ide><path>src/View/Widget/SelectBoxWidget.php <ide> protected function _renderOptions($options, $disabled, $selected, $escape) <ide> ]; <ide> if (is_array($val) && isset($optAttrs['text'], $optAttrs['value'])) { <ide> $optAttrs = $val; <add> $key = $optAttrs['valu...
2
PHP
PHP
add the possibility to set an option shortcut
55887ac32840fbd88cf7ed7040c126d0742aed89
<ide><path>src/Illuminate/Console/Parser.php <ide> protected static function parseOption($token) <ide> $description = trim($description); <ide> } <ide> <add> $shortcut = null; <add> $matches = preg_split('/\s*\|\s*/', $token, 2); <add> if (isset($matches[1])) { <add> ...
2
PHP
PHP
fix cs error
97852552d5d6fe6c73aac0649c8474367d82eef1
<ide><path>tests/TestCase/Mailer/EmailTest.php <ide> public function testFormatAddress() <ide> <ide> $result = $this->Email->getMessage()->formatAddress([ <ide> 'cake@cakephp.org' => 'cake@cakephp.org', <del> 'php@cakephp.org' => 'php@cakephp.org' <add> 'php@cakephp.org' => 'p...
1
Java
Java
update license header for recently modified files
0829cbfdd3adc4459e47b6c4e1411dba796f964a
<ide><path>spring-test-mvc/src/main/java/org/springframework/test/web/servlet/MockMvcBuilderSupport.java <ide> /* <del> * Copyright 2002-2012 the original author or authors. <add> * Copyright 2002-2013 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide...
10
PHP
PHP
deliver() config argument
75397c58dd7b0cfcb86dd0c41c9757338ee02335
<ide><path>src/Mailer/Email.php <ide> class Email implements JsonSerializable, Serializable <ide> /** <ide> * Constructor <ide> * <del> * @param array|string|null $config Array of configs, or string to load configs from email.php <add> * @param array|string|null $config Array of configs, or string...
1
PHP
PHP
fix prefix paths for controller bake
92c89f782dc5fb9f2b04ea1eb7ba96a3c44a6c65
<ide><path>src/Console/Command/Task/ControllerTask.php <ide> public function bakeController($controllerName, $data) { <ide> return $contents; <ide> } <ide> <add>/** <add> * Gets the path for output. Checks the plugin property <add> * and returns the correct path. <add> * <add> * @return string Path to output. <add>...
2
Ruby
Ruby
define a synchronousqueue for test in action pack
d0c25f253f43acba6ce27a1d3116c16fa4d3b536
<ide><path>actionpack/test/abstract_unit.rb <ide> require 'active_record' <ide> require 'action_controller/caching' <ide> require 'action_controller/caching/sweeping' <del>require 'rails/queueing' <ide> <ide> require 'pp' # require 'pp' early to prevent hidden_methods from not picking up the pretty-print methods until...
2
Ruby
Ruby
remove flaky test."
cc0ea9aec3b5d556082ca1e24910fe11cc2ef338
<ide><path>Library/Homebrew/test/cask/cmd/upgrade_spec.rb <ide> expect(local_transmission.versions).to include("2.60") <ide> expect(local_transmission.versions).not_to include("2.61") <ide> end <add> <add> it 'would update "auto_updates" and "latest" Casks when their tokens are provided in th...
1
PHP
PHP
fix failing tests caused by previous commit
6d6ac1083425ecc4e0efe4be6ce98d8cea6a2989
<ide><path>lib/Cake/Console/Command/Task/FixtureTask.php <ide> public function getPath() { <ide> */ <ide> protected function _generateSchema($tableInfo) { <ide> $schema = $this->_Schema->generateTable('f', $tableInfo); <del> return substr($schema, 10, -2); <add> return substr($schema, 13, -2); <ide> } <ide> <id...
4
Javascript
Javascript
add tests for options.fs in fs streams
39ff64756bd5bc7147236b36ee9444ceddb3e6d2
<ide><path>test/parallel/test-fs-stream-fs-options.js <add>'use strict'; <add> <add>require('../common'); <add>const fixtures = require('../common/fixtures'); <add>const path = require('path'); <add>const fs = require('fs'); <add>const assert = require('assert'); <add> <add>const tmpdir = require('../common/tmpdir'); <...
1
Javascript
Javascript
turn reactdomfibercomponent into a singleton
ec178acf151f2642897f3ef5aa29005e059be4b8
<ide><path>src/renderers/dom/fiber/ReactDOMFiberComponent.js <ide> * of patent rights can be found in the PATENTS file in the same directory. <ide> * <ide> * @providesModule ReactDOMFiberComponent <add> * @flow <ide> */ <ide> <ide> /* global hasOwnProperty:true */ <ide> var EventPluginRegistry = require('EventPlug...
5
Ruby
Ruby
change description of basicrendering#render
8c8fb895bbe8e4370922283356f62681170748f4
<ide><path>actionpack/lib/action_controller/metal/rendering.rb <ide> module ActionController <ide> module BasicRendering <ide> extend ActiveSupport::Concern <ide> <del> # Render template to response_body <add> # Render text or nothing (empty string) to response_body <ide> # :api: public <ide> def r...
1
Python
Python
unify polynomial power functions
ddbc31c2d71285f426dc16fab8ac2e00ffe6c1f8
<ide><path>numpy/polynomial/chebyshev.py <ide> def chebpow(c, pow, maxpower=16): <ide> array([15.5, 22. , 16. , ..., 12.5, 12. , 8. ]) <ide> <ide> """ <add> # note: this is more efficient than `pu._pow(chebmul, c1, c2)`, as it <add> # avoids converting between z and c series repeatedly <add> <ide> #...
7
Python
Python
add chrome timeline support in tensorflow
e74a37438b5389ae19eb61b431859f9789100874
<ide><path>keras/backend/tensorflow_backend.py <ide> from tensorflow.python.ops import variables <ide> <ide> from collections import defaultdict <add>import inspect <ide> import numpy as np <ide> import os <ide> import warnings <ide> class Function(object): <ide> name: a name to help users identify what this f...
4
Go
Go
build types and unsupported stubs everywhere
6f1553625dbb1adfe87f5a42c1f2f4ca007da5a7
<ide><path>daemon/graphdriver/quota/projectquota_unsupported.go <del>// +build linux,exclude_disk_quota linux,!cgo <add>// +build linux,exclude_disk_quota linux,!cgo !linux <ide> <ide> package quota // import "github.com/docker/docker/daemon/graphdriver/quota" <ide> <ide><path>daemon/graphdriver/quota/types.go <del>/...
2
Text
Text
apply suggestions from code review
1cf64e6d8d779e533a424fe4f39139977002acba
<ide><path>README.md <ide> With Ember, you get all of these things: <ide> * [**Flexibility**](https://guides.emberjs.com/release/models/customizing-adapters/) Use _**any**_ backend stack with your Ember apps, thanks to the flexibility of adapters and serializers. <ide> * [**Autotracking**](https://guides.emberjs.com/re...
1
Ruby
Ruby
reduce minimum clt version
50c1fea4ea9ca8067e194db5918fbf5a7f5c3ca1
<ide><path>Library/Homebrew/os/mac/xcode.rb <ide> def latest_version <ide> def minimum_version <ide> case MacOS.version <ide> when "10.12" then "8.0.0" <del> else "4.0.0" <add> else "1.0.0" <ide> end <ide> end <ide>
1
Text
Text
add note about pip being required
c4aed2fc83c3c338b39b0fc3293168ef92669e35
<ide><path>BUILDING.md <ide> The Node.js project supports Python >= 3 for building and testing. <ide> <ide> #### Unix prerequisites <ide> <del>* `gcc` and `g++` >= 8.3 or newer, or <add>* `gcc` and `g++` >= 8.3 or newer <ide> * GNU Make 3.81 or newer <ide> * Python 3.6, 3.7, 3.8, 3.9, or 3.10 (see note above) <add> ...
1
Ruby
Ruby
remove unnecessary `compact`
269a184c1962e90edcca47515833cb7eef0aaa41
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb <ide> def connection_pool_names # :nodoc: <ide> end <ide> <ide> def connection_pool_list <del> owner_to_pool_manager.values.compact.flat_map { |m| m.pool_configs.map(&:pool) } <add> owner_to_pool_manager...
1
PHP
PHP
use $this instead
11244ffba32e1e7c6c82c2ef7c0c403210ff1ffd
<ide><path>src/Console/ConsoleOptionParser.php <ide> public function __construct($command = null, $defaultOptions = true) <ide> * <ide> * @param string|null $command The command name this parser is for. The command name is used for generating help. <ide> * @param bool $defaultOptions Whether you want the...
1
Javascript
Javascript
add looprotect error to 'output'
fb8a5d7af7d5c5b88829be7dc63ea373cf4ee86b
<ide><path>client/rechallenge/transformers.js <ide> import { updateContents } from '../../common/utils/polyvinyl'; <ide> <ide> const babelOptions = { presets: [ presetEs2015, presetReact ] }; <ide> loopProtect.hit = function hit(line) { <del> var err = 'Error: Exiting potential infinite loop at line ' + <add> var er...
1
Ruby
Ruby
move global methods into `kernel` module
e5899a6101320cb0ed10ddf0434802d752b2c78b
<ide><path>Library/Homebrew/utils.rb <ide> require "tap_constants" <ide> require "time" <ide> <del>def require?(path) <del> return false if path.nil? <del> <del> require path <del> true <del>rescue LoadError => e <del> # we should raise on syntax errors but not if the file doesn't exist. <del> raise unless e.mess...
1
Python
Python
ignore whitespaces while parsing gufunc signatures
943729592b380dc58368b6774ad7baa53469466c
<ide><path>numpy/lib/function_base.py <ide> def disp(mesg, device=None, linefeed=True): <ide> <ide> <ide> # See https://docs.scipy.org/doc/numpy/reference/c-api.generalized-ufuncs.html <del>_DIMENSION_NAME = r'\w+' <add>_DIMENSION_NAME = r'\s*\w+\s*' <ide> _CORE_DIMENSION_LIST = '(?:{0:}(?:,{0:})*)?'.format(_DIMENSIO...
1
Text
Text
improve formatting of spanish wireframing article
b28caa1b7e8089b23ad15b72e008991c6ccfe2de
<ide><path>guide/spanish/visual-design/wireframing/index.md <ide> Wireframing es una forma de diseñar una aplicación a nivel estructural. Una es <ide> <ide> Encuentre recursos adicionales en Wireframing [aquí](http://www.experienceux.co.uk/faqs/what-is-wireframing/) <ide> <del>[ <del> <ide> ## Herramientas de alambre...
1
Go
Go
add newline after warning
bb3d7e1e6543a49fd344e765169265a08a19331a
<ide><path>api/client/info.go <ide> func (cli *DockerCli) CmdInfo(args ...string) error { <ide> <ide> // print a warning if devicemapper is using a loopback file <ide> if pair[0] == "Data loop file" { <del> fmt.Fprintf(cli.err, " WARNING: Usage of loopback devices is strongly discouraged for production use. E...
1
Javascript
Javascript
remove unneeded code lines
00a980825a658d32f89067f378471b5f46bade05
<ide><path>lib/WebpackOptionsValidationError.js <ide> const getSchemaPartText = (schemaPart, additionalPath) => { <ide> return schemaText; <ide> }; <ide> <del>const getSchemaPartDescription = (schemaPart, additionalPath) => { <del> if(additionalPath) { <del> for(let i = 0; i < additionalPath.length; i++) { <del> c...
1
Text
Text
fix usage example and separated into two example
77137b1496d46dd515486ff651d9fd7c476a089a
<ide><path>guide/english/bash/bash-rm/index.md <ide> title: Bash rm <ide> <ide> ## Bash command: rm <ide> <del>**Delete a File/Directory** ,for example `rm hello`. <add>### Usage <add> <add>**Delete a File** <add> <add>```bash <add>rm <file name or file path> <add>``` <add> <add>**Delete a Directory** <add> <add>```b...
1
Mixed
Javascript
codify findsourcemap return value when not found
72df448d2a896cbc8ab0d8a61b71b34da6582cec
<ide><path>doc/api/module.md <ide> added: <ide> --> <ide> <ide> * `path` {string} <del>* Returns: {module.SourceMap} <add>* Returns: {module.SourceMap|undefined} Returns `module.SourceMap` if a source <add> map is found, `undefined` otherwise. <ide> <ide> `path` is the resolved path for the file for which a correspo...
4