WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
What problem does this feature solve?

I use the following pattern to wait for a condition to hold:

const unwatch = this.$watch(function () {
return this.queue.find((element) => element.shown === false);
}, function (newValue, oldValue) {
if (!newValue) return;

unwatch();

// There is an element in the queue with shown === false.
});

The problem is that this pattern is not possible to use if I also want callback to be called if the condition holds already when $watch is called. This is done by setting immediate to true. But then unwatch is not yet set because $watch has not returned.

I could be checking if the condition holds before creating $watch but this makes the code more complicated and in parts duplicated.

What does the proposed API look like?

In Meteor's Tracker this is solved by providing access to current computation as an argument to the callback function. Maybe Vue could do the same and provide unwatch as the third argument to the callback (newValue, oldValue, unwatch).

Issue 2:
Version

2.6.7

Reproduction link

https://jsfiddle.net/misq007/a5wth0rf/39/

Steps to reproduce

the error will popup

What is expected?

Provide/Inject to work properly for the first level component in the same way as it is working when nested.

What is actually happening?

Injection "mode" not found
Issue 1:
When creat a array with set the dtype , the array just lost the columns which the dtype is numpy.string_,numpy.str,numpy.str_,numpy.str0 .

And when i change 'string_' to '<U1' ,that will work .

Reproducing code example:

import numpy as np
<< your code here >>
b = np.array([('a',1,2),(3,4,5),(6,7,8)], dtype=([('name','string_'),('age','int8'),('salary','float32')]))
a = np.array([('a',1,2),(3,4,5),(6,7,8)], dtype=([('name','<U1'),('age','int8'),('salary','float32')]))

Error message:

Numpy/Python version information:

1.15.0 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 11:27:44) [MSC v.1900 64 bit (AMD64)]

Issue 2:
Example:

>>> dt = np.dtype([('f', float), ('s', str)])
>>> np.array([(1.0, "hello world")], dt)
array([(1.0, '')],
dtype=[('f', '<f8'), ('s', 'S')])

