WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Bug report

Describe the bug

So there is a ./pages/_document.js and <NextScript />, even if you remove it next.js will include all the bundles. I'm curious why <NextScript /> seems to not matter. Nothing changes if I remove it or add it back.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Go to https://with-nextscript-llzwhvgbup.now.sh (it is with-emotion example deployed as is)

Check Network tab in dev tools

Scripts are being dowloaded

Go to https://without-nextscript-vmfhuqxgbt.now.sh (it is with-emotion example with removed <NextScript /> and deployed)

Check Network tab in dev tools

Scripts are still being dowloaded

build process is next build && next export

Expected behavior

No scripts should be in place

Screenshots

N/A

System information

OS: macOS 10.13.4

Browser N/A

Version of Next.js: latest

Additional context

kinda related https://spectrum.chat/thread/3f923307-a694-4af5-b000-517a7e26c0d7

I tried to achieve approach described in this tweet https://twitter.com/_davideast/status/1009112973439393795

Issue 2:
Feature request

Is your feature request related to a problem? Please describe.

We want some static pages to be as lightweight as possible and we're fine with full page reloads navigating out of them if we can chop off extra 200Kb.

Describe the solution you'd like

Add an option to path map in next.config.js to indicate this specific page doesn't need to include react app and can operate as plain HTML page.

React app is only removed in case the flag is set to true explicitly.

Looks like it should be enough to just make files content empty there if option is set. https://github.com/zeit/next.js/blob/canary/server/render.js#L100

For the simple example from tutorial setting up

// next.config.js
module.exports = {
exportPathMap: function(defaultPathMap) {
return {
'/': { page: '/', withoutReact: true },
'/about': { page: '/about' }
}
}
}

As a result /out would be populated with

<!--/out/index/index.html-->
<!DOCTYPE html>
<html>
<head>
<meta charSet="utf-8" class="next-head"/>
</head>
<body>
<a href="/about">About</a>
</body>
</html>

<!--/out/about/index.html-->
<!DOCTYPE html>
<html>
<head>
<meta charSet="utf-8" class="next-head"/>
<link rel="preload" href="/_next/9d298d49-6fb5-4c6f-a992-31fdb0d3e01a/page/about.js" as="script"/>
<!--other scripts-->
</head>
<body>
<!--page content -->
<script>
NEXT_DATA = {"props": "etc.."}
</script>
<script id="__NEXT_PAGE__/about" src="..."></script>
</body>
</html>

This way index page is going to be very lightweight, with a tradeoff of full page reload navigating to /about. While /about would load the app, so navigation back to / would be handled on the client-side.

Describe alternatives you've considered

Static site generators :) But we need way more than just static pages and next.js fits us best except for this tiny quirk.

Additional context

Happy to implement that, just wanted to make sure this is not something going against the roadmap for next.js. Or if it's something already available, but hidden. I'm new to the library, only playing around for the second day.
Issue 1:
Tooltips on links, when placed inside the accordion, are being cut off.

Setting .collapse { position: static; } (now: relative) clears the issue.

Example: http://jsfiddle.net/TravellerSam/R55vg/

Issue 2:
In the case of popovers close to the edge of an accordion, the popover was being truncated.

The following change fixed it for our usage

.accordion-body.in {
overflow:visible;
}
Issue 1:
by axel.schreiner:

This is using 'hg update release' on MacOS X Lion (hg update default and ./all.bash fail
early on).

Based on the package documentation I believe that data can be transfered to and from an
interface-typed variable. This does not seem to be the case.

The attached program can be run with the arguments ss is si ii to select a transfer from
and to a struct or an interface. Additionally, the argument reg will register the
structure with gob, but that does not change anything.

What steps will reproduce the problem?
1. compile the attached file
2. run it with options ss and is -- no error message.
3. run it with options si or ii -- error message from gob.

What is the expected output?

No error message in case 3.

What do you see instead?

decoding error gob: wrong type received for local value main.Mer: Foo = struct { Bar
string; Beque string; }

Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

MacOS X Lion

Which revision are you using? (hg identify)

c1702f36df03 (release-branch.r60) release/release.r60.3

Attachments:

demo.go (1446 bytes)

Issue 2:
The documentation for time.String() shows the format used to convert time into a string: http://golang.org/pkg/time/#Time.String.

