WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hello, I'm not sure if it is an intended behavior or not, and I did not find any mention about this in the documentation or in the github issue tracker. I'm filing it - just in case it was not planned to work this way.

Problem description

On save to HDF5 file RangeIndex of pandas.DataFrame is converted to Int64Index (which could add quite some to the stored space for the long tables).

df = pd.DataFrame(np.random.randn(1000,2))
df.index

results in RangeIndex(start=0, stop=1000, step=1)

Then

df.to_hdf('tmp.h5', 'df')
df = pd.read_hdf('tmp.h5', 'df')
df.index

results in Int64Index([ 0, 1, ..., 999], dtype='int64', length=1000)

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.4.final.0

python-bits: 64

OS: Windows

OS-release: 7

machine: AMD64

processor: Intel64 Family 6 Model 63 Stepping 2, GenuineIntel

byteorder: little

LC_ALL: None

LANG: None

LOCALE: None.None

pandas: 0.22.0

pytest: 3.3.2

pip: 9.0.1

setuptools: 38.4.0

Cython: 0.27.3

numpy: 1.14.1

scipy: 1.0.0

pyarrow: None

xarray: None

IPython: 6.2.1

sphinx: 1.6.6

patsy: 0.5.0

dateutil: 2.6.1

pytz: 2018.3

blosc: None

bottleneck: 1.2.1

tables: 3.4.2

numexpr: 2.6.4

feather: None

matplotlib: 2.1.2

openpyxl: 2.4.10

xlrd: 1.1.0

xlwt: 1.3.0

xlsxwriter: 1.0.2

lxml: 4.1.1

bs4: 4.6.0

html5lib: 1.0.1

sqlalchemy: 1.2.1

pymysql: None

psycopg2: None

jinja2: 2.10

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
store.append(df,'df',write_index=True)

makes sense (index is already taken as its passed thru to determine whether to create an actual on in the table)
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Do not allow exporting an entry in exportPathMap that does not start with a backslash

-or-

Ensure that the page template defined in an exportPathMap entry either starts with or is preprended with a backslash to ensure operability.

Current Behavior

Using a page value in a path exported from exportPathMap that does not start with a backslash / results in an error on the client when it attempts to retrieve /_next/:buildID/pagemytemplate instead of /_next/:buildID/page/mytemplate. Because of this functionality, a brief 404 will displayed, then replaced with the actual page request.

Steps to Reproduce (for bugs)

Export a path in exportPathMap with a page value that does not start with a backslash.

Context

This resulted in unexpected 404's, and was a very silent error.

Issue 2:
In example code about external stylesheet https://github.com/zeit/next.js/tree/master/examples/with-global-stylesheet , it still has dangerouslySetInnerHTML. According to this styled-jsx improvement` vercel/styled-jsx#148, we can reference imported stylesheet now.

I tried to change code and it works.

export default () =>
<div>
- <style dangerouslySetInnerHTML={{ __html: stylesheet }} />
+ <style jsx global>{stylesheet}</style>
<p>ciao</p>
</div>

The dangerouslySetInnerHTML does not look right and might trigger eslint error. If my understanding is right, I'll submit a PR for this.
Issue 1:
Bug report

Describe the bug

Ability to support multiple meta tags with same name. I see that there was an effort to support multiple meta tags with same property in #5800 but this still doesn't allow multiple meta tags with same name.

This is useful to supporting "citation_author" for SEO indexing in Google Scholar https://scholar.google.com/intl/en-us/scholar/inclusion.html#indexing

To Reproduce

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

Provide multiple meta tags with the same name in

Check the output

Expected behavior

<meta name="citation_author" content="Rannels, Stephen R."> <meta name="citation_author" content="Falconieri, Mary">

should give markup as such but, currently it produces

<meta name="citation_author" content="Falconieri, Mary">

System information

Version of Next.js: 9.1.6

Issue 2:
As far as I can tell, a custom <Document /> is only ever run in Node.js / SSR. If that's the case, why wouldn't importing native node modules be allowed?

