WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Challenge Waypoint: Make Instances of Objects with a Constructor Function has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36.

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

The description text on the left-side of the page has an error in it. I'll mention the text here:

Now, once the myCar instance is created it can be used like any other object and can have its properties accessed and modified the same way you would usually. For example:

var myCar.turboType = "twin"; // This line has an extra keyword "var", which causes an error.

Our myCar variable now has a property turboType with a value of "twin".

Issue 2:
Hi,

I think the sample given in the explanation is wrong.

Now, once the myCar instance is created it can be used like any other object and can have its properties accessed and modified the same way you would usually. For example:

var myCar.turboType = "twin"; we don't need var

it should be

myCar.turboType = "twin";

Our myCar variable now has a property turboType with a value of "twin".
Issue 1:
When i open a file with atom editor and try to insert the "@" symbol the editor does a horizontal text alignment instead of inserting the "@" symbol

Issue 2:
Atom doesn't handle keyboards with Right Alt (i.e. AltGr). This is a very basic mistake. I have a Hungarian keyboard layout, I can only write specific keys like "|" (pipe) by pressing Right Alt (AltGr) and then W, which Atom doesn't recognize and treat like Alt-W or something?

The point is there are some layouts like greek, hungarian, czech with special keys, which an EDITOR should handle the right way!!

E.g. I can't write CTRL-", because it writes the number "2" instead. I think this key might be interpreted like CTRL-ALT sequence, but not sure either.

Anyway, without it, it's just not an editor.

Like Windows Media player; you can't pause a movie with it hitting space bar...

From: support/9f98abca9f4a11e3955c6445541b1a76
Issue 1:
by daz.fuller:

When running on a Windows environment (Win7 64bit) the following error is reported:

2013/06/13 08:22:07 unexpected header line: "21 May 2013\r"

This appears to be a problem in parse.go in the readLine function where it is only
expecting "\n" (this appears the case in a couple of other methods as well).
I've added a constant at the top of the file on my environment to set the end-of-line
characters and it appears to be working fine with that change.

Suggest that the method is modified to handle different end-of-line characters.
Alternatively, a request could be raised against the standard libraries to look at a EOL
constant being added to the "os" package?

Issue 2:
The spec is unclear about what constitutes a "mention" of a variable for the
purpose of determining initialization order. There are conflicting interpretations and
implementations.

See also issue #6703 (and related: 7137).
Issue 1:
On my Nexus 5. Open the gallery, and then go into the app two levels deep. Then, hit the Android back button enough times to get back to the OS's main launch screen. Then, bring up the app switcher and select the Gallery app from the list of backgrounded apps. Tap the gallery app.

Expected: quick resume of the gallery app

Actual: black screen for a few seconds. Almost feels like a resume is slower than a cold start.

