WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
This compiles

fn func(){}

fn main(){
run(func);
run(func);
}

fn run<T>(f: T)
where T: Fn() + Copy{
f();
}

but this does not (playground)

fn func(){}

fn main(){
run(func);
run(func);
}

fn run<T>(f: T)
where T: Fn() + Clone{
f();
}

The only difference is the bounds on T. The Copy trait requires that the Clone trait is also implemented, so I believe both of these should compile.

Issue 2:
Ran into another bug today, unfortunately the compiler doesn’t tell me any more than this:

error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'no entry found for key', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:329

stack backtrace:
1: 0x10ecf3d4c - sys::backtrace::write::ha6579a44c93c5b13weu
2: 0x10ed17c8f - failure::on_fail::hf4fc7d467c56f479rdB
3: 0x10ec81bee - rt::unwind::begin_unwind_inner::h1798f590d33010eenVA
4: 0x10ec822fa - rt::unwind::begin_unwind_fmt::hccfdf16b93d72dd3TTA
5: 0x10ed1776e - rust_begin_unwind
6: 0x10ed63f54 - panicking::panic_fmt::ha0a5c3fa6a3e8d87TQv
7: 0x10ba43fbf - astconv::ast_ty_to_ty::unboxed_closure.30766
8: 0x10b9de9d6 - astconv::ast_ty_to_ty::h2710260cb7deea76ujt
9: 0x10ba6cfab - collect::ty_generics::hda890650500761b6lqv
10: 0x10ba50ee4 - collect::trait_def_of_item::ha27c345daf14c8a6i1u
11: 0x10ba4fd4f - collect::CollectTraitDefVisitor<'a, 'tcx>.visit..Visitor<'v>::visit_item::h84d53113dbbda134Ldu
12: 0x10ba4ff7f - collect::CollectTraitDefVisitor<'a, 'tcx>.visit..Visitor<'v>::visit_item::h84d53113dbbda134Ldu
13: 0x10ba8e82f - check_crate::unboxed_closure.31904
14: 0x10ba8c971 - check_crate::he5dc8ed100b8048eYMy
15: 0x10b483c4e - driver::phase_3_run_analysis_passes::h094520913aa775afVFa
16: 0x10b46ac36 - driver::compile_input::h385f7696c25beae6Bba
17: 0x10b529826 - run_compiler::he16877a561eaef1dR8b
18: 0x10b526b73 - thunk::F.Invoke<A, R>::invoke::h6774480594258817770
19: 0x10b5259d8 - rt::unwind::try::try_fn::h5509419198239539026
20: 0x10ed8d3a9 - rust_try_inner
21: 0x10ed8d396 - rust_try
22: 0x10b526016 - thunk::F.Invoke<A, R>::invoke::h1573488770652611368
23: 0x10ed03611 - sys::thread::thread_start::h4a3cbd9668f8d1c3K6w
24: 0x7fff88ea52fc - _pthread_body
25: 0x7fff88ea5279 - _pthread_body

I managed to reproduce the issue with this snippet: http://is.gd/yUKE00

This is the output from rustc --verbose --version:

rustc 1.0.0-nightly (4e4e8cff1 2015-01-24 22:14:14 +0000)
binary: rustc
commit-hash: 4e4e8cff1697ec79bcd0a1e45e63fb2f54a7ea28
commit-date: 2015-01-24 22:14:14 +0000
host: x86_64-apple-darwin
release: 1.0.0-nightly
Issue 1:
Electron Version: 2.0.6

Operating System (Platform and Version): Windows

Last known working Electron version: Unknown

Expected Behavior

Using the navigator.geolocation.getCurrentPosition method, it should return a success and a position

object which contains a coords object. When I access it using a browser, it works as expected, using the same code but on chrome (Version 68.0.3440.84) instead of the electron application it works as expected. It does not work on my Electron application.

Actual behavior

The error function gets called and I receive the following error: { Code: 2, Message: "Network location provider at 'https://www.googleapis.com/' : Returned error code 403" }. Code 2 meaning POSITION_UNAVAILABLE.

To Reproduce

