WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
While its a neat feature, to load scripts as if they were in a web browser, in the examples I've come across, I didn't see anything similar to the javascript 'integrity' attribute to ensure the remote source code matches the loaded remote code.

Does Deno have such a feature? If so, disregard the rest - if not, my question is as such:

Lets say some deno code (Package A) exists in the wild, that depends on deno scripts from:

https://ahungry.com/deno-package.ts (this could be example.com, but I'm not sure that does expire)

Unlike a central repository similar to npm (which has its own problems), domain names are not permanent, and are time expired.

If ahungry.com was to expire, and a malicious actor then registered it, and hosted a malicious deno-package.ts script on their remote end, a problem arises - how does Deno ensure the user doesn't run this altered code?

If this is not the first time the user has executed Package A, perhaps its not going to be an issue until the user runs the deno upgrade (remote packages) command, at which point Deno could detect the TLS fingerprint of the remote is now different.

But, for a first time user of Package A, that has never run 'deno' before, and therefore has no hidden cache of deno packages - wouldn't it eagerly pull in and execute this code?

NPM is not suspect to this same problem, unless they expired npm packages yearly and were to allow anyone to claim other's slots after this time period (which would seem ridiculous in the context of package hosting).

Issue 2:
I don't know if this already came up, but if security is a major concern and referencing modules via http(s) should be possible, then maybe there should be a way to use subresource integrity to ensure that the downloaded module isn't tampered with.

It could be part of the hash, like

import { test } from "https://unpkg.com/deno_testing@0.0.5/testing.ts#sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"

That would be very explicit, although not compatible to semver ranges.
Issue 1:
github\tensorflow\tensorflow\contrib\lite\java\demo\app\src\main\java\com\example\android\tflitecamerademo\ImageClassifier.java

Error:(152, 16) The method setNumThreads(int) is undefined for the type Interpreter

Issue 2:
TF has no analogue to np.random.choice function that chooses random element from tensor (optionally according to provided probabilities). It's especially useful in RL problems when you use epsilon-greedy exploration strategy.

What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?

These two solve the problem using tf.multinomial, but maybe it will be convenient to include tf.random_choice in TF API?

It could be implemented through tf.multinomial , for example.
Issue 1:
works only if i click it twice. e.g.

Open Folder "Desktop"... nothing happens

Open Folder "Desktop" a second time... voila it appears

is this normal? and that is no exception!! it happens everytime!!

Issue 2:
Like I mentioned here in my comment opening a folder won't work for the first time you open it, wether if you drag&drop it or just open it via the shortcut.

Same Problem on two different computers with Atom (0.124.0) running on Mac OS X (Mavericks).
Issue 1:
Please answer these questions before submitting your issue. Thanks!

I believe goimports does not automatically include package unsafe even if referenced in the source, which is fine, but when package unsafe is imported it can confuse goimports and produces syntactically correct, but unexpected output, such as:

import (
"reflect"
"unsafe"
)
import "fmt"

What version of Go are you using (go version)?

go version go1.6 linux/amd64

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GORACE=""
GOROOT="/usr/lib/google-golang"
GOTOOLDIR="/usr/lib/google-golang/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -gno-record-gcc-switches -fdebug-prefix-map=/tmp/go-build262021310=/tmp/go-build"
CXX="g++"
CGO_ENABLED="1"

What did you do?

Ran goimports on the source code http://play.golang.org/p/Ppc325UINU

package code

import "unsafe"
import "fmt"

var _ = fmt.Print
var _ = unsafe.Sizeof
var _ = reflect.Value

What did you expect to see?

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

package code

import (
"fmt"
"reflect"
"unsafe"
)

var _ = fmt.Print
var _ = unsafe.Sizeof
var _ = reflect.Value

What did you see instead?

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

package code

import (
"reflect"
"unsafe"
)
import "fmt"

var _ = fmt.Print
var _ = unsafe.Sizeof
var _ = reflect.Value

Issue 2:
with imports like:

import "bytes"
import "encoding/binary"

and code that adds a dependency on another package, like bufio:

bufio.NewReader(os.Stdin)

goimports will rewrite the imports to look like:

import (
"bufio"
"bytes"
)
import "encoding/binary"

The formatting here is odd. I expected it to look like either:

import "bufio"
import "bytes"
import "encoding/binary"

where the established convention in the code of using import before every import is left alone or