edit: Is this because of the way javascript is compiled through webpack with emit-file-loader?

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

Expected Behavior

import fs from 'fs';

in _document.js should compile

Current Behavior

Build fails, suggesting installing fs

Steps to Reproduce (for bugs)

import fs from 'fs' in a custom document.

Context

I'm working on flushing styled-components SSR output to a link tag, to enable potentially putting cloudfront in front of it and serve <link> tags rather than inline styles.

Your Environment

Tech
Version

next
3beta
Issue 1:
Summary of the new feature/enhancement

2 Fancy Zone configs, first triggered by LeftWin Key and second triggered by RightWin key

By default, my Fancy Zones is configured to roughly:

5 -> 25 -> 25 -> 25 -> 20.

Icon Gap -> Email -> Code -> Reference/Browser -> Notes App

It would be great if I could trigger a second set of Fancy Zones:

40-40-20

Code/Text -> Reference/Browser -> Pomodoro timer

Proposed technical implementation details (optional)

Left Windows Key + Arrow Key = Triggers first set of fancy zones

Right Windows Key + Arrow Key = Triggers second set of fancy zones

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.17763.1217]
PowerToys version: v0.18.1
PowerToy module for which you are reporting the bug (if applicable): Power Launcher

Steps to reproduce

Make sure the Power Launcher is no longer running in the task bar then start PowerToys. This also occurs when PowerToys starts when computer boots up from shutdown and PowerToys is set to launch with Windows.

Expected behavior

No application error should occur.

Actual behavior

An application error is displayed as soon as PowerToys starts.

Screenshots
Issue 1:
Testcase:

#![feature(slice_patterns)]
fn main() { let x: &[String] = &[]; match x { [[b..]..] => { println!("Fun{}", b.len()); } } }

Running this gives playpen: application terminated abnormally with signal 4 (Illegal instruction). A quick look at the IR shows that b somehow ends up uninitialized.

Issue 2:
Testcase:

#![feature(slice_patterns)]
fn main() { let x: &[String] = &[]; let [[ref _a, _b..]..] = x; }

This clearly shouldn't type-check, but currently compiles without any error.
Issue 1:
Expected Behavior

i created 2 blueprint main and mobile. i expect mobile blueprint to render its own template.

blueprint = Blueprint(
name='mobile',
import_name=__name__,
static_folder='assets',
static_url_path='/mobile_assets',
# app_cfg.APPPATH is a constant of absolute path to app root directory
template_folder=path.join(app_cfg.APPPATH,'blueprint/mobile/template'),
)

@blueprint.route('/', methods=['GET'])
def index_mobile():
data = {
'title': 'wow mobile',
'message': 'message from mobile blueprint'
}
# to test if i set the corrent absolute path to the blueprint template
print(path.join(app_cfg.APPPATH,'blueprint/mobile/template'))
return render_template('index.html',**data)

Actual Behavior

mobile blueprint render the template from main

there is already an issue about this since 2015. but for some unknown reason its closed without mentioning any solution for this problem.

flask documention :

template_folder – A folder with templates that should be added to the app’s template search path. The path is relative to the blueprint’s root path. Blueprint templates are disabled by default. Blueprint templates have a lower precedence than those in the app’s templates folder.

Environment

Python version: Python 3.8.5

Flask version: Flask 1.1.2

Werkzeug version: Werkzeug 1.0.1

Issue 2:
File structure:

project -
- templates \
- a \
search.html
- b \
search.html
- start.py
- myapplication \
- test.py

Start file:

# start.py
from flask import Flask
from myapplication.test import test_blueprint

app = Flask(__name__)
app.register_blueprint(test_blueprint)

my application

# test.py
from flask import Blueprint, render_template, abort
from jinja2 import TemplateNotFound

test_blueprint = Blueprint('test_blueprint', __name__,
template_folder='absolute_path_to_project/templates/a')
# YES, I specified the absolute path to the template a

