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
add updated links to anaconda resources
6c2c4f546eacd6c438b21241d3a4a020d4e37c68
<ide><path>guide/english/python/anaconda/index.md <ide> title: Anaconda <ide> --- <ide> <del>![alt text](https://www.anaconda.com/wp-content/themes/anaconda/images/logo-dark.png) <add># Anaconda <add> <add>**Anaconda** is a package manager, environment manager and Python distribution with a collection of over [1,500 o...
1
Python
Python
fix maximum doc length in ud_train script
da7650e84ba8cd75775144c1d37cd0badb7805d1
<ide><path>spacy/cli/ud_train.py <ide> def main(ud_dir, parses_dir, config, corpus, limit=0, use_gpu=-1, vectors_dir=No <ide> nlp = load_nlp(paths.lang, config, vectors=vectors_dir) <ide> <ide> docs, golds = read_data(nlp, paths.train.conllu.open(), paths.train.text.open(), <del> ...
1
Text
Text
add example to #recipes
68f7e20477160dcf8cf58869f4ce77a74a57abc7
<ide><path>readme.md <ide> For the production deployment, you can use the [path alias](https://zeit.co/docs <ide> <ide> - [Setting up 301 redirects](https://www.raygesualdo.com/posts/301-redirects-with-nextjs/) <ide> - [Dealing with SSR and server only modules](https://arunoda.me/blog/ssr-and-server-only-modules) <add...
1
Text
Text
fix typo in "the rails initialization process"
4c9afc79a1357036697a95512f863f1490619ce3
<ide><path>guides/source/initialization.md <ide> on your needs. <ide> <ide> ### `Rails::Server#start` <ide> <del>After `congif/application` is loaded, `server.start` is called. This method is defined like this: <add>After `config/application` is loaded, `server.start` is called. This method is defined like this: <ide...
1
Text
Text
change http links to https in linux.md
b18ba63f5482814d97ef1b5e4064762f9d02d2c8
<ide><path>docs/build-instructions/linux.md <del>See the [Hacking on Atom Core](http://flight-manual.atom.io/hacking-atom/sections/hacking-on-atom-core/#platform-linux) section in the [Atom Flight Manual](http://flight-manual.atom.io). <add>See the [Hacking on Atom Core](https://flight-manual.atom.io/hacking-atom/secti...
1
Ruby
Ruby
combine attr declarations
32315c93480edea8cdf02c97876ffca6b1d99b32
<ide><path>Library/Homebrew/software_spec.rb <ide> require 'version' <ide> <ide> class SoftwareSpec <del> attr_reader :checksum, :mirrors, :specs <del> attr_reader :using # for auditing <add> attr_reader :checksum, :mirrors, :specs, :using <ide> <ide> def initialize url=nil, version=nil <ide> @url = url
1
PHP
PHP
refactor some method names
294c006288ee182eeddf3c6deb23a35032a9219d
<ide><path>src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php <ide> public function has($relation, $operator = '>=', $count = 1, $boolean = 'and', C <ide> ); <ide> } <ide> <add> /** <add> * Get the "has relation" base query instance. <add> * <add> * @param string $relation ...
7
Text
Text
remove key from session by using session.delete
80cbf19453bb3fe22e8d038a9631b8436320788b
<ide><path>guides/source/action_controller_overview.md <ide> class LoginsController < ApplicationController <ide> # "Delete" a login, aka "log the user out" <ide> def destroy <ide> # Remove the user id from the session <del> @_current_user = session[:current_user_id] = nil <add> session.delete(:current_us...
1
Javascript
Javascript
add listener for non-value animated node
68a5ceef312c7e3ac74d616b960c1cfde46a109d
<ide><path>Libraries/Animated/src/__tests__/Animated-test.js <ide> describe('Animated tests', () => { <ide> expect(value1.__getValue()).toBe(1492); <ide> }); <ide> <add> it('should get updates for derived animated nodes', () => { <add> const value1 = new Animated.Value(40); <add> const value2 = ...
5
Python
Python
add pypi classifier for python 3. closes
cdac1209a517bf0808f12340d21ac9d334f69485
<ide><path>setup.py <ide> License :: OSI Approved <ide> Programming Language :: C <ide> Programming Language :: Python <add>Programming Language :: Python :: 3 <ide> Topic :: Software Development <ide> Topic :: Scientific/Engineering <ide> Operating System :: Microsoft :: Windows
1
Text
Text
clarify implementation of tick() in lifecycle docs
bd915caaf7b5ec2b34d433f118fa1ef138f6be6a
<ide><path>docs/docs/state-and-lifecycle.md <ide> We will tear down the timer in the `componentWillUnmount()` lifecycle hook: <ide> } <ide> ``` <ide> <del>Finally, we will implement the `tick()` method that runs every second. <add>Finally, we will implement a method called `tick()` that the `Clock` component will ru...
1
Ruby
Ruby
add lidarr to github_prerelease_allowlist
249088038c1bc410068ce53d8d0b804d38289bda
<ide><path>Library/Homebrew/utils/shared_audits.rb <ide> def github_release_data(user, repo, tag) <ide> "freetube" => :all, <ide> "gitless" => "0.8.8", <ide> "home-assistant" => :all, <add> "lidarr" => :all, <ide> "nuclear" => :all, <ide> "pock" =...
1
Javascript
Javascript
add tests for preventparsing and applynoparserule
3812c101b16a70e315ec349f216884d5fe15706f
<ide><path>lib/NormalModule.js <ide> class NormalModule extends Module { <ide> this._source = new RawSource("throw new Error(" + JSON.stringify(this.error.message) + ");"); <ide> } <ide> <del> applyNoParseRule(rule, request) { <add> applyNoParseRule(rule, content) { <ide> // must start with "rule" if rule is a st...
2
Python
Python
add tapas mlm-only models
5642a555ae89ae489d77c4871911dabe68daf699
<ide><path>src/transformers/__init__.py <ide> "TapasForSequenceClassification", <ide> "TapasModel", <ide> "TapasPreTrainedModel", <add> "load_tf_weights_in_tapas", <ide> ] <ide> ) <ide> _import_structure["models.transfo_xl"].extend( <ide> TapasF...
5
Javascript
Javascript
extract a variable
1102fc5c1190b08ad5032333975ec57d9a0b5254
<ide><path>src/devtools/views/Components/TreeContext.js <ide> function reduceSearchState(store: Store, state: State, action: Action): State { <ide> didRequestSearch = true; <ide> } <ide> if (searchText !== prevSearchText) { <del> if (searchResults.indexOf(selectedElementID) === -1) { <add> const newSearch...
1
PHP
PHP
fix paginator options when disabled
dc41a1ff56a4ea07836874883c8abde5cb79de36
<ide><path>lib/Cake/Test/Case/View/Helper/PaginatorHelperTest.php <ide> public function testPagingLinks() { <ide> ) <ide> ); <ide> <add> $result = $this->Paginator->prev('<i class="fa fa-angle-left"></i>', array('escape' => false), null, array('class' => 'prev disabled')); <add> $expected = array( <add> 'span...
2
PHP
PHP
use methods that exist on requestinterface
edd7109b6cd186004ca32ad0578294d504649364
<ide><path>src/Http/Cookie/CookieCollection.php <ide> public function getIterator() <ide> public function addToRequest(RequestInterface $request) <ide> { <ide> $uri = $request->getUri(); <del> $path = $uri->getPath(); <del> $host = $uri->getHost(); <del> $scheme = $uri->getScheme();...
2
Text
Text
fix several typos in the documentation
3c6aa163a3fd04c344a2072ab379f0778734b269
<ide><path>docs/installation/mac.md <ide> The `ACTIVE` machine, in this case `default`, is the one your environment is poi <ide> ![Bad Address](images/bad_host.png) <ide> <ide> This didn't work. The reason it doesn't work is your `DOCKER_HOST` address is <del> not the localhost address (0.0.0.0) but is inst...
2
Python
Python
fix flaky test in preprocessing
42b3d37a54545882699283b5764cf3c997f8d9cd
<ide><path>tests/keras/preprocessing/test_sequence.py <ide> def test_skipgrams(): <ide> couples, labels = skipgrams(np.arange(5), vocabulary_size=5, window_size=1, <ide> categorical=True) <ide> for couple in couples: <del> assert couple[0] - couple[1] < 3 <add> asse...
1
Java
Java
improve precondition checks in testclassscanner
feb2a30910fe6410ffa2912fe547883de3add6c6
<ide><path>spring-test/src/main/java/org/springframework/test/context/aot/TestClassScanner.java <ide> package org.springframework.test.context.aot; <ide> <ide> import java.lang.annotation.Annotation; <add>import java.nio.file.Files; <ide> import java.nio.file.Path; <ide> import java.util.Arrays; <ide> import java.util...
1
PHP
PHP
return the used traits from setuptraits
4586bb74015791dffda1ae6275c94db8a651f498
<ide><path>src/Illuminate/Foundation/Testing/TestCase.php <ide> protected function refreshApplication() <ide> /** <ide> * Boot the testing helper traits. <ide> * <del> * @return void <add> * @return array <ide> */ <ide> protected function setUpTraits() <ide> { <ide> protected function...
1
Python
Python
remove print statements from test
376c5813a75e4ecb6770bf62aa6c7cbbe3f9387a
<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
Text
Text
update the attribute table
ffe8546c7d76fc961ad02a61b7d5145b34147489
<ide><path>fixtures/attribute-behavior/AttributeTableSnapshot.md <ide> ## `capture` (on `<input>` inside `<div>`) <ide> | Test Case | Flags | Result | <ide> | --- | --- | --- | <del>| `capture=(string)`| (changed)| `<empty string>` | <del>| `capture=(empty string)`| (initial)| `<null>` | <del>| `capture=(array with str...
1
Mixed
Text
add recommended videos
fde956ea24fea1f30f5fe0c801a6b8c3750eb54e
<ide><path>docs/tutorials/videos.md <add>--- <add>id: videos <add>title: 'Videos' <add>sidebar_label: 'Videos' <add>description: 'The official Fundamentals tutorial for Redux: learn the fundamentals of using Redux' <add>hide_title: true <add>--- <add> <add>import { DetailedExplanation } from '../components/DetailedExpl...
3
Ruby
Ruby
add missing comment out [ci skip]
ec3933e14c8b0df3fc306c59d63e3f10c51cb1e1
<ide><path>activesupport/lib/active_support/core_ext/array/access.rb <ide> def to(position) <ide> # <ide> # people = ["David", "Rafael", "Aaron", "Todd"] <ide> # people.without "Aaron", "Todd" <del> # => ["David", "Rafael"] <add> # # => ["David", "Rafael"] <ide> # <ide> # Note: This is an optimiza...
1
Javascript
Javascript
remove unused module alias
4c32dd96b7f910a1640390c35be6e60997afb9eb
<ide><path>server/build/babel/preset.js <ide> module.exports = { <ide> 'next/head': require.resolve('../../../lib/head'), <ide> 'next/document': require.resolve('../../../server/document'), <ide> 'next/router': require.resolve('../../../lib/router'), <del> 'styled-jsx/style': requ...
1
Java
Java
add additional test for daylight savings glitch
6914aff825bfbf58291fa39a131471f312eafe04
<ide><path>spring-context/src/test/java/org/springframework/scheduling/support/CronTriggerTests.java <ide> public CronTriggerTests(Date date, TimeZone timeZone) { <ide> @Parameters <ide> public static List<Object[]> getParameters() { <ide> List<Object[]> list = new ArrayList<Object[]>(); <del> list.add(new Object[...
1
Text
Text
add shirtstarter to examples of production apps
6485e219563c1cf7e4e871ed0699937a2c824990
<ide><path>docs/docs/examples.md <ide> prev: complementary-tools.html <ide> * **[Instagram.com](http://instagram.com/)** Is 100% built on React. <ide> * **[Facebook.com](http://www.facebook.com/)** 's commenting interface, ads creation flows, and page insights. <ide> * **[Khan Academy](http://khanacademy.org/)** Uses R...
1
Ruby
Ruby
fix regression in numericality validations
9c330798b0a77762b72a833519e10b01738cf79c
<ide><path>activemodel/lib/active_model/validations/numericality.rb <ide> def validate_each(record, attr_name, value) <ide> return <ide> end <ide> <add> if raw_value.is_a?(String) <add> value = parse_raw_value_as_a_number(raw_value) <add> end <add> <ide> options.slice(*...
1
Text
Text
fix some translation bug
bea24ca944a7f3bdf814af3ae2802a4f7d976349
<ide><path>docs/docs/02-displaying-data.zh-CN.md <ide> --- <ide> id: displaying-data-zh-CN <del>title: 显示数据 Displaying Data <add>title: 显示数据 <ide> layout: docs <ide> permalink: displaying-data-zh-CN.html <ide> prev: why-react-zh-CN.html <ide> setInterval(function() { <ide> }, 500); <ide> ``` <ide> <del>## Reactive Upd...
1
PHP
PHP
update bootstrap version
25559cdc14066566658d6c9a7efd8a0e1d0ffccd
<ide><path>src/Illuminate/Foundation/Console/Presets/Bootstrap.php <ide> public static function install() <ide> protected static function updatePackageArray(array $packages) <ide> { <ide> return [ <del> 'bootstrap' => '^4.0.0-beta.3', <add> 'bootstrap' => '^4.0.0', <ide> ...
1
Ruby
Ruby
fix tests for deprecating sha1
28b4923dad7a421f6f6d2598a5661a147268a4c7
<ide><path>Library/Homebrew/test/test_checksum.rb <ide> <ide> class ChecksumTests < Homebrew::TestCase <ide> def test_empty? <del> assert_empty Checksum.new(:sha1, "") <add> assert_empty Checksum.new(:sha256, "") <ide> end <ide> <ide> def test_equality <del> a = Checksum.new(:sha1, TEST_SHA1) <del> ...
6
Javascript
Javascript
add more tests for sizzle attributes
8084ab24bc269af22e0cfd4af77a7a17eb39729a
<ide><path>test/unit/selector.js <ide> test("name", function() { <ide> form.remove(); <ide> }); <ide> <del>test( "comma selectors", function() { <add>test( "selectors with comma", function() { <ide> expect( 4 ); <ide> <ide> var fixture = jQuery( "<div><h2><span/></h2><div><p><span/></p><p/></div></div>" ); <ide> t...
1
Python
Python
fix naming conflict and formatting
bea863acd255407887806d1089c1f63896cdf084
<ide><path>spacy/lang/zh/__init__.py <ide> def to_bytes(self, **kwargs): <ide> return util.to_bytes(serializers, []) <ide> <ide> def from_bytes(self, data, **kwargs): <del> data = {"features_b": b"", "weights_b": b"", "processors_data": None} <del> # pkuseg_features_b = b"" <del> # pku...
1
Text
Text
clarify link to above section
6bcb3bd3678f3975e79a4688a1766ad940b5cfc4
<ide><path>docs/Homebrew-brew-Maintainer-Guide.md <ide> There are many checks that run on every PR. The following is a quick list of the <ide> any new/changed dependencies. See [Type Checking With Sorbet](Typechecking.md) for more information about RBI files <ide> and typechecking. <ide> - `Triage / review`: This v...
1
Text
Text
add translation for titles [portuguese]
c1c0b3b33fe9ec78fa4b10f80e6844b4468ac1fb
<ide><path>curriculum/challenges/portuguese/03-front-end-libraries/jquery/remove-an-element-using-jquery.portuguese.md <ide> videoUrl: '' <ide> localeTitle: Remover um elemento usando jQuery <ide> --- <ide> <del>## Description <del><section id="description"> Agora vamos remover um elemento HTML da sua página usando jQ...
1
Python
Python
run tests for __init__.pxd
586bc6002b66624ff17db4213381e985cea80cf2
<ide><path>numpy/core/setup.py <ide> def generate_umath_c(ext, build_dir): <ide> <ide> config.add_subpackage('tests') <ide> config.add_data_dir('tests/data') <add> config.add_data_dir('tests/examples') <ide> <ide> config.make_svn_version_py() <ide> <ide><path>numpy/core/tests/test_cython.py <ide> def ...
2
Java
Java
add sealing assertion in fabric
93b568cc510c09ffa03b86a0c7605885580c852c
<ide><path>ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java <ide> private void applyUpdatesRecursive(ReactShadowNode node, float absoluteX, float <ide> } <ide> <ide> int tag = node.getReactTag(); <del> if (mRootShadowNodeRegistry.getNode(tag) == null) { <add> if (getRootNode(tag)...
2
Python
Python
return uniquenesstogethermodel to previous state
aa7ed316d842c06d7eb6907d4481d72c747991d7
<ide><path>tests/test_validators.py <ide> def test_doesnt_pollute_model(self): <ide> # ----------------------------------- <ide> <ide> class UniquenessTogetherModel(models.Model): <del> race_name = models.CharField(max_length=100, null=True) <del> position = models.IntegerField(null=True) <add> race_name = mo...
1
PHP
PHP
remove extra whitespace
256da430900442bc077fd02a5f20b49fa13a848d
<ide><path>src/View/Helper/FormHelper.php <ide> public function submit($caption = null, array $options = []) <ide> $caption = __d('cake', 'Submit'); <ide> } <ide> $options += [ <del> 'type' => 'submit', <add> 'type' => 'submit', <ide> 'secure' => false, <id...
1
Ruby
Ruby
raise exception when building invalid mime type
b5e8942c95078945ff09a83b2fc03a0ae7e35953
<ide><path>actionpack/lib/action_dispatch/http/mime_type.rb <ide> def register(string, symbol, mime_type_synonyms = [], extension_synonyms = [], s <ide> def parse(accept_header) <ide> if !accept_header.include?(",") <ide> accept_header = accept_header.split(PARAMETER_SEPARATOR_REGEXP).first <add...
4
Ruby
Ruby
remove hack required for ruby 1.8.7
13488183bd3fe9d0f8e84d66075c9c7d4cdc931d
<ide><path>Library/Homebrew/emoji.rb <ide> module Emoji <ide> class << self <del> def tick <del> # necessary for 1.8.7 unicode handling since many installs are on 1.8.7 <del> @tick ||= ["2714".hex].pack("U*") <del> end <del> <del> def cross <del> # necessary for 1.8.7 unicode handling since ma...
2
Text
Text
add gitter badge to readme
da5bb3774501d0edaa6bd6958b8cab5980ea336b
<ide><path>README.md <add>[![Join the chat at https://gitter.im/moment/moment](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/moment/moment?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) <add> <ide> [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-im...
1
Java
Java
add explicit error message if e.getmessage is null
c6614f117f19a2c689e5e606adc10440fe75fb0a
<ide><path>ReactAndroid/src/main/java/com/facebook/react/modules/network/NetworkingModule.java <ide> public void onFailure(Call call, IOException e) { <ide> return; <ide> } <ide> removeRequest(requestId); <del> ResponseUtil.onRequestError(eventEmitter, requestId, e.getMe...
1
Javascript
Javascript
use async/await in test-debugger-sb-before-load
6355cd8542ddef8c2620f48bebdfecb6545cf7a7
<ide><path>test/sequential/test-debugger-sb-before-load.js <ide> const assert = require('assert'); <ide> const path = require('path'); <ide> <ide> // Using sb before loading file. <del>{ <del> const scriptFullPath = fixtures.path('debugger', 'cjs', 'index.js'); <del> const script = path.relative(process.cwd(), scrip...
1
Ruby
Ruby
invoke non interactive shell from brew edit
fe32e6343d25df14012378ddecd8e84d84adc7ec
<ide><path>Library/Homebrew/utils.rb <ide> def exec_editor *args <ide> # Invoke bash to evaluate env vars in $EDITOR <ide> # This also gets us proper argument quoting. <ide> # See: https://github.com/mxcl/homebrew/issues/5123 <del> system "bash", "-c", which_editor + ' "$@"', "--", *args <add> system "bash", "-...
1
Javascript
Javascript
add example to the view#disconnectoutlet docs
8008c82cae5910586f2c5747ae79ea6152dcd05e
<ide><path>packages/ember-routing/lib/ext/view.js <ide> Ember.View.reopen({ <ide> Allows you to connect a unique view as the parent <ide> view's `{{outlet}}`. <ide> <add> Example <add> <ide> ```javascript <add> var MyView = Ember.View.extend({ <add> template: Ember.Handlebars.compile('Child ...
1
Python
Python
fix the tests on 1.3 and head
9c007a6197ca5125bed774cf3089de7759e755d1
<ide><path>djangorestframework/tests/request.py <ide> from django.conf.urls.defaults import patterns <ide> from django.contrib.auth.models import User <ide> from django.test import TestCase, Client <del>from django.test.client import MULTIPART_CONTENT, BOUNDARY, encode_multipart <ide> <ide> from djangorestframework im...
1
Javascript
Javascript
handle immediate synthetic transforms properly
8acb416ad0532d249a0342f39103dd09fbbeeb2e
<ide><path>lib/_stream_passthrough.js <ide> function PassThrough(options) { <ide> } <ide> <ide> PassThrough.prototype._transform = function(chunk, output, cb) { <del> output(chunk); <del> cb(); <add> cb(null, chunk); <ide> }; <ide><path>lib/_stream_readable.js <ide> var StringDecoder; <ide> <ide> util.inherits(Rea...
3
Python
Python
remove resnext networks (bug) and add tests
99ebe7759fd317aedae734865f68dd4387100081
<ide><path>keras/applications/__init__.py <ide> def wrapper(*args, **kwargs): <ide> from .nasnet import NASNetMobile, NASNetLarge <ide> from .resnet import ResNet101, ResNet152 <ide> from .resnet_v2 import ResNet50V2, ResNet101V2, ResNet152V2 <del>from .resnext import ResNeXt50, ResNeXt101 <ide><path>tests/integration_...
2
Text
Text
add example links in python for formula authors
491bb469e75c772d897c29645453a0988a1c7a4a
<ide><path>docs/Python-for-Formula-Authors.md <ide> <ide> This document explains how to successfully use Python in a Homebrew formula. <ide> <del>Homebrew draws a distinction between Python **applications** and Python **libraries**. The difference is that users generally do not care that applications are written in P...
1
Ruby
Ruby
use the doc conventions for arguments in all cases
18792069ab7beec08abaa34eb8c80fad8836b25f
<ide><path>actionpack/lib/action_view/helpers/date_helper.rb <ide> def select_time(datetime = Time.current, options = {}, html_options = {}) <ide> end <ide> <ide> # Returns a select tag with options for each of the seconds 0 through 59 with the current second selected. <del> # The <tt>second</tt> can ...
1
Javascript
Javascript
fix incorrect logic
8c261180d36bf1400503f0b9ed0905b8d7b38659
<ide><path>client/commonFramework/step-challenge.js <ide> window.common = (function({ $, common = { init: [] }}) { <ide> } <ide> <ide> common.init.push(function($) { <del> if (common.challengeType === '7') { <add> if (common.challengeType !== '7') { <ide> return null; <ide> } <ide>
1
Ruby
Ruby
add focus support
0b69ca85f763bb0db210384ba2c4a93049bb7b35
<ide><path>Library/Homebrew/test/spec_helper.rb <ide> RSpec.configure do |config| <ide> config.order = :random <ide> <add> config.filter_run_when_matching :focus <add> <ide> config.include(Test::Helper::Shutup) <ide> config.include(Test::Helper::Fixtures) <ide> config.include(Test::Helper::Formula)
1
Text
Text
add prerequisits to contributing.md (#40)
27b65b94a7c81499edc94be41a0e4873ff6408ee
<ide><path>packages/learn/CONTRIBUTING.md <ide> # Contributing <ide> <add>Prerequistits| Minimum Version <add>|---|---| <add>node | ^8.11.x <add>[yarn](https://yarnpkg.com/en/) | ^1.3.0 <add> <add> <ide> 1. Fork the repo <ide> 2. clone locally <ide> 3. `yarn install` <ide> 4. `git branch -b <your-branch-name>` <ide> 5...
1
Javascript
Javascript
fix auth0 example
5014362a7a6359fac8fc1bb8a02eae6736805d7f
<ide><path>examples/auth0/pages/advanced/ssr-profile.js <ide> export async function getServerSideProps({ req, res }) { <ide> // Here you can check authentication status directly before rendering the page, <ide> // however the page would be a serverless function, which is more expensive and <ide> // slower than a ...
1
Go
Go
add nice error message
cee62a95a2086dace52f2492de781aa333abca3b
<ide><path>api/server/server.go <ide> func postImagesPush(eng *engine.Engine, version version.Version, w http.Response <ide> } else { <ide> // the old format is supported for compatibility if there was no authConfig header <ide> if err := json.NewDecoder(r.Body).Decode(authConfig); err != nil { <del> return err ...
1
Javascript
Javascript
allow console.warn from tests
673c630ee01d1709322d75c94c3b37ec6cc20b03
<ide><path>test/load.js <ide> require("./XMLHttpRequest"); <ide> module.exports = function() { <ide> var files = [].slice.call(arguments).map(function(d) { return "src/" + d; }), <ide> expression = "d3", <del> sandbox = {Date: Date}; // so we can use deepEqual in tests <add> sandbox = {console: consol...
1
Text
Text
remove spurious new line in changelog_v6.md
dabac8a2fb285ae838cd30d5bdbdb42d2d345706
<ide><path>doc/changelogs/CHANGELOG_V6.md <ide> October 2016. <ide> <ide> <a id="6.3.1"></a> <del> <ide> ## 2016-07-21, Version 6.3.1 (Current), @evanlucas <ide> <ide> ### Notable changes
1
Python
Python
fix failing test in linode driver
bcc45a65c6832ea2cac748914fdb0ff65bdcf53a
<ide><path>test/test_linode.py <ide> def test_list_nodes(self): <ide> nodes = self.driver.list_nodes() <ide> self.assertEqual(len(nodes), 1) <ide> node = nodes[0] <del> self.assertEqual(node.id, 8098) <add> self.assertEqual(node.id, "8098") <ide> self.assertEqual(node.name,...
1
Text
Text
add missing closing quote
d92e75cb30cc1f31a7ba8132e94686d6aca58d24
<ide><path>docs/advanced-features/react-18.md <ide> You can then import other server or client components from any server component. <ide> ```jsx <ide> // pages/home.server.js <ide> <del>import React, { Suspense } from 'react <add>import React, { Suspense } from 'react' <ide> <ide> import Profile from '../components/...
1
Python
Python
remove change from other issue
1800a1ebbb95bd761ae4ed005a726e2e82f2957a
<ide><path>libcloud/compute/drivers/gce.py <ide> def ex_list_project_images(self, ex_project=None, ex_include_deprecated=False): <ide> new_request_path = save_request_path.replace(self.project, proj) <ide> self.connection.request_path = new_request_path <ide> try: <del> ...
1
Javascript
Javascript
show 0.8.0 even after 0.8.1 ships
37bdd36d70e86e3a3644bc73349e2f6f18909ea0
<ide><path>tools/blog/generate.js <ide> function buildFeeds(data) { <ide> } <ide> <ide> // filter non-latest release notices out of main feeds. <add> // still show the first stable release of the family, since <add> // it usually is an important milestone with benchmarks and stuff. <ide> var main = posts.filte...
1
Javascript
Javascript
use native driver even if gestures are enabled
cbc413ba87caffc40ae67040ce85340908f8bc07
<ide><path>Libraries/CustomComponents/NavigationExperimental/NavigationCardStack.js <ide> */ <ide> 'use strict'; <ide> <add>const NativeAnimatedModule = require('NativeModules').NativeAnimatedModule; <ide> const NavigationCard = require('NavigationCard'); <ide> const NavigationCardStackPanResponder = require('Navigat...
1
Javascript
Javascript
add a missing test for jqlite#text
3cbc8e5563d0f272838a65636989544519873492
<ide><path>test/jqLiteSpec.js <ide> describe('jqLite', function() { <ide> expect(element.text('xyz') == element).toBeTruthy(); <ide> expect(element.text()).toEqual('xyzxyz'); <ide> }); <add> <add> it('should return text only for element or text nodes', function() { <add> expect(jqLite('<div>foo<...
1
Ruby
Ruby
reduce object allocations in utc_offset
365aa654d8bbe2889b75df2f5147bc25c54fa751
<ide><path>activesupport/lib/active_support/values/time_zone.rb <ide> def utc_offset <ide> if @utc_offset <ide> @utc_offset <ide> else <del> @current_period ||= tzinfo.try(:current_period) <del> @current_period.try(:utc_offset) <add> @current_period ||= tzinfo.current_period if ...
1
Text
Text
add response to swarm/init example (fixes
a2a0a03e2b801545b2e3fb9e8476c76370da9175
<ide><path>docs/reference/api/docker_remote_api_v1.24.md <ide> Inspect swarm <ide> <ide> `POST /swarm/init` <ide> <del>Initialize a new swarm <add>Initialize a new swarm. The body of the HTTP response includes the node ID. <ide> <ide> **Example request**: <ide> <ide> Initialize a new swarm <ide> **Example response*...
1
Text
Text
add french translation
bd8a2b9b140108e38a9c6844c53ab8ac669b5177
<ide><path>threejs/lessons/fr/threejs-scenegraph.md <del>Title: Graphique de scène de Three.js <del>Description: Qu'est-ce qu'un graphique de scène ? <del>TOC: Graphique de scène <add>Title: Graphe de scène Three.js <add>Description: What's a scene graph? <add>TOC: Scenegraph <ide> <ide> Cet article fait partie d'une ...
1
Text
Text
fix broken link in rails 3.0 release_notes
4b802bc4f1a3bd35b15d80d1d62280d96114aef5
<ide><path>guides/source/3_0_release_notes.md <ide> More Information: <ide> <ide> Major re-write was done in the Action View helpers, implementing Unobtrusive JavaScript (UJS) hooks and removing the old inline AJAX commands. This enables Rails to use any compliant UJS driver to implement the UJS hooks in the helpers. ...
1
Ruby
Ruby
initialize git when generating plugins
8541ad319a6546d87bf8f5b758e8bad4fb1ec5b4
<ide><path>railties/lib/rails/generators/rails/plugin/plugin_generator.rb <ide> def gemfile_entry <ide> append_file gemfile_in_app_path, entry <ide> end <ide> end <add> <add> def version_control <add> if !options[:skip_git] && !options[:pretend] <add> run "git init", capture: options[:...
2
Ruby
Ruby
make path instead of symlink for lib/r
3a535ed36b346694ab9f2143ef5f28e314318520
<ide><path>Library/Homebrew/keg.rb <ide> def link(mode = OpenStruct.new) <ide> when /^perl5/ then :mkpath <ide> when "php" then :mkpath <ide> when /^python[23]\.\d/ then :mkpath <add> when /^R/ then :mkpath <ide> when /^ruby/ then :mkpath <ide> # Everything else is symlinked to the ce...
1
PHP
PHP
raise exceptions on missing elements
4e49b63140ef78712e26922269ae80b052bdf0df
<ide><path>src/View/Error/MissingElementException.php <add><?php <add>/** <add> * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) <add> * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) <add> * <add> * Licensed under The MIT License <add> * Redistributions of files must retain th...
3
Text
Text
fix minor punctuation issue in path.md
35d82af78c1bbd05baa783b3b25f2eb7b48d1848
<ide><path>doc/api/path.md <ide> For instance, given the sequence of path segments: `/foo`, `/bar`, `baz`, <ide> calling `path.resolve('/foo', '/bar', 'baz')` would return `/bar/baz` <ide> because `'baz'` is not an absolute path but `'/bar' + '/' + 'baz'` is. <ide> <del>If after processing all given `path` segments an...
1
PHP
PHP
fix bug in model names
d67977bba04cd04e6c55de4206e3632f9c34a8d1
<ide><path>cake/scripts/bake.php <ide> function __bakeViews($controllerName, $controllerPath, $admin= null, $admin_url <ide> <ide> //-------------------------[INDEX]-------------------------// <ide> $indexView = null; <del> if(!empty($modelObj->alias)) { <del> foreach ($modelObj->alias as $key => $value) { <del...
1
Javascript
Javascript
require project completion to claim certs
1f65b3b7eb026a5cdc9e0b39fd7f1ddaabdac57d
<ide><path>curriculum/getChallenges.js <ide> ${getFullPath('english')} <ide> // while the auditing is ongoing, we default to English for un-audited certs <ide> // once that's complete, we can revert to using isEnglishChallenge(fullPath) <ide> const useEnglish = lang === 'english' || !isAuditedCert(lang, sup...
1
PHP
PHP
move tests for http\client
0b156617b500857654ac48155434bdc71c69e1c2
<add><path>tests/TestCase/Http/Client/Adapter/StreamTest.php <del><path>tests/TestCase/Network/Http/Adapter/StreamTest.php <ide> * @since 3.0.0 <ide> * @license http://www.opensource.org/licenses/mit-license.php MIT License <ide> */ <del>namespace Cake\Test\TestCase\Network\Http\Adapter; <add>namespace...
8
PHP
PHP
apply fixes from styleci
16156447e4a0e47b4b46ade43731296f4b033f04
<ide><path>src/Illuminate/Foundation/Console/PolicyMakeCommand.php <ide> namespace Illuminate\Foundation\Console; <ide> <ide> use Illuminate\Console\GeneratorCommand; <del>use Illuminate\Contracts\Auth\Access\Authorizable; <ide> use Illuminate\Support\Str; <ide> use Symfony\Component\Console\Input\InputOption; <ide> ...
1
Java
Java
fix layout animation crash
9fb31d15381647c7c7a28ebe28f8a8676d65eb19
<ide><path>ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java <ide> public synchronized void manageChildren( <ide> arrayContains(tagsToDelete, viewToRemove.getId())) { <ide> // The view will be removed and dropped by the 'delete' layout animation <ide> ...
3
Ruby
Ruby
use a set to track failed downloads
3a96a1a594d688225675d0b9bd7f90fd4669b7a5
<ide><path>Library/Homebrew/cmd/fetch.rb <ide> def fetch_patch p <ide> private <ide> <ide> def retry_fetch? f <del> @fetch_failed ||= {} <del> already_failed = @fetch_failed.fetch(f.name, false) <del> <del> if already_failed || !ARGV.include?("--retry") <add> @fetch_failed ||= Set.new <add> if ARGV....
1
Ruby
Ruby
fix subversion remote check logic
bbf71921eb2b2cce5072bb615fac3a2bc96fcfc7
<ide><path>Library/Homebrew/dev-cmd/audit.rb <ide> def audit_urls <ide> elsif strategy <= SubversionDownloadStrategy <ide> next unless DevelopmentTools.subversion_handles_most_https_certificates? <ide> next unless Utils.svn_available? <del> if Utils.svn_remote_exists url <add> unless...
1
Text
Text
update changelog for 1.5.0-beta.2
3bcd9bdca42b1398322a9f14588248ff7b870a2b
<ide><path>CHANGELOG.md <ide> # Ember Changelog <ide> <add> <add>### Ember 1.5.0-beta.2 (February 23, 2014) <add> <add>* [SECURITY] Ensure that `ember-routing-auto-location` cannot be forced to redirect to another domain. <add>* [BUGFIX beta] Handle ES6 transpiler errors. <add>* [BUGFIX beta] Ensure namespaces are cle...
1
PHP
PHP
fix failing tests and errors in php72
8d896ac6e503d497b243665c8f74b4d5316efec4
<ide><path>src/Console/ConsoleOptionParser.php <ide> public function help(?string $subcommand = null, string $format = 'text', int $w <ide> $message = sprintf( <ide> 'Unable to find the `%s %s` subcommand. See `bin/%s %s --help`.', <ide> $rootCommand, <del> $command, <add> ...
3
Python
Python
update the small nanmedian threshold
3b31fa130959bbc5544e7b5fa5226076466d6d88
<ide><path>numpy/lib/nanfunctions.py <ide> def _nanmedian(a, axis=None, out=None, overwrite_input=False): <ide> else: <ide> # for small medians use sort + indexing which is still faster than <ide> # apply_along_axis <del> if a.shape[axis] < 400: <add> if a.shape[axis] < 1000: <ide> ...
1
PHP
PHP
use implicit null instead of explicit
3435710575ad1aa9a302cbd3ac7b7a93946bb8c0
<ide><path>database/factories/ModelFactory.php <ide> */ <ide> <ide> $factory->define(App\User::class, function (Faker\Generator $faker) { <del> static $password = null; <add> static $password; <ide> <ide> return [ <ide> 'name' => $faker->name,
1
Mixed
Text
fix broken references
048b3de22d843a8dd3d00b00b702205ca90dbf58
<ide><path>doc/api/crypto.md <ide> the `crypto`, `tls`, and `https` modules and are generally specific to OpenSSL. <ide> [`hmac.update()`]: #crypto_hmac_update_data_input_encoding <ide> [`sign.sign()`]: #crypto_sign_sign_private_key_output_format <ide> [`sign.update()`]: #crypto_sign_update_data_input_encoding <del>[`t...
4
Javascript
Javascript
add w3cpointerevent example to rntester android
50070ec7c64b4d9ad087606c2a4eee5eb80b9ca9
<ide><path>packages/rn-tester/js/examples/Experimental/W3CPointerEventsExample.js <add>/** <add> * Copyright (c) Meta Platforms, Inc. and affiliates. <add> * <add> * This source code is licensed under the MIT license found in the <add> * LICENSE file in the root directory of this source tree. <add> * <add> * @format <a...
2
Javascript
Javascript
move getsafepropertyname to utils
b1e12fb0d57f99f80cbf93d18a6c3ee3bba0b4d4
<ide><path>packages/react-native-codegen/src/generators/modules/ObjCppUtils/GenerateStructs.js <ide> 'use strict'; <ide> <ide> import type {ObjectParamTypeAnnotation} from '../../../CodegenSchema'; <del>const {flatObjects, capitalizeFirstLetter} = require('./Utils'); <add>const { <add> flatObjects, <add> capitalizeF...
2
Text
Text
update http urls to https in governance.md
7f446f0fb20d53d68f5745f22852aafae7bd2922
<ide><path>GOVERNANCE.md <ide> The TSC follows a [Consensus Seeking][] decision making model as described by <ide> the [TSC Charter][]. <ide> <ide> [TSC Charter]: https://github.com/nodejs/TSC/blob/master/TSC-Charter.md <del>[Consensus Seeking]: http://en.wikipedia.org/wiki/Consensus-seeking_decision-making <add>[Cons...
1
Java
Java
reintroduce suppression of deprecation warning
802763d26f4aa263df2d474746f3963912f8660b
<ide><path>spring-test/src/main/java/org/springframework/test/context/junit4/SpringJUnit4ClassRunner.java <ide> protected Class<? extends Throwable> getExpectedException(FrameworkMethod framew <ide> * @see #getJUnitTimeout(FrameworkMethod) <ide> */ <ide> @Override <add> // Retain the following warning suppression ...
1
Ruby
Ruby
move jscoverage to the boneyard
099954499ffbea9e74ea1482cb03fa4da943373a
<ide><path>Library/Homebrew/tap_migrations.rb <ide> 'aimage' => 'homebrew/boneyard', <ide> 'cmucl' => 'homebrew/binary', <ide> 'lmutil' => 'homebrew/binary', <add> 'jscoverage' => 'homebrew/boneyard', <ide> }
1
Javascript
Javascript
rewrite angular-bootstrap.js to use $script
e40f8d829f10de3d73aa1026591fe014fe54eca9
<ide><path>src/angular-bootstrap.js <ide> * (c) Dustin Diaz, Jacob Thornton 2011 <ide> * License: MIT <ide> */ <del>(function(a,b){typeof module!="undefined"?module.exports=b():typeof define=="function"&&define.amd?define(a,b):this[a]=b()})("$script",function(){function q(a,b,c){for(c=0,j=a.length;c<j;++c)if(!b(a[c]...
1
PHP
PHP
remove initialize() call
8483f9d45605b793f46daf7c53410431c3d9efe5
<ide><path>lib/Cake/Test/TestCase/Controller/Component/SecurityComponentTest.php <ide> public function testConstructorSettingProperties() { <ide> 'requireGet' => array('index'), <ide> 'validatePost' => false, <ide> ); <del> $event = new Event('Controller.initialize'); <ide> $Security = new SecurityComponent(...
1
Java
Java
replace relevant code with lambda
4b1478d830f3cdbc4eb0d50d84f152d7900f30c3
<ide><path>spring-aop/src/main/java/org/springframework/aop/aspectj/DeclareParentsAdvisor.java <ide> private DeclareParentsAdvisor(Class<?> interfaceType, String typePattern, Class< <ide> ClassFilter typePatternFilter = new TypePatternClassFilter(typePattern); <ide> <ide> // Excludes methods implemented. <del> Cl...
52
Text
Text
add guides for chinese contributors
f7148650ce27f336e7f9caa958b1ec2da5d588f1
<ide><path>docs/chinese-guides/news-translations.md <add># freeCodeCamp 文章翻译计划 <add> <add>freeCodeCamp 英文社区的成员发布了大量[优质文章](https://www.freecodecamp.org/news/),分享前端、后端、 Android、iOS、产品、设计、区块链、人工智能等领域的内容,以及学习编程的经历和求职经验。我们一起把这些文章翻译成中文,分享给更多读者。 <add> <add>## 参与翻译计划你会获得 <add>- 持续提升你的英文水平和多人协作的经验 <add>- 快速提高你的 Git 操作熟练度 <add>-...
3
Mixed
Javascript
add writeearlyhints function to serverresponse
58ab0e28210b4107f50a419ae24c97b376d1ff18
<ide><path>doc/api/http.md <ide> buffer. Returns `false` if all or part of the data was queued in user memory. <ide> added: v0.3.0 <ide> --> <ide> <del>Sends a HTTP/1.1 100 Continue message to the client, indicating that <add>Sends an HTTP/1.1 100 Continue message to the client, indicating that <ide> the request body ...
11
Mixed
Ruby
raise nodatabaseerror when db does not exist
f0311c24876f78ed2054fb1e5a24d38a4d0db4ac
<ide><path>activerecord/CHANGELOG.md <ide> <ide> *Carlos Antonio da Silva* <ide> <del>* When connecting to a non-existant postgresql database, the error: <add>* When connecting to a non-existant database, the error: <ide> `ActiveRecord::NoDatabaseError` will now be raised. When being used with Rails <ide>...
6
Go
Go
add some documentation to pkg/system
e94a48ffc8fa287c4b1b441c5308999693c58b75
<ide><path>pkg/system/lstat.go <ide> import ( <ide> "syscall" <ide> ) <ide> <add>// Lstat takes a path to a file and returns <add>// a system.Stat_t type pertaining to that file. <add>// <add>// Throws an error if the file does not exist <ide> func Lstat(path string) (*Stat_t, error) { <ide> s := &syscall.Stat_t{} <...
10
Ruby
Ruby
make digest cache work in development
40f79da8f22d301f87873669d7355346049eccf2
<ide><path>actionview/lib/action_view/digestor.rb <ide> class Digestor <ide> @@cache = ThreadSafe::Cache.new <ide> @@digest_monitor = Monitor.new <ide> <add> class PerRequestDigestCacheExpiry < Struct.new(:app) # :nodoc: <add> def call(env) <add> ActionView::Digestor.cache.clear <add> ...
4
Javascript
Javascript
use regex to hide hikes
c7de26f3d9f877bb47807937d8239cb2db09f8e4
<ide><path>index.js <ide> destroy() <ide> challenge.order = order; <ide> challenge.suborder = index + 1; <ide> challenge.block = block; <del> challenge.superBlock = superBlock; <ide> challenge.isBeta = challenge.isBeta || isBeta; <ide> challenge.time = challengeSpec.time; ...
1
Python
Python
use consistent test names
89525ef345a39ccb0d1c5ca986bd5c1c71ea89c5
<ide><path>spacy/tests/tagger/test_morph_exceptions.py <ide> import pytest <ide> <ide> <del>def test_load_exc(en_tokenizer): <add>def test_tagger_load_morph_exc(en_tokenizer): <ide> text = "I like his style." <ide> tags = ['PRP', 'VBP', 'PRP$', 'NN', '.'] <ide> morph_exc = {'PRP$': {'his': {'L': '-PRP-', ...
1