WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Issue Type: Bug Report

Ansible Version: 1.8.2

Environment: RHEL 6.5

Summary:

For some reason the "copy" module bombs out if lookup('file', '...') is referenced in group_vars, even though the "copy" task itself does not reference that variable, and the file does exist relative to the role directory.

Steps to reproduce:

Please see this gist: https://gist.github.com/tgolly/930dce54307139f9c758

You'll see that "authorized_key" tasks successfully references the "listofkeys" variable and deploys the file, then the "file" and "stat" tasks both work without error, then "copy" bombs out, even though it doesn't reference the "listofkeys" variable from group_vars/all.

Expected Results:

The file is copied without error.

Actual Results:

TASK: [myrole | copy src=/etc/hosts dest=/tmp/foo] ****************************
fatal: [localhost] => could not locate file in lookup: public_keys/somekey

Issue 2:
Issue Type:

Bug

Ansible Version:

ansible 1.8.2

Environment:

debian 7 / gentoo

Summary:

The copy and template modules throws an error with a wrong file.

In ansible 1.7.x everything is fine and ansible copies the jail.conf.

In ansible 1.8.2 i cannot copy any file while i have a lookup defined in group vars. Even if the defined lookup is not used in any playbook

Steps To Reproduce:

group_vars/all

ssh_users:

name: evo

key: "{{ lookup('file', 'evo.pub') }}"

tasks/main.yml

name: copy fail2ban config

copy: src=jail.conf dest=/etc/fail2ban/jail.conf

Expected Results:

ansible 1.7.x

TASK: [common-j | copy fail2ban config] ************************************

changed: [evosrv.test]

Actual Results:

ansible 1.8.2

TASK: [common-j | copy fail2ban config] ************************************

fatal: [evosrv.test] => could not locate file in lookup: evo.pub
Issue 1:
---------- Forwarded message ----------

From: Matt Farina matt.farina@gmail.com

Date: Fri, Aug 21, 2015 at 3:08 PM

Subject: Re: [golang-dev] go/build and vendor imports

To: golang-dev golang-dev@googlegroups.com

Cc: matt.farina@gmail.com

The Import method on Context (available as go/build.Import() under a default confit) knows about the goroot and gopath when trying to resolve packages. See http://golang.org/src/go/build/build.go?s=15254:15344#L449

If I have a package in my GOPATH go/build.Import works for it. If the package is in the vendor/ directory it doesn't and I wasn't sure the best way to make a vendor/ directory work with go/build. Any pointers would be appreciated.

On Friday, August 21, 2015 at 2:45:12 PM UTC-4, rsc wrote:

On Fri, Aug 21, 2015 at 1:40 PM, Matt Farina matt....@gmail.com wrote:

I noticed the go/build package doesn't work with vendor/ imports. The vendor code was kept in in the go cmd codebase which, I don't think, is available for packages.

Is this a bug? Should the go/build package be able to work with vendor/ imports?

go/build does not know about source code layout, directories, and the like. It just reports what is contained in a set of specified files. In particular, it does not resolve imports. It doesn't tell you whether an imported package exists, for example.

Was there a particular API in go/build that you think should change behavior for vendored imports?

Thanks.

Russ

You received this message because you are subscribed to the Google Groups "golang-dev" group.

To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Issue 2:
Hi,

Any chance of goimports being taught about GO15VENDOREXPERIMENT? With go 1.5 it rewrites import paths (to $CWD/vendor/path/to/3rd/party/pkg) even when GO15VENDOREXPERIMENT is set.

Thanks

Vlad
Issue 1:
❓ Questions and Help

Please note that this issue tracker is not a help form and this issue will be closed.

We have a set of listed resources available on the website. Our primary means of support is our discussion forum:

Discussion Forum

After follow the instruction building caffe2, I see the "Caffe2 built successfully".

However, when import using

from caffe2.python import workspace

It shows

WARNING:root:This caffe2 python run does not have GPU support. Will run in CPU only mode. CRITICAL:root:Cannot load caffe2.python. Error: DLL load failed: The specified procedure could not be found.

Collecting environment information...

PyTorch version: 1.1.0

Is debug build: No

CUDA used to build PyTorch: 9.0

OS: Microsoft Windows 10 Home