Issue 2:
[I'm sure I've typed this issue in already but I'm unable to find it. Perhaps I failed to press the submit button last time.]

This problem is intermittent and its symptoms are somewhat unpredictable. Sorry.

If you back out of the Gallery app, wait a moment (I guess to make it more likely that it has been swapped out) and then tap on the paused app, sometimes nothing happens. Although the app's paused title bar changes from the gallery's color to gray (see below).

Sometimes the app can be resumed after a second tap on the paused app. In this case the app restarts, but its state is lost. Sometimes the screen just goes dark and stays that way. The phone may appear to be hung although usually hammering on the system buttons will eventually bring it around.

The problem occur in --checked and --no-checked modes.

before attempting to resume the app

afterwards the app hasn't resumed, but the title color has changed:
Issue 1:
What steps will reproduce the problem?

Compiling exp/locale/collate consumes more than 200mb on 32bit platforms like arm (more
than 300 mb on amd64). The is most likely caused by the 50k line tables.go, and its ~
300k values.

Can anything be done to reduce the amount of memory consumed when compiling this package?

Issue 2:
by huangmipi:

After added go-sqlite3 library,
Can build program, but cant debug,
enter GDB, print value of every variable is wrong.

Envir:
go:1.1,
GDB:7.6,
os:ubuntu 11.4
Issue 1:
On my application we were trying to analyze floating data.

we tried to use histogram on a float field and we discovered that the "interval" field accepts only integer.

but sometimes we need to analyze floating number with more precision that the integer number cannot give us. For an example if you want to find the most frequently used radio frequency, just on FM range there is a more then 10 stations between 99 to 100 if you multiply it by 10.

I can resolve this problem by pre-indexing all my field with fixed factor, but its opposes a problem what if my client will want to change the factor dynamically?

And that why I came to the conclusion that we have to have a factor field (like in date histogram) or maybe to enable the interval to be float number (both can be great)

thank you very much,

regards Raz Abadi

Issue 2:
Fork of #3810 and #3799. Decimal intervals would be useful for certain data types such as currencies, temperatures, lengths ...
Issue 1:
Deno provides a lot of useful objects in the runtime. It is also great to see a project that is solving many of the security problems of running JavaScript.

I'd like to lock things down even further so that I can use Deno for hermetic config generation.

Are there plans to offer something like the vm module available in node or some other way to provide a smaller environment (i.e. no Deno.pid etc etc)?

Issue 2:
const blob_src = new Blob(['console.log("Worker from BLOB")'])

new Worker(URL.createObjectURL(blob_src), {type:'module'})

On deno 1.0.1 v8 8.4.300 typescript 3.9.2 results in the following unsupported scheme error:

error: Uncaught Error: Unsupported scheme "blob" for module "blob:http://deno-opaque-origin/953cec0c-2344-4c5b-89ee-c9e7b4de975e". Supported schemes: [
"http",
"https",
"file",
]

Workers from Blob URLs is expected to work from what I see in #2726 and #2729.

Can the "blob" and "data" schemes be whitelisted for Deno Workers?
Issue 1:
Boostrap 2.3.0 doesn't compile with lessphp (v0.3.8) any more. Does anyone know a quick workaround for this issue?

Issue 2:
With latest version of mixins.less lessphp (version 0.3.8) if showing error:

Fatal error: Uncaught exception 'Exception' with message 'parse error: failed at { .span(@index); } ../less/mixins.less on line 578'

There are no problems with previous versions with

(~".span@{index}") { .span(@Index); }
Issue 1:
by coocood:

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 linux/amd64

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

http://play.golang.org/p/PVBGNsPLN1

What happened?

returned error is nil when dial a non-exists address.

What should have happened instead?

the error should not be nil.

Please provide any additional information below.

It happens only on Go 1.3, Go 1.2 doesn't have this issue, so I compared the source
code, and found out that this was caused by a change to "connect" method in
"net/fd_unix.go" file. So I edited this method with the old version, then
recompiled Go 1.3, the issue disappeared.

Issue 2:
What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. http://play.golang.org/p/PTxGY_fgvj
2. http://play.golang.org/p/enhRdN7Byq
3.

What is the expected output?
"process took too long"

What do you see instead?
"runtime: out of memory"

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

Which operating system are you using?
linux

Which version are you using? (run 'go version')
go version go1.2rc4 linux/amd64

Please provide any additional information below.

There's a discussion thread about this problem:
https://groups.google.com/forum/#!topic/golang-nuts/ZMNbylnu8is
Issue 1:
type MyDatabaseTable struct {
SomeDescription string `db:"some_description" json:"some_description"`
}

type MyDatabaseTable struct {
SomeDescription string `db, json:"some_description"`
}

To make it consistent with the := and = operator when assigning variables. I think it's a common case to have for example a db and json tag that have the same value.

http://play.golang.org/p/Tva1Cpulrh

Issue 2:
The builder has little to say:

signal: segmentation fault (core dumped)
FAIL image/draw 0.367s

Appears to be independent of other failures, will investigate tomorrow.
Issue 1:
matplotlib v2.0.0rc1, Python 3.5, OSX

upgraded via conda over standard anaconda installation

%matplotlib notebook

fails with an error message:

Incompatible library version: _png.cpython-35m-darwin.so requires version 43.0.0 or later, but libpng16.16.dylib provides version 39.0.0

Resolved via: conda upgrade libpng

Stackoverflow suggests its an occasional issue - the last answer here links it to anaconda

May or may not be a matplotlib installer concern

Issue 2:
Bug report

Bug summary

Matplotlib segfaults when creating a figure when used in combination with the standard multiprocessing library.

Code for reproduction

import multiprocessing as mp
import matplotlib.pyplot as plt

def plot():
fig = plt.figure()

def main(nprocs=2):
worker = mp.Process(target=plot)

worker.start()

worker.join()
if worker.exitcode < 0:
print("Error: %s exited with error code %i." % (worker.__str__(), worker.exitcode))

if __name__ == "__main__":
main()

Actual outcome

All processes exit with code -11, SYSSEGV

Expected outcome

I've figured out that creating a figure like this isn't expected to work with the GUI backend on. Putting:

import matplotlib
matplotlib.use('agg')

before the other imports fixes the issue. It's understandable that you can't create multiple instances of the GUI on different processes, however it seems to me an exception should be thrown rather than a segfault.

Matplotlib version

Operating System: macOS 10.12.5

Matplotlib Version: 2.0.2

Python Version: 2.7.13, 3.6.1

Other Libraries: multiprocessing

Matplotlib was installed from Conda, on the conda-forge stream.
Issue 1:
Hello,

I've stumbled onto a behavior that causes performance problems on large datasets: When creating a multiindex with second level being a DateTime64 col, and then doing a .loc[('val1', TimeStamp('val2'),)] to get at particular value, pandas coerces (via _box_func, called from iter) all values in that particular column to TimeStamp dtype. This is done only on first access, but affect performance quite heavily since the op is O(n).

However, when chaining the same op (or calling it via multi-level .xs, this behavior is not exhibited. It is not a viable workaround however because doing so introduces an extra call to getitem per each level of multiindex.

Is there a workaround for this or what am i doing wrong?

In essence, given a df with unique multiindex, i want to get to a particular row given values for each level of the index.

Repro:

df = <dataframe with: [colA:string, colB:datetime64, colC:numeric with 1,000,000 rows>
gr = df.groupby(('colA', 'colB',))
ag = gr.aggregate({'colC':'sum'})

path = ('one', pd.TimeStamp('2015-01-01 01:02:03'),)
ag.loc[path] # << first call iterates over entire dataset doing the conversion, and is slow
ag.loc[path] # << second call is very quick
ag.xs(path, levels=('colA','colB',)) # << this takes a different code path but does an extra call to getitem, making it slower.

Other things:

padding numpy.datetime64 into the path tuple instead of timestamp doesnt help

specifiying axis for loc doesn't help

Issue 2:
The drop_duplicates() function in Python 3 is broken. Take the following example snippet:

import pandas as pd

raw_data = {'x': [7,6,3,3,4,8,0],'y': [0,6,5,5,9,1,2]}
df = pd.DataFrame(raw_data, columns = ['x', 'y'])

print("Before:", df)
df = df.drop_duplicates()
print("After:", df)

When run under python 2, the results are correct, but when running under python 3, pandas removes 6,6 from the frame, which is a completely unique row. When using this function with large CSV files, it causes thousands of lines of unique data loss.

See:

http://stackoverflow.com/questions/33224356/why-is-pandas-dropping-unique-rows
Issue 1:
Hello,

today, I was upgrading deno with deno upgrade and my antivirus (Avast) made popups. One of them said something like We've protected deno.exe because it was acting suspiciously. and Threat blocked. We've blocked UNP244220764.TMP because we've founded that it's infected by IDP.HELU.PSD11 (I don't have Avast in english so it can be slightly different).

Can someone explain me what's going on? Is deno virus or not?

Thanks

Issue 2:
I received an alert from the Avast antivirus during the upgrade of deno (from version 1.0.0 to version 1.0.1).

I ran the command 'deno upgrade' from the PowerShell terminal on Windows 10 SO.

The alert says that the deno.exe was infected with IDP.HELU.PSD11
Issue 1:
I get the following compilation error when building pytorch 1.0.0 from source:

pytorch/third_party/ideep/mkl-dnn/src/cpu/jit_avx512_core_u8s8s32x_wino_convolution.cpp:223:41: error: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Werror=strict-overflow]

assert(id_reg_tmp < id_reg_tmp1);

^

I worked around this issue by adding:

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-strict-overflow")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=strict-overflow")

in third_party/ideep/mkl-dnn/CMakeLists.txt before adding the sub directories.

But I wonder whether there are better ways to solve this error.

System configuration:

Ubuntu 18.04

Cmake 3.12.4

CUDA 9.2.148

gcc g++ 6.4.0

pytorch pulled from master, commit 6651fae

Issue 2:
cc: @mingfeima

/home/jaliya/repos/pytorch_clean/third_party/ideep/mkl-dnn/src/cpu/jit_avx512_core_u8s8s32x_wino_convolution.cpp: In member function ‘void mkldnn::impl::cpu::jit_avx512_core_u8s8s32x_wino_conv_dst_trans_t::generate()’:
/home/jaliya/repos/pytorch_clean/third_party/ideep/mkl-dnn/src/cpu/jit_avx512_core_u8s8s32x_wino_convolution.cpp:222:56: error: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Werror=strict-overflow]
assert(id_reg_tmp < jcp.alpha * jcp.alpha + 14);
^
/home/jaliya/repos/pytorch_clean/third_party/ideep/mkl-dnn/src/cpu/jit_avx512_core_u8s8s32x_wino_convolution.cpp:222:56: error: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Werror=strict-overflow]
assert(id_reg_tmp < jcp.alpha * jcp.alpha + 14);
^
/home/jaliya/repos/pytorch_clean/third_party/ideep/mkl-dnn/src/cpu/jit_avx512_core_u8s8s32x_wino_convolution.cpp:222:56: error: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Werror=strict-overflow]
assert(id_reg_tmp < jcp.alpha * jcp.alpha + 14);
^
/home/jaliya/repos/pytorch_clean/third_party/ideep/mkl-dnn/src/cpu/jit_avx512_core_u8s8s32x_wino_convolution.cpp:222:56: error: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Werror=strict-overflow]
assert(id_reg_tmp < jcp.alpha * jcp.alpha + 14);
^

