WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I think the title is quite self-explanatory. Steps to reproduce this are:

wget http://openml.liacs.nl/data/download/29/dataset_29_credit-a.arff
python -m scipy.io.arff.arffread dataset_29_credit-a.arff

The problematic lines in the .arff file are 578 and 579, and in scipy 600-606. The problem is that scipy first checks if a line is a comment, then it iterates until it finds a non-comment line. Next it checks if a line is empty, and iterates until it finds a non-empty line. Then, it does not check if this non-empty line is a comment. Changing lines 600-606 to

for raw in row_iter:
while r_comment.match(raw) or r_empty.match(raw)::
raw = next(row_iter)
row = raw.split(delim)
yield tuple([convertors[i](row[i]) for i in elems])

would fix this problem. I benchmarked this on an .arff file with MNIST data (240MB, 70000 lines, 785 attributes). The old, broken version took took an average of 21.166 seconds (10 runs), the fixed one seems to be a bit faster, taking only 19.6645 seconds.

If you consider this as a bug, I am willing to provide a pull request including a fix.

Issue 2:
A new least_squares interface for LSQ problems is included as a part of gh-5019

However, it should be ensured in the design phase that most important functionality is included in it already from the beginning.

Interface wiki page: https://github.com/nmayorov/bounded-lsq/wiki/Calling-%60leastsq%60-via-generic-interface as regards for MINPACK compatibility.

Suggestions presented so far:

global optimizers should be supported

LBFGSB
Issue 1:
React Dev Tool is turning to blue color on websites that are not built with react.

The issue happens when Redux DevTools extension is installed.

Screenshot

Redux DevTools: Click Here

Issue 2:
Website or app

youtube.com, github.com, gmail.com, lucidchart.app

Repro steps

Open any web app not made with React (e.g.: youtube.com, amazon.com, github.com, gmail.com, lucidchart.app)

The react icon is ON and the popover message says:

'This page is using the production build of React. ✅'

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

No response

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response
Issue 1:
Hi,

Just realized that I am restating the already reported issue

#9704

In the documentation of

domain of argument of scipy.interpolate.RectSphereBivariateSpline(u, v, r, s=0.0, pole_continuity=False, pole_values=None, pole_exact=False, pole_flat=False)

on page

https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.RectSphereBivariateSpline.html

it states that the domain of the 2nd argument v should be [-pi, pi). However, when invoking

RectSphereBivariateSpline.ev(self, theta, phi, dtheta=0, dphi=0)

documented on page

https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.RectSphereBivariateSpline.ev.html

the argument phi, which corresponds to the aforementioned v, requires the input within [0, 2pi) rather than [-pi, pi).

Would you double check the domains of the angular arguments and make sure that the functions and their documentations all have consistent domains for the angles? Thanks!

Issue 2:
The RectSphereBivariateSpline interpolation function cannot be evaluated for negative degrees longitude, which is actually supported by the underlying interpolation library. The cause is that SphereBivariateSpline, the baseclass to RectSphereBivariateSpline, raises ValueErrors for negative lon-values. This is appropriate for the two other classes that subclass SphereBivariateSpline, but not RectSphereBivariateSpline.

One solution could be to create call methods for the two other Sphere-classes and move the checks on lat/lon from SphereBivariateSpline into these.

If that seems viable I could create a pull-request.

Reproducing code example:

from scipy.interpolate import RectSphereBivariateSpline
import numpy as np

lats = np.array([25, 30, 35, 40, 45])
lons = np.array([-90, -85, -80, -75, -70])

mesh = np.meshgrid(lats, lons)
data = mesh[0] + mesh[1] # lon + lat value

lat_r = np.radians(lats)
lon_r = np.radians(lons)

interpolator = RectSphereBivariateSpline(lat_r, lon_r, data)

query_lat = np.radians(np.array([35, 37.5]))
query_lon = np.radians(np.array([-80, -77.5]))

data_interp = interpolator(query_lat, query_lon)

Error message:

---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-1-49ec0a78db0b> in <module>()
16 query_lon = np.radians(np.array([-80, -77.5]))
17
---> 18 data_interp = interpolator(query_lat, query_lon)