GCC version: (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 8.1.0

CMake version: Could not collect

Python version: 3.6

Is CUDA available: Yes

CUDA runtime version: Could not collect

GPU models and configuration: Could not collect

Nvidia driver version: Could not collect

cuDNN version: Could not collect

Versions of relevant libraries:

[pip3] numpy==1.16.4

[pip3] torch==1.1.0

[pip3] torchvision==0.3.0

[conda] Could not collect

Issue 2:
❓ Questions and Help

I'm installing into a conda env. it is on Windows 10 . No GPU on machine.

I am following instructions from https://caffe2.ai/docs/getting-started.html?platform=windows&configuration=compile

And the build is success.

Then I copy C:\Users\v-hadong\pytorch\build\caffe2\python\caffe2_pybind11_state.pyd to Python’s DLL folder C:\Users\v-hadong\AppData\Local\Continuum\anaconda2\envs\caffe2\DLLs\

and then the error is happened as the following picture:
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/10468/

Failed: [k8s.io] Kubectl client [k8s.io] Update Demo should scale a replication controller [Conformance] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:223
Expected error:
<*errors.errorString | 0xc820925810>: {
s: "Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.154.232.230 --kubeconfig=/workspace/.kube/config get pods update-demo-nautilus-koi1f -o template --template={{if (exists . \"status\" \"containerStatuses\")}}{{range .status.containerStatuses}}{{if eq .name \"update-demo\"}}{{.image}}{{end}}{{end}}{{end}} --namespace=e2e-tests-kubectl-1ykr6] [] <nil> failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n [] <nil> 0xc8210167c0 exit status 1 <nil> true [0xc82016d2d8 0xc82016d2f0 0xc82016d308] [0xc82016d2d8 0xc82016d2f0 0xc82016d308] [0xc82016d2e8 0xc82016d300] [0xa9d320 0xa9d320] 0xc820ff14a0}:\nCommand stdout:\n\nstderr:\nfailed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n\nerror:\nexit status 1\n",
}
Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.154.232.230 --kubeconfig=/workspace/.kube/config get pods update-demo-nautilus-koi1f -o template --template={{if (exists . "status" "containerStatuses")}}{{range .status.containerStatuses}}{{if eq .name "update-demo"}}{{.image}}{{end}}{{end}}{{end}} --namespace=e2e-tests-kubectl-1ykr6] [] <nil> failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
[] <nil> 0xc8210167c0 exit status 1 <nil> true [0xc82016d2d8 0xc82016d2f0 0xc82016d308] [0xc82016d2d8 0xc82016d2f0 0xc82016d308] [0xc82016d2e8 0xc82016d300] [0xa9d320 0xa9d320] 0xc820ff14a0}:
Command stdout:

stderr:
failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

error:
exit status 1

not to have occurred

Issue 2:
error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. appears in a lot of flakes. Speculation is that the metadata server is slow to respond.

So far, these are the issues where this message has popped up:

#28569

#28565

#28523

#28507

#28493

#28439

#28437

#28429

#28426

#28420

#28293

#27976

#27839

#27715

#27156

#26715

#26490

Sample failed run: https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/10664

@cjcullen since this is dealing with auth, I'm initially assigning to you. Feel free to reassign to someone more appropriate.
Issue 1:
I have code that works fine without import maps:

nickolay@frontier:~/workspace/Bryntum/siesta-monorepo/siesta$ deno run -A --unstable --quiet tests/hook/hook.t.js
Launching test file: tests/hook/hook.t.js in Deno 1.9.2

PASS tests/hook/hook.t.js

Test files : 1 passed, 0 failed, 1 total
Time : 33ms

Adding a dummy import map breaks it:

nickolay@frontier:~/workspace/Bryntum/siesta-monorepo/siesta$ deno run -A --unstable --quiet --import-map import_map.json tests/hook/hook.t.js
error: Unmapped bare specifier "path"

How is this possible? It seems adding a source map changes the set of files being imported somehow. I do have the bare "path" but only in files that are used for Node. And again, the code works fine w/o import maps.

Import map content for the full picture:

{
"imports": {
"siesta/": "./"
}
}

To reproduce:

clone the git@github.com:bryntum/siesta.git, specific revision is: 6e7e2576e0afcdd3f4f6e1966923ea46c29896eb

npm i , npx tsc

cd examples/deno

