WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
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 an issue that matches the one I want to file, without success.

Issue Details

Electron version: v5.0.1

Operating system: MaxOS 10.14.4

Expected Behavior

As doc https://electronjs.org/docs/api/shell#shellopenexternalurl-options

Actual Behavior

Link opened in the browser, but the browser is not brought to the foreground.

To Reproduce

Upgrade electron to v5.0.1 in https://github.com/electron/electron-api-demos

And try "open external links" demo

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 an issue that matches the one I want to file, without success.

Note: related but different issues:

#21603 -- that one was using the older (callback) API, but this is using the latest (promise) API (and #21639 appears to be a duplicate of that)

#18093 -- in that case some output is produced, but here a rejection occurs (and the affected electron versions are different).

#20634 -- that one never ends, but this one rejects shortly after the call occurs

Issue Details

Electron Version:

v8.0.0-beta.5 (also happens in 9.0.0-nightly.20191220 & 9.0.0-nightly.20200108)

Operating System:

Debian (bullseye/sid) x64, 5.3.0 kernel

Last Known Working Electron version:

7.1.8, 8.0.0-beta.4, See bisect

Expected Behavior

Calling someBrowserWindow.webContents.printToPDF should not throw exception / generate promise rejection.

Actual Behavior

Calling someBrowserWindow.webContents.printToPDF rejects with [Error: Failed to generate PDF].

To Reproduce

Fiddle: https://gist.github.com/jacobq/cc5e5e1736b88cb32604f55369afd1c7

Repo: https://github.com/jacobq/electron-quick-start/tree/bug/print-to-pdf

mainWindow.webContents.once('did-finish-load', async function() {
try {
const pdfData = await mainWindow.webContents.printToPDF({})
console.log('Got PDF data -->', pdfData) // never gets here
} catch(e) {
// output --> Call to printToPDF threw exception [Error: Failed to generate PDF]
console.error('Call to printToPDF threw exception', e)
}
});
Issue 1:
Make a buffer in emacs, ending in a closing brace, without a trailing newline.

Run M-x gofmt.

gofmt buffer says:

diff <standard input> gofmt/<standard input>
--- /home/bradfitz/toiletwaffle.go 2012-11-09 00:20:59.596470604 -0800
+++ /tmp/gofmt864654113 2012-11-09 00:20:59.596470604 -0800
@@ -49,4 +49,4 @@
}
}

-}
\ No newline at end of file
+}

Mini-buffer says: Try to auto-fix word-wrap damage? (y or n)

If you add the trailing newline, it works fine.

Issue 2:
What steps will reproduce the problem?
1. put "表.go" on windows japanese locale. (表 is 0x95 0x5c)

What is the expected output?

表.exe is generated

What do you see instead?

executable is generated but filename was broken.

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

8g

Which operating system are you using?

Windows7

Which version are you using? (run 'go version')

go version devel +e2dd08f26402 Wed Feb 12 12:34:04 2014 +1100 windows/386

Please provide any additional information below.

https://golang.org/cl/63220043/
https://golang.org/cl/43150043

http://go-gyazo.appspot.com/1e62666e56ead7f5.png
http://go-gyazo.appspot.com/7726ef07295118c2.png
Issue 1:
Issue

Wrapping/Scoping Bootstrap generates duplicate selectors with LESS.

The issue impacts negatively the third-party use of the BS.

Input:

.bs-wrap {
@import "../bower_components/bootstrap/less/bootstrap.less";
}

Output:

.bs-wrap .bs-wrap .container:before,
.bs-wrap .bs-wrap .container:after,
.bs-wrap .bs-wrap .container-fluid:before,
.bs-wrap .bs-wrap .container-fluid:after,
.bs-wrap .bs-wrap .row:before,
.bs-wrap .bs-wrap .row:after,
.bs-wrap .bs-wrap .form-horizontal .form-group:before,
.bs-wrap .bs-wrap .form-horizontal .form-group:after,
.bs-wrap .bs-wrap .nav:before,
.bs-wrap .bs-wrap .nav:after {

Should be:

.bs-wrap .container:before,
.bs-wrap .container:after,
.bs-wrap .container-fluid:before,
.bs-wrap .container-fluid:after,
...

Issue 2:
Issue 1:
http://docs.ansible.com/ansible/latest/dev_guide/developing_api.html

I use Official Demo Can not run successfully

Please Update New Deomo

Issue 2:
ISSUE TYPE

Documentation Report

COMPONENT NAME

ANSIBLE VERSION

ansible 2.4.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]