This string appears to be different to the const formats already defined in the time package, so if I wanted to naively (not using time.Format) convert a time -> string -> time I'd need to copy the format from the docs into my code and use it in a call to time.Parse.

In addition this format string is used a few times in http://golang.org/src/time/format_test.go as a literal string.

Isn't this format string a good candidate to be placed in the consts?
Issue 1:
Bug report

Bug summary

Using 'auto' to compute the number of bins with 2D data only uses the first column to compute the range. This causes all other columns to be incorrectly displayed.

Calculating histograms using bins='auto' with numpy gives the correct behavior.

Code for reproduction

from pylab import *

# four values to examine
x = randn(1000, 4)*0.1 + arange(4)/7

figure()
ax1 = subplot(211)
plt.hist(x, histtype='step')
legend(['1', '2', '3', '4'])
ax2 = subplot(212)
plt.hist(x, bins='auto', histtype='step')
legend(['1', '2', '3', '4'])

# Match axes so it's clear where the problem is
ax2.set_xlim(ax1.get_xlim())
plt.show()

# Check that numpy doesn't have this bug
_, bins_default = np.histogram(x)
_, bins_auto = np.histogram(x, bins='auto')
assert(np.min(bins_default) == np.min(bins_auto))
assert(np.max(bins_default) == np.max(bins_auto))

Actual outcome

The range of the histogram corresponds to the range of the last column of data for all columns, see second subplot.

Expected outcome

The range of the histogram should correspond to the min/max of all data, as it is in the first subplot of the example code.

Matplotlib version

Operating System: Ubuntu

Matplotlib Version: 2.0.0

Python Version: 3.5.2

Issue 2:
plt.hist range bug

When using plt.hist with multiple input data sets, not supplying a range, and using a string-based binning option ('auto', for example), the range determined will cut off the later datasets and only fully include the first.

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt

data = np.random.normal(0, 1, size=1000)
data2 = np.random.normal(3, 1, size=1000)
data3 = np.random.normal(6, 1, size=1000)

plt.hist([data, data2, data3], bins='auto', histtype='stepfilled', stacked=False)

Actual outcome

Expected outcome

This is the plot using the bin-edges as determined by np.histogram using the following code:

_, be = np.histogram([data, data2, data3], bins='auto')
plt.hist([data, data2, data3], bins=be, histtype='stepfilled', stacked=False)

Matplotlib version

Operating System: OSX 10.10.5

Matplotlib Version: 2.0.1

Python Version: 2.7.13

Jupyter Version (if applicable): 4.0.6

Other Libraries:

Python installed via Homebrew, all python packages installed via pip.
Issue 1:
Electron version: 1.4.4

Operating system: Windows 10 Pro (x64)

I created a new BrowserWindow and set set fullscreen to true and show to false, then I used

win.once('ready-to-show', () => { win.show(); });

to show the window and window showed as expected

however when I tried to set fullscreen to false the window turned black and completly unresponsive and I had to end process using task manager.

setting set fullscreen to false and adding win.setFullScreen(true) after win.show(); solves the issue.

but I would like to avoid the full screen flashing at the start of my application.

main.js

const {app, BrowserWindow} = require('electron');
let win
function createWindow () {
win = new BrowserWindow({fullscreen: true, fullscreenable: true, show: false, width: 1024, height: 768, title: "My Window", minWidth: 1024, minHeight: 768})
global.mainWin = win;

win.setMenuBarVisibility(false);

win.once('ready-to-show', () => {
win.show();
});

win.loadURL(`file://${__dirname}/index.html`)

win.on('closed', () => {
win = null
})
}

app.on('ready', createWindow)

app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
}
})

app.on('activate', () => {
if (win === null) {
createWindow()
}
})

index.html

<html>
<head>
<meta charset="UTF-8">
<script src="main_script.js" charset="UTF-8"> </script>
<link rel="stylesheet" href="main_style.css">

</head>

<body>

<div class="container">

<input type="button" class="mainmenu" value="Toggle Fullscreen" onClick="FSToggle();"/>

</div>

</body>
</html>

main_script.js

const remote = require('electron').remote;
const win = remote.getGlobal('mainWin');

function FSToggle(){
win.setFullScreen(!win.isFullScreen());
}

Issue 2:
Electron version: 1.2.0, 1.2.1, 1.2.2

