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
fix warnings on complex keys
906b2fe6f3a3ea83fef70237c53ed06928ead0a5
<ide><path>src/ORM/Table.php <ide> protected function _insert($entity, $data) <ide> $primary = array_combine($primary, $id); <ide> $primary = array_intersect_key($data, $primary) + $primary; <ide> <del> $filteredKeys = array_filter($primary, 'strlen'); <add> $filteredKeys = array_filter($...
3
Ruby
Ruby
add tests for the polymorphic_path method
5dd6e1b142a5673f1ce6a882ca07e2526c43e740
<ide><path>actionview/test/activerecord/polymorphic_routes_test.rb <ide> def setup <ide> end <ide> <ide> def assert_url(url, args) <add> host = self.class.default_url_options[:host] <add> <add> assert_equal url.sub(/http:\/\/#{host}/, ''), polymorphic_path(args) <ide> assert_equal url, polymorphic_url(ar...
1
Javascript
Javascript
improve buffer.from performance
fc1fa4e2c49aa060b97b139ff02b5be8037dba94
<ide><path>lib/buffer.js <ide> Buffer.from = function from(value, encodingOrOffset, length) { <ide> if (isAnyArrayBuffer(value)) <ide> return fromArrayBuffer(value, encodingOrOffset, length); <ide> <del> if (value == null) { <add> if (value === null || value === undefined) { <ide> throw new errors.TypeErro...
1
Python
Python
remove redundant builtins imports
3934ef22494db6d9613c229aaa82ea6a366b7c2f
<ide><path>airflow/providers/amazon/aws/operators/glue.py <ide> # KIND, either express or implied. See the License for the <ide> # specific language governing permissions and limitations <ide> # under the License. <del>from __future__ import unicode_literals <ide> <ide> import os.path <ide> from typing import Optiona...
2
PHP
PHP
fix recusion when exporting configuration data
8c6b0833736188c7343225fcd44dd20247ea19fe
<ide><path>src/Core/ObjectRegistry.php <ide> protected function _checkDuplicate($name, $config) <ide> { <ide> /** @var \Cake\Core\InstanceConfigTrait $existing */ <ide> $existing = $this->_loaded[$name]; <del> $msg = sprintf('The "%s" alias has already been loaded', $name); <add> $msg ...
2
Ruby
Ruby
use default remote if forcing homebrew on linux
df086d618e28cee45011c1609c9884c278f53126
<ide><path>Library/Homebrew/dev-cmd/bump-formula-pr.rb <ide> def bump_formula_pr_args <ide> def use_correct_linux_tap(formula, args:) <ide> default_origin_branch = formula.tap.path.git_origin_branch <ide> <del> return formula.tap.remote_repo, "origin", default_origin_branch, "-" if !OS.linux? || !formula.tap....
1
Python
Python
fix various typos in airflow/cli/commands
fc033048f746684454a447170477d90be4d35794
<ide><path>airflow/cli/commands/dag_command.py <ide> <ide> <ide> def _tabulate_dag_runs(dag_runs: List[DagRun], tablefmt: str = "fancy_grid") -> str: <del> tabulat_data = ( <add> tabulate_data = ( <ide> { <ide> 'ID': dag_run.id, <ide> 'Run ID': dag_run.run_id, <ide> def _tabulate...
3
Javascript
Javascript
add support for transparent evaluation of promises
78b6e8a446c0e38075c14b724f3cdf345c01fa06
<ide><path>src/service/parse.js <ide> function parser(text, json, $filter){ <ide> consume(']'); <ide> return extend( <ide> function(self){ <del> var o = obj(self); <del> var i = indexFn(self); <del> return (o) ? o[i] : undefined; <add> var o = obj(self), <add> i = in...
2
Javascript
Javascript
remove ember global from ember-glimmer loc tests
6e01000e4002910ddc966de07714323c101b95af
<ide><path>packages/ember-glimmer/tests/integration/helpers/loc-test.js <ide> import { RenderingTest, moduleFor } from '../../utils/test-case'; <ide> import { set } from 'ember-metal'; <del>import Ember from 'ember'; <add>import { setStrings } from 'ember-runtime'; <ide> <ide> moduleFor('Helpers test: {{loc}}', class ...
1
Text
Text
add erickwendel to collaborators
948712bc4c4b24edc238222ba6a7e585f51d01ef
<ide><path>README.md <ide> For information about the governance of the Node.js project, see <ide> **Daniele Belardi** <<dwon.dnl@gmail.com>> (he/him) <ide> * [edsadr](https://github.com/edsadr) - <ide> **Adrian Estrada** <<edsadr@gmail.com>> (he/him) <add>* [erickwendel](https://github.com/erickwendel) - <add> **E...
1
Python
Python
fix early return in polyadd
f11c32a592360e6def1c9e338a436ad869598833
<ide><path>numpy/lib/polynomial.py <ide> def polyadd(a1, a2): <ide> a2 = atleast_1d(a2) <ide> diff = len(a2) - len(a1) <ide> if diff == 0: <del> return a1 + a2 <add> val = a1 + a2 <ide> elif diff > 0: <ide> zr = NX.zeros(diff, a1.dtype) <ide> val = NX.concatenate((zr, a1)) ...
1
Ruby
Ruby
resolve warnings by instantizing @attrubtes as nil
e7330f3d4fa97c683a49457239402f826d8016b7
<ide><path>activerecord/test/cases/attribute_methods_test.rb <ide> def test_respond_to_with_allocated_object <ide> # by inspecting it. <ide> def test_allocated_object_can_be_inspected <ide> topic = Topic.allocate <add> topic.instance_eval { @attributes = nil } <ide> assert_nothing_raised { topic.inspect ...
1
Text
Text
rewrite javascript guide to use es6
1e7f867a7a14403d549edd6b67949d9598192e14
<ide><path>guides/source/working_with_javascript_in_rails.md <ide> powers, a JavaScript writer can make a web page that can update just parts of <ide> itself, without needing to get the full page data from the server. This is a <ide> powerful technique that we call Ajax. <ide> <del>Rails ships with CoffeeScript by def...
1
Ruby
Ruby
use bundler.with_clean_env instead of custom code
7fc4b4681b83b86d5871f0726460ea808bd76f1b
<ide><path>railties/lib/rails/generators/app_base.rb <ide> def bundle_command(command) <ide> # Thanks to James Tucker for the Gem tricks involved in this call. <ide> _bundle_command = Gem.bin_path('bundler', 'bundle') <ide> <del> bundle_bin_path, bundle_gemfile, rubyopt = ENV['BUNDLE_BIN_PATH'],...
1
Text
Text
add more information about developer tools
fdf2579fca0a1cfe142465c7994956ccbe55197d
<ide><path>guide/english/developer-tools/developer-tools-in-browsers/internet-explorer-developer-tools/index.md <ide> This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/ <ide> <ide> #### More Information: <ide> <!-- Please add any articles you think might be helpful to read before writing ...
1
Text
Text
update documentation for yml usage
9a497582e666b20cf38b87bf8beb64e60d3ed564
<ide><path>guides/source/testing.md <ide> steve: <ide> profession: guy with keyboard <ide> ``` <ide> <del>Each fixture is given a name followed by an indented list of colon-separated key/value pairs. Records are typically separated by a blank space. You can place comments in a fixture file by using the # character in...
1
Text
Text
clarify curriculum translations
04f493f30be3ec6e7c57476d258e823c27f54002
<ide><path>CONTRIBUTING.md <ide> You can help us to: <ide> <ide> - [💻 Create, Update and Fix Bugs in our coding challenges](#create-update-and-fix-bugs-in-our-coding-challenges) <ide> <del>- [🌐 Translate guide articles and coding challenges](#translate-guide-articles-and-coding-challenges) <add>- [Translate guide a...
1
Javascript
Javascript
protect property defs against prototype polution
367c6245b4661d3bed0b67df971dd15fc21c5398
<ide><path>lib/internal/worker/io.js <ide> ObjectDefineProperties(MessageEvent.prototype, { <ide> }, <ide> enumerable: true, <ide> configurable: true, <add> set: undefined, <ide> }, <ide> origin: { <ide> get() { <ide> ObjectDefineProperties(MessageEvent.prototype, { <ide> }, <ide> enumera...
1
Javascript
Javascript
fix typos on $watch
83fbdd1097e27cc50c7c7aed6463d69e66fcf8e7
<ide><path>src/ng/rootScope.js <ide> function $RootScopeProvider(){ <ide> * - `string`: Evaluated as {@link guide/expression expression} <ide> * - `function(newValue, oldValue, scope)`: called with current and previous values as parameters. <ide> * <del> * @param {boolean=} objectEquali...
1
PHP
PHP
fix lint error from merge with master
6182b0f44e0b082ce4b3e7b18a3377ea25251e99
<ide><path>src/Routing/Router.php <ide> public static function fullBaseUrl($base = null) <ide> return static::$_fullBaseUrl; <ide> } <ide> <del> <ide> /** <ide> * Reverses a parsed parameter array into an array. <ide> *
1
Javascript
Javascript
expose unstable_interactiveupdates on reactdom
3118ed9d640ad28af306de308301f4fcd029ffca
<ide><path>packages/react-dom/src/client/ReactDOM.js <ide> const ReactDOM: Object = { <ide> <ide> unstable_deferredUpdates: DOMRenderer.deferredUpdates, <ide> <add> unstable_interactiveUpdates: DOMRenderer.interactiveUpdates, <add> <ide> flushSync: DOMRenderer.flushSync, <ide> <ide> unstable_flushControlled: ...
1
Go
Go
propagate "container" env variable from lxc
e8772943215fff3e17642ad410e4815e40e96b8b
<ide><path>container.go <ide> func (container *Container) Start() (err error) { <ide> env := []string{ <ide> "HOME=/", <ide> "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", <del> "container=lxc", <ide> "HOSTNAME=" + container.Config.Hostname, <ide> } <ide> <ide><path>sysinit/sysinit.go <i...
2
Go
Go
extract docker volume api from local
9862a4b43ec6236305f6b57274c6edd61dad96b7
<ide><path>api/server/router/local/local.go <ide> func (r *router) initRoutes() { <ide> NewGetRoute("/containers/{name:.*}/attach/ws", r.wsContainersAttach), <ide> NewGetRoute("/exec/{id:.*}/json", r.getExecByID), <ide> NewGetRoute("/containers/{name:.*}/archive", r.getContainersArchive), <del> NewGetRoute("/vol...
4
PHP
PHP
fix phpcs and cast attribute values to strings
470f6fc9fb3deedf1a6391b7937b402c2abfed61
<ide><path>src/View/Helper/FormHelper.php <ide> public function checkbox(string $fieldName, array $options = []) <ide> 'name' => $options['name'], <ide> 'value' => $options['hiddenField'] !== true <ide> && $options['hiddenField'] !== '_split' <del> ...
1
PHP
PHP
escape merged attributes by default
83c8e6e6b575d0029ea164ba4b44f4c4895dbb3d
<ide><path>src/Illuminate/View/ComponentAttributeBag.php <ide> public function merge(array $attributeDefaults = []) <ide> { <ide> $attributes = []; <ide> <add> $attributeDefaults = array_map(function ($value) { <add> return e($value); <add> }, $attributeDefaults); <add> <ide> ...
1
Python
Python
simplify assert_warns in test_io.py
a1526cabf554e1c91f82f8371d00c484ca05dbe7
<ide><path>numpy/lib/tests/test_io.py <ide> def test_invalid_raise(self): <ide> data[10 * i] = "2, 2, 2, 2 2" <ide> data.insert(0, "a, b, c, d, e") <ide> mdata = TextIO("\n".join(data)) <del> # <add> <ide> kwargs = dict(delimiter=",", dtype=None, names=True) <del> # XXX...
1
PHP
PHP
fix coding standards in case/event
b2d393eeb9f8f3fe8dd7e8ef51a85d01fe3e8e44
<ide><path>lib/Cake/Test/Case/Event/CakeEventManagerTest.php <ide> public function secondListenerFunction() { <ide> public function stopListener($event) { <ide> $event->stopPropagation(); <ide> } <add> <ide> } <ide> <ide> /** <ide> public function implementedEvents() { <ide> public function thirdListenerFunction(...
1
PHP
PHP
fix code style;
01e42d1a6cd15acf4989390721eb663b57a8407c
<ide><path>tests/Http/HttpRequestTest.php <ide> public function testCreateFromBase() <ide> } <ide> <ide> /** <del> * Tests to issue https://github.com/laravel/framework/issues/10403 <add> * Tests to https://github.com/laravel/framework/issues/10403 issue. <ide> * @dataProvider magicMethodsProvider...
1
PHP
PHP
update the docblock for the csrffilter
5bdf965a7209818881166759f72b10e9aa612aad
<ide><path>app/Http/Filters/CsrfFilter.php <ide> class CsrfFilter { <ide> /** <ide> * Run the request filter. <ide> * <del> * @return mixed <add> * @param \Illuminate\Routing\Route $route <add> * @param \Illuminate\Http\Request $request <add> * @return void <add> * <add> * @throws \Illuminate\Session\To...
1
Javascript
Javascript
make the rest of tests path-independent
945f20808143d954fea73e4ac3a0d71cf73c9b2c
<ide><path>test/common/index.js <ide> exports.childShouldThrowAndAbort = function() { <ide> // continuous testing and developers' machines <ide> testCmd += 'ulimit -c 0 && '; <ide> } <del> testCmd += `${process.argv[0]} --abort-on-uncaught-exception `; <del> testCmd += `${process.argv[1]} child`; <add> tes...
14
Text
Text
create meaningful play file
6da1bc5129691dd6aa8edf49fa4c222ce16f83b0
<ide><path>guide/english/game-development/meaningful-play/index.md <add>--- <add>title: Meaningful Play <add>--- <add> <add>## Meaningful Play <add> <add>The goal of game design is to create meaningful play. When people care about a game and its outcome, they become emotionally invested and the game is meaningful to th...
1
Text
Text
fix headings in old api docs
d9b109b807a1ea859b9d71eb22663f577b0b8c47
<ide><path>docs/api/v1.18.md <ide> redirect_from: <ide> will be rejected. <ide> --> <ide> <del># Docker Engine API v1.18 <del> <del># 1. Brief introduction <add>## 1. Brief introduction <ide> <ide> - The daemon listens on `unix:///var/run/docker.sock` but you can <ide> [Bind Docker to another host/port or a ...
7
Ruby
Ruby
add metadata support to message verifier
3bf3653a69a18d19083f46cf09b11e79b017af7c
<ide><path>activesupport/lib/active_support/message_verifier.rb <ide> require "base64" <ide> require_relative "core_ext/object/blank" <ide> require_relative "security_utils" <add>require_relative "messages/metadata" <ide> <ide> module ActiveSupport <ide> # +MessageVerifier+ makes it easy to generate and verify messa...
2
Javascript
Javascript
add threshold option to line2 raycast
84deae15c8944717fe5d874f1246c4d2959303c8
<ide><path>examples/jsm/lines/LineSegments2.js <ide> LineSegments2.prototype = Object.assign( Object.create( Mesh.prototype ), { <ide> <ide> } <ide> <add> var threshold = 0; <add> if ( 'Line2' in raycaster.params ) { <add> <add> threshold = raycaster.params.Lines2.threshold || 0.0 <add> <add> } <add...
1
Java
Java
fix memory leak in abstractjackson2encoder
857b6006758e2509d6108a104735382ed0e9010d
<ide><path>spring-web/src/main/java/org/springframework/http/codec/json/AbstractJackson2Encoder.java <ide> import org.springframework.core.codec.Hints; <ide> import org.springframework.core.io.buffer.DataBuffer; <ide> import org.springframework.core.io.buffer.DataBufferFactory; <add>import org.springframework.core.io.b...
1
Javascript
Javascript
pass a configfilepath along with the user settings
34a93a9e66ca45557f4f981a9e71422b9ef63fb5
<ide><path>src/application-delegate.js <ide> class ApplicationDelegate { <ide> return remote.systemPreferences.getUserDefault(key, type) <ide> } <ide> <del> async setUserSettings (config) { <add> async setUserSettings (config, configFilePath) { <ide> this.pendingSettingsUpdateCount++ <ide> try { <del> ...
1
PHP
PHP
correct deprecation version
f36cfc351e3f8bffb4877206773da9360a59682c
<ide><path>src/View/Helper/SessionHelper.php <ide> * Session reading from the view. <ide> * <ide> * @link http://book.cakephp.org/3.0/en/views/helpers/session.html <del> * @deprecated 3.1.0 Use request->session() instead. <add> * @deprecated 3.0.2 Use request->session() instead. <ide> */ <ide> class SessionHelper e...
1
Javascript
Javascript
improve readability of isvalidelementtype
77e872217c7f4044ae4f96dd99bf999efb601040
<ide><path>packages/shared/isValidElementType.js <ide> import { <ide> } from 'shared/ReactSymbols'; <ide> <ide> export default function isValidElementType(type: mixed) { <del> return ( <del> typeof type === 'string' || <del> typeof type === 'function' || <del> // Note: its typeof might be other than 'symbol'...
1
Text
Text
fix indentation in changelog.md [ci skip]
d5007f183a977ef440d34645e12885f239f091c1
<ide><path>activerecord/CHANGELOG.md <ide> <ide> Example: <ide> <del> config.generators do |g| <del> g.orm :active_record, primary_key_type: :uuid <del> end <add> config.generators do |g| <add> g.orm :active_record, primary_key_type: :uuid <add> end <ide> <ide> *Jon Mc...
1
Ruby
Ruby
use two spaces instead of 4
81e4f810c1be24eefbf0657410990bd8e167a024
<ide><path>Library/Homebrew/caveats.rb <ide> def plist_caveats <ide> if !plist_path.file? || !plist_path.symlink? <ide> if f.plist_startup <ide> s << "To have launchd start #{f.full_name} at startup:" <del> s << " sudo mkdir -p #{destination}" unless destination_path.directory? <del>...
1
Javascript
Javascript
add missing trailing semicolon
d5691a2e6d8725d64d8569f9b1682012ced83eda
<ide><path>resources/js/bootstrap.js <ide> if (token) { <ide> * allows your team to easily build robust real-time web applications. <ide> */ <ide> <del>// import Echo from 'laravel-echo' <add>// import Echo from 'laravel-echo'; <ide> <ide> // window.Pusher = require('pusher-js'); <ide>
1
Text
Text
add test case to regex challenge
1badd3c3a65c4dc3df970b774211b05c831a25ae
<ide><path>curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/restrict-possible-usernames.md <ide> tests: <ide> testString: assert(userCheck.test("Z97")); <ide> - text: Your regex should not match <code>c57bT3</code> <ide> testString: assert(!userCheck.test("c57bT3"...
1
Ruby
Ruby
check access on homebrew_prefix/opt
d298e54e50fdea57456385a6e6eaad6f3fc193b8
<ide><path>Library/Homebrew/cmd/doctor.rb <ide> def check_access_cellar <ide> end <ide> end <ide> <add>def check_access_prefix_opt <add> opt = HOMEBREW_PREFIX.join("opt") <add> if opt.exist? && !opt.writable_real? <add> <<-EOS.undent <add> #{opt} isn't writable. <add> You should `chown` #{opt} <add> ...
1
Java
Java
fix javadoc mistakes and some style
1327982197a13db62be28c1ad871e8f8a72e873d
<ide><path>src/main/java/io/reactivex/Completable.java <ide> public static Completable concat(Iterable<? extends CompletableSource> sources) <ide> /** <ide> * Returns a Completable which completes only when all sources complete, one after another. <ide> * <dl> <del> * <dt><b>Backpressure:</b><dt> <ad...
22
Mixed
Ruby
add a #populate method to migrations
df82237a45e930a7ab53b95bee78a3f34c5b92fb
<ide><path>activerecord/CHANGELOG.md <add>* Add `#only_up` to database migrations for code that is only relevant when <add> migrating up, e.g. populating a new column. <add> <add> *Rich Daley* <add> <ide> * Require raw SQL fragments to be explicitly marked when used in <ide> relation query methods. <ide> ...
3
Text
Text
expand definition of usability testing
f83077167320f26a3c2a06db07624bcc0ccbee2a
<ide><path>guide/english/user-experience-research/usability-testing/index.md <ide> title: Usability Testing <ide> --- <ide> ## Usability Testing <ide> <del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/user-experience-research/usability-testing/index.md' target='_blank' rel='nof...
1
Text
Text
add text from english version
18fdaf3731a88b487c51d37b22db384f6909a115
<ide><path>docs/russian/README.md <ide> <table> <ide> <tr> <add> <!-- Do not translate this table --> <ide> <td> Read these guidelines in </td> <ide> <td><a href="/CONTRIBUTING.md"> English </a></td> <ide> <td><a href="/docs/chinese/README.md"> 中文 </a></td> <ide> <ide> Hello 👋 ! <id...
1
PHP
PHP
fix cs error
6e5f1fc563d4809a31ac04c47254a6d54597a410
<ide><path>src/Routing/Route/Route.php <ide> public function match(array $url, array $context = []) <ide> $defaults = $this->defaults; <ide> $context += ['params' => []]; <ide> <del> if (!empty($this->options['persist']) && <add> if (!empty($this->options['persist']) && <ide> ...
1
Javascript
Javascript
fix broken merge
6591f6dd9d1c86144903f60e5d19e624c5bf6751
<ide><path>test/unit/traversing.js <ide> test("closest(Array)", function() { <ide> same( jQuery("body").closest(["span","html"]), [{selector:"html", elem:document.documentElement, level:2}], "closest([body, html])" ); <ide> }); <ide> <del><<<<<<< HEAD <del>test("not(Selector|undefined)", function() { <del> expect(11)...
1
Javascript
Javascript
add first bunch of unit tests for geometry
5bf7d23f30e21caf0da337e3e84edd71c868e6ba
<ide><path>test/unit/core/Geometry.js <add>/** <add> * @author simonThiele / https://github.com/simonThiele <add> */ <add> <add>module( "Geometry" ); <add> <add>test( "rotateX", function() { <add> var geometry = getGeometry(); <add> <add> var matrix = new THREE.Matrix4(); <add> matrix.makeRotationX( Math.PI / 2 ); // 9...
1
Ruby
Ruby
move x86_64 requirement into core
ee7178562fde5fb23acde1cb4f8d8e4c4ac969c2
<ide><path>Library/Homebrew/dependency_collector.rb <ide> def parse_symbol_spec spec, tag <ide> when :postgresql then PostgresqlDependency.new(tag) <ide> when :tex then TeXDependency.new(tag) <ide> when :clt then CLTDependency.new(tag) <add> when :arch then ArchRequirement.new(tag) <i...
2
PHP
PHP
remove empty line
79ac996b4474c95d55885049bbd8981afc7c6148
<ide><path>tests/Integration/Events/EventFakeTest.php <ide> class EventFakeTest extends TestCase <ide> * Define environment setup. <ide> * <ide> * @param \Illuminate\Contracts\Foundation\Application $app <del> * <ide> * @return void <ide> */ <ide> protected function getEnvironmentSetU...
1
Python
Python
add tests for entity->biluo transformation
2163fd238f01681dc101b5f3e06556ff21473597
<ide><path>spacy/tests/gold/test_biluo.py <add>from __future__ import unicode_literals <add> <add>from ...gold import biluo_tags_from_offsets <add>from ...vocab import Vocab <add>from ...tokens.doc import Doc <add> <add>import pytest <add> <add> <add>@pytest.fixture <add>def vocab(): <add> return Vocab() <add> <add>...
1
Javascript
Javascript
move _pendingx into reactcompositecomponent
bc4dd411b06b3ae22f16ec622c6f2ca8de44bf6b
<ide><path>src/browser/ui/ReactDOMComponent.js <ide> ReactDOMComponent.Mixin = { <ide> return; <ide> } <ide> <del> ReactComponent.Mixin.receiveComponent.call( <del> this, <del> nextElement, <del> transaction <del> ); <add> var prevElement = this._currentElement; <add> this._current...
3
Go
Go
add lookupdevice() helper
e01b71cebeb96755641a18762dea5b843f107bee
<ide><path>runtime/graphdriver/devmapper/deviceset.go <ide> func (devices *DeviceSet) saveMetadata() error { <ide> return nil <ide> } <ide> <add>func (devices *DeviceSet) lookupDevice(hash string) (*DevInfo, error) { <add> info := devices.Devices[hash] <add> if info == nil { <add> return nil, fmt.Errorf("Unknown dev...
1
Go
Go
add lxc support for restricting proc
0779a8c3287fbf7ff1938df10897b551b839cbee
<ide><path>daemon/execdriver/lxc/driver.go <ide> func init() { <ide> } <ide> <ide> type driver struct { <del> root string // root path for the driver to use <del> apparmor bool <del> sharedRoot bool <add> root string // root path for the driver to use <add> apparmor bool <add> sharedRoot ...
2
Text
Text
add section on unit testing middleware to docs
7edcaf2db18951263f7ab7f9fe357606ac24217e
<ide><path>docs/recipes/WritingTests.md <ide> describe('todos reducer', () => { <ide> }); <ide> ``` <ide> <add>### Middleware <add> <add>Middleware functions wrap behavior of `dispatch` calls in Redux, so to test this modified behavior we need to mock the behavior of the `dispatch` call. <add> <add>#### Example <add...
1
Javascript
Javascript
change babel/register to babel-register
245ef7c2be5ba5e417b3ccab661561e421b706e7
<ide><path>index.js <ide> /* eslint-disable no-process-exit */ <del>require('babel/register'); <add>require('babel-register'); <ide> require('dotenv').load(); <ide> <ide> var Rx = require('rx'),
1
Javascript
Javascript
verify errors thrown from fs stat apis
5eccbb09fa04ccc3ad3a5624d0552b71233dff3f
<ide><path>test/parallel/test-fs-error-messages.js <ide> // USE OR OTHER DEALINGS IN THE SOFTWARE. <ide> <ide> 'use strict'; <del>require('../common'); <add>const common = require('../common'); <ide> const fixtures = require('../common/fixtures'); <ide> const assert = require('assert'); <ide> const fs = require('fs');...
1
Ruby
Ruby
provide more information about bad sf urls
24b4d445cf289a83e7cc22ff1844a5e788a0a62a
<ide><path>Library/Homebrew/cmd/audit.rb <ide> def audit_urls <ide> end <ide> <ide> if p =~ %r[^http://prdownloads\.] <del> problem "Update this url (don't use prdownloads)." <add> problem "Update this url (don't use prdownloads). See:\nhttp://librelist.com/browser/homebrew/2011/1/12/prdownlo...
1
Javascript
Javascript
use safari 7
9693a426e3814c0c2d83802015ae6cd8cfec8e3e
<ide><path>karma-shared.conf.js <ide> module.exports = function(config, specificOptions) { <ide> 'SL_Safari': { <ide> base: 'SauceLabs', <ide> browserName: 'safari', <del> platform: 'Mac 10.8', <del> version: '6' <add> platform: 'OS X 10.9', <add> version: '7' <ide> ...
1
Ruby
Ruby
fix args to ruby method
2dac10a71146d44cfa8dd985a9187ed5384d9e7f
<ide><path>Library/Homebrew/formula.rb <ide> def rake *args <ide> system "#{ruby_bin}/rake", *args <ide> end <ide> <del> def ruby <add> def ruby *args <ide> system "#{ruby_bin}/ruby", *args <ide> end <ide>
1
Text
Text
replace rct_export with rct_export_method
127649962dca686b86b55a4683c0cc640dd9fe98
<ide><path>README.md <ide> var GeoInfo = React.createClass({ <ide> <ide> ## Extensibility <ide> <del>It is certainly possible to create a great app using React Native without writing a single line of native code, but React Native is also designed to be easily extended with custom native views and modules - that means...
2
Javascript
Javascript
minimize time for child_process benchmark
32f77ff8ce3b67ba14943738b28e6912b44a1454
<ide><path>test/sequential/test-benchmark-child-process.js <ide> const path = require('path'); <ide> <ide> const runjs = path.join(__dirname, '..', '..', 'benchmark', 'run.js'); <ide> <del>const child = fork(runjs, ['--set', 'dur=0.1', <add>const child = fork(runjs, ['--set', 'dur=0', <ide> ...
1
Ruby
Ruby
avoid array#to_s and array(nil)"
7f0fcadd3650eaee5bd6a8ab8032ed3c5627385b
<ide><path>activesupport/lib/active_support/vendor/i18n-0.1.3/lib/i18n.rb <ide> def default_exception_handler(exception, locale, key, options) <ide> # Merges the given locale, key and scope into a single array of keys. <ide> # Splits keys that contain dots into multiple keys. Makes sure all <ide> # keys are...
1
Go
Go
add test and move one from rm to rmi
c68e6b15a5d128eee1637c55471907d90cb828d2
<ide><path>integration-cli/docker_cli_rm_test.go <ide> func TestRmContainerOrphaning(t *testing.T) { <ide> logDone("rm - container orphaning") <ide> } <ide> <del>func TestRmTagWithExistingContainers(t *testing.T) { <del> container := "test-delete-tag" <del> newtag := "busybox:newtag" <del> bb := "busybox:latest" <del...
2
Text
Text
add api docs for secrets
0bcb65ccbae17bf9370191bb295548d232569b93
<ide><path>docs/reference/api/docker_remote_api_v1.25.md <ide> List containers <ide> - `volume`=(`<volume name>` or `<mount point destination>`) <ide> - `network`=(`<network id>` or `<network name>`) <ide> - `health`=(`starting`|`healthy`|`unhealthy`|`none`) <del> <add> <ide> **Status codes**: <ide> <ide>...
1
Go
Go
implement maintainer to builder
92e98c66af7543f9a9d6c1a223333201b39aa6dc
<ide><path>builder.go <ide> func (builder *Builder) clearTmp(containers, images map[string]struct{}) { <ide> func (builder *Builder) Build(dockerfile io.Reader, stdout io.Writer) (*Image, error) { <ide> var ( <ide> image, base *Image <add> maintainer string <ide> tmpContainers map[string]struct{} = make(map[...
1
Javascript
Javascript
make assert.assertionerror instance of error
c420c89dbd84cc9b7460f25126dd873627e9accf
<ide><path>lib/assert.js <ide> assert.AssertionError = function AssertionError (options) { <ide> Error.captureStackTrace(this, stackStartFunction); <ide> } <ide> }; <add>process.inherits(assert.AssertionError, Error); <ide> <ide> assert.AssertionError.prototype.toString = function() { <ide> if (this.message) {
1
Mixed
Javascript
remove index and datasetindex from element
a3392e0e59ae77a9c081b4c14de2c95a35422e18
<ide><path>docs/getting-started/v3-migration.md <ide> Chart.js is no longer providing the `Chart.bundle.js` and `Chart.bundle.min.js`. <ide> ##### Time Scale <ide> <ide> * `getValueForPixel` now returns milliseconds since the epoch <add> <add>#### Controllers <add> <add>##### Core Controller <add> <add>* The first par...
18
PHP
PHP
add a hasfinder method to table object
3fc40228c42f2f111fbb49d04c00b482791390d2
<ide><path>src/ORM/Table.php <ide> protected function _processDelete($entity, $options) { <ide> return $success; <ide> } <ide> <add>/** <add> * Returns true if the finder exists for the table <add> * <add> * @param string $type name of finder to check <add> * <add> * @return bool <add> */ <add> public function hasF...
2
Ruby
Ruby
fix access to `livecheck` constants in formulae
768ebe575002075cd9f2952e5db41c72fbbac88e
<ide><path>Library/Homebrew/formula.rb <ide> class Formula <ide> include Utils::Shell <ide> include Context <ide> include OnSystem::MacOSAndLinux <add> include Homebrew::Livecheck::Constants <ide> extend Forwardable <ide> extend Cachable <ide> extend Predicable <ide> def test(&block) <ide> def livechec...
1
Text
Text
update the scaffold generator outputs
2161434d1671edac32ef06bf35cc8fe4c905a7db
<ide><path>guides/source/command_line.md <ide> $ rails generate scaffold HighScore game:string score:integer <ide> invoke test_unit <ide> create test/models/high_score_test.rb <ide> create test/fixtures/high_scores.yml <del> route resources :high_scores <add> invoke resource_route <add...
2
Javascript
Javascript
add param info for `$routeupdate` event
b2b33608a3d25959f4843b2f47a1f9431f60f563
<ide><path>src/ngRoute/route.js <ide> function $RouteProvider() { <ide> * @name $route#$routeUpdate <ide> * @eventType broadcast on root scope <ide> * @description <del> * <ide> * The `reloadOnSearch` property has been set to false, and we are reusing the same <ide> * instance of the Contro...
1
Mixed
Javascript
update all internal errors
6e1c25c45672b70f4b6c6c8af56d9c0762bfae04
<ide><path>doc/api/errors.md <ide> An invalid symlink type was passed to the [`fs.symlink()`][] or <ide> <ide> An attempt was made to add more headers after the headers had already been sent. <ide> <del><a id="ERR_HTTP_INVALID_CHAR"></a> <del>### ERR_HTTP_INVALID_CHAR <del> <del>An invalid character was found in an H...
3
Javascript
Javascript
update $location.search() jsdoc signature
894c7da2f3c88969404bd7178daec827093e2f90
<ide><path>src/ng/location.js <ide> LocationHashbangInHtml5Url.prototype = <ide> * If the argument is a hash object containing an array of values, these values will be encoded <ide> * as duplicate search parameters in the url. <ide> * <del> * @param {(string|Array<string>)=} paramValue If `search` is a strin...
1
Python
Python
raise exceptions instead of asserts
0d309ce39ab2582ecb409d0f824d779b7e397c9b
<ide><path>utils/download_glue_data.py <ide> def format_mrpc(data_dir, path_to_data): <ide> mrpc_test_file = os.path.join(mrpc_dir, "msr_paraphrase_test.txt") <ide> urllib.request.urlretrieve(MRPC_TRAIN, mrpc_train_file) <ide> urllib.request.urlretrieve(MRPC_TEST, mrpc_test_file) <del> assert...
1
Python
Python
change should_response to should_respond
b4324bb9cc3739ffccc55238917b3a1238084131
<ide><path>tests/api_connexion/endpoints/test_config_endpoint.py <ide> def setup_method(self) -> None: <ide> self.client = self.app.test_client() # type:ignore <ide> <ide> @patch("airflow.api_connexion.endpoints.config_endpoint.conf.as_dict", return_value=MOCK_CONF) <del> def test_should_response_200_t...
13
Java
Java
introduce soft assertions for webtestclient
25dca404138e85e8864e4bfa4b37c88f236a559e
<ide><path>spring-test/src/main/java/org/springframework/test/web/reactive/server/DefaultWebTestClient.java <ide> import java.nio.charset.StandardCharsets; <ide> import java.time.Duration; <ide> import java.time.ZonedDateTime; <add>import java.util.ArrayList; <ide> import java.util.Arrays; <ide> import java.util.Linked...
3
Mixed
Go
resolve the config file from the sudo user
afde6450ee7bd4a43765fdc0a9799b411276d9e4
<ide><path>cliconfig/config.go <ide> var ( <ide> configDir = os.Getenv("DOCKER_CONFIG") <ide> ) <ide> <add>func getDefaultConfigDir(confFile string) string { <add> confDir := filepath.Join(homedir.Get(), confFile) <add> // if the directory doesn't exist, maybe we called docker with sudo <add> if _, err := os.Stat(con...
4
Ruby
Ruby
reject build and test dependency
2888d050f78f047fb82ec97709483978b6d74728
<ide><path>Library/Homebrew/cask_dependent.rb <ide> def full_name <ide> end <ide> <ide> def runtime_dependencies(ignore_missing: false) <del> recursive_dependencies(ignore_missing: ignore_missing).select do |dependency| <del> dependency.tags.blank? <add> recursive_dependencies(ignore_missing: ignore_mis...
1
Go
Go
keep track of the container start time
64fc86fba760dd5cb34cd6d9f3ddf13dc3dc4280
<ide><path>state.go <ide> package docker <ide> <ide> import ( <ide> "sync" <add> "time" <ide> ) <ide> <ide> type State struct { <ide> Running bool <ide> Pid int <ide> ExitCode int <add> StartedAt time.Time <ide> <ide> stateChangeLock *sync.Mutex <ide> stateChangeCond *sync.Cond <ide> func (s *State) setR...
1
Python
Python
fix typo in gcp credentials_provider's docstring
b86bf79bff615e61de98bead4d02eace5690d5fb
<ide><path>airflow/providers/google/cloud/utils/credentials_provider.py <ide> def get_credentials_and_project_id( <ide> <ide> :param key_path: Path to GCP Credential JSON file <ide> :type key_path: str <del> :param key_dict: A dict representing GCP Credential as in the Credential JSON file <del> :type ke...
1
Java
Java
remove write pausing in undertow response
224589ea74a2bfd4230e67331c109944df7260b4
<ide><path>spring-web/src/main/java/org/springframework/http/server/reactive/AbstractListenerWriteProcessor.java <ide> protected void dataReceived(T data) { <ide> * Invoked after the current data has been written and before requesting <ide> * the next item from the upstream, write Publisher. <ide> * <p>The defaul...
2
Python
Python
use context manager to manage pools
36d9274f4ea87f28e2dcbab393b21e34a04eec30
<ide><path>docs/build_docs.py <ide> def run_in_parallel( <ide> verbose, <ide> ): <ide> """Run both - spellcheck and docs build sequentially without multiprocessing""" <del> pool = multiprocessing.Pool(processes=jobs) <del> if not spellcheck_only: <del> run_docs_build_in_parallel( <del> a...
1
Javascript
Javascript
use braces for multiline block
095c0de94d818088cacf2c33ad4913768c15024a
<ide><path>benchmark/buffers/buffer-iterate.js <ide> function main(conf) { <ide> function benchFor(buffer, n) { <ide> bench.start(); <ide> <del> for (var k = 0; k < n; k++) <del> for (var i = 0; i < buffer.length; i++) <add> for (var k = 0; k < n; k++) { <add> for (var i = 0; i < buffer.length; i++) { <ide> ...
22
Go
Go
correct some nits in comments
9279a93f6d43da4c904eeb0adb249fdfa34f7f92
<ide><path>builder/dockerfile/parser/parser.go <ide> func init() { <ide> } <ide> } <ide> <del>// ParseLine parse a line and return the remainder. <add>// ParseLine parses a line and returns the remainder. <ide> func ParseLine(line string, d *Directive) (string, *Node, error) { <ide> // Handle the parser directive '#...
6
Ruby
Ruby
remove unnecessary comment
9c3d01c682056367f59d557720c7a08ca67f48c4
<ide><path>Library/Homebrew/test/support/helper/test_case.rb <ide> def setup <ide> super <ide> <ide> @__argv = ARGV.dup <del> @__env = copy_env # Call #to_hash to duplicate ENV <add> @__env = copy_env <ide> end <ide> <ide> def teardown
1
Javascript
Javascript
simplify applicationinstance creation
b06bd88352228cbc826b3a0e033936b50506260e
<ide><path>packages/ember-application/lib/system/application-instance.js <ide> export default EmberObject.extend(RegistryProxy, { <ide> container: null, <ide> <ide> /** <del> The application's registry. The registry contains the classes, templates, <del> and other code that makes up the application. <add> ...
2
PHP
PHP
use path.public to set 'public' folder location
33ef4462ff94c4f5916aca8b65a4d7ad4747f72d
<ide><path>src/Illuminate/Foundation/Console/ServeCommand.php <ide> public function fire() <ide> <ide> $port = $this->input->getOption('port'); <ide> <add> $public = $this->laravel['path.public']; <add> <ide> $this->info("Laravel development server started on {$host}:{$port}..."); <ide> <del> passthru("php -S ...
1
Text
Text
update devops guide
040eb2d51df99dbadac66f6209e2cd6df63b123b
<ide><path>docs/devops.md <ide> |-| <ide> <!-- do not translate this --> <ide> <del># DevOps Guide <del> <ide> > ### :warning: THIS GUIDE IS NOT LIVE YET. :warning: <ide> > The processes described here will come to effect in the upcoming version of freeCodeCamp.org. <ide> > Some parts of the guide are applicable on th...
1
Ruby
Ruby
remove test that may alter the repository
39b890e255fbee0f1bce1cc1e9ead28ff4be9e2e
<ide><path>Library/Homebrew/test/test_ENV.rb <ide> def setup <ide> class SuperenvTests < Homebrew::TestCase <ide> include SharedEnvTests <ide> <del> attr_reader :env, :bin <del> <ide> def setup <ide> @env = {}.extend(Superenv) <del> @bin = HOMEBREW_REPOSITORY/"Library/ENV/#{MacOS::Xcode.version}" <del> ...
1
Javascript
Javascript
add more tests for wrapmap
4862eb43e3c1b9d428bd64db50c08c6a6d6e01fd
<ide><path>test/unit/manipulation.js <ide> var testAppendForObject = function( valueObj, isFragment ) { <ide> <ide> var testAppend = function( valueObj ) { <ide> <del> expect( 68 ); <add> expect( 75 ); <ide> <ide> testAppendForObject( valueObj, false ); <ide> testAppendForObject( valueObj, true ); <ide> var testAp...
1
Javascript
Javascript
ignore stray escape sequence
c84b3c4b73bb7cbd7116b5872babe7e50b45d4a6
<ide><path>lib/readline.js <ide> Interface.prototype._ttyWrite = function(s, key) { <ide> var next_word, next_non_word, previous_word, previous_non_word; <ide> key = key || {}; <ide> <add> // Ignore escape key - Fixes #2876 <add> if (key.name == 'escape') return; <add> <ide> if (key.ctrl && key.shift) { <ide> ...
1
Javascript
Javascript
remove http.cat. fixes
584ae7b08477fba93be4b77cb1e1511f40c95fdf
<ide><path>lib/http2.js <ide> exports.Client = Client; <ide> exports.createClient = function(port, host) { <ide> return new Client(port, host); <ide> }; <del> <del>exports.cat = function(url, encoding_, headers_) { <del> var encoding = 'utf8'; <del> var headers = {}; <del> var callback = null; <del> <del> console...
4
Ruby
Ruby
add full stack tests for #take
07e133e97ed422436810b7398dcbd780cabea2c3
<ide><path>lib/arel/algebra/relations/operations/take.rb <ide> module Arel <ide> class Take < Compound <ide> attributes :relation, :taken <del> deriving :initialize, :== <add> deriving :initialize, :== <add> requires :limiting <ide> <ide> def externalizable? <ide> true <ide><path>spec/shar...
2
PHP
PHP
apply fixes from styleci
5a39e9dcb5650d674d6ff6e839a4619c25c7f334
<ide><path>src/Illuminate/Console/Scheduling/Event.php <ide> protected function pingCallback($url) <ide> return function (Container $container, HttpClient $http) use ($url) { <ide> try { <ide> $http->get($url); <del> } catch (ClientExceptionInterface | TransferException $e...
2
PHP
PHP
add perhour and perday methods to ratelimiting
9fd47f396505ddaa9c1bb0104e0c185b08476f58
<ide><path>src/Illuminate/Cache/RateLimiting/Limit.php <ide> public static function perMinute($maxAttempts) <ide> return new static('', $maxAttempts); <ide> } <ide> <add> /** <add> * Create a new rate limit using hours as decay time. <add> * <add> * @param int $maxAttempts <add> * @par...
1
Javascript
Javascript
add benchmark for vm.runin*()
030dd14793da2aa1c252e38d33abb37570f8ee8a
<ide><path>benchmark/vm/run-in-context.js <add>'use strict'; <add> <add>const common = require('../common.js'); <add> <add>const bench = common.createBenchmark(main, { <add> n: [1], <add> breakOnSigint: [0, 1], <add> withSigintListener: [0, 1] <add>}); <add> <add>const vm = require('vm'); <add> <add>function main(co...
2
Java
Java
fix typo in javadoc
e16f3b95cb012cdbcf2a1310a86fe881ad8c0fb1
<ide><path>spring-web/src/main/java/org/springframework/http/converter/AbstractHttpMessageConverter.java <ide> protected Long getContentLength(T t, MediaType contentType) throws IOException { <ide> protected abstract boolean supports(Class<?> clazz); <ide> <ide> /** <del> * Abstract template method that reads the a...
1