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
Javascript
Javascript
remove more special code for ie8
5d695e5566212d93da0fc1281d5d39ffee0039a3
<ide><path>src/Angular.js <ide> function forEach(obj, iterator, context) { <ide> if (obj) { <ide> if (isFunction(obj)) { <ide> for (key in obj) { <del> // Need to check if hasOwnProperty exists, <del> // as on IE8 the result of querySelectorAll is an object without a hasOwnProperty function <d...
2
Text
Text
update determinant article
f9052e66b87c2c72621929d5d260318a53e84d5e
<ide><path>guide/english/mathematics/determinant-of-a-matrix/index.md <ide> title: Determinant of a Matrix <ide> --- <ide> ## Determinant of a Matrix <ide> <del>This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/mathematics/determinant-of-a-matrix/index.md' target='_blank' rel='nofol...
1
Python
Python
fix a typo
cdb7c87fd133b6e99916919b525e9d277a3913dd
<ide><path>libcloud/test/compute/test_ikoula.py <ide> from libcloud.test import unittest <ide> <ide> <del>class ExoscaleNodeDriverTestCase(CloudStackCommonTestCase, unittest.TestCase): <add>class IkoulaNodeDriverTestCase(CloudStackCommonTestCase, unittest.TestCase): <ide> driver_klass = IkoulaNodeDriver <ide> <i...
1
Go
Go
fix ndots configuration
78627b6f14cf68345b621ed148602bf540f4ceae
<ide><path>libnetwork/sandbox_dns_unix.go <ide> func (sb *sandbox) rebuildDNS() error { <ide> dnsOpt: <ide> for _, resOpt := range resOptions { <ide> if strings.Contains(resOpt, "ndots") { <del> for _, option := range dnsOptionsList { <add> for i, option := range dnsOptionsList { <ide> if strings.Contains(op...
1
Python
Python
update tis with a proper lock
3caa539092d3a4196083d1db829fa1ed7d83fa95
<ide><path>airflow/jobs/scheduler_job.py <ide> def _change_state_for_tis_without_dagrun( <ide> # We need to do this for mysql as well because it can cause deadlocks <ide> # as discussed in https://issues.apache.org/jira/browse/AIRFLOW-2516 <ide> if self.using_sqlite or self.using_mysql: <del> ...
1
Javascript
Javascript
add example for touchableopacity.js
fa1b533c56b5e25fead69adda932a276e7e0fafd
<ide><path>Libraries/Components/Touchable/TouchableOpacity.js <ide> var PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30}; <ide> * ); <ide> * }, <ide> * ``` <add> * ### Example <add> * <add> * ```ReactNativeWebPlayer <add> * import React, { Component } from 'react' <add> * import { <add> * AppR...
1
PHP
PHP
add additional documentation for `ids` option
ee8436b2abc9b799d5fcc2314bd3405f0738394c
<ide><path>src/ORM/Marshaller.php <ide> protected function _buildPropertyMap($options) <ide> /** <ide> * Hydrate one entity and its associated data. <ide> * <del> * When marshalling HasMany or BelongsToMany associations, `_ids` format can be used. <del> * `ids` option can also be used to determine...
1
PHP
PHP
fix unauthenticated return docblock
b02b368a732aefbcdc2a739800880334ed247d11
<ide><path>src/Illuminate/Foundation/Exceptions/Handler.php <ide> protected function prepareException(Exception $e) <ide> * <ide> * @param \Illuminate\Http\Request $request <ide> * @param \Illuminate\Auth\AuthenticationException $exception <del> * @return \Illuminate\Http\Response <add> * @re...
1
Python
Python
remove duplicate entry in __all__
1434cadef35c24f6a1d62b7f9c81383089ebf02c
<ide><path>celery/worker/state.py <ide> __all__ = [ <ide> 'SOFTWARE_INFO', 'reserved_requests', 'active_requests', <ide> 'total_count', 'revoked', 'task_reserved', 'maybe_shutdown', <del> 'task_accepted', 'task_reserved', 'task_ready', 'Persistent', <add> 'task_accepted', 'task_ready', 'Persistent', <ide>...
1
Javascript
Javascript
fix coding style in src/core/chunked_stream.js
53bbdcb0a1e85b1746046018eebf9f5941d17966
<ide><path>src/core/chunked_stream.js <ide> var ChunkedStream = (function ChunkedStreamClosure() { <ide> return this.numChunksLoaded === this.numChunks; <ide> }, <ide> <del> onReceiveData: function(begin, chunk) { <add> onReceiveData: function ChunkedStream_onReceiveData(begin, chunk) { <ide> var...
1
Python
Python
return group_id as well
ef952650c41519c6363362d2740cd384535f2d27
<ide><path>libcloud/compute/drivers/ec2.py <ide> def ex_list_security_groups(self): <ide> namespace=NAMESPACE): <ide> name = findtext(element=group, xpath='groupName', <ide> namespace=NAMESPACE) <del> groups.append(name) <add> id...
1
Text
Text
add a note rather than repeating the full command
f717f6bf7ef4f9b6e95932744ac89e07ed0f0c52
<ide><path>street/README.md <ide> sudo pip install numpy <ide> <ide> Build the LSTM op: <ide> <del>Linux <ide> ``` <ide> cd cc <ide> TF_INC=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())') <ide> g++ -std=c++11 -shared rnn_ops.cc -o rnn_ops.so -fPIC -I $TF_INC -O3 -mavx <ide> ``` <del>Mac <del...
1
Javascript
Javascript
support more options in startup benchmark
1698fc96af2d58dce414cd22b7d9898f30efde3e
<ide><path>benchmark/fixtures/require-cachable.js <add>'use strict'; <add> <add>const list = require('internal/bootstrap/cache'); <add>const { <add> isMainThread <add>} = require('worker_threads'); <add> <add>for (const key of list.cachableBuiltins) { <add> if (!isMainThread && key === 'trace_events') { <add> cont...
3
Ruby
Ruby
fix tap regex
52de3f9d8d6c5bf6ed193d643c23e35f143c6cd6
<ide><path>Library/Homebrew/dev-cmd/extract.rb <ide> def extract_args <ide> def extract <ide> args = extract_args.parse <ide> <del> if args.named.first =~ HOMEBREW_TAP_FORMULA_REGEX <del> name = Regexp.last_match(3).downcase <del> source_tap = Tap.fetch(Regexp.last_match(1), Regexp.last_match(2)) <a...
1
Text
Text
correct old virtual size
1ab7d76f30f3cf693c986eb827ad49a6554d806d
<ide><path>docs/reference/commandline/commit.md <ide> created. Supported `Dockerfile` instructions: <ide> $ docker commit c3f279d17e0a svendowideit/testimage:version3 <ide> f5283438590d <ide> $ docker images <del> REPOSITORY TAG ID CREATED ...
9
Python
Python
expand error message
2700ba66d9bbf83218c9e4de5effdadf36b48842
<ide><path>src/transformers/utils/hub.py <ide> def move_cache(cache_dir=None, new_cache_dir=None, token=None): <ide> except Exception as e: <ide> trace = "\n".join(traceback.format_tb(e.__traceback__)) <ide> logger.error( <del> f"There was a problem when trying to move your cache:\n\n{tra...
1
Go
Go
adjust test to match its comment
95bcb8924ac2cbe0fb625a604d2c6d5a8e2fa06a
<ide><path>networkdriver/network_test.go <ide> func TestNetworkOverlaps(t *testing.T) { <ide> //netY starts before and ends at same IP of netX <ide> AssertOverlap("172.16.1.1/24", "172.16.0.1/23", t) <ide> //netY starts before and ends outside of netX <del> AssertOverlap("172.16.1.1/24", "172.16.0.1/23", t) <add> As...
1
Go
Go
try other port on any error from map
a00a1a1fca020d21cb677439160e018bda5c3835
<ide><path>daemon/networkdriver/bridge/driver.go <ide> import ( <ide> log "github.com/Sirupsen/logrus" <ide> "github.com/docker/docker/daemon/networkdriver" <ide> "github.com/docker/docker/daemon/networkdriver/ipallocator" <del> "github.com/docker/docker/daemon/networkdriver/portallocator" <ide> "github.com/docker/...
2
Python
Python
correct greedy generation when doing beam search
2fdc7f6ce8e15793568645b46e4badf7dbe4ecd8
<ide><path>src/transformers/modeling_utils.py <ide> def generate( <ide> else: <ide> assert input_ids.dim() == 2, "Input prompt should be of shape (batch_size, sequence length)." <ide> <add> if do_sample is False: <add> if num_beams == 1: <add> # no_beam_search greed...
2
Ruby
Ruby
add headversion tests
00cdd5f481d409b1874b95c7f149c717ffb0259f
<ide><path>Library/Homebrew/test/test_versions.rb <ide> def test_comparing_regular_versions <ide> <ide> def test_HEAD <ide> assert_operator version("HEAD"), :>, version("1.2.3") <add> assert_operator version("HEAD-abcdef"), :>, version("1.2.3") <ide> assert_operator version("1.2.3"), :<, version("HEAD") <...
2
Ruby
Ruby
use xquartz when present
a07085df2def6bc25ee0d118e86b10e49c68aab0
<ide><path>Library/Homebrew/extend/ENV.rb <ide> def libxml2 <ide> def x11 <ide> opoo "You do not have X11 installed, this formula may not build." unless MacOS.x11_installed? <ide> <del> if MacOS.clt_installed? <del> # For Xcode < 4.3 clt_installed? is true. So here is the old style /usr/X11: <del> #...
2
Javascript
Javascript
fix scrollview static viewconfigs
922219a852b7101acef54c8a9e97dad27fabfbec
<ide><path>Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js <ide> export const __INTERNAL_VIEW_CONFIG: PartialViewConfig = { <ide> removeClippedSubviews: true, <ide> borderTopRightRadius: true, <ide> borderLeftColor: {process: require('../../StyleSheet/processColor')}, <add> ...
2
Text
Text
formalize `auto` usage in c++ style guide
aba7677e826065fc1f1025ee2db5faee035fd515
<ide><path>CPP_STYLE_GUIDE.md <ide> * [Ownership and Smart Pointers](#ownership-and-smart-pointers) <ide> * [Others](#others) <ide> * [Type casting](#type-casting) <add> * [Using `auto`](#using-auto) <ide> * [Do not include `*.h` if `*-inl.h` has already been included](#do-not-include-h-if--inlh-has-already-been...
1
Mixed
Javascript
modify getreport() to return an object
bff7a46f31f1da259071a1f4bd51aca726d5926e
<ide><path>doc/api/process.md <ide> added: v11.8.0 <ide> --> <ide> <ide> * `err` {Error} A custom error used for reporting the JavaScript stack. <del>* Returns: {string} <add>* Returns: {Object} <ide> <del>Returns a JSON-formatted diagnostic report for the running process. The report's <del>JavaScript stack trace is ...
7
Java
Java
remove duplicate checks in responsecookietests
4aa013c5083fa1ccc1ca5ea77b43d4d41fb6a8be
<ide><path>spring-web/src/test/java/org/springframework/http/ResponseCookieTests.java <ide> public void domainChecks() { <ide> Arrays.asList("abc", "abc.org", "abc-def.org", "abc3.org", ".abc.org") <ide> .forEach(domain -> ResponseCookie.from("n", "v").domain(domain).build()); <ide> <del> Arrays.asList("-abc.or...
1
Javascript
Javascript
fix double semicolon
962c7582ff47a67ba2021ea1010e487a3728ad2f
<ide><path>test/ContextDependencyTemplateAsId.test.js <ide> describe("ContextDependencyTemplateAsId", () => { <ide> <ide> it("replaces source with missing module error", () => { <ide> env.source.replace.callCount.should.be.exactly(1); <del> sinon.assert.calledWith(env.source.replace, 1, 24, '!(function webpa...
1
Text
Text
add the actual command in this example
d8d38f234563a3be0b23cc94df3a9453eacfdee8
<ide><path>docs/userguide/networkingcontainers.md <ide> The network named `bridge` is a special network. Unless you tell it otherwise, D <ide> Inspecting the network is an easy way to find out the container's IP address. <ide> <ide> ```bash <add>$ docker network inspect bridge <ide> [ <ide> { <ide> "Name":...
1
Python
Python
fix lint issues
7522e4dc3bb7678ee800d13ce615f863d8a3fcbd
<ide><path>official/resnet/keras/resnet_cifar_model.py <ide> from __future__ import division <ide> from __future__ import print_function <ide> <del>import warnings <del> <ide> import tensorflow as tf <add>from tensorflow.python.keras import backend <add>from tensorflow.python.keras import layers <ide> <ide> <ide> BA...
1
Mixed
Ruby
keep part when scope option has value
fb9117e190e39872fff7ae5d6b96bfb26ef8b32c
<ide><path>actionpack/CHANGELOG.md <add>* Keep part when scope option has value <add> <add> When a route was defined within an optional scope, if that route didn't <add> take parameters the scope was lost when using path helpers. This commit <add> ensures scope is kept both when the route takes parameters or...
5
Javascript
Javascript
remove log info when turbomodule cannot be found
8a5ee96354a8e6f785e207c7e81f3ea6cb8ed29b
<ide><path>Libraries/TurboModule/TurboModuleRegistry.js <ide> function requireModule<T: TurboModule>(name: string): ?T { <ide> <ide> if (turboModuleProxy != null) { <ide> const module: ?T = turboModuleProxy(name); <del> if (module == null) { <del> // Common fixes: Verify the TurboModule is registered in ...
1
Ruby
Ruby
start generalization of uploaders
3e8c6c8e67b8296b013c535e6d46da6238345236
<ide><path>Library/Homebrew/cmd/test-bot.rb <ide> def test_bot <ide> ENV['HOMEBREW_LOGS'] = "#{Dir.pwd}/logs" <ide> end <ide> <del> if ARGV.include? '--ci-pr-upload' or ARGV.include? '--ci-testing-upload' <add> if ARGV.include? '--ci-upload' or ARGV.include? '--ci-pr-upload' or ARGV.include? '--ci-test...
1
Javascript
Javascript
fix the arguments order in assert.strictequal
d12d023df43084d118ab196054fac57ec1dfb81a
<ide><path>test/parallel/test-fs-write-string-coerce.js <ide> fs.open(fn, 'w', 0o644, common.mustCall(function(err, fd) { <ide> fs.write(fd, data, 0, 'utf8', common.mustCall(function(err, written) { <ide> console.log('write done'); <ide> assert.ifError(err); <del> assert.strictEqual(Buffer.byteLength(expec...
1
Ruby
Ruby
remove duplicate html_escape docs
9147613ce09710e70790ac45d3b20c3ef6c1fa46
<ide><path>activesupport/lib/active_support/core_ext/string/output_safety.rb <ide> def html_escape(s) <ide> end <ide> end <ide> else <del> # A utility method for escaping HTML tag characters. <del> # This method is also aliased as <tt>h</tt>. <del> # <del> # In your ERB templates, ...
1
Ruby
Ruby
add alias info for runner command
d0355ed5a9d137456d0c3f574894732fe66811e7
<ide><path>railties/lib/rails/commands.rb <ide> benchmarker See how fast a piece of code runs <ide> profiler Get profile information from a piece of code <ide> plugin Install a plugin <del> runner Run a piece of code in the application environment <add> runner Run a piece of code in the applic...
1
Ruby
Ruby
fix rubocop warnings
219c373115dea67d7753ab51e1e95f5f41e8e9f8
<ide><path>Library/Homebrew/test/test_dependency_collector.rb <ide> def find_dependency(name) <ide> end <ide> <ide> def find_requirement(klass) <del> @d.requirements.find { |req| klass === req } <add> @d.requirements.find { |req| req.is_a? klass } <ide> end <ide> <ide> def setup
1
Text
Text
use correct folder name
c9e498f36fd110c7308f05dff88bd60b6bd9db11
<ide><path>docs/creating-a-package.md <ide> key mappings your package needs to load. If not specified, mappings in the <ide> _keymaps_ directory are added alphabetically. <ide> - `menus`(**Optional**): an Array of Strings identifying the order of <ide> the menu mappings your package needs to load. If not specified, map...
1
Ruby
Ruby
specify protocol for external links
61f157e11c4e04a67f888848cda6bdbe7b46c466
<ide><path>activesupport/lib/active_support/json/decoding.rb <ide> module JSON <ide> <ide> class << self <ide> # Parses a JSON string (JavaScript Object Notation) into a hash. <del> # See www.json.org for more info. <add> # See http://www.json.org for more info. <ide> # <ide> # Ac...
2
Javascript
Javascript
remove unused variables
517811764d3a37806f3e5c4f0c6ca6527e2c189c
<ide><path>test/widget/inputSpec.js <ide> describe('widget: input', function() { <ide> })); <ide> <ide> it('should throw an error of Controller not declared in scope', inject(function($rootScope, $compile) { <del> var input, $formFactory; <add> var input; <ide> var element = angular.element('<i...
1
PHP
PHP
convert the socket class to use the config trait
c1efe239a9cf9b76287f608a6784bb6c26f30aee
<ide><path>src/Network/Socket.php <ide> */ <ide> namespace Cake\Network; <ide> <add>use Cake\Core\InstanceConfigTrait; <ide> use Cake\Error; <ide> use Cake\Validation\Validation; <ide> <ide> */ <ide> class Socket { <ide> <add> use InstanceConfigTrait; <add> <ide> /** <ide> * Object description <ide> * <ide> clas...
2
Go
Go
extract container store from the daemon
3c82fad44112dc73861f325bbecd68b9922b0ad3
<add><path>container/history.go <del><path>daemon/history.go <del>package daemon <add>package container <ide> <del>import ( <del> "sort" <del> <del> "github.com/docker/docker/container" <del>) <add>import "sort" <ide> <ide> // History is a convenience type for storing a list of containers, <del>// ordered by creation...
10
Javascript
Javascript
catch all requests in custom server
53f4f82e4c69fc9fcdd98d9c952ab0ff97665fa7
<ide><path>examples/custom-server-express/server.js <ide> app.prepare().then(() => { <ide> return app.render(req, res, '/posts', { id: req.params.id }) <ide> }) <ide> <del> server.get('*', (req, res) => { <add> server.all('*', (req, res) => { <ide> return handle(req, res) <ide> }) <ide> <ide><path>examp...
5
Javascript
Javascript
remove first arg from intercepted fn
6530310ed59c1056aa71c17133b5dbee87e2415c
<ide><path>lib/domain.js <ide> Domain.prototype.bind = function(cb, interceptError) { <ide> // slower for less common case: cb(er, foo, bar, baz, ...) <ide> args = new Array(len - 1); <ide> for (var i = 1; i < len; i++) { <del> args[i] = arguments[i - 1]; <add> args[i...
2
Python
Python
fix tests + first example of doc
31e5b5ff2276c61af7eebb4c353934f8f675d728
<ide><path>transformers/tokenization_utils.py <ide> def from_pretrained(cls, *inputs, **kwargs): <ide> pretrained_model_name_or_path: either: <ide> <ide> - a string with the `shortcut name` of a predefined tokenizer to load from cache or download, e.g.: ``bert-base-uncased``. <add> ...
1
Javascript
Javascript
fix document title syncing
c4ba7ac46a04a1b6f838aa4f2a196c4da81011bd
<ide><path>client/sagas/title-saga.js <ide> // () => <ide> // (next: (action: Action) => Object) => <ide> // titleSage(action: Action) => Object|Void <del>export default (doc) => () => next => { <add>export default ({ doc }) => ({ getState }) => next => { <ide> return function titleSage(action) { <ide> ...
1
Go
Go
remove aliases for deprecated pkg/pubsub
76ce3fd9c941f5222d515f4ae8c459cecd4aa614
<ide><path>pkg/pubsub/publisher.go <del>package pubsub // import "github.com/docker/docker/pkg/pubsub" <del> <del>import "github.com/moby/pubsub" <del> <del>// NewPublisher creates a new pub/sub publisher to broadcast messages. <del>// The duration is used as the send timeout as to not block the publisher publishing <d...
1
Text
Text
fix the description for the `select_all` [ci skip]
0efc132a8153dbaf0951ce55457abe43dd5a309b
<ide><path>guides/source/active_record_querying.md <ide> Client.find_by_sql("SELECT * FROM clients <ide> <ide> ### `select_all` <ide> <del>`find_by_sql` has a close relative called `connection#select_all`. `select_all` will retrieve objects from the database using custom SQL just like `find_by_sql` but will not insta...
1
Javascript
Javascript
use larger buffer in net-error-twice
9479399d3b42f5e35715ebbc73b2c120db430bd9
<ide><path>test/simple/test-net-error-twice.js <ide> var common = require('../common'); <ide> var assert = require('assert'); <ide> var net = require('net'); <ide> <del>var buf = new Buffer(2 * 1024 * 1024); <add>var buf = new Buffer(10 * 1024 * 1024); <ide> <ide> buf.fill(0x62); <ide>
1
Mixed
Ruby
add negative scopes for all enum values
55a7051a5a2935c0ced79afc5c81ef7db9e0dd73
<ide><path>activerecord/CHANGELOG.md <add>* Add negative scopes for all enum values. <add> <add> Example: <add> <add> class Post < ActiveRecord::Base <add> enum status: %i[ drafted active trashed ] <add> end <add> <add> Post.not_drafted # => where.not(status: :drafted) <add> ...
3
Javascript
Javascript
fix challenge ordering
ad93e49b7d7f22d6cb3f112565d8a4f70b7cdcb0
<ide><path>server/services/map.js <ide> function cachedMap(Block) { <ide> }, {}) <ide> .map(map => normalize(map, mapSchema)) <ide> .map(map => { <add> // make sure challenges are in the right order <add> map.entities.block = Object.keys(map.entities.block) <add> // turn map into array <add...
1
Go
Go
add check for memoryswap when create
72f356be6a662ed92e04ba9c58acac63c5a15264
<ide><path>daemon/create.go <ide> func (daemon *Daemon) ContainerCreate(job *engine.Job) engine.Status { <ide> if config.Memory > 0 && config.MemorySwap > 0 && config.MemorySwap < config.Memory { <ide> return job.Errorf("Minimum memoryswap limit should be larger than memory limit, see usage.\n") <ide> } <add> if co...
1
Javascript
Javascript
consolidate buffer.read() in a file
8a25e31fbe8e18ae66ca919be8e208309552dac9
<ide><path>test/parallel/test-buffer-alloc.js <ide> assert.throws(() => Buffer.alloc(8).writeFloatLE(0, 5), RangeError); <ide> assert.throws(() => Buffer.alloc(16).writeDoubleLE(0, 9), RangeError); <ide> <ide> // attempt to overflow buffers, similar to previous bug in array buffers <del>assert.throws(() => Buffer.allo...
3
Python
Python
fix loading lstm weights without bias
dea301923dfce820701818214965f0acb82907a3
<ide><path>keras/engine/topology.py <ide> def preprocess_weights_for_loading(layer, weights, <ide> weights[1] = np.transpose(weights[1], (3, 2, 0, 1)) <ide> <ide> # convert the weights of CuDNNLSTM so that they could be loaded into LSTM <del> if layer.__class__.__name__ == 'LSTM': <add> if la...
2
Text
Text
add russian translation of some parts
86e5463f0b861e51bdd610ed0b26c346e3ec1f31
<ide><path>curriculum/challenges/russian/03-front-end-libraries/react/create-a-stateless-functional-component.russian.md <ide> localeTitle: Создание функционального компонент <ide> --- <ide> <ide> ## Description <del>undefined <add>Компоненты - это ядро React. Всё в React является компонентом, и здесь вы научитесь, ка...
1
Javascript
Javascript
clarify documentation for $broadcast
bffe6fa8a60d2b42685c56442a02e0881f00d810
<ide><path>src/ng/rootScope.js <ide> function $RootScopeProvider(){ <ide> * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed <ide> * onto the {@link ng.$exceptionHandler $exceptionHandler} service. <ide> * <del> * @param {string} name Event name to emit....
1
Ruby
Ruby
remove autoload to unused constant
fff5567803a575b54db5200edf648eea0b020e08
<ide><path>activejob/lib/active_job.rb <ide> module ActiveJob <ide> <ide> autoload :TestCase <ide> autoload :TestHelper <del> autoload :QueryTags <ide> end
1
Java
Java
add allowedoriginpatterns to sockjs config
ae75db265704103eab8bad8ca388d2d1cd9ed846
<ide><path>spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/SockJsServiceRegistration.java <ide> public class SockJsServiceRegistration { <ide> <ide> private final List<String> allowedOrigins = new ArrayList<>(); <ide> <add> private final List<String> allowedOriginPatterns = new ArrayL...
6
Python
Python
update documentation docstring embedding
39357b3045fd73a066b93ccfff2d16763e211b40
<ide><path>keras/layers/embeddings.py <ide> class Embedding(Layer): <ide> model = Sequential() <ide> model.add(Embedding(1000, 64, input_length=10)) <ide> # the model will take as input an integer matrix of size (batch, input_length). <del> # the largest integer (i.e. word index) in the input sho...
1
Ruby
Ruby
support postgresql 10 `pg_sequence`
47cb924d9122fc00deeb9aa4db7a92685ae9e7ef
<ide><path>activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb <ide> def reset_pk_sequence!(table, pk = nil, sequence = nil) #:nodoc: <ide> <ide> if pk && sequence <ide> quoted_sequence = quote_table_name(sequence) <add> max_pk = select_value("select MAX(...
1
Python
Python
avoid excessive data copy in resultset.join_native
b7f77a45e48e4d4ad3d5446a813279751169391c
<ide><path>celery/result.py <ide> def join_native(self, timeout=None, propagate=True, <ide> result backends. <ide> <ide> """ <del> results_index = dict( <add> results_index = None if callback else dict( <ide> (task_id, i) for i, task_id in enumerate(self.results) <ide> ...
1
Python
Python
add sin function to maths
80f1da235b0a467dc9b31aa8a56dd3a792a59d7c
<ide><path>maths/sin.py <add>""" <add>Calculate sin function. <add> <add>It's not a perfect function so I am rounding the result to 10 decimal places by default. <add> <add>Formula: sin(x) = x - x^3/3! + x^5/5! - x^7/7! + ... <add>Where: x = angle in randians. <add> <add>Source: <add> https://www.homeschoolmath.net/...
1
Text
Text
update shallow routing docs
2b1f959b7d5ad980f8903cbb648d3d2f134b0195
<ide><path>docs/routing/shallow-routing.md <ide> description: You can use shallow routing to change the URL without triggering a <ide> </ul> <ide> </details> <ide> <del>Shallow routing allows you to change the URL without running [`getInitialProps`](/docs/api-reference/data-fetching/getInitialProps.md). <add>Shallow...
1
Ruby
Ruby
create method for accessing xcode version
f8127143cfdf44345853ef9292c9e08035324fff
<ide><path>Library/Homebrew/cmd/--config.rb <ide> def gcc_40 <ide> end <ide> <ide> def xcode_version <del> `xcodebuild -version 2>&1` =~ /Xcode (\d(\.\d)*)/ <del> $1 <add> @xcode_version || MacOS.xcode_version <ide> end <ide> <ide> def llvm_recommendation <ide><path>Library/Homebrew/utils.rb <ide> de...
2
Java
Java
fix javadoc in acceptheaderlocaleresolver
f03ccd5cc98e94cf528c9b46cea687af8f59487a
<ide><path>spring-webmvc/src/main/java/org/springframework/web/servlet/i18n/AcceptHeaderLocaleResolver.java <ide> /* <del> * Copyright 2002-2020 the original author or authors. <add> * Copyright 2002-2021 the original author or authors. <ide> * <ide> * Licensed under the Apache License, Version 2.0 (the "License"); <...
1
Python
Python
add some missing notes to array_api
b5ac835f2e1d1188d2f0ab961cadbb74e1e488d0
<ide><path>numpy/array_api/_sorting_functions.py <ide> import numpy as np <ide> <ide> <add># Note: the descending keyword argument is new in this function <ide> def argsort( <ide> x: Array, /, *, axis: int = -1, descending: bool = False, stable: bool = True <ide> ) -> Array: <ide> def argsort( <ide> res =...
1
Javascript
Javascript
fix layout tests
8578ade9755a3ddf4e9436e89e09502f1bae9d83
<ide><path>packages/ember-views/tests/views/view/layout_test.js <ide> import Registry from "container/registry"; <ide> import { get } from "ember-metal/property_get"; <ide> import run from "ember-metal/run_loop"; <ide> import EmberView from "ember-views/views/view"; <add>import { compile } from "ember-template-compiler...
1
Ruby
Ruby
resolve multi-level gcc symlinks
f437c9040b08d1950aeaedb8417e22752b285c25
<ide><path>Library/Homebrew/extend/ENV.rb <ide> def gcc args = {} <ide> @compiler = :gcc <ide> <ide> raise "GCC could not be found" if args[:force] and not File.exist? ENV['CC'] \ <del> or (File.symlink? ENV['CC'] \ <del> and File.readlink(ENV...
1
Go
Go
remove use of deprecated dial.dualstack
ff408210da8ebcb6d3c333b6270b921442bcc1da
<ide><path>distribution/registry.go <ide> func NewV2Repository( <ide> direct := &net.Dialer{ <ide> Timeout: 30 * time.Second, <ide> KeepAlive: 30 * time.Second, <del> DualStack: true, <ide> } <ide> <ide> // TODO(dmcgowan): Call close idle connections when complete, use keep alive <ide><path>registry/registry...
2
Mixed
Ruby
fix incorrect class name [ci skip]
5e87e1faf646fed6139650f2a3adb13a3d09ccd9
<ide><path>actionpack/lib/action_controller/metal/strong_parameters.rb <ide> def hash_filter(params, filter) <ide> # <ide> # class PeopleController < ActionController::Base <ide> # # Using "Person.create(params[:person])" would raise an <del> # # ActiveModel::ForbiddenAttributes exception because it'd ...
2
PHP
PHP
remove useless option from isunique rule
eed8df1ebdd918ddfc5a395e2587ba1dace3f6d2
<ide><path>src/ORM/Rule/IsUnique.php <ide> class IsUnique <ide> /** <ide> * Constructor. <ide> * <del> * ### Options <del> * <del> * - `allowMultipleNulls` Set to false to disallow multiple null values in <del> * multi-column unique rules. By default this is `true` to emulate how SQL UNI...
3
PHP
PHP
extract files from json data in test helper
a82df4e4b88eb548e899bc73bd7270d4301c59d9
<ide><path>src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php <ide> use Illuminate\Http\Request; <ide> use Illuminate\Contracts\View\View; <ide> use PHPUnit_Framework_Assert as PHPUnit; <add>use Symfony\Component\HttpFoundation\File\UploadedFile as SymfonyUploadedFile; <ide> <ide> trait MakesHttpRequests...
1
Text
Text
harmonize yaml comments style in deprecations.md
4cc06922dcf2d9a2afacc5ff3fe2b5c5fff71517
<ide><path>doc/api/deprecations.md <ide> changes: <ide> pr-url: https://github.com/nodejs/node/pull/31164 <ide> description: End-of-Life. <ide> - version: <del> - v4.8.6 <ide> - v6.12.0 <add> - v4.8.6 <ide> pr-url: https://github.com/nodejs/node/pull/10116 <ide> description: A deprecation co...
1
Python
Python
fix wrong error message in `load_model`
e21c1fa7d39df780c44ff53247c68cc3892a4d2b
<ide><path>keras/models.py <ide> def load_model(filepath, custom_objects=None): <ide> ValueError: In case of an invalid savefile. <ide> """ <ide> if h5py is None: <del> raise ImportError('`save_model` requires h5py.') <add> raise ImportError('`load_model` requires h5py.') <ide> <ide> ...
1
PHP
PHP
remove new password validation from broker
88ec20dbaac61453f1f48e4013af3b3d96ad0729
<ide><path>src/Illuminate/Auth/Passwords/PasswordBroker.php <ide> class PasswordBroker implements PasswordBrokerContract <ide> */ <ide> protected $users; <ide> <del> /** <del> * The custom password validator callback. <del> * <del> * @var \Closure <del> */ <del> protected $passwordValida...
3
Javascript
Javascript
increase max listener limit on ipcrenderer
a4dc088ceb6b39f59ef4ba8c518c387ce8659b4f
<ide><path>src/ipc-helpers.js <ide> exports.on = function (emitter, eventName, callback) { <ide> exports.call = function (channel, ...args) { <ide> if (!ipcRenderer) { <ide> ipcRenderer = require('electron').ipcRenderer <add> ipcRenderer.setMaxListeners(20) <ide> } <ide> <ide> var responseChannel = getRes...
1
Javascript
Javascript
add missing events to viewproptypes
41a940392cea497bc5eb627b24083d0211d1eb89
<ide><path>Libraries/Components/View/ViewPropTypes.js <ide> const stylePropType = StyleSheetPropType(ViewStylePropTypes); <ide> export type ViewLayout = Layout; <ide> export type ViewLayoutEvent = LayoutEvent; <ide> <add>type DirectEventProps = $ReadOnly<{| <add> onAccessibilityAction?: Function, <add> onAccessibili...
1
Javascript
Javascript
add test cases with many exports
ccf32f214e41db34430ade7e73dd6b2ed58307b1
<ide><path>test/cases/optimize/many-exports-100/chunk1.js <add>import { <add> x00, <add> x01, <add> x02, <add> x03, <add> x04, <add> x05, <add> x06, <add> x07, <add> x08, <add> x09, <add> x10, <add> x11, <add> x12, <add> x13, <add> x14, <add> x15, <add> x16, <add> x17, <add> x18, <add> x19, <add> x20, <add> x21, <add> ...
12
Javascript
Javascript
use numeric module ids for ios ra-bundles
bff0b1f9d65c25fea67294773ce91c47452eac56
<ide><path>local-cli/bundle/output/unbundle/as-indexed-file.js <ide> function writeBuffers(stream, buffers) { <ide> }); <ide> } <ide> <del>function moduleToBuffer(name, code, encoding) { <add>function moduleToBuffer(id, code, encoding) { <ide> return { <del> name, <add> id, <ide> linesCount: code.split('...
1
PHP
PHP
call parent boot
ad695e20bc1a616737295211575b0709bbf7dd44
<ide><path>app/Providers/EventServiceProvider.php <ide> class EventServiceProvider extends ServiceProvider { <ide> */ <ide> public function boot(DispatcherContract $events) <ide> { <add> parent::boot($events); <add> <ide> // <ide> } <ide>
1
PHP
PHP
set $options as an empty array per default
2cb7711ed9179d3bb34b3860a0ebc9319c610da7
<ide><path>src/Illuminate/Database/Eloquent/Model.php <ide> protected function finishSave(array $options) <ide> * Perform a model update operation. <ide> * <ide> * @param \Illuminate\Database\Eloquent\Builder $query <add> * @param array $options <ide> * @return bool|null <ide> */ <del> protected function...
1
Text
Text
move new changelog entry to the top [ci skip]
41f8a9a03a495e0cdad93515b3b0ed25d494654c
<ide><path>activesupport/CHANGELOG.md <add>* Fixed bug in `DateAndTime::Compatibility#to_time` that caused it to <add> raise `RuntimeError: can't modify frozen Time` when called on any frozen `Time`. <add> Properly pass through the frozen `Time` or `ActiveSupport::TimeWithZone` object <add> when calling `#to...
1
Python
Python
attempt workaround 2 for pylint bug on travis ci
83f92914771f76ea67475b63ce2a45eeb9735e46
<ide><path>libcloud/common/dimensiondata.py <ide> from base64 import b64encode <ide> from time import sleep <ide> <del>from distutils.version import LooseVersion # pylint: disable=import-error <add>from distutils.version import LooseVersion # pylint: disable-msg=E0611 <ide> from libcloud.utils.py3 import httplib <id...
1
Ruby
Ruby
remove duplicate frozen_string_literal comment
2c35dce71cf16eb8e72bde174d6b52a8ec6b9739
<ide><path>activesupport/lib/active_support/core_ext/range/include_time_with_zone.rb <ide> # frozen_string_literal: true <ide> <del># frozen_string_literal: true <del> <ide> ActiveSupport::Deprecation.warn(<<-MSG.squish) <ide> `active_support/core_ext/range/include_time_with_zone` is deprecated and will be removed i...
1
Javascript
Javascript
add coverage for utf8checkincomplete()
48f88696858bd353f3471c7c8b161b2e23f7660b
<ide><path>test/parallel/test-string-decoder.js <ide> assert.strictEqual(decoder.write(Buffer.from('F1', 'hex')), ''); <ide> assert.strictEqual(decoder.write(Buffer.from('41F2', 'hex')), '\ufffdA'); <ide> assert.strictEqual(decoder.end(), '\ufffd'); <ide> <add>// Additional utf8Text test <add>decoder = new StringDecod...
1
Java
Java
add head support in mvc/webflux resource handling
9adfa5e8b0f0cd65a0b14740e0a0f9832d80edcb
<ide><path>spring-web/src/main/java/org/springframework/http/codec/ResourceHttpMessageWriter.java <ide> public Mono<Void> write(Publisher<? extends Resource> inputStream, ResolvableTyp <ide> private Mono<Void> writeResource(Resource resource, ResolvableType type, @Nullable MediaType mediaType, <ide> ReactiveHttpOut...
6
Ruby
Ruby
fix typo in submit_tag helper documentation
19c91d7b72a8fbf5a315868c7089c1ecf499e811
<ide><path>actionpack/lib/action_view/helpers/form_tag_helper.rb <ide> def radio_button_tag(name, value, checked = false, options = {}) <ide> # # => <input class="form_submit" name="commit" type="submit" /> <ide> # <ide> # submit_tag "Edit", :disable_with => "Editing...", :class => "edit_button" <...
1
Java
Java
fix nvc for androidprogressbar
ae6a84e70deff13dd778435193d95aa4b019024c
<ide><path>ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ReactProgressBarViewManager.java <ide> private final WeakHashMap<Integer, Pair<Integer, Integer>> mMeasuredStyles = new WeakHashMap<>(); <ide> <ide> /* package */ static final String PROP_STYLE = "styleAttr"; <add> /* package */ static fin...
1
Python
Python
check exception details in refguide_check.py
70f97a5040e20642b68e45d30e030a89ac89e665
<ide><path>numpy/core/multiarray.py <ide> def bincount(x, weights=None, minlength=None): <ide> <ide> >>> np.bincount(np.arange(5, dtype=float)) <ide> Traceback (most recent call last): <del> File "<stdin>", line 1, in <module> <del> TypeError: array cannot be safely cast to required type <add> ......
2
Python
Python
remove tf setup requirement
7b76bed70c1e9528bddbfe0019da550865d0963a
<ide><path>keras/__init__.py <add> <add>try: <add> from tensorflow.keras.layers.experimental.preprocessing import RandomRotation <add>except ImportError: <add> raise ImportError( <add> 'Keras requires TensorFlow 2.2 or higher. ' <add> 'Install TensorFlow via `pip install tensorflow`') <add> <ide> fr...
2
Java
Java
add checknotmodified support for responseentity
638e6cc7f8f817b0271711a5ee48dbba8b58a7e0
<ide><path>spring-web-reactive/src/main/java/org/springframework/web/reactive/result/method/annotation/ResponseEntityResultHandler.java <ide> */ <ide> package org.springframework.web.reactive.result.method.annotation; <ide> <add>import java.time.Instant; <add>import java.util.Arrays; <ide> import java.util.List; <ide...
2
PHP
PHP
add windows support for withoutoverlapping
6f3b61b5fd71c0d9632ac48d1473e3832ee019b8
<ide><path>src/Illuminate/Console/Scheduling/Event.php <ide> public function buildCommand() <ide> $redirect = $this->shouldAppendOutput ? ' >> ' : ' > '; <ide> <ide> if ($this->withoutOverlapping) { <del> $command = '(touch '.$this->mutexPath().'; '.$this->command.'; rm '.$this->mutexPath()....
1
Javascript
Javascript
remove unused code
a1337320ea99b5e941d2b6bb2416fd973a3ae445
<ide><path>client/next.js <ide> import { render } from 'react-dom' <ide> import HeadManager from './head-manager' <ide> import { rehydrate } from '../lib/css' <ide> import Router from '../lib/router' <del>import DefaultApp from '../lib/app' <add>import App from '../lib/app' <ide> import evalScript from '../lib/eval-scr...
1
Ruby
Ruby
remove most uses of `column#cast_type`
155b1b7fe3a1d231fb98a6fb04a21f6eb190b98f
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb <ide> def insert_fixture(fixture, table_name) <ide> columns = schema_cache.columns_hash(table_name) <ide> <ide> binds = fixture.map do |name, value| <del> Relation::QueryAttribute.new(name, value, col...
6
Go
Go
fix golint error
e02a3d9f5ba3bd9fa7f21596a6ee784bb58053f9
<ide><path>daemon/reload.go <ide> func (daemon *Daemon) Reload(conf *config.Config) (err error) { <ide> if err := daemon.reloadLiveRestore(conf, attributes); err != nil { <ide> return err <ide> } <del> if err := daemon.reloadNetworkDiagnosticPort(conf, attributes); err != nil { <del> return err <del> } <del> retur...
1
Ruby
Ruby
remove collection ivar
76ea105ca1e9c14d0bce9ddb330369792f720438
<ide><path>actionview/lib/action_view/renderer/collection_renderer.rb <ide> def each_with_info <ide> end <ide> <ide> def render_collection_with_partial(collection, partial, context, block) <del> @collection = build_collection_iterator(collection, partial, context) <add> collection = build_collection_...
1
Text
Text
update broken link to dashboard
8399dd543aec2b7becf9d593f94084155de2502d
<ide><path>tools/dashboard/README.md <ide> ![freeCodeCamp Social Banner](https://s3.amazonaws.com/freecodecamp/wide-social-banner.png) <ide> <del># contribute <add># Contribute <ide> <del>Tools to help maintain [freeCodeCamp.org](https://www.freecodecamp.org)'s Open Source Codebase on GitHub. Dashboard is available a...
1
Text
Text
fix column names on customer model
f73d9c2473f4810f33a6487ed4059f431a0afc67
<ide><path>guides/source/active_record_querying.md <ide> SELECT DISTINCT status FROM orders <ide> => ["shipped", "being_packed", "cancelled"] <ide> <ide> irb> Customer.pluck(:id, :first_name) <del>SELECT customers.id, customers.name FROM customers <add>SELECT customers.id, customers.first_name FROM customers <ide> => ...
1
Text
Text
fix typo in testing guide
e50debf1ae0c7211f48b93693ec7e49eafd1e487
<ide><path>guides/source/testing.md <ide> class UserMailerTest < ActionMailer::TestCase <ide> end <ide> ``` <ide> <del>In the test we send the email and store the returned object in the `email` <add>In the test we create the email and store the returned object in the `email` <ide> variable. We then ensure that it was ...
1
Java
Java
equalize copy of channelsendoperator
003247dc40dd0a194c69ce51aa64dd1a0dd69657
<ide><path>spring-messaging/src/main/java/org/springframework/messaging/handler/invocation/reactive/ChannelSendOperator.java <ide> public final void onComplete() { <ide> else if (this.state == State.NEW) { <ide> this.completed = true; <ide> this.state = State.FIRST_SIGNAL_RECEIVED; <del> writeFunction...
1
PHP
PHP
remove comments, and fix debug transport for email
212028cda2978e14bb16c931478eee67f6f83b9e
<ide><path>lib/Cake/Network/Email/DebugTransport.php <ide> class DebugTransport extends AbstractTransport { <ide> * @return array <ide> */ <ide> public function send(CakeEmail $email) { <del> $headers = $email->getHeaders(array('from', 'sender', 'replyTo', 'readReceipt', 'returnPath', 'to', 'cc', 'bcc', 'subject'))...
3
Javascript
Javascript
add colorwrite to material copy method
4847d475f77e3435e9ca95c1ce2a122d6d6c5355
<ide><path>src/materials/Material.js <ide> THREE.Material.prototype = { <ide> this.depthTest = source.depthTest; <ide> this.depthWrite = source.depthWrite; <ide> <add> this.colorWrite = source.colorWrite; <add> <ide> this.precision = source.precision; <ide> <ide> this.polygonOffset = source.polygonOffset;
1