cc @malfet @seemethere @walterddr @gujinghui @PenghuiCheng @XiaobingSuper @jianyuh @VitalyFedyunin
Issue 1:
When hardware acceleration is enabled (OS X 10.10.1, Atom 0.165.0), rendering artifacts occur when text clips behind the vertical scrollbar in the file pane. I've included a GIF animation that demonstrates the problem. I've noticed it doesn't always occur. For example, if I have the setting page open and active, I don't get the artifacts when sliding the file pane.

Disabling hardware acceleration fixes the issue. I wonder whether this was something introduced as a result of fixing issue #3559.

Issue 2:
Issue 1:
Components wrapped in React.memo don't have a display name in the "components" tab of React DevTools.

React version: 16.13

Steps To Reproduce

create a component that uses React.memo

name the component using "displayName"

open DevTools

the component will not use the name from step 2

const Test = React.memo(({ message }) => {
return <h1>{message}</h1>;
});
Test.displayName = "Foo"; // Will be displayed as "Anonymous"

function App() {
return (
<Test message="Hi" />
);
}

The current behavior

Memos ignore "displayName" in React DevTools

The expected behavior

Memos show "displayName" in React DevTools

Issue 2:
If you create a component via React.memo and then explicitly provide it with a displayName, DevTools ignore this display name.

