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 options instead of @options
875bbd58b4175a1219c5f7615946d0b89e51182d
<ide><path>railties/lib/rails/generators/rails/app/app_generator.rb <ide> def config <ide> end <ide> <ide> def database_yml <del> template "config/databases/#{@options[:database]}.yml", "config/database.yml" <add> template "config/databases/#{options[:database]}.yml", "config/database.yml" <ide> ...
1
PHP
PHP
update exception message in test case
559397583ce8493b675309e74df06e474608ca87
<ide><path>tests/TestCase/Routing/RouterTest.php <ide> public function testUrlGenerationOverridingShortString(array $url) <ide> Router::connect('/articles', 'Articles::index'); <ide> <ide> $this->expectException(InvalidArgumentException::class); <del> $this->expectExceptionMessage('cannot be use...
1
Javascript
Javascript
add stream destroy benchmark
869460aa5826e4d61f5e35879815efc7e9f3848b
<ide><path>benchmark/streams/destroy.js <add>'use strict'; <add>const common = require('../common.js'); <add>const { <add> Duplex, <add> Readable, <add> Transform, <add> Writable, <add>} = require('stream'); <add> <add>const bench = common.createBenchmark(main, { <add> n: [1e6], <add> kind: ['duplex', 'readable',...
1
Javascript
Javascript
add onscrolltoindexfailed support
e16b514c5f774fb9ccb5702717585c478cc1cf0c
<ide><path>Libraries/Lists/VirtualizedList.js <ide> type OptionalProps = { <ide> * sure to also set the `refreshing` prop correctly. <ide> */ <ide> onRefresh?: ?Function, <add> /** <add> * Used to handle failures when scrolling to an index that has not been measured yet. Recommended <add> * action is to ei...
1
Python
Python
add a doctest for `getlincoef`
ff26a55e7855f24f065714253fdc5de1c0df9eab
<ide><path>numpy/f2py/crackfortran.py <ide> def buildimplicitrules(block): <ide> <ide> <ide> def myeval(e, g=None, l=None): <add> """ Like `eval` but returns only integers and floats """ <ide> r = eval(e, g, l) <del> if type(r) in [type(0), type(0.0)]: <add> if type(r) in [int, float]: <ide> retu...
1
Go
Go
fix virtual size on images
00cf2a1fa264c167dff0dd50e296c93d4c59908f
<ide><path>api_params.go <ide> type APIHistory struct { <ide> } <ide> <ide> type APIImages struct { <del> Repository string `json:",omitempty"` <del> Tag string `json:",omitempty"` <del> ID string `json:"Id"` <del> Created int64 <del> Size int64 <del> ParentSize int64 <del> <add> Repository st...
4
Javascript
Javascript
put dev-only code into dev blocks
99443922856f74b521cb3a90360a6a5a3a695694
<ide><path>packages/react-reconciler/src/ReactFiberHooks.js <ide> type HookType = <ide> <ide> // the first instance of a hook mismatch in a component, <ide> // represented by a portion of it's stacktrace <del>let currentHookMismatch = null; <add>let currentHookMismatchInDev = null; <ide> <ide> let didWarnAboutMismatc...
1
Java
Java
fix typos in annotationsscannertests
116a256e817624db819c256ab086db6c1bb4a21c
<ide><path>spring-core/src/test/java/org/springframework/core/annotation/AnnotationsScannerTests.java <ide> /* <del> * Copyright 2002-2019 the original author or authors. <add> * Copyright 2002-2020 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> ...
1
Python
Python
remove connection diagnostics
cd04404a8595868053aa46f1e0946de7dc544a0b
<ide><path>celery/worker.py <ide> def receive_message(self): <ide> :rtype: :class:`carrot.messaging.Message` instance. <ide> <ide> """ <del> self.connection_diagnostics() <add> #self.connection_diagnostics() <ide> message = self.task_consumer.fetch() <ide> if message is no...
1
PHP
PHP
fix some valdiation rules
8b50161890a0eb697f878581cd8103f0d4470d71
<ide><path>src/Illuminate/Validation/Validator.php <ide> protected function validateSame($attribute, $value, $parameters) <ide> <ide> $other = Arr::get($this->data, $parameters[0]); <ide> <del> return isset($other) && $value == $other; <add> return isset($other) && $value === $other; <ide> }...
2
PHP
PHP
add method to add a renderer to debugger
6411dddf81762a639aa3aae08e202e2bc684f51f
<ide><path>src/Error/Debugger.php <ide> use Cake\Error\Debug\ScalarNode; <ide> use Cake\Error\Debug\SpecialNode; <ide> use Cake\Error\Debug\TextFormatter; <add>use Cake\Error\ErrorRendererInterface; <ide> use Cake\Error\Renderer\HtmlRenderer; <ide> use Cake\Error\Renderer\TextRenderer; <ide> use Cake\Log\Log; <ide> pub...
2
Python
Python
add testcase for behavior described in
5fa76f6800fb81a621b63c42725c5502e2520302
<ide><path>tests/test_basic.py <ide> def index(): <ide> assert rv == b'request|after' <ide> <ide> <add>def test_request_preprocessing_early_return(): <add> app = flask.Flask(__name__) <add> evts = [] <add> <add> @app.before_request <add> def before_request(): <add> return "hello" <add> <add> ...
1
Ruby
Ruby
add the gem requirement for sqlite3
d00e1646f7f0faaddf0f89f3051d165aadb2567b
<ide><path>activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb <ide> require 'active_record/connection_adapters/sqlite_adapter' <add> <add>gem 'sqlite3', '~> 1.3.4' <ide> require 'sqlite3' <ide> <ide> module ActiveRecord
1
Python
Python
add compat util for decimalvalidator
41d1e42e9cda6bf9697c409e4e293f1c5139ea6e
<ide><path>rest_framework/compat.py <ide> def apply_markdown(text): <ide> else: <ide> DurationField = duration_string = parse_duration = None <ide> <add>try: <add> # DecimalValidator is unavailable in Django < 1.9 <add> from django.core.validators import DecimalValidator <add>except ImportError: <add> Dec...
2
PHP
PHP
add logger contract
3082830437b427386870c3c52a74886646de7b26
<ide><path>src/Illuminate/Contracts/Logging/Logger.php <add><?php namespace Illuminate\Contracts\Logging; <add> <add>interface Logger { <add> <add> /** <add> * Log an alert message to the logs. <add> * <add> * @param string $message <add> * @param array $context <add> * @return void <add> */ <add> public func...
3
Javascript
Javascript
apply observable bindings to new models
f3207fa9024bab3cf34cfdf064cbbea7312b5b60
<ide><path>common/models/article.js <del>'use strict'; <add>import { Observable } from 'rx'; <ide> <ide> module.exports = function(Article) { <del> <add> Article.on('dataSourceAttached', () => { <add> Article.findOne$ = Observable.fromNodeCallback(Article.findOne, Article); <add> Article.findById$ = Observable....
2
Text
Text
fix typo in upgrading guide
04cced06fa6fcd463645724ecc1f92d067209961
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> Record callbacks. <ide> <ide> When you define a `after_rollback` or `after_commit` callback, you <ide> will receive a deprecation warning about this upcoming change. When <del>you are ready, you can opt into the new behvaior and remove the <add>you are ready, y...
1
Text
Text
add link to ecosystem doc.
952e232722f59b24490dfb40bf6dd2354fe28c9c
<ide><path>CONTRIBUTING.md <ide> # Contributing to React Native <ide> <del>Thank you for your interest in contributing to React Native! From commenting on and triaging issues, to reviewing and sending Pull Requests, all contributions are welcome. <add>Thank you for your interest in contributing to React Native! From c...
1
Ruby
Ruby
expand tabs and strip trailing whitespace
c91088cd135b797048f179423158713c4459e556
<ide><path>activerecord/test/mixin_test.rb <ide> <ide> class ListTest < Test::Unit::TestCase <ide> fixtures :mixins <del> <add> <ide> def test_reordering <del> <del> assert_equal [mixins(:list_1), <del> mixins(:list_2), <del> mixins(:list_3), <del> mixi...
1
Go
Go
implement docker load with standalone client lib
9073a52ea839ef224931e1105bfa9c715ee48e2c
<ide><path>api/client/lib/image_load.go <add>package lib <add> <add>import ( <add> "io" <add> "net/url" <add>) <add> <add>// ImageLoad loads an image in the docker host from the client host. <add>// It's up to the caller to close the io.ReadCloser returned by <add>// this function. <add>func (cli *Client) ImageLoad(inp...
2
Javascript
Javascript
check parameter type of fs.mkdir()
fdf829eea48206d0a078dba3a0bf9f77c6acb619
<ide><path>test/parallel/test-fs-mkdir.js <ide> if (common.isMainThread && (common.isLinux || common.isOSX)) { <ide> }); <ide> } <ide> <add>// mkdirSync and mkdir require options.recursive to be a boolean. <add>// Anything else generates an error. <add>{ <add> const pathname = path.join(tmpdir.path, nextdir()); <ad...
2
Ruby
Ruby
use constant for encoding
b0f1cd8719c2c75ebeddb376312fa4bf8c1c9c22
<ide><path>actionpack/lib/action_dispatch/http/parameters.rb <ide> def normalize_encode_params(params) <ide> <ide> new_hash = {} <ide> params.each do |k, v| <del> new_key = k.is_a?(String) ? k.dup.force_encoding("UTF-8").encode! : k <add> new_key = k.is_a?(String) ? k.dup.force_encodi...
1
Ruby
Ruby
remove dead abort_tests method
9339db70c65219c2c575771e5c6a0fd58ee69316
<ide><path>actionpack/test/active_record_unit.rb <ide> def run(*args) <ide> # Default so Test::Unit::TestCase doesn't complain <ide> def test_truth <ide> end <del> <del> private <del> # If things go wrong, we don't want to run our test cases. We'll just define them to test nothing. <del> def abort_tests <d...
1
PHP
PHP
fix cs errors
4e52941f59b9f2b3786f16262260df96794fc1e2
<ide><path>lib/Cake/Console/ConsoleOptionParser.php <ide> public function addSubcommand($name, $options = array()) { <ide> * @param string $name The subcommand name to remove. <ide> * @return $this <ide> */ <del> public function removeSubcommand($name) { <del> unset($this->_subcommands[$name]); <del> ...
2
Javascript
Javascript
integrate relayconnection with rnfeed
09a34f4d0fdcbd428bda39d215ec0c637e3fe03a
<ide><path>Libraries/Components/ScrollResponder.js <ide> var Dimensions = require('Dimensions'); <ide> var Platform = require('Platform'); <ide> var RCTDeviceEventEmitter = require('RCTDeviceEventEmitter'); <del>var React = require('React'); <ide> var ReactNative = require('ReactNative'); <ide> var Subscribable = requi...
2
Text
Text
fix broken links in readme
293db49b7f5969d11d5599f97bd968dbe64c7f8b
<ide><path>README.md <ide> MiniMagick supported transformation. <ide> <ide> ## Compared to other storage solutions <ide> <del>A key difference to how Active Storage works compared to other attachment solutions in Rails is through the use of built-in [Blob](https://github.com/rails/activestorage/blob/master/lib/active...
1
Python
Python
fix 2/3 problem for json save/load
cd33b39a04c52e288c9a6e9a1043a29f72cf6527
<ide><path>spacy/language.py <ide> from contextlib import contextmanager <ide> import shutil <ide> <del>import ujson as json <add>import ujson <ide> <ide> <ide> try: <ide> basestring <ide> except NameError: <ide> basestring = str <ide> <add>try: <add> unicode <add>except NameError: <add> unicode = str...
1
Go
Go
fix health test
1f09adbe163f008e36dffa45c8f4b43605d7426e
<ide><path>integration-cli/docker_cli_health_test.go <ide> func (s *DockerSuite) TestHealth(c *check.C) { <ide> buildImageSuccessfully(c, "no_healthcheck", build.WithDockerfile(`FROM testhealth <ide> HEALTHCHECK NONE`)) <ide> <del> out, _ = dockerCmd(c, "inspect", "--format={{.ContainerConfig.Healthcheck.Test}}", "...
1
Java
Java
remove the action0 overloads
c799e525680e95744a129b427df16791bfad02a1
<ide><path>rxjava-core/src/main/java/rx/Observable.java <ide> public <TKey, TValue, TDuration> Observable<GroupedObservable<TKey, TValue>> gro <ide> return create(new OperationGroupByUntil<T, TKey, TValue, TDuration>(this, keySelector, valueSelector, durationSelector)); <ide> } <ide> <del> /** <del> ...
2
Java
Java
normalize start and end args
2ad3bb2e2d62ffb780bab020f645626a16dd3b4a
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java <ide> public void onSelectionChanged(int start, int end) { <ide> // Android will call us back for both the SELECTION_START span and SELECTION_END span in text <ide> // To prevent double calling back into js w...
1
Text
Text
create an article of error handling with go
b1a5c3679749c6033dc214aadd481ab45df42d3b
<ide><path>guide/english/go/go-errors/index.md <add>--- <add>title: Go Errors <add>--- <add># Go Errors <add> <add>Go has a built-in error interface that looks like: <add> <add>```go <add>type error interface { <add> Error() string <add>} <add>``` <add>Therefore anything that implements the `Error() string` can be use...
1
Javascript
Javascript
check bytelength in readuint(b|l)e
9fea7eae9a48c6c2e8fb75204a4e5c60e700a3e2
<ide><path>benchmark/buffers/buffer-read-with-byteLength.js <ide> const common = require('../common.js'); <ide> <ide> const types = [ <del> 'IntLE', <ide> 'IntBE', <add> 'IntLE', <add> 'UIntBE', <add> 'UIntLE' <ide> ]; <ide> <ide> const bench = common.createBenchmark(main, { <ide><path>lib/buffer.js <ide> Buffe...
3
Javascript
Javascript
continue work on user migration
83c14cccc454419dcbfd415fa438189da89c7831
<ide><path>models/User.js <ide> var userSchema = new mongoose.Schema({ <ide> default: '' <ide> } <ide> }, <del> <add> challengesHash: {}, <ide> portfolio: { <ide> website1Link: { <ide> type: String, <ide> var userSchema = new mongoose.Schema({ <ide> longestStreak: { ...
2
Text
Text
add missing example
542343752ea588f46370cff9cc20278a102cdf7e
<ide><path>threejs/lessons/threejs-post-processing-3dlut.md <ide> Note that Adobe LUTs are not designed for online usage. They are large files. Yo <ide> <ide> The sample below is just a modification of the code above. We only draw the background picture, no glTF file. That picture is the an identity lut image created ...
1
Go
Go
remove stray import comment
200edf803043ede28f61234ca3bd494834c65f9d
<ide><path>libcontainerd/remote/client_io_windows.go <ide> import ( <ide> "github.com/containerd/containerd/cio" <ide> "github.com/pkg/errors" <ide> "github.com/sirupsen/logrus" <del> // "golang.org/x/net/context" <ide> ) <ide> <ide> type delayedConnection struct {
1
Text
Text
remove jscs-loader from readme as it is abandoned
dc58017ff8ddbcdc28cd0ebf17b69ab113856381
<ide><path>README.md <ide> or are automatically applied via regex from your webpack configuration. <ide> |<a href="https://github.com/webpack/mocha-loader"><img width="48" height="48" src="https://worldvectorlogo.com/logos/mocha.svg"></a>|![mocha-npm]|Tests with mocha (Browser/NodeJS)| <ide> |<a href="https://github.co...
1
Java
Java
fix broken test in springjunit4concurrencytests
4e65c10272a97e063389fa8b171b80d3f873ff56
<ide><path>spring-test/src/test/java/org/springframework/test/context/junit4/concurrency/SpringJUnit4ConcurrencyTests.java <ide> /* <del> * Copyright 2002-2016 the original author or authors. <add> * Copyright 2002-2017 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (th...
1
PHP
PHP
fix examples around prefix casing
41f5cf3c4aae084453bcc65485166ec77a5d804f
<ide><path>src/Routing/RouteBuilder.php <ide> public function namePrefix(?string $value = null): string <ide> * Admin prefix: <ide> * <ide> * ``` <del> * Router::prefix('admin', function ($routes) { <add> * Router::prefix('Admin', function ($routes) { <ide> * $routes->resources('Articles')...
3
Javascript
Javascript
remove instatwatchers and use map for lookup
8841132f30e2e35c2dcc6c724f1507aa3e1c1175
<ide><path>lib/fs.js <ide> StatWatcher.prototype.stop = function() { <ide> }; <ide> <ide> <del>var statWatchers = {}; <del>function inStatWatchers(filename) { <del> return Object.prototype.hasOwnProperty.call(statWatchers, filename) && <del> statWatchers[filename]; <del>} <del> <add>const statWatchers = new Map...
1
Ruby
Ruby
avoid array#to_s and array(nil)
7ad461b44dabb586fbad190493ac4ecd96104597
<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
Ruby
Ruby
fix cases where cte's are not supported
3c7e190ee8e3474e4ddf00ae0ac3a7c21d6f3d41
<ide><path>activerecord/lib/active_record/relation/query_methods.rb <ide> def _select!(*fields) # :nodoc: <ide> <ide> # Add a Common Table Expression (CTE) that you can then reference within another SELECT statement. <ide> # <add> # Note: CTE's are only supported in MySQL for versions 8.0 and above. You wil...
3
Python
Python
add a comment
619645e1ab37eea5b2f980f08ce2c2aa69b1183d
<ide><path>libcloud/compute/drivers/gce.py <ide> def create_node( <ide> ex_preemptible=None, ex_image_family=None, ex_labels=None, <ide> ex_accelerator_type=None, ex_accelerator_count=None, <ide> ex_disk_size=None, auth=None): <add> # NOTE: "auth" argument is unused, but it's ...
1
Javascript
Javascript
add test for path.normalize with unc paths
a475e62a3e6bcec3be6ff03f1c4bdbf5b188065c
<ide><path>test/simple/test-path.js <ide> if (isWindows) { <ide> assert.equal(path.normalize('a//b//../b'), 'a\\b'); <ide> assert.equal(path.normalize('a//b//./c'), 'a\\b\\c'); <ide> assert.equal(path.normalize('a//b//.'), 'a\\b'); <add> assert.equal(path.normalize('//server/share/dir/file.ext'), <add> ...
1
Ruby
Ruby
remove unused field
7c24ff19d56b73051b3e7f8f6f3fd0a8b325dcb6
<ide><path>Library/Homebrew/cli/args.rb <ide> def freeze_named_args!(named_args) <ide> @resolved_formulae = nil <ide> @formulae_paths = nil <ide> @casks = nil <del> @formulae_and_casks = nil <ide> @kegs = nil <ide> <ide> self[:named_args] = named_args
1
Ruby
Ruby
find the layout earlier
c52fa675b8784c1bcdc996a353a44922443b0b9f
<ide><path>actionview/lib/action_view/renderer/partial_renderer.rb <ide> def initialize(*) <ide> @context_prefix = @lookup_context.prefixes.first <ide> end <ide> <del> def template_keys <del> if @has_object || @collection <del> @locals.keys + retrieve_variable(@path, @as) <del> else <del>...
2
Text
Text
fix noun vs. verb and more rewording
bfebb0013ecc27e1289c693476ed621cc76f8a95
<ide><path>docs/recipes/reducers/PrerequisiteConcepts.md <ide> As described in [Reducers](../../basics/Reducers.md), a Redux reducer function: <ide> - Should be "pure", which means the reducer: <ide> - Does not _perform side effects_ (such as calling API's or modifying non-local objects or variables). <ide> - Does ...
1
Javascript
Javascript
prevent browser crashes with scope or window
f43c226c67ab64ee056615567e51f976c7637127
<ide><path>src/Angular.js <ide> function isWindow(obj) { <ide> return obj && obj.document && obj.location && obj.alert && obj.setInterval; <ide> } <ide> <add> <add>function isScope(obj) { <add> return obj && obj.$evalAsync && obj.$watch; <add>} <add> <add> <ide> function isBoolean(value) {return typeof value == $bo...
2
Go
Go
retain sandbox only if network is not available
1452fc31d4f687d5f933efda72de8669c0c6663d
<ide><path>libnetwork/sandbox.go <ide> func (sb *sandbox) Delete() error { <ide> continue <ide> } <ide> <del> if err := ep.Leave(sb); err != nil { <add> // Retain the sanbdox if we can't obtain the network from store. <add> if _, err := c.getNetworkFromStore(ep.getNetwork().ID()); err != nil { <ide> retain ...
1
Python
Python
use int64 format for large integers.
becb96216025a9e030f59f7bbab4e22daa5b0e3f
<ide><path>rest_framework/schemas/openapi.py <ide> def _map_field(self, field): <ide> 'items': {}, <ide> } <ide> if not isinstance(field.child, _UnvalidatedField): <del> mapping['items'] = { <del> "type": self._map_field(field.child).get('type') ...
2
Javascript
Javascript
remove defaults values to shave a few bytes
af8d49e1f613ed02972b073b3130e685b5dab8c8
<ide><path>buildin/harmony-module.js <ide> module.exports = function(originalModule) { <ide> if(!module.children) module.children = []; <ide> Object.defineProperty(module, "loaded", { <ide> enumerable: true, <del> configurable: false, <ide> get: function() { <ide> return module.l; <ide> } <ide> });...
2
Javascript
Javascript
remove third argument from assert.strictequal()
8d15f69abd6502cedbc64597085bddfd9774b7a5
<ide><path>test/parallel/test-stream-transform-final.js <ide> The order things are called <ide> const t = new stream.Transform({ <ide> objectMode: true, <ide> transform: common.mustCall(function(chunk, _, next) { <del> assert.strictEqual(++state, chunk, 'transformCallback part 1'); <add> // transformCallback ...
1
PHP
PHP
add some doc blocks
a393b2093176335bf61c2901e3410715850b693c
<ide><path>lib/Cake/Log/CakeLog.php <ide> public static function enabled($streamName) { <ide> } <ide> <ide> /** <del> * Enable stream <add> * Enable stream. Streams that were previously disabled <add> * can be re-enabled with this method. <ide> * <ide> * @param string $streamName to enable <ide> * @return void <i...
1
Text
Text
adapt dnsimple logo to system appearance
753c852eba5ebeb1c0d139a2488cb971198b00c4
<ide><path>README.md <ide> Flaky test detection and tracking is provided by [BuildPulse](https://buildpulse <ide> <ide> <https://brew.sh>'s DNS is [resolving with DNSimple](https://dnsimple.com/resolving/homebrew). <ide> <del>[![DNSimple](https://cdn.dnsimple.com/assets/resolving-with-us/logo-light.png)](https://dnsi...
1
Text
Text
change "bash" to "shell" in getting started guide
dda4b24beb0fe6609e566b77aca9bff0247d0d14
<ide><path>guides/source/getting_started.md <ide> This is very similar to the `Article` model that you saw earlier. The difference <ide> is the line `belongs_to :article`, which sets up an Active Record _association_. <ide> You'll learn a little about associations in the next section of this guide. <ide> <del>The (`:r...
1
Python
Python
use different logger to avoid duplicate log entry
4f6d24f8658e0896c46e613aa656a853b358c321
<ide><path>airflow/providers/amazon/aws/hooks/base_aws.py <ide> def decorator_f(self, *args, **kwargs): <ide> min_limit = retry_args.get('min', 1) <ide> max_limit = retry_args.get('max', 1) <ide> stop_after_delay = retry_args.get('stop_after_delay', 10) <del> ...
1
Python
Python
support decimal types in mysql to gcs
89aac2bbd0a8162a05bf5e71142f7b94937d2b3d
<ide><path>airflow/contrib/operators/mysql_to_gcs.py <ide> from airflow.utils import apply_defaults <ide> from collections import OrderedDict <ide> from datetime import date, datetime <add>from decimal import Decimal <ide> from MySQLdb.constants import FIELD_TYPE <ide> from tempfile import NamedTemporaryFile <ide> <id...
1
Ruby
Ruby
remove flaky test
8a0e6a1603ce823eb66cc183a692f722668d9c67
<ide><path>Library/Homebrew/test/cask/cmd/upgrade_spec.rb <ide> end <ide> <ide> describe "with --greedy it checks additional Casks" do <del> it 'includes the Casks with "auto_updates true" or "version latest"' do <del> local_caffeine = Cask::CaskLoader.load("local-caffeine") <del> local_caff...
1
PHP
PHP
restore controller section of autoloader
fe218f9b0b9763c37c44acbe07c1b1e42fea458a
<ide><path>laravel/autoloader.php <ide> protected static function find($class) <ide> <ide> return $path; <ide> } <add> <add> // Since not all controllers will be resolved by the controller resolver, <add> // we will do a quick check in the controller directory for the class. <add> // For instance, since base c...
2
Ruby
Ruby
move urls code and add devel urls
5ef9b8863a59356395a1bc39904083b531117c97
<ide><path>Library/Homebrew/formula.rb <ide> def to_hash <ide> "head" => head&.version&.to_s, <ide> "bottle" => !bottle_specification.checksums.empty?, <ide> }, <del> "urls" => { <del> "stable" => { <del> "url" => stable.url, <del> "tag" ...
1
Go
Go
add other binaries to _lib.go
e60e54c12aa65c3c11c27bda3002b361f2c1e90f
<ide><path>dockerversion/version_lib.go <ide> package dockerversion <ide> // Default build-time variable for library-import. <ide> // This file is overridden on build with build-time informations. <ide> const ( <del> GitCommit string = "library-import" <del> Version string = "library-import" <del> BuildTime string = ...
1
Python
Python
restore stderr return value of exec_command
746fb50d01839c7f002a543424b62da43968725b
<ide><path>numpy/distutils/exec_command.py <ide> def _exec_command(command, use_shell=None, use_tee = None, **env): <ide> try: <ide> proc = subprocess.Popen(command, shell=use_shell, env=env, <ide> stdout=subprocess.PIPE, <del> stderr=subprocess...
1
Javascript
Javascript
lint untracked files with `yarn linc`
158f040d5401d0b84e6cc64c75253a0c57274f5d
<ide><path>scripts/prettier/index.js <ide> <ide> const chalk = require('chalk'); <ide> const glob = require('glob'); <del>const execFileSync = require('child_process').execFileSync; <ide> const prettier = require('prettier'); <ide> const fs = require('fs'); <add>const listChangedFiles = require('../shared/listChangedF...
3
Text
Text
add v3.28.2 to changelog.md
375dd0f03fd38b4c13d0501742277e58714f6b13
<ide><path>CHANGELOG.md <ide> - [#19695](https://github.com/emberjs/ember.js/pull/19695) [CLEANUP] Remove {{partial}} <ide> - [#19691](https://github.com/emberjs/ember.js/pull/19691) Add build assertion against `{{outlet named}}` <ide> <del>### v3.28.1 (August 30, 2021) <add>## v3.28.2 (October 21, 2021) <add> <add>- ...
1
Ruby
Ruby
remove warning of intance variable not initialized
7f7c09c1f353b1775899d448a00a4eb1330a780c
<ide><path>activesupport/lib/active_support/core_ext/thread.rb <ide> def thread_variable?(key) <ide> private <ide> <ide> def locals <del> @locals || LOCK.synchronize { @locals ||= {} } <add> if defined?(@locals) <add> @locals <add> else <add> LOCK.synchronize { @locals ||= {} } <add> end <ide...
1
Python
Python
fix crash when modelcard is none
9a50828b5c67198ed25c844955231f56a7b4f2ad
<ide><path>src/transformers/pipelines.py <ide> def __init__( <ide> self, <ide> model, <ide> tokenizer: PreTrainedTokenizer = None, <del> modelcard: ModelCard = None, <add> modelcard: Optional[ModelCard] = None, <ide> framework: Optional[str] = None, <ide> args_parse...
1
Mixed
Text
provide the whole request
32b99f9358b828daf16236695d041288e4b2f648
<ide><path>actionpack/CHANGELOG.md <ide> * `process_action.action_controller` notifications now include the following in their payloads: <ide> <del> * `:uuid` - the request's globally-unique ID (the `X-Request-Id` response header by default) <add> * `:request` - the `ActionDispatch::Request` <ide> * `:loca...
3
Javascript
Javascript
improve error inspection
c041a2ee5bc7c89d846a53e4873dd394c19ec4c4
<ide><path>lib/util.js <ide> function formatValue(ctx, value, recurseTimes) { <ide> // Make error with message first say the error <ide> base = formatError(value); <ide> // Wrap the error in brackets in case it has no stack trace. <del> if (base.indexOf('\n at') === -1) { <add> const stac...
3
Text
Text
move each image to its own line
1835febfaf9538dab97b14d1fa587bef98c4ac03
<ide><path>next_frame_prediction/README.md <ide> Authors: Xin Pan (Github: panyx0718), Anelia Angelova <ide> <b>Results:</b> <ide> <ide> ![Sample1](g3doc/cross_conv.png) <add> <ide> ![Sample2](g3doc/cross_conv2.png) <del>![Loss](g3doc/cross_conv3.png) <ide> <add>![Loss](g3doc/cross_conv3.png) <ide> <ide> <b>Prerequi...
1
PHP
PHP
remove container check
b6113ebc5a23905474548a9d0eea448da2c178e3
<ide><path>src/Illuminate/Routing/Router.php <ide> protected function substituteImplicitBindings($route) <ide> foreach ($route->callableParameters(Model::class) as $parameter) { <ide> $class = $parameter->getClass(); <ide> <del> if (array_key_exists($parameter->name, $parameters) && ! $t...
1
Javascript
Javascript
accept undefined mesh.primitives (for 1.0)
69818a2b676d67150e2ee2fdcd6224836c80a148
<ide><path>examples/js/loaders/GLTFLoader.js <ide> THREE.GLTFLoader = ( function () { <ide> <ide> if ( mesh.extras ) group.userData = mesh.extras; <ide> <del> var primitives = mesh.primitives; <add> var primitives = mesh.primitives || []; <ide> <ide> for ( var name in primitives ) { <ide>
1
Python
Python
add __all__ to nose_tools/decorators.py
58348a4e752fe3f951e38b445f5f11f33b53ab80
<ide><path>numpy/testing/nose_tools/decorators.py <ide> <ide> from .utils import SkipTest, assert_warns <ide> <add>__all__ = ['slow', 'setastest', 'skipif', 'knownfailureif', 'deprecated', <add> 'parametrize',] <add> <ide> <ide> def slow(t): <ide> """
1
Text
Text
adopt contributor covenant
2c1e6bf619e404fd1ac464eb35eff4c09b3861b3
<ide><path>CODE_OF_CONDUCT.md <ide> # Code of Conduct <ide> <del>Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please [read the full text](https://code.fb.com/codeofconduct/) so that you can understand what actions will and will not be tolerated. <add>## Our Pledge <add> <add...
1
Ruby
Ruby
raise error instead of returning nil if `safe`
9bf409111c29af56667cd86a390f46e0b5561c7d
<ide><path>Library/Homebrew/extend/git_repository.rb <ide> def git_origin=(origin) <ide> # Gets the full commit hash of the HEAD commit. <ide> sig { params(safe: T::Boolean).returns(T.nilable(String)) } <ide> def git_head(safe: false) <del> return if !git? || !Utils::Git.available? <del> <del> Utils.popen_r...
3
Go
Go
fix unmount when host volume is removed
39103e72a3ca4ff739a4986c4e4849339e08aaf3
<ide><path>integration-cli/docker_cli_rm_test.go <add>package main <add> <add>import ( <add> "os" <add> "os/exec" <add> "testing" <add>) <add> <add>func TestRemoveContainerWithRemovedVolume(t *testing.T) { <add> cmd := exec.Command(dockerBinary, "run", "--name", "losemyvolumes", "-v", "/tmp/testing:/test", "busybox", "...
2
Ruby
Ruby
remove variable and fix warning
7133b0090e7509025bf71f22fb9f41404031dbbf
<ide><path>actionpack/lib/action_dispatch/middleware/public_exceptions.rb <ide> def initialize(public_path) <ide> end <ide> <ide> def call(env) <del> exception = env["action_dispatch.exception"] <ide> status = env["PATH_INFO"][1..-1] <ide> request = ActionDispatch::Request.new(en...
1
Text
Text
add '-' to line 23
d9c970c86de5da24e613c4a7c5fe628cb4f96f49
<ide><path>guide/english/working-in-tech/index.md <ide> title: Working in Tech & Information Technology(IT) <ide> --- <ide> <ide> ## Working in Tech and IT <del>A wide variety of technology-related fields such as web development, design, data science, infrastructure support, information security, and product managemen...
1
PHP
PHP
change default config value to null
f6488265f251821a51738d43e2f8c70a6148737a
<ide><path>src/Controller/Component/AuthComponent.php <ide> class AuthComponent extends Component { <ide> */ <ide> protected $_defaultConfig = [ <ide> 'authenticate' => null, <del> 'authorize' => false, <add> 'authorize' => null, <ide> 'ajaxLogin' => null, <ide> 'flash' => null, <ide> 'loginAction' => null,
1
Text
Text
use number instead of string in application.rb
4eda24a2e281c17565f5625df20c13d1b0bab299
<ide><path>guides/source/upgrading_ruby_on_rails.md <ide> The default configuration for Rails 6 <ide> ```ruby <ide> # config/application.rb <ide> <del>config.load_defaults "6.0" <add>config.load_defaults 6.0 <ide> ``` <ide> <ide> enables `zeitwerk` autoloading mode on CRuby. In that mode, autoloading, reloading, and ...
1
Javascript
Javascript
add default type in getstringwidth.js
d2683ede836d3f2449714c6309b47fb469873bb2
<ide><path>benchmark/misc/getstringwidth.js <ide> const bench = common.createBenchmark(main, { <ide> }); <ide> <ide> function main({ n, type }) { <add> // Default value for testing purposes. <add> type = type || 'ascii'; <ide> const { getStringWidth } = require('internal/readline/utils'); <ide> <ide> const str ...
1
Text
Text
use a descriptive text for the wikipedia link
e6be7d82c47a0b1c15202db1f04fcb5f867962ec
<ide><path>guide/english/algorithms/algorithm-design-patterns/structual-patterns/index.md <ide> Examples of Structural Patterns include: <ide> 15. **Proxy pattern**: a class functioning as an interface to another thing. <ide> <ide> ### Sources <del>[https://en.wikipedia.org/wiki/Structural_pattern](https://en.wikipedi...
1
Javascript
Javascript
fix default value for divisions
d6dd44d2470c86e2b35aff1502271ecb414482b9
<ide><path>src/extras/core/Curve.js <ide> Curve.prototype = { <ide> <ide> getPoints: function ( divisions ) { <ide> <del> if ( ! divisions ) divisions = 5; <add> if ( isNaN( divisions ) ) divisions = 5; <ide> <ide> var points = []; <ide> <ide> Curve.prototype = { <ide> <ide> getSpacedPoints: function ( divis...
2
Javascript
Javascript
fix lint warnings in the resolver
0cb63bb97172e0cca4e207eed264613d6112eac4
<ide><path>packager/react-packager/src/DependencyResolver/DependencyGraph/__tests__/DependencyGraph-test.js <ide> describe('DependencyGraph', function() { <ide> ' * @providesModule wontWork', <ide> ' */', <ide> 'hi();', <del> ].join('\n') <add> ]...
3
Text
Text
update image documentation for static image
8873374963fdd116ab7a7e537c9604c7912f6a95
<ide><path>docs/api-reference/next/image.md <ide> description: Enable Image Optimization with the built-in Image component. <ide> <details> <ide> <summary><b>Version History</b></summary> <ide> <del>| Version | Changes | <del>| --------- | ------------------------ | <del>| `v10.0.5` | `loader` pro...
1
Text
Text
encourage 2fa before onboarding
cad0423ce430c11ff527a6bac01c413ef37ea5cf
<ide><path>doc/onboarding.md <ide> This document is an outline of the things we tell new Collaborators at their <ide> onboarding session. <ide> <add>## One week before the onboarding session <add> <add>* Ask the new Collaborator if they are using two-factor authentication on their <add> GitHub account. If they are no...
1
Ruby
Ruby
add `formula` spec helper
004e8175c6ceb58f026e79e6bbd0ddac9e8380f6
<ide><path>Library/Homebrew/test/spec_helper.rb <ide> <ide> require "test/support/helper/shutup" <ide> require "test/support/helper/fixtures" <add>require "test/support/helper/formula" <ide> require "test/support/helper/spec/shared_context/integration_test" <ide> <ide> TEST_DIRECTORIES = [ <ide> config.order = :ran...
2
Mixed
Go
add option for specifying the thin pool blocksize
09ee269d998ad04733ef577739fa051df9d3f12e
<ide><path>daemon/graphdriver/devmapper/README.md <ide> Here is the list of supported options: <ide> <ide> ``docker -d --storage-opt dm.datadev=/dev/sdb1 --storage-opt dm.metadatadev=/dev/sdc1`` <ide> <add> * `dm.blocksize` <add> <add> Specifies a custom blocksize to use for the thin pool. <add> <add> Exam...
3
Ruby
Ruby
move tab creation outside of the debug loop
47a82b036e43e7119fb52123a908b3af8e3af76a
<ide><path>Library/Homebrew/build.rb <ide> def install <ide> <ide> begin <ide> f.install <del> stdlibs = detect_stdlibs <del> Tab.create(f, ENV.compiler, stdlibs.first, f.build).write <ide> rescue Exception => e <ide> if ARGV.debug? <ide> debrew e, f <i...
1
Ruby
Ruby
use filter_map for template_glob
e2781c2d93808031fbc4dbecaa7aac59aa90b4b8
<ide><path>actionview/lib/action_view/template/resolver.rb <ide> def template_glob(glob) <ide> query = File.join(escape_entry(@path), glob) <ide> path_with_slash = File.join(@path, "") <ide> <del> Dir.glob(query).reject do |filename| <del> File.directory?(filename) <del> end.map ...
1
PHP
PHP
restore original semantics
5e622b2bfbb7c263a58c056a6f0dc66afeed216c
<ide><path>src/Http/ServerRequest.php <ide> public function getHeaders() <ide> $name = $key; <ide> } <ide> if ($name !== null) { <del> $name = ucwords(str_replace(['_', ' '], [' ', '-'], $name)); <add> $name = ucwords(strtolower(str_replace(['_', ' '...
1
Ruby
Ruby
add locale option to parameterize
bc9711fb7d6dd89094ccc9c8f3147bcf3ddd63bc
<ide><path>activesupport/lib/active_support/core_ext/string/inflections.rb <ide> def deconstantize <ide> <ide> # Replaces special characters in a string so that it may be used as part of a 'pretty' URL. <ide> # <add> # If the optional parameter +locale+ is specified, <add> # the word will be parameterized as a w...
2
Ruby
Ruby
add inspect method
c1688be78035b5b0ec7ccf1dbae30c5c93c4ee58
<ide><path>Library/Homebrew/version/null.rb <ide> def to_s <ide> "" <ide> end <ide> alias_method :to_str, :to_s <add> <add> def inspect <add> "#<Version::NULL>".freeze <add> end <ide> end.new <ide> end
1
Javascript
Javascript
add support for `oncontextmenu` in react
1ffe2d0927a395c53215fadb78ceffee99f87574
<ide><path>src/core/ReactEventEmitter.js <ide> var ReactEventEmitter = merge(ReactEventEmitterMixin, { <ide> trapBubbledEvent(topLevelTypes.topMouseOut, 'mouseout', mountAt); <ide> trapBubbledEvent(topLevelTypes.topClick, 'click', mountAt); <ide> trapBubbledEvent(topLevelTypes.topDoubleClick, 'dblclick', mo...
3
Ruby
Ruby
use versions to access previous bottles
19618bddd441afa0cfb55366902107bd144c1756
<ide><path>Library/Homebrew/cmd/bottle.rb <ide> require 'bottles' <ide> require 'tab' <ide> require 'keg' <add>require 'cmd/versions' <ide> <ide> class BottleMerger < Formula <ide> # This provides a URL and Version which are the only needed properties of <ide> def bottle_formula f <ide> return ofail "Formula n...
1
Python
Python
use _umath_linalg for eig()
1253d571a48f3100865e0b38895c0cceb8336aa3
<ide><path>numpy/linalg/linalg.py <ide> def eig(a): <ide> <ide> Parameters <ide> ---------- <del> a : (M, M) array_like <del> A square array of real or complex elements. <add> a : (..., M, M) array <add> Matrices for which the eigenvalues and right eigenvectors will <add> be computed...
1
PHP
PHP
refactor the database manager
73065d12c26fde8638598a8ccd67da3c53279e96
<ide><path>system/db/manager.php <ide> class Manager { <ide> */ <ide> public static function connection($connection = null) <ide> { <del> if (is_null($connection)) $connection = Config::get('db.default'); <add> if (is_null($connection)) <add> { <add> $connection = Config::get('db.default'); <add> } <ide> <id...
1
Text
Text
add link to sponsor
ee8669a587eec90f0a23b4374cc483d7569f2e34
<ide><path>readme.md <ide> We would like to extend our thanks to the following sponsors for helping fund on <ide> - [iMi digital](https://www.imi-digital.de/) <ide> - [Earthlink](https://www.earthlink.ro/) <ide> - [Steadfast Collective](https://steadfastcollective.com/) <add>- [We Are The Robots Inc.](https://watr.mx/)...
1
Javascript
Javascript
remove ie8 url parsing workaround
b3acf663641fca0f7a966525a72845af7ec5fab2
<ide><path>src/js/utils/url.js <ide> import window from 'global/window'; <ide> * An object of url details <ide> */ <ide> export const parseUrl = function(url) { <add> // This entire method can be replace with URL once we are able to drop IE11 <add> <ide> const props = ['protocol', 'hostname', 'port', 'pa...
2
PHP
PHP
fix empty use
8162ba0b244fecac25fac1881f08298f846e4801
<ide><path>src/Controller/Component/SecurityComponent.php <ide> protected function _debugPostTokenNotMatching(Controller $controller, $hashParts <ide> ); <ide> $expectedUnlockedFields = Hash::get($expectedParts, 2); <ide> $dataUnlockedFields = Hash::get($hashParts, 2) ?: []; <del> if (!em...
1
Python
Python
change action endpoint for success future and past
c99138b7008412246a488dbf8162e0be8dbac861
<ide><path>airflow/www/app.py <ide> import dateutil.parser <ide> from functools import wraps <ide> import inspect <add>from itertools import product <ide> import json <ide> import logging <ide> import os <ide> def action(self): <ide> confirmed = request.args.get('confirmed') == "true" <ide> upstream = r...
1
Python
Python
update asset logic
d6aa4cb478e9ba9c85f0c20de30f4b991a2b5432
<ide><path>spacy/cli/project.py <ide> def fetch_asset( <ide> project_path: Path, url: str, dest: Path, checksum: Optional[str] = None <ide> ) -> None: <ide> check_asset(url) <del> dest_path = project_path / dest <add> dest_path = (project_path / dest).resolve() <ide> if dest_path.exists() and checksum...
1