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

1.6.6

Operating system:

Linux Slackware x64

Expected behavior

Normal install

Actual behavior

npm -g install electron
/usr/local/bin/electron -> /usr/local/lib/node_modules/electron/cli.js

> electron@1.6.6 postinstall /usr/local/lib/node_modules/electron
> node install.js

/usr/local/lib/node_modules/electron/install.js:47
throw err
^

Error: EACCES: permission denied, open '/root/.electron/electron-v1.6.6-linux-x64.zip'
at Error (native)
npm ERR! Linux 4.1.13
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "-g" "install" "electron"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! electron@1.6.6 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@1.6.6 postinstall script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls electron
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /tmp/electron-packager/linux-x64/npm-debug.log

How to reproduce

As root: npm install -g electron

Issue 2:
我想通过快捷方式来获取目标路径的参数，是否有详细的API ，或者代码，想通过参数来打开软件跳转到不同的页面，请问，大大们是否有相关的质料。

I want to get the parameters of the target path through the shortcut. Do you have a detailed API or code to open the software to jump to different pages through the parameters? Could you please tell me if you have the relevant materials?

Is there a demo？
Issue 1:
Update from bpasero:

The main issue is that our glob patterns are folder based (e.g. exclude **/node_modules) and not file based (e.g. exclude **/node_modules/**). When we apply the patterns to in-memory editors and editor history we always pass in the full path of the resource and that makes the glob match fail. For search it works because we check the pattern on the parent folders already and return early if they match. The only fix I see for now is to change our default patterns to match on **/folder/** instead of **/folder.

Original:

These steps repro on a node module where the search term is in a sub-directory. When a sub-directory is included it should search all files under the directory. This can really confuse users, I'm proof since I just tried to find finishOutput usages only to be told it's only referenced by its definition.

Steps to Reproduce:

Open vscode

In explorer find node_modules/pty.js

Right click and find in folder, "node_modules/pty.js" should be added to files to include

Search for "finishOutput", no results show up

Open node_modules/pty.js/deps/winpty/agent/Agent.cc

Run the search again, results show up from Agent.cc

Open node_modules/pty.js/deps/winpty/agent/Terminal.cc

Run the search again, results show up from both Agent.cc and Terminal.cc

Adding /** or /**/* to the files to include didn't make a difference.

Issue 2:
feature request: since the build system is kinda useless when build steps require multiple commands, being able to send commands to the integrated terminal from script.

my personal reason for this is that for skyrim modding, its a multiple step build system which requires the editor being wrapped by MO so that the app has access to the virtual directory. executing a batch script is out of the question as the commands need to be dynamically generated, plus the build system currently seems to spawn outside of the wrapped process.
Issue 1:
As an user, when completing challenges in a non-english language and running into a challenge that does not have an active translation, I want a notification explaining that translation is being worked on, and the current one is missing. And invitation to contribute with it, perhaps?

Said notification should link to the translation repo's issues, with the respective language tags selected.

Active translations are translations of a challenge that is relatively up to date

Issue 2:
cc/ @QuincyLarson
Issue 1:
Challenge Name

All of them.

Issue Description

Whenever I start a new challenge and try to place my curser in the code to start editing it, my curser won't go to or move to where I need it to go. I can place my curser somewhere near where I need it and try to arrow over to where I need it to go, but it gets stuck. Also if I put my cursor on a blank line between lines of code where I want to add a line of code, it'll start typing somewhere in the middle of a whole other line. Once I've started editing the code (in the wrong place originally since I can't get to the right place), THEN it will allow me to put my cursor anywhere I need it. It's just annoying.

Browser Information

Browser Name, Version: Chrome 49.0.2623.110 (64-bit)

Operating System: Windows 8

Mobile, Desktop, or Tablet: Laptop

Your Code

// If relevant, paste all of your challenge code in here

Screenshot

Issue 2:
Challenge Name

https://www.freecodecamp.com/challenges/style-text-inputs-as-form-controls

But its the same with all other challenges.

Issue Description

Happens when using Chrome in macOS fullscreen and while hiding the toolbars (2nd in "Views" tab).