import (
"bufio"
"bytes"
"encoding/binary"
)

where the convention of using grouped imports is properly done.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

https://github.com/mui-org/material-ui/blob/bfbf4ed7f765ebf6760b22a598ad6e4eb9f6f244/src/Input/Input.js#L50

Easing function that used in this line does not exists in theme definition. easeInOut will used instead as default value.

Issue 2:
When a ListItem has its disabled prop set to true, the onClick function still fires.

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

Expected Behavior

Expect the ListItem to be.. well.. disabled? ie. not fire an onClick.

Current Behavior

Regardless of the disabled prop value, the onClick prop still fires.

Steps to Reproduce (for bugs)

A basic List/ListItem:

<List>
<ListItem disabled primaryText="Im disabled!" onClick={() => (window.alert('I fired!'))} />
</List>

Clicking on the ListItem still fires the onClick.

Context

Your Environment

Tech
Version

Material-UI
0.18.0

React
15.6.1

browser
All

etc
Issue 1:
https://github.com/facebook/react/blob/master/src/browser/ui/ReactMount.js#L81

It seems this is mainly the cause of invalid nesting of tags, <a><div /></a>, <table><tr></tr></table>, etc. I know there are some issues/PRs regarding this already but AFAIK they're trying to solve/detect it, it seems reasonable to just improve this (very non-informative) error message in the meantime.

PS. I've probably seen 2-3 people get bitten by it myself now that I think about it.

Issue 2:
React version: 18.0.0

Steps To Reproduce

componentWillUnmount is called twice upon toggling the rendered component. Even when StrictMode is disabled

Link to code example: https://codesandbox.io/s/componentwillunmount-called-twice-hrpzy5?file=/src/App.js

The current behavior

After upgrading to react 18 we've seen some different behavior in a conditionally rendered, lazy class component.

In the provided code example the class component is rendered first. After the first toggle, the class component's componentWillUnmount is called twice.

Subsequent toggle calls correctly lead to a single componentWillUnmount invocation.

This does only seem to affect the class component when its rendered first. If the condition is changed to initially show the other function component the class component unmounts just fine

The expected behavior

The class component's componentWillUnmount is only called once
Issue 1:
by qeed.quan:

For some reason I am getting a build error using cgo with GLEW, I am running linux 64
bit version and

go version devel +811f060da18a Thu Mar 28 15:04:25 2013 -0700 linux/amd64

with GCC 4.8

I get build errors such as these when trying to install GLEW

# gl
In file included from buffer.go:4:0:
gl.h:4:25: error: enumerator value for '__cgo_enum__8' is not an integer constant
#define GLEW_GET_FUN(x) (*x)
^
/usr/include/GL/glew.h:1685:22: note: in expansion of macro 'GLEW_GET_FUN'
#define glGenBuffers GLEW_GET_FUN(__glewGenBuffers)
^
gl.h:4:25: error: enumerator value for '__cgo_enum__9' is not an integer constant
#define GLEW_GET_FUN(x) (*x)
^
/usr/include/GL/glew.h:1679:22: note: in expansion of macro 'GLEW_GET_FUN'
#define glBindBuffer GLEW_GET_FUN(__glewBindBuffer)
^
gl.h:4:25: error: enumerator value for '__cgo_enum__10' is not an integer constant
#define GLEW_GET_FUN(x) (*x)
^
the errors continue from here but they are mostly the same.

The GLEW header file does
#define GLEW_GET_FUN(x) (x)
but it needed
#define GLEW_GET_FUN(x) (*x)
to compile properly when cgo was still working, or else one would get the error:
could not determine kind of name for C.glDeleteBuffers
and so on.

I have attached my GL bindings to test with glew.

Attachments:

gl.zip (6539 bytes)

Issue 2:
by vincent.risi:

This is not a bug but if the := already allows for some of the variable to
be old, why not allow for them all to be old?

for instance I would like to have

a, b := Called(x)
...
a, b := Called(a*b)

as it does not really affect the usability if this was relaxed.
Issue 1:
I'm looking to integrate Playwright into CI, and was wondering if it was a known use-case and how to solve it within Playwright. I've seen some issues relying on chokidar, but would you recommend this?

Issue 2:
Description

As a user, I want to run my component tests only on changed files, as it would be a use case in a git hook (pre-push)

Alternatives

