WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Electron Version 7

Operating System: Windows

Last Known Working Electron version: 6.1.1

Loading from a data URL doesn't work anymore:

win.loadURL('data:text/html;charset=utf-8 ...', {baseURLForDataURL: ... })

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.

Issue Details

Electron Version:

7.0.0

Operating System:

Arch Linux

Last Known Working Electron version:

6.0.10

Expected Behavior

Opening a webview with a preset source as in:

<webview src="https://github.com"></webview>
<script>
webview.loadURL(
`data:text/html;charset=utf-8;base64,
PGgxPkhBTExPPC9oMT4=
`, { baseURLForDataURL: `file://home/` })
// the base64 string is just <h1>HALLO</h1>
</script>

loads the github URL and then reloads the webview with HALLO.

Actual Behavior

Electron crashes

To Reproduce

See this repo:

https://github.com/burningTyger/webview-bug

Screenshots

Additional Information
Issue 1:
[x ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

This is using almost the exact example from the documentation for the responsive drawer. I expect the drawer to close when I either click away from the drawer or make the window large again.

Current Behavior

The drawer does not close as expected as the onClosemethod is never fired.

I'm getting this compile error in TypeScript which is also reflected in Visual Studio Code

Property 'onClose' does not exist on type 'IntrinsicAttributes & DrawerProps & { children?: ReactNode; }'.

All other properties are found and behave as expected

Steps to Reproduce (for bugs)

Copy&Paste the example code from the Responsive Drawer into a TypeScript project in Visual Studio Code.

You may also need to do some casting to any as the styling stuff doesn't really play nice with TS at the moment.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.22

React
16.2.0

browser
Edge, Chrome, Firefox

Typescript
2.6.2

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

Expected Behavior

Should indicate on the docs for the Auto Complete component that you can set the style of the floating label.

Current Behavior

Website does not show floatingLabelStyle as a property for Auto Complete.

Steps to Reproduce (for bugs)

Able to manually set style for floatingLabelText.

Context

Using auto complete component in React app, and wanted to change the color of the floating label text so that it would show up on dark background.

Your Environment

Tech
Version

Material-UI
Latest

React
Latest

browser
Chrome

etc
Issue 1:
First bug found when displaying errors in collection. When numeration of (name) does not start from zero validation errors are displayed in bad collection memebers. For example:

a) I add 3 new collection members

b) I remove first member

c) I submit a form (got validation errors)

d) I add 1 new member

e) I submit form again

f) Validation errors are displayed in bad members, Last member does not have validation errors. First elemet has errors no matter if it is valid or not.

There is a bug in algorithm in documentation (http://symfony.com/doc/current/cookbook/form/form_collections.html), when you remove some elements from the middle of collection, and then submit form, after page is reloaded you will get bad (name) numeration when add new tags i.e. input names will have same name value.

Issue 2:
I am coding a project along the lines of the cookbook entry on embedded collections as stated on: http://symfony.com/doc/current/cookbook/form/form_collections.html.

I am considering the following use case:

Starting out with entering a new entity task, tag is the embedded collection

I click the Javascript 'add a tag'-link, which adds a bar 0 instance of the tag form

I click the Javascript 'add a tag'-link, which adds a bar 1 instance of the tag form

I click the Javascript 'add a tag'-link, which adds a bar 2 instance of the tag form

I click the Javascript 'delete this tag'-link for tag(1), which leaves me with the instances 0 and 2

Now, if I would leave all these tags blank (with a notblank validation on the tag name attribute), the returned form would be expected to visualize the error statements on instances 0 and 2. However, it turns out that the feedback is only displayed for instance 0.

If I change the returned form with firebug and set the instances on the name input field of instance 2 to '1', the feedback is displayed on the correct instance. This behavior indicates a mismatch between the indexing of the embedded form instances and the validators.
Issue 1:
Is your feature request related to a problem? Please describe.

1000's of warning messages on the console increase the memory usage of an app until the app crashes, and duplicate warning messages are not needed. Also, the warning message are generated when a specific device doesn't have a specific capability, even though the functionality of the app works, but will cause the app to crash when running for a length of time because the extra warning console messages use up the memory.

Describe the solution you'd like

I would like to request that all console messages ( log, info, warn, error ) be removed from the code and replaced by a console message handler that provides the option of setting the log level as well as options to remove duplicate messages and an option to pass a function to it for an alternative logging system to allow for logging systems such as Winston that allow for remote logging.

Describe alternatives you've considered

Replacing the built-in console message functions is not a good solution.

Additional context

This is an easy feature add, I could do it myself and submit a PR if I know it will get accepted.

Issue 2:
Description

The problem. Currently, if I want to import a file from examples/js to my three.js project (bundled with webpack or anything else like this)

Let’s say I need OBJLoader. I have two ways:

Download the file to my project. Modify it (add require(“three”), add exporting data). - The problem is that this is really complex and is annoying when you have several projects. + when new version of three.js is out with latest fixes/changes - I need to repeat the process.

Second way is to search npm if it already has a such module - but there we have several problems:

The script can be outdated / not compatible with latest version of three.js

Some modules want you to wrap it with THREE: OBJLoader(THREE) - which breaks the use of features like tree-shaking

Solution

As a possible solution, we can wrap each js file in examples/ with UMD pattern. We would be still able to use it with THREE from global variable, and be able to include them with npm:

import OBJLoader from ‘three/examples/js/loaders/OBJLoader’;

Three.js version

Dev

r87

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)
Issue 1:
When editing the the settings, I have tried to chang the default starting directory for the Ubuntu WSL Terminal profile as follows