Then it often happens that when I try to click on certain spots on the code (for example the word personality in this challenge) then the insert line appears far away from where I clicked (mostly left of it or even above). Clicking again doesn't help. Then I do something (hard-refresh the page, show and hide the toolbar or even change font-size) and it will work again for some minutes and finally the same problem will return.

Browser Information

Browser Name, Version: Google Chrome, Version 55.0.2883.95 (64-bit

Operating System: macOS Sierra, Version 10.12.2 (16C67)

Mobile, Desktop, or Tablet: MacBook Pro (Retina, 13-inch, Late 2012)
Issue 1:
Reproducing code example:

In [1]: import numpy as np

In [2]: import sys

In [3]: sys.version
Out[3]: '3.7.3 (default, Mar 27 2019, 17:13:21) [MSC v.1915 64 bit (AMD64)]'

In [4]: np.__version__
Out[4]: '1.16.4'

In [5]: np.sum(np.arange(10**5))
Out[5]: 704982704

In [6]: sum(np.arange(10**5))
/Anaconda3/Scripts/ipython:1: RuntimeWarning: overflow encountered in long_scalars
Out[6]: 704982704

In [7]: np.sum(np.arange(10**5, dtype=np.int64)) # right result
Out[7]: 4999950000

Issue 2:
Simple demo:

In [1]: np.uint8(0) - np.uint8(1)
RuntimeWarning: overflow encountered in ubyte_scalars
Out[1]: 255

In [2]: np.uint8(0)[...] - np.uint8(1)[...]
Out[2]: 255

Should we even warn at all for unsigned integers?
Issue 1:
It'd be nice if displaysize(tty) after close(tty) can throw an exception rather than segfault. MWE:

julia> tty = Base.TTY(fd(Base.Filesystem.open("/proc/self/fd/1", Base.Filesystem.JL_O_WRONLY)))
Base.TTY(RawFD(0x00000016) open, 0 bytes waiting)

julia> displaysize(tty)
(43, 114)

julia> close(tty)

julia> displaysize(tty)

signal (11): Segmentation fault
in expression starting at REPL[4]:1
uv_tty_get_winsize at /workspace/srcdir/libuv/src/unix/tty.c:274
displaysize at ./stream.jl:478
jfptr_displaysize_2966 at /home/takafumi/repos/watch/julia/usr/lib/julia/sys.so (unknown line)
jl_apply at /home/takafumi/repos/watch/julia/src/julia.h:1694 [inlined]
do_call at /home/takafumi/repos/watch/julia/src/interpreter.c:369
eval_value at /home/takafumi/repos/watch/julia/src/interpreter.c:458
eval_stmt_value at /home/takafumi/repos/watch/julia/src/interpreter.c:409 [inlined]
eval_body at /home/takafumi/repos/watch/julia/src/interpreter.c:799
jl_interpret_toplevel_thunk at /home/takafumi/repos/watch/julia/src/interpreter.c:911
jl_toplevel_eval_flex at /home/takafumi/repos/watch/julia/src/toplevel.c:814
jl_toplevel_eval_flex at /home/takafumi/repos/watch/julia/src/toplevel.c:764
jl_toplevel_eval_in at /home/takafumi/repos/watch/julia/src/toplevel.c:843
eval at ./boot.jl:331
eval_user_input at /home/takafumi/repos/watch/julia/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:107
run_backend at /home/takafumi/.julia/packages/Revise/SefCg/src/Revise.jl:1042
#85 at ./task.jl:358
jl_apply at /home/takafumi/repos/watch/julia/src/julia.h:1694 [inlined]
start_task at /home/takafumi/repos/watch/julia/src/task.c:687
unknown function (ip: (nil))
Allocations: 14143307 (Pool: 14139964; Big: 3343); GC: 14

Issue 2:
When redefining a variable containing an anonymous function with an anonymous function containing the variable itself, that reference is not expanded properly before the new assignment. Therefore, the new function (now bound to the variable) contains a reference to itself and not the old function.

I do think this is erroneous behaviour, since in variable assignment the right side should be expanded fully before being bound to the left, just like a=a+1 does not produce infinity.

Example

julia> f = x -> 2*x
(::#1) (generic function with 1 method)

julia> f = x -> 2*f(x)
(::#3) (generic function with 1 method)

julia> f(2)
ERROR: StackOverflowError:
Stacktrace:
[1] (::##3#4)(::Int64) at ./REPL[2]:1 (repeats 26667 times)

julia> @code_lowered f(2)
CodeInfo(:(begin
nothing
return 2 * (Main.f)(x)
end))

I do not know where this problem stems from and where it should be fixed.

Apologies if this is a duplicate, I haven't found anything resembling this in the open issues.
Issue 1:
I have the following ES6 class

class MyClass {
constructor(){
this.myclassvar = 'abc';
}
}

When compiled/transpiled through TypeScript it generates error TS2339: Property 'myclassvar' does not exist on type 'MyClass'.

If the above code snippet is valid ES6 then TypeScript should not generate the error. The generated javascript it valid. It's just that the error scares the developers trying to use ES6 without typings.

The same ES6 class transpiles properly in BabelJS.

I know I can fix the error by declaring the variable.

class MyClass {
myclassvar;
constructor(){
this.myclassvar = 'abc';
}
}

Since TypeScript is a superset of Javascript, it should be able to handle valid ES6 without errors.

My compiler settings are

"compilerOptions": {
"target": "es5",
"module": "amd",
"declaration": true,
"noImplicitAny": false,
"noResolve": true,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true
}

Issue 2:
Currently import myClass from './myClass.ts'; transpile to var myClass_ts_1 = require('./myClass.ts')'.

Since myClass.ts is transpile to myClass.js, the transpiled code does not work.

I try to stick to pure ES6 as much as possible so I want to avoid using internal module syntax.

Thanks!
Issue 1:
It appears that GC_Diff.allocd can sometimes be negative after GC_Diff() is called. This causes a DomainError when prettyprint_getunits() (called from time_print()) tries to take the log of this negative value.

Issue 2:
I believe the following was caused by a call to @time, but I haven't been able to narrow it down:

ERROR: LoadError: DomainError:
log will only return a complex result if called with a complex argument. Try log(complex(x)).
in nan_dom_err(::Float64, ::Float64) at ./math.jl:134
in log(::Float64) at ./math.jl:140
in log(::Int64) at ./math.jl:142
in prettyprint_getunits(::Int64, ::Int64, ::Int64) at ./util.jl:99
in time_print(::UInt64, ::Int64, ::Int64, ::Int64) at ./util.jl:115
in macro expansion; at ./util.jl:159 [inlined]
in anonymous at ./<missing>:?
in include_from_node1(::String) at ./loading.jl:426
in process_options(::Base.JLOptions) at ./client.jl:266
in _start() at ./client.jl:322
Issue 1:
Clicking "Restart and Update" from the release notes page or the Atom menu causes Atom to close and fail to restart. Moreover, upon restarting manually, Atom is not updated.

I have tried clearing the ~/.atom/storage directory, as suggested here but it doesn't solve the problem here.

Platform: OSX 10.10.3, Atom 0.201.0

Issue 2:
Using the Restart and Update button on the release notes view doesn't properly restart and update. Atom closes, but it never restarts. When launched again, it hasn't updated. Restart and update from the Atom Menu works fine.

2010 iMac, OSX 10.10.2
Issue 1:
Thomas Timbul opened SPR-5199 and commented

For the sake of clarity/modularisation in my XML I am trying to separate out certain service definitions into separate files. It would be nice to see the re-emergence of 'merge' on the util: collection definitions in a way that definitions with the same ID are merged.

For example (hope this submits in a readable way):

[services.xml]

<util:map id="serviceMap" merge="true" />

<bean id="serviceProvider">

<property name="serviceMap" ref="serviceMap" />

</bean>

[service1.xml]

<util:map id="serviceMap" merge="true">

<entry key="S1" ref="service1" />

</util:map>

<bean id="service1" ..... />

[service2.xml]

<util:map id="serviceMap" merge="true">

<entry key="S2" ref="service2" />

</util:map>

<bean id="service2" ..... />

There are probably workarounds for this, but for the moment I would be forced to have the serviceMap defined completely in a single place.

Issue Links:

#11189 Introduce 'merge' attribute for util namespace collection elements

3 votes, 2 watchers

Issue 2:
Balázs Szabó opened SPR-884 and commented

When a proxy is created with the lookup-method injection, and dependency checking is switched on, then it complains for a previously non-existing property called 'callbacks'.

I figured out that it is because cglib proxies automatically implements the Factory interface which has this property exposed.

To fix this, please use the latest cglib and use the setUseFactory(false) on the enhancer instance of the instantiator.

Affects: 1.2 final

Issue Links:

#5616 Dependency checking doesn't work for beans using method injection ("is duplicated by")
Issue 1:
Following the example given in the documentation I am using rv_continuous to generate a custom pdf. The following code snippet works as expected in scipy v0.18.1 but exhibits a very large (~GB) memory consumption when run with scipy v0.19.0

from scipy.stats import rv_continuous
import numpy as np
import resource
import scipy
import sys

print "numpy version: {}".format(np.version.full_version)
print "Scipy version: {}".format(scipy.version.full_version)
print "Python {}".format(sys.version)

class gaussian_gen(rv_continuous):
"Gaussian distribution"
def _pdf(self, x):
return np.exp(-x**2 / 2.) / np.sqrt(2.0 * np.pi)

def print_mem():
mem = resource.getrusage(resource.RUSAGE_SELF).ru_maxrss
print 'Memory usage: %s (kb)' % mem

print_mem()
gaussian = gaussian_gen(name='gaussian')
print_mem()
values = gaussian.rvs(size=1000)
print_mem()
values = gaussian.rvs(size=5000)
print_mem()

The output of the snippet for version 0.18.1 is:

numpy version: 1.12.1
Scipy version: 0.18.1
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609]
Memory usage: 70048 (kb)
Memory usage: 70048 (kb)
Memory usage: 70048 (kb)
Memory usage: 70592 (kb)

while 0.19.0 looks as follows:

numpy version: 1.12.0
Scipy version: 0.19.0
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609]
Memory usage: 69672 (kb)
Memory usage: 69672 (kb)
Memory usage: 426952 (kb)
Memory usage: 2215576 (kb)

I just noticed that it appears to be working in master, but I figured it might be good to post this issue in any case, just so that people can find it or if it was only fixed by accident. Output when run on master:

numpy version: 1.12.1
Scipy version: 1.0.0.dev0+ab9eff3
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609]
Memory usage: 75972 (kb)
Memory usage: 75972 (kb)
Memory usage: 75972 (kb)
Memory usage: 75972 (kb)

Before opening this issue I asked a question about it at stackoverflow

Issue 2:
After updating Scipy to 0.19.0 I have experienced an increase in memory consumption which seems to be related to integrate.quad. The following code calculates some quadratures and checks the available RAM before and after:

import numpy as np
from scipy.integrate import quad
import psutil
import gc

xx_max = np.linspace(1,1000,num=100)
print("Memory available: %f GiB"%(psutil.virtual_memory().available/1024.**3))
[[quad(lambda x:x**2,0,x) for x in xx_max] for _ in range(3000)]
print("Memory available after quad: %f GiB"%(psutil.virtual_memory().available/1024.**3))
gc.collect()
gc.collect()
gc.collect()
print("Memory available after garbage collecting: %f GiB"%(psutil.virtual_memory().available/1024.**3))

When I run this with scipy 0.19 I find my system losses around 1GiB, while this does not happen if I use the prior release instead. The memory is freed after the process exists, but asking the garbage collector to do its work does not help.

The system I used is a 64-bit Arch Linux, using both python2 and python3 from clean virtualenvs.
Issue 1:
Challenge Name

http://beta.freecodecamp.com/en/map

Issue Description

I have noticed that each time I move onto a new challenge the old code still displays on the iPhone screen even thought the code in the text editor is completely new. For instance, if my previous challenge displays a blue box on the iPhone, but my new challenge starts off with code for a red triangle (or something), the iPhone still displays the blue box. I think this may be as simple as refreshing the iPhone result screen each time a new challenge is loaded.

Browser Information

Browser Name, Version: Chrome Version 55.0.2883.95 (64-bit)

Operating System: OS X El Capitan

Mobile, Desktop, or Tablet: Laptop

Your Code

Screenshot

Issue 2:
Challenge Warn your Users of a Dangerous Action has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) 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.