The error can be reproduced at this repo: https://github.com/garthtee/the-weather.git. Commit 94e3e290ce2d7ae5f6ab0c7e171fd972bf2b4394.

Setup my repo:

# Install dependencies
$ npm install

# Serve with hot reload at localhost:8080
$ npm run dev-server

# Start the electron applcation
$ npm run dev-app

Issue 2:
Electron version: v1.6.6

Operating system: OSX

Expected behavior

Return the position object usually return by navigator.geolocation.getCurrentPosition

Actual behavior

Nothing is returned, yet this works on a regular chrome browser

How to reproduce

this code in my index.html file

function initMap() {
let location;
if("geolocation" in navigator) {
console.log('Location services available')
navigator.geolocation.getCurrentPosition(function(position) {
console.log(position)
location = {
lat: position.coords.latitude,
lng: position.coords.longitude
}
console.log(location)
let map = new google.maps.Map(document.getElementById('map'), {
center: location,
scrollwheel: false,
zoom: 7
});
});
}
else {
document.getElementById('status').innerHTML = "Location Services not available!"
return 0
}
}

I have forked the quick start and added geolocation code, same set up to run: https://github.com/Vikaton/electron-quick-start

Am I missing something? Thanks!
Issue 1:
Describe what you were doing when the bug occurred:

Moving in next commits in Profiler dev tool in Ranked chart mode

Please do not remove the text below this line

DevTools version: 4.2.1-3816ae7c3

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)

at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)

at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)

at el (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:68139)

at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:108547)

at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)

at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)

Component stack: in vl

in div

in div

in div

in wo

in Unknown

in n

in Unknown

in div

in div

in Li

in $e

in dn

in Ca

in Pc

Issue 2:
PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE

I got this error when I click 'Ranked'.

Please do not remove the text below this line

DevTools version: 4.0.4-3c6a219

Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11441

at Map.forEach ()

at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11387)

at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11920)

at _i (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:277123)

at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)

at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:98280)

at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)

at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363

Component stack: in _i

in div

in div

in div

in Or

in Unknown

in n

in Unknown

in div

in div

in Ha

in le

in ve

in ko

in Ul
Issue 1:
How to fix the bug right click in navbar (disapear) in firefox ?

Replace this code in line 142 in file dropdown.js:

Old code:

.on('click.bs.dropdown.data-api', clearMenus)

New code:

.on('click.bs.dropdown.data-api', function(e) { if (e.button ===2) clearMenus }) //GA: Fix bug right click in FF

Issue 2:
I have some kind of problem with twitter-bootstrap and firefox. I have a dropdown menu. If I click on the menu and right click on its submenu, firefox closes the dropdown. Thats how user cannot open the sub menus in new tab.
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.7.7

Operating System version: MacOS

Java version: 1.8

Codes

public URL toUrl() {
String address = this.getAddress();
if (StringUtils.isEmpty(address)) {
return null;
}
Map<String, String> map = new HashMap<String, String>();
appendParameters(map, this);
if (!StringUtils.isEmpty(address)) {
URL url = URL.valueOf(address);
map.put("metadata", url.getProtocol());
return new URL("metadata", url.getUsername(), url.getPassword(), url.getHost(),
url.getPort(), url.getPath(), map);
}
throw new IllegalArgumentException("The address of metadata report is invalid.");
}

原因：创建元数据中心地址没有保留源address上的namespace参数

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: 3.5.2

Operating System version: linux

Java version:java 8

Steps to reproduce this issue

dubbo管理后台，先选中一个服务提供者，选择半权

在权重调节的标签下可以看到上一步设置的半权

点击编辑，设定权重值，保存后，只剩下提供者的ip，端口号丢失

Expected Result

正常调节权重

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!
Issue 1:
The standard OSX mouse pointer for editing text is a very similar color to the editor's background, sometimes making it really hard to see where the pointer is. Maybe allowing default Atom themed mouse pointer sets would be a good idea.

Atom Version: 0.115.0

OS Version: OSX 10.9.4

Issue 2:
The I-bar cursor is currently always black in Atom. This makes it very hard to track when using a theme with a dark background. Sublime inverts this cursor when you're using a dark theme... and it's quite wonderful. I'd love if Atom did this too.