https://jestjs.io/docs/cli#--onlychanged

https://vitest.dev/guide/cli.html#changed

Preferred Solution

Enhancement of the cli commands, e.g.

npx playwright test --only-changed
Issue 1:
I found that numpy.sqrt has a strange type mapping:

>>> numpy.sqrt.types
['f->f', 'd->d', 'e->e', 'f->f', 'd->d', 'g->g', 'F->F', 'D->D', 'G->G', 'O->O']

It causes sqrt to upcast float16 to float32. It is also strange that 'f' and 'd' appear twice. Is this definition/behavior intended?

Note: I checked it with NumPy 1.9.2 on Python 2.7.9 & 3.4.3.

Issue 2:
Sorry, if this is a duplicate but I could not find a matching issue..

I am reporting an issue that was introduced after version 1.8.2 and is present in all of 1.9.1, 1.9.2rc1 and master (a4cdc5b). I am on Python 2.7.9.

Here's a snippet to illustrate the issue:

import numpy as np

a = np.arange(10)
print a

mask = a > 4
print mask

a[mask].fill(-1)
a[~mask].fill(-2)
print a

a[mask] = -1
a[~mask] = -2
print a

which produces..

[0 1 2 3 4 5 6 7 8 9]
[False False False False False True True True True True]
[0 1 2 3 4 5 6 7 8 9]
[-2 -2 -2 -2 -2 -1 -1 -1 -1 -1]

I've tried to git bisect to the responsible commit, but git seems to get confused, it stops the bisect run with the following message:

The merge base 6c729b4423857850e6553cf6c2d0fc8b026036dd is bad.
This means the bug has been fixed between 6c729b4423857850e6553cf6c2d0fc8b026036dd and [4563730a2d036307f1b67b2856d749aabdd8d546].

Here's the git bisect log afterwards:

git bisect start
# good: [4563730a2d036307f1b67b2856d749aabdd8d546] REL: Release 1.8.2
git bisect good 4563730a2d036307f1b67b2856d749aabdd8d546
# bad: [d44b9c61499f8bc5a9fc94286cd52f05e15e003f] REL: Release 1.9.1
git bisect bad d44b9c61499f8bc5a9fc94286cd52f05e15e003f
# bad: [6c729b4423857850e6553cf6c2d0fc8b026036dd] Merge pull request #3635 from charris/giant-style-cleanup
git bisect bad 6c729b4423857850e6553cf6c2d0fc8b026036dd
Issue 1:
Noticed this flake:

http://build.golang.org/log/de2ea0b431bc216003fd8762e62bbd46b3511fca

...
ok math/rand 5.305s
ok mime 1.365s
ok mime/multipart 2.470s
ok mime/quotedprintable 3.075s
--- FAIL: TestDialTimeout (0.00s)
timeout_test.go:82: #3: dial tcp 127.0.0.1:0: connectex: The requested address is not valid in its context.
FAIL
FAIL net 21.902s
ok net/http 10.666s
ok net/http/cgi 6.718s
ok net/http/cookiejar 1.583s
...

/cc @alexbrainman @mikioh

Issue 2:
I've been running run.bash in a loop on my linux/amd64 workstation for the past few days and out of ~500 runs, I've had three failures of TestDialTimeout with:

--- FAIL: TestDialTimeout (0.00s)
timeout_test.go:82: #3: dial tcp 127.0.0.1:0: getsockopt: connection refused
FAIL
FAIL net 2.223s

It has my GC changes from CL 12674, but I don't think those are related. The latest commit from master is ae1ea2a. This shows up occasionally on the dashboard as well:

2015-06-05T18:51:23-d64cdde/linux-amd64-nocgo

2015-06-05T18:51:23-d64cdde/linux-amd64-noopt

2015-06-11T14:33:40-0beb931/solaris-amd64-smartos

2015-06-14T20:54:01-48d865a/linux-amd64-noopt

2015-07-05T03:36:56-1edf489/linux-amd64-noopt

2015-07-14T00:07:31-337b7e7/linux-amd64

2015-07-15T23:28:42-08dbd8a/solaris-amd64-smartos

2015-07-17T22:46:05-955c0fd/android-arm-crawshaw

2015-07-23T17:10:28-e0ac5c5/linux-386-sid

This may be related to #11474, though the error sounds different.

