WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
When you use "TAB" and you select a checkbox it looks like in picture1. If you set programmatically the focus of the checkbox it does not have the effect. If you set the checkbox programmatically it doesn`t have the effect and looks like in picture2.

(Picture1)

(Picture2)

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

Expected Behavior

Picture1

Current Behavior

Picture2

Steps to Reproduce (for bugs)

<Checkbox
checked={true}
inputRef={ ref => this.myReference= ref}
/>

And then make a timer that waits a few seconds before you set the focus:

this.myReference.focus();

Sorry, I tried Codesandbox, but I didn`t get it working :-/

Environment

Tech
Version

Material-UI
Beta25

React
16.2.0

browser
Chrome

Issue 2:
In the docs, the <Slide> component specifies that <Transition> properties are also available. Transition allows for a function or a React Element for the children prop, but the Slide component is expecting only an element. If you do use a function, it works as defined in the Transition docs, but supplies the invalid prop warning in the console.

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

Expected Behavior

<Slide> children prop should accept a function that passes in status and returns a React Element as well as a React Element like <Transition>.

Current Behavior

<Slide> only accepts a ReactElement in PropTypes. Passing a function throws a PropTypes warning, but still functions as expected in the <Transition> docs.

Console warning:

Warning: Failed prop type: Invalid prop `children` of type `function` supplied to `Slide`, expected a single ReactElement.

Steps to Reproduce (for bugs)

https://codesandbox.io/s/0348zn430l

Context

We are animating <Paper> elements with Slide transitions based on React Router routes. The problem with just Using slide and an element is React Router will unmount before the slide out animation happens, so we need to always have the Slide element rendered and have the route control the in prop on <Slide>. This however creates some issues because <Slide> always mounts the child, so I need to control whether a dummy empty element, or the element in the route is being displayed based on the status of <Slide>. So when the slide is about to happen, we mount the correct child and when the slide has exited we unmount.

const AnimatedPageRoute = props => (
<Route
path={props.path}
exact={props.exact}
>
{({ match }) => (
<Slide in={match !== null} direction={props.direction} mountOnEnter unmountOnExit>
{(status) => {
if (match && status !== 'unmounted') {
return <Page light>{props.children}</Page>;
}
return <Page light><SplitView /></Page>;
}}

</Slide>
)}
</Route>
);

Your Environment

Tech
Version

Material-UI
1.0.0-beta.25

React
16.1.1

browser
Electron 1.8.1

etc
Issue 1:
ESModules without dynamic import is incomplete.

We cannot do this:

if( whenWeNeed() )
import 'some_thing';

nor this:

const need= whatWeNeed();
import need;

Only dynamic import can make ESM as strong as CommonJS or AMD.

Maybe there are some security reasons. But local dynamic import should be retain.

Issue 2:
I know this is already on the radar, but wanted to create a distinct issue.

(This is required for a test runner.)
Issue 1:
Hi,

Tooltip placement In version 2.3.0 only place in top of elements By all of placement (top-right-bottom-left) !!!

http://twitter.github.com/bootstrap/javascript.html#tooltips

Issue 2:
congrats on releasing 2.3.0!

I was checking out some of the docs and saw that tooltips data-placement is not working correctly. I think its because of the one pull request that makes options set in javascript override the options that were set in the html but I'm not sure..
Issue 1:
System Information:

OpenCV => 4.2

Operating System / Platform => Windows 7/ 32 Bit

Compiler => Visual Studio 2015

Detailed description

I am currently editing cap_ffmpeg_impl.hpp in modules/videoio/src and compiling the binaries. As FFMPEG is a 3rd party library it doesn't register changes in the cap_ffmpeg_impl.hpp and downloads the external binary(opencv_videoio_ffmpeg420.dll ) instead of compiling with the local files.

What is the procedure for compiling with the source files?

Issue 2:
System information (version)

OpenCV => 3.1.0

Operating System / Platform => Windows 7 64 Bit

Compiler => Visual Studio 2013

Detailed description

Steps to reproduce
Issue 1:
The comments imply, to me, that specifying --cert-dir will cause the apiserver to look in --cert-dir for some appopriately named certs and will use those. This is in lieu of the user specifying --tls-cert-file and --tls-private-key manually.

