WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Steps to Reproduce (for bugs)

I have 2 pages on pages folder: category.js, detail.js

Open browser

I go to /category

Then go to /detail?id=1

Then go to /detail?id=2

Press back button on browser -> nothing happen

Press back button again -> it go to /category

Note: I'm using <Link> component to handle the route change

Current Behavior

Cannot back to page /detail?id=1

Expected Behavior

Can back to page /detail?id=1

Thanks.

Issue 2:
In the firebase examples (I'm using Typescript from the next.js example folder) but have also tried https://github.com/jthegedus/firebase-functions-next-example), it's not clear how to add images - as any attempt to add them to the /src/public folder included in the examples or indeed a /src/static folder (to match what is recommended in the next.js docs) ends in a 404 error for the static resources (at least when running npm run dev).

It seems to be a particularity of the way firebase wants the assets (in their public folder) vs the way next.js wants them. A workaround that I came up with is to add an extra build step in package.json that duplicates the assets folder inside src in order to get assets working in dev. You can see more in jthegedus/firebase-functions-next-example#24 (comment) but it seems less than ideal. Is there a clean way to do this?

/cc @sampsonjoliver
Issue 1:
Here is an example, when auc is calculated wrong:

import numpy as np
from sklearn.metrics import roc_curve, auc
p = np.array([3E-011, 5E-11, 2E-010, 1E-008, 2E-006, 1.29E-005, 0.0003, 0.1, 0.2, 0.3, 0.46])
p = np.expand_dims(p, axis=1)
y = np.array([0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1])
fpr, tpr, thresholds = roc_curve(y, p, pos_label=1)
roc_auc = auc(fpr, tpr)

with these values it should be 0.9333333 (I checked it in R), but sklearn gives 0.883333333333.

If I rescale p with MinMaxScaler(), I get the right answer.

I also noticed that it has different number of n_thresholds:

in the first case n_thresholds=8, and when I scale the probabilities n_thresholds=9.

Thank you very much for considering this problem!

Issue 2:
pred=[1e-10, 0, 0]

sol=[1, 0, 0]

metrics.roc_auc_score(sol, pred) # 0.5, wrong, 1 is correct

pred=[1, 0, 0]

sol=[1, 0, 0]

metrics.roc_auc_score(sol, pred) # 1 correct
Issue 1:
#7827 added a command to the Dockerfile installing gevent here.

#7744 created a new requirements file to install extra dependencies, one of them gevent here

Expected results

Adopt only one strategy -> #7744

Issue 2:
Importing same dashboard with changes generates a copy

Expected results

Dashboard gets updated

Actual results

Multiple copies of the same dashboard. Slices are updated correctly

Screenshots

How to reproduce the bug

Go to '...'

Click on '....'

Scroll down to '....'

See error

Environment

(please complete the following information):

superset version: superset version

python version: python --version

node.js version: node -v

npm version: npm -v

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if there are any.

I have reproduced the issue with at least the latest released version of superset.

I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

Add any other context about the problem here.
Issue 1:
Assume you want to evaluate or grid search the parameters of the following pipeline

from sklearn.preprocessing import Imputer
from sklearn.linear_model import LogisticRegression
from sklearn.pipeline import Pipeline

p = Pipeline([
('imputer', Imputer(strategy='media', missing_values='NaN')),
('classifier', LogisticRegression(C=1)),
])

At the moment it is not possible as the cross_val_score and GridSearchCV tools call check_arrays internally which raises an exception if there are NaN values in the data.

I think we should add allow_nans=False parameter to check_arrays, cross_val_score and GridSearchCV to make it possible to the user to disable the check for nans and hence allow our imputing pipeline to work as expected.

Issue 2:
When GridSearchCV sees a NaN, it panics. This is annoying when the estimator is a pipeline that starts with an Imputer, as now the imputer must be trained outside of the grid search giving potentially skewed results.
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.

test

Dubbo version: 2.7.0

Operating System version:

Java version: 1.8

Steps to reproduce this issue

通过spring配置文件方式消费dubbo服务

2.在servlet中注入了该dubbo服务

服务启动报错，报could not generate CGLIB subclass of class org.apache.dubbo.common.bytecode.proxy0；common causes of this problem include using a final class or a non-visible class

如果把服务消费reference的配置改为饥饿加载init=“true”，则启动不报错。

是什么原因导致

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

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

Java version: 1.8

Actual Result

dubbo/dubbo-common/src/main/java/org/apache/dubbo/common/Version.java

Line 175
in
839d2a6

// guess version fro jar file name if nothing's found from MANIFEST.MF

Expected Result

guess version from jar file name if nothing's found from MANIFEST.MF

fro ==> from
Issue 1:
Looks like we lost the duplicate-react warning (#3332) due to merging #5205 which contained sophiebits@4ba0e95

Issue 2:
https://gist.github.com/syranide/51bd85cadd0b439d8a05

Highly unscientific delta below (~700b). Shouldn't be that significantly affected by addition of "behaviors" when doing it proper, contains a bunch of attributes not currently in React and also duplicates the list of node names that exist to create the DOM components.

PS. This is the more or less 100% complete list of nodes and attributes (with the exception of some obscure ones that weren't listed because they are deprecated/not standard).

raw gz Sizes
380459 75767 build/JSXTransformer.js
622841 127139 build/react-with-addons.js
128227 35285 build/react-with-addons.min.js
566573 115629 build/react.js
118837 32732 build/react.min.js

raw gz Sizes
380459 75767 build/JSXTransformer.js
626512 127876 build/react-with-addons.js
130808 35933 build/react-with-addons.min.js
570244 116363 build/react.js
121417 33424 build/react.min.js
Issue 1:
The _optimize API is great for improving performance of time series indices or other cold indices, but the name of it is incredibly misleading.

Lucene changed from calling it optimize to forceMerge back in Lucene 3.5 (from this blast in the past, eh @s1monw!). Maybe it's time that we change it too?

Issue 2:
Optimize is a very costly operation, and rarely necessary. I think it's trappy because it's name is so tempting, and also because in ES the optimize is done in the background (so the request returns immediately), hiding the true cost.

There are times when it's appropriate, e.g. in the logging use case when you know a given daily index is done, but for most cases it's not a good idea to optimize.

I think we should follow Lucene here and rename it to forceMerge and deprecate optimize.
Issue 1:
Checklist

I have checked the issues list

for similar or identical bug reports.

I have checked the pull requests list

for existing proposed fixes.

I have checked the commit log

to find out if the bug was already fixed in the master branch.

I have included all related issues and possible duplicate issues in this issue

(If there are none, check this box anyway).

Related Issues and Possible Duplicates

Related Issues

None

Possible Duplicates

None

Description

It seems to me that the testing documentation is a bit outdated. At the very beginning you are given an example async task that has a self.retry on the except clause, which looks strange, as it is a function not a method of a class/instance.

Moreover when searching at how to handle tracebacks from tasks, I ended up at http://docs.celeryproject.org/en/latest/userguide/calling.html#linking-callbacks-errbacks which looks like the modern practice? 🤔

Suggestions

Rework the first snippet of code and mention how to use linking from a testing perspective? 🤔

Issue 2:
Checklist

I have checked the issues list

for similar or identical feature requests.

I have checked the pull requests list

for existing proposed implementations of this feature.

I have checked the commit log

to find out if the if the same feature was already implemented in the

master branch.

I have included all related issues and possible duplicate issues

in this issue (If there are none, check this box anyway).

Related Issues and Possible Duplicates

Related Issues

None

Possible Duplicates

None

Brief Summary

The autodiscover_tasks method checks modules in packages, but modules in subdirectories will not be imported. It will be convenient to add a recursive option which enables searching modules in packages and their subdirectories.

Design

Architectural Considerations

autodiscover_tasks(packages=None, related_name='tasks', force=False) will be changed to autodiscover_tasks(packages=None, related_name='tasks', force=False,recursive=False) for backward compatibility

Proposed Behavior

Proposed UI/UX

Diagrams

N/A

Alternatives

None
Issue 1:
Description

Importing pandas makes plotting with matplotlib and standard datetime objects impossible.

A type error is raised in matplotlib because pandas import datetime and "override the global" one.

I would not expect pandas to override the default datetime. After importing pandas one cannot use datetimes for plotting for example.

PS: just reposting this from matplotlib issue 6796

Code Sample, a copy-pastable example if possible

import datetime
import matplotlib.pyplot as plt
# this works
x = [datetime.date(1677,1,1) + datetime.timedelta(days=i) for i in range(10)]
plt.plot(x,range(10))
import pandas as pd
# do not work anymore
x = [datetime.date(1677,1,1) + datetime.timedelta(days=i) for i in range(10)]
plt.plot(x,range(10))

Expected Output

datetime would not be "change".

output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.5.1.final.0

python-bits: 64

OS: Darwin

OS-release: 15.5.0

machine: x86_64

processor: i386

byteorder: little

LC_ALL: None

LANG: en_AU.utf-8

pandas: 0.18.1

nose: 1.3.7

pip: 8.1.2

setuptools: 21.0.0

Cython: 0.24

numpy: 1.11.0

scipy: 0.17.0

statsmodels: 0.6.1

xarray: 0.7.2

IPython: 4.2.0

sphinx: 1.3.5

patsy: 0.4.1

dateutil: 2.5.3

pytz: 2016.4

blosc: None

bottleneck: None

tables: None

numexpr: None

matplotlib: 1.5.1

openpyxl: 2.3.3

xlrd: 0.9.4

xlwt: None

xlsxwriter: None

lxml: 3.6.0

bs4: 4.4.1

html5lib: None

httplib2: None

apiclient: None

sqlalchemy: 1.0.13

pymysql: None

psycopg2: None

jinja2: 2.8

boto: 2.40.0

pandas_datareader: None

Issue 2:
register it upon plotting?

http://stackoverflow.com/questions/13988111/importing-pandas-in-python-changes-how-matplotlib-handles-datetime-objects
Issue 1:
use crypto/tls connect to server with self-signed certificate handshake failure

go version: go version go1.5.2 darwin/amd64

os: osx 10.10

code:

cert, err := tls.LoadX509KeyPair(crtPath, keyPath)

tlsConfig = tls.Config{Certificates: []tls.Certificate{cert}, ClientAuth: tls.VerifyClientCertIfGiven, InsecureSkipVerify: true}

ladd, lerr := net.ResolveTCPAddr("tcp", ClientIp+":0")

radd, rerr := net.ResolveTCPAddr("tcp", server+":"+port)

ipConn, err := net.DialTCP("tcp", ladd, radd)

conn = tls.Client(ipConn, tlsconfig)

errObj = conn.Handshake()

this line get error // remote error: handshake failure

use openssl test is successful

openssl s_client -connect ote.gtld.knet.cn:700 -cert certs/certificate.pem -key certs/key.pem.unencrypted -state

SSL handshake has read 2307 bytes and written 940 bytes

New, TLSv1/SSLv3, Cipher is EDH-DSS-DES-CBC3-SHA

Server public key is 1024 bit

Secure Renegotiation IS supported

Compression: NONE

Expansion: NONE

SSL-Session:

Protocol : TLSv1

Cipher : EDH-DSS-DES-CBC3-SHA

Session-ID: 567E50D41A2972656F463FC3600B6CED851138969EF9F2599268ED0572AE7315

Session-ID-ctx:

Master-Key: 565E6B07A8DFF230165F0CABFAA0ABF2E95C630994E64E2DB9AC7F7B7963F8B623010F0ED024D22262E7766170E88094

Key-Arg : None

Start Time: 1451118804

Timeout : 300 (sec)

Verify return code: 19 (self signed certificate in certificate chain)

�

KNET Co.,Ltd. EPP Server2015-12-26T08:33:25.53Z1.0enurn:ietf:params:xml:ns:domain-1.0urn:ietf:params:xml:ns:host-1.0urn:ietf:params:xml:ns:contact-1.0urn:ietf:params:xml:ns:secDNS-1.1urn:ietf:params:xml:ns:launch-1.0urn:ietf:params:xml:ns:rgp-1.0

Issue 2:
by andreas@ionisiert.de:

What steps will reproduce the problem?
cd
rm -rf go
hg clone -u weekly https://go.googlecode.com/hg/ go/
cd go/src
./all.bash
go get code.google.com/p/goprotobuf/{proto,protoc-gen-go}
package code.google.com/p/goprotobuf/proto
imports code.google.com/p/goprotobuf/proto: import "code.google.com/p/goprotobuf/proto": cannot find package
package code.google.com/p/goprotobuf/protoc-gen-go
imports code.google.com/p/goprotobuf/protoc-gen-go: import "code.google.com/p/goprotobuf/protoc-gen-go": cannot find package

cd code.google.com/p/goprotobuf/proto
go build
go install
go install: no install location for _/home/aj/go/src/code.google.com/p/goprotobuf/proto

What is the expected output?
go get should work / fail with an error message pointing to the source of the problem.

What do you see instead?
a cryptic error message.

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

Which operating system are you using?
linux

Which revision are you using? (hg identify)
weekly 2012-03-04

Please provide any additional information below.

source of my problems: I had GOPATH set instead of GOROOT.
fixing that now everything is fine. but the error messsage doesn't
help to find out what is wrong and migth confuse new users.
Issue 1:
->add('recipientContacts', EntityType::class, [
'mapped' => false,
'required' => false,
'multiple' => true,
'expanded' => false,
'class' => Contact::class,
'query_builder' => function (EntityRepository $repository) {
return $repository->createQueryBuilder('contact')
->where('contact.enabled = true')
->orderBy('contact.name', 'ASC');
},
'group_by' => 'groups.name',
])

Important is this line:

'group_by' => 'groups.name',

This is not working because there is a Many-to-Many relation between Contact and ContactGroup.

Neither the property "name" nor one of the methods "getName()", "name()", "isName()", "hasName()", "__get()" exist and have public access in class "Doctrine\ORM\PersistentCollection".

(Yes: ContactGroup contains getName())

Issue 2:
In #12006, Symfony introduced the concept of ExpressionFunctionProviders. The consequence is that you cannot use the DependencyInjection component from 2.6 together with an older version of the ExpressionLanguage component. Is there a way to make the developer's experience easier? Can we maybe add the old behaviour as a fallback?
Issue 1:
When trying to create an Isolate in --debug mode the Dart VM is unable to fetch the Dart source code for the new Isolate.

The error is thrown when tapping the Start button in the services/isolate.dart example.

This issue was previously reported as #5814 and was partially fixed to work in --release mode but is still failing in the default --debug mode (for different reasons since the earlier fix).

flutter/examples/layers$ flutter run -t services/isolate.dart
Building APK in debug mode (android-arm)...
Warning: signing the APK using the debug keystore.
Built build/app.apk (8.7MB).
Launching loader on Nexus 5X...
--------- beginning of main
Observatory listening on http://127.0.0.1:34521
Diagnostic server listening on http://127.0.0.1:41805
Updating assets... 0.2s
Syncing files to device...
Scanning project files... 0.1s
Scanning package files... 0.5s
Scanning asset files... 0.0s
Scanning for deleted files... 0.0s
No files to remove.
Updating files... 3.2s
Synced 5.7MB.
Connected to view '_flutterView/0xe272bb80'.
Running services/isolate.dart on Nexus 5X...
Application running.
Type "h" or F1 for this help message; type "q", F10, or ctrl-c to quit.
Type "r" or F5 to perform a hot reload of the app, and "R" to restart the app.
Type "w" to print the widget hierarchy of the app, and "t" for the render tree.
Finishing file synchronization...
Syncing files to device...
Scanning project files... 0.0s
Scanning package files... 0.3s
Scanning asset files... 0.0s
Scanning for deleted files... 0.0s
No files to remove.
Updating files...
E/flutter : [ERROR:../../flutter/assets/unzipper_provider.cc(16)] Unable to open zip file: /data/user/0/io.flutter.examples.Layers/cache/layerskphtff/services/isolate.dart
F/flutter : [FATAL:../../flutter/runtime/dart_init.cc(254)] Check failed: zip_asset_store->GetAsBuffer(kSnapshotAssetKey, &snapshot_data).
--------- beginning of crash
W/ActivityManager: Force finishing activity io.flutter.examples.Layers/org.domokit.sky.shell.SkyActivity
W/ActivityManager: Force finishing activity io.flutter.examples.Layers/org.domokit.sky.shell.SkyActivity
W/ActivityManager: Duplicate finish request for ActivityRecord{6531d4d u0 io.flutter.examples.Layers/org.domokit.sky.shell.SkyActivity t99 f}
Application finished.

Here is my flutter doctor output:

[✓] Flutter (on Linux, channel master)
• Flutter at /home/lex/projects/flutter
• Framework revision 2a81391915 (2 days ago), 2016-09-16 23:22:20
• Engine revision e4121f80a9
• Tools Dart version 1.20.0-dev.5.0

[✓] Android toolchain - develop for Android devices (Android SDK 19.1.0)
• Android SDK at /home/lex/projects/Android/Sdk
• Platform android-19, build-tools 19.1.0
• OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14)

[✓] Atom - a lightweight development environment for Flutter
• flutter plugin version 0.2.4
• dartlang plugin version 0.6.37

[✓] Connected devices
• Nexus 5X • 00dd4847616ed5cd • android-arm

Issue 2:
ubuntu 17.04
Issue 1:
Summary of the new feature/enhancement

Proposed technical implementation details (optional)

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.356]

Windows Terminal version (if applicable): 0.5.2681.0

Steps to reproduce

Run this litle command in the terminal using a cmd.exe tab to produce a little box:

echo ┌┐ & echo └┘

Expected behavior

The box should have perfectly joined lines on all sides. Living in a monospaced environment where the box drawing characters are used to draw trees, boxes and other stuf perfect line joining is expected

Actual behavior

The lines of the box are not vertically joined
Issue 1:
Problem description

Button href component return error when clicked.

Steps to reproduce

import MenuIcon from 'material-ui-icons/Menu';
import AppBar from 'material-ui/AppBar';
import Button from 'material-ui/Button';
import Hidden from 'material-ui/Hidden';
import IconButton from 'material-ui/IconButton';
import { withStyles } from 'material-ui/styles';
import { withRouter, Link } from 'react-router-dom';
import Toolbar from 'material-ui/Toolbar';
import React, { Component } from 'react';
import { LogoDiv, NavWrapper, Nav, styles } from './styles';

const navs = [
{ label: 'Home', url: '/' },
{ label: 'How to', url: '/' },
{ label: 'Faq', url: '/' },
{ label: 'Area', url: '/' },
];

class Header extends Component {
render() {
const classes = this.props.classes;

return (
<AppBar position="fixed" color="default"
classes={{ root: classes.appBarRoot, colorDefault: classes.appBarBg }}>
<Toolbar classes={{ root: classes.toolBar }}>
<Hidden mdUp>
<IconButton aria-label="Menu">
<MenuIcon />
</IconButton>
</Hidden>

<Hidden mdDown>
<NavWrapper>
{navs.map(nav => (
<Button href={nav.url}>{nav.label}</Button>
))}
</NavWrapper>
</Hidden>

<LogoDiv />

<div style={{ display: 'flex', flex: 1, justifyContent: 'flex-end' }}>
<Button raised color="primary">Login</Button>
</div>
</Toolbar>
</AppBar>
);
}
}

export default withStyles(styles)(withRouter((Header)));

Versions

Material-UI: next

React: next

Browser: Chrome

Issue 2:
Problem description

Upgrading to React V16 throws error: this.updater.enqueueCallback is not a function

Steps to reproduce

yarn add react@next react-dom@next

Versions

Material-UI: v1.0.0-beta.5

React: @next

Browser: Chrome

Description

When clicking a button, dropdown etc. this.updater.enqueueCallback is not a function exception is thrown.

Console says the following:

The above error occurred in the Transition component

Images & references
Issue 1:
On: Microsoft Windows [Version 10.0.17763.134]

I have implemented conpty in my terminal emulator:

https://github.com/wez/wezterm

I can successfully run target\debug\wezterm.exe to spawn console applications such as cmd.exe powershell.exe and bash.

The issue I'm seeing is that when I launch bash, either indirectly via cmd.exe or directly via the bash launcher, conpty seems to swallow the mouse reporting escape sequences; I don't see them being received by my terminal parser, and thus vim has no effective mouse support despite being configured with set mouse=a.

Running the same WSL install via wsl-terminal does have working mouse support, and wezterm has been my daily driver on Linux for about a year with working mouse support, so we can rule out an obvious misconfiguration with vim and the parser in wezterm.

I've also tried echo -e "\e[?1000h" to manually enable mouse reporting from the shell; normally (on linux and via wsl-terminal) this causes clicks in the terminal to send data to the shell (which appears as garbage input), but when running my terminal with conpty, these are also swallowed up somewhere.

Is there something special needed for the apps that I spawn into my pty to be able to work with the mouse?

In case you want to double check the key portion of the code, the relevant file is:

https://github.com/wez/wezterm/blob/master/src/winpty.rs

The flow is to CreatePipe a pair of pipes, CreatePseudoConsole, and then pass that to a spawned child via the threadproc attributes, as the samples in the MSDN docs and this repo also do.

Issue 2:
Environment

Windows build number: 10.0.18362.267
Windows Terminal version (if applicable): Windows Store version (latest)

Windows Terminal (Dev Build)

Steps to reproduce

I have build Terminal from source and am using it successfully, but I would like to try the version from the Windows Store. I have downloaded it, but when I try to launch it, it immediately terminates without any other error.

The exact sequence is:

Start Menu

Click on "Windows Terminal (Preview)"

Expected behavior

I expect both versions to run on the same instance of Windows, if the manual build runs, then the pre-compiled should also run?

Actual behavior

I get a quick flash of a terminal window - it is not blank (as reported elsewhere). It is a quick flash and then immediately it terminates. Nothing on the taskbar, nothing in the process list, no error messages, etc.

Additional Information

There are no updates pending on the Windows Store, and the Dev Build version runs fine.

I looked at #2073 because the symptoms are the same, but I am not running with elevated privileges "Run as administrator" (ie, right-click on the icon).