"startingDirectory": "/mnt/D/Folder/SubFolder/",

and while it doesnt cause any issues or causes the Terminal to resort to default configuration, it does not set the default starting directory to the specified path.

Also it seems that most settings for the profile do literally nothing when changing them, from color, to acrylic or scheme settings.

Note: changing the setting for power shell, cmd, of Kali-Linux does work and change things respectively

Issue 2:
Description of the new feature/enhancement

Allow us to set the tab name(s) as they are too long.

Proposed technical implementation details (optional)
Issue 1:
For some reason, calling print df is really slow:

In [1]: import pandas

In [2]: import numpy as np

In [3]: df = pandas.DataFrame(np.random.randn(1000,100000))

In [4]: %timeit print df
1 loops, best of 3: 1.93 s per loop

In [5]: %timeit print df.values
1000 loops, best of 3: 1.25 ms per loop

Issue 2:
from pystatsmodels mailing list

qcut in pandas 0.8.1 is failing for some quantile lists but not others (see below). Sorry if I'm missing something...

type(F.g)

Out[3]:
pandas.core.series.TimeSeries

chg = (F.g[20:]-F.g[20:].shift(1))
fac = qcut(chg, [0, .5, 1])
fac

Out[4]:
Categorical: g
array([nan, [-1005094.81, 0], [-1005094.81, 0], ..., (0, 1478547.3],
(0, 1478547.3], (0, 1478547.3]], dtype=object)
Levels (2): Index([[-1005094.81, 0], (0, 1478547.3]], dtype=object)

chg = (F.g[20:]-F.g[20:].shift(1))
fac = qcut(chg, [0, .5, 1])
fac

Out[5]:
Categorical: g
array([nan, [-1005094.81, 0], [-1005094.81, 0], ..., (0, 1478547.3],
(0, 1478547.3], (0, 1478547.3]], dtype=object)
Levels (2): Index([[-1005094.81, 0], (0, 1478547.3]], dtype=object)

fac = qcut(chg, [0, .5, .75, 1])
fac

Out[6]:
Categorical: g
array([nan, [-1005094.81, 0], [-1005094.81, 0], ..., (0, 1478547.3],
(0, 1478547.3], (0, 1478547.3]], dtype=object)
Levels (3): Index([[-1005094.81, 0], (0, 0], (0, 1478547.3]], dtype=object)

fac = qcut(chg, [0, .25, .5, .75, 1])
fac

Out[7]:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/home/birone/<ipython-input-9-3896feb36dcd> in <module>()
----> 1 fac = qcut(chg, [0, .25, .5, .75, 1])
2 fac

