content_type
stringclasses
8 values
main_lang
stringclasses
7 values
message
stringlengths
1
50
sha
stringlengths
40
40
patch
stringlengths
52
962k
file_count
int64
1
300
Ruby
Ruby
allow sass-rails greater than 5.x in new apps
2e4c65e3afb18fc9a84d4d3ae893209efce27592
<ide><path>railties/lib/rails/generators/app_base.rb <ide> def rails_version_specifier(gem_version = Rails.gem_version) <ide> def assets_gemfile_entry <ide> return [] if options[:skip_sprockets] <ide> <del> GemfileEntry.version("sass-rails", "~> 5.0", "Use SCSS for stylesheets") <add> Gemfi...
1
PHP
PHP
display offending model and column
a02fd82db2a25b67c6a65d16ce3c8dbcf7ac8e95
<ide><path>lib/Cake/Model/CakeSchema.php <ide> protected function _columns(&$Obj) { <ide> $value['key'] = 'primary'; <ide> } <ide> if (!isset($db->columns[$value['type']])) { <del> trigger_error(__d('cake_dev', 'Schema generation error: invalid column type %s does not exist in DBO', $value['type']), E_USER...
1
Javascript
Javascript
fix inaccurate comments in matrix4
c11662b22ffb2babba1754854f0449f956411188
<ide><path>src/math/Matrix4.js <ide> Object.assign( Matrix4.prototype, { <ide> <ide> } <ide> <del> // last column <add> // bottom row <ide> te[ 3 ] = 0; <ide> te[ 7 ] = 0; <ide> te[ 11 ] = 0; <ide> <del> // bottom row <add> // last column <ide> te[ 12 ] = 0; <ide> te[ 13 ] = 0; <ide> te[ 14 ] = 0; ...
1
Javascript
Javascript
remove https redirect
00c3a97fa0db5ec1bc89d19f6568dea3a699b245
<ide><path>server/boot/redirectHttps.js <del>var path = require('path'); <del>var loopback = require('loopback'); <del>var express = require('express'); <del> <del>var port = 1337; <del> <del>// this will listen to traffic on port 1337 <del>// The purpose is to redirect any user who is direct to https <del>// instead o...
1
Text
Text
add link to 16 pos tags model
c2cf19294359b7b3afbc8ac9cbc6d6dbed53ab11
<ide><path>model_cards/mrm8488/bert-spanish-cased-finetuned-pos/README.md <ide> I preprocessed the dataset and splitted it as train / dev (80/20) <ide> <ide> - [Fine-tune on NER script provided by Huggingface](https://github.com/huggingface/transformers/blob/master/examples/run_ner.py) <ide> <del>- Labels covered: <a...
1
Text
Text
remove a dead link and an archived example
91aafd8c3fb14f5a1ab689c1fb30270483bed6a3
<ide><path>docs/faq/Miscellaneous.md <ide> <ide> Yes, lots of them! To name just a few: <ide> <del>- [Twitter's mobile site](https://twitter.com/necolas/status/727538799966715904) <add>- [Twitter's mobile site](https://mobile.twitter.com/) <ide> - [Wordpress's new admin page](https://github.com/Automattic/wp-calypso...
1
Mixed
Text
fix some minor typos [ci skip]
82de1eda7c8a8f11b65d8edf70c4af7ce08507ec
<ide><path>activerecord/CHANGELOG.md <ide> <ide> *Adam Williams*, *Yves Senn* <ide> <del>* Fix bug where `has_one` associaton record update result in crash, when replaced with itself. <add>* Fix bug where `has_one` association record update result in crash, when replaced with itself. <ide> <ide> Fixes #1...
2
Mixed
Python
unlock inceptionresnetv2 for cntk
71a791cb71ef7080ea150152633a90e7821070af
<ide><path>docs/templates/applications.md <ide> keras.applications.inception_resnet_v2.InceptionResNetV2(include_top=True, weigh <ide> <ide> Inception-ResNet V2 model, with weights pre-trained on ImageNet. <ide> <del>This model is available for both the Theano and TensorFlow backend (but not CNTK), and can be built b...
3
Text
Text
add link to coding rules
b3acddea37aca9f8e3f881100b5af657194d262a
<ide><path>CONTRIBUTING.md <ide> Before you submit your pull request consider the following guidelines: <ide> ``` <ide> <ide> * Create your patch, including appropriate test cases. <del>* Follow our Coding Rules <add>* Follow our [Coding Rules](#coding-rules) <ide> * Commit your changes and create a descriptive c...
1
Ruby
Ruby
convert `references` to kwargs
a9c0c46263dcafcf01944246e31cbe5650ee605e
<ide><path>activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb <ide> def timestamps(*args) <ide> # t.belongs_to(:supplier, polymorphic: true) <ide> # <ide> # See SchemaStatements#add_reference <del> def references(*args) <del> options = args.extract_options! ...
1
Javascript
Javascript
use module.rules instead of module.loaders
645867ed7e93b41e789ab10b67bc743091cf46e2
<ide><path>examples/code-splitted-css-bundle/webpack.config.js <ide> var ExtractTextPlugin = require("extract-text-webpack-plugin"); <ide> module.exports = { <ide> module: { <del> loaders: [ <add> rules: [ <ide> { <ide> test: /\.css$/, <ide> use: ExtractTextPlugin.extract({ <ide><path>examples/coffee-scri...
9
Go
Go
add support for 20.10 cli
601707a655071e4ab2d3c7ee3f7f868af1774321
<ide><path>integration-cli/cli/cli.go <ide> type CmdOperator func(*icmd.Cmd) func() <ide> <ide> // DockerCmd executes the specified docker command and expect a success <ide> func DockerCmd(t testing.TB, args ...string) *icmd.Result { <add> t.Helper() <ide> return Docker(Args(args...)).Assert(t, icmd.Success) <ide> } ...
4
Python
Python
dump version info and exit
030616c9b50dcb891b6075af832cacb55269b686
<ide><path>celery/bin/celeryd.py <ide> <ide> TASK_LIST_FMT = """ . tasks ->\n%s""" <ide> <add> <add>def dump_version(*args): <add> print("celeryd v%s" % celery.__version__) <add> sys.exit(0) <add> <add> <ide> OPTION_LIST = ( <ide> optparse.make_option('-c', '--concurrency', <ide> default=conf...
1
Text
Text
fix links in readme
f26ce6992e683a49799515e86086cf66599e2762
<ide><path>README.md <ide> A command-line interface is provided to convert a TensorFlow checkpoint in a PyT <ide> <ide> ### BERT <ide> <del>You can convert any TensorFlow checkpoint for BERT (in particular [the pre-trained models released by Google](https://github.com/google-research/bert#pre-trained-models)) in a Py...
1
Go
Go
fix validation for "condition" parameter
0bce64f08d72147b0572f96ac678620d289b4499
<ide><path>api/server/router/container/container_routes.go <ide> func (s *containerRouter) postContainersWait(ctx context.Context, w http.Respons <ide> } <ide> if v := r.Form.Get("condition"); v != "" { <ide> switch container.WaitCondition(v) { <add> case container.WaitConditionNotRunning: <add> waitConditi...
2
PHP
PHP
change local database user
b9c69c6d9484d759742100c666367d8327d9f6ae
<ide><path>app/config/local/database.php <ide> 'driver' => 'mysql', <ide> 'host' => 'localhost', <ide> 'database' => 'homestead', <del> 'username' => 'vagrant', <add> 'username' => 'homestead', <ide> 'password' => '', <ide> 'charset' => 'utf8', <ide> 'collation' => 'utf8_unicode_ci',...
1
Text
Text
create players meeting narrative document
7ccf233bfe319b39361f6152140ce3dd7c0a8c80
<ide><path>guide/english/game-development/player-meets-narrative/index.md <add>--- <add>title: The Game Player Meets Game Conflict Narrative <add>--- <add> <add>The narrative in a game turns its challenges into conflicts. There are several types of game conflicts, and they are similar to the classic types of conflict i...
1
PHP
PHP
add auth type option
7d974ae23f4a96c318b65840135e6ec9d90a8d38
<ide><path>src/Mailer/Transport/SmtpTransport.php <ide> class SmtpTransport extends AbstractTransport <ide> 'client' => null, <ide> 'tls' => false, <ide> 'keepAlive' => false, <add> 'authType' => null, <ide> ]; <ide> <ide> /** <ide> protected function _bufferResponseLines(array $...
2
Text
Text
add resources for data analysis videos
b352f361694c3303a39e7b8ac461a98108b9e43b
<ide><path>curriculum/challenges/english/08-data-analysis-with-python/data-analysis-with-python-course/data-analysis-example-a.english.md <ide> videoId: nVAaxZ34khk <ide> <ide> ## Description <ide> <section id='description'> <add>More resources: <add>- <a href="https://notebooks.ai/rmotr-curriculum/freecodecamp-pandas...
28
Python
Python
add layer_idx to crossattention of gpt2 model
142b69f24b57e5d358edeaa1569955f7684fee93
<ide><path>src/transformers/models/gpt2/modeling_gpt2.py <ide> def __init__(self, config, layer_idx=None): <ide> self.ln_2 = nn.LayerNorm(hidden_size, eps=config.layer_norm_epsilon) <ide> <ide> if config.add_cross_attention: <del> self.crossattention = GPT2Attention(config, is_cross_attentio...
2
Text
Text
remove unused heading
fd7ed5c07db51f5d7053d5c831186ed8c212d831
<ide><path>guides/source/5_1_release_notes.md <ide> Please refer to the [Changelog][railties] for detailed changes. <ide> * Remove -j (--javascript) option from `rails new` command. <ide> ([Pull Request](https://github.com/rails/rails/pull/28546)) <ide> <del>### Deprecations <del> <ide> ### Notable changes <ide>...
1
PHP
PHP
use strtotime() instead of a single format
606239a1a5993d27a80bb0965f264b0897eff3f7
<ide><path>lib/Cake/Network/Http/Cookies.php <ide> */ <ide> namespace Cake\Network\Http; <ide> <add>use DateTime; <ide> use Cake\Network\Http\Request; <ide> use Cake\Network\Http\Response; <ide> <ide> public function store(Response $response, $url) { <ide> $key = implode(';', [$cookie['name'], $cookie['domain'], ...
2
Python
Python
add tests for longer and mixed english texts
8216ba599b6c33207f413381b755d8db25c01440
<ide><path>spacy/tests/en/tokenizer/test_text.py <add># coding: utf-8 <add>"""Test that longer and mixed texts are tokenized correctly.""" <add> <add> <add>from __future__ import unicode_literals <add> <add>import pytest <add> <add> <add>def test_tokenizer_handles_long_text(en_tokenizer): <add> text = """Tributes po...
1
Javascript
Javascript
add example for emberarray#isevery
568fdeb1be4666bc51acc9bee074af402b84632c
<ide><path>packages/@ember/-internals/runtime/lib/mixins/array.js <ide> const ArrayMixin = Mixin.create(Enumerable, { <ide> <ide> Note that like the native `Array.every`, `isEvery` will return true when called <ide> on any empty array. <add> ```javascript <add> class Language { <add> constructor(nam...
1
Javascript
Javascript
add property to list of deduped tags
a6e069d4f9601e1cbe6436080ecb2a1adcb33d16
<ide><path>lib/head.js <ide> function onStateChange (head) { <ide> } <ide> } <ide> <del>const METATYPES = ['name', 'httpEquiv', 'charSet', 'itemProp'] <add>const METATYPES = ['name', 'httpEquiv', 'charSet', 'itemProp', 'property'] <ide> <ide> // returns a function for filtering head child elements <ide> // which sh...
1
Javascript
Javascript
remove unused var in test-tls-server-verify
2bd89421d5e8d77cd52380161b29a9b64024db2b
<ide><path>test/parallel/test-tls-server-verify.js <ide> function runTest(port, testIndex) { <ide> rejectUnauthorized: tcase.rejectUnauthorized <ide> }; <ide> <del> var connections = 0; <del> <ide> /* <ide> * If renegotiating - session might be resumed and openssl won't request <ide> * client's certific...
1
Javascript
Javascript
minimize terminal.log() work
3e9dedf1ac56a219e27ab42915e2fea0d2636b88
<ide><path>packager/src/lib/__tests__/TransformCache-test.js <ide> jest <ide> .dontMock('json-stable-stringify') <ide> .dontMock('../TransformCache') <ide> .dontMock('../toFixedHex') <del> .dontMock('left-pad'); <add> .dontMock('left-pad') <add> .dontMock('lodash/throttle'); <ide> <ide> const imurmurhash = re...
3
PHP
PHP
remove commas from values
da4d4a468eee174bd619b4a04aab57e419d10ff4
<ide><path>src/Illuminate/Validation/Rules/Unique.php <ide> public function ignore($id, $idColumn = null) <ide> return $this->ignoreModel($id, $idColumn); <ide> } <ide> <del> $this->ignore = $id; <del> $this->idColumn = $idColumn ?? 'id'; <add> $this->ignore = str_replace(',', ...
2
Javascript
Javascript
add semicolon for react-dom source files
e9e70365c35465c911e749b45841c523108cc86d
<ide><path>docs/js/react-dom.js <ide> <ide> // <script> <ide> } else { <del> var g; <add> var g <ide> if (typeof window !== "undefined") { <ide> g = window; <ide> } else if (typeof global !== "undefined") { <ide><path>vendor/react-dom-server.js <ide> <ide> // <script> <ide> } else { <del> ...
3
Ruby
Ruby
provide a logger
dd593b98b5ef6e66d72942065dd1c0a9b266b9bc
<ide><path>lib/action_mailbox.rb <ide> module ActionMailbox <ide> autoload :Router <ide> autoload :Callbacks <ide> autoload :Routing <add> <add> mattr_accessor :logger <ide> end <ide><path>lib/action_mailbox/base.rb <ide> class ActionMailbox::Base <ide> attr_reader :inbound_email <ide> delegate :mail, :bounc...
3
Go
Go
fix typo in idtools tests
5d8b88b114da7c40f04a95909a35287ae1dac37f
<ide><path>pkg/idtools/idtools_unix_test.go <ide> func TestGetRootUIDGID(t *testing.T) { <ide> <ide> uid, gid, err := GetRootUIDGID(uidMap, gidMap) <ide> assert.Check(t, err) <del> assert.Check(t, is.Equal(os.Getegid(), uid)) <add> assert.Check(t, is.Equal(os.Geteuid(), uid)) <ide> assert.Check(t, is.Equal(os.Geteg...
1
Python
Python
create dummy models
dcca71be6151c04ec89116d3275f7173b7936601
<ide><path>utils/check_config_docstrings.py <ide> } <ide> <ide> <del>def check_config_docstrings_have_checkpoints(): <del> configs_without_checkpoint = [] <add>def get_checkpoint_from_config_class(config_class): <add> checkpoint = None <ide> <del> for config_class in list(CONFIG_MAPPING.values()): <del> ...
2
Ruby
Ruby
remove useless callable_cache_key? check
61b03f37d8117c71ede59b335e493fd8016c414a
<ide><path>actionview/lib/action_view/renderer/partial_renderer/collection_caching.rb <ide> def cache_collection? <ide> end <ide> <ide> def automatic_cache_eligible? <del> @template && !callable_cache_key? && <del> @template.eligible_for_collection_caching?(as: @options[:as]) <add> @...
1
Javascript
Javascript
remove unused variable in combinedcamera.js
e48977f91658cc8cd896d2ac34445f232212c4f5
<ide><path>examples/js/cameras/CombinedCamera.js <ide> THREE.CombinedCamera = function ( width, height, fov, near, far, orthoNear, orth <ide> <ide> this.toPerspective(); <ide> <del> var aspect = width / height; <del> <ide> }; <ide> <ide> THREE.CombinedCamera.prototype = Object.create( THREE.Camera.prototype );
1
Java
Java
call the doon{dispose|cancel} handler at most once
76abb7beef3aa0b808cdbe193fd96ef04a5f0903
<ide><path>src/main/java/io/reactivex/Observable.java <ide> public final Observable<T> doOnError(Consumer<? super Throwable> onError) { <ide> <ide> /** <ide> * Calls the appropriate onXXX method (shared between all Observer) for the lifecycle events of <del> * the sequence (subscription, disposal, request...
8
Mixed
Ruby
add instrumentation for read_multi
62023884f76c108127c8966f4d67bb717338dd66
<ide><path>activesupport/CHANGELOG.md <add>* Add missing instrumentation for `read_multi` in `ActiveSupport::Cache::Store` <add> <add> *Ignatius Reza Lesmana* <add> <ide> * Allow the hash function used to generate non-sensitive digests, such as the <ide> ETag header, to be specified with `config.active_suppo...
4
Javascript
Javascript
add test case for watching in production
d9af746c147e3a7b0a8be239ba2c012e5431cab7
<ide><path>test/watchCases/simple/production/0/changing-file.js <add>module.exports = "0"; <ide><path>test/watchCases/simple/production/0/changing-module.js <add>export default "0"; <ide><path>test/watchCases/simple/production/0/index.js <add>import module from "./changing-module"; <add> <add>it("should watch for chang...
8
Python
Python
update ctrl configuration
bd5363cc8330229b14c668bdc3340e8a4902e608
<ide><path>transformers/configuration_ctrl.py <ide> def __init__( <ide> """ <ide> super(CTRLConfig, self).__init__(**kwargs) <ide> <add> self.vocab_size = vocab_size_or_config_json_file if isinstance(vocab_size_or_config_json_file, int) else -1 <add> self.n_ctx = n_ctx <add> self.n...
1
Text
Text
suggest vectors changes
052d82aa4e758f0e7fe4665240fe0c7a9e0497fc
<ide><path>website/docs/usage/vectors-embeddings.md <ide> title: Vectors and Embeddings <ide> menu: <ide> - ["What's a Word Vector?", 'whats-a-vector'] <del> - ['Word Vectors', 'vectors'] <del> - ['Other Embeddings', 'embeddings'] <add> - ['Using Word Vectors', 'usage'] <add> - ['Converting and Importing', 'conve...
1
Text
Text
add link for guide to illustrator
7f690b8b3c08ad1874df15b7516b28e8b38f53cc
<ide><path>guide/english/designer-tools/illustrator/index.md <ide> The main feature that separates Adobe Illustrator from Photoshop is the use of v <ide> - [Introduction to Flat Design](https://design.tutsplus.com/tutorials/10-top-tips-on-creating-flat-design-graphics--cms-25888) <ide> - [Creating flat icons using illu...
1
Go
Go
remove checkout directory on error
4ea320cb8ef71c2fc9ee391e2e8be915ba99b17e
<ide><path>builder/remotecontext/git/gitutils.go <ide> func Clone(remoteURL string) (string, error) { <ide> return cloneGitRepo(repo) <ide> } <ide> <del>func cloneGitRepo(repo gitRepo) (string, error) { <add>func cloneGitRepo(repo gitRepo) (checkoutDir string, err error) { <ide> fetch := fetchArgs(repo.remote, repo....
2
Text
Text
add hints on how to deal with values of new fields
1cf8e18f165081b259da0cae51657857eb7c8c2b
<ide><path>guides/source/getting_started.md <ide> And next, let's update the database with the generated migrations: <ide> $ bin/rails db:migrate <ide> ``` <ide> <add>To choose the status for the existing articles and comments you can add a default value to the generated migration files by adding the `default: "public...
1
Text
Text
remove good luck! comment from challenge seed code
8788ad946b02e4fdbbe7dc45e5fd906aad6ab1d3
<ide><path>curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-1-multiples-of-3-and-5.english.md <ide> tests: <ide> <ide> ```js <ide> function multiplesOf3and5(number) { <del> // Good luck! <add> <ide> return true; <ide> } <ide> <ide><path>curriculum/challenges/english/10-coding-interview-...
300
Python
Python
fix crash in repr of 0d timedelta array
67aa4e738bf4298f1ccf0411f8df6116861adab1
<ide><path>numpy/core/arrayprint.py <ide> <ide> import numpy as np <ide> from . import numerictypes as _nt <del>from .umath import absolute, not_equal, isnan, isinf, isfinite <add>from .umath import absolute, not_equal, isnan, isinf, isfinite, isnat <ide> from . import multiarray <ide> from .multiarray import (array, ...
2
Go
Go
fix syscall name
e69f7142190451eb1e0553e2dfab8e916dc9cead
<ide><path>term/termios_linux.go <ide> func MakeRaw(fd uintptr) (*State, error) { <ide> <ide> newState.Iflag &^= (syscall.IGNBRK | syscall.BRKINT | syscall.PARMRK | syscall.ISTRIP | syscall.INLCR | syscall.IGNCR | syscall.ICRNL | syscall.IXON) <ide> newState.Oflag &^= syscall.OPOST <del> newState.Lflag &^= (syscall....
1
Text
Text
use instance variables in redirect_to
9c18cb1e70718c2b3fc20efed26f544b79c3ce6d
<ide><path>guides/source/getting_started.md <ide> def create <ide> @post = Post.new(params[:post]) <ide> <ide> @post.save <del> redirect_to post <add> redirect_to @post <ide> end <ide> ``` <ide> <ide> look like this: <ide> @post = Post.new(params[:post].permit(:title, :text)) <ide> <ide> @post.save <...
1
Text
Text
add note about multiple patterns
d176afd32f99615360d1d23e622e187b7c5833f4
<ide><path>website/docs/api/matcher.md <ide> string where an integer is expected) or unexpected property names. <ide> <ide> Find all token sequences matching the supplied patterns on the `Doc` or `Span`. <ide> <add>Note that if a single label has multiple patterns associated with it, the <add>returned matches don't p...
1
Ruby
Ruby
remove unused private methods
22cbc1a14da1562797c0b3388805034fb9fc1b7f
<ide><path>actionpack/lib/action_view/helpers/url_helper.rb <ide> def add_method_to_attributes!(html_options, method) <ide> html_options["data-method"] = method <ide> end <ide> <del> def options_for_javascript(options) <del> if options.empty? <del> '{}' <del> else ...
1
Ruby
Ruby
fix console tests
efd808755cac74f0001907a1d635856160d11f6a
<ide><path>railties/lib/rails/command/environment_argument.rb <ide> module EnvironmentArgument #:nodoc: <ide> def extract_environment_option_from_argument <ide> if environment <ide> self.options = options.merge(environment: acceptable_environment(environment)) <add> elsif !options...
3
Javascript
Javascript
add comments on netinfo.js
433c0e80211f7c16fd02c5f02844a796aa766e02
<ide><path>Libraries/Network/NetInfo.js <ide> const _isConnectedSubscriptions = new Map(); <ide> * ``` <ide> */ <ide> const NetInfo = { <add> /** <add> * Invokes the listener whenever network status changes. <add> * The listener receives one of the connectivity types listed above. <add> */ <ide> addEventList...
1
Mixed
Python
convert hans to trainer
d5477baf7d87b9bdad386f2f317732b85277b06b
<ide><path>examples/README.md <ide> This is still a work-in-progress – in particular documentation is still sparse <ide> | [**`summarization`**](https://github.com/huggingface/transformers/tree/master/examples/summarization) | CNN/Daily Mail | - | - | - | - <ide> | [**`translation`**](https://github.com/huggi...
4
Text
Text
add missing changelogs to assert docs
1789dcfc873eea0b993a1fa20f2e30819a57b9c9
<ide><path>doc/api/assert.md <ide> An alias of [`assert.ok()`][]. <ide> <!-- YAML <ide> added: v0.1.21 <ide> changes: <add> - version: REPLACEME <add> pr-url: https://github.com/nodejs/node/pull/15001 <add> description: Error names and messages are now properly compared <ide> - version: v8.0.0 <ide> pr-url...
1
Text
Text
add return value which might be 0
522fce544ef3c4b6e529c80af2fd7facb115c723
<ide><path>guide/english/python/abs-function/index.md <ide> It takes one argument `x` - an integer, or decimal, or a complex number. <ide> <ide> ## Return Value <ide> <del>The return value would be a positive number. Even if complex number is passed, it would return its magnitude, computed as per complex number algeb...
1
Javascript
Javascript
fix linting errors
dba9654a0928ee011b8f7114f29f98a4c90a6e35
<ide><path>client/commonFramework/update-preview.js <ide> window.common = (function(global) { <ide> window.__err = new Error( <ide> 'Potential infinite loop at line ' + <ide> line + <del> '. To disable loop protection, write: \\n\\/\\/ noprotect\\nas the first' + <add> '. To disable loop prote...
2
Mixed
Python
add algorithm for n-body simulation - retry
536fb4bca48f69cb66cfbd03aeb02550def07977
<ide><path>DIRECTORY.md <ide> * [Sdes](https://github.com/TheAlgorithms/Python/blob/master/other/sdes.py) <ide> * [Tower Of Hanoi](https://github.com/TheAlgorithms/Python/blob/master/other/tower_of_hanoi.py) <ide> <add>## Physics <add> * [N Body Simulation](https://github.com/TheAlgorithms/Python/blob/master/phys...
2
Python
Python
remove deplicated symbols from link step
b0222e05b9b98395fcdab4e6ac7f5fed518ec387
<ide><path>numpy/core/setup.py <ide> def generate_umath_c(ext, build_dir): <ide> ], <ide> depends=deps + multiarray_deps + umath_deps + <ide> common_deps, <del> libraries=['npymath', 'npysort'], <add> ...
1
Ruby
Ruby
limit length of secret being passed
c79c40ed82186fc5000cf5beea697b286422bcdb
<ide><path>railties/test/application/middleware/session_test.rb <ide> def read_raw_cookie <ide> <ide> secret = app.key_generator.generate_key("encrypted cookie") <ide> sign_secret = app.key_generator.generate_key("signed encrypted cookie") <del> encryptor = ActiveSupport::MessageEncryptor.new(secret, ...
1
PHP
PHP
apply patch from 'eärendil' to fix formhelper
a65a5eb506c4c056646d5a9f015a9b1d4fb14e58
<ide><path>cake/libs/view/helpers/form.php <ide> function __secure($field = null, $value = null) { <ide> } <ide> } <ide> } <add> <add> $last = end($field); <add> if (is_numeric($last) || empty($last)) { <add> array_pop($field); <add> } <add> <ide> $field = implode('.', $field); <ide> if (!in_array($fi...
2
Text
Text
update examples readme
3312eb57cc858b91c8d2968cc721414ee2e33369
<ide><path>examples/README.md <ide> # Examples <ide> ## Aggressive Merging <del>[aggressive-merging](aggressive-merging) <add>[aggressive-merging](aggressive-merging) <ide> <ide> ## Chunk <ide> [chunkhash](chunkhash) <ide> <ide> [code-splitting-bundle-loader](code-splitting-bundle-loader) example demonstrating Code ...
1
PHP
PHP
remove duplicate code
f3464b002f92ec528e4f1ea77980680fe76150b8
<ide><path>lib/Cake/Controller/Controller.php <ide> public function redirect($url, $status = null, $exit = true) { <ide> $response = $event->result; <ide> extract($this->_parseBeforeRedirect($response, $url, $status, $exit), EXTR_OVERWRITE); <ide> <del> if (function_exists('session_write_close')) { <del> sessio...
4
Text
Text
add docs for wrap-guide extension
7ce292af616fa73470e2287dc605d12450be4c20
<ide><path>docs/intro.md <ide> ## Welcome to the Atom guide <add> <add>## Extensions <add> <add>### Wrap Guide <add> <add>The wrap-guide extension places a vertical line in each editor at a certain <add>column to guide your formatting so lines do not exceed a certain width. <add> <add>By default the wrap-guide is place...
1
Python
Python
solve memory inefficiency in rnns
3fe7a484d2f945b304afe6d96ff9adb80d885097
<ide><path>keras/backend.py <ide> def rnn(step_function, <ide> unroll=False, <ide> input_length=None, <ide> time_major=False, <del> zero_output_for_mask=False): <add> zero_output_for_mask=False, <add> return_all_outputs=True): <ide> """Iterates over the time dimension of a...
2
Mixed
Python
fix 2 ongoing issues
e96ceb7860f170acca005aa891d44ac9a6c6ee2c
<ide><path>TODO.md <ide> TODO <ide> ----- <ide> #### UI <del>* Run / backfill wizard <add>* Run button / backfill wizard <ide> * Add templating to adhoc queries <ide> * Charts: better error handling <ide> <ide> TODO <ide> * Merge Cascading <ide> <ide> #### Backend <add>* Add a run_only_latest flag to BaseOperator, ru...
3
PHP
PHP
apply fixes from styleci
a29b94f0dc78f5c4111b36a8acaa6ce818cd8709
<ide><path>src/Illuminate/Database/DatabaseServiceProvider.php <ide> protected function registerEloquentFactory() <ide> $locale = $parameters['locale'] ?? $app['config']->get('app.faker_locale', 'en_US'); <ide> <ide> if (! isset(static::$fakers[$locale])) { <del> static::$fakers[...
1
Text
Text
improve the warning a bit [ci skip]
056d06627af1c99647d88521557c65ddc476520f
<ide><path>guides/source/action_controller_overview.md <ide> Create the controller and views. <ide> <ide> Do not forget to set the correct status code on the controller as shown before. <ide> <del>WARNING: You should avoid using the database or any complex operations because the user is already on the error page. Gen...
1
Javascript
Javascript
adapt tests to new object/es7 polyfill
b9ceecb31fcafcc59870fd8bc92bf42d0cdaf7b9
<ide><path>packager/react-packager/src/BundlesLayout/__tests__/BundlesLayoutIntegration-test.js <ide> describe('BundlesLayout', () => { <ide> 'polyfills/String.prototype.es6.js', <ide> 'polyfills/Array.prototype.es6.js', <ide> 'polyfills/Array.es6.js', <add> 'polyfills/Object.es7.js', <ide> 'polyfill...
2
Javascript
Javascript
fix fizz exported types
8f6163cbed64d1eff23b91159d6eef34a2ee9c27
<ide><path>packages/react-dom/src/server/ReactDOMFizzServerBrowser.js <ide> import { <ide> createRootFormatContext, <ide> } from './ReactDOMServerFormatConfig'; <ide> <del>type Options = { <add>type Options = {| <ide> identifierPrefix?: string, <ide> namespaceURI?: string, <ide> progressiveChunkSize?: number, ...
2
Ruby
Ruby
add --no-html to scaffold generator
cb025f850c45f26355892961d5cf05145d247a4d
<ide><path>railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb <ide> class ScaffoldGenerator < ResourceGenerator # :nodoc: <ide> class_option :stylesheets, type: :boolean, desc: "Generate Stylesheets" <ide> class_option :stylesheet_engine, desc: "Engine for Stylesheets" <ide> <add> clas...
5
Javascript
Javascript
use fetchifref to get annotation dictionaries
ff4f7f1028e4dcae34dd3ae3e36606ac29cc14aa
<ide><path>src/core.js <ide> var Page = (function PageClosure() { <ide> var items = []; <ide> for (i = 0; i < n; ++i) { <ide> var annotationRef = annotations[i]; <del> var annotation = xref.fetch(annotationRef); <add> var annotation = xref.fetchIfRef(annotationRef); <ide> if (!...
1
PHP
PHP
queue() method signature
9f19107fe952aac76560a694d580b5ca328323e9
<ide><path>src/Illuminate/Contracts/Cookie/QueueingFactory.php <ide> interface QueueingFactory extends Factory <ide> /** <ide> * Queue a cookie to send with the next response. <ide> * <add> * @param array $params <add> * <ide> * @return void <ide> */ <del> public function queue(); <...
2
PHP
PHP
remove a use statement
d485e31d1dd38be1b2091f8b6ed4ecef762dd32a
<ide><path>tests/TestCase/Database/Schema/TableTest.php <ide> use Cake\Datasource\ConnectionManager; <ide> use Cake\ORM\TableRegistry; <ide> use Cake\TestSuite\TestCase; <del>use Symfony\Component\Yaml\Exception\RuntimeException; <ide> <ide> /** <ide> * Test case for Table
1
Javascript
Javascript
fix uiexplorer ios swipe back
e3c6d8c93132741f802133d14d3240aa07d8b055
<ide><path>Examples/UIExplorer/js/UIExplorerApp.ios.js <ide> class UIExplorerApp extends React.Component { <ide> style={styles.container} <ide> renderHeader={this._renderHeader} <ide> renderScene={this._renderScene} <del> <add> onNavigateBack={this._handleBack} <ide> /> <ide> );...
1
Text
Text
fix syntax error in nested conditions example
e64f432c0dcfc603636c7d11470d5f34102f0bcf
<ide><path>doc/api/packages.md <ide> use in Node.js but not the browser: <ide> "import": "./feature-node.mjs", <ide> "require": "./feature-node.cjs" <ide> }, <del> "default": "./feature.mjs", <add> "default": "./feature.mjs" <ide> } <ide> } <ide> ```
1
Javascript
Javascript
add err handling to test run
d2be64cfb5fbb98224cc0d6dd7016d4141c547fc
<ide><path>client/commonFramework/end.js <ide> $(document).ready(function() { <ide> common.editorKeyUp$ <ide> .debounce(750) <ide> .map(() => common.editor.getValue()) <add> .distinctUntilChanged() <ide> .doOnNext(() => console.log('updating value')) <ide> .subscribe( <ide> code => { <ide> $(...
1
Go
Go
remove cgo from term
64f346779fbe4ba9587ec65eedd0e8373f7e29c0
<ide><path>term/term.go <ide> import ( <ide> ) <ide> <ide> type Termios struct { <del> Iflag uintptr <del> Oflag uintptr <del> Cflag uintptr <del> Lflag uintptr <add> Iflag uint32 <add> Oflag uint32 <add> Cflag uint32 <add> Lflag uint32 <ide> Cc [20]byte <del> Ispeed uintptr <del> Ospeed uintptr <add> Isp...
2
Javascript
Javascript
fix handling of `snicallback` server option
ea7b817266512b93b99032189984a3bd0f8386dc
<ide><path>lib/_tls_wrap.js <ide> TLSSocket.prototype._init = function() { <ide> } <ide> }; <ide> <add> // If custom SNICallback was given, or if <add> // there're SNI contexts to perform match against - <add> // set `.onsniselect` callback. <ide> if (process.features.tls_sni && <ide> options.isServer...
2
Ruby
Ruby
prevent accessibility access for macos >= 10.12
15f3f2065625b05496632c1f5cf61fd150afef3c
<ide><path>Library/Homebrew/cask/lib/hbc/installer.rb <ide> def print_caveats <ide> def enable_accessibility_access <ide> return unless @cask.accessibility_access <ide> ohai "Enabling accessibility access" <del> if MacOS.version <= :mountain_lion <add> if MacOS.version >= :sierra <add> opoo <<-EOS....
1
Python
Python
fix t5 shard on tpu pods
5e68675755e3d45aade61950764e361ae82c7022
<ide><path>examples/flax/language-modeling/run_t5_mlm_flax.py <ide> def group_texts(examples): <ide> <ide> num_train_steps = len(tokenized_datasets["train"]) // train_batch_size * num_epochs <ide> <add> num_of_hosts = jax.process_count() <add> current_host_idx = jax.process_index() <add> <ide> # Create ...
1
Python
Python
add initial array_api sub-namespace
012343dec5599418b77512733fc5b8db6bc14c4c
<ide><path>numpy/_array_api/__init__.py <add>__all__ = [] <add> <add>from .constants import e, inf, nan, pi <add> <add>__all__ += ['e', 'inf', 'nan', 'pi'] <add> <add>from .creation_functions import arange, empty, empty_like, eye, full, full_like, linspace, ones, ones_like, zeros, zeros_like <add> <add>__all__ += ['ara...
11
Ruby
Ruby
fix linting errors
95d4a258914867ef6237709dd03971dbec765324
<ide><path>Library/Homebrew/cask/lib/hbc/cli/reinstall.rb <ide> def self.install_casks(cask_tokens, force, skip_cask_deps, require_sha) <ide> <ide> unless latest_installed_version.nil? <ide> latest_installed_cask_file = installed_cask.metadata_master_container_path <del> ...
1
Text
Text
provide example activities
99e2d4380120d3aad0cd4dafc59b83be9f970256
<ide><path>GOVERNANCE.md <ide> For the current list of Collaborators, see the project <ide> A guide for Collaborators is maintained in <ide> [COLLABORATOR_GUIDE.md](./COLLABORATOR_GUIDE.md). <ide> <add>Typical activities of a Collaborator include: <add> <add>* helping users and novice contributors <add>* contributing ...
1
Go
Go
change code in container restore
6184ff312dce3222d71ec7c2769002e2dd7595ed
<ide><path>daemon/daemon.go <ide> import ( <ide> "github.com/docker/docker/reference" <ide> "github.com/docker/docker/registry" <ide> "github.com/docker/docker/runconfig" <del> "github.com/docker/docker/utils" <ide> volumedrivers "github.com/docker/docker/volume/drivers" <ide> "github.com/docker/docker/volume/loca...
2
Ruby
Ruby
add test cases for migration#inverse_of
c195317a56061593316d7b5d163d868022010132
<ide><path>activerecord/test/cases/migration/command_recorder_test.rb <ide> def test_invert_add_column <ide> assert_equal [:remove_column, [:table, :column, :type, {}], nil], remove <ide> end <ide> <add> def test_invert_change_column <add> assert_raises(ActiveRecord::IrreversibleMigration) do...
1
Python
Python
remove batch_size when doing stepwise fit
bfc6a25a6e7ade316922fc8bf83748553fbb39c1
<ide><path>keras/engine/training_arrays.py <ide> def fit_loop(model, f, ins, <ide> <ide> if do_validation: <ide> val_outs = test_loop(model, val_f, val_ins, <del> batch_size=batch_size, <ide> steps=validation_steps, <i...
1
PHP
PHP
add missing create() for creating a new record
f62f46562c73b893f06726d267e8010f48a114cc
<ide><path>lib/Cake/Test/Case/Model/Behavior/TreeBehaviorNumberTest.php <ide> public function testDetectInvalidLeft() { <ide> $save[$modelClass]['id'] = $result[$modelClass]['id']; <ide> $save[$modelClass][$leftField] = 0; <ide> <add> $this->Tree->create(); <ide> $this->Tree->save($save); <ide> $result = $thi...
2
Javascript
Javascript
add warnings for extracted components
f295d7f60843a45bb09fc366e497f512c2bc0046
<ide><path>index.js <ide> module.exports = { <ide> return require('./Libraries/Components/Picker/PickerIOS'); <ide> }, <ide> get ProgressBarAndroid(): ProgressBarAndroid { <add> warnOnce( <add> 'progress-bar-android-moved', <add> 'ProgressBarAndroid has been extracted from react-native core and wil...
1
Python
Python
add helper routines for gufuncs
2e8b24e30345c75eb9101ea29e96c9fde48add7f
<ide><path>numpy/linalg/linalg.py <ide> intc, single, double, csingle, cdouble, inexact, complexfloating, \ <ide> newaxis, ravel, all, Inf, dot, add, multiply, identity, sqrt, \ <ide> maximum, flatnonzero, diagonal, arange, fastCopyAndTranspose, sum, \ <del> isfinite, size, finfo, absolut...
1
Text
Text
add missing code highlight
b66e199e5321d925c8077ea8c9f01f95827c6be2
<ide><path>docs/tutorials/essentials/part-4-using-data.md <ide> export const AddPostForm = () => { <ide> value={content} <ide> onChange={onContentChanged} <ide> /> <add> // highlight-next-line <ide> <button type="button" onClick={onSavePostClicked} disabled={!canSave}> <ide> ...
1
PHP
PHP
apply fixes from styleci
20f5605b6cf0d0b3e0aee6bebd007ac24a9ae96c
<ide><path>src/Illuminate/Routing/CompiledRouteCollection.php <ide> public function match(Request $request) <ide> } <ide> } <ide> <del> <ide> return $this->handleMatchedRoute($request, $route); <ide> } <ide>
1
Ruby
Ruby
unify indentation of access modifiers
9db0e68eb60b7634eb26f9b734e7b1e47cc3f2ba
<ide><path>Library/Homebrew/cmd/list.rb <ide> def list <ide> end <ide> end <ide> <del>private <add> private <ide> <ide> def list_unbrewed <ide> dirs = HOMEBREW_PREFIX.children.select{ |pn| pn.directory? }.map{ |pn| pn.basename.to_s } <ide><path>Library/Homebrew/dependency_collector.rb <ide> def build(spe...
7
PHP
PHP
remove todo to satisfy linter
5fc1e97a178248c5bdc7bd48d684ad27475a01d3
<ide><path>tests/TestCase/ORM/Association/HasManyTest.php <ide> public function testSaveReplaceSaveStrategyDependent() <ide> /** <ide> * Test that the associated entities are unlinked and deleted when they are dependent <ide> * <del> * TODO in the future this should change and apply the finder. <add> ...
1
Go
Go
omit empty defaultaddresspools
c161d6564d755c0b6b4356ceff87fbd6a898b675
<ide><path>api/types/types.go <ide> type Info struct { <ide> RuncCommit Commit <ide> InitCommit Commit <ide> SecurityOptions []string <del> ProductLicense string `json:",omitempty"` <del> DefaultAddressPools []NetworkAddressPool <add> ProductLicense string `json:",omitem...
1
PHP
PHP
add extra tests for validation
7fd7ad17cf5077fcbdd12b3d39003b4726afa447
<ide><path>tests/Validation/ValidationValidatorTest.php <ide> public function testBeforeAndAfterWithFormat() <ide> $v = new Validator($trans, ['start' => '31/12/2012', 'ends' => null], ['start' => 'date_format:d/m/Y|before:ends', 'ends' => 'nullable|date_format:d/m/Y|after:start']); <ide> $this->assertT...
1
Javascript
Javascript
fix errors in preparation for v0.17.0
08ec89d2e69f67bd5ffb5690077f91138b50e319
<ide><path>Libraries/Animated/src/AnimatedImplementation.js <ide> var flattenStyle = require('flattenStyle'); <ide> var invariant = require('invariant'); <ide> var requestAnimationFrame = require('requestAnimationFrame'); <ide> <del>import type InterpolationConfigType from 'Interpolation'; <add>import type { Interpola...
2
Ruby
Ruby
call method locally inside the class
5b9505871bc605a39d5ed04ca44fdb6a6eb5a630
<ide><path>activerecord/lib/active_record/tasks/database_tasks.rb <ide> def create_current(environment = env, name = nil) <ide> def prepare_all <ide> seed = false <ide> <del> configs_for(env_name: ActiveRecord::Tasks::DatabaseTasks.env).each do |db_config| <add> configs_for(env_name: env).e...
1
Ruby
Ruby
move appswitch to homebrew-binary
92c359c3e71f8641fe3ba0f14ebab7477022c40c
<ide><path>Library/Homebrew/tap_migrations.rb <ide> TAP_MIGRATIONS = { <ide> "agedu" => "homebrew/headonly", <ide> "aimage" => "homebrew/boneyard", <del> "aws-iam-tools" => "homebrew/boneyard", <ide> "apple-gcc42" => "homebrew/versions", <add> "appswitch" => "homebrew/binary", <add> "aws-iam-tools" => "homebre...
1
Text
Text
add options argument to crypto docs
447715543b5f80cbee6496657179f1393a631fbf
<ide><path>doc/api/crypto.md <ide> added: v6.0.0 <ide> Property for checking and controlling whether a FIPS compliant crypto provider is <ide> currently in use. Setting to true requires a FIPS build of Node.js. <ide> <del>### crypto.createCipher(algorithm, password) <add>### crypto.createCipher(algorithm, password[, o...
1
PHP
PHP
fix json responses
291c64d0255d267a2dd62f6d760424a795a64bf5
<ide><path>src/Illuminate/Http/JsonResponse.php <add><?php namespace Illuminate\Http; <add> <add>class JsonResponse extends \Symfony\Component\HttpFoundation\JsonResponse { <add> <add> /** <add> * {@inheritdoc} <add> */ <add> public function setData($data = array()) <add> { <add> $this->data = json_encode($data); <a...
2
Text
Text
add direct link to examples
29f7adefc53cc2113bc9a2feec49daf284f3212a
<ide><path>README.md <ide> **D3.js** is a JavaScript library for manipulating documents based on data. **D3** helps you bring data to life using HTML, SVG and CSS. D3’s emphasis on web standards gives you the full capabilities of modern browsers without tying yourself to a proprietary framework, combining powerful visu...
1
Python
Python
add fixture for entity recognizer
eac3f700fb243a35b983628823823628c00b1dba
<ide><path>spacy/tests/conftest.py <ide> def stringstore(): <ide> return StringStore() <ide> <ide> <add>@pytest.fixture <add>def en_entityrecognizer(): <add> return English.Defaults.create_entity() <add> <add> <ide> @pytest.fixture <ide> def text_file(): <ide> return StringIO()
1