WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/914 on 2009-04-06 by trac user lckarssen, assigned to unknown.

I tried to use special.assoc_laguerre(x,n,k) today and noticed that it returns 0.0 for n=0. However, it should return 1.0 (I used Mathematica to verify as well as a textbook).

Looking at the code, I noticed that special.hyp1f1(a,b,x) which is called by assoc_laguerre() returns 0.0 for a=0, whereas it should return 1.0 (only verified by Mathematica). I tried to look for the code of hyp1f1(), but couldn't find it.

Furthermore, I noticed that assoc_laguerre() doesn't have a docstring explaining it's usage. It might be nice to at least point to special.laguerre().

The tests were done on a 32bit install of Ubuntu 8.10, which ships scipy 0.6.0

Issue 2:
Original ticket http://projects.scipy.org/scipy/ticket/787 on 2008-11-10 by @pv, assigned to unknown.

hyp1f1(a=0, b, z) yields infs at points which are poles for a != 0:

>>> s.hyp1f1(0, -0.99999, 0)
1.0
>>> s.hyp1f1(0, -1, 0)
inf
>>> s.hyp1f1(0, -1.00001, 0)
1.0

It would make sense to continue hyp1f1(0, b, z) to unity with all b, z for a=0. See eg. http://functions.wolfram.com/HypergeometricFunctions/Hypergeometric1F1/03/01/03/0003/ -- this convention is used also by Mathematica.
Issue 1:
For example,

struct Weak

struct Rc

struct Box

The [src] link at the top-right corner on these pages redirect to 404 page.

Other pages like enum Option seems to be fine.

Issue 2:
In http://doc.rust-lang.org/std/sync/struct.Arc.html

click "src". It links to http://doc.rust-lang.org/alloc/arc/struct.Arc.html?gotosrc=1343 which is forwarded to http://doc.rust-lang.org/alloc/arc/undefined
Issue 1:
hi there..

my wife got a meticulous problem in the official LOGO of Tensorflow.

see the logo:

(https://user-images.githubusercontent.com/39337227/43732365-c2b3a27e-99c6-11e8-94dc-735a1727678e.JPG)

in T of the logo, its have 4 column but in shadow its have 3 column.

corroct it.

we also accept any gift for that . 🥇

Issue 2:
In Tensorflow logo, the left arm of the T looks like 2 units long, while the right arm is 1 unit long. So, if I am not mistaken, the shadow should look different (asymmetrical).
Issue 1:
Output of node_modules/.bin/electron --version: v3.0.7 (I tried almost all the versions above 3.0.0)

Operating System (Platform and Version): Mac OSX Sierra

Output of node_modules/.bin/electron --version on last known working Electron version (if applicable):

Expected Behavior

do webview1.getWebContents().setDevToolsWebContents(webview2.getWebContents())

do webview1..getWebContents().openDevTools()

and then webview2 show the chrome dev-tool panel and the panel tab "Elements" should show the html hierachy of the webview1

Actual behavior

webview2 show the chrome dev-tool panel and the panel tab "Elements" does not show the html hierachy of the webview1. It seems dev-tool is not valid.

To Reproduce

https://github.com/cyqresig/electron-quick-start/tree/bug/setDevToolsWebContents_cyq_20181129

$ git clone https://github.com/cyqresig/electron-quick-start -b bug/setDevToolsWebContents_cyq_20181129
$ npm install
$ npm start || electron .

Issue 2:
It seems that Chromium disallows using guest view as devtools, I need to find out the code in Chromium to fix it.

not ok 55 <webview> tag setDevToolsWebContents() API sets webContents of webview as devtools
AssertionError: expected '' to equal 'InspectorFrontendHostImpl'
at Context.it (/Users/zcbenz/codes/electron/spec/webview-spec.js:721:26)
Issue 1:
Running

f2py -c --help-compiler

hangs indefinitely on Ubuntu 18.04 as a result of shlex.split() being called on None.

This occurs at line 471 in fcompiler/__init__.py when show_fcompilers() calls customize() and self.command_vars.compiler_f77 = f77, self.command_vars.compiler_f90 = None

Reproducing code example:

import shlex
import os

shlex.split(None,posix=(os.name=='posix'))

Numpy/Python version information:

Python Version: Python 3.6.7

Numpy version: 1.16.0 3.6.7 (default, Oct 22 2018, 11:32:17)

[GCC 8.2.0]

Issue 2:
Installation of NumPy 1.16.0 will hung up for me with python 2.7.15 for me,

in fcompiler detection.

Hung up here:

numpy/numpy/distutils/fcompiler/__init__.py

Lines 471 to 472
in
971e2e8

f90 = shlex.split(self.command_vars.compiler_f90,

posix=(os.name == 'posix'))

For my environment, self.command_vars.compiler_f90 is None here, so it (shlex.split) is waiting standard input.
Issue 1:
class C { get x() { return 1; } get x() { return 1; } // error}

class D { set x(v) { } set x(v) { } // error}

class E { get x() { return 1; } set x(v) { }}

var x = { get x() { return 1; },

// error get x() { return 1; }}

var y = { get x() { return 1; }, set x(v) { }}

Expected:

class C {
get x() { return 1; }
get x() { return 1; } // error
!!! Getter 'x' already declared.
}

class D {
set x(v) { }
set x(v) { } // error
!!! Setter 'x' already declared.
}

class E {
get x() {
return 1;
}
set x(v) { }
}

var x = {
get x() {
return 1;
},

// error
get x() {
return 1;
}
!!! Getter 'x' already declared.
}

var y = {
get x() {
return 1;
},
set x(v) { }
}

Actual:

class C {
get x() { return 1; }
get x() { return 1; } // error
!!! Duplicate identifier 'x'.
}

class D {
set x(v) { }
set x(v) { } // error
!!! Duplicate identifier 'x'.
}

class E {
get x() {
return 1;
}
set x(v) { }
}

var x = {
get x() {
return 1;
},

// error
get x() {
!!! Duplicate identifier 'x'.
return 1;
}
}

var y = {
get x() {
return 1;
},
set x(v) { }
}

Issue 2:
From #7535, it would be useful for JavaScript package authors to have the ability to generate declarations from their project. This would help with getting started on a type definition (it would be populated with known interfaces/functions/types that are exported) and would also allow the creation of continuous integration scripts that check the JavaScript types with the hand-coded definition for inconsistencies.
Issue 1:
TypeScript Version:

nightly (1.9.0-dev.20160502)

Code

// ext1.d.ts
declare module "State" {
interface IState {
num: number;
}
export { IState };
}

// ext2.d.ts
declare module "State" {
interface IState {
str: string;
}
export { IState };
}

//app.ts
import { IState } from "State";

function test(state: IState): void {
console.log(state.num);
console.log(state.str);
}

// tsconfig.json
{
"files": [
"app.ts",
"ext1.d.ts",
"ext2.d.ts"
]
}

Expected behavior:

The "State" module and IState interface declarations should be merged and the code should compile without errors.

Actual behavior:

The declaration files report error TS2300: Duplicate identifier 'IState'

Workaround:

The above errors do not occur when both IState interfaces are exported inline using the export modifier instead of in a ExportClause.

NOTE: If the first is exported inline and the second is exported in an ExportClause then the second declaration errors with TS2482: Export declaration conflicts with exported declaration of 'IState'.

Issue 2:
Randomly during build, the typescript compiler will issue such errors while the class does actually have the property set as static:

class MyClass
{
static MyProp:string="Hello";
static MyFunc()
{
console.log(MyClass.MyProp);
}
}

As during the next build it may work, this is certainly a compiler bug.

Using Visual Studio 2015 -> TypeScript for MS VS 1.6.3.0
Issue 1:
In a window with several tabs, some of them dirty, using Close Pane (from File menu) pops the "Changes will be lost" dialog. However clicking the Cancel button still closes the untouched tabs.

Expected behaviour: do not close anything.

Additionally, clicking Cancel should also immediately stop the processing of the command. At the moment it carries on prompting for each dirty tab.

Issue 2:
Closing a pane closes unsaved files without prompting or saving

Atom Version: 0.143.0-b29a61e

Atom-Shell Version: 0.19.1

OS Version: Mac OS X 10.10

Misc Versions

�apm� �0.109.0�

�npm� �1.4.4�

�node� �0.10.32�

�python� �2.7.6�

�git� �2.1.2�

Repro Steps

Open a file a.txt

Open second pane Cmd+K RIGHT

Open a file b.txt

Make a change to b.txt

Select File | Close Pane

Expected: Dialog is shown

Actual: No dialog is shown, file is closed without prompting

This report was created in and posted from the Atom editor using the package bug-report version 0.4.1.
Issue 1:
Problem description

Link to minimal working code that reproduces the issue

<TextField
label="From Time"
type="time"
value={this.state.time}
name="time"
onChange={this.handleChange}
/>

Versions

Material-UI: 1.0.0-alpha.13

React: 15.5.4

Browser: Google Chrome / Version 58.0.3029.110 (64-bit)

Issue 2:
TextField with a label set to something and type set to date but with no initial value displays the label and mm/dd/yyyy on top of each other in the TextField. Once you enter the field, the label moves up as superscript and the mm/dd/yyyy remains and is readable.

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

Expected Behavior

When the date picker has no value, if it is going to display the expected date format in the field, it should treat that as a value and move the label up to superscript. Alternatively, don't display the date format unless the user enters the field and there is no value.

Current Behavior

Currently the label and date format overwrite each other if there is no value for the TextField.

Steps to Reproduce (for bugs)

Example on codesandbox.io:

https://codesandbox.io/s/6ljy4wq04k

Your Environment

Tech
Version

Material-UI
1.0.0-beta.9

React
15.6.1

browser
Chrome 60.03
Issue 1:
I have checked the superset logs for python stacktraces and included it here as text if 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

Superset version

0.26.3

Expected results

I want to add a table from external Redshift Spectrum schema, in order to create charts based on this table. I expect the flow will be the same as with "local" Redshift schemas:

Sources -> Databases -> Add (postgresql)

Sources -> Tables -> Add (select redshift DB, put schema name and table name)

Observe a table in a table list

Actual results

Following error is displayed:

Table [spectrum.assoc] could not be found, please double check your database connection, schema, and table name

where spectrum is an external schema name and assoc is a table name.

Steps to reproduce

Create Redshift cluster; create external spectrum schema; add a table to the metastore

Notes

I think this might be a duplicate of #3316

In psql console, you can't get a list of tables in external spectrum schema by using \dS, only by querying SVV_EXTERNAL_TABLES system view.

In Superset's SQL Lab I can query external spectrum tables by using schema.tablename naming

Issue 2:
Scenario:

If I use the SQL Lab with a postgres database, that has multiple schemas, the schema selection on the left side leads to (psycopg2.OperationalError) FATAL: database "schema" does not exist.

Even though the inspection of the schema works and I get all tables under the third dropdown.

However if I leave the schema dropdown on the left empty and write a query like this:

SELECT *

FROM schema.test LIMIT 100

it works.

I guess the schema selection is misinterpreted in some way...

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

I have checked the caravel logs for python stacktraces and included it here as text if any

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

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

Caravel version

0.12.0

Expected results

SELECT *

FROM schema.testtable LIMIT 100 succeeds

with the selected schema on the left side.

Actual results

SELECT *

FROM schema1.testtable LIMIT 100

leads to

(psycopg2.OperationalError) FATAL: database "schema1" does not exist

Steps to reproduce

Create a postgres database with two schemas (schema1, schema2)

select one schema in the SQL Lab

query:

SELECT *

FROM schema1.testtable LIMIT 100
Issue 1:
Steps to Reproduce

Pull down to trigger a refresh. While the refresh is occurring pull down again and the refresh callback is executed again. This is similar but not an exact duplicate of #4834.

Issue 2:
Steps to Reproduce

Trigger a refresh() of the RefreshIndicator and then scroll down (drag your finger up). The refresh indicator goes away even though the Future from refresh() has not complete. The indicator should stay visible: https://material-design.storage.googleapis.com/publish/material_v_8/material_ext_publish/0B1PhAWhtrRTrUlM4NHN1ei1DS2s/patterns-swipetorefresh-behavior_do_xhdpi_009.webm
Issue 1:
https://www.sqlite.org/lang_update.html

see if we can flip this on and not spend too much time on it, lots of tests will light up if we add the method so should be quick

Issue 2:
Describe the use case

Allow the UPDATE-FROM syntax with sqlite instead of raising NotImplementedError.

Databases / Backends / Drivers targeted

SQLite version >= 3.33.0

This is available in the standard library sqlite3 in Python 3.8.7, 3.9.1, and 3.10, or in the pysqlite3 package.

Example Use

UPDATE inventory
SET quantity = quantity - daily.amt
FROM (SELECT sum(quantity) AS amt, itemId FROM sales GROUP BY 2) AS daily
WHERE inventory.itemId = daily.itemId;

Additional context

The SQLite UPDATE-FROM syntax is supposed to be compatible with PostgreSQL.

https://sqlite.org/lang_update.html

I found that copying update_from_clause from sqlalchemy.dialects.postgresql.base to sqlalchemy.dialects.sqlite.base makes this work.
Issue 1:
deno version rc1.0

deno install -A --unstable 'https://deno.land/x/deku/mod.ts'

When I use deno install --unstable, the unstable APIs(here is transipileOnly) will throw a not a funciton error.

It seems that --unstable is not effective.

deno run -A --unstable 'https://deno.land/x/deku/mod.ts'

deno run works well.

Issue 2:
Basically I ran deno upgrade --canary and then deno run --unstable someFile.ts shortly after. Deno then notifies about a new canary being available, even though I am on the latest version already.

deno upgrade --canary

Looking up latest canary version
Found latest version 1410e4adea5d399f9551ff04c6863862f169ee7a
Checking https://dl.deno.land/canary/1410e4adea5d399f9551ff04c6863862f169ee7a/deno-x86_64-unknown-linux-gnu.zip
36.1 MiB / 36.1 MiB (100.0%)
Deno is upgrading to version 1410e4adea5d399f9551ff04c6863862f169ee7a
Archive: /tmp/.tmpJJ01pQ/deno.zip
inflating: deno
Upgraded successfully

deno run --unstable someFile.ts

A new canary release of Deno is available. Run `deno upgrade --canary` to install it.

deno --version
deno 1.27.1+1410e4a (canary, x86_64-unknown-linux-gnu)
v8 10.8.168.4
typescript 4.8.3

deno upgrade --canary
Looking up latest canary version
Local deno version 1.27.1+1410e4a is the most recent release
Issue 1:
Summary

Trying to register a custom 404 (or any?) error handler using blueprints and the declaritive style seems to have no effect:

# Has no effect
@blueprint.errorhandler(404)
def ...

# Yet this works:
@app.errorhandler(404)
def ...

Of course, the blueprint wouldn't work if it wasn't registered, but I have registered it and yet, the custom error page isn't shown. Here are two files you can use to reproduce the lack of custom error handling:

# FILE: app.py
import flask
import views

app = flask.Flask(__name__)
app.register_blueprint(views.blueprint)
app.run()

# FILE: views.py
import flask
blueprint = flask.Blueprint('views', __name__, template_folder='templates')

@blueprint.route('/')
def index():
return "Hello world, I might have errors!"

@blueprint.errorhandler(404)
def errors_404(e):
return "I am a 404!", 404

Expected Behavior

We should see the response "I am a 404!" for http://127.0.0.1:5000/abc

Actual Behavior

We see Flask's standard error page:

Not Found

The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

Working if changed to app.errorhandler()

It seems like I have the setup correct (I hope I'm not wasting your time!) because with a slight move from blueprint.errorhandler() to app.errorhandler(), the expected behavior is achieved:

This one works

# FILE: app.py
import flask
import views

app = flask.Flask(__name__)
app.register_blueprint(views.blueprint)

# I just moved this from views.py and changed blueprint to app
# Of course, the error report is that this shouldn't be necessary.
@app.errorhandler(404)
def errors_404(e):
return "I am a 404!", 404

app.run()

# FILE: views.py
import flask
blueprint = flask.Blueprint('views', __name__, template_folder='templates')

@blueprint.route('/')
def index():
return "Hello world, I might have errors!"

Environment

Python version: 3.8

Flask version: 1.1.2

Werkzeug version: 1.0.1

OS: macOS Catalina

Issue 2:
Sorry in advance if it is not the right place to open this kind of issue.

I think it would be nice to have issues labelled 'good first bug' for people wanting to contribute but not knowing how to start.
Issue 1:
Having seen some inconsistent results from processing DataFrames - literally, running scripts over static data would generate different outcomes - we were able to boil down the following example:

def compare(df):
df1 = df.query('x < 2000')
df2 = df.query('x < 2000')
return df1.equals(df2)

If I understand correctly, calling compare should never return false and yet it does, randomly:

>>> df = pd.DataFrame({'x': range(100000), 'y': range(100000)})
>>> for i in xrange(1000):
... if not compare(df):
... print ('failed at iteration', i)
...
failed at iteration 10
failed at iteration 66
failed at iteration 80
failed at iteration 141
failed at iteration 149
...
failed at iteration 878
failed at iteration 999

This seems like a defect in query?

Relevant versions:

>python --version
Python 2.7.11 :: Anaconda 2.4.0 (64-bit)
>systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type"
OS Name: Microsoft Windows 8.1 Pro
OS Version: 6.3.9600 N/A Build 9600
System Type: x64-based PC

Issue 2:
We are observing some inconsistent behaviour of the dataframe query method under windows.

I enclose a smallish (3600 rows) dataframe where we find the issue.

The following code fails randomly under Windows, but seems to work smoothly on Mac:

import pandas as pd

df = pd.read_csv("pd_bug.txt")

for x in df.A.unique():
try:
assert len(df.query('(A == @x) | (B == @x)')) == len(df[(df.A == x) | (df.B == x)])
except AssertionError:
print x

We are observing a failure every other run (often with two or three values failing).

Here is the output of pd.show_versions() on the failing machine:

INSTALLED VERSIONS
------------------
commit: None
python: 2.7.11.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None

pandas: 0.17.1
nose: 1.3.7
pip: 7.1.2
setuptools: 19.1.1
Cython: 0.23.4
numpy: 1.10.1
scipy: 0.16.0
statsmodels: 0.6.1
IPython: 4.0.1
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.4.2
pytz: 2015.7
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.4.4
matplotlib: 1.5.0
openpyxl: 2.2.6
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.7.7
lxml: 3.4.4
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.9
pymysql: None
psycopg2: None
Jinja2: None

pd_bug.txt
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.1

Operating System version: mac 10.13.6

Java version: java8

I believe there are some problem in netty idleStateHandler, sometimes we need config readIdle timeout and writeIdle timeout when business logic needed. There is a enhancement about this.

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.9目前使用/2.7.2也检查了确实还是有此逻辑bug

Operating System version: suse

Java version: 1.8

Steps to reproduce this issue

注册中心 zookeeper 。protocol ：dubbo

优雅停机逻辑为首先断开所有注册中心连接，然后断开所有protocol连接

// destroy all the registries

AbstractRegistryFactory.destroyAll();

// destroy all the protocols

destroyProtocols();

zk收到provider下线请求会通知consumer一个event，让其对invokersList进行操作，更新（删除）下线的provider。在此更新完成前，如果仍旧有请求持续进入，有可能选中此provider，从而导致交易失败

是否可以把Dubboprotocol.close中sendreadonlyEvnent提前到AbstractRegistryFactory.destroyAll();前，先把channel状态置为readonly，这样invoker.isavailable（）=false，就不会被选中了。

ps：还有个小问题，在只有一个提供者的情况下，为何不判断invoker.isavailable（）？在分批停机升级的时候，最后一台不论invoker.isavailable（）状态必然被选中，还是会有隐患。
Issue 1:
Michal Troicki opened SPR-9364 and commented

If ReflectionUtils.findMethod return null we should return true instead invocation of the method fail with NullPointerException.

protected boolean determineRequiredStatus(Annotation annotation) {
try {
Method method = ReflectionUtils.findMethod(annotation.annotationType(), this.requiredParameterName);
return (this.requiredParameterValue == (Boolean) ReflectionUtils.invokeMethod(method, annotation));
}
catch (Exception ex) {
// required by default
return true;
}
}

Issue Links:

#13954 caught NullPointerException in AutowiredAnnotationBeanPostProcessor.determineRequiredStatus ("duplicates")

Issue 2:
Philippe Marschall opened SPR-9316 and commented

AutowiredAnnotationBeanPostProcessor.determineRequiredStatus uses ReflectionUtils.findMethod to look up a method named "required". If there is no such method then ReflectionUtils.findMethod returns null. However AutowiredAnnotationBeanPostProcessor.determineRequiredStatus never checks for null instead it directly passes the method to ReflectionUtils.invokeMethod which throws a NullPointerException which is then caught in a catch (Exception ex) block in AutowiredAnnotationBeanPostProcessor.determineRequiredStatus.

Annoations that don't have a method named "required" include @Inject @Value @Resource.

This is not so nice for several reasons:

when you debug one of your own NullPointerExceptions and set an exception breakpoint on NullPointerException you end up in Spring code

it uses NullPointerExceptions and catching them as part of normal control flow

filling in the stack trace of an exception is slow

Affects: 3.1.1

Issue Links:

#14001 AutowiredAnnotationBeanPostProcessor.determineRequiredStatus(Annotation) throws NullPointerException if method wasnt found. ("is duplicated by")

Referenced from: commits 26ee0c4, 2624b90, 46bdb2d
Issue 1:
When making a typo in the template of forgetting to include the directive in the component, the attribute silently gets removed without any warning.

Example:

<a [routeLink]="['Something']">Go to Something

where 'routeLink' is a typo and should be 'routerLink'.

Would there be a way to provide a warning when this happens, maybe together with a list of available directives?

Issue 2:
In the ideal world we should be able to detect "dangling" attributes. In the <div foo> example we should report foo as "dangling" when:

foo is not a valid HTML attribute (how come should we identify valid attributes? From a spec / schema?)

there is no matching directive

it wasn’t consumed by a binding / event handler / var declaration / other ng-specific construct

it is not prefixed with data- (?)

In practice "dangling" attributes in templates are most probably attributes are introduced due to:

typos

forgetting to add a directive (in the directives for the @View annotation) that should match a given attribute