@test_blueprint.route('/test')
def show():
try:
return render_template(''search.html") # HERE is the problem
except TemplateNotFound:
abort(404)

Is this a problem?

# Actually, I want to render a/search.html

# But, render_template() does not use test_blueprint's template_folder

# render_template() search the template list, find the first search.html, then render

# So, maybe render a/search.html or b/search.html

# This depend on the sequence of the template list
Issue 1:
In PowerToys Run searching for files and folders works fine if launched without admin privileges, but if you launch as admin all files and folders queries show no results (calculator, app search, ... work fine).

Environment

Windows build number: 10.0.19624.1000
PowerToys version: v0.18.1
PowerToy module for which you are reporting the bug (if applicable): Run

Issue 2:
Environment

Windows build number: Version 10.0.18363.836
PowerToys version: v.0.18.1
PowerToy module for which you are reporting the bug: PowerToys Run

Steps to reproduce

Install PowerToys via GetWin

Run PowerToys in always admin mode

Run PowerToys Run via Alt + Space

Search for any give file / folder name

Expected behavior

Showing the file / folder which I searched for

Actual behavior

No files / folders showing up what so ever,

unless I type something like "D:\Documents..."

Screenshots

It is a normal folder, I just changed the icon.
Issue 1:
My Glide version is 3.6.1 and here I got a IllegalStateException.

Should Glide handle this problem internally?

java.lang.RuntimeException: Unable to destroy activity {MY PACKAGE NAME}: java.lang.IllegalStateException: Activity has been destroyed
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4097)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4115)
at android.app.ActivityThread.access$1400(ActivityThread.java:177)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1620)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5771)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1004)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:799)
Caused by: java.lang.IllegalStateException: Activity has been destroyed
at android.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1383)
at android.app.BackStackRecord.commitInternal(BackStackRecord.java:745)
at android.app.BackStackRecord.commitAllowingStateLoss(BackStackRecord.java:725)
at com.bumptech.glide.manager.RequestManagerRetriever.getRequestManagerFragment(SourceFile:159)
at com.bumptech.glide.manager.RequestManagerFragment.onAttach(SourceFile:117)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:865)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1079)
at android.app.BackStackRecord.run(BackStackRecord.java:852)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1485)
at android.app.FragmentManagerImpl.dispatchDestroy(FragmentManager.java:1929)
at android.app.Fragment.performDestroy(Fragment.java:2279)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1029)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1079)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1061)
at android.app.FragmentManagerImpl.dispatchDestroy(FragmentManager.java:1930)
at android.app.Activity.performDestroy(Activity.java:6297)
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1151)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4084)
... 10 more

Issue 2:
Hello,

We are currently using Glide in one of our application. Actually we need a confirmation from your side. According to the Google Play Policy, all apps have to provide support for at least API level 26. We are targeting API level 28. So just for a safer side, do we need to do anything for supporting API level 28?
Issue 1:
Challenge Waypoint: Add Different Padding to Each Side of an Element has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:37.0) Gecko/20100101 Firefox/37.0.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<style>
.injected-text {
margin-bottom: -25px;
text-align: center;
}

.box {
border-style: solid;
border-color: black;
border-width: 5px;
text-align: center;
}

.yellow-box {
background-color: yellow;
padding:10px;
}

.red-box {
background-color:red;
padding-top: 40px;
padding-right: 20px;
padding-bottom: 20px;
padding-left: 40px;
}

.green-box {
background-color: green;
padding-top: 40px;
padding-right: 20px;
padding-bottom: 20px;
padding-left: 40px;
}
</style>
<h5 class="injected-text">margin</h5>

<div class="box yellow-box">
<h5 class="box red-box">padding</h5>
<h5 class="box green-box">padding</h5>
</div>

Issue 2:
Challenge Waypoint: Add Different Padding to Each Side of an Element has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<style>
.injected-text {
margin-bottom: -25px;
text-align: center;
}

.box {
border-style: solid;
border-color: black;
border-width: 5px;
text-align: center;
}