React version: 16.12.0

DevTools version: 4.4.0

Steps To Reproduce

Create a component like:

const FancyMemoComponent = React.memo(() => 'Check my name in DevTools')

Provide it with a displayName

FancyMemoComponent.displayName = 'FancyMemoComponent'

Check its name in DevTools.

Link to code example: https://codesandbox.io/s/react-memo-display-name-vk7gv

The current behavior

DevTools do not display the given displayName.

The expected behavior

DevTools should display the given displayName.

Comments

I am aware that the name can be picked from the function inside React.memo, but I prefer using anonymous functions.

I am using this workaround:

FancyMemoComponent.type.displayName = 'FancyMemoComponent'
Issue 1:
Migrated issue, originally created by Anonymous

#sqlite does not have problem with this, but postgres has. (and i guess any #other more strict DB).

#This functionality is being used in polymorphic_union()

from sqlalchemy import *

db = create_engine( 'sqlite:///:memory:')

meta = BoundMetaData( db)

table_A = Table( 'A', meta,

Column( 'name', type= String, ),

Column( 'id', primary_key= True, type= Integer ),

Column( 'atype', type= String, ),

)

table_B = Table( 'B', meta,

Column( 'bdata', type= String, ),

Column( 'id', Integer, ForeignKey( 'A.id', ), primary_key= True ),

)

selB = table_A.join( table_B).select( table_A.c.atype == 'B' )

print '---', selB

selselB = select( selB.columns)

print '===', selselB

:::::::::: results in:

--- SELECT "A".name, "A".id, "A".atype, "B".bdata, "B".id

FROM "A" JOIN "B" ON "A".id = "B".id

WHERE "A".atype = ?

=== SELECT name, id, atype, bdata