Launch w/o import maps: deno run -A --unstable --quiet --no-check tests/index.ts

Should see something like:

Launching test suite project: Awesome Deno project test suite in Deno 1.9.2

FAIL module/zoomer.t.js
├─✘ Using `zoomer` should work
│ └─✘ equal(received, expected)
│
│ 2 | import { zoomer } from "../../src/module.js";
│ 3 | it('Using `zoomer` should work', async (t) => {
│ ➤ 4 | t.equal(zoomer('Myers Courtney', 35), { name: 'Courtney Myers', age: 35 });
│ | ^
│ 5 | });
│
│ Received │ │ Expected
│ │ │
│ { │ │ {
│ "age": 35, │ │ "age": 35,
│ "name": "Myers Courtney" │ │ "name": "Courtney Myers"
│ } │ │ }
│

Launch with import maps: deno run -A --unstable --quiet --no-check --import-map import_map.json tests/index.ts

The output is:

error: Unmapped bare specifier "path"

Issue 2:
if (never) {
await import('whatever')
}

I get the unmapped bare specifier error. But this should not cause any error or else it will be impossible to write code which supports several runtimes.

Basically I want to check if it's running in Node.js and then to load a Node.js specific module ONLY in that case. When running in Deno or the browser then I don't need to do this, hence Deno should not complain about the code in the block which is never executed.
Issue 1:
Please scroll to bold text below (closer to the bottom of the page):

Challenge Make Dead Links using the Hash Symbol has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36.

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

My code:

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

h2 {
font-family: Lobster, Monospace;
}

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

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

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

<h2 class="red-text">CatPhotoApp</h2>

**I try and click on this section of text to edit this document, but it on't let me click on it. It seems like there's some kind of restriction or some. Because for example, I got to click on the "freecatphotoapp.com" link text area, but it only clicks before the"<p>" text area. I really hope this makes sense and you guys are able to fix it. Thank you!**
<p>Click here for <a href="http://www.freecatphotoapp.com">cat photos</a>.</p>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

<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:
In all the exercises, we the users are forced to press the enter key before writing any code.

Update:

We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.

The fix can be confirmed on the beta website.

The workaround currently on production website is:

Press the Enter key on the challenge editor and then proceed with the challenge.

Apologies for the inconvenience meanwhile.

Reach us in the chat room if you need any assistance.
Issue 1:
I cloned the caravel repository. I installed npm as prescribed in Contributing.md. Then after the required steps, I ran npm run dev to run the local caravel installation.

I see an error log in the console

ERROR in ./javascripts/caravel-select2.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../node_modules/jquery-ui/themes/base/jquery-ui.css in /Users/shashank/Documents/repositories/caravel/caravel/assets/javascripts
@ ./javascripts/caravel-select2.js 5:0-62

Issue 2:
I ran into the following issue when trying to set up the assets in my development environment:

ERROR in ./javascripts/caravel-select2.js Module not found: Error: Cannot resolve 'file' or 'directory' ../node_modules/jquery-ui/themes/base/jquery-ui.css in /Users/{path}/caravel/caravel/assets/javascripts @ ./javascripts/caravel-select2.js 5:0-62

Here were the previous commands that led up to the error:

cd /caravel/assets

npm install

npm run dev

Looking at the ../node_modules/jquery-ui/themes/base directory, I don't see any jquery-ui.css file present.

Running Caravel 0.10.0 on OS X 10.11.5 with python 2.7.
Issue 1:
Summary of the new feature/enhancement

Ability to stay within the current zone when going full-screen. For example: if a browser window in zone 1 wants to go full-screen when 'F11' is pressed, then, instead of covering the entire monitor display, it would be ideal in some cases to only treat that zone the browser is in as the area that the browser should cover when going full screen. The browser will go full-screen but only within that zone. In a sense, that zone will be the complete display area for the browser.

Proposed technical implementation details (optional)

An optional setting which allows the above described behavior to be turned on or off.

Issue 2:
Summary of the new feature/enhancement

It would be nice if it would be possible to split a screen to allow for multiple "full screen" windows.

This would enable for example to have You Tube in full screen mode without the rest of the UI together with for example the email program below for people using a PIVOTed Display.

This would allow to have a video playing like this:

Instead of having a lot of dead space from the UI>
Issue 1:
auto-deref has been added but I'm still interested in a more uniform behavior of custom pointers (meaning the ones that exist by trait implementation) and native ones (like the dying ~T).