.yellow-box {
background-color: yellow;
padding:10px;
}

.red-box {
background-color:red;
padding-top: 40px;
padding-right: 20px;
padding-bottom: 20px;
padding-left: 40px;
}

.green-box {
background-color: green;
padding-top: 40px;
padding-right:20px;
padding-bottom:20px;
padding-left: 40px;
}
</style>
<h5 class="injected-text">margin</h5>

<div class="box yellow-box">
<h5 class="box red-box">padding</h5>
<h5 class="box green-box">padding</h5>
</div>
Issue 1:
Windows build number: 10.0.19041.264

PowerToys version: 0.18.2

PowerToy module for which you are reporting the bug (if applicable): PowerToys Run

It sometimes uses up to 30% of my CPU power and about 600MB of RAM, affecting my performance

Issue 2:
改键功能与win10的历史剪贴板功能冲突

ℹ Computer information

PowerToys version: V0.21.1

PowerToy Utility:

Running PowerToys as Admin: ✔️

Windows build number: 19041.508

📝 Provide detailed reproduction steps (if any)

使用power toys互相修改Ctrl(left)<===>CapsLock

复制文本

使用win+v黏贴历史文本

✔️ Expected result

能够正常黏贴文字

❌ Actual result

输出了字符"v"

📷 Screenshots

Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form
Issue 1:
If you run this code with only one go routine:

package main

import "fmt"
import "runtime"
import "time"

func cpuIntensive(p *int) {
for i := 1; i <= 100000000000; i++ {
*p = i
}
}

func main() {
runtime.GOMAXPROCS(1)

x := 0
go cpuIntensive(&x)

time.Sleep(100 * time.Millisecond)

// printed only after cpuIntensive is completely finished
fmt.Printf("x = %d.\n", x)
}

Scheduler is paralized, and Printf is NOT printed after 100ms as expected, but after all job is done in cpuintensive() go routine.

But if programmer insert runtime.Gosched() in intensive for loop of routine, cooperative scheduler works fine.

Is this by design or are there plans to make Golang scheduler preemptive?

Issue 2:
Currently goroutines are only preemptible at function call points. Hence, it's possible to write a tight loop (e.g., a numerical kernel or a spin on an atomic) with no calls or allocation that arbitrarily delays preemption. This can result in arbitrarily long pause times as the GC waits for all goroutines to stop.

In unusual situations, this can even lead to deadlock when trying to stop the world. For example, the runtime's TestGoroutineParallelism tries to prevent GC during the test to avoid deadlock. It runs several goroutines in tight loops that communicate through a shared atomic variable. If the coordinator that starts these is paused part way through, it will deadlock.

One possible fix is to insert preemption points on control flow loops that otherwise have no preemption points. Depending on the cost of this check, it may also require unrolling such loops to amortize the overhead of the check.

This has been a longstanding issue, so I don't think it's necessary to fix it for 1.5. It can cause the 1.5 GC to miss its 10ms STW goal, but code like numerical kernels is probably not latency-sensitive. And as far as I can tell, causing a deadlock like the runtime test can do requires looking for trouble.

@RLH
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.

Environment

Dubbo version: 2.7.4.1

Operating System version:Linux version 4.15.0-88-generic 16.04.1-Ubuntu

Java version: java version "1.8.0_201"

Steps to reproduce this issue

invoke the remote method in consumer side.

always throw a exception in the method implementation of server side.

catch the exception in consumer side, and print stacktrace of the exception.

Expected Result

stacktrace of consumer side can not be obtained.

Actual Result

only stacktrace of server side was printed, we can not find where we invoked the remote method.

I have read related the code, it's in org.apache.dubbo.rpc.AppResponse#recreate

@Override
public Object recreate() throws Throwable {
if (exception != null) {
// fix issue#619
try {
// get Throwable class
Class clazz = exception.getClass();
while (!clazz.getName().equals(Throwable.class.getName())) {
clazz = clazz.getSuperclass();
}
// get stackTrace value
Field stackTraceField = clazz.getDeclaredField("stackTrace");
stackTraceField.setAccessible(true);
Object stackTrace = stackTraceField.get(exception);
if (stackTrace == null) {
exception.setStackTrace(new StackTraceElement[0]);
}
} catch (Exception e) {
// ignore
}
throw exception;
}
return result;
}