@mikioh
Issue 1:
Challenge Target the same element with multiple jQuery Selectors has an issue.

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

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

My code:

<script>
$(document).ready(function() {
$("button").addClass("animated");
$(".btn").addclass("shake");
$("#target1").addClass("btn-primary");

});
</script>

<!-- Only change code above this line. -->

<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>

When I try to run the test for this excersice, it doesnt appear the "to do" list below the "run test, help," etc. buttons, also it doesnt run the test (I belive the code is correct and it doesnt let me check that).

Help?

Issue 2:
Challenge tests for jQuery fail to run if syntax errors are present in a campers code.

Examples:

#9289

#9082

#9470

#9672

#9698

What is stopping the tests running? Can we fix it?

Is there a way to lint jQuery in codemirror so campers get visual clues to syntax errors, like in the JS challenges?

-Or-

When there is a syntax error, can we present a modal to the camper saying there is a syntax error present in their code when they click 'Run tests'?
Issue 1:
Environment

Windows build number: [Version 10.0.18362.657]
PowerToys version: 0.18.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Three monitor setup, from Left to Right:

Monitor 1: Browser with active Project + Team Explorer/Output/etc

Monitor 2: Main Visual window (code)

Monitor 3: Solution Explorer + Additional Apps (ie: chrome debugger usually)

Expected behavior

Remember each of Visual Studio's individual windows last zone.

Actual behavior

All VS windows get moved into the last zone I dropped in

(My guess is because they all end up using the same title or inherit the parent window handle??)

Note that VS remembers the last setup correctly if I have "Last known zone" turned off.

Screenshots

Issue 2:
This applies to 0.14.1 and also to the current master.

Repro steps:

have "Move newly created windows to their last known zone" ON.

open Outlook and snap it to a zone.

open an email message or create a new email message.

Result:

the email message window is snapped to the zone where Outlook is snapped.

Expected:

the email message window is opened where it was last used.

Moving the email message window somewhere else will "fix" the problem, subsequent email messages will be opened where they were last used and not snapped to the zone.

Snapping Outlook to a new zone will bring back the bug.
Issue 1:
OpenCV => :net.forward() error:

Operating System / Platform => :android imx8:

Hi，I use DNN with opencl to detect object ,tiny-yolov2, but when run net.forward() ,it's ANR ,Here is the log:

2019-05-23 23:38:51.987 15259-15259/? A/DEBUG: pid: 14020, tid: 15200, name: Thread-359 >>> com.pateonavi.naviapp <<<

2019-05-23 23:38:51.987 15259-15259/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xfffffffc

2019-05-23 23:38:51.987 15259-15259/? A/DEBUG: r0 b5883600 r1 b59dd750 r2 a6c80d70 r3 c86c1a20

2019-05-23 23:38:51.987 15259-15259/? A/DEBUG: r4 b5883600 r5 fffffff8 r6 a6c80d00 r7 00000000

2019-05-23 23:38:51.987 15259-15259/? A/DEBUG: r8 c86c1a20 r9 a6c80d70 r10 b59dd750 r11 b5883784

2019-05-23 23:38:51.987 15259-15259/? A/DEBUG: ip f32b4d00 sp a6c80ce8 lr a8dd25b9 pc a8dd6b46

2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: backtrace:

2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: #00 pc 0060eb46 /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so

2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: #1 pc 0061238d /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so

2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: #2 pc 00612677 /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so

2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: #3 pc 005c5405 /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so

2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: #4 pc 005c6265 /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so

2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: #5 pc 005b1337 /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so

2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: #6 pc 005b2331 /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so

2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: #7 pc 005b6287 /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libopencv_java3.so (cv::dnn::experimental_dnn_34_v11::Net::forward(cv::String const&)+250)

2019-05-23 23:38:51.996 15259-15259/? A/DEBUG: #8 pc 0001bb80 /data/app/com.pateonavi.naviapp-BkrRCt9MMasrSsmw12ksMg==/lib/arm/libimageproc.so (ImageProcessor::classify(cv::Mat)+352)

Here is the code:

cv::Mat blob = cv::dnn::blobFromImage(result,1/255.f,cv::Size(224,224),cv::Scalar(),false,true);

my_net.setInput(blob);

cv::String outputNames = getOutputsNames();

cv::Mat output= my_net.forward();

I use the opencvforandroidSDK ,it is correct ,but i compule it with opencl ,it is error ,

