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 cs errors
30152a97234caf1d8218f0ad1bfad504f99b0fcd
<ide><path>src/Error/ErrorHandler.php <ide> protected function _displayException($exception) <ide> $this->_sendResponse($response); <ide> } catch (Throwable $exception) { <ide> $this->_logInternalError($exception); <del> } catch (Exception $exception) { <del> $this->_lo...
9
Text
Text
add code of conduct
84fd3a18a3a7f181d1b8c0a7c02b703cc4b8ec3a
<ide><path>CONTRIBUTING.md <ide> We'd love for you to contribute to our source code and to make AngularJS even better than it is <ide> today! Here are the guidelines we'd like you to follow: <ide> <add>## Code of Conduct <add>Help us keep Angular open and inclusive. Please read and follow our [Code of Conduct][coc]. <...
1
Javascript
Javascript
use cache in bannerplugin
12ecab44fccef88e8f00e52e030d2ce395d4cf36
<ide><path>lib/BannerPlugin.js <ide> class BannerPlugin { <ide> undefined, <ide> options <ide> ); <add> const cache = new WeakMap(); <ide> <ide> compiler.hooks.compilation.tap("BannerPlugin", compilation => { <ide> compilation.hooks.processAssets.tap( <ide> class BannerPlugin { <ide> <ide> const ...
2
PHP
PHP
make association property() exclude plugin names
176717adaadbdc23140325dbffb39b57c662cb0f
<ide><path>src/ORM/Association.php <ide> public function property($name = null) { <ide> $this->_propertyName = $name; <ide> } <ide> if ($name === null && !$this->_propertyName) { <del> $this->_propertyName = Inflector::underscore($this->_name); <add> list($plugin, $name) = pluginSplit($this->_name); <add> ...
7
Python
Python
fix node build failures in wsl ubuntu
2ea2621ace40921e1bfa56ad0d9a3be0011de738
<ide><path>configure.py <ide> def make_bin_override(): <ide> if bin_override is not None: <ide> gyp_args += ['-Dpython=' + sys.executable] <ide> <del># pass the leftover positional arguments to GYP <del>gyp_args += args <add># pass the leftover non-whitespace positional arguments to GYP <add>gyp_args += [arg for arg...
1
Javascript
Javascript
add last chinese cert
c9d919732ad7980c7d1a02340e343327ce8de90a
<ide><path>config/i18n/all-langs.js <ide> const auditedCerts = { <ide> 'quality-assurance', <ide> 'scientific-computing-with-python', <ide> 'data-analysis-with-python', <del> 'information-security' <add> 'information-security', <add> 'machine-learning-with-python' <ide> ], <ide> 'chinese-tradit...
1
Python
Python
add document qa pipeline metadata
0b567aa430e9b1b56254de4775db5868104d34e5
<ide><path>utils/update_metadata.py <ide> "AutoModelForAudioFrameClassification", <ide> ), <ide> ("audio-xvector", "MODEL_FOR_AUDIO_XVECTOR_MAPPING_NAMES", "AutoModelForAudioXVector"), <add> ( <add> "document-question-answering", <add> "MODEL_FOR_DOCUMENT_QUESTION_ANSWERING_MAPPING_NAME...
1
Ruby
Ruby
fix typo in docs [ci skip]
99e9630ef83c8fec8aae70467d2cd26ed91e4384
<ide><path>actionpack/lib/action_dispatch/request/session.rb <ide> def delete(key) <ide> @delegate.delete key.to_s <ide> end <ide> <del> # Returns value of given key from the session, or raises +KeyError+ <del> # if can't find given key in case of not setted dafault value. <add> # Returns ...
1
Go
Go
fix some nits in tests
cf31aa0fa0d1b058bd138569d29d570081481c91
<ide><path>distribution/xfer/transfer_test.go <ide> func TestTransfer(t *testing.T) { <ide> } <ide> <ide> func TestConcurrencyLimit(t *testing.T) { <del> concurrencyLimit := 3 <add> const concurrencyLimit = 3 <ide> var runningJobs int32 <ide> <ide> makeXferFunc := func(id string) DoFunc { <ide> func TestConcurrency...
2
Ruby
Ruby
build expression not(nil) as is not null
a7a5027f4f17e12cf11c310dd807f5c41e798cdb
<ide><path>lib/arel/engines/sql/core_extensions/nil_class.rb <ide> def equality_predicate_sql <ide> 'IS' <ide> end <ide> <add> def not_predicate_sql <add> 'IS NOT' <add> end <add> <ide> NilClass.send(:include, self) <ide> end <ide> end <ide><path>lib/arel/engines/sql/core_ext...
5
PHP
PHP
remove class loader from optimize file
21fddea479015b863f319274ad4187900b64d282
<ide><path>src/Illuminate/Foundation/Console/Optimize/config.php <ide> $basePath = $app['path.base']; <ide> <ide> return array_map('realpath', array( <del> $basePath.'/vendor/laravel/framework/src/Illuminate/Support/ClassLoader.php', <ide> $basePath.'/vendor/laravel/framework/src/Illuminate/Container/Container....
1
Python
Python
fix state handling
35eb2797c5e5dd9cdb6f35705eb522fe4b2357f5
<ide><path>libcloud/container/drivers/rancher.py <ide> def _to_container(self, data): <ide> <ide> """ <ide> rancher_state = data['state'] <add> <add> # A Removed container is purged after x amt of time. <add> # Both of these render the container dead (can't be started later) <add> ...
2
Python
Python
use markup for htmlcontent for landing_times
dcf65765e58fb8beba206454075bbd6675b65721
<ide><path>airflow/www/views.py <ide> def landing_times(self, session=None): <ide> return self.render_template( <ide> 'airflow/chart.html', <ide> dag=dag, <del> chart=chart.htmlcontent, <add> chart=Markup(chart.htmlcontent), <ide> height=str(chart_height...
1
PHP
PHP
apply fixes from styleci
10061f1fb7977bc6b66da690f1d4b34b3a924982
<ide><path>tests/Filesystem/FilesystemAdapterTest.php <ide> public function testGetAllFiles() <ide> <ide> $filesystemAdapter = new FilesystemAdapter($this->filesystem, $this->adapter); <ide> <del> $this->assertSame($filesystemAdapter->files(),['body.txt','existing.txt','file.txt','file1.txt']); <add> ...
1
Text
Text
fix broken link in animations.md
b572a6b874747d89a47102eaacea11b76996f2c0
<ide><path>docs/Animations.md <ide> var App = React.createClass({ <ide> [Run this example](https://rnplay.org/apps/uaQrGQ) <ide> <ide> This example uses a preset value, you can customize the animations as <del>you need, see [LayoutAnimation.js](https://github.com/facebook/react-native/blob/master/Libraries/Animation/L...
1
Javascript
Javascript
forbid haste in jest
575982b96dfd959f72ce8f44bc7d3f3c5e102597
<ide><path>scripts/jest/config.source.js <ide> 'use strict'; <ide> <ide> module.exports = { <add> haste: { <add> hasteImplModulePath: require.resolve('./noHaste.js'), <add> }, <ide> modulePathIgnorePatterns: [ <ide> '<rootDir>/scripts/rollup/shims/', <ide> '<rootDir>/scripts/bench/', <ide><path>scripts/...
2
Go
Go
add graceful cancellation endpoint
0bddd4ccfee5b7f4f69cd4757f053214be2ad4cd
<ide><path>api/server/backend/build/backend.go <ide> func (b *Backend) Build(ctx context.Context, config backend.BuildConfig) (string <ide> } <ide> } <ide> <del> stdout := config.ProgressWriter.StdoutFormatter <del> fmt.Fprintf(stdout, "Successfully built %s\n", stringid.TruncateID(imageID)) <add> if !useBuildKit {...
9
Ruby
Ruby
add timer support for systemd
4cb8afeeef6d9457e8741131dcdc79a69312403b
<ide><path>Library/Homebrew/formula.rb <ide> def systemd_service_path <ide> opt_prefix/"#{service_name}.service" <ide> end <ide> <add> # The generated systemd {.timer} file path. <add> sig { returns(Pathname) } <add> def systemd_timer_path <add> opt_prefix/"#{service_name}.timer" <add> end <add> <ide> #...
6
Python
Python
fix a small docstring bug in the csrf decorators
f9fba51164f36519e9b2f7917296ddd83b86ef47
<ide><path>django/views/decorators/csrf.py <ide> def _reject(self, request, reason): <ide> <ide> requires_csrf_token = decorator_from_middleware(_EnsureCsrfToken) <ide> requires_csrf_token.__name__ = 'requires_csrf_token' <del>csrf_protect.__doc__ = """ <add>requires_csrf_token.__doc__ = """ <ide> Use this decorator o...
1
Ruby
Ruby
fix typos and add nodocs to nullrelation
30bf42b3ef8be104abffba07c3feaa343d882e09
<ide><path>activerecord/lib/active_record/null_relation.rb <ide> <ide> module ActiveRecord <ide> # = Active Record Null Relation <del> module NullRelation <add> module NullRelation # :nodoc: <ide> def exec_queries <ide> @records = [] <ide> end <ide><path>activerecord/lib/active_record/relation.rb <id...
2
Javascript
Javascript
update view to use import instead of require
50c3dd3860fc092a08efa14e4ae8cd85a74d5e9d
<ide><path>Libraries/Components/View/View.js <ide> <ide> import type {ViewProps} from './ViewPropTypes'; <ide> <del>const React = require('react'); <ide> import ViewNativeComponent from './ViewNativeComponent'; <del>const TextAncestor = require('../../Text/TextAncestor'); <add>import TextAncestor from '../../Text/Tex...
1
PHP
PHP
fix cs errors
b02d729d3e3305a116ccf9c8efe216dbd2d8797f
<ide><path>src/Http/Response.php <ide> public function withCache($since, $time = '+1 day') <ide> if (!is_int($time)) { <ide> $time = strtotime($time); <ide> if ($time === false) { <del> throw new InvalidArgumentException('Invalid time parameter. Ensure your time value can ...
3
Javascript
Javascript
fix merge issue
c292e406b4009cb2de1201c096713d068bb8c77b
<ide><path>lib/dependencies/WebAssemblyExportImportedDependency.js <ide> class WebAssemblyExportImportedDependency extends ModuleDependency { <ide> <ide> write(this.exportName); <ide> write(this.name); <add> write(this.valueType); <ide> <ide> super.serialize(context); <ide> } <ide> class WebAssemblyExportImpo...
1
Text
Text
add 2.13.4 to changelog.md
2e45c053542f92ed363162b5d27f3da070310c62
<ide><path>CHANGELOG.md <ide> - [#15178](https://github.com/emberjs/ember.js/pull/15178) Refactor route to lookup controller for QPs. <ide> - [#15129](https://github.com/emberjs/ember.js/pull/15129) Fix access to service:-document in ember-engines <ide> <add>### 2.13.4 (July 5, 2017) <add> <add>- [#15321](https://gith...
1
Python
Python
use minor version for compatibility check
9fde2580538967dc16f63d4c3bc55660d031d09e
<ide><path>spacy/cli/download.py <ide> <ide> from ._util import app, Arg, Opt, WHEEL_SUFFIX, SDIST_SUFFIX <ide> from .. import about <del>from ..util import is_package, get_base_version, run_command <add>from ..util import is_package, get_minor_version, run_command <ide> from ..errors import OLD_MODEL_SHORTCUTS <ide> ...
5
Text
Text
fix typos [ci skip]
0ce768168610e97d4a726aa77aae748777e69465
<ide><path>guides/source/action_mailer_basics.md <ide> config.action_mailer.smtp_settings = { <ide> user_name: '<username>', <ide> password: '<password>', <ide> authentication: 'plain', <del> enable_starttls_auto: true } <add> enable_starttls_auto: true } <ide> ``` <ide> Note: As o...
5
Text
Text
add documentation for summary() feature
20ca5befdcdb8759aa7fdb4c452215deaa4f7cbf
<ide><path>docs/sources/models.md <ide> model = keras.models.Sequential() <ide> - __Return__: loss over the data, or tuple `(loss, accuracy)` if `accuracy=True`. <ide> - __save_weights__(fname, overwrite=False): Store the weights of all layers to a HDF5 file. If overwrite==False and the file already exists,...
1
Python
Python
remove extra semicolon
26fe4c65390b7a2bfe2722b674943b64820d8442
<ide><path>data_structures/queue/linked_queue.py <ide> class LinkedQueue: <ide> >>> queue.put(5) <ide> >>> queue.put(9) <ide> >>> queue.put('python') <del> >>> queue.is_empty(); <add> >>> queue.is_empty() <ide> False <ide> >>> queue.get() <ide> 5
1
Text
Text
fix typo in roberta-base-squad2-v2 model card
17b1fd804f2ade052e40505a695ec7c9996178a9
<ide><path>model_cards/deepset/roberta-base-squad2-v2/README.md <ide> tokenizer = Tokenizer.load(model_name) <ide> ### In haystack <ide> For doing QA at scale (i.e. many docs instead of single paragraph), you can load the model also in [haystack](https://github.com/deepset-ai/haystack/): <ide> ```python <del>reader = F...
1
PHP
PHP
allow 0 limit
1c71e7785655e5084630fdee58ed290245a69f4c
<ide><path>src/Illuminate/Database/Query/Builder.php <ide> public function limit($value) <ide> { <ide> $property = $this->unions ? 'unionLimit' : 'limit'; <ide> <del> if ($value > 0) { <add> if ($value >= 0) { <ide> $this->$property = $value; <ide> } <ide>
1
Javascript
Javascript
update index.js using es6
e6343a83e240c71b23ed4f292e62fa8c0ab3e181
<ide><path>website/src/react-native/index.js <ide> var index = React.createClass({ <ide> <Prism> <ide> {`// iOS <ide> <del>var React = require('react-native'); <del>var { TabBarIOS, NavigatorIOS } = React; <add>import React, { <add> Component, <add> TabBarIOS, <add> NavigatorIOS <add>} from 'react-nati...
1
Text
Text
add a changelog entry for [ci skip]
cbca29a959fc0f6667d378953af31f0f0e004f55
<ide><path>railties/CHANGELOG.md <add>* `I18n.load_path` is now reloaded under development so there's no need to <add> restart the server to make new locale files available. Also, I18n will no <add> longer raise for deleted locale files. <add> <add> *Kir Shatrov* <add> <ide> * Add `bin/update` script to up...
1
PHP
PHP
fix most coding standard issues in controller
61aba0f0f88af9be51027e83cfcc75f800b609cc
<ide><path>lib/Cake/Controller/CakeErrorController.php <ide> public function beforeRender() { <ide> } <ide> } <ide> } <add> <ide> } <ide><path>lib/Cake/Controller/Component.php <ide> public function __get($name) { <ide> * @return void <ide> * @link http://book.cakephp.org/2.0/en/controllers/components.html#Comp...
22
Javascript
Javascript
fix a comment typo
561d5ddf76013aca18882f795d334db56d0002b7
<ide><path>src/js/component.js <ide> class Component { <ide> * <ide> * @param {Object} [options] <ide> * The key/value store of player options. <del> # <add> * <ide> * @param {Object[]} [options.children] <ide> * An array of children objects to intialize this component with. Children ob...
1
PHP
PHP
add missing docblock, remove unneeded code
ab7dd99e436d5ce78b5857f7149dc5f030d5b341
<ide><path>lib/Cake/Test/Case/Controller/Component/RequestHandlerComponentTest.php <ide> public function ajax2_layout() { <ide> <ide> } <ide> <del>class CustomJsonView extends JsonView { <del> <ide> /** <del> * Test method for viewClassMap and overriding _serialize() <add> * CustomJsonView class <add> * <add> * @pack...
1
PHP
PHP
remove \ and replace with use
42e77f85eebfdd978d235a031baf3e5f2d4eae16
<ide><path>src/Cache/Engine/MemcachedEngine.php <ide> use Cake\Cache\CacheEngine; <ide> use Cake\Error; <ide> use Cake\Utility\Inflector; <add>use \Memcached; <ide> <ide> /** <ide> * Memcached storage engine for cache. Memcached has some limitations in the amount of <ide> public function init(array $config = []) { <i...
1
PHP
PHP
remove blank line starting control structure
546be6c683277753bcce642ca8e14461b06e35ef
<ide><path>src/Routing/Router.php <ide> public static function routeExists($url = null, $full = false) <ide> <ide> return true; <ide> } catch (MissingRouteException $e) { <del> <ide> return false; <ide> } <ide> }
1
Ruby
Ruby
extract repetitive method
d0bcf51191d71edfddf38ade6ff7a3099ba23a54
<ide><path>activesupport/test/dependencies_test.rb <ide> def with_loading(*from) <ide> ActiveSupport::Dependencies.explicitly_unloadable_constants = [] <ide> end <ide> <add> def with_autoloading_fixtures(&block) <add> with_loading 'autoloading_fixtures', &block <add> end <add> <ide> def test_tracking_load...
1
Python
Python
remove repeating prefetch
a3369cd4576a27a9f6613f561d9d8b68b85f7de8
<ide><path>official/core/input_reader.py <ide> def maybe_map_fn(dataset, fn): <ide> service=self._tf_data_service_address, <ide> job_name=self._tf_data_service_job_name)) <ide> <del> dataset = dataset.prefetch(buffer_size=tf.data.experimental.AUTOTUNE) <del> <ide> if self._determinis...
1
Python
Python
add template_ext to bigqueryinsertjoboperator
e33f1a12d72ac234e4897f44b326a332acf85901
<ide><path>airflow/providers/google/cloud/operators/bigquery.py <ide> class BigQueryInsertJobOperator(BaseOperator): <ide> """ <ide> <ide> template_fields = ("configuration", "job_id") <add> template_ext = (".json", ) <ide> ui_color = BigQueryUIColors.QUERY.value <ide> <ide> def __init__( <ide> def...
1
Ruby
Ruby
eliminate newlines in basic auth. fixes
f6ced69a11cdff56c2e87b84e775ef09c6d999d1
<ide><path>actionpack/lib/action_controller/metal/http_authentication.rb <ide> def decode_credentials(request) <ide> end <ide> <ide> def encode_credentials(user_name, password) <del> "Basic #{ActiveSupport::Base64.encode64("#{user_name}:#{password}")}" <add> "Basic #{ActiveSupport::Base64.enc...
2
Text
Text
replace vague 'may not' with definitive 'will not'
a82ac6eedf925b8922ca2e577d0364a62dea5ad7
<ide><path>doc/api/modules.md <ide> Modules are cached after the first time they are loaded. This means <ide> (among other things) that every call to `require('foo')` will get <ide> exactly the same object returned, if it would resolve to the same file. <ide> <del>Multiple calls to `require('foo')` may not cause the m...
1
Ruby
Ruby
ensure new casks have a description
549cd5b47121e2b7b065c119eec80446b9658439
<ide><path>Library/Homebrew/cask/audit.rb <ide> class Audit <ide> <ide> attr_reader :cask, :commit_range, :download <ide> <del> attr_predicate :appcast? <add> attr_predicate :appcast?, :new_cask?, :strict?, :online? <ide> <ide> def initialize(cask, appcast: false, download: false, quarantine: nil, <ide...
2
Mixed
Java
change time drift error into warning
ed4db631faf0091a92179e9fd629ce06e4704d1e
<ide><path>Libraries/JavaScriptAppEngine/System/JSTimers/JSTimersExecution.js <ide> var performanceNow = require('fbjs/lib/performanceNow'); <ide> var warning = require('fbjs/lib/warning'); <ide> var Systrace = require('Systrace'); <ide> <add>let hasEmittedTimeDriftWarning = false; <add> <ide> /** <ide> * JS implemen...
3
Python
Python
remove wrong mention of .gz in np.load
6e2a69bb7a42b0b518f5a54cb949eb0f21c43331
<ide><path>numpy/lib/npyio.py <ide> def load(file, mmap_mode=None): <ide> Parameters <ide> ---------- <ide> file : file-like object or string <del> The file to read. Compressed files with the filename extension <del> ``.gz`` are acceptable. File-like objects must support the <add> The f...
1
Python
Python
use get_primary_cpu_task from tpu_lib
cd85fd8a25fa8cb28f3df814b7a9ce61594b1597
<ide><path>official/bert/model_training_utils.py <ide> import tensorflow as tf <ide> from tensorflow.python.util import object_identity <ide> from official.utils.misc import distribution_utils <add>from official.utils.misc import tpu_lib <ide> <ide> _SUMMARY_TXT = 'training_summary.txt' <ide> _MIN_SUMMARY_STEPS = 10 <...
2
Go
Go
fix network mode for lxc 1.0
0f278940947d74f2b7889ada18808779312f9608
<ide><path>daemon/execdriver/lxc/lxc_template.go <ide> lxc.network.type = veth <ide> lxc.network.link = {{.Network.Interface.Bridge}} <ide> lxc.network.name = eth0 <ide> lxc.network.mtu = {{.Network.Mtu}} <del>{{else if not .Network.HostNetworking}} <add>{{else if .Network.HostNetworking}} <add>lxc.network.type = none ...
1
Ruby
Ruby
use arrow character for ui prompts
d0ad829e43ab529b3bfd32a974f824633e6bc67c
<ide><path>Library/Homebrew/cask/artifact/abstract_uninstall.rb <ide> def running_processes(bundle_id) <ide> <ide> sig { returns(String) } <ide> def automation_access_instructions <del> "Enable Automation Access for “Terminal > System Events” in " \ <del> "“System Preferences > Security > Pri...
3
Javascript
Javascript
extend unit test for buildstyleinterpolator
3e31038301e9e3bf8a332b97ed869f8d9603d0b6
<ide><path>Libraries/Utilities/__tests__/buildStyleInterpolator-test.js <ide> describe('buildStyleInterpolator', function() { <ide> }); <ide> expect(res).toBe(false); <ide> }); <add> it('should handle identity', function() { <add> var testAnim = { <add> opacity: { <add> type: 'identity', <add>...
1
Go
Go
prepend hash method to the image checksum
ea3374bcb0b7a78ccbaeb9cd927fbaf259a5cf29
<ide><path>container.go <ide> func (container *Container) RwChecksum() (string, error) { <ide> if _, err := io.Copy(h, rwData); err != nil { <ide> return "", err <ide> } <del> return hex.EncodeToString(h.Sum(nil)), nil <add> return "sha256:"+hex.EncodeToString(h.Sum(nil)), nil <ide> } <ide> <ide> func (container *...
1
Python
Python
remove unnecessary else statement
501a1cf0c7b31773fb02bc2966f5c1db99311b36
<ide><path>maths/karatsuba.py <ide> def karatsuba(a, b): <ide> """ <ide> if len(str(a)) == 1 or len(str(b)) == 1: <ide> return a * b <del> else: <del> m1 = max(len(str(a)), len(str(b))) <del> m2 = m1 // 2 <ide> <del> a1, a2 = divmod(a, 10**m2) <del> b1, b2 = divmod(b, 10*...
1
Javascript
Javascript
fix coding style in src/display/api.js
a1ee567d60cf87a6d13d928655e0ffc67bd21fac
<ide><path>src/display/api.js <ide> * above this value will not be drawn. Use -1 for no limit. <ide> * @var {number} <ide> */ <del>PDFJS.maxImageSize = PDFJS.maxImageSize === undefined ? -1 : PDFJS.maxImageSize; <add>PDFJS.maxImageSize = (PDFJS.maxImageSize === undefined ? <add> -1 : PDFJS.maxIm...
1
Javascript
Javascript
modify order of parameters for assertion
7ba83e893e44179abf339c042653334ed71a3f19
<ide><path>test/parallel/test-promises-unhandled-rejections.js <ide> asyncTest( <ide> const e = new Error('error'); <ide> const domainError = new Error('domain error'); <ide> onUnhandledSucceed(done, function(reason, promise) { <del> assert.strictEqual(e, reason); <del> assert.strictEqua...
1
Go
Go
rename the variable 'name' to 'destination'
57cec5a777e93486f14151087d178e3569d25d2b
<ide><path>daemon/volumes.go <ide> func (daemon *Daemon) registerMountPoints(container *container.Container, hostCo <ide> }() <ide> <ide> // 1. Read already configured mount points. <del> for name, point := range container.MountPoints { <del> mountPoints[name] = point <add> for destination, point := range container...
1
Go
Go
add a registry package with registry v1/v2 code
4300e5e8818571a55e00d9987bec3ad6ca92dc6f
<ide><path>integration-cli/check_test.go <ide> import ( <ide> cliconfig "github.com/docker/docker/cli/config" <ide> "github.com/docker/docker/integration-cli/daemon" <ide> "github.com/docker/docker/integration-cli/environment" <add> "github.com/docker/docker/integration-cli/registry" <ide> "github.com/docker/docker...
13
Ruby
Ruby
favor composition over inheritance
bca7770e6c05ca2d81302349b02b058ade00d491
<ide><path>railties/lib/rails/paths.rb <ide> module Paths <ide> # root["app/controllers"].existent # => ["/rails/app/controllers"] <ide> # <ide> # Check the <tt>Rails::Paths::Path</tt> documentation for more information. <del> class Root < ::Hash <add> class Root <ide> attr_accessor :path <ide...
1
PHP
PHP
remove unneeded calls to with
36eec89228d87667607ed25aede5b1d25a4f61de
<ide><path>src/Illuminate/Cookie/CookieServiceProvider.php <ide> public function register() <ide> { <ide> $config = $app['config']['session']; <ide> <del> return with(new CookieJar)->setDefaultPathAndDomain($config['path'], $config['domain']); <add> return (new CookieJar)->setDefaultPathAndDomain($config['pat...
12
PHP
PHP
fix duplicate values when merging post data
17eb0e4f68ca440b9612e7e7b80b83b8ffdf434f
<ide><path>lib/Cake/Network/CakeRequest.php <ide> protected function _processPost() { <ide> } <ide> unset($this->data['_method']); <ide> } <del> $data = $this->data; <add> <ide> if (isset($this->data['data'])) { <ide> $data = $this->data['data']; <del> } <del> if (count($this->data) <= 1) { <del> $thi...
2
Text
Text
save option in validations
d2a799895b19cabca86a209cf2dac0dc5215ab48
<ide><path>guides/source/active_record_validations.md <ide> class Person < ActiveRecord::Base <ide> validates :age, numericality: true, on: :update <ide> <ide> # the default (validates on both create and update) <del> The following line is in review state and as of now, it is not running in any version of Rails 3...
1
Python
Python
mark the subclass transformer as deprecated
487c4b2a13a4b34f3b6b0ac5715b05e275306853
<ide><path>official/nlp/modeling/layers/__init__.py <ide> from official.nlp.modeling.layers.text_layers import FastWordpieceBertTokenizer <ide> from official.nlp.modeling.layers.text_layers import SentencepieceTokenizer <ide> from official.nlp.modeling.layers.tn_transformer_expand_condense import TNTransformerExpandCon...
2
Text
Text
explain browser support of http/2 without ssl
52a0d97187f92579676dce54e05724606374c2fc
<ide><path>doc/api/http2.md <ide> server.on('stream', (stream, headers) => { <ide> server.listen(80); <ide> ``` <ide> <add>Note that the above example is an HTTP/2 server that does not support SSL. <add>This is significant as most browsers support HTTP/2 only with SSL. <add>To make the above server be able to serve co...
1
PHP
PHP
fix mistake with fixture properties
13ce406a816bf3a52152344d2c2fa070098803fb
<ide><path>lib/Cake/TestSuite/Fixture/FixtureManager.php <ide> public function loadSingle($name, $db = null, $dropTables = true) { <ide> if (isset($this->_fixtureMap[$name])) { <ide> $fixture = $this->_fixtureMap[$name]; <ide> if (!$db) { <del> $db = ConnectionManager::getDataSource($fixture->useDbConfig); <...
1
Python
Python
remove unused code in /grid endpoint
2550066e4d105c8c5a030b7ef71dd95a890378b9
<ide><path>airflow/www/views.py <ide> def grid(self, dag_id, session=None): <ide> if num_runs is None: <ide> num_runs = conf.getint('webserver', 'default_dag_run_display_number') <ide> <del> try: <del> base_date = _safe_parse_datetime(request.args["base_date"]) <del> except...
1
PHP
PHP
fix missing deprecation version
ebc3bf8179743e45d2fa4accc27183223e1941c9
<ide><path>src/Datasource/QueryTrait.php <ide> trait QueryTrait <ide> * When called with a Table argument, the default table object will be set <ide> * and this query object will be returned for chaining. <ide> * <add> * Deprecated: 3.6.0 Using Query::repository() as getter is deprecated. Use getRepo...
1
Java
Java
ensure socketutils can be instantiated
08ba53dd0e0206fcfd72658c58371ccbe5a1ffaa
<ide><path>spring-core/src/test/java/org/springframework/util/SocketUtilsTests.java <ide> /* <del> * Copyright 2002-2017 the original author or authors. <add> * Copyright 2002-2018 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <ide> * you may not use ...
1
Python
Python
add an alias to get stats as json
96c6faf4738976b62c9497ec78879ac76610dd66
<ide><path>glances/plugins/glances_plugin.py <ide> def get_stats(self): <ide> """Return the stats object in JSON format.""" <ide> return self._json_dumps(self.stats) <ide> <add> def get_json(self): <add> """Return the stats object in JSON format.""" <add> return self.get_stats() <add> ...
1
Ruby
Ruby
improve documentation and add test
6116d7bc052839646f448b8403a7287f52b97ed7
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb <ide> module ConnectionAdapters <ide> # * private methods that require being called in a +synchronize+ blocks <ide> # are now explicitly documented <ide> class ConnectionPool <del> # Threadsafe, fair, LIFO queue...
2
Text
Text
fix a typo in changelog_v12
e2d22060ab589b1202caad8499f4080676e1d35e
<ide><path>doc/changelogs/CHANGELOG_V12.md <ide> occur in any future release.” Users should be cautious when using the feature <ide> in production environments. <ide> <ide> Unlike Node.js 14, using ESM will still emit a runtime experimental warning, <del>either when a module is used a the application's entrypoint or t...
1
Javascript
Javascript
remove unnecessary comma in bokehshader2
1ff4e4568d3d2623b3e7af45cd3d8a51f5ec2d60
<ide><path>examples/js/shaders/BokehShader2.js <ide> THREE.BokehShader = { <ide> "pentagon": { value: 0 }, <ide> <ide> "shaderFocus": { value: 1 }, <del> "focusCoords": { value: new THREE.Vector2() }, <add> "focusCoords": { value: new THREE.Vector2() } <ide> <ide> <ide> },
1
PHP
PHP
fix bug with retrycommand
bd7aaa8ff0c37907ac66fcccfebc7d6e25a7402c
<ide><path>src/Illuminate/Queue/Console/RetryCommand.php <ide> <ide> namespace Illuminate\Queue\Console; <ide> <add>use DateTimeInterface; <ide> use Illuminate\Console\Command; <ide> use Illuminate\Support\Arr; <ide> <ide> protected function refreshRetryUntil($payload) <ide> $instance = unserialize($payload[...
1
Python
Python
fix some more tests
4d7ff76cfbaf5fb8a57d8f3232c989e8e2c2f5b5
<ide><path>keras/engine/training.py <ide> def compile(self, optimizer, loss, metrics=[], loss_weights=None, <ide> ''' <ide> self.optimizer = optimizers.get(optimizer) <ide> self.sample_weight_mode = sample_weight_mode <add> self.loss = loss <ide> <ide> # prepare loss weights <ide...
8
PHP
PHP
add implemented interface
47a9a5bdc818845ef7542527a09c62c603ae3f0a
<ide><path>src/Console/CommandRunner.php <ide> use Cake\Console\Exception\StopException; <ide> use Cake\Console\Shell; <ide> use Cake\Core\ConsoleApplicationInterface; <add>use Cake\Event\EventDispatcherInterface; <ide> use Cake\Event\EventDispatcherTrait; <ide> use Cake\Utility\Inflector; <ide> use RuntimeException; <...
1
Text
Text
remove ref to obsolete 'def patches'
159373707b4d8da7f27dbae92585b11674cbd8a2
<ide><path>share/doc/homebrew/Formula-Cookbook.md <ide> Check if the formula you are updating is a dependency for any other formulae by <ide> <ide> Homebrew wants to maintain a consistent Ruby style across all formulae based on [Ruby Style Guide](https://github.com/styleguide/ruby). Other formulae may not have been up...
1
Java
Java
add onbackpressurereduce operator
e0122a4c264761ae9eaf969740acf17a0678ad7b
<ide><path>src/main/java/io/reactivex/rxjava3/core/Flowable.java <ide> public final Flowable<T> onBackpressureLatest() { <ide> @SchedulerSupport(SchedulerSupport.NONE) <ide> @NonNull <ide> public final Flowable<T> onBackpressureReduce(@NonNull BiFunction<T, T, T> reducer) { <add> Objects.requireNonNu...
7
PHP
PHP
add callback support to "optional"
cb6e308e19754db5a7d5ee42c1334a28001ac5e1
<ide><path>src/Illuminate/Support/helpers.php <ide> function object_get($object, $key, $default = null) <ide> * Provide access to optional objects. <ide> * <ide> * @param mixed $value <add> * @param callable|null $callback <ide> * @return mixed <ide> */ <del> function optional($value...
2
Text
Text
add new book title for devops
7fe751782a0cd61b50ee5c076a9fe3184df1f3f2
<ide><path>guide/english/book-recommendations/index.md <ide> title: Books to Read for Programmers <ide> - [Amazon Smile](https://smile.amazon.com/Code-Language-Computer-Hardware-Software/dp/0735611319/ref=sr_1_1?s=books&ie=UTF8&qid=1508780869&sr=1-1&keywords=code) <ide> - ISBN-13: 978-0735611313 <ide> <add>*DevOps Han...
1
Go
Go
use consts for default registry
ab47fd2f72b4f1d757a4a6cd986c51733535ee2a
<ide><path>registry/config.go <ide> type serviceConfig struct { <ide> registrytypes.ServiceConfig <ide> } <ide> <del>var ( <add>const ( <ide> // DefaultNamespace is the default namespace <ide> DefaultNamespace = "docker.io" <ide> // DefaultRegistryVersionHeader is the name of the default HTTP header <ide> var ( <i...
1
Text
Text
clarify html safe translations [ci-skip]
0e41b0a87a10205d2b85406ae33e116a5e4cbab3
<ide><path>guides/source/i18n.md <ide> I18n.default_locale = :de <ide> <ide> ### Using Safe HTML Translations <ide> <del>Keys with a '_html' suffix and keys named 'html' are marked as HTML safe. Use them in views without escaping. <add>Keys with a '_html' suffix and keys named 'html' are marked as HTML safe. When you...
1
Javascript
Javascript
add a dispose function
b0436ca155722717d7e9888f2b22e7ed313ae875
<ide><path>examples/jsm/csm/CSM.js <ide> export default class CSM { <ide> <ide> } <ide> <add> dispose() { <add> <add> const shaders = this.shaders; <add> shaders.forEach( function ( shader, material ) { <add> <add> delete material.onBeforeCompile; <add> delete material.defines.USE_CSM; <add> delete material....
1
Javascript
Javascript
remove unused parameters and methods
ff0369883e73fa0f937d2bbb3c86e9267103d7f6
<ide><path>src/ng/parse.js <ide> Lexer.prototype = { <ide> this.text = text; <ide> this.index = 0; <ide> this.ch = undefined; <del> this.lastCh = ':'; // can start regexp <ide> this.tokens = []; <ide> <ide> while (this.index < this.text.length) { <ide> Lexer.prototype = { <ide> this.inde...
1
Ruby
Ruby
remove unneeded merge with default false options
35c5ccb30cf01028970f157894a77fdf54973567
<ide><path>activemodel/lib/active_model/validations/numericality.rb <ide> class NumericalityValidator < EachValidator <ide> <ide> RESERVED_OPTIONS = CHECKS.keys + [:only_integer] <ide> <del> def initialize(options) <del> super(options.reverse_merge(:only_integer => false, :allow_nil => false)) <del>...
1
Javascript
Javascript
update vrmlloader to import vertex colors
96c1f744eef6498e3c9dd15cc41a2235a070da40
<ide><path>examples/js/loaders/VRMLLoader.js <ide> THREE.VRMLLoader.prototype = { <ide> scope.angles = []; <ide> break; <ide> <add> case 'color': <ide> case 'skyColor': <ide> case 'groundColor': <ide> scope.recordingFieldname = fieldName; <ide> THREE.VRMLLoader.prototype = { <ide> ...
1
Ruby
Ruby
use method with_active_record_default_timezone
a0f0943d3a8c7f277d1266fce898b128b136bf6a
<ide><path>activerecord/test/cases/quoting_test.rb <ide> def test_quoted_date <ide> end <ide> <ide> def test_quoted_time_utc <del> before = ActiveRecord::Base.default_timezone <del> ActiveRecord::Base.default_timezone = :utc <del> t = Time.now <del> assert_equal t.getutc.to_s(:d...
1
Ruby
Ruby
allow selective linking at the file level
01994c7be194e3742913e15ad6f1a775de45e03c
<ide><path>Library/Homebrew/cleaner.rb <ide> def clean_dir d <ide> elsif path.extname == '.la' <ide> # *.la files are stupid <ide> path.unlink unless @f.skip_clean? path <del> elsif path == @f.lib+'charset.alias' <del> path.unlink unless @f.skip_clean? path <ide> elsif not path.s...
2
Javascript
Javascript
fix tooltip title in radar charts
ddee91eb9f7f68d64b1634c103ebbc8421b23c7a
<ide><path>src/controllers/controller.radar.js <ide> module.exports = DatasetController.extend({ <ide> return this.chart.scale.id; <ide> }, <ide> <del> /** <del> * @private <del> */ <del> _getIndexScaleId: function() { <del> return this.chart.scale.id; <del> }, <del> <ide> datasetElementType: elements.Line, <id...
2
Ruby
Ruby
prevent duplicate data-disable-with attributes
3d2645ab138c9158ca4224458de74c723d4441cc
<ide><path>actionview/lib/action_view/helpers/form_tag_helper.rb <ide> def radio_button_tag(name, value, checked = false, options = {}) <ide> # # => <input name='commit' type='submit' value='Save' data-disable-with="Save" data-confirm="Are you sure?" /> <ide> # <ide> def submit_tag(value = "Save cha...
2
Javascript
Javascript
reject control characters in http.request()
4f62acd9c5e6f7d65605dda0ebdcf60e9e848311
<ide><path>lib/_http_client.js <ide> function ClientRequest(options, cb) { <ide> if (self.agent && self.agent.protocol) <ide> expectedProtocol = self.agent.protocol; <ide> <del> if (options.path && / /.test(options.path)) { <add> if (options.path && /[\u0000-\u0020]/.test(options.path)) { <ide> // The actu...
2
Text
Text
add changelog entry for #deliver_later
6e6ebeb03cf0ff58c9ef778bfbdd9b0b9891b17b
<ide><path>actionmailer/CHANGELOG.md <add>* Added #deliver_later in addition to #deliver, which will enqueue a job to render and <add> deliver the mail instead of delivering it right at that moment. The job is enqueued <add> using the new Active Job framework in Rails, and will use whatever queue is configured...
1
Python
Python
remove documentation for unused kwarg
08e4ad5eea1d07c5c1287bf365f994acdb1645c7
<ide><path>pytorch_transformers/configuration_openai.py <ide> class OpenAIGPTConfig(PretrainedConfig): <ide> <ide> Args: <ide> vocab_size_or_config_json_file: Vocabulary size of `inputs_ids` in `OpenAIGPTModel` or a configuration json file. <del> n_special: The number of special tokens to learn duri...
1
Javascript
Javascript
add dropbot to showcase
3357bec8c09f5d546a639575ffc27da6098949d4
<ide><path>website/src/react-native/showcase.js <ide> var apps = [ <ide> link: 'https://itunes.apple.com/us/app/reactto36/id989009293?mt=8', <ide> author: 'Jonathan Solichin', <ide> }, <add> { <add> name: 'DropBot', <add> icon: 'http://a2.mzstatic.com/us/r30/Purple69/v4/fb/df/73/fbdf73e0-22d2-c936-3115...
1
Javascript
Javascript
bundle all api documentation in a module
ec6a99d7815a53b3f664d543c204fa5232995d0f
<ide><path>src/display/api.js <ide> /* globals requirejs, __non_webpack_require__ */ <ide> /* eslint no-var: error */ <ide> <add>/** <add> * @module pdfjsLib <add> */ <add> <ide> import { <ide> AbortException, assert, createPromiseCapability, getVerbosityLevel, info, <ide> InvalidPDFException, isArrayBuffer, isSam...
1
Javascript
Javascript
catch localstorage security exceptions. fixes #351
90f975c20e2229c47bb403c70c1f46a3bc0f1fd1
<ide><path>src/js/lib.js <ide> vjs.get = function(url, onSuccess, onError){ <ide> /* Local Storage <ide> ================================================================================ */ <ide> vjs.setLocalStorage = function(key, value){ <del> // IE was throwing errors referencing the var anywhere without this <del> ...
1
PHP
PHP
fix title handling in html builder
c1e2b9685784db268c3829e77317acd4ef6d8127
<ide><path>src/Illuminate/Html/HtmlBuilder.php <ide> public function link($url, $title = null, $attributes = array(), $secure = null) <ide> { <ide> $url = $this->url->to($url, array(), $secure); <ide> <del> $title = $title ?: $url; <add> if (is_null($title) or $title === false) $title = $uri; <ide> <ide> retur...
1
Javascript
Javascript
adjust ga value for stripe modal
080154b34fd0cd907fb3d7623c2752b13dfa7ffd
<ide><path>client/src/components/Donation/DonateFormChildViewForHOC.js <ide> class DonateFormChildViewForHOC extends Component { <ide> // change the donation modal button label to close <ide> // or display the close button for the cert donation section <ide> if (this.props.handleProcessing) { <del> thi...
1
Text
Text
add instruction of installation docker for centos
56e8e374876dfcf9b561fe7fb2c4877632772573
<ide><path>guide/english/docker/index.md <ide> One of Docker's biggest advantages is that it can be used by a team using differ <ide> <ide> * RedHat: `yum install docker-ce` <ide> <del>* Windows / macOS: [Download](https://www.docker.com/get-started) <add>* Windows: [Download](https://store.docker.com/editions/commun...
1
Ruby
Ruby
add mandrill support
3984460424b678d844009319598e2b41c350ca3c
<ide><path>app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb <add>class ActionMailbox::Ingresses::Mandrill::InboundEmailsController < ActionMailbox::BaseController <add> before_action :ensure_authenticated <add> <add> def create <add> raw_emails.each { |raw_email| ActionMailbox::Inboun...
3
Text
Text
update docs to use lists instead of tuples
f0dbf0a264677f2a53faab402ff49f442fc4383a
<ide><path>README.md <ide> Install using `pip`... <ide> <ide> Add `'rest_framework'` to your `INSTALLED_APPS` setting. <ide> <del> INSTALLED_APPS = ( <add> INSTALLED_APPS = [ <ide> ... <ide> 'rest_framework', <del> ) <add> ] <ide> <ide> # Example <ide> <ide> from rest_framework import se...
26
Javascript
Javascript
fix mediabox check (regr. of #519)
2ad3a8bd1c3e237a310239de168709d8143d5d9c
<ide><path>pdf.js <ide> var Page = (function pagePage() { <ide> get mediaBox() { <ide> var obj = this.inheritPageProp('MediaBox'); <ide> // Reset invalid media box to letter size. <del> if (!IsArray(obj) || obj.length === 4) <add> if (!IsArray(obj) || obj.length !== 4) <ide> obj = [0, ...
1
Ruby
Ruby
pass `debug?` and `verbose?` in `brew style`
5db764f3cb3d8b3e356cc8f209ff4c52c126362e
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit <ide> <ide> only_cops = args.only_cops <ide> except_cops = args.except_cops <del> options = { fix: args.fix? } <add> options = { fix: args.fix?, debug: args.debug?, verbose: args.verbose? } <ide> <ide> if only_cops <ide> options[:onl...
3
Python
Python
add imports to examples
e58b3ec5df57359cd0bf64e817c397589f655ade
<ide><path>src/transformers/modeling_bart.py <ide> def forward( <ide> <ide> # Mask filling only works for bart-large <ide> from transformers import BartTokenizer, BartForConditionalGeneration <del> tokenizer = AutoTokenizer.from_pretrained('bart-large') <add> tokenizer = B...
1