FROM (SELECT "A".name AS name, "A".id AS id, "A".atype AS

atype, "B".bdata AS bdata, "B".id AS id

FROM "A" JOIN "B" ON "A".id = "B".id

WHERE "A".atype = ?)

=======

note both "A".id AS id , "B".id AS id

Issue 2:
Migrated issue, originally created by Dan Stovall

In MSSQL a ROWVERSION or TIMESTAMP column do not contain a date time. Instead the contain an 8-byte integer. Currently, the column is set as sqlachemy.sql.sqltypes.TIMESTAMP, which is an instance of the DateTime type. Running a query against a table with such a column returns a byte string value for those columns. The mssql dialect should probably have a specific ROWVERSION type and it should be an integer, not a DateTime. Also, it would be nice if the values of those columns returned an integer by using int.from_bytes to convert the byte string.
Issue 1:
Electron version: 1.7.6

Operating system: Windows 7

Same as #8828

I am using 1.7.6 and still facing the same issue. It gets stuck at spooling. It works fine when I am running the app from the command line for development but does not work if I install the app using .exe file. It was working properly on my dev machine but when we released it in production then all our users complained about printing not working. It gets stuck at spooling in their machine and nothing gets printed. It does not show any size of the file as well. Please let me know if there is any fix for this.

Attaching the screenshot of the issue happening at user's device: https://drive.google.com/open?id=0B0v4IupaEnYpdE13WDBpbUNIZjQ

Issue 2:
Electron version: 1.8.4

Operating system: Windows

Thanks for your excellent work! After a year of waiting, when will the encryption of ASAR be applied? Thank you~
Issue 1:
If you add inf, -inf into the list https://github.com/pytorch/pytorch/blob/master/test/test_torch.py#L9274 it'll fail the test.

So from numpy doc, inf norm is defined as max(sum(abs(x), axis=1)) for matrix and max(abs(x)) for vector, but it seems we always implemented max(abs(x)).

short repro:

In [1]: import torch

In [2]: import numpy as np

In [3]: a = torch.rand(3, 3)

In [4]: b = a.numpy()

In [5]: import math

In [6]: torch.norm(a, math.inf)
Out[6]: tensor(0.7553)

In [7]: np.linalg.norm(b, math.inf)
Out[7]: 1.4294269

Issue 2:
torch.norm currently have the following inconsistent behavior where for matrix inputs and ord is a numerical value, vector norm is computed instead:

===== ============================ ==========================
ord matrix norm vector norm
===== ============================ ==========================
None Frobenius norm 2-norm
'fro' Frobenius norm --
'nuc' nuclear norm --
Other as vec norm when dim is None sum(abs(x)**ord)**(1./ord)
===== ============================ ==========================

(Even though the last row reads when dim is None, same behavior happens when dim is a 2-tuple).

However, the matrix Lpq norms are useful. And users are justified in expecting that mat.norm(2) computes the L2 norm (max e-value) since mat.norm('fro') computes the matrix Frobenius norm. If we follow the NumPy interface, the following behavior should be less surprising and error prune:

===== ============================ ==========================
ord norm for matrices norm for vectors
===== ============================ ==========================
None Frobenius norm 2-norm
'fro' Frobenius norm --
'nuc' nuclear norm --
inf max(sum(abs(x), axis=1)) max(abs(x))
-inf min(sum(abs(x), axis=1)) min(abs(x))
0 -- sum(x != 0)
1 max(sum(abs(x), axis=0)) as below
-1 min(sum(abs(x), axis=0)) as below
2 2-norm (largest sing. value) as below
-2 smallest singular value as below
other -- sum(abs(x)**ord)**(1./ord)
===== ============================ ==========================

cc @ezyang @gchanan @zou3519 @ssnl @vishwakftw @jianyuh
Issue 1:
I am interested in your project and want to contribute but it's hard to figure out what I should start maybe start gitter chat ?

Or you can suggest me here ?

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

Expected Behavior

Doesn't exceed the call stack

Current Behavior

Maximum call stack size exceeded

Steps to Reproduce (for bugs)

I can't fully reproduce this issue, as it seems it's an edge case - but this was the environment in which it occurred

Add a component to the page which keeps itself in focus (monaco editor in this case)

Open up a new modal

Max call stack exceeded

Your Environment

Tech
Version

Material-UI
beta.34

React
16.2.0