I don't think you can take a screenshot of the cursor, so here's some crazy photos. Top is Atom, bottom is Sublime. Both are using a dark solarized theme.
Issue 1:
It appears as though the user-agent header that Symfony2 BrowserKit sets is incorrect. I've been bashing my head against Behat for a few hours trying to test against a site running an IIS6 server (fails with IIS7 as well).

The server responds with:

HTTP/1.1 400 Bad Request (Invalid Header Name) and returns no body.

I did a tshark to observe the headers:

Hypertext Transfer Protocol

GET / HTTP/1.1\r\n

[Expert Info (Chat/Sequence): GET / HTTP/1.1\r\n]

[Message: GET / HTTP/1.1\r\n]

[Severity level: Chat]

[Group: Sequence]

Request Method: GET

Request URI: /

Request Version: HTTP/1.1

User-Agent: Guzzle/3.3.0 curl/7.24.0 PHP/5.3.15\r\n

User-agent: Symfony2 BrowserKit\r\n

Host: ******\r\n

\r\n

I do not believe that the "User-agent" header declaration is valid. I believe that it should be User-Agent, instead (capital "A"). I'm not sure if multiple User-Agent fields are allowed, either. Thoughts?

Issue 2:
Current state of collections mapping is not flexible and make a lot of troubles.

In SF 2.0 if user sets by_reference property to false, setter for collection was called, e.g. setItems().

Now (SF 2.1) if object have method addItem(), this method is called.

Lets take example with ordered items, e.g. gallery images.

User changes they order in UI and script have to reorder them in DB. To do so setImages() method should be used, but class contains also addImage() method, which is used instead and breaks the logic.

There should be an option to disable individual setter usage, when by_reference is set to false.
Issue 1:
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.): No

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.): kubeadm defaults

Is this a BUG REPORT or FEATURE REQUEST? (choose one):

BUG REPORT

Kubernetes version (use kubectl version):

v1.4.3

Environment:

Cloud provider or hardware configuration: N/A

OS (e.g. from /etc/os-release): N/A

Kernel (e.g. uname -a): N/A

Install tools: kubeadm

Others: N/A

What happened:

Using kubeadm init --config /path/to/config.yml appears to block default values from being set. I first noticed it where a pre-flight check of the Servicer CIDR was presenting itself as an empty string although I had not set it through the command line flag nor in the config file. I also noticed that kubelet requests to the API server were being sent to port 0 as the API server default port had not been set.

What you expected to happen:

A config file should only override defaults, not make it so that no defaults are set.

How to reproduce it (as minimally and precisely as possible):

Use kubeadm init --config /path/to/config.yml with an appropriate configuration file that does not set the service CIDR, for example, and note that pre-flight checks will fail due to the default values not being set.

Anything else do we need to know:

A temporary workaround is to explicitly set all values to their defaults or the value you desire.

Issue 2:
Compilation error in pkg/util/mount/mount_unsupported.go. GetDeviceNameFromMount declared twice. #30724 and #30666 are duplicates and one of them need to be reverted. (build is disabled for linux, that's why both of them got in)
Issue 1:
Bug report

Describe the bug

Sometimes when I have links they don't want to load in my dev environment. However when it's on the cloud it works fine. I'm not sure why.

To Reproduce

Don't really know what steps I can do. Sometime's it works, sometime's it doesn't. If I refresh the page in a new tab, it will work as expected.

<Link href="/config/link"><a>Text Here</a></Link>

Expected behavior

For it to go to it's respected link.

System information

OS: macOS

Browser: safari

Version of Next.js: "next": "^7.0.2",

Issue 2:
Bug report

Describe the bug

