WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/810 on 2008-12-02 by trac user damian.eads, assigned to trac user damian.eads.

The new scipy.spatial package combines my distance computation with Anne Archibald's kd-tree module. Some minor reworking is needed to make the kd-tree code use the distance module's distance functions. This reduces the duplication of functionality in SciPy and improves maintainability.

Issue 2:
Describe your issue.

scipy.interpolate.RegularGridInterpolator.__call__() raises an exception when one or more arrays of grid coordinates used to construct the interpolator are non-C-contiguous.

This appears to be new behavior in v1.10.0. In previous versions, there was no such restriction that these arrays must be C-contiguous -- the interpolator would produce valid results instead of raising an exception.

Reproducing Code Example

from scipy.interpolate import RegularGridInterpolator
import numpy as np

def f(x, y, z):
return 2 * x**3 + 3 * y**2 - z

x = np.linspace(1, 4, 11)
y = np.linspace(4, 7, 22)
z = np.linspace(7, 9, 33)
xg, yg ,zg = np.meshgrid(x, y[::2], z[::3], indexing='ij', sparse=True)
data = f(xg, yg, zg)

# Take a strided slice of `y` and `z` so that these input arrays are not
# C-contiguous.
interp = RegularGridInterpolator((x, y[::2], z[::3]), data)

pts = np.array([[2.1, 6.2, 8.3],
[3.3, 5.2, 7.1]])
interp(pts)

Error message

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/scratch/gunter/miniconda3/envs/tmp/lib/python3.9/site-packages/scipy/interpolate/_rgi.py", line 331, in __call__
indices, norm_distances = self._find_indices(xi.T)
File "/scratch/gunter/miniconda3/envs/tmp/lib/python3.9/site-packages/scipy/interpolate/_rgi.py", line 499, in _find_indices
return find_indices(self.grid, xi)
File "_rgi_cython.pyx", line 95, in scipy.interpolate._rgi_cython.find_indices
File "stringsource", line 660, in View.MemoryView.memoryview_cwrapper
File "stringsource", line 350, in View.MemoryView.memoryview.__cinit__
ValueError: ndarray is not C-contiguous

SciPy/NumPy/Python version information

1.10.0 1.24.1 sys.version_info(major=3, minor=9, micro=15, releaselevel='final', serial=0)
Issue 1:
I'm using unittest to create tests for my spiders. Internally, I use CrawlerRunner to invoke callbacks.

But every time I launch tests, I get several deprecation warnings.

/usr/local/lib/python3.6/site-packages/scrapy/utils/conf.py:97: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in future versions. Use ConfigParser directly instead.
cfg = SafeConfigParser()

/usr/local/lib/python3.6/site-packages/scrapy/core/downloader/webclient.py:4: DeprecationWarning: twisted.web.client.HTTPClientFactory was deprecated in Twisted 16.7.0: please use https://pypi.org/project/treq/ or twisted.web.client.Agent instead
from twisted.web.client import HTTPClientFactory

/usr/local/lib/python3.6/site-packages/scrapy/core/downloader/contextfactory.py:51: DeprecationWarning: Passing method to twisted.internet.ssl.CertificateOptions was deprecated in Twisted 17.1.0. Please use a combination of insecurelyLowerMinimumTo, raiseMinimumTo, and lowerMaximumSecurityTo instead, as Twisted will correctly configure the method.
acceptableCiphers=DEFAULT_CIPHERS)

However, I don't see any of these warning when using any of the scrapy commands.

Issue 2:
May you do a little modification to avoid these two warnings?

[py.warnings] WARNING: /.../scrapy/core/downloader/webclient.py:4: DeprecationWarning: twisted.web.client.HTTPClientFactory was deprecated in Twisted 16.7.0: please use https://pypi.org/project/treq/ or twisted.web.client.Agent instead

from twisted.web.client import HTTPClientFactory

[py.warnings] WARNING: /.../scrapy/core/downloader/contextfactory.py:51: DeprecationWarning: Passing method to twisted.internet.ssl.CertificateOptions was deprecated in Twisted 17.1.0. Please use a combination of insecurelyLowerMinimumTo, raiseMinimumTo, and lowerMaximumSecurityTo instead, as Twisted will correctly configure the method.