My code:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<div class="container-fluid">
<h2 class="red-text text-center">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>

<img src="https://bit.ly/fcc-running-cats" class="img-responsive">
<button class="btn btn-block btn-primary">Like</button>
<button class="btn btn-block btn-info">Info</button>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>

If I clicked in on the line that reads <img src="https://bit.ly/fcc-running-cats" class="img-responsive"> at the end, my cursor would appear as far as the line below it goes. Then when I type, the cursor will move down a line and begin typing there. See the below gif that demonstrates exactly what's happening. This issue isn't just with this page; it appears to be happening on every page where the text doesn't wrap around.

gif
Issue 1:
When hitting various breakpoints in a complicated program, it might be helpful for the stack frame area of the debug viewlet to highlight / animate in a tasteful fashion the stack frame delta.

e.g.

Before stack

fileA:35

fileB:40

fileC:50

-> steps into or continues

After stack

fileA:29

fileA:35

fileB:40

fileC:50

Would be nice if fileA:29 would be briefly and tastefully highlighted.

Issue 2:
In the tasks.json configuration file, you can specify a task to be defined as a watch task by stating isWatching: true. I don't believe I see any benefit to explicitly stating that a task is a watch task.

What I believe would be useful is if the watch task defined in tasks.json is actually started automatically by VS Code upon opening the workspace.