Two problems: one, the flag descriptions don't tell the user what the cert/key need to be named for them to be auto-picked up. Two, the code doesn't actually look for those files in the --cert-dir. It just clobbers them with Kubernetes's own self-signed certificates.

Of course, it's also possible that I'm just misunderstanding the description of --cert-dir. In that case, I think it would be clearer if --cert-dir said "The directory where self-signed TLS certs are placed".

Relevant code: https://github.com/kubernetes/kubernetes/blob/master/cmd/kube-apiserver/app/server.go#L621-L622

(note, util.GenerateSelfSignedCert says in a comment that it will replace any existing certs)

Issue 2:
It seems to actually overwrite existing ones
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.6.2

Operating System version:Windows10

Java version: 1.8

Steps to reproduce this issue

同一个微服务多个类引用同样的dubbo服务

每个类的reference除了version和group一样之外,其它属性均有不一样的配置

项目运行起来后有些类的此dubbo服务reference注解属性不起作用

我看了源码,是这里的问题:

/**

* Generate a cache key of {@link ReferenceBean}

*

* @param reference {@link Reference}

* @param beanClass {@link Class}

* @return

*/

private String generateReferenceBeanCacheKey(Reference reference, Class<?> beanClass) {

String interfaceName = resolveInterfaceName(reference, beanClass);

String key = reference.url() + "/" + interfaceName +
"/" + reference.version() +
"/" + reference.group();

Environment environment = applicationContext.getEnvironment();

key = environment.resolvePlaceholders(key);

return key;

}

这里会缓存dubbo service,但是key应该由所有reference属性组成才对

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.6-SNAPSHOT

Steps to reproduce this issue

Looks like there are some potential code issues in two files: a collection or map whose contents are never queried or accessed is useless.

https://github.com/apache/dubbo/blob/master/dubbo-rpc/dubbo-rpc-dubbo/src/main/java/org/apache/dubbo/rpc/protocol/dubbo/DubboProtocol.java#L111

https://github.com/apache/dubbo/blob/master/dubbo-common/src/main/java/org/apache/dubbo/common/compiler/support/JdkCompiler.java#L211

Expected Result

Remove them if it can be confirmed as unless
Issue 1:
Hi there,

Challenge http://freecodecamp.com/challenges/waypoint-target-html-elements-with-selectors-using-jquery has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

During "Run code" my browser (Mozilla 39.0) hung and asked to wait or stop running scenario. Meanwhile my page began continuously refreshing, after refresh challenge was marked as "Successfully passed" and moved to next challenge, and so on!!!

Then I quickly closed browser tab. Sorry I haven't screenshot but seems, for every challenge some script generating POST request with new URI and code "successfully passed".

Thanks for your good job and cool material. Wish you money richness ))))))

Wbr,

Nik

Issue 2:
Issue 1:
This feature was requested before #4988 but the bug was closed as WAI. I believe having popcnt part of standard library would benefit greatly many libraries.

For example there are two popcnt implementation in the golang tools:

https://github.com/golang/go/blob/dev.ssa/src/cmd/internal/ssa/regalloc.go#L39

https://github.com/golang/tools/blob/master/container/intsets/util.go#L22

It is also provided by several third party libraries

http://go-search.org/search?q=popcnt

http://go-search.org/search?q=popcount