acceptableCiphers=DEFAULT_CIPHERS)
Issue 1:
the responsive utilities class .vislble-* always use display: block that mess with something display: inline-block.

for example

i use glyphicon to display eye open only on large desktop monitor.

the visible-* change display: to block instead of inline-block.

please use visibility: instead that it doesn't mess with display: style.

Issue 2:
Using a couple Facebook-like links in my navbar

<ul class="navbar-right nav navbar-nav">
<li>
<a href="#">
<span class="glyphicon glyphicon-shopping-cart">&nbsp;</span>
<span class="visible-xs visible-sm">Shopping Cart</span>
<span class="badge">3</span>
</a>
</li>
<li>
<a href="messages.html">
<span class="glyphicon glyphicon-envelope">&nbsp;</span>
<span class="visible-xs visible-sm">Messages</span>
<span class="badge">10</span>
</a>
</li>
</ul>

In the responsive menu they appear as such:
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

When running yarn dev it should work.

Current Behavior

When running yarn dev it gives me GET http://localhost:3000/_next/-/commons.js net::ERR_ABORTED

Steps to Reproduce (for bugs)

npm i -g create-next-app

create-next-app --example using-preact using-preact-app

cd using-preact-app

yarn dev

open browser http://localhost:3000

?? doesn't work

Your Environment

Tech
Version

next
next.js v5.0.0

node
v8.9.3

OS
macOS

browser
chrome

etc

Issue 2:
Bug report

you may see the video first: https://cl.ly/1Y0g0J43273y

Describe the bug

each page has a dynamic component.

link to one of other pages, and the dynamic component load failed

To Reproduce

example: https://github.com/comus/with-dynamic-import

rm -rf .next (clear build cache first)

yarn dev

go to localhost:3000/

click link "hello2"

error

Expected behavior

go to every page without error

Screenshots

https://cl.ly/1Y0g0J43273y

System information

OS: mac

Browser (if applies) chrome

Version of Next.js: 6.0.3

Additional context

none
Issue 1:
Environment

Windows 10 Enterprise

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

Steps to reproduce

Install PowerToys

Restart Computer

Open it from show-hidden-icons section

It doesn' t respond. Tabs on the left is not clickable. Elements in the general settings is not clickable also.

Expected behavior

Elements in the general settings tab should be clickable.

Tabs should be clickable.

Solved

Close the PowerToys

Close the computer

Open it again

It works.

Issue 2:
Environment

Windows build number: [run "ver" at a command prompt] 1909 (18363.836)
PowerToys version: 0.18
PowerToy module for which you are reporting the bug (if applicable): settings

Steps to reproduce

Launch Powertoys - right click to bring up settings

Expected behavior

See the settings dialog

Actual behavior

The dialog area is blank. As it opens on the desktop, it briefly flashes the content but then becomes blank

Screenshots
Issue 1:
Challenge Name

Missing Letters

Issue Description

The String.charCodeAt() link does not direct users to actual link as you can see from the provided screenshot on the right side.

Browser Information

Browser Name, Version: Chrome Version 49.0.2623.112

Operating System: Windows 8.1

Mobile, Desktop, or Tablet: Desktop

Screenshot

http://imgur.com/xu2mmNq

Issue 2:
Challenge Missing letters has an issue.

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36.

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

The link String.charCodeAt() has the href set to undefinded instead of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt.
Issue 1:
I'm submitting a ... (check one with "x")

[ ] bug report
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

When rejecting access to a component in a path using Guards you currently have to redirect to another path otherwise you get a blank page. This is for rc.4 new router.

Expected/desired behavior

It would be useful to be able to render a rejection page such as a 403 and not require a redirect or be able to provide a component for rejection.

Reproduction of the problem

If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).

What is the expected behavior?

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Angular version: 2.0.0-rc.4

Browser: [all ]

Language: [all]

Issue 2:
This issue is related to the new-new router:

I'm submitting a ... (check one with "x")

[ ] bug report
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

There is not currently any way to navigate through an application while skipping the browser history.

Expected/desired behavior

In the router-deprecated there was a second parameter on the navigateByUrl method that allowed us to skipLocationChange. It would be nice if the navigate method allowed this too.

What is the motivation / use case for changing the behavior?