Operating system: Windows

If you start an browser window in fullscreen and then attempt to toggle to windowed mode, the window will just black out and become unresponsive. Attempting to toggle back again still results in a black screen.

However, if you start the window in windowed mode and then toggle to fullscreen, it works as expected.

This maybe related to the fixes made to the fullscreen API in 1.2.x. It only occurs on Windows. It does not happen on 1.1.3.

You can reproduce easily with the electron-api-demos application and 1.2.2.

https://github.com/electron/electron-api-demos

Update window-options to set fullscreen: true

https://github.com/electron/electron-api-demos/blob/master/main.js#L22

var windowOptions = {
width: 1080,
minWidth: 680,
height: 840,
title: app.getName(),
fullscreen: true
}

Start the application and hit F11 to switch to windowed mode and you'll get a black screen.
Issue 1:
So as you can see, there are some double printing artifacts here. I didn't see them happen, but noticed them after switching to another application. I'm running a recent OSX (10.10.1) and just installed Atom today from binary (Version 0.175.0 (0.175.0)).

Pretty cool editor; I look forward to using it.

Issue 2:
Most noticeable in the tree view, resizing it, scrolling, etc. makes it redraw and go away.

/cc @zcbenz Any ideas on this one?
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

9.0.0

Operating System:

10.15.5

Last Known Working Electron version:

no

Expected Behavior

show the download file dialog

Actual Behavior

nothing happened

To Reproduce

use the follow config to load remote pdf

frame: true,
fullscreenable: true,
width: 500,
height: 600,
resizable: true,
backgroundColor: '#ffffff',
webPreferences: {
plugins: true,
nodeIntegration: true,
contextIsolation: false,
javascript: true,
webSecurity: true,
allowRunningInsecureContent: true,
},
show: false

pdfWindow.webContents.loadURL(url);

https://gist.github.com/c09409811c4264df06535f24cfd7194d

Screenshots

Additional Information

Issue 2:
When viewing a PDF, clicking the "download" button has no effect. It should trigger a download (including the "will-download" event and associated machinery).
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Details

For now on, Dubbo does not support to resolve all placeholders from property value from any PropertySource, thus it will impact Dubbo Spring Boot's externalization configuration, like this issue :

Can provider boot features external config placeholders in properties?

What's more, Dubbo's PropertySourcesUtils will be removed and replaced by Alibaba's spring-context-support's PropertySourcesUtils

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.5.10

Operating System version: win10

Java version: 1.8

Step to reproduce this issue

`public class Entity implements Serializable {

private static final long serialVersionUID = 187648346954430294L;

private List<Integer> list1 = new CopyOnWriteArrayList<>();
private List<Integer> list2 = new CopyOnWriteArrayList<>();

public List<Integer> getList1() {
return list1;
}

public List<Integer> getList2() {
return list2;
}
}`

`public static void main(String[] args) throws IOException {
Entity entity = new Entity();
// 此时两个 CopyOnWriteArrayList 不同
System.out.println(entity.getList1() == entity.getList2());

// 序列化
OutputStream outputStream = new FileOutputStream("dubboSerializer");
GenericObjectOutput objectOutput = new GenericObjectOutput(outputStream);
objectOutput.writeObject(entity);
objectOutput.flushBuffer();

// 反序列化
GenericObjectInput input = new GenericObjectInput(new FileInputStream("dubboSerializer"));
Entity obj1 = (Entity) input.readObject();
// 此时两个 CopyOnWriteArrayList 相同????????????????????????
System.out.println(obj1.getList1() == obj1.getList2());
}`

说明: 将 CopyOnWriteArrayList 换成 ArrayList 时 没有此问题.
Issue 1:
Current if entering a new line inside ad JsDoc comment, nothing is inserted in the new line.

Issue 2:
I have many scenarios where I would do this:

import myExternalModule = require("./myExternalModule");
// not using myExternalModule here

I dont use myExternalModule in my code but still I want it to be included using requirejs. I just need it to be there.

If there could be a forceimport keyword that would be very cool!
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.449]
Windows Terminal version (if applicable): 0.6.2951.0

Link to Feedback: https://aka.ms/AA6f0m9

Prerequisites

3 monitors, 1st and 2nd -with Full HD resolution and 100% scaling, 3rd - 2550x1440 and 150% scaling