An example situation:

use std::rc::Rc;

struct Bar { x: int }

fn foo(p: &int) {
println!("{}", p);
}

fn baz(p: &Bar) {
println!("{}", p.x);
}

fn main() {
let pi = box 10;
let pb = Rc::new(Bar {x: 3});
foo(pi);
// this still doesn't auto borrow:
//baz(pb);
// although this works:
println!("{}", pb.x);
}

I've looked in #7141, #12491, #13542, #5527, #12825, #12610 and RFC 59 but could not grasp whether any would be addressing this or whether it's desirable, sorry if it's a duplicate.

Issue 2:
The documentation for Clone states that the first implementor is Wrapping:

impl<T> Clone for Wrapping<T> where T:_Clone + Clone_

Range is even more interesting:

impl<Idx> Clone for Range<Idx> where Idx:_Clone + Clone + Clone_

I would think that these should be documented as impl<T> Clone for Wrapping<T> where T: Clone and impl<Idx> Clone for Range<Idx> where Idx: Clone, respectively.
Issue 1:
I can't download glide from jcenter, and there is no glide version 4 in jcenter.

Follow this link https://jcenter.bintray.com/com/github/bumptech/glide/glide/

Issue 2:
I'm using Glide 3.7.0 with OkHttp3 integration library to display images in RecyclerView.

Authentication is needed to access the images which is done inside OkHttpClient authenticator.

But sometime i need to refresh the token first when the token expired . In this case there are many refresh token request from glide to server. What i'm using now by comparing lastRefreshTime against current time refreshToken function.

Something like below:

fun refreshToken(): AccessToken? {
synchronized(lockObject) {
if (System.currentTimeMillis() - lastSyncTime > SYNC_INTERVAL) {
val oldToken = activeToken.get()
accountManager.invalidateAuthToken(MyAccountAuthenticator.ACCOUNT_TYPE, oldToken)
}
return getToken() //blocking method
}
}

Do you have some kind of best practices to avoid multiple refresh token calling?

class MyGlideSetup : GlideModule {
override fun applyOptions(context: Context?, builder: GlideBuilder?) {  }
override fun registerComponents(context: Context?, glide: Glide?) {
if (context == null) {
return
}
val httpClientBuilder = OkHttpClient.Builder()
httpClientBuilder.authenticator {
route, response ->
val originalRequest = response.request()
val newRequest = originalRequest.newBuilder()
val credentialManager = MyApplication.getCredentialManager(context)
val accessToken: AccessToken?
if (originalRequest.header("Authorization") == null) {
accessToken = credentialManager.getToken()
accessToken?.let {
newRequest.header("Authorization", "${it.token_type} ${it.access_token}")
}
} else {
accessToken = credentialManager.refreshToken()
}
accessToken?.let {
newRequest.header("Authorization", "${it.token_type} ${it.access_token}")
}
newRequest.build()
}
glide?.register(GlideUrl::class.java, InputStream::class.java,
OkHttpUrlLoader.Factory(httpClientBuilder.build()))
}
}
Issue 1:
Not sure if this is somehow Cargo doing this or if it's rustc, but when I do "cargo new --bin myproject" then "cargo test", it tells me "warning: function is never used: main, #[warn(dead_code)] on by default"

Issue 2:
$ echo 'fn main(){}' | rustc --test -
<anon>:1:1: 1:12 warning: code is never used: `main`, #[warn(dead_code)] on by default
<anon>:1 fn main(){}
^~~~~~~~~~~

I have put #[cfg(not(test))] on main a couple of times (though perhaps #[allow(dead_code)] would be better) and I have just observed another person doing it. Would it be reasonable to make the dead code lint permit main to be unused?
Issue 1:
Given we track filter cache use, is there anyway we can provide stats around what filter caches are in use and what that use looks like?

Issue 2:
Would be nice to provide something similar to fielddata memory breakdown in the node stats so we can see the top consumers of the filter cache (eg. list the type of filter in the cache, and for each type, list the field names and count + size info) without having to log and review queries or examine a heap dump.
Issue 1:
Hello julia community!

I am facing big problems with Julia packages: Pkg.init() and Pkg.update() are not working. I have scanned the internet regarding the message, but nothing seems to be the right solution. I have already had a long odyssey ...