/usr/lib/pymodules/python2.7/pandas/tools/tile.pyc in qcut(x, q, labels, retbins, precision)
139 bins = algos.quantile(x, quantiles)
140 return _bins_to_cuts(x, bins, labels=labels, retbins=retbins,
--> 141 precision=precision, include_lowest=True)
142
143

/usr/lib/pymodules/python2.7/pandas/tools/tile.pyc in _bins_to_cuts(x, bins, right, labels, retbins, precision, name, include_lowest)
177 levels = np.asarray(levels, dtype=object)
178 np.putmask(ids, na_mask, 0)
--> 179 fac = Categorical(ids - 1, levels, name=name)
180 else:
181 fac = ids - 1

/usr/lib/pymodules/python2.7/pandas/core/categorical.pyc in __init__(self, labels, levels, name)
43 def __init__(self, labels, levels, name=None):
44 self.labels = labels
---> 45 self.levels = levels
46 self.name = name
47

/usr/lib/pymodules/python2.7/pandas/core/categorical.pyc in _set_levels(self, levels)
62 levels = _ensure_index(levels)
63 if not levels.is_unique:
---> 64 raise ValueError('Categorical levels must be unique')
65 self._levels = levels
66

ValueError: Categorical levels must be unique

fac = qcut(chg, n) fails with the same error for n>3
Issue 1:
So imagine I'm building an API from a set of blueprints like

<snip from the signup.py file>
signupbp = Blueprint('signupbp', __name__, url_prefix="/signup")

@signupbp.route("/")
def signup_start():
return "signup_start"

@signupbp.route("/complete")
def signup_complete():
return "signup_complete"

then in my main.py code I do something like:

app.register_blueprint(signupbp, url_prefix='/api')

I expect to see the following routes:

/api/signup/ signupbp.signup_start
/api/signup/complete signupbp.signup_complete
/static/<path:filename> static

What I actually see is:

/api/ signupbp.signup_start
/api/complete signupbp.signup_complete
/static/<path:filename> static

I imagine the url_prefixes should be additive not replacement (in the worse possible way). I've tried all combinations of / before and after the url_prefix params.

This is actually a very simplified example - in my API I'm using module names to implement versioning so I can't build the URL into any part of the code before thats suggested as a solution.

Issue 2:
This is related to #2841, but the emphasis is different.

Expected Behavior

Non-error exceptions should not be caught by registered error handlers.

app.register_error_handler(HTTPException, my_error_handler)

@app.route('/path-with-slash/')
def my_route():
return '', 204

Attempting to visit /path-with-slash should redirect to /path-with-slash/, without invoking my_error_handler.

Actual Behavior

As the RequestRedirect raised internally in Werkzeug is a subclass of HTTPException, my_error_handler will get called. This is unexpected because no error has occurred, and the only appropriate way to handle this case is to add boilerplate to re-raise any Werkzeug RoutingExceptions.

Environment

Python version: 3.7.0

Flask version: 1.0.2

Werkzeug version: 0.14.1
Issue 1:
by steve.wills:

Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

Run "go version" and compare against
http://golang.org/doc/devel/release.html If a newer version of Go exists,
install it and retry what you did to reproduce the problem.

Thanks.

What does 'go version' print?

go version go1.3.2 freebsd/amd64

What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.

1. build on a platform where where clang is called "cc"
2.
3.

What happened?

What should have happened instead?

Please provide any additional information below.

See:

https://code.google.com/p/go/source/browse/src/cmd/go/build.go#2104