Installed Ubuntu 18.04 WSL

Steps to reproduce

Open WSL Ubuntu 18.04 in Windows Terminal, keep it in screen 1 or 2 (with 100% scaling)

connect to via ssh to any server (tried to connect to Amazon Linux)

Move Windows Terminal to 3rd screen (with 150% scaling)

Wait 3 seconds

Move Windows Terminal to 2nd screen (with 100% scaling)

Expected behavior

Loading indicator is shown, in few seconds terminal is closed

Actual behavior

Terminal should continue working without any issues

Note: on "Ubuntu 18.04 LTS" app this issue isn't reproducing

Issue 2:
Environment

Windows build number: Version 10.0.18922.1000
Windows Terminal version (if applicable): 0.2.1715.0

Steps to reproduce

Open profiles.json

In the "cmd" profile, change the value of colorScheme from "Campbell" to "Solarized Dark" (ensure this scheme exists in the built-in schemes list)

Close and reopen Terminal

Open the "cmd" profile

Also reproducible with WSL profiles (e.g. "Ubuntu").

Expected behavior

According to doc/cascadia/SettingsSchema.md, colorScheme selects the color scheme to use for the profile, so I would expect to see Solarized colors in my terminal.

Actual behavior

cmd profile:

ubuntu profile (output of color-test.sh):
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

require relative path

Current Behavior

require real path

Steps to Reproduce (for bugs)

import dynamic from 'next/dynamic';

const DynamicToast = dynamic(import('../Toast/Model'))

render

next build

I find this code in the build file

require("/Users/cui/code/bgt-next/.next/dist/"+({0:"chunks/components_Head_CommonDataGet_862fa71fb71bf2f9a1510bd6db4c2d86",1:"chunks/components_Toast_Model_85c00f4ecc802eef46047a5e1de0328e"}[t]||t)+"-"+{0:"f0f24e5569d7ef5be482",1:"4889637e50f9c8f8c305"}[t]+".js"),

Context

Your Environment

Tech
Version

next
latest

node
8.10.1

OS
mac os 10.13.3

browser

etc

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

When I change javascript files inside node_modules folder, the related bundles should get recompiled.

Current Behavior

I have to restart next server to get the javascript file inside node_modules recompiled.

Context

I'm sure that webpack watch mode and webpack-dev-middleware have support for recompile bundle whenever any related javascript file changes, but it looks like next disables that and use watcher of itself instead.

This behaviour makes debug by tweak code in node_modules very painful.

Your Environment

Tech
Version

next
4.1.3

node
8.5

OS
MacOS

browser
any

etc
Issue 1:
How to get the current entry point's name from within a loader?

It is needed for a customized file-loader that uses loaderUtils.interpolateName by default which obviously interpolates the [name] to the currently required file name.

In extract-text-webpack-plugin the [name] is interpolated to the entry point name and that's what I'm for in the customized file-loader (the purpose of which is to aid in toggling source-maps for .less files depending on current environment)

Hence the question. Thanks.

Issue 2:
If I have a entry hello.js like this:

require('./images/test.png');

and I use file-loader to handle this, then I want the built image named as "hello.test.png",how can I make it?

The following example can not fill my need:

{
test: /\.(jpe?g|png|gif|svg)$/i,
loaders: ['file?hash=sha512&digest=hex&name=[path][hash].[ext]']
}
Issue 1:
Hi

First I would like to point out that the documentation for WebXRManager has missing functions that are there in the source but not mentioned in the documentation. Not sure how you want to tackle this as in the source there is no comments about what these extra functions do. The webxr section could benefit of some more docu.

I was in the need of getting the fov of the AR camera when in immersive-ar mode in WebXR and stumbled upon WebXRManager.getCamera(). Some tutorial say that this is the AR/VR camera that is used.

On my phone it reports a fov of 50 always (once you enter AR mode). Which is not right. So what is this function supposed to do?

I ended up calculating the fov like so once a XRFrame was available.

Do you propose a different solution? You could add a function to WebXRManager that has the below code.

I dont know what the getCamera function does in VR mode, maybe it works but in AR mode i dont think it works as expected.

let ref= this.renderer.xr.getReferenceSpace();
let pose= frame.getViewerPose(ref);
if (pose) {
let fovi = pose.views[0].projectionMatrix[5];
const fov = Math.atan2(1, fovi) * 2 * 180 / Math.PI;
console.log(fov);
}