This seems to be an frequent trap. So it might be advantageous to be more clear in the installation chapter of julia.

Pkg.init()

displays the following :

INFO: Initializing package repository /home/user/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ERROR, Class:Net, SSL error: error:140E0114:SSL routines:SSL_shutdown:uninitialized)
[inlined code] from libgit2/error.jl:98
in clone at libgit2/repository.jl:189
in __clone#364__ at libgit2.jl:310
in anonymous at pkg/dir.jl:49
in cd at file.jl:47
in init at pkg/dir.jl:47
in init at pkg.jl:22
in eval at ./boot.jl:264

by the way:

sudo git pull
sudo make

works fine! The only thing is, that I cannot install packages in Julia. My computer is behind the proxy. The proxy settings for git seems to be correct

System environment

Linux Mint 17.02 (based on Ubuntu 14.04)

newest julia from github

~/julia $ sudo ./julia

_

_ _ ()_ | A fresh approach to technical computing

() | () () | Documentation: http://docs.julialang.org

_ _ | | __ _ | Type "?help" for help.

| | | | | | |/ ` | |

| | || | | | (| | | Version 0.5.0-dev+1265 (2015-11-13 08:40 UTC)

/ |_'|||__'| | Commit f045831 (0 days old master)

|__/ | x86_64-linux-gnu

Issue 2:
I'm seeing the following issue when trying to use Pkg.init() on a fresh build of master:

$ ./julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.5.0-dev+640 (2015-10-06 18:24 UTC)
_/ |\__'_|_|_|\__'_| | Commit 128f8c6 (0 days old master)
|__/ | x86_64-linux-gnu

julia> Pkg.init()
INFO: Initializing package repository /home/lkuper/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
ERROR: GitError(Code:ERROR, Class:Net, SSL error: error:140E0114:SSL routines:SSL_shutdown:uninitialized)
[inlined code] from libgit2/error.jl:96
in clone at libgit2/repository.jl:185
in clone at libgit2.jl:303
in anonymous at pkg/dir.jl:49
in cd at file.jl:22
in init at pkg/dir.jl:47
in init at pkg.jl:23

I started seeing this after pulling and rebuilding to fix the libgit2 SSL certificate issue in #13399. I'm now seeing this error instead of the certificate error. There's more discussion on that bug.

This is on Ubuntu 14.04, and I have libssl-dev installed. I've already tried make -C deps distclean-libgit2. I even did a make distcleanall to make extra sure.

Before I deleted my ~/.julia/v0.5 directory (because I hoped that doing that and running Pkg.init() might solve the problem), I was seeing a similar error message from Pkg.update().

I'm also having the same problem on CentOS with openssl-devel installed.
Issue 1:
This issue is to track the progress on fixing the "LLVM ERROR: inconsistency in registered CommandLine options" error seen in the asan CI job.

LINK tmp/test-asan/asan/usr/lib/libjulia-codegen-debug.so.1
LINK tmp/test-asan/asan/usr/lib/libjulia-codegen-debug.so
make[1]: Leaving directory '/cache/build/amdci8-0/julialang/julia-master/tmp/test-asan/asan/src'
make[1]: Entering directory '/cache/build/amdci8-0/julialang/julia-master/tmp/test-asan/asan'
JULIA tmp/test-asan/asan/usr/lib/julia/corecompiler.ji
: CommandLine Error: Option 'help-list' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
Aborted
make[1]: *** [/cache/build/amdci8-0/julialang/julia-master/sysimage.mk:61: /cache/build/amdci8-0/julialang/julia-master/tmp/test-asan/asan/usr/lib/julia/corecompiler.ji] Error 134
make[1]: Leaving directory '/cache/build/amdci8-0/julialang/julia-master/tmp/test-asan/asan'
make: *** [/cache/build/amdci8-0/julialang/julia-master/Makefile:82: julia-sysimg-ji] Error 2
make: Leaving directory '/cache/build/amdci8-0/julialang/julia-master/tmp/test-asan/asan'
🚨 Error: The command exited with status 2

Example log: https://buildkite.com/julialang/julia-master/builds/4455#3d8f2204-c0ae-43b8-a232-cfeb2a5be0c6

Introduced in #41936

Issue 2:
Seems like a small QoL improvement.