From what I can tell, currently you need to explicitly start your watch task task <watch-task-name>.
Issue 1:
xref #8596

>>> df
a
0 1
>>> df.dtypes
a int64
dtype: object
>>> df.loc[1, 'a'] = 2
>>> df
a
0 1
1 2
>>> df.dtypes
a float64
dtype: object

in an intermediate step nan is inserted, and the data are casted to floats

Issue 2:
http://stackoverflow.com/questions/22044766/adding-row-to-pandas-dataframe-changes-dtype/22045011#22045011

A bit non-trival (maybe coerce back after) if possible?

maybe just change this to an actual append?

In [1]: df = DataFrame({'a' : range(10)}, dtype='i4')

In [2]: df
Out[2]:
a
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9

[10 rows x 1 columns]

In [3]: df.dtypes
Out[3]:
a int32
dtype: object

In [4]: df.loc[10] = 99

In [5]: df
Out[5]:
a
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 99

[11 rows x 1 columns]

In [6]: df.dtypes
Out[6]:
a float64
dtype: object
Issue 1:
Description

I thinks default value of n_clusters is not always 2, as passing the same data points will be clustered as two different clusters which is not possible practically:

Steps/Code to Reproduce

Example:

X = np.array([[1,2],[1,2]])

clustering = AgglomerativeClustering(linkage='single').fit(X)

clustering.labels_

array([1, 0])

clustering = AgglomerativeClustering(linkage='ward').fit(X)

clustering.labels_

array([1, 0])

clustering = AgglomerativeClustering(linkage='average').fit(X)

clustering.labels_

array([1, 0])

clustering = AgglomerativeClustering(linkage='complete').fit(X)

clustering.labels_

array([1, 0])

Expected Results

array([0,0])

Actual Results

array([1, 0])

Versions

For scikit-learn >= 0.20:

Issue 2:
Describe the issue linked to the documentation

There are two and in the description of sklearn.metrics.log_loss function, lines

For a single sample with true label :math:`y \in \{0,1\}` and
and a probability estimate :math:`p = \operatorname{Pr}(y = 1)`, the log

Suggest a potential alternative/fix

For a single sample with true label :math:`y \in \{0,1\}` and
a probability estimate :math:`p = \operatorname{Pr}(y = 1)`, the log