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
Text
Text
remove extra class [ci skip]
03043ab07ce95a71b57c618f8bb7d0f023c0e040
<ide><path>guides/source/6_1_release_notes.md <ide> Please refer to the [Changelog][active-record] for detailed changes. <ide> <ide> * Named scope chain does no longer leak scope to class level querying methods. <ide> <del> class class User < ActiveRecord::Base <add> class User < ActiveRecord::Base <i...
1
Python
Python
redact conn secrets in webserver logs
2a59de3e558e3b60caad876dee8fa4b43a7a17cf
<ide><path>airflow/hooks/base.py <ide> <ide> from airflow.typing_compat import Protocol <ide> from airflow.utils.log.logging_mixin import LoggingMixin <add>from airflow.utils.log.secrets_masker import redact <ide> <ide> if TYPE_CHECKING: <ide> from airflow.models.connection import Connection # Avoid circular imp...
1
Java
Java
remove testgroup.ci enum constant
01fb35bd2d81444fff008172bf58efa1912402af
<ide><path>spring-core/src/test/java/org/springframework/core/io/ResourceTests.java <ide> import java.io.IOException; <ide> import java.io.InputStream; <ide> import java.io.InputStreamReader; <add>import java.net.HttpURLConnection; <add>import java.net.URL; <ide> import java.nio.ByteBuffer; <ide> import java.nio.channe...
4
PHP
PHP
toughen callable usage
3b63d72447ffbc15eb8feebaf8a5361b0da54c0f
<ide><path>lib/Cake/Model/Datasource/Database/Query.php <ide> public function execute() { <ide> <ide> $query = $this->_transformQuery(); <ide> $statement = $this->_connection->prepare($query->sql(false)); <del> $query->_bindParams($statement); <add> $query->_bindStatement($statement); <ide> $statement->execute...
1
PHP
PHP
use correct syntax and move postgres grammar
dc263d4fe2580306ab35ecf164158863bc3d6958
<ide><path>src/Illuminate/Database/Query/Grammars/Grammar.php <ide> protected function compileAggregate(Builder $query, $aggregate) <ide> // we need to prepend "distinct" onto the column name so that the query takes <ide> // it into account when it performs the aggregating operations on the data. <ide> ...
3
Java
Java
revert "no need to allocate a new head node."
2f7031e780404c8f5a355809dd309885f27ba483
<ide><path>src/main/java/rx/internal/operators/OperatorReplay.java <ide> final void removeFirst() { <ide> size--; <ide> // can't just move the head because it would retain the very first value <ide> // can't null out the head's value because of late replayers would see null <del> ...
1
Ruby
Ruby
remove unused hashcaching
c70fd5df7fd8af3a50539d6edf9c3453d2f892e8
<ide><path>activesupport/lib/active_support/caching_tools.rb <del>module ActiveSupport <del> module CachingTools #:nodoc: <del> <del> # Provide shortcuts to simply the creation of nested default hashes. This <del> # pattern is useful, common practice, and unsightly when done manually. <del> module HashCac...
2
Go
Go
fix deadlock when more than 1 plugin is installed
42360d164b9f25fb4b150ef066fcf57fa39559a7
<ide><path>plugin/manager.go <ide> func (pm *Manager) init() error { <ide> } <ide> } <ide> }(p) <del> group.Wait() <ide> } <add> group.Wait() <ide> return pm.save() <ide> } <ide>
1
Python
Python
remove `normed=` keyword argument from histogroms
2215054472616df563faa4613734426c790d4217
<ide><path>numpy/lib/histograms.py <ide> def histogram_bin_edges(a, bins=10, range=None, weights=None): <ide> <ide> <ide> def _histogram_dispatcher( <del> a, bins=None, range=None, normed=None, weights=None, density=None): <add> a, bins=None, range=None, density=None, weights=None): <ide> return (a,...
3
Text
Text
update debugging_rails_applications [ci skip]
df497cf08590c9451b6ac1cf6d6ee86e304c0adf
<ide><path>guides/source/debugging_rails_applications.md <ide> To see the previous ten lines you should type `list-` (or `l-`). <ide> 7 byebug <ide> 8 @articles = Article.find_recent <ide> 9 <del> 10 respond_to do |format| <add> 10 respond_to do |format| <ide> ``` <ide> <ide> This way y...
1
Python
Python
display only temperature stats
9447bc63ead95f3a359bc3bd5452d52c024cff19
<ide><path>glances/glances.py <ide> def get(self): <ide> <ide> class glancesGrabSensors: <ide> """ <del> Get Sensors stats using the PySensors lib <add> Get sensors stats using the PySensors lib <ide> """ <ide> <ide> def __init__(self): <ide> def __update__(self): <ide> # Reset the list <ide...
1
Javascript
Javascript
remove extra div
7a08e1b5f89040743f8a3e463c2e56bc9ed68ac8
<ide><path>server/document.js <ide> import PropTypes from 'prop-types' <ide> import htmlescape from 'htmlescape' <ide> import flush from 'styled-jsx/server' <ide> <add>function Fragment ({ children }) { <add> return children <add>} <add> <ide> export default class Document extends Component { <ide> static getInitia...
1
Javascript
Javascript
remove compose filtering
b4fb08133c95094a4b293a9ab434d1d5dd657527
<ide><path>src/compose.js <ide> */ <ide> <ide> export default function compose(...funcs) { <del> funcs = funcs.filter(func => typeof func === 'function') <del> <ide> if (funcs.length === 0) { <ide> return arg => arg <ide> } <ide><path>test/compose.spec.js <ide> describe('Utils', () => { <ide> expect(co...
2
Javascript
Javascript
add support for animation
0b6f1ce5f89f47f9302ff1e8cd8f4b92f837c413
<ide><path>angularFiles.js <ide> angularFiles = { <ide> 'src/auto/injector.js', <ide> <ide> 'src/ng/anchorScroll.js', <add> 'src/ng/animation.js', <add> 'src/ng/animator.js', <ide> 'src/ng/browser.js', <ide> 'src/ng/cacheFactory.js', <ide> 'src/ng/compile.js', <ide> angularFiles = { <ide> ...
25
Ruby
Ruby
fix deprecation message on info screen
d283ca34a95fddc5d7e982432e0b5ea61269c133
<ide><path>railties/lib/rails/info.rb <ide> def to_html <ide> end <ide> <ide> property 'Middleware' do <del> Rails.configuration.middleware.active.map(&:inspect) <add> Rails.configuration.middleware.map(&:inspect) <ide> end <ide> <ide> # The application's location on the filesystem.
1
Mixed
Ruby
use fixed fonts only in the name of the parameter
7814f901e1ec0cc3228914f60bd340922f98d94f
<ide><path>actionpack/lib/action_controller/test_case.rb <ide> def determine_default_controller_class(name) <ide> # Simulate a GET request with the given parameters. <ide> # <ide> # - +action+: The controller action to call. <del> # - +params:+ The hash with HTTP parameters that you want to pass....
3
Javascript
Javascript
add dat.gui module
53471122b49e92f301656c7b6274af224e61866c
<ide><path>3rdparty/dat.gui.module.js <add>/** <add> * dat-gui JavaScript Controller Library <add> * http://code.google.com/p/dat-gui <add> * <add> * Copyright 2011 Data Arts Team, Google Creative Lab <add> * <add> * Licensed under the Apache License, Version 2.0 (the "License"); <add> * you may not use this file excep...
1
PHP
PHP
add alias for calling with single state
c8682e11b9f0e153654ff5c2a3ad9f8b2dca56d1
<ide><path>src/Illuminate/Database/Eloquent/FactoryBuilder.php <ide> public function times($amount) <ide> return $this; <ide> } <ide> <add> /** <add> * Set the state to be applied to the model. <add> * <add> * @param string $state <add> * @return $this <add> */ <add> public func...
2
Text
Text
fix links in http2.md
f8ef2e2bf95dd65cb06a7f5e581e856c302f0793
<ide><path>doc/api/http2.md <ide> if the stream is closed. <ide> [`ServerHttp2Stream`]: #http2_class_serverhttp2stream <ide> [`TypeError`]: errors.html#errors_class_typeerror <ide> [`http2.SecureServer`]: #http2_class_http2secureserver <del>[`http2.createSecureServer()`]: #http2_createsecureserver_options_onrequesthand...
1
Javascript
Javascript
add destructuring visitor to jsx harmony transform
f02264cf83cc126cb1b7877e1ac66c9d4728979e
<ide><path>vendor/fbtransform/visitors.js <ide> /*global exports:true*/ <ide> var es6ArrowFunctions = require('jstransform/visitors/es6-arrow-function-visitors'); <ide> var es6Classes = require('jstransform/visitors/es6-class-visitors'); <add>var es6Destructuring = require('jstransform/visitors/es6-destructuring-visito...
1
Python
Python
remove redundant character escape from regex
350fd627376b296aa70aea2481530336e6c71b06
<ide><path>tests/test_utils/perf/dags/elastic_dag.py <ide> <ide> # DAG File used in performance tests. Its shape can be configured by environment variables. <ide> RE_TIME_DELTA = re.compile( <del> r"^((?P<days>[\.\d]+?)d)?((?P<hours>[\.\d]+?)h)?((?P<minutes>[\.\d]+?)m)?((?P<seconds>[\.\d]+?)s)?$" <add> r"^((?P<d...
2
Javascript
Javascript
add performance tracing for next-image-loader
7c56684446173468acb8f0a910befe7a8c3d2360
<ide><path>packages/next/build/webpack/loaders/next-image-loader.js <ide> const BLUR_IMG_SIZE = 8 <ide> const BLUR_QUALITY = 70 <ide> const VALID_BLUR_EXT = ['jpeg', 'png', 'webp'] <ide> <del>async function nextImageLoader(content) { <del> const isServer = loaderUtils.getOptions(this).isServer <del> const context = ...
1
Ruby
Ruby
cache the name and options on the stack
32bacb1ce80a06f328a0f32ca27c07d8417704bc
<ide><path>activerecord/lib/active_record/associations/builder/collection_association.rb <ide> def initialize(name, scope, options) <ide> <ide> def define_callbacks(model, reflection) <ide> super <add> name = reflection.name <add> options = reflection.options <ide> CALLBACKS.each { |callba...
1
Ruby
Ruby
follow code conventions on some tests
21b61a8ac4dda12a4f429a50be3191aa967c10b3
<ide><path>activemodel/test/cases/validations/conditional_validation_test.rb <ide> def teardown <ide> <ide> def test_if_validation_using_method_true <ide> # When the method returns true <del> Topic.validates_length_of( :title, :maximum=>5, :too_long=>"hoo %{count}", :if => :condition_is_true ) <add> Topic....
5
Python
Python
update encode documentation
2e4de762318614878fc6fafd79cff73f3dcfca11
<ide><path>src/transformers/tokenization_utils.py <ide> def encode( <ide> **kwargs <ide> ): <ide> """ <del> Converts a string in a sequence of ids (integer), using the tokenizer and vocabulary. <add> Converts a string in a sequence of ids (integer), using the tokenizer and vocabulary. ...
1
Javascript
Javascript
test hmac binding robustness
b4b37e8dc9e6469c21746fdb6738b8d0f4648f55
<ide><path>test/parallel/test-crypto-hmac.js <ide> if (!common.hasCrypto) { <ide> } <ide> const crypto = require('crypto'); <ide> <add>// Test for binding layer robustness <add>{ <add> const binding = process.binding('crypto'); <add> const h = new binding.Hmac(); <add> // Fail to init the Hmac with an algorithm. <a...
1
Java
Java
change lift to use rx.observable.operator
673b03c8127b5da4a57d86292782bd9f5ea9633e
<ide><path>rxjava-contrib/rxjava-debug/src/main/java/rx/operators/DebugSubscriber.java <ide> package rx.operators; <ide> <add>import rx.Observable.Operator; <ide> import rx.Observer; <ide> import rx.Subscriber; <ide> import rx.plugins.DebugNotification; <ide><path>rxjava-contrib/rxjava-debug/src/main/java/rx/plugins/D...
52
Javascript
Javascript
fix fd leak in readstream.destroy()
497fd72e21d2d1216e8457928d1a8082349fd0e5
<ide><path>lib/fs.js <ide> ReadStream.prototype.destroy = function() { <ide> if (this.destroyed) <ide> return; <ide> this.destroyed = true; <del> <del> if (util.isNumber(this.fd)) <del> this.close(); <add> this.close(); <ide> }; <ide> <ide>
1
Go
Go
convert tarappender to the newidmappings
5672eeb5e06fe96451f36f35be7cfa18a4cf5063
<ide><path>pkg/archive/archive.go <ide> type tarAppender struct { <ide> Buffer *bufio.Writer <ide> <ide> // for hardlink mapping <del> SeenFiles map[uint64]string <del> UIDMaps []idtools.IDMap <del> GIDMaps []idtools.IDMap <add> SeenFiles map[uint64]string <add> IDMappings *idtools.IDMappings <ide> <ide> /...
3
Ruby
Ruby
convert source to string if it is present
d28ed9f5360b54320b2d1baaa2e6d0e3f3f941fc
<ide><path>actionview/lib/action_view/helpers/asset_url_helper.rb <ide> module AssetUrlHelper <ide> # asset_path "application", type: :stylesheet # => /stylesheets/application.css <ide> # asset_path "http://www.example.com/js/xmlhr.js" # => http://www.example.com/js/xmlhr.js <ide> def asset_pa...
1
Ruby
Ruby
use a conditional rather than early return in `id`
607e335faeeab965d2ba28a7ca2cbb19e2878c62
<ide><path>activerecord/lib/active_record/attribute_methods/primary_key.rb <ide> def to_key <ide> <ide> # Returns the primary key value. <ide> def id <del> return unless self.class.primary_key <del> sync_with_transaction_state <del> read_attribute(self.class.primary_key) <add> i...
1
Javascript
Javascript
organize sequence.js a bit, use #pragma
1423ade39a2162aeee13fb8ac758aef95f65770b
<ide><path>dist/Immutable.js <ide> var IndexedSequencePrototype = IndexedSequence.prototype; <ide> IndexedSequencePrototype[ITERATOR_SYMBOL] = IndexedSequencePrototype.values; <ide> IndexedSequencePrototype.__toJS = IndexedSequencePrototype.toArray; <ide> IndexedSequencePrototype.__toStringMapper = quoteString; <del>va...
3
Python
Python
set version to 2.0.4
05f41ff5872ca770d0dac49f0d5144a42fffd369
<ide><path>spacy/about.py <ide> # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py <ide> <ide> __title__ = 'spacy' <del>__version__ = '2.0.4.dev0' <add>__version__ = '2.0.4' <ide> __summary__ = 'Industrial-strength Natural Language Processing (NLP) with Python and Cython' <ide> __uri__ = 'https://s...
1
PHP
PHP
add example of inflect option
60aca56a6055f5ac7f65ed6f7fa0e882b233eecd
<ide><path>src/Routing/RouteBuilder.php <ide> public function namePrefix($value = null) <ide> * By default the path segment will match the key name. You can use the 'path' key inside the resource <ide> * definition to customize the path name. <ide> * <add> * You can use the `inflect` option to change...
1
Python
Python
handle iob with no tag in converter
5cf47b847ba50dc04253d77b65cf63a9b7347890
<ide><path>spacy/cli/converters/iob2json.py <ide> def iob2json(input_path, output_path, n_sents=10, *a, **k): <ide> """ <ide> # TODO: This isn't complete yet -- need to map from IOB to <ide> # BILUO <del> with input_path.open() as file_: <add> with input_path.open('r', encoding='utf8') as file_: <ide>...
1
Text
Text
fix broken npm package.json link
a0a3c93b1d3eed70c1add22a527fce382ea72bcd
<ide><path>docs/creating-a-package.md <ide> all the other available commands. <ide> [status-bar]: https://github.com/atom/status-bar <ide> [cs-syntax]: https://github.com/atom/language-coffee-script <ide> [npm]: http://en.wikipedia.org/wiki/Npm_(software) <del>[npm-keys]: https://npmjs.org/doc/json.html <add>[npm-keys]...
1
Javascript
Javascript
fix the sourcemap url on minified bundles
57a76c0c014eacb9c138ab8faf9aaabd964e416d
<ide><path>packager/react-packager/src/Bundler/Bundle.js <ide> class Bundle { <ide> const minifyActivity = Activity.startEvent('minify'); <ide> this._minifiedSourceAndMap = UglifyJS.minify(source, { <ide> fromString: true, <del> outSourceMap: 'bundle.js', <add> outSourceMap: this._sour...
1
Go
Go
replace burntsushi/toml with pelletier/go-toml
a7ecbd4b2971605ab03bbacb122741a371b30919
<ide><path>libnetwork/cmd/dnet/dnet.go <ide> import ( <ide> "syscall" <ide> "time" <ide> <del> "github.com/BurntSushi/toml" <ide> "github.com/docker/docker/api/types/network" <ide> "github.com/docker/docker/libnetwork" <ide> "github.com/docker/docker/libnetwork/api" <ide> import ( <ide> "github.com/docker/docker...
2
Java
Java
support animation events in vieweventmodule
c80309e5ae66d651c4dabcd5c0b4ec912797c9fd
<ide><path>ReactAndroid/src/main/java/com/facebook/react/animated/NativeAnimatedModule.java <ide> public String getName() { <ide> * @return {@link NativeAnimatedNodesManager} <ide> */ <ide> @Nullable <del> private NativeAnimatedNodesManager getNodesManager() { <add> public NativeAnimatedNodesManager getNodesM...
2
Python
Python
fix math in bartlett docstring
89f1a4e66ffaefe0ce7fe969df55821d7b853ba9
<ide><path>numpy/lib/function_base.py <ide> def bartlett(M): <ide> ----- <ide> The Bartlett window is defined as <ide> <del> .. math:: w(n) = \frac{2}{M-1} (\frac{M-1}{2} - |n - \frac{M-1}{2}|) <add> .. math:: w(n) = \\frac{2}{M-1} (\\frac{M-1}{2} - |n - \\frac{M-1}{2}|) <ide> <ide> Most references ...
1
Javascript
Javascript
fix urlobject parameter name in url.format
8520e6f2804fad64fb50b91c80553715d3c83bd4
<ide><path>lib/url.js <ide> function autoEscapeStr(rest) { <ide> } <ide> <ide> // format a parsed object into a url string <del>function urlFormat(obj, options) { <add>function urlFormat(urlObject, options) { <ide> // ensure it's an object, and not a string url. <del> // If it's an obj, this is a no-op. <del> // t...
2
Python
Python
write some tests for busday_offset
29a3cebde0cb0c18e4120701e12e244a261a710f
<ide><path>numpy/core/tests/test_datetime.py <ide> def test_timedelta_arange(self): <ide> assert_raises(TypeError, np.arange, np.timedelta64(0,'Y'), <ide> np.timedelta64(5,'D')) <ide> <del> def test_maximum_reduce(self): <add> def test_datetime_maximum_reduce(self): <ide> ...
1
Javascript
Javascript
fix normalization of css filename
04ddb71e06b0d898eb70f3b42a9e11e0799f5cd2
<ide><path>lib/config/normalization.js <ide> const getNormalizedWebpackOptions = config => { <ide> chunkLoading: output.chunkLoading, <ide> chunkLoadingGlobal: output.chunkLoadingGlobal, <ide> chunkLoadTimeout: output.chunkLoadTimeout, <add> cssFilename: output.cssFilename, <add> cssChunkFilename: out...
1
Javascript
Javascript
hook the loading manager in stlloader.js
4a1c953d9cdc42be93ca5f7a4dd8cd74509213be
<ide><path>examples/js/loaders/STLLoader.js <ide> * @author aleeper / http://adamleeper.com/ <ide> * @author mrdoob / http://mrdoob.com/ <ide> * @author gero3 / https://github.com/gero3 <add> * @author zinefer / https://github.com/zinefer <ide> * <ide> * Description: A THREE loader for STL ASCII files, as created ...
1
PHP
PHP
refactor the ignored error logging
fc8b30159ec611cc9e04b8e4e47754dc817d2054
<ide><path>laravel/laravel.php <ide> * errors are ignored and errors in the developer configured whitelist <ide> * are silently logged. <ide> */ <del>set_error_handler(function($number, $error, $file, $line) use ($logger) <add>set_error_handler(function($code, $error, $file, $line) use ($logger) <ide> { <del> if (er...
1
Ruby
Ruby
improve `javascript_include_tag` documentation
c945da583b8f802216300d037e5a70ebc5da834c
<ide><path>actionview/lib/action_view/helpers/asset_tag_helper.rb <ide> module AssetTagHelper <ide> # When the Asset Pipeline is enabled, you can pass the name of your manifest as <ide> # source, and include other JavaScript or CoffeeScript files inside the manifest. <ide> # <add> # ==== Options ...
1
Text
Text
add note about code organization with amd
dbc4608ed10bd1347649e6f1514f459957cda003
<ide><path>CONTRIBUTING.md <ide> Alternatively, you can **load tests in AMD** to avoid the need for rebuilding al <ide> Click "Load with AMD" after loading the test page. <ide> <ide> <add>### Repo organization <add> <add>The jQuery source is organized with AMD modules and then concatenated and compiled at build time....
1
Python
Python
fix pipeline tests for roberta-like tokenizers
7e7f62bfa72ca03e9f16285dad182f7c57cd8cab
<ide><path>tests/pipelines/test_pipelines_common.py <ide> AutoModelForSequenceClassification, <ide> AutoTokenizer, <ide> DistilBertForSequenceClassification, <del> IBertConfig, <del> RobertaConfig, <ide> TextClassificationPipeline, <ide> TFAutoModelForSequenceClassification, <ide> pipeline...
1
Ruby
Ruby
remove need for headers on 10.14
0cd84274053d88f70e1244a21ede906dfa3bfda1
<ide><path>Library/Homebrew/extend/os/mac/diagnostic.rb <ide> def fatal_development_tools_checks <ide> check_xcode_minimum_version <ide> check_clt_minimum_version <ide> check_if_xcode_needs_clt_installed <del> check_if_clt_needs_headers_installed <ide> ].freeze <ide> ...
2
Javascript
Javascript
add parser prewalking to capture scope
3afe67d6fbe3a33a77b9f5ee0b02172c43f23828
<ide><path>lib/Parser.js <ide> class Parser extends Tapable { <ide> this.walkExpression(methodDefinition.value); <ide> } <ide> <del> walkStatements(statements) { <del> for(let indexA = 0, lenA = statements.length; indexA < lenA; indexA++) { <del> const statementA = statements[indexA]; <del> if(this.isHoistedS...
3
PHP
PHP
add method to split plugin and class names up
7818aa87ec590cebd13837d1d2d8a55190e774bb
<ide><path>src/Console/Command/Task/BakeTask.php <ide> public function getPath() { <ide> * @return void <ide> */ <ide> public function main() { <del> foreach ($this->args as $i => $arg) { <del> if (strpos($arg, '.')) { <del> list($this->params['plugin'], $this->args[$i]) = pluginSplit($arg); <del> break; <d...
6
Ruby
Ruby
remove state from the preloader
6e5a2cb9519aab568ea0cfea2f42364de8ccf655
<ide><path>activerecord/lib/active_record/associations/preloader.rb <ide> class Preloader #:nodoc: <ide> autoload :BelongsTo, 'active_record/associations/preloader/belongs_to' <ide> end <ide> <del> attr_reader :records, :associations, :preload_scope, :model <del> <ide> # Eager loads ...
3
Text
Text
remove bad link to irc info
8c290fd0f131924e1b54bb80cddbb9809c2937a8
<ide><path>README.md <ide> If you didn't find an answer in the resources above, try these unofficial <ide> resources: <ide> <ide> * [Questions tagged 'node.js' on StackOverflow][] <del>* [#node.js channel on chat.freenode.net][]. See <http://nodeirc.info/> for more <del> information. <add>* [#node.js channel on chat....
1
Python
Python
add comment on recursive weights loading
851ef592c57bfb0af3807548e798570242c45510
<ide><path>transformers/modeling_utils.py <ide> def from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs): <ide> if metadata is not None: <ide> state_dict._metadata = metadata <ide> <add> # PyTorch's `_load_from_state_dict` does not copy parameters in a modul...
1
Python
Python
add a test case for it
47d666f92f08eb3830a3b92a6f1c6e0732a1c5d4
<ide><path>libcloud/test/compute/test_digitalocean_v2.py <ide> def test_list_sizes_success(self): <ide> self.assertEqual(size.name, '1gb') <ide> self.assertEqual(size.ram, 1024) <ide> <add> def test_list_sizes_filter_by_location_success(self): <add> location = self.driver.list_locations()[1] ...
1
Ruby
Ruby
remove feature checking for class#descendants
bc07139db323770778307179ab9eddf5b877bac2
<ide><path>activesupport/lib/active_support/core_ext/class/subclasses.rb <ide> require "active_support/ruby_features" <ide> <ide> class Class <del> unless ActiveSupport::RubyFeatures::CLASS_DESCENDANTS <del> if ActiveSupport::RubyFeatures::CLASS_SUBCLASSES <del> def descendants <del> subclasses.concat(...
3
Go
Go
use defined variable
555ce0cb54943dab39f16582fc1923467e42af14
<ide><path>daemon/container.go <ide> func (container *Container) GetSize() (int64, int64) { <ide> } <ide> defer container.Unmount() <ide> <del> if differ, ok := container.daemon.driver.(graphdriver.Differ); ok { <add> if differ, ok := driver.(graphdriver.Differ); ok { <ide> sizeRw, err = differ.DiffSize(container....
1
Java
Java
utilize default methods in testexecutionlistener
d6d4251550a82fc6642bd11c43664e8c0dba5294
<ide><path>spring-test/src/main/java/org/springframework/test/context/TestExecutionListener.java <ide> * test execution events published by the {@link TestContextManager} with which <ide> * the listener is registered. <ide> * <add> * <p>This interface provides empty {@code default} implementations for all methods. <...
2
Mixed
Python
remove trailing slash from cramer cursor link
3e5a1397d72045bf9fe84fbbefa426ee31f5febc
<ide><path>docs/topics/3.1-announcement.md <ide> Note that as a result of this work a number of settings keys and generic view at <ide> <ide> Until now, there has only been a single built-in pagination style in REST framework. We now have page, limit/offset and cursor based schemes included by default. <ide> <del>The...
2
Mixed
Ruby
allow expires_in for activestorage signed ids
1dc175338bd0cc9294be6a6e3027d468c31829c6
<ide><path>activestorage/CHANGELOG.md <add>* Allow `expires_in` for ActiveStorage signed ids. <add> <add> *aki77* <add> <ide> * Allow to purge an attachment when record is not persisted for `has_one_attached` <ide> <ide> *Jacopo Beschi* <ide><path>activestorage/app/models/active_storage/blob.rb <ide> def si...
3
Javascript
Javascript
remove _ctor field from lazy components
fa03206ee4352431198b678c00dca83027e7052d
<ide><path>packages/react-dom/src/server/ReactPartialRenderer.js <ide> <ide> import type {ThreadID} from './ReactThreadIDAllocator'; <ide> import type {ReactElement} from 'shared/ReactElementType'; <del>import type {LazyComponent} from 'shared/ReactLazyComponent'; <add>import type {LazyComponent} from 'react/src/React...
6
Text
Text
update env default on child_process functions
329355986dcfd92d079037dfe42ccb5443c8029d
<ide><path>doc/api/child_process.md <ide> changes: <ide> * `options` {Object} <ide> * `cwd` {string} Current working directory of the child process. <ide> **Default:** `null`. <del> * `env` {Object} Environment key-value pairs. **Default:** `null`. <add> * `env` {Object} Environment key-value pairs. **Default:*...
1
Go
Go
avoid cgo in collector
cf104d85c35947c25dcd86cef19aa97fe31e4bbd
<ide><path>daemon/stats/collector_unix.go <ide> import ( <ide> "strings" <ide> <ide> "github.com/opencontainers/runc/libcontainer/system" <add> "golang.org/x/sys/unix" <ide> ) <ide> <del>/* <del>#include <unistd.h> <del>*/ <del>import "C" <del> <ide> // platformNewStatsCollector performs platform specific initialis...
1
Javascript
Javascript
use proptypes directly
bf752014a988bb6639a9f9993dd25cc70799cfae
<ide><path>Libraries/Components/MaskedView/MaskedViewIOS.ios.js <ide> const StyleSheet = require('StyleSheet'); <ide> const View = require('View'); <ide> const ViewPropTypes = require('ViewPropTypes'); <ide> const requireNativeComponent = require('requireNativeComponent'); <del>const ReactPropTypes = PropTypes; <ide> ...
1
Go
Go
fix typos in service.go and plugin.go
c80e20f93f9b311749a67766b52da53ed8002347
<ide><path>daemon/cluster/convert/service.go <ide> func ServiceSpecToGRPC(s types.ServiceSpec) (swarmapi.ServiceSpec, error) { <ide> } <ide> case types.RuntimeNetworkAttachment: <ide> // NOTE(dperny) I'm leaving this case here for completeness. The actual <del> // code is left out out deliberately, as we should r...
2
Python
Python
check weight dimensions better in write_images
fdd822c03ed8eeb03e18de931d1694e10cc01ea1
<ide><path>keras/callbacks.py <ide> def set_model(self, model): <ide> tf.summary.histogram(weight.name, weight) <ide> if self.write_images: <ide> w_img = tf.squeeze(weight) <del> shape = w_img.get_shape() <del> ...
2
PHP
PHP
remove unused fixtures
59b638a1aa206ecacfc98f5b3b379d17bcc117c7
<ide><path>tests/Fixture/AccountFixture.php <del><?php <del>/** <del> * Short description for file. <del> * <del> * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html> <del> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <del> * <del> * Licensed under The MIT License ...
84
Javascript
Javascript
avoid tostring conversion in lookup
6dc697071e430631aeaba348245168fca1c56164
<ide><path>fonts.js <ide> var Fonts = { <ide> for (var i = 0; i < chars.length; ++i) { <ide> var ch = chars.charCodeAt(i); <ide> var uc = encoding[ch]; <del> if (typeof uc != "number") // we didn't convert the glyph yet <del> uc = encoding[ch] = GlyphsUnicode[uc]; <add> if (uc instanceo...
1
Go
Go
add rm-gocheck.go script and eg templates
8f64611c83fcd66aa99ddf5a4fa1d0b5ce0ddef1
<ide><path>rm-gocheck.go <add>// +build ignore <add> <add>package main <add> <add>import ( <add> "bufio" <add> "bytes" <add> "errors" <add> "flag" <add> "fmt" <add> "go/format" <add> "io/ioutil" <add> "os" <add> "os/exec" <add> "path/filepath" <add> "regexp" <add> "strings" <add> "sync" <add>) <add> <add>var ( <add> sh...
4
Python
Python
remove print statements from test
51eb190ef491743b788f940ff724a308d64675ba
<ide><path>spacy/tests/doc/test_doc_api.py <ide> def test_doc_api_runtime_error(en_tokenizer): <ide> if len(np) > 1: <ide> nps.append((np.start_char, np.end_char, np.root.tag_, np.text, np.root.ent_type_)) <ide> for np in nps: <del> print(np) <del> for word in doc: <del> ...
1
Python
Python
fix main failure after moto upgrade
f3f07574a61482fc9ca20e54fba594d3ceae72ef
<ide><path>setup.py <ide> def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version <ide> 'jira', <ide> 'jsondiff', <ide> 'mongomock', <del> 'moto[glue]>=3.1.0', <add> 'moto[glue]>=3.1.6', <ide> 'parameterized', <ide> 'paramiko', <ide> 'pipdeptree', <ide><path>tests/...
3
Javascript
Javascript
handle newline characters inside special tags
cc8755cda6efda0b52954388e8a8d5306e4bfbca
<ide><path>src/ngSanitize/sanitize.js <ide> function htmlParser(html, handler) { <ide> } <ide> <ide> } else { <del> html = html.replace(new RegExp("(.*)<\\s*\\/\\s*" + stack.last() + "[^>]*>", 'i'), <add> html = html.replace(new RegExp("([^]*)<\\s*\\/\\s*" + stack.last() + "[^>]*>", 'i'), <ide> ...
2
Text
Text
add note for loading env files during testing
62967fc667cef919e6af059dc906a62828f10f6f
<ide><path>docs/basic-features/environment-variables.md <ide> This one is useful when running tests with tools like `jest` or `cypress` where <ide> There is a small difference between `test` environment, and both `development` and `production` that you need to bear in mind: `.env.local` won't be loaded, as you expect t...
1
Javascript
Javascript
improve assertion message in test-dns-any
84836df1503467e53e22bdc0723897acc5d756c4
<ide><path>test/internet/test-dns-any.js <ide> TEST(async function test_google(done) { <ide> function validateResult(res) { <ide> const types = processResult(res); <ide> assert.ok( <del> types.A && types.AAAA && types.MX && <del> types.NS && types.TXT && types.SOA); <add> types.A && types.AAAA ...
1
Ruby
Ruby
use h1 for titles
3ec7b1cba359457cc232db456e460de6a92d7079
<ide><path>actionpack/lib/action_dispatch/routing.rb <ide> require 'action_controller/polymorphic_routes' <ide> <ide> module ActionDispatch <del> # == Routing <add> # = Routing <ide> # <ide> # The routing module provides URL rewriting in native Ruby. It's a way to <ide> # redirect incoming requests to controll...
1
Javascript
Javascript
add brackets for multiline if/for statements
2a9452e51b38b86503ba30a76c65f906b3f99728
<ide><path>lib/AmdMainTemplatePlugin.js <ide> class AmdMainTemplatePlugin { <ide> } <ide> <ide> mainTemplate.hooks.globalHashPaths.tap("AmdMainTemplatePlugin", paths => { <del> if (this.name) paths.push(this.name); <add> if (this.name) { <add> paths.push(this.name); <add> } <ide> return paths; <ide> ...
84
Javascript
Javascript
add tls benchmark for legacy securepair
c346cb6929b0ec1140e88234ab0185b67519186c
<ide><path>benchmark/tls/secure-pair.js <add>'use strict'; <add>const common = require('../common.js'); <add>const bench = common.createBenchmark(main, { <add> dur: [5], <add> securing: ['SecurePair', 'TLSSocket'], <add> size: [2, 1024, 1024 * 1024] <add>}); <add> <add>const fs = require('fs'); <add>const tls = requ...
2
Python
Python
fix bash command in performance test dag
a6434a528764910d1ed09b1e9e0eb56b9c70342e
<ide><path>scripts/perf/dags/elastic_dag.py <ide> class DagShape(Enum): <ide> <ide> elastic_dag_tasks = [ <ide> BashOperator( <del> task_id="__".join(["tasks", f"{i}_of_{TASKS_COUNT}"]), bash_command='echo test"', dag=dag <add> task_id="__".join(["tasks", f"{i}_of_{TASKS_COUNT}"]), ba...
1
PHP
PHP
remove extra period from docblock
669b118bba3e8feb4d9b97a50a88602bde471464
<ide><path>src/Illuminate/Auth/TokenGuard.php <ide> class TokenGuard implements Guard <ide> * <ide> * @param \Illuminate\Contracts\Auth\UserProvider $provider <ide> * @param \Illuminate\Http\Request $request <del> * @param. string $inputKey <add> * @param string $inputKey <ide> * @par...
1
Python
Python
add dag_run table
58519878bba9cf39f9abaf9a2cb016aa1b8f683e
<ide><path>airflow/migrations/versions/19054f4ff36_add_dagrun.py <add>"""add DagRun <add> <add>Revision ID: 19054f4ff36 <add>Revises: 338e90f54d61 <add>Create Date: 2015-10-12 09:55:52.475712 <add> <add>""" <add> <add># revision identifiers, used by Alembic. <add>revision = '19054f4ff36' <add>down_revision = '338e90f54...
2
Python
Python
suppress import errors for providers from sources
b5a786b38148295c492da8ab731d5e2f6f86ccf7
<ide><path>airflow/api_connexion/endpoints/provider_endpoint.py <ide> def _remove_rst_syntax(value: str) -> str: <ide> <ide> def _provider_mapper(provider: ProviderInfo) -> Provider: <ide> return Provider( <del> package_name=provider[1]["package-name"], <del> description=_remove_rst_syntax(provider[1...
5
Go
Go
remove some logs from tests
86970d00bbb9c5e3184fe4e3e7442fd0865c80ec
<ide><path>runtime_test.go <ide> func TestReloadContainerLinks(t *testing.T) { <ide> runningCount := 0 <ide> for _, c := range runtime2.List() { <ide> if c.State.Running { <del> t.Logf("Running container found: %v (%v)", c.ID, c.Path) <ide> runningCount++ <ide> } <ide> } <ide> func TestReloadContainerLinks(...
1
Javascript
Javascript
remove unused var
469b14a525aad1eb3a0013f9d02c943b649c3392
<ide><path>src/ng/compile.js <ide> function $CompileProvider($provide, $$sanitizeUriProvider) { <ide> // Add the matching elements into their slot <ide> forEach($compileNode.children(), function(node) { <ide> var slotName = slotNames[directiveNormalize(nodeName_(node))]; <del...
1
Text
Text
update streams wg charter
0a54b6a134a6815e30d1f78f8c8612d4a00399ad
<ide><path>WORKING_GROUPS.md <ide> The current members can be found in their <ide> <ide> ### Streams <ide> <del>The streams working group's purpose is to improve the existing Stream <del>implementation, in accordance with the communities needs and feedback. <del> <del>Its responsibilities are: <del>* Produce a living...
1
Text
Text
add information for incomingmessage.destroy()
4f2aec307e59dcdc90cb1170b59a2a941325561a
<ide><path>doc/api/http.md <ide> following additional events, methods, and properties. <ide> Indicates that the underlying connection was closed. <ide> Just like `'end'`, this event occurs only once per response. <ide> <add>### message.destroy([error]) <add> <add>* `error` {Error} <add> <add>Calls `destroy()` on the s...
1
Text
Text
add note about updating with fill-config
41292a1b847f64179bc97c8e13543f3a75110485
<ide><path>website/docs/usage/v3-1.md <ide> By default, components are updated in isolation during training, which means <ide> that they don't see the predictions of any earlier components in the pipeline. <ide> The new <ide> [`[training.annotating_components]`](/usage/training#annotating-components) <del>config settin...
1
Javascript
Javascript
fix spacebar scrolling in firefox (4224 follow-up)
4ee1fb795642b8f7c22b822df6716ee72b138d88
<ide><path>web/viewer.js <ide> window.addEventListener('keydown', function keydown(evt) { <ide> } <ide> // 32=Spacebar <ide> if (evt.keyCode === 32 && curElementTagName !== 'BUTTON') { <del>//#if !(FIREFOX || MOZCENTRAL) <add>//#if (FIREFOX || MOZCENTRAL) <ide> //// Workaround for issue in Firefox, th...
1
PHP
PHP
improve docblock example
5e3edad2cd55fdaa392a20a424dc7497d107e806
<ide><path>src/ORM/Table.php <ide> public function associations() { <ide> * as argument: <ide> * <ide> * {{{ <del> * $this->Comment->associations([ <add> * $this->Posts->associations([ <ide> * 'belongsTo' => [ <del> * 'Comments', <ide> * 'Users' => ['className' => 'App\Model\Table\UsersTable'] <ide> * ]...
1
Text
Text
update formula-cookbook.md gsub! example
e567d7f595eeed6e2bc4e905e45ddc7b7817bc44
<ide><path>docs/Formula-Cookbook.md <ide> inreplace "path", before, after <ide> <ide> ```ruby <ide> inreplace "path" do |s| <del> s.gsub! /foo/, "bar" <add> s.gsub!(/foo/, "bar") <ide> s.gsub! "123", "456" <ide> end <ide> ```
1
Javascript
Javascript
add [contenthash] support
296542ed79d8f466177ea7777f7f8a5c0b0e65fc
<ide><path>lib/Chunk.js <ide> class Chunk { <ide> this.files = []; <ide> this.rendered = false; <ide> this.hash = undefined; <add> this.contentHash = Object.create(null); <ide> this.renderedHash = undefined; <ide> this.chunkReason = undefined; <ide> this.extraAsync = false; <ide> class Chunk { <ide> <ide>...
10
PHP
PHP
throw better exceptions
58638216e89d8b33e0c0e9879564135ba53ca15f
<ide><path>laravel/asset.php <ide> protected function dependency_is_valid($asset, $dependency, $original, $assets) <ide> <ide> if ($dependency === $asset) <ide> { <del> throw new \Exception("Asset [$asset] is dependent on itself."); <add> throw new \LogicException("Asset [$asset] is dependent on itself."); <id...
23
Text
Text
fix sponsor images for mkdocs
2fe6709769048944127c8c48af4364101914e690
<ide><path>docs/topics/kickstarter-announcement.md <ide> We've now blazed way past all our goals, with a staggering £30,000 (~$50,000), <ide> Our platinum sponsors have each made a hugely substantial contribution to the future development of Django REST framework, and I simply can't thank them enough. <ide> <ide> <ul ...
1
Javascript
Javascript
allow wider regex in interface name
9cb72930e51ab86668943513981af3b363b60356
<ide><path>lib/internal/net.js <ide> const IPv6Reg = new RegExp('^(' + <ide> `(?:${v6Seg}:){2}(?:(:${v6Seg}){0,3}:${v4Str}|(:${v6Seg}){1,5}|:)|` + <ide> `(?:${v6Seg}:){1}(?:(:${v6Seg}){0,4}:${v4Str}|(:${v6Seg}){1,6}|:)|` + <ide> `(?::((?::${v6Seg}){0,5}:${v4Str}|(?::${v6Seg}){1,7}|:))` + <del>')(%[0-9a-zA-Z]{1,})...
2
Ruby
Ruby
fix the precedence issue here
56de4e9a8090e2e617a0d478d38c0fccfce7d725
<ide><path>actionpack/lib/action_dispatch/testing/integration.rb <ide> def process(method, path, parameters = nil, rack_environment = nil) <ide> :params => parameters, <ide> <ide> "SERVER_NAME" => hostname, <del> "SERVER_PORT" => port || https? ? "443" : "80", <add> ...
1
Text
Text
fix typo in changelogs
b88de12bfba91ad9e683cdac20dc3b9682689a0e
<ide><path>doc/changelogs/CHANGELOG_V12.md <ide> This is a security release. <ide> * **CVE-2021-22959**: HTTP Request Smuggling due to spaced in headers (Medium) <ide> * The http parser accepts requests with a space (SP) right after the header name before the colon. This can lead to HTTP Request Smuggling (HRS). More...
3
PHP
PHP
fix cs and add int as a numericrule
306d04cc04fa00d57cddac810b0f329af101d598
<ide><path>src/Illuminate/Validation/Validator.php <ide> class Validator implements ValidatorContract <ide> * <ide> * @var array <ide> */ <del> protected $numericRules = ['Numeric', 'Integer']; <add> protected $numericRules = ['Numeric', 'Integer', 'Int']; <ide> <ide> /** <ide> * The vali...
1
Javascript
Javascript
add transition.remove. better staged transitions
9f9255800a8f2fdc1840c2beffa57fdd0b11ad85
<ide><path>d3.js <del>d3 = {version: "0.16.2"}; // semver <add>d3 = {version: "0.17.0"}; // semver <ide> if (!Date.now) Date.now = function() { <ide> return +new Date(); <ide> }; <ide> function d3_descending(a, b) { <ide> } <ide> d3.transition = d3_root.transition; <ide> <del>var d3_transitionId = 0; <add>var d3_tra...
4
PHP
PHP
allow multiple request methods for uri
d29a12794815311c46518ede1a94e00198ee5efe
<ide><path>laravel/routing/router.php <ide> class Router { <ide> * <ide> * @var array <ide> */ <del> public static $fallback = array(); <add> public static $fallback = array( <add> 'GET' => array(), <add> 'POST' => array(), <add> 'PUT' => array(), <add> 'DELETE' => array(), <add> 'HEAD' => array(),...
1
Javascript
Javascript
use assert.strictequal instead of assert.equal
936ac681b2f5cf58cd2f1069ccc1720c7981e00e
<ide><path>test/pseudo-tty/test-tty-get-color-depth.js <ide> const writeStream = new WriteStream(fd); <ide> <ide> { <ide> const depth = writeStream.getColorDepth(); <del> assert.equal(typeof depth, 'number'); <add> assert.strictEqual(typeof depth, 'number'); <ide> assert(depth >= 1 && depth <= 24); <ide> } <ide>...
1
Text
Text
add mercari to the company list
4322d6dae3aa1366131a6b3c3e514369645b3ddd
<ide><path>README.md <ide> Currently **officially** using Airflow: <ide> 1. [Madrone](http://madroneco.com/) [[@mbreining](https://github.com/mbreining) & [@scotthb](https://github.com/scotthb)] <ide> 1. [Markovian](https://markovian.com/) [[@al-xv](https://github.com/al-xv), [@skogsbaeck](https://github.com/skogsbaeck...
1