~/anaconda3/lib/python3.6/site-packages/scipy/interpolate/fitpack2.py in __call__(self, theta, phi, dtheta, dphi, grid)
1263 raise ValueError("requested theta out of bounds.")
1264 if phi.size > 0 and (phi.min() < 0. or phi.max() > 2. * np.pi):
-> 1265 raise ValueError("requested phi out of bounds.")
1266
1267 return _BivariateSplineBase.__call__(self, theta, phi,

ValueError: requested phi out of bounds.

Scipy/Numpy/Python version information:

1.1.0 1.14.3 sys.version_info(major=3, minor=6, micro=5, releaselevel='final', serial=0)
Issue 1:
Aleš Najmann opened SPR-6514 and commented

There was class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer in Spring 3.0 M4 with method

/**
* Parse the given String value recursively, to be able to resolve
* nested placeholders (when resolved property values in turn contain
* placeholders again).
* @param strVal the String value to parse
* @param props the Properties to resolve placeholders against
* @param visitedPlaceholders the placeholders that have already been visited
* during the current resolution attempt (used to detect circular references
* between placeholders). Only non-null if we're parsing a nested placeholder.
* @throws BeanDefinitionStoreException if invalid values are encountered
* @see #resolvePlaceholder(String, java.util.Properties, int)
*/
protected String parseStringValue(String strVal, Properties props,
Set visitedPlaceholders)
throws BeanDefinitionStoreException {...}

class is still there, but was refactored quite a lot since M4 and above method with other methods were removed. But in more specific environments, like in Gigaspace in our case, there is problem with instanciation of the container because it relies on the method.

With no known workaround for it it's show stopper for deployment project on Gigaspace platform. It hits all releases since M4.

(...And I welcome any ideas.)

Affects: 3.0 RC1, 3.0 RC2, 3.0 RC3

Issue Links:

#10981 parseStringValue gone from PropertyPlaceholderConfigurer

Referenced from: commits ad29a23

Issue 2:
Kenny MacLeod opened SPR-6315 and commented

This is a deliberately refiled duplicate of #10827, which was originally filed as a "refactor", and I think it perhaps should be "bug".

Between 3.0.0 M4 and RC1, the protected parseStringValue method disappeared from PropertyPlaceholderConfigurer. For custom subclasses, this method was the main entry point into the superclass functionality. Since it had not been deprecated, it seemed like the correct thing to do, but has now been removed, breaking compile-time compatibility between 2.5 and 3.0.

Can the method be reinstated somehow, that perhaps invokes the new methods that do the work? It can then be marked as deprecated.

Affects: 3.0 RC1

Issue Links:

#10827 parseStringValue gone from PropertyPlaceholderConfigurer ("duplicates")

#11180 Backward compatibility issue in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
Issue 1:
VSCode Version: 1.2.0-insider

OS Version: OS X 10.11.5

Steps to Reproduce:

Press ⌘K to clear the integrated terminal.

The terminal gets cleared.

VS Code is still waiting for the second key of the ⌘K chord.

⌘K is a recognised shortcut for clearing out the terminal on the Mac, but here it also conflicts with Code's other key bindings.

Issue 2:
Similar to the output panel would be nice to have an action top right to clear the terminal contents.
Issue 1:
Angular 1.x could read an ISO 8601 date from a JSON string and correctly format it with the date filter. For example: releaseDate: "2001-12-19T00:00:00" could be formatted using: {{ movie.releaseDate | date}}

The Angular 2 date pipe throws an exception: "Invalid argument '2001-12-19T00:00:00' for pipe 'function DatePipe() "

It would be much more user-friendly for the developer if a date from a JSON string could be formatted with the date pipe without first having to transform the string into a JavaScript date.

Issue 2:
The new date pipe only supports date objects or numbers but not ISO strings. In ng1 this was valid and made displaying simple JSON from api's to the UI very easy with little conversion process.

Plunker with ng1 behavior date filter ng1 iso
Issue 1:
I want to store data in list with AutoComplete Component. User write text in AutoComplete Component and clicking on add Button data should stored in list and after that I want to clear AutoComplete Text.

But there is no method or properties to clear Input of AutoComplete.

Version :

0.15.0

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

Expected Behavior

The scrollbar on a scrollable dialog would show up in almost all browser except on safari when testing on an iPhone or an iPad.

Current Behavior

The scrollbar remains hidden using Safari.

Steps to Reproduce (for bugs)

Here's how me Dialog is set:

<Dialog title={title}
actions={actions}
open={open}
modal={true}
autoScrollBodyContent={true}>

Hard to have a better image but when I scroll up or down, the scrollbar does not show up. It would be nice to have one so the user would not the section is actually scrollable when tapping the section.

Your Environment

Tech
Version

Material-UI
0.18.7

React
15.5.4

browser
Safari

etc
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-learn-how-script-tags-and-document-ready-work has an issue.

Each page of JQuery is starting with the phone blank, and the section where the objectives are checked off doesn't appear (and pressing run makes no difference). Running the correct code (I assume) to complete the objectives doesn't change this. Deleting the script and pressing run allows the phone to fill in and the objectives section to appear. The appearance of the phone doesn't change once you add back the script and run again, but the objectives disappear. In no case is feed back given upon pressing run.

screen shots 1-3.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-understand-boolean-values has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Screen shot: https://gyazo.com/c3cb6f017d627dabc3e72c5a7c228d8d

When I am on any of the free code camp challenges the objectives do not appear and it can not be completed. The only way I can find to fix it is to refresh the page a bunch of times and hope it eventually works. I can work around it but it is frustrating and takes a lot longer (and time is something I am limited on already :( ). I am using Google Chrome and it appears to be updated to current. My OS is Windows 7.
Issue 1:
I want to use the main processing loop of a C-library, which implements specific functionality in callbacks.

The callbacks shall be implemented in Julia. The following MWE demonstrates the difficulties, when the callback functions are invoked from POSIX-threads, which have been launched in C.

callmtcb.jl

module Testcb
f1() = println("called f1()")
f2() = exit(99)
cf1 = @cfunction f1 Cvoid ()
cf2 = @cfunction f2 Cvoid ()

push!(Base.DL_LOAD_PATH, pwd())
dl = Base.Libc.dlopen("libmtcb")
dls = Base.Libc.Libdl.dlsym(dl, :cb_setup)
ccall(dls, Cvoid, (Ptr{Cvoid}, Ptr{Cvoid}), cf1, cf2)
end

libmtcb.c

#include <pthread.h>

pthread_t threadid;
void(*savedf2)(void);

void* cb_thread(void* arg);

void cb_setup(void(*f1)(void), void(*f2)(void)) {

(*f1)();
savedf2 = f2;

pthread_create(&threadid, NULL, cb_thread, (void*)NULL);

pthread_join(threadid, NULL);
pthread_exit((void*)0);
}

void* cb_thread(void* arg) {
(*savedf2)();
return (void*)0;
}

Result of execution:

make run
/home/crusius/julia/julia --startup-file=no callmtcb.jl
called f1()

signal (11): Segmentation fault
in expression starting at /home/crusius/dev/FuseApi/test/embed/callmtcb.jl:11
Allocations: 2749 (Pool: 2739; Big: 10); GC: 0
make: *** [Makefile:18: run] Segmentation fault (core dumped)

A gdb session revealed, that the callback to f2 propagates into the call to exit(99) and then fails.

Actually the threads local variable jl_pgcstack is not initialized, so the Julia runtime has no chance to succeed.

The test files and the setup for a debug session are found here: https://github.com/KlausC/FuseApi.jl/blob/main/test/embed/

There is a Makefile with run and debug targets to explore the example under Linux and Gnome.

Issue 2:
As discussed on julia-users, I would like for it to be possible to call a Julia function from a non-Julia thread:

https://groups.google.com/forum/#!topic/julia-users/TqC79eYTYx8

My use case is calling a Julia OpenGL rendering function from within the QML rendering thread. The current workaround is to force Qt to use the non-threaded rendering engine.
Issue 1:
Which version of Sharding-Sphere do you using?

3.0.0.M1

Expected behavior

When I use 'REPLACE INTO' sql statement, the expected error log is io.shardingsphere.core.parsing.parser.exception.SQLParsingUnsupportedException.

Actual behavior

The actual error log is java.lang.NullPointerException.

Reason analyze

Here is something wrong with the exception handler.

Steps to reproduce the behavior

Just execute 'REPLACE INTO' sql statement when use sharding-sphere.

Please provide the reproduce example codes (such as a github link).

Just execute 'REPLACE INTO' sql statement.

Line 43 at io.shardingsphere.core.parsing.parser.exception.SQLParsingUnsupportedException.java.

Issue 2:
ShardingSphere-SQL - Actual SQL: ds_0 ::: SHOW STATUS

[ERROR] 2022-10-12 14:06:53.546 [ShardingSphere-Command-0] o.a.s.p.f.c.CommandExecutorTask - Exception occur:

java.lang.NullPointerException: null

at org.apache.shardingsphere.infra.federation.executor.original.OriginalFederationExecutor.createConnection(OriginalFederationExecutor.java:92)

at org.apache.shardingsphere.infra.federation.executor.original.OriginalFederationExecutor.executeQuery(OriginalFederationExecutor.java:83)

at org.apache.shardingsphere.proxy.backend.communication.jdbc.JDBCDatabaseCommunicationEngine.doExecuteFederation(JDBCDatabaseCommunicationEngine.java:165)

at org.apache.shardingsphere.proxy.backend.communication.jdbc.JDBCDatabaseCommunicationEngine.execute(JDBCDatabaseCommunicationEngine.java:123)

at org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.execute(MySQLComQueryPacketExecutor.java:94)

at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:110)

at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:77)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)
Issue 1:
There's nextTab and prevTab, but since I work in a single-tab, multi-pane environment, those keybindings do nothing for me. How about being able to bind ctrl+tab to nextPanel?