Proposal: This should either resize or raise a ValueError (#8970), as it seems like it would always mask bugs
Issue 1:
Environment

Windows build number: 10.0.18363.900
PowerToys version: 0.19.0
PowerToy module for which you are reporting the bug: PowerToys Run, Keyboard Manager

What I did

I changed the keyboard shortcut for PowerToys Run to Win+R (aka the current Run shortcut)

After I saw that Run still triggered on Win+R, I changed the PowerToys Run shortcut back to Alt+Spacebar

I then used Keyboard Manager, so that Win+R would trigger Alt+Spacebar

Expected behavior

At first, the system behaved as expected, triggering PowerToys Run whenever I hit Win+R

Actual behavior

Eventually, whenever I hit the spacebar, PowerToys Run would launch. I would change settings in PowerToys to prevent this behavior. My fixes (which included removing the shortcut remap) worked at first, but eventually, the bug would be triggered again. I tried deleting the PowerToys app and reinstalling it. Since the data from my previous installation is backed up, I'm worried that the bug will come again, forcing me to disable PowerToys Run completely.

Issue 2:
Environment

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

Steps to reproduce

Remap key from alt-space to win-space

execute shortcut multiple times

Expected behavior

don't have start menu false positive executions

Actual behavior

Lots of start menu executions
Issue 1:
Recently upgraded from 0.35 to 1.3, and now, simply put, the electron process (specifically the webContents?) crashes every time a request is made to an HTTP URL.

Electron version: 1.3.3

Operating system: Arch Linux

There's no discernible error message, the window goes white and the devtools report they have been disconnected, and the mainWindow.webContents throws a crashed event but not much else. The Network tab of the devtools shows that the request begins and reaches Waiting (TTFB), but does not start actually downloading the content.

I've tried requesting pages using both the request and needle libraries, and both cause the crash. HTTP calls in the server (i.e., where app.on('ready') is defined) do NOT crash the client in any form.

Not sure if I've missed something obvious. Any help would be appreciated.

Issue 2:
Electron version: 1.3.3

Operating system: Windows 10.0.10586

The issue is one of my webviews is crashing when using the fetch api. I use it to handle a chunked http response.

When calling stream.read() for a second time it returns Promise.reject(NETWORK ERROR) and the webview crashes.

The issue does not occur on mac os.

I'm attaching some dump information. I failed to add the symbols but I'll try again and come back with an updated version.

Any help would be greatly appreciated.

Thanks

Juan

electron.txt
Issue 1:
[ x ] bug report => search github for a similar issue or PR before submitting
[ x ] feature request

Current behavior

I have a component that may create inside it several other components that may have Radio Button Groups inside them. I want the nested components to not have to receive any reference of their index in the array since they may be used in other situations. The problem is that each group seems to need an unique 'name'. By having several groups generated with the same name, the view only shows the selected circles for one (although the value bindings work well)

Expected behavior

I would like to be able to generate a unique random name for each radio button group inputs or some other thing that would allow each button group to be isolated from the other

Reproduction of the problem

Here's a plunker in which it doesn't seem possible to have unique names for each groups (without sending inside the reference of the array index which I wanted to avoid, since the radioButton component is used in another part of the app that doesn't really need any index. Apart from that reason I wanted to pass in only the relevant data to that component. The real case is a little bit more complex.

https://plnkr.co/edit/3gNOgRT9TYwJmwuebJGB?p=preview

Thanks

Angular version: 2.0.0 final

Language: [all | TypeScript 2 beta ]

Issue 2:
See #5294 for pointers
Issue 1:
As noted in #12076 Getpagesize doesn't currently return the actual system's default page size, but rather a hard-coded value. Per the discussion with @ianlancetaylor on golang-dev [1], the opinion was that syscall.Getpagesize should return the same value as the POSIX call sysconf(_SC_PAGESIZE).

This change will be necessary for future platform support on Solaris.

While this change could be generally applied (more than likely) to all other POSIX platforms, I'm only planning on making this change for Solaris for now.

This issue is being filed to track the change against golang/go separately from x/sys/unix.

While it may be viewed as related to #10180, I believe it can be resolved independently.

[1] https://groups.google.com/forum/#!topic/golang-dev/ZLzxYzULzU8

Issue 2:
At least three problems here:

1. cmd/ld INITRND needs to be at least as large as the page size, otherwise

we might trigger kernel bugs. See https://groups.google.com/forum/#!topic/golang-nuts/29RraQ-t3gc

for a case.

However, just using a larger INITRND value will make the binary bigger because

of the zero padding between segments.

I think we can have a way to have a much larger INITRND without increasing

the size of the binary by leaving a VM hole between the segments.

(e.g. text segment ends at N*INITRND + x, then we make the next segment's

load address start at (N+1)*INITRND + x + 1, so there is no hole in the file, but

different segments end up on different pages (if INITRND >= page size).

2. _PhysPageSize in runtime needs to be a variable and auto detected

at process start up. This might incur a performance overhead, but as the

proliferation of non-4K page size systems (power64, arm, arm64), we should

make the change to continue the Go tradition that it just works without extra

tuning. At least, we should make cmd/dist detect page size and tune the

const in runtime.

3. syscall.Getpagesize should return the value in the runtime. Right now,

it's hardcoded on all systems.
Issue 1:
by juanval:

go version go1.3 darwin/amd64

What steps reproduce the problem?
Example: http://play.golang.org/p/-GqZSloAM3

1. fmt.Println(math.Sin(1.5e17))

What happened?

Program prints "1.231298118089368e+08"

What should have happened instead?

Program should print value in [-1,1] range

Please provide any additional information below.

Source code for math.Sin warns that "Results may be meaningless for x > 2**49 = 5.6e14". However, it says nothing about not respecting the [-1,1] range.

I discovered this when doing math.Sin(float64(time.Now().UnixNano())) returned 1.1828933275348654e+20

Also, that information does not appear in godoc.

Issue 2:
Sigh, for example,

=== RUN TestConnectionlessWriteClosedError
--- PASS: TestConnectionlessWriteClosedError (0.00 seconds)
write_test.go:134: use of closed network connection
write_test.go:134: use of closed network connection
write_test.go:134: use of closed network connection
write_test.go:134: use of closed network connection
write_test.go:134: use of closed network connection
write_test.go:134: use of closed network connection

instead of

=== RUN TestConnectionlessWriteClosedError
--- PASS: TestConnectionlessWriteClosedError (0.00 seconds)
write_test.go:134: udp4 127.0.0.1:41400: use of closed network connection
write_test.go:134: udp4 127.0.0.1:41400: use of closed network connection
write_test.go:134: udp6 [::1]:57416: use of closed network connection
write_test.go:134: udp6 [::1]:57416: use of closed network connection
write_test.go:134: unixgram /tmp/nettest869396226: use of closed network connection
write_test.go:134: unixgram /tmp/nettest869396226: use of closed network connection

The root cause is issue #4856.
Issue 1:
Similar to Visual Studio extensions, I would like to register a specific file extension and swap out the code editor for a custom UI experience when that file opened.

Issue 2:
I want to implement an extension to display a graphical presentation for a binary file. I have had a look at markdown extension. But it displays the customized preview window with the default editor window side by side. So I want to know:

Is there a method to only open the preview window (customized) without opening the default editor window.

Can the default editor window be embedded in a customized window

It will be great if extension developers can freely compose their customized window with the internal VSCode views such as Editor, Tab, etc.
Issue 1:
Platform: win32, python 2.6 binary installer from python.org, numpy binary installer of versions given, mingw32 compiler (specified in distutils.cfg)

"easy_install ffnet" works fine with numpy 1.6.2; with numpy 1.7.0, it raises a SandboxViolation:

Wrote C/API module "_pikaia" to file "build\src.win32-2.6\ffnet\fortran_pikaiamodule.c"

Fortran 77 wrappers are saved to "build\src.win32-2.6\ffnet\fortran_pikaia-f2pywrappers.f"

error: Setup script exited with error: SandboxViolation: open('C:\Python26\lib

s\libmsvcr90.def', 'w') {}

I know distribution/setup tools are a little flavour-of-the-month, but I haven't seen a call that numpy.distutils is incompatible with easy_install now (ffnet still recommends easy_install).

Issue 2:
I didn't see this error reported, apologies if it is a duplicate -- my current numpy is 1.6.2.

$ sudo easy_install --upgrade numpy
Searching for numpy
Reading http://pypi.python.org/simple/numpy/
Reading http://numpy.scipy.org
Reading http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103
Reading http://www.numpy.org
Reading http://sourceforge.net/projects/numpy/files/NumPy/
Reading http://numeric.scipy.org
Best match: numpy 1.7.0
Downloading http://pypi.python.org/packages/source/n/numpy/numpy-1.7.0.zip#md5=ca27913c59393940e880fab420f985b4
Processing numpy-1.7.0.zip
Running numpy-1.7.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-vw2DNu/numpy-1.7.0/egg-dist-tmp-gJGWkL
Running from numpy source directory.
error: SandboxViolation: open('/dev/null', 'w') {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
Issue 1:
Happened several times in the last few runs:

https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/28543/kubernetes-pull-build-test-e2e-gce/48158/

https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/26696/kubernetes-pull-build-test-e2e-gce/48157/

https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/27243/kubernetes-pull-build-test-e2e-gce/48156/

Waiting up to 300 seconds for cluster initialization.

This will continually check to see if the API for kubernetes is reachable.
This may time out if there was some uncaught error during start up.

...........................................Cluster failed to initialize within 300 seconds.
2016/07/07 15:09:32 e2e.go:218: Error running up: exit status 2
2016/07/07 15:09:32 e2e.go:214: Step 'up' finished in 7m56.450395031s
2016/07/07 15:09:32 e2e.go:114: Error starting e2e cluster. Aborting.
exit status 1

Issue 2:
gcloud is crashing due to ERROR: gcloud crashed (error): [Errno 111] Connection refused

see https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/10711/ for an example.

https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce/19753/ seems to have some backtraces. This may indicate that it has something to do with the metadata server.

At least one of the failures in:

#28336

#28083

#28013

#27839

#27767
Issue 1:
In the provided numpy swig interface file, numpy.i, the ARGOUTVIEWM typemaps for dimension 4 arrays seem to be erroneously duplicated. Lines 2799-2949 approximately duplicate lines 2951-3101, with the exception of line 2890 which appears to be incorrect because it only goes up to dimension 3. It seems to me that lines 2799-2949 should just be deleted. I will make a pull request with this edit.

Issue 2:
Documentation

Reference URL

Typo in first example of One Dimensional Array
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-target-elements-by-class-using-jquery has an issue.

This issue is also replicated on http://freecodecamp.com/challenges/waypoint-target-html-elements-with-selectors-using-jquery

Where the <script> tag should be, the letters "fccss" appear; and

where the </script> tag should be, the letters "fcces" appear.

I assume "fccss" starts for "FCC Start Script" and

I assume "fcces" starts for "FCC End Script".

This wasn't clear and I couldn't complete the waypoint until I realized the bug. (Was it intentional?)

And yes, I'm using Chrome on a Mac.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-create-a-javascript-slot-machine has an issue.

The four Javascript slot machine exercises all display the JS section of the code incorrectly. Presumably fccss is supposed to be <script>, and likewise fcces is supposed to be </script>.
Issue 1:
gc successfully compiles the following program:

package a
func f() int {
for {};
;
}

while gotype says:

go.go:5: missing return at end of function

go version devel +9b04852 Sat Jul 11 00:08:50 2015 +0000 linux/amd64

Issue 2:
Per a (pending) spec change, the following code should be permitted:

package p
func f() int {
return 3
; // <<< trailing empty statement
}

See #14422 for details.
Issue 1:
Summary of the new feature/enhancement

Simply, I myself am not a fan of the default windows start menu. I only ever use it for searching for apps or files so PowerToys Run seemed like a good replacement. It's fast and has less clutter HOWEVER it don't have the option to map the WinKey by itself to replace the start menu. I've had to resort to remapping the WinKey to act as a different key and use AutoHotkey to launch PowerToys Run when it's pressed. This has it's issues though...

Proposed technical implementation details

Simply in the shortcuts box, allow the WinKey to trigger it all on it's own. Make it not trigger the normal start menu when the WinKey is pressed.

Issue 2:
📝 Provide a description of the new feature

I think it would be useful to be able to export/import the remapped keys and shortcuts. This would allow the users to use the same mappings in different devices as well as saving them if they needed to reinstall PowerToys.

Apart from that, I guess this feature could be easily implemented.

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Issue 1:
I have an app using material-ui and SSR. On some pages of my app, I get a warning like:

Warning: Prop `className` did not match. Server: .... "a-224 b-231 c-241 d-293" Client: "a-224 b-231 c-241 d-284"

(I replaced the long classnames with a, b, c, d). But the mismatch is on the "suffix" of the last className. "d-293" on server vs "d-284" on client.

So it seems that at some point, there is some classes added on the server and not on the client, and it's breaking the classes index suffix.

I tried to trace the problem, and wanted to detect the problem to show an example but it's quite difficult.

I do have a lot of "Hidden" components in my app, and as I'm using SSR, I use the css implementation. As soon as I switch on the JS one, the problem disappear.

I was wondering if there is some builtin tool to debug the generator on the server and on the client, so I could more easily understand the problem ?

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

Your Environment

Tech
Version

Material-UI
latest beta

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

Expected Behavior

I would have expected to be able to use value={100} inside a RadioGroup and FormControlLabel.

The docs state, that value is a string https://material-ui-1dab0.firebaseapp.com/api/radio-group/ https://material-ui-1dab0.firebaseapp.com/api/form-control-label/ , but I wonder if this is on purpose or accident.

Current Behavior

It actually works just fine, but throws type errors in the console.

If you also think that value should accept numbers, i'd be happy to create a pr.

Best Regards,

lukas
Issue 1:
Description of the problem

BufferAttribute can be shared among geometries (or even it can be referenced twice or more in one geometry). But .toJSON() creates the same data many times for such a shared buffer attribute. That leads to non-efficient serialized data and shared buffer attribute will become many duplicated buffer attributes through serialization.

What do you think of adding attribute field to serialized json data like this?

{
metadata: { ... },
attribute: [
{
array: [ ... ],
....
},
{
array: [ ... ],
....
},
{
array: [ ... ],
....
}
],
geometry: [
{
data: {
attributes: {
position: 0, // BufferAttribute doesn't have uuid so using index instead?
normal: 1,
uv: 2
}
},
....
},
{
data: {
attributes: {
position: 0,
normal: 1,
uv: 3
}
},
....
}
]
....
}

Pros:

Efficient data in case attribute is shared

Reproduce the shared attribute even through serialization

Cons:

Break compatibility if there is any users who exported serialized json data to external file/storage.

Three.js version

Dev

r101

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

Issue 2:
I am trying to use the example at https://threejs.org/examples/?q=spline#webgl_geometry_spline_editor .

It appears that I cannot reliably drag the control points. Sometimes while changing perspective, the dragging controls appear, but I can't get this to happen reliably.

OS X 10.9

Firefox 51.0.1

Google Chrome 56.0.2924.87
Issue 1:
Current code for precision_recall_curve assumes the curve always passes through (recall=0, precision=1). However this is not the case.

For instance,

pred_proba = [0.8, 0.8, 0.8, 0.2, 0.2]

true_value = [0, 0, 1, 1, 0]

metrics.precision_recall_curve(true_value, pred_proba) will return

precision = [ 0.4 0.33333333 1. ]

recall = [ 1. 0.5 0. ]

the result's not correct and actually in favor of the poor model (the model misclassified points with high-score will have more area under the curve).

Be careful when using auc based on metrics.ranking.precision_recall_curve before the bug is solved

Issue 2:
Referencing "The last precision and recall values are 1. and 0. respectively and do not have a corresponding threshold. This ensures that the graph starts on the x axis."

Say you have a tie in your highest predicted probability output from the classifier with some false positives and some true positives, for example:

y_true = [ 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0]
y_pred = [.9, .9, .9, .8, .8, .7, .7, .6, .5, .4, .3]
precision, recall, thresholds = precision_recall_curve(y_true, y_pred)

Yields:

Pricision: [0.400, 0.333, 0.375, 0.428, 0.400, 0.333, 1.000]
Recall: [1.000, 0.750, 0.750, 0.750, 0.500, 0.250, 0.000]

I understand that recall goes to zero in the limit, but precision might not be so clear-cut. A really difficult problem where your top prediction is a false positive would have precision go to zero in the limit I believe. For plotting with this function, this case is probably not a big deal a vertical line from 0 to 1 would be hidden by the y-axis.

But for the drawn top-preds, as seen above, the plot becomes misleading and makes the viewer think that at least their top prediction was true positive. This may seem like a corner case, but I ran into it on a tough classification problem I was working on and was a little baffled by the output until I checked the code out.

A quick fix to preserve the intention of a clean P-R plot might be to draw a horizontal line from the highest threshold to the y-axis, this should not alter the output of most cases like here. Trying to actually calculate where it's going in the limit might be a bit overkill :-)

I would also think that adding a 1 to the end of the thresholds vector would be helpful when plotting both precision and recall against the probabilities.

I'm happy to open a PR if anyone thinks this is worth addressing.