I have a specific use case where we have a 'loader' component that does a service call and essentially decides where to route you. I would like to be able to navigate to this loader component without including it in the back button history so that the browser doesn't get stuck in an infinite loop of going back to the loader only to get redirected.

Please tell us about your environment:

Angular version: 2.0.0-rc.3

Router version: alpha.7

Browser: [all]

Language: [all]
Issue 1:
Dear Neo4j team,

I have a issue when i'm trying to use NOT IN expressions

This is my use case:

- The first query, i get nodes that have relationship with cypher
start cypher=node(4)
match cypher-[:KNOWS]-friends
return friends

Expect result: node 2 and node 5
Actual result: node 2 and node 5. This query run pretty good.

- The second query, i inherit the first query but i want to exclude node 5

start cypher=node(4)
match cypher-[:KNOWS]-friends
where NOT (ID(friends) IN [5])
return friends

Expect result: node 2
Actual result: "Error: java.lang.RuntimeException: java.lang.RuntimeException"

Please try above use cases on http://tinyurl.com/bn35krt

Thanks!
Gia

Issue 2:
Neo4j version: 3.0.7

Operating system: MacOS 10.12

API/Driver: Terminal

Following the tutorial for using the bulk CSV importer with multiple files, I issued the following command:

$NB/neo4j-import --into test.db --nodes "header.csv, patents.csv" --delimiter "|" --skip-duplicate-nodes

Expected behavior

Import of the records in patents.csv.

Actual behavior

Zero records being imported. Looking at the feedback generated by Neo4J, it was clear (in retrospect) that only the header.csv file was ingested, but no hint of why.

Through the wonderful StackOverflow community, I learned that the problem was the space after the comma in "header.csv, patents.csv". Removing that space made everything work fine.

As a naive user, this seems to perhaps be overly strict parsing behavior, especially since the list of files is enclosed within quotes. Possible enhancements include:

Allowing less strict parsing, so that my original command would run. Or, if that were not possible

Noting the requirement to have no spaces in the file list as part of the tutorial and other documentation (just as the need to enclose the list in quotes is currently noted) &/or

Generating a more informative error message.

Wonderful program. Thanks for considering.
Issue 1:
Every time I login to the site a popup shows up covering half the screen and I'm not able to work on any challenges or go into my profile because the popup won't go away. I try clicking on the "x" to close the box and it won't go away. Please help.

Challenge Use CSS Selectors to Style Elements has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.5.17 (KHTML, like Gecko) Version/8.0.5 Safari/600.5.17.

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

My code:

<h2 style="color: red">CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

Issue 2:
Hi,

I just can't use the website with Safari as of the release of the new design.

At any given time there is a blank panel on the right site of the webpage, the only links I can click on are map and chat, they both pop out a new panel that overlaps the blank one, but if I close the panel it does not dismiss the blank one. Screenshot for clarification

Website works fine on Chrome or Firefox on my computer, so I guess its just an safari Issue?
Issue 1:
Using Windows and 0.211.0

I have a second monitor, if I position my "Atom" monitor to the right and higher than other monitor and use FILE or right click options, the right click menu doesnt appear.

If I position my monitors at the same height, when I right click, hit FILE, the right click menu appears on the second monitor.

While the "Atom" monitor is to the right and higher than the other monitor, Atom attempts to display the right click menu in a space that doesnt exist, meaning I cannot see it.

How to fix this, make it so that any right clicking or pressing of the FILE button doesnt extend outside of the Atom window.

What is weird si that if you put Atom in window mode and right click/hit FILE, the menu appears inside the Atom window. Just when in maximise window mode, right click/FILE will go off screen

Issue 2:
I have a 3 monitor setup, when atom is maximized on any monitor but the left most one the file menu opens up one monitor to the left.

Windows 7

Atom vs 0.124.0
Issue 1:
Output of node_modules/.bin/electron --version: 2.0.8

Operating System (Platform and Version): MacOS 10.13.6

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

Expected Behavior

JSX files should have syntax highlighting like with JS files.

Actual behavior

JSX files in the sources tab show as plain white text, the error is shown in the terminal: Uncaught (in promise) Error: Could not instantiate: CmModes.DefaultCodeMirrorMimeMode