Can you give me some help?

Thanks!

Issue 2:
编译opencv3.4.3版本带OPENCL的，测试能够检测到opencl，但是当运行DNN模块net.forword（output）函数就会导致系统奔溃，用官网的Android SDK版本的CPU版本是正常的

芯片是imx8Q ,opencl 1.2.

请问是编译问题还是版本问题？
Issue 1:
It would be nice if the examples pages had a jsfiddle link so that it would be easier to generate use cases for bug reporting by users.

Issue 2:
After compiling, #grid > .fluid(@fluidGridColumnWidth, @fluidGridGutterWidth); produces duplicate CSS rules. The duplicates are directly after the first rule set. Example:

.row-fluid [class*="span"] {
/* code*/
}
.row-fluid [class*="span"]:first-child {
margin-left: 0;
}
.row-fluid .span12 {
width: 99.99999998999999%;
*width: 99.94680850063828%;
}
/* … */
.row-fluid .span1 {
width: 8.3333333333%;
*width: 8.3333333333%;
}

/* Directly after, it repeats the exact same code */

.row-fluid [class*="span"] {
/* code*/
}
.row-fluid [class*="span"]:first-child {
margin-left: 0;
}
.row-fluid .span12 {
width: 99.99999998999999%;
*width: 99.94680850063828%;
}
/* … */
.row-fluid .span1 {
width: 8.3333333333%;
*width: 8.3333333333%;
}

The duplicates are a part of the core code and not within media-queries. I've tried to fix it, but can't seem to figure out why it's duplicating the rules. BTW, I'm using CodeKit as the compiler, but I wouldn't think that would cause the issue as the grid output is the only thing that duplicates (from I can see).

Anyway, it's not critical issue, but I thought I would just report the strange behavior. Thanks for all your hard work and great contribution to our community. Cheers!
Issue 1:
VSCode Version: 1.0.0

OS Version: Mac OS 10.11.4

Steps to Reproduce

Create the following package.json file and open it in Code: { "private": true }

View the linter warnings (hover over the green squiggles)

Expected

No warnings, because npm install no longer warns about missing names and versions in private packages.

Actual

Code produces the following warnings:

Missing property "name"

Missing property "version"

Issue 2:
When a package.json has private: true, my understanding is that it shouldn't require a name or a version.
Issue 1:
[ x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

The radio button and checkbox should not blink by default. Once selected then they should have there selected animation. Right now as soon as I render the Checkbox & Radio button this is what happens. Kindly have a look at this image

Current Behavior

As you can see in the image above the checkbox and radio button keep on blinking

Steps to Reproduce (for bugs)

My codebase is as follows

// Material UI Components
import Radio, { RadioGroup } from 'material-ui/Radio';
import Checkbox from 'material-ui/Checkbox';
import { FormLabel, FormControl, FormControlLabel } from 'material-ui/Form';
.
.
.
<FormControl component="fieldset" required>
{/* <FormLabel>{name}</FormLabel> */}
<RadioGroup
aria-label="radio-selection"
name={name}
onChange={this.onHandleChange}
value={this.state.selectedValue}
>
{listOfValues.map((item, index) => (
<FormControlLabel key={index} value={item} control={<Radio />} label={item} />
))}
</RadioGroup>
</FormControl>

<FormGroup>
{/*<h4 className="text-capitalize">{name ? name : 'Checklist'}</h4>*/}
{listOfValues.map((item, i) => (
<FormControlLabel
key={i}
control={<Checkbox value={item} />}
onChange={(event, isInputChecked) => { this.onHandle(isInputChecked, item) }}
checked={selectedValues.includes(item)}
label={item}
/>
))}
</FormGroup>

Your Environment

Tech
Version

Material-UI
alpha20

React
16

browser
not using

etc

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

Expected Behavior

I'm trying to override the element of Expansion Panel that contains these classes:

MuiCollapse-container-44 MuiCollapse-entered-45

I.e. seem to be using the Collapse component?

Current Behavior

No API to change the part that uses Collapse

Steps to Reproduce (for bugs)

The components below (that are part of Expansion Panel) all work fine to override CSS with. Collapse is not listed, so I guess this is not a bug - more a missing feature?

<ExpansionPanel />
<ExpansionPanelActions />
<ExpansionPanelDetails />
<ExpansionPanelSummary />