(Would fit in nicely with the rest of #1000 .)

Edit: I can't believe I typoed that last nextPanel as nextTab, making the sentence and request completely nonsensical. :D

Issue 2:
Description of the new feature/enhancement

Support more keystroke on keybinding like: meta (win) key.

In most UNIX terminal, Ctrl, Alt and Shift are captured by the program, if we use these modifiers to bind keybinding, we cannot send these keys into the program.

Like most terminal emulators in macOS, they most use command (cmd) key to bind shortcuts to avoid prevent occupying sending these modifiers into terminal, IMO, Terminal should support capturing Win (Meta) as modifier and allowing to bind shortcuts.

Proposed technical implementation details (optional)

It seems that Windows::System::VirtualKeyModifiers supports Win key, so is this feature possible?
Issue 1:
From the recorded video of TF dev summit held about one month ago, I got to know the newest distributed TF 1.0 is able to achieve 57x speed up for the inception v3 model on a server of 8 nodes/ 8 gpus and the codes will be released. Since I am far away from getting such a good scaling performance using my own distributed implementation, I have been looking forward to seeing and studying from the training codes from TF. Could anyone tell me the progress now? Thanks!

Issue 2:
TF r1.0 claims that it can achieve 58x performance improving by 64 GPUs for Inception v3. Are there any guidelines or sample code to help us to reproduce the results?
Issue 1:
Seems that io.druid.timeline.DataSegmentTest is duplicated in druid-api and druid-server modules.

Issue 2:
If the user waits for few minutes before giving pageoffset to get more results then user is getting duplicated results .This happens as the pageoffset we use for pagination becomes invalid due to merging of druid segments and search starts from offset 0 in new segment. Is there any way to know the pageoffset is valid or not
Issue 1:
Ben Rowlands opened SPR-4345 and commented

The rest of the bean creation code guards against a null bean instance (we are using a null bean as a placeholder to delay creation of heavy weight objects when all we want is to create a skeleton layout of our application) .

NPE occurs when request the wrapped instance from the BeanWrapper (which may be null) in populateBean() :

...

if (!ibp.postProcessAfterInstantiation(bw.getWrappedInstance(), beanName))

...

Affects: 2.5 final

Issue Links:

#9045 Autowiring failed when one of the bean contains factory-method ("is duplicated by")

#9075 CLONE -Autowiring failed when one of the bean contains factory-method ("is duplicated by")

Issue 2:
Alex Rau opened SPR-6524 and commented

the mvc:annotation-driven feature breaks or at least does not conform to the implemented strategy in MVC that there is an implicit DefaultAnnotationHandlerMapping (D1) which can be replaced with custom parameterized versions (D2) of handler mappings.

As soon as someone wants to use the above short-cut "mvc:annotation-driven" there will be a DefaultAnnotationHandlerMapping (D3) which a) cannot be replaced with a custom version (D2) anymore and b) replaces the implicit one (D1). Even worse - developers declaring (D3) assuming they would override the implicit one (D1) will end up with two instances of DefaultAnnotationHandlerMapping (D2 and D3) resulting in duplicate registration of annotated controllers (component scan) and custom parameterization which will be without any effect as D2 seems to win over D3.