To Reproduce

Simply open a JSX file in your sources.

Additional Information

On a normal Chrome browser, JSX files have syntax highlighting working.

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

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

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

Electron Version

11.2.1,12.0.0

What operating system are you using?

Windows

Operating System Version

Windows 7

What arch are you using?

ia32

Last Known Working Electron version

don't know

Expected Behavior

run correctly

Actual Behavior

When open window. this bug appread frequently

Testcase Gist URL

No response

Exception thrown during bootstrapping
Error installing extension 'extensions::SafeBuiltins'.
[15296:0329/160109.446:FATAL:v8_initializer.cc(96)]
Issue 1:
Could we get the version number in the deb file that is posted on the github downloads page. It's pretty straight forward for me to grab the next version every time its released but when I need to quickly rollback my folder has a bunch of atom-amd64(N).deb files.

Super minor and I'll no longer care once we get an offical PPA going but for the time being it'd be awesome.

Issue 2:
Can we get the version appended to the rpm, deb and dmg packages as they are built.

I can't speak to dmg for mac, but it is considered standard practice to include the version and release as part of the filename in rpm and deb packages, especially since atom doesn't update itself and there are no YUM repos (yet).
Issue 1:
The cat picture links are not rendering in either Firefox or Safari even if I specify the URL in my address bar.

From my current lesson: challenges/use-the-bootstrap-grid-to-put-elements-side-by-side

<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>

<img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. ">

Issue 2:
Challenge Name

Steamroller

Issue Description

do not know why it does not let me through this challenge .

Browser Information

every result is right .

Browser Name, Version: chrome .

Operating System: mac os

Mobile, Desktop, or Tablet: Desktop

Your Code

function steamrollArray(arr) {
// I'm a steamroller, baby

for(var i=0;i<arr.length;i++){
if(!Array.isArray(arr[i])){
retArr.push(arr[i]);
}else{
retArr.concat(steamrollArray(arr[i]));
}
}
return retArr;
}

var retArr = [];

steamrollArray([1, [2], [3, [[4]]]]);

Screenshot
Issue 1:
Is there no possibility to display a done button (textInputAction: TextInputAction.done) for a number input (keyboardType: TextInputType.number)?

Issue 2:
TextInputType.number puts up a phone number style keyboard with no DONE button. Changing to TextInputType.text has a DONE button. iOS 10.3.3. How can I get a numeric keyboard on iOS?

Steps to Reproduce

Create a text field as follows:

TextEditingController controller = new TextEditingController(text: "");
Widget content = new TextField(
autocorrect: false,
autofocus: true,
controller: controller,
keyboardType: TextInputType.number,
maxLines: 1,
onSubmitted: (String value) { Navigator.pop(_context, "ok"); },
);

(The text field is in a dialog which is why the onSubmitted does a Navigator.pop)

When keyboard appears it has 0-9, '.' an delete but no Done button. There is no way to 'submit' the number entered into the text field. Our app will do a lot of numeric entry so a numeric keypad is essential. Thanks for any help on this!

Logs

No errors.

Flutter Doctor

[✓] Flutter (on Mac OS X 10.12.6 16G29, locale en-US, channel alpha)
• Flutter at /Users/bartwaggoner/flutter
• Framework revision 701d534ba9 (10 days ago), 2017-09-12 14:01:51 -0700
• Engine revision 31d03de019
• Tools Dart version 1.25.0-dev.11.0