These implementation are incomplete: the libraries provide assembly for one platform (amd64 in the best case), may not be not inlined (function call will dominate the benchmarks http://stackoverflow.com/questions/25471369/performance-discrepancy-in-compiled-vs-hand-written-assembly), are not well test, or are under a restrictive licence.

There is also a long standing bug #4816 which requests the POPCNT instruction on amd64. With POPCNT instruction population counting can be turned into a single instruction similarly to math.Sqrt (https://go-review.googlesource.com/#/c/8465/).

popcnt is very often used by chess, go (the game), checkers engines, all of them would benefit from a fast popcnt. #7357 provides another real word usage. Also a Go developer expressed his wish for popcnt (and other similar operations) to be provided by the standard library (https://go-review.googlesource.com/#/c/9761/1/src/cmd/internal/ssa/regalloc.go@41).

Issue 2:
by fuzxxl:

The Popcount (or hammington weight) is a function that determines the number of one-bits
in an integer. This function is useful for cryptographic applications and certain data
structures. As it is possible to implement this function efficiently with special
instructions (VCNT on ARM7 and POPCOUNT on amd64 since SSE 4.2), it would be nice to
have this function in the standard library.
Issue 1:
Type the entire first line, move to the second line, the text bar starts in front of the first word on the second line and caret is placed at the beginning of the first word.

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

Expected Behavior

Caret is placed after the last symbol.

Current Behavior

Caret is placed at the beginning of the last word.

Steps to Reproduce (for bugs)

It is reproducible in some specific environment: cordova + crosswalk project. So I'm sure that it is specific to chromium engine. And I'm going to create a PR to resolve this issue. So hopefully it will be enough.

Context

Your Environment

Tech
Version

Material-UI
0.20.0

React
16.2.0

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

Expected Behavior

When I use a Select Field, it should "feel" responsive and fast. Currently, before the menu with all select options pops up, we wait until the mouseclick is over. Instead, at least on non-touch devices we should consider starting the opening animation as soon as the click starts (for instance the mousedown event).

Current Behavior

As described in "Expected Behavior", currently we wait until the click event is over before the Select field opens the menu with all options. This makes it feel much less responsive and slow compared with say the native select field in Chrome, which opens instantly.

Steps to Reproduce

Check the Select page in the current documentation to try it out: https://material-ui.com/demos/selects/

Context

We use the select field in various places of our app, and we feel like the current behavior of the Select field makes our application feel sluggish and slow.

Your Environment

Tech
Version

Material-UI
Beta 20

React
15.6.2

browser
Google Chrome 61.0.3163.100
Issue 1:
Environment

Windows build number: 10.0.18362.0
Windows Terminal version: 0.5.2762.0

Steps to reproduce

Just keep typing.

Expected behavior

Keep the history.

Actual behavior

Lost the history. See the GIF file:

Issue 2:
Environment data

PS version: 5.1.17712.1000
PSReadline version: 2.0.0-beta2
os: 10.0.17712.1000 (WinBuild.160101.0800)
PS file version: 10.0.17712.1000 (WinBuild.160101.0800)

Steps to reproduce or exception report

Make sure that the prompt is at the bottom of the screen, then press enter any number of times. One should do.

PSReadline will emit ^[[1S (from ConsoleLib.cs, perhaps via ReadLine.cs).

Scrolling the viewport in this manner can:

destroy the user's scrollback buffer

force an expensive full-buffer repaint over a VT link (like ssh or pty)

cc @zadjii-msft
Issue 1:
This test is failing often on the gci-serial suite both on master and release-1.4.

Test Grid link

GCI is the default in v1.4 and so it is imperative to at-least triage the flakes soon.

cc @kubernetes/autoscaling

Issue 2:
Forked from #27194

@ichekrygin reported a weird cpu/usage_rate issue from heapster

I am running on v1.3.5 and this still seems to be an issue

curl http://localhost:8001/api/v1/proxy/namespaces/kube-system/services/heapster/api/v1/model/namespaces/production/pods/rain-377063289-tz0tq/metrics/cpu/usage_rate
{
"metrics": [
{
"timestamp": "2016-08-18T03:04:00Z",
"value": 18446744073709551449
},
{
"timestamp": "2016-08-18T03:05:00Z",
"value": 705
},
{
"timestamp": "2016-08-18T03:06:00Z",
"value": 18446744073709551028
},
{
"timestamp": "2016-08-18T03:07:00Z",
"value": 696
},
{
"timestamp": "2016-08-18T03:08:00Z",
"value": 18446744073709550587
},
{
"timestamp": "2016-08-18T03:09:00Z",
"value": 0
},

Node version:

kubelet --version
Kubernetes v1.3.5

@timstclair and I checked his node stats by collecting curl -s http://localhost:10255/stats/summary | jq '.node.cpu.usageCoreNanoSeconds'. usageCoreNanoSeconds is the accumulative cpu usage, and it is only stats used by heapster and HPA. This stat is mapping to heapster's cpu usage, and it is used to calculate cpu/usage_rate together with some timestamps. We noticed that the usageCoreNanoSeconds are sane, but corresponding heapster's cpu/usage_rate is insane as the above. I believe heapster ran into some overflow issue cAdvisor encountered before. Filed this one as a record to make sure the problem is addressed at the proper layer.

cc/ @mwielgus @fgrzadkowski
Issue 1:
The close button in the feedback dialog is wrongly positioned (try highlighting the dialog by clicking, then hovering the button).

Issue 2:
VSCode Version: 0.10.11

OS Version: Windows 10

Steps to Reproduce:

Create a new JavaScript snippet, for example:

{
"console.log": {
"prefix": "cl",
"body": [
"console.log('${1:arg}', ${1:arg});"
]
}
}

If you create a new file with the language set to JavaScript, enter cl and press tab, the snippet will expand.

If you create a new file with the language set to TypeScript, thecl snippet is not available.

The current solution is to re-implement the snippet in all of the JavaScript based languages but that means duplicating the snippet for JavaScript, JavaScript React, TypeScript and TypeScript React. This makes it difficult to build up a large body of JavaScript snippets.

Should JavaScript snippets automatically be made available to other JavaScript based languages?
Issue 1:
I had some error related to libexpat-1 so as mentioned in the https://github.com/JuliaLang/julia/blob/master/README.windows.md file I ran make win-extras and copied the files into usr/bin (overwriting existing files).

After that Julia crashes at startup, without error message beside the default windows popup.

Copying the dll's one by one, it seems libstdc++-6.dll is causing the problem.

Version 0.4.0-dev+4843 (2015-05-15 10:33 UTC)

Commit 888b6b4 (0 days old master)

x86_64-w64-mingw32

Issue 2:
It happened twice. After running Pkg.update() when I launch julia it crashes immediately.

On the second time I removed .julia/v0.4, rebuilt julia with make cleanall and reinstalled Pkg with Pkg.add("ImageView") and again the same thing. Launching a new julia session crashes right away.
Issue 1:
Challenge Waypoint: Add Borders Around your Elements http://www.freecodecamp.com/challenges/waypoint-add-borders-around-your-elements has an issue. User Agent is: code>Mozilla/5.0 Windows NT 6.3; WOW64; rv:41.0 Gecko/20100101 Firefox/41.0 /code>. Please describe how to reproduce this issue, and include links to screenshots if possible. My code: html link href http://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; } .smaller-image { width: 100px; } .thick-green-border { border-style: solid; border-color: green; border-width: 10px; } /style> h2 class red-text >CatPhotoApp /h2> img class thick-green-border smaller-image src https://bit.ly/fcc-relaxing-cat > p class red-text >Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff. /p> p class red-text >Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched. /p>

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-add-borders-around-your-elements has an issue. "Give your image a border width of 10px doesn't work.
Issue 1:
From @mlakmal on March 8, 2016 0:47

We are extensively using javascript auto format code feature in vs code to reduce js lint errors.

Ex: spaces after function and function name etc ...

after updating to v0.10.10 above formatting is not working any more and it reset all the formatted functions without spaces.

Can someone help or give information how to override this rule ?

var test = function() { }; //this is what new version format js code to.

but we are expecting and previously worked before like below.

var test = function () { };

Copied from original issue: microsoft/vscode#3796

Issue 2:
From @isidorn on January 26, 2016 15:50

js workspace, have salsa enabled

"editor.formatOnType": true

The format on type is too aggrressive and does not respect current indentiation. This is especially noticable when trying to create object literals

if salse is disabled this works nicely

Copied from original issue: microsoft/vscode#2377
Issue 1:
VSCode Version: 1.2

OS Version: win 7

Following is the link-

https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync

When i try to install extension via VS Code Quick Open (Ctrl+P) and paste ext install code-settings-sync and hit enter.

My extension doesnt come at first and selected

But when i write ext install visualcode-settings-sync it works.

Please correct the ext install name in the page there is some diflict

Issue 2:
From @Tyriar, related to #7105

I think this should be dealt with sooner rather than later, right now the installation advice given on the marketplace is wrong because of this. Consider https://marketplace.visualstudio.com/items?itemName=AdamCaviness.theme-monokai-dark-soda
Issue 1:
by smith.malcolm.james:

Calling syscall with float32 arguments passes the values correctly to the dll. But the
float32 return value is incorrect

What steps will reproduce the problem?

visual C++ 6.0 program:
#include "stdafx.h"
#include <stdio.h>
extern "C" __declspec(dllexport) float addfloat( float a, float b) ;
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
float addfloat ( float a, float b)
{
printf("In dll: %f %f\n", a,b);
return a+b;
}

Go program:
package main
import (
"fmt"
"math"
"syscall"
)
var mylib = syscall.NewLazyDLL("mylib.dll")
var addfloat = mylib.NewProc("addfloat")
func main() {

r1, r2, _ := addfloat.Call(uintptr(math.Float32bits(1.1)) , uintptr(math.Float32bits(2.2)))

fmt.Println("r1 and r2 as uintptr", r1, r2)
fmt.Println("3.3 as uintptr", uintptr(math.Float32bits(3.3)))

r1, r2, _ = addfloat.Call(uintptr(math.Float32bits(3.3)) , uintptr(math.Float32bits(4.4)))

fmt.Println("r1 and r2 as uintptr", r1, r2)
fmt.Println("7.7 as uintptr", uintptr(math.Float32bits(7.7)))
}

What is the expected output?
Expect r1 to hold IEEE 754 binary representation of 3.3 after 1st call and 7.7 after 2nd
call

What do you see instead?
r1 holds 26 after both 1st and 2nd calls

Sample output:
In dll: 1.100000 2.200000
r1 and r2 as uintptr 26 821312832
3.3 as uintptr 1079194419
In dll: 3.300000 4.400000
r1 and r2 as uintptr 26 821312832
7.7 as uintptr 1089889894

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

Which operating system are you using?
Windows XP

Which version are you using? (run 'go version')
go1

Please provide any additional information below.
Integer values are returned with no problem. The code in
src\pkg\runtime\sys_windows_386.s looks as if it is expecting return values to be in the
AX and DX registers, but float values are returned in the ST0 register.

Issue 2:
by arnaud.lb:

What does 'go version' print?

go version go1.3 darwin/amd64

What steps reproduce the problem?

1. go build -gcflags "-N -l" x.go # x.go attached
2. ./x
3. gdb -p <pid>
4. info goroutines

What happened?

(gdb) info goroutines
Python Exception <class 'gdb.error'> Attempt to extract a component of a value
that is not a (null).:
Error occurred in Python command: Attempt to extract a component of a value that is not
a (null).
(gdb)

Happens with the goroutines command too:

(gdb) goroutine 123 bt
Python Exception <class 'gdb.error'> Attempt to extract a component of a value
that is not a (null).:
Error occurred in Python command: Attempt to extract a component of a value that is not
a (null).
(gdb)

Please provide any additional information below.

gdb version 7.7.1

Attachments:

x.go (124 bytes)
Issue 1:
I'm having an issue with duplicate identifier errors. It appears to stem from having the same definitions listed in multiple places.

Let's say that I have a simple node server that utilizes the bluebird promise library. I have bluebird used in the main server code and in a library I wrote used by the server code. The structure looks like this:

|-- server.ts
|-- tsd.json
|-- typings
|-- lib
|-- mylib.ts
|-- tsd.json
|-- typings

Here is the code for and for mylib.ts:

/// <reference path="./typings/tsd.d.ts"/>
import Promise = require('bluebird')
class MyLib {
}
export = MyLib

and server.ts:

/// <reference path="./typings/tsd.d.ts"/>
import Promise = require('bluebird')
import MyLib = require('./lib/mylib')
class Server {
}
export = Server

As you can see, both server.ts and mylib.ts use the bluebird library. Since server.ts uses mylib.ts, it ends up importing bluebird twice, which results in errors. So when I run

tsc server.ts --module commonjs

I get

lib/typings/bluebird/bluebird.d.ts(705,9): error TS2300: Duplicate identifier 'concurrency'.

lib/typings/bluebird/bluebird.d.ts(708,9): error TS2300: Duplicate identifier 'spread'.

lib/typings/bluebird/bluebird.d.ts(711,9): error TS2300: Duplicate identifier 'suffix'.

typings/bluebird/bluebird.d.ts(705,9): error TS2300: Duplicate identifier 'concurrency'.

typings/bluebird/bluebird.d.ts(708,9): error TS2300: Duplicate identifier 'spread'.

typings/bluebird/bluebird.d.ts(711,9): error TS2300: Duplicate identifier 'suffix'.

Tools like npm seem to be able to handle this situation. The only way I can get typescript to handle it is by having a single tsd.json file and corresponding typings folder at the root of my project and having all the typescript definitions live there. Is that the generally accepted way to structure things?

Issue 2:
This input results in one "Duplicate identifier" error on the second declaration. it would be helpful to have all of them flagged. this also applies to duplicate implementations incase of functions.

interface I {
a
}

interface I {
a
}