CONFIGURATION

OS / ENVIRONMENT

CentOS Linux release 7.3.1611 (Core)

SUMMARY

http://docs.ansible.com/ansible/latest/dev_guide/developing_api.html

I use Official Demo Can not run successfully

Please Update New Deomo

STEPS TO REPRODUCE

http://docs.ansible.com/ansible/latest/dev_guide/developing_api.html

EXPECTED RESULTS

ACTUAL RESULTS
Issue 1:
trait Foo {}
impl Foo for () {}

#[cfg(not(good))]
fn foo(x: bool) -> Box<Foo+'static> {
match x {
true => box() (),
false => box() ()
}
}
#[cfg(good)]
fn foo(x: bool) -> Box<Foo+'static> {
match x {
true => box() () as Box<Foo>,
false => box() () as Box<Foo>
}
}

fn main() {
foo(true);
foo(false);
}

Compiling with --cfg good (i.e. explicit casts) runs 100% fine, compiling without it (i.e. implicit coercions) segfaults/crashes. This also runs fine on 0.12 on the playpen, and with if x { instead of match .

cc @nick29581 (maybe?)

Issue 2:
trait Thing {
fn hello(&self) -> uint;
}

struct Thing1 { name: String }
impl Thing for Thing1 {
fn hello(&self) -> uint { 1 }
}

struct Thing2 { name: String }
impl Thing for Thing2 {
fn hello(&self) -> uint { 2 }
}

fn main() {
let t: Box<Thing> = match true {
true => box Thing1 { name: "hello".to_string() },
_ => box Thing2 { name: "hello".to_string() },
};
println!("{}", t.hello());
}

Running this code yields various failures (SIGSEGV, "Illegal instruction: 4"):

$ rustc s.rs
# Warnings snipped
$ ./s
Illegal instruction: 4

LLDB has this to say:

(lldb) bt
* thread #1: tid = 0x821935, 0x0000000100003358 s`Box$LT$Thing$GT$::glue_drop.1635::ha5cee14c6e595b4f + 72, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
* frame #0: 0x0000000100003358 s`Box$LT$Thing$GT$::glue_drop.1635::ha5cee14c6e595b4f + 72
frame #1: 0x00000001000011f8 s`main::hb72fec937d964a29Zaa + 680
frame #2: 0x000000010000f2d9 s`rust_try_inner + 9
frame #3: 0x000000010000f2c6 s`rust_try + 6
frame #4: 0x000000010000e1df s`rt::lang_start::h270935babb5b337fRCz + 831
frame #5: 0x00000001000013bf s`main + 79
frame #6: 0x00007fff92d9b5c9 libdyld.dylib`start + 1

and I'm reasonably up-to-date:

$ rustc --version=verbose
rustc 0.13.0-dev (1c2df5cc3 2014-12-20 01:12:19 +0000)
binary: rustc
commit-hash: 1c2df5cc3cfc0c9e80adf9fa6504d55056741c5a
commit-date: 2014-12-20 01:12:19 +0000
host: x86_64-apple-darwin
release: 0.13.0-dev
Issue 1:
#### Summary

When trying to fetch to server with proxy, it just ignores proxy setting and fetch to server.

This problem already mentioned in this issue (#672)

But closed for some reason. and still occurred now.

I am using latest versions of react-native, and axios.

Here is my code below.

let config = {
proxy: {
host: '127.0.0.1',
port: 8118
}
}
axios.get('https://api.ipify.org/', config)
.then(function (response) {
console.log("-----------");
console.log(response.data);
console.log("-----------");
})

Output: Original IP, not proxied one

#### Context

axios version: v0.16.2

Environment: node v.8.3.0, and react-native-cli 2.0.1

Issue 2:
Describe the issue

version 0.19.0 , because mergeConfig : is not support custom parameters realization RESETful

Example Code

Code snippet to illustrate your question

axios.delete(diagnosis, {
params: {
text: 'hello'
},
pathParams: {
userId: 1000,
batchId: 'XD982393'
}
})

Expected behavior, if applicable

Workable

Environment:

All

Additional context/Screenshots

none
Issue 1:
Both Request.prototype[_mimeType] and Response.prototype[_mimeType] implement the extract a MIME type algorithm. These should be deduplicated.

In fact, it would make sense to implement this algorithm in ext/web/01_mimesniff.js, taking values as its argument rather than a header list.

Issue 2:
DenoCompiler.madeDefine() can be improved, where there is some duplication of code for the localRequire and what is used when resolving dependencies in the define.

The reason we support require as a dependency is to facilitate compatibility with ES dynamic import(). The way TypeScript accomplishes this is by using a non-AMD specified optional third argument for local require. This is used to "reject" the Promise that is used to resolve the require. The third argument was implemented by RequireJS but never added to the spec. Technically the local require we have implemented doesn't support returning immediately with already resolved dependencies either, so the only thing that it is good for is facilitating TypeScript emitting ES dynamic import(), therefore we should just make errback a mandatory argument.
Issue 1:
I'm submitting a ... (check one with "x")

[X] bug report => search github for a similar issue or PR before submitting
[ ] 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 the application grows a certain point and component styles could not be shared in the same <style> tag, Angular creates a new style tag to host CSS definitions and attaches that to document head.

There is a limitation in Internet Explorer 9 which prevents <style> tags after the first 31 are ignored by the browser. This limitation makes Angular applications "randomly" miss out the styles for components. I say random, because it seems style tags are created and appended to document head in component load order and user's navigation story throughout the app may have a significant effect on which styles will load and which ones will be ignored.

Expected behavior

Given the number of style tags allowed in Internet Explorer is very low, any sufficiently large application will hit this barrier very quickly. Because this limitation cannot be extended to a more reasonable limit, I think Angular should provide a way to put a hard limit on number of style tags to a level to keep support for this browser.

Minimal reproduction of the problem with instructions

An application under test should have enough components to have the framework create more than 31 stylesheets. See https://plnkr.co/JeJ9uT for an example plunkr. On IE9, styles for component-29 and later are not applied (one style tag is inlined in index.html and one is created for root component, leaving 29 slots for generated components).

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

Most obvious workaround for this problem is to move all component styles out of a separate CSS file and leave the styles and styleUrls properties blank for component metadata. But this removes the encapsulation feature of the framework. Even then, this may not be suitable for all application configurations especially when they depend on third party component libraries such as material2 or ng-bootstrap.

Please tell us about your environment:

Environment irrelevant.

Angular version: 2.4.9

Browser: [IE 9]

Language: [all]

Node (for AoT issues): node --version = NA

Issue 2:
Trying to inject AsyncTestCompleter into a beforeEach block results in an InstantiationError.

beforeEach(inject([TestComponentBuilder, AsyncTestCompleter], (tcb, atc) => {
builder = tcb;
async = atc;
}));

Error: Error during instantiation of AsyncTestCompleter!.

It would allow tests to be significantly cleaner by supporting this, as it would prevent a lot of duplication in writing each test (injecting AsyncTestCompleter into each it).
Issue 1:
Environment

Windows build number: 10.0.19041.329
PowerToys version: 0.19.2
PowerToy module for which you are reporting the bug (if applicable):

Steps to reproduce

Open PowerToys

Right click on systray icon and click on settings

resize or move settings window

close settings window

right click on systray icon and click on settings

Expected behavior

pt settings would keep its position and size

Actual behavior

pt reverts to its original position and size

Screenshots

Issue 2:
Environment

Microsoft Windows [Version 10.0.19041.264]

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

Steps to reproduce

Click powertoys in notification tray, window is on set size that cannot be adjusted, meaning everytime you click on the icon , the window reverts to default size and location

Expected behavior

Actual behavior

Screenshots
Issue 1:
I recently installed numpy on RPI Zero running Python3.9. Upon trying to run #import numpy I get the error that libcblas.so.3 is missing:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/numpy/core/__init__.py", line 23, in <module>
from . import multiarray
File "/usr/local/lib/python3.9/dist-packages/numpy/core/multiarray.py", line 10, in <module>
from . import overrides
File "/usr/local/lib/python3.9/dist-packages/numpy/core/overrides.py", line 6, in <module>
from numpy.core._multiarray_umath import (
ImportError: libcblas.so.3: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/pi/code/plotly/plot.py", line 2, in <module>
import numpy as np
File "/usr/local/lib/python3.9/dist-packages/numpy/__init__.py", line 140, in <module>
from . import core
File "/usr/local/lib/python3.9/dist-packages/numpy/core/__init__.py", line 49, in <module>
raise ImportError(msg)
ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

* The Python version is: Python3.9 from "/usr/bin/python3"
* The NumPy version is: "1.23.4"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: libcblas.so.3: cannot open shared object file: No such file or directory

It seems a required package for numpy doesn't get installed by default. I was able to get my import command to succeed by installing this package: sudo apt-get install libatlas-base-dev. Shouldn't this dependency automatically get installed or at least flagged from a python3 -m pip install numpycommand?

Issue 2:
I'm using a Raspberry Pi Zero W and I am running Raspian Stretch Lite, released 2018-04-18, with update and dist-upgrade (on 17 May 2018). In python3 I've tried:

pip3 install numpy

which installed 1.14.3. When I import numpy in python3 it reports that it cannot file "libf77blas.so.3". numpy 1.12.1 works.

Didn't find any other comments on this, sorry if it is a duplicate.
Issue 1:
As the title says, the accelerator "Cmd+Plus" (or CmdOrCtrl) ends up as "Shift+Cmd+=". I understand that to get "+" you need to press "Shift+=" on a US keyboard. However, there is also another Plus key on the numeric part of the keyboard that doesn't work if the binding is not "Cmd+Plus". Why is Electron doing this transformation without being asked? Can this be avoided?

Issue 2:
Electron versions: at least 0.23.0 and 0.24.0

OS: Mac

The list of key codes available for use in menu item accelerators includes Plus. When this key is used in an accelerator like Command+Plus on OS X, the key combination appears as "Shift Command =". Given that the key name is Plus, it would be preferable to have the corresponding key combination appear as "+" or "Shift +" instead of "Shift =". The Keyboard Shortcut section of the OS X Human Interface Guidelines indicates that "Shift Command +" is preferable to "Shift Command ="--look for the paragraph starting with "Identify a key with two characters."

A minimal Electron app that demonstrates this behavior can be found in this gist. Repro steps are outlined in the gist's readme.
Issue 1:
When using the segmented buttons functionality to create a search box like so:

<div class="input-group">
<input type="search" class="form-control input-lg" placeholder="Text input">
<div class="input-group-btn">
<button type="button" class="btn btn-info btn-lg">
<span class="glyphicon glyphicon-search"></span>
</button>
</div>
</div>

The alignment between the input box and the button is not perfect:

Sometimes the button height is bigger that the text box, sometimes the opposite, by a few pixels.

Issue 2:
http://bootply.com/79215
Issue 1:
Relates to https://stackoverflow.com/questions/60131900/weird-is-xhr-error-when-deploying-flask-app-to-heroku (which was viewed > 600 times in a few days)

Expected Behavior

Flask pulls a compatible version of Werkzeug

# Paste a minimal example that causes the problem.

Actual Behavior

flask currently requires Werkzeug >= 0.15 but we recently noticed that some of our existing flask applications were broken. In fact we were (still) running flask 0.12.4 and as it is now it is pulling Werkzeug 1.0.0 which is incompatible (breaks at runtime).

File "/app/server/controller.py", line 24, in get_kws 2020-02-08T22:31:05.893850+00:00 app[web.1]: 'query_results': query_result 2020-02-08T22:31:05.893850+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/flask/json.py", line 298, in jsonify 2020-02-08T22:31:05.893851+00:00 app[web.1]: if current_app.config['JSONIFY_PRETTYPRINT_REGULAR'] and not request.is_xhr: 2020-02-08T22:31:05.893851+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.6/site-packages/werkzeug/local.py", line 347, in getattr 2020-02-08T22:31:05.893852+00:00 app[web.1]: return getattr(self._get_current_object(), name) 2020-02-08T22:31:05.893858+00:00 app[web.1]: AttributeError: 'Request' object has no attribute 'is_xhr'

As described in the SO post, upgrading flask >= 1.0 fixes this but I thought I'd still report this in case you think its worth releasing a 0.12.5, I could do the change in setup.py.

Environment

Python version: 3.8

Flask version: 0.12.4

Werkzeug version: 1.0

Issue 2:
In http://flask.pocoo.org, "feedback website" link is 404 page.

http://feedback.flask.pocoo.org/
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/992 on 2009-02-02 by trac user phillies, assigned to unknown.

When you try to write a zip file larger than 4 GB with numpy's savez you get an exception saying that you should enable ZIP64 extensions.

I did not find any way (without altering the numpy code manually and reinstalling numpy) to make this possible. From my point of view, this is a severe usability bug - as I can not use savez anymore.

Please add a function, e.g. savez64(...) which uses ZIP64 by default or a function enableZip64(bool) which can turn ZIP64 on or off.

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/991 on 2009-02-02 by trac user phillies, assigned to @stefanv.

When you try to write a zip file larger than 4 GB with numpy's savez you get an exception saying that you should enable ZIP64 extensions.

I did not find any way (without altering the numpy code manually and reinstalling numpy) to make this possible. From my point of view, this is a severe usability bug - as I can not use savez anymore.

Please add a function, e.g. savez64(...) which uses ZIP64 by default or a function enableZip64(bool) which can turn ZIP64 on or off.
Issue 1:
image css max-width: 100% screws up the Google Maps JS v3 API and map embedding. Don't know if this can be excluded or if users must fix it on a case-by-case basis.

Issue 2:
First of all thanks for your fantastic work. It does SAVE me a lot of time.

When I put Google Maps into Bootstrap layout, img tag in Google Maps breaks because Bootstrap set img max-width to 100%. When I comment max-width, it's working find but I'm not sure whether it'll break something else in Bootstrap or not.

Bootstrap and Google Maps

http://jsfiddle.net/jhnRD/1/

Google Maps without Bootstrap

http://jsfiddle.net/aVx8L/

Cheers,
Issue 1:
Code example:

Save this in main.rs and try to compile.

enum T {}
type New = T;

impl New {}

fn main() {}

Trying to compile, it shows this error:

impl.rs:4:1: 4:12 error: cannot associate methods with a type outside the crate the type is defined in; define and implement a trait or new type instead

impl.rs:4 impl New {}

^~~~~~~~~~~

error: aborting due to previous error

Using git master HEAD: 6fcf43e

Issue 2:
Top-level functions can't be passed as lvalues to functions. Instead they have to be assigned to a temporary first.
Issue 1:
Consider this very basic group by operation:

df = pd.DataFrame({'col1': ['a', 'b', 'a', 'c'], 'col2': [1, 3, 2, 5]})
df_grp = df.groupby('col1')['col2']

When aggregating using mean, min, ... (everything but count) the resulting Series has col2 as its name:

df_grp.mean()

col1
a 1.5
b 3.0
c 5.0
Name: col2, dtype: float64

However, if I use count for aggregation, the name is not set:

df_grp.count()

col1
a 2
b 1
c 1
dtype: int64

Not a big problem for a simple case like that, but I stumbled over that while working with a MultiIndex that needed to be reindexed and led to a KeyError due to that missing column name.

Issue 2:
See #6068

Use case

Facilitate DataFrame group/apply transformations when using a function that returns a Series. Right now, if we perform the following:

import pandas
df = pandas.DataFrame(
{'a': [0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2],
'b': [0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1],
'c': [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0],
'd': [0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1],
})

def count_values(df):
return pandas.Series({'count': df['b'].sum(), 'mean': df['c'].mean()}, name='metrics')

result = df.groupby('a').apply(count_values)
print result.stack().reset_index()

We get the following output:

a level_1 0
0 0 count 2.0
1 0 mean 0.5
2 1 count 2.0
3 1 mean 0.5
4 2 count 2.0
5 2 mean 0.5

[6 rows x 3 columns]

Ideally, the series name should be preserved and propagated through these operations such that we get the following output:

a metrics 0
0 0 count 2.0
1 0 mean 0.5
2 1 count 2.0
3 1 mean 0.5
4 2 count 2.0
5 2 mean 0.5

[6 rows x 3 columns]

The only way to achieve this (currently) is:

result = df.groupby('a').apply(count_values)
result.columns.name = 'metrics'
print result.stack().reset_index()

However, the key issue here is 1) this adds an extra line of code and 2) the name of the series created in the applied function may not be known in the outside block (so we can't properly fix the result.columns.name attribute).

The other work-around is to name the index of the series:

def count_values(df):
series = pandas.Series({'count': df['b'].sum(), 'mean': df['c'].mean()})
series.index.name = 'metrics'
return series

During the group/apply operation, one approach is to check to see whether series.index has the name attribute set. If the name attribute is not set, it will set the index.name attribute to the name of the series (thus ensuring the name propagates).