Either Link or Router stops working when doing client side routing. It seems that HMR may be interrupting the transition between pages. It occurs most frequently if the app is left idle or in the background for a bit of time (although I have experienced it happening whilst clicking around without it being idle)

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Clone this repo (https://github.com/malimccalla/next-routing-issue)

Install dependencies npm install

Run the server npm run dev

Visit all pages by clicking the links

Go make a coffee (leave page idle for ~2mins)

Attempt to visit all pages by clicking the links

Certain links do not navigate to their respective page 😔

Expected behavior

I expect to be able to visit all the individual pages

Actual behaviour

Page does not navigate to certain routes. Refreshing the page will fix it

Screenshots

Both the "about" and "contact" links do not work (notice the HMR log on the first attempt of each route). After a page refresh they work as expected. If I leave the app idle for roughly 2mins again it will start over with the issue

System information

mac Mojave 10.14

Chrome

next.js v7.0.2

Additional context

With the console open you can see that the Router event routeChangeStart fires but routeChangeComplete never does.
Issue 1:
Let's say I ran

npx playwright test --grep=@test

Is there a way that I can programatically get names of all test files that are about to run, in e.g. globalSetup? Right now there's a way to do this with CLI

npx playwright test --grep=@test --list

But can I get this list in code, like from env variable or something?

Issue 2:
Since Playwright 1.19, the list of cases is now generated before the Global Setup (see #12018 for more details).

It would be great if we could expose root Suite to the global setup - containing exactly the tests to be run.

This could be beneficial for use cases where we would like to run certain pre-conditions during global setup depending on the list of cases to be executed. For example: authentication setup being carried out only when cases that require it are slotted to be executed, otherwise do not authenticate.
Issue 1:
by harmen@typetypetype.net:

- What does 'go version' print?

go version devel +b3abbfe35b6f Thu Sep 04 23:14:21 2014 -0400 linux/amd64

- What steps reproduce the problem?

This (correctly) doesn't compile:

_ = map[string]string{
"aap": "noot",
"aap": "mies",
}

With a 'duplicate key "aap" in map literal' error.

This does, though:

type t struct {
b string
}

_ = map[t]string{
t{
b: "1.2.3.4",
}: "probe1",
t{
b: "1.2.3.5",
}: "client1",
t{
b: "1.2.3.5", // Duplicate!
}: "client1",
}

Both are on http://play.golang.org/p/clJ4G8CbcQ

- What should have happened instead?

Would be great if the fancy key version also doesn't compile.

Issue 2:
by peter.dain@btinternet.com:

What steps will reproduce the problem?

When looking up description of for example bytes.Index in bytes package, clicking on the
godoc HTML link takes you to the tag for index of the bytes package rather than the
expected method description.

Looking at HTML source for page I see duplicate use of:

h2 id="index"

in page for package.

Windows Browser used was IE9 (9.0.8)

What is the expected output?

Expect to see description of
func Index(s, sep []byte) int

What do you see instead?

Browser went to Package Index listing

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

n/a

Which operating system are you using?

Windows 7

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

go version go1.0.2 (same behaviour on godoc for tip.golang.org)

Please provide any additional information below.

When looking at package to find strstr type function it wasn't immediately obvious to me
bytes.Index was the one, I wonder if changing the parameter name from sep to something
else (seq?) might help
Issue 1:
❓ Questions and Help

Under PyTorch's no gradient mode, any tensor returned by operations shouldn't create a new or extend an existing computation graph (i.e. requires_grad should be false and grad_fn should be None). However, when using Tensor.expand this is clearly not the case. Consider the following code:

a = torch.tensor(1., requires_grad=True)
b = a.clone()
with th.no_grad():
c = b.expand((1,))

c.requires_grad # True

Although variable c is not attached to the computation graph that contains a and b, c has its requires_grad property set to True which will create a new computation graph. Is this the expected behavior or is this a bug?

Issue 2:
>>> x = torch.randn(3, requires_grad=True)
>>> with torch.no_grad():
... print(x[1])
...
tensor(-0.0967, requires_grad=True)
Issue 1:
Node.js can't autocomplete after update 0.10.10, and i have the typings...

If i try to user a new WS for test, __dirname can't underline to show me download it, and just reference works

Issue 2:
I found this going through the /docs/runtimes/Node.js walkthrough after seeing a doc feedback verbatim saying that typings weren't being picked up.

After creating an express application, trying to get IntelliSense for node and express types fails.

If I roll-back to 0.10.8, the typings are picked up correctly.

The generated express app does not include a jsconfig.json file.
Issue 1:
Bug report

Bug summary

There is an inconsistency between the matplotlib's documentation and actual outcome of the bar plot function. The documentation says that left argument in the bar plot function indicate

the x coordinates of the left sides of the bars

In fact, the left parameter indicate the center of the bar.

Code for reproduction

import matplotlib.pyplot as plt
import numpy as np
N = 3
width = 1.0
stat = [2.4, 3.2, 1.6]
ind = np.arange(1, 6, 2, dtype=np.float32)

fig, ax = plt.subplots()
ax.bar(ind, stat, width )
ax.set_xticks(ind+width/2.0)
plt.show()

Actual outcome and expected outcome

The x axis ticks should be in the center of bar if the documentation is right. In fact, the ticks are in the right side of each bar. See figure below

Matplotlib version

Matplotlib version: 2.0.0

Python version: 2.7.13 and 3.5.2

Platform: Linux (CentOS 7) and Windows

How did you install Matplotlib and Python: Anaconda

Issue 2:
Bug report

Bug summary

Using bar, the first input argument is not used for the left edge of the bar, but rather the center, as if the kwarg align='center' was used. However, the desired behavior is obtained in both cases when using align = 'center' and align = 'edge'. Just when align is not specified, it should be 'edge' aligned which it is not.

Code for reproduction

import matplotlib.pyplot as plt
plt.bar([1], [1])
plt.show()

Actual outcome

Expected outcome

In matplotlib 1.5.3 I got the expected behavior.

Matplotlib version

matplotlib 2.0.0

python 3.6.0

both installed from the Arch Linux repository.
Issue 1:
My code is following and the gif animation is slow, can yo u correct me the usage of code in order to showing gif normally? you can email me the detail:1933772028@qq.com

RequestOptions o = new RequestOptions();

Glide.with(h.imageView3.getContext())

.load("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1508322038285&di=e0c474540228565f1271de3b4b2c56e7&imgtype=0&src=http%3A%2F%2Fwww.lia-edu.com%2Fupload%2Fimage%2F20170717%2F20170717151619_8233.gif").apply(o.diskCacheStrategy(DiskCacheStrategy.RESOURCE)).into(h.imageView3);

Issue 2:
Hello

If you have url and try to load it multiple times with a different view size, image will not be loaded from cache, instead from network again and again.

My guess would be glide uses "size" as part of the key, which leads to a new key every time we have different view with the same url.

Here is example app:

https://github.com/vovkab/glide-example
Issue 1:
Full browser height on MBA 13 inch:

Can't see ~4 components at the end.

Issue 2:
When you display some item that has a lot of subitems, the nav grows so much that it doesn't fit on some resolutions, and some of the items aren't shown.

http://oi43.tinypic.com/2ivjtyv.jpg

On that screenshot, nav items are shown up to badges, missing the remaining. I've tested it on latest Firefox and Chrome at 1366x768.
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-give-your-javascript-slot-machine-some-stylish-images has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

After adding:

$($('.slot')[0]).html('<img src= "' + images[slotOne - 1] + '">');
$($('.slot')[1]).html('<img src= "' + images[slotTwo - 1] + '">');
$($('.slot')[2]).html('<img src= "' + images[slotThree - 1] + '">');

only the final 3 tests. pass. The first test fails even though I have used the provided code three times.

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-give-your-javascript-slot-machine-some-stylish-images has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

It is considering spaces to validate code in:

$($('.slot')[0]).html('<img src = "' + images[slotOne-1] + '">');
$($('.slot')[1]).html('<img src = "' + images[slotTwo-1] + '">');
$($('.slot')[2]).html('<img src = "' + images[slotThree-1] + '">');

is validated, but the code below with spaces in slotOne - 1 for example do not validate

$($('.slot')[0]).html('<img src = "' + images[slotOne - 1] + '">');
$($('.slot')[1]).html('<img src = "' + images[slotTwo - 1] + '">');
$($('.slot')[2]).html('<img src = "' + images[slotThree - 1] + '">');