I think at least a dedicated property for the above declaration should be defined which allows passing in a custom DefaultAnnotationHandlerMapping along with the declaration (+ some clarifying documentation about this wouldn't be too bad).

Steps to reproduce:

declare in a web application context (e.g. using Spring's DispatcherServlet):

<mvc:annotation-driven/>

<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping" />

<context:component-scan base-package="org.retroduction" use-default-filters="false">

<context:include-filter expression="org.springframework.stereotype.Controller" type="annotation"/>

</context:component-scan>

declare a java controller using @Controller

start container with logging enabled and check logs for duplicate registration of the controller

Affects: 3.0 RC2, 3.0 RC3

Reference URL: http://forum.springsource.org/showthread.php?p=272494

Issue Links:

#11070 Document new mvc namespace ("is superseded by")
Issue 1:
Hi there,

My wife has got a Nokia Lumina, which displayed my Bootsrap sites as tablet versions and not responding correctly to the screen widths (some content overhanging too). I checked the Bootstrap demos thinking it must only be my sites but these also had the same issue.

Issue 2:
I recently received a Nokia Lumia 1520 but I can't seem to get it working with any page that utilizes Bootstrap 3.

While a few Bootstrap 2.3.2 pages out there work just fine it seems to be mostly Bootstrap 3 having problems with it.

The problem appears to be that Bootstrap doesn't recognize the Lumia as phone at all but rather as desktop due to the 1080p resolution.

Could also be a problem with IE 10 not being able to handle the 1080p resolution very well yet.

I attached a screenshot of the Bootstrap 3 getting started page (http://getbootstrap.com/getting-started/) from the 1520.

You can clearly see that the desktop version is loaded by Bootstrap, which results in a somewhat mixed mobile/desktop experience.
Issue 1:
I am trying to use Chinese text in my plot. There are some pre-installed font on the system which support Chinese (using fc-list :lang=zh), for example "WenQuanYi Zen Hei". But I find that these fonts can not be found by matplotlib. I checked some of the code of font_manager. I find that font_manger seems intentionally avoid finding font files in ttc extensions.

In order to use these font, I have to explicitly give the path of the font, like the following example code:

import matplotlib.pyplot as plt
import matplotlib.font_manager as mfm
ch_font = mfm.FontProperties(fname="/usr/share/fonts/wqy-zenhei/wqy-zenhei.ttc")
plt.annotate(xy=(0.5, 0.5), s=u'测试', xycoords='axes fraction', fontproperties=ch_font)
plt.show()

What is the reason behind this ?

Matplotlib version

Operating System: CentOS 7.2

Matplotlib Version: 2.0.1

Python Version: 3.6

Issue 2:
The code posted below will return the following: RuntimeError: TrueType font is missing table . It looks like TTC files have replaced TTF files for many fonts in Windows 8. Please consider adding support. Thanks so much,

MJ

import matplotlib.pyplot as PLT
import pylab as PYLAB
from matplotlib.backends.backend_pdf import PdfPages as PDF
import matplotlib.font_manager as fm

fontFile = r'C:\Windows\Fonts\msyh.ttc'
fp1 = fm.FontProperties(fname=fontFile)

reportFile = r'C:\Temp\TestUnicodeJA.pdf'
pdfOutput = PDF(reportFile)
vals = range(100)

PLT.plot(vals, vals, color = "r", linestyle = "-")
mess = u'\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059....'
PYLAB.xlabel(mess, fontproperties = fp1)
PLT.savefig(pdfOutput, format='pdf')
PLT.close()
pdfOutput.close()