Thanks

Dimi

Issue 2:
Description of the problem

The VR camera always returns a FOV of 50 degrees, which is not necessarily the actual FOV. Using Cardboard, for example, the field of view is a lot higher.

It can be tested in this example using the code:

renderer.vr.getCamera(camera).fov

If this value is not meant to be used (because the view is distorted rather differently from a regular perspective camera), maybe that property should return -1 to indicate this.

Three.js version

Dev

r88

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

Used Cardboard. but the VR emulation extension for Chrome behaves the same way.
Issue 1:
All responsive classes (both by device size and print) don't like inline elements like to be hidden and shown correctly without breaking it.

Example:

<a class="btn"><i class="glyphicon glyphicon-envelope"></i> <span class="hidden-sm">Email</span></a>

It does hide the span correctly when the screensize is below 768px, however when visible it's placed below the icon since it recieves a display:block.

Possible solution:

Add display:inline-block for elements like a, span, i, em, strong, etc when used in combination with responsive classes.

Issue 2:
related to issues #8500 , #7808 , #4929 ; using .hidden-sm to hide span within .nav > li > a . Because class is display: block above -sm then text wraps to new line. Would you consider .hidden-* classes to be display: inline-block instead ?

Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... http://jsfiddle.net/jholl/P86yf/
Issue 1:
version

5.0.0-alpha

my config

spring.shardingsphere.props.query-with-cipher-column=true

spring.shardingsphere.rules.encrypt.tables.user_info.columns.name.cipherColumn=name_enc

spring.shardingsphere.rules.encrypt.tables.user_info.columns.name.encryptorName=name_encryptor

spring.shardingsphere.rules.encrypt.tables.user_info.columns.mobile.cipherColumn=mobile_enc

spring.shardingsphere.rules.encrypt.tables.user_info.columns.mobile.encryptorName=mobile_encryptor

spring.shardingsphere.rules.encrypt.tables.user_info.columns.ident.cipherColumn=ident_enc

spring.shardingsphere.rules.encrypt.tables.user_info.columns.ident.encryptorName=idcard_encryptor

spring.shardingsphere.rules.encrypt.tables.user_info.columns.value.cipherColumn=value_enc

spring.shardingsphere.rules.encrypt.tables.user_info.columns.value.encryptorName=addr_encryptor

spring.shardingsphere.rules.encrypt.tables.test_name.columns.name.cipherColumn=name_enc

spring.shardingsphere.rules.encrypt.tables.test_name.columns.name.encryptorName=name_encryptor

spring.shardingsphere.rules.encrypt.tables.users.columns.name.cipherColumn=name_enc

spring.shardingsphere.rules.encrypt.tables.users.columns.name.encryptorName=name_encryptor

2021-02-02 17:24:11.161 INFO 1832 --- [ main] ShardingSphere-SQL : Logic SQL: select ui.*,u.name,tn.name from user_info ui left join users u on u.id = ui.id left join test_name tn on tn.name = u.name where ui.id > 0

2021-02-02 17:24:11.163 INFO 1832 --- [ main] ShardingSphere-SQL : Actual SQL: ds0 ::: select ui.id, ui.cust_id, ui.unique_id, ui.name_enc AS name, ui.name_assisted, ui.ident_enc AS ident, ui.mobile_enc AS mobile, ui.password, ui.reg_time, ui.modify_time, ui.reg_source, ui.reg_app_channel, ui.reg_device_info, ui.status, ui.is_mobile_authed, ui.complate_cust_info, ui.time_inst, ui.time_upd, ui.has_checked, ui.value_enc AS value, ui.system,u.name_enc AS name,tn.name_enc AS name from user_info ui left join users u on u.id = ui.id left join test_name tn on tn.name = u.name where ui.id > 0

left join .... on tn.name = u.name ,there will be rewrite to tn.name_enc = u.name_enc

Issue 2:
I query the field infromation of the table with the "select COLUMN_NAME FROM information_schema.COLUMNS WHERE TABLE_NAME='goods'" statement,but result is null.

the "goods" is the source table of subtable.

I found through debug that the reason is that the information stored in the mysql database is

the subtable information ,so it cannot be obtained.

if I want query the column information of the table by source table names,what to do .