if strings.Contains(a[0], "clang") {

On platforms where clang is called "cc" (because it's the only compiler by
default), this code fails. In order to get clang detected properly I had to set CC=clang.

Issue 2:
This bug is about http2 support for PUSH_PROMISE frames, letting http.Handlers push their own streams to clients.

Previously:

bradfitz/http2#23

bradfitz/http2#34

Let's do this first in x/net/http2 and only add API to the standard library after it's baked long enough in x/net.
Issue 1:
Issue description

>>> a = torch.Tensor([1,2,3,4,5])
>>> a -= a[0]
>>> a
tensor([ 0., 2., 3., 4., 5.])

This seems to be a very confusing result. Even though the below works. I think the above should at least do broadcasting or throw an exception? Now it is doing a confusing operation but silent.

>>> a = torch.Tensor([1,2,3,4,5])
>>> a -= a[0].item()
>>> a
tensor([ 0., 1., 2., 3., 4.])

Issue 2:
t = torch.range(1,10)
t[1:] = t[:-1] # wrong result
print(t)
t = torch.range(1,10)
t[1:] = t[:-1].clone() # right result
print(t)
t = torch.range(1, 10).numpy()
t[1:] = t[:-1] # right result
print(t)

Note that the same (wrong?) behaviour is present in lua torch.
Issue 1:
When you visit the Bootstrap documentation with a window to small for the docs to show the sidebar on the left, then resize your browser so it does appear, the sidebar will stay at the top of the page, and doesn't scroll down with you. Neither will it mark at which section you are.

I can confirm this issue in Internet Explorer 11, Firefox 30 and Chrome 35.

Issue 2:
The following issue is reproducible with the current bootstrap docs website (e.g. http://getbootstrap.com/javascript/) using Firefox 28 and Chrome 33, on Windows:

Start with a large browser window.

Load http://getbootstrap.com/javascript/

Decrease width of the window, so that the sidebar disappears, i.e. the affix contents menu goes to the bottom of the page (you don't see it anymore).

Scroll all the way down to the footer, you see the affix contents menu again.

Increase the window width again. At some point, the affix contents menu goes to the top again (you don't see it anymore).

Scroll all the way up, there it is.

Scroll down, the affix does not follow scroll movement anymore.
Issue 1:
go tool compile hangs in karatsuba compiling the following program:

package a
var e = 1<<1p10000000<<3

Can we just break off hex exponents (p)? They are not supported by go/types-based frontends and so are non-portable.

go version devel +514014c Thu Jun 18 15:54:35 2015 +0200 linux/amd64

Issue 2:
The following program takes 1+ hours to compile, aborted after that:

package a
var g = 1e81391777742999

Package should either analyze it in a reasonable amount of time (seconds) or give an error if it cannot chew it. Compiling a single line of code for hours does not make sense.

on commit af81789
Issue 1:
What does 'go version' print?

go version devel +fe11c71dbee6 Tue Nov 11 16:06:47 2014 +1100 linux/amd64

What steps reproduce the problem?

In the code below, there are leading and trailing spaces in both the Println lines and
each lines of Output section.

$ cat foo_test.go
package foo
import "fmt"
func Example() {
fmt.Println(" one ")
fmt.Println(" two ")
fmt.Println(" three ")
// Output:
// one
// two
// three
}
$ go test
--- FAIL: Example (0.00s)
got:
one
two
three
want:
one
two
three
FAIL
exit status 1
FAIL _/home/fhs/tmp/example 0.001s
$

What happened?

It looks like the leading spaces of first line and the trailing spaces of the last line
in the "got" output was removed. All other spaces are still there.

However, for the "want" output, only the leading spaces of the second and
third lines are there. All other spaces were removed (including all the trailing spaces
-- maybe the parser is removing all trailing spaces from comments).

What should have happened instead?

The documentation says: "The comparison ignores leading and trailing space."

It doesn't say the spaces are ignored for each line, but I think it makes more sense to
trim leading and trailing spaces for each line. At least it should be consistent about
how it's removing the spaces.

Issue 2:
by piotrnar:

It does not happen on Linux, but on Windows whenever we try to link a lib that contains
static symbols that have the same name, though came from different object files, we get
an error:
* duplicate symbol reference: XXX in both YYY

It happens with any Go version I have tried - 1.0.3 or newer, both 32 and 64 bit.

What steps will reproduce the problem?
1. Extract attached cgostat.zip
2. Go to cgostat\C and run build_lib.bat - this should build you a problematic lib
3. Go one folder up and try "go test" - it should give you the error. Note
that "go build" does not give an error.

What is the expected output?
It must work - these are static symbols and they actually have different names, with a
unique number after a dot, but the linker somehow seems to ignore these unique
extensions.

Attachments:

cgostat.zip (1421 bytes)
Issue 1:
Hi, i want to add my CUDA function to torchScript as a Node, but i don't want to use torchScript extention op as i can't let other people to load so file, is there any way? Thankyou very much!

cc @gmagogsfm

Issue 2:
Hi, i want to add my CUDA function as a torchScript Node, but i can't use torchScript extention op as i can't let other people to use so file. It's there a way? Thank you very much!

cc @gmagogsfm
Issue 1:
VSCode Version: 0.10.10

OS Version: Windows 10

Typescript says things are duplicate when i move a file around.

My guess is that the location of the file is not updated in the typescript service properly because when i restart VSCode it fixes itself but still its annoying to have to restart the editor.

Steps to Reproduce:

get a large typescript code base like react.d.ts or something similar

move it

watch it happen

Issue 2:
It is natural on Windows to have the X affordance to the right of the document and not to the left. This applies for both tabs enabled or disabled.

However, we should not just put the X to the right of the file label if you have tabs disabled because that means having an unstable location of the close button depending on the size of the file path. Instead, we should move this action to the far right, but clearly inside the tab and not outside. See #7060 for a related issue.

/cc @alexandrudima
Issue 1:
There are quiet some extensions out there to handle setting synchronization between multiple computers. And in my opinion they are very important: Since vscode is very customizable with settings, keyboardshortcuts and extension it is very hard to synchronize those things between multiple workstations. And all those extensions are not really clean solutions, because vscode does nearly nothing to support them (for example the paths vscode uses are not exposed, see #2741).

So here some ideas to make synchronization clean and extensible:

add a contribution point for synchronization extensions

Those extensions should not have to gather all the files that have to be synced. vscode should do this and then pass them to the extensions

Such an extension's job is only to upload/download the files, passed to them (so we can have the gist upload/svn upload/git repo upload/dropbox/filesystem/onedrive/ftp/other services.

Or maybe gather all settings into one big json object and pass that.

Support versioning and non versioning extensions

add a remote_settings.json to build on top of the workspace-settings/user-settings stack.

allow automatic and user triggered synchronization

Ok... just some ideas 😄

Issue 2:
This is a feature request.

It would be really cool to have atom-like multiple tabs open for simultaneous editing. It is hard to click on those small strips on the sidebar. Having tabs on top like below image ensures that we could easily navigate between multiple files while editing.
Issue 1:
Environment

Microsoft Windows [Version 10.0.18995.1]
Windows Terminal version (if applicable): 0.5.2681.0

Steps to reproduce

set "colorScheme" to setting under powershell profile to one of the scheme listed in the settings file.

Expected behavior

The custom theme should be used

Actual behavior

The standard blue powershell theme is still shown

Notes

Other profiles seem to accept and use the configured color theme correctly

Issue 2:
Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.5.2681.0

Any other software? No

Steps to reproduce

Edit settings.json to and change the powershell background to #000000

Expected behavior

Background should become black

Actual behavior

Doesn't change the background, instead keeps it as the powershell default which is blue, (Even when using powershell core)
Issue 1:
When searching for a file with CMD + P I would expect results with exact filenames to be more relevant.

Issue 2:
Multiple schemes can be employed to achieve results which are most relevant to the user. Predicting which file a user wants out of a long list of possible matches and presenting it first can help speed up development time/maintain flow and train of thought. Here are some ideas to discuss:

Sort least fuzzy results to the top. Fuzziness determined by search term run length in the result. ie. Search term of 'src' would score a higher fuzziness score on a file like .jshintrc than a file called app_src.js or files in the src/ directory. run length of first file is 2 while the second file has a run length of 3.

Filename match or directory match. A match on a filename should be sorted at a higher priority than a match on a full path, but what about matches which higher run length on a full path vs less run length on a filename. ie. search of 'src ap' currently displays images/destroy_discard.png higher than src/app.coffee. Although destroy_discard technically has more matched character within the filename than src/app.coffee src/app has more run length. (something to think about)

Dot files. Hidden files are less important than non hidden of equal score.

Ignored files (.gitignore) can be sorted at lower priority than files with equal score. ie. I want the index.html in my templates/ dir. not my build/ dir because this is in .gitignore. Editing temporary file by mistake can add confusion and lost work.

Sort files with most recent last modified date at a higher priority than those of equal score.

Filter out/sort to bottom files that are already open.