while recreating the result, AppResponse only deserialize the exception of server side, so stacktrace of consumer side is ignored.

maybe we can modify throw exception to new RpcException(exception).

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.6.0

Operating System version: centos 6

Java version: jdk 1.8

Steps to reproduce this issue

服务端dubbo 2.7 客户端使用2.6.0 由于集群原因升级到2.7之后zk的curator客户端会造成任务卡住，所以无法升级

ause: java.lang.NumberFormatException: For input string: ""

java.lang.NumberFormatException: For input string: ""

at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

at java.lang.Integer.parseInt(Integer.java:592)

at java.lang.Integer.parseInt(Integer.java:615)

at org.apache.dubbo.common.Version.parseInt(Version.java:128)

at org.apache.dubbo.common.Version.getIntVersion(Version.java:113)

at org.apache.dubbo.common.Version.isSupportResponseAttachment(Version.java:102)
Issue 1:
It seems that np.vectorize casts / unboxes timedelta64 values and does so kind of inconsistently depending on the unit. I am not sure that this was intentional, but makes it difficult to work with such arrays; in particular, it is not possible to vectorize a function which takes timedelta64 value;

>>> np.__version__
'1.9.0'
>>> f = lambda x: print(type(x), x)
>>> xs = np.arange(1, 3).astype('timedelta64[h]')
>>> xs
array([1, 2], dtype='timedelta64[h]')

with [h] and [s] unit:

>>> _ = np.vectorize(f)(xs)
<class 'numpy.timedelta64'> 1 hours
<class 'datetime.timedelta'> 1:00:00
<class 'datetime.timedelta'> 2:00:00
>>> _ = np.vectorize(f)(xs.astype('timedelta64[s]'))
<class 'numpy.timedelta64'> 3600 seconds
<class 'datetime.timedelta'> 1:00:00
<class 'datetime.timedelta'> 2:00:00
>>> _ = np.vectorize(f, otypes='O')(xs.astype('timedelta64[s]'))
<class 'datetime.timedelta'> 1:00:00
<class 'datetime.timedelta'> 2:00:00

with [ns] unit:

>>> _ = np.vectorize(f)(xs.astype('timedelta64[ns]'))
<class 'numpy.timedelta64'> 3600000000000 nanoseconds
<class 'int'> 3600000000000
<class 'int'> 7200000000000
>>> _ = np.vectorize(f, otypes='O')(xs.astype('timedelta64[ns]'))
<class 'int'> 3600000000000
<class 'int'> 7200000000000

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/1173 on 2009-07-15 by @stsci-sienkiew, assigned to @pierregm.

======================================================================
FAIL: Tests new ufuncs on MaskedArrays.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/ra/pyssg/2.5.1/numpy/ma/tests/test_core.py", line 1403, in test_testUfuncRegression
assert_mask_equal(ur.mask, mr.mask)
File "/usr/stsci/pyssgdev/2.5.1/numpy/ma/testutils.py", line 237, in assert_mask_equal
assert_array_equal(m1, m2)
File "/usr/stsci/pyssgdev/2.5.1/numpy/ma/testutils.py", line 193, in assert_array_equal
header='Arrays are not equal')
File "/usr/stsci/pyssgdev/2.5.1/numpy/ma/testutils.py", line 186, in assert_array_compare
verbose=verbose, header=header)
File "/usr/stsci/pyssgdev/2.5.1/numpy/testing/utils.py", line 395, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal

(mismatch 25.0%)
x: array([False, True, False, True, False, False, False, True], dtype=bool)
y: array([False, True, False, False, False, False, False, False], dtype=bool)

numpy 1.4.0.dev7132

solaris 8

python 2.5.1