[✓] Android toolchain - develop for Android devices (Android SDK 26.0.1)
• Android SDK at /Users/bartwaggoner/Library/Android/sdk
• Platform android-26, build-tools 26.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] iOS toolchain - develop for iOS devices (Xcode 9.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.0, Build version 9A235
• ios-deploy 1.9.2
• CocoaPods version 1.3.1

[✓] Android Studio (version 2.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Community Edition (version 2017.2.4)
• Flutter plugin version 17.0
• Dart plugin version 172.4155.35

[✓] Connected devices
• Barton's iPhone • 4ee038ab9c5211958a5828379a5c6f5033c7b3d9 • ios • iOS 10.3.3
Issue 1:
Bug report

Bug summary

Given clean loglog data, loglog subplots with shared axes work correctly. Given arbitrary loglog data, axis labels are removed incompletely.

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt

x_pass = np.logspace(1, 2, 3)
y1_pass = x_pass
y2_pass = 10*x_pass

x_fail = np.array([56., 140., 420.])
y1_fail = x_fail
y2_fail = 10*x_fail

f, ax = plt.subplots(2, sharex=True)
ax[0].loglog(x_pass, y1_pass, 'o')
ax[1].loglog(x_pass, y2_pass, 'o')

f, ax = plt.subplots(2, sharex=True)
ax[0].loglog(x_fail, y1_fail, 'o')
ax[1].loglog(x_fail, y2_fail, 'o')

Actual outcome

Expected outcome

The upper subplot in the second figure should hide all its x axis labels, similar to the upper subplot in the first figure.

Matplotlib version

Operating System: MacOS 10.12.6

Matplotlib Version: 2.0.2

Python Version: 3.6.1 (Python 5.3.0)

Other Libraries: numpy 1.12.1

Installed from Anaconda3-4.4.0-MacOSX-x86_64.pkg

Issue 2:
Bug report

Bug summary

If multiple subplots are created using the subplots function with sharex=True or sharey=True, only the outer axes should have tick labels. However, when having logarithmic axes, only this is only true for major tick labels.

The bug also appears when using AxesGrid instead of subplots.

Code for reproduction

fig, ax = plt.subplots(2, 2, sharex=True, sharey=True, squeeze=False)
for a in ax.flatten():
a.plot([10, 20, 30], [10, 20, 30])
a.set_yscale("log")
a.set_xscale("log")

Actual outcome

Expected outcome

No x (including minor) tick labels for the upper axes, no y tick labels for the right axes.

Matplotlib version

Operating System: Linux

Matplotlib Version: 2.0.2 (anaconda package)

Python Version: 3.6
Issue 1:
As the title says, this seems somehow broken.

ProfileType:

$builder->add('emails', 'collection', array(

'type' => new EmailType(),

'allow_add' => true,

'by_reference' => false)

);

EmailType:

$builder->add('address', 'text')

->add('type', 'text');

Calling form_widget(form) it only renders one input field and fills it with the return of the __toString() method of the email class. Shouldn't it render all fields defined in the EmailType class?

Issue 2:
see #3923 (comment)
Issue 1:
This issue relates to http://symfony.com/doc/current/cookbook/templating/namespaced_paths.html

If you choose to render your templates using namespaced paths

{% extends "@AcmeDemo/layout.html.twig" %}

It means that if you create a new bundle that AcmeDemo is the parent of, it does not prepend the child bundle paths.

Eg, say I create AppDemoBundle which has a parent of AcmeDemoBundle it should check for the templates in @AppDemoBundle/layout.html.twig before it checks for @AcmeDemo/layout.html.twig

Issue 2:
By looking at the code, I am under the impression that the Bundle inheritance is not supported by the current code.
Issue 1:
Hello everyone!

How I can doing dynamic host in axios?

Example:

const host = location.hostname;
// axios.defaults.baseURL = 'http://hastore.local';
axios.defaults.baseURL = host;
axios.defaults.port = 8080;
axios.get('api/categories')
.then((res) => {
this.categories = res.data;
console.log(res);
})
.catch((err) => {
console.warn('error during http call', err);
});

String axios.defaults.baseURL = 'http://hastore.local'; does not fit, because on prodaction don't be work.

String const host = location.hostname; also not a solution, because I get incorrect port and dublicate host.

The goal is to get the right host depending on the environment.

I read a lot of articles about this, but I did not find a solution.

Thanks for help!

axios version: e.g.: v0.16.2

Environment: e.g.: node v8.9.4, chrome 64.0.3282.119, Ubuntu 16.04

Issue 2:
Summary

try

let url = '/dsk',
let data = {
dsk: ['a1', 'a2']
}
let config = {
baseURL: 'http://8.8.8.8',
data
}

axios.post(url, data, {config}).then(resp => { console.log(resp.config.data) })

get resp.config.data

{"baseURL": "http://8.8.8.8", "url": "/dsk", "data": {"0": "a1", "1": "a2"}}

this config data is not expect.

Context

axios version: v0.18.0

Environment: node v10.4.1