WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I'm trying to move the legend for a sns.histplot

import seaborn as sns
import pandas as pd
import numpy as np # for test data
import random # for test data
import calendar # for test data

# test dataframe
np.random.seed(365)
random.seed(365)
df = pd.DataFrame({'Days': random.choices(calendar.day_name, k=1000), 'Visitors': np.random.randint(1, 121, size=(1000))})

ax = sns.histplot(data=df, x='Visitors', hue='Days', multiple="stack")
ax.legend(bbox_to_anchor=(1.05, 1), loc='upper left')

Without trying to move the legend

Moving the legend in this way works fine with sns.barplot

ax = sns.barplot(data=df, x='Days', y='Visitors', hue='Days', dodge=False, estimator=sum)
ax.legend(bbox_to_anchor=(1.05, 1), loc='upper left')

Issue 2:
I was pretty excited about seeing the histplot functionality coming out, and I'm getting beautiful figures with it already.

I'm trying to finetune my figures and reposition the legends - but am running into issues when moving the legend.

Below is toy example

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
fig, ax = plt.subplots()
x = np.hstack((np.random.normal(0, 1, 100), np.random.normal(-0.5, 1, 100), np.random.normal(0.5, 1, 100)))
data = pd.DataFrame({'x': x, 'd' : ['a'] * 100 + ['b'] * 100 + ['c'] * 100})
g = sns.histplot(data, x='x', hue="d", element="step", stat="probability", ax=ax)

When I move the legend to the upper left, the legend disappears with the warning No handles with labels found to put in legend..

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
fig, ax = plt.subplots()
x = np.hstack((np.random.normal(0, 1, 100), np.random.normal(-0.5, 1, 100), np.random.normal(0.5, 1, 100)))
data = pd.DataFrame({'x': x, 'd' : ['a'] * 100 + ['b'] * 100 + ['c'] * 100})
g = sns.histplot(data, x='x', hue="d", element="step", stat="probability", ax=ax, legend=False)
ax.legend(loc='upper-left')

This is interesting, because it doesn't appear to be an issue with the other plots

https://stackoverflow.com/questions/27019079/move-seaborn-plot-legend-to-a-different-position

https://stackoverflow.com/questions/53733755/how-to-move-legend-to-outside-of-a-seaborn-scatterplot/53737271

I'm curious if this is unique to histplot (or if I'm overlooking something).
Issue 1:
I'm submitting a ... (check one with "x")

[ x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

I do have a lazy loaded module which loads by default LazyLoadedComponent when I go to /lazy. So far, it's OK.

This component contains 2 router-outlet :

<router-outlet></router-outlet>
<router-outlet name="aux"></router-outlet>

And the LazyLoadedModule has the following routes :

const routes = [
{
path: '',
component: LazyLoadedComponent,
children: [
{
path: '',
component: NonAuxComponent
},
{
path: '',
component: AuxComponent,
outlet: 'aux'
}
]
}
];

When I go to /lazy I do have the 3 components loaded as expected.

But, if I want to change the path to display the AuxComponent like that :

{
path: 'auxpath',
component: AuxComponent,
outlet: 'aux'
}

And I try to go to /lazy(aux:auxpath) it's not working.

I also tried to hit that URL using the routerLink like that :

<a [routerLink]="[{ outlets: { aux: 'auxpath' } }]">Load an auxiliary route</a>

But it's not working either.

Is this a bug with the router ? Is it just me missing out something here?

You can check out this Plunkr to make your own tests.

Minimal reproduction of the problem with instructions

Plunkr :

Click on "Demo (click to lazy load the module)"

Once the module is loaded, click on "Load an auxiliary route"

The non auxiliary component is well displayed, the auxiliary component is not displayed

Please tell us about your environment:

Ubuntu 16.10

VSC

Yarn

(But as this is also happening on Plunkr, not sure it's relevant).

Angular version: 2.0.X

v2.4.1 (the one used on Plunkr)

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Chrome

Language: [all | TypeScript X.X | ES6/7 | ES5]

TypeScript

Node (for AoT issues): node --version =

v6.8.0

Issue 2:
In Angular 1.0 Dart, it is possible to use a TypeLiteral to bind and inject generics:

class TypeLiteral<T> {
const TypeLiteral();

Type get type => t;
}

An example of use:

@Component(
module: MyComponent.module
)
class MyComponent {
static void module(DirectiveBinder directiveBinder) {
directiveBinder.bind(
const TypeLiteral<List<String>>().type,
toValue: <String> const ['Hello', 'World']);
}

MyComponent(List<String> stringList) {
assert(stringList == const ['Hello', 'World']);
}
}

In Angular 2, based on this snippet Tim linked me to, it looks like that is no longer possible. Can we add this is a FR for NG 2.0/DI? If not, is there an alternative that will also play well with Angular 1.0 Dart's DI system?

@kegluneq, @yjbanov
Issue 1:
tsc -v 1.7.5

When compiling for es6 target, with let, const, etc., and using commonjs module, browser (Chrome) complains about let and co. used outside of "strict mode" zone. Adding "use strict" at the beginning of commonjs module should fix this.

Note:

spec for es6, 10.2.1 Strict Mode Code says that "Module code is always strict mode code". This assumes that es6 modules are used, while commonjs' require()'s look differently.

it does not seem to be a problem with node, as it probably relaxes this rule.

Babel's transform-es2015-modules-commonjs inserts "use strict" at the start of the file, satisfying browser's desire to stick to the standard's rule, and it all just works. Unfortunately, this requires a babel step in the build :(

Issue 2:
ES6 modules default to running the code in the module in the strict mode. When transpiling this input into ES5 the strict mode should be preserved.

As of Typescript 1.5 beta this is not the case:

input:

export class Foo{}

transpile with: tsc --module commonjs test.ts

actual output:

var Foo = (function () {
function Foo() {
}
return Foo;
})();
exports.Foo = Foo;

expected output:

'use strict';

var Foo = (function () {
function Foo() {
}
return Foo;
})();
exports.Foo = Foo;

The same issue affects output for amd and system module formats.
Issue 1:
This issue has been discussed at here

Blaisorblade also presented a solution, however fixing this is kind of out my technical reach, I must first understand coffee script. However I am willing to contribute in anyway I can.

Issue 2:
Reported in Halp:

support/b47caffcaba511e3903bfcd96bef4da2

If I have a paragraph in CJK characters and toggle soft wrap, the wrapping point (should be the right edge of current window) is far away than the current edge and some characters are displayed out of window which is not visible.

I think this may because of the wrong processing of character wide. A latin letter has a width "one character width", but usually a CJK character has a width twice as a latin letter, it's "two character width". Hope this information may help you.

The debug info auto attached should include the test text I open now. It's include (from up to down): Chinese, Japanese, Korean, English. Actully they tell the same thing:)

I can reproduce this in Atom 0.75.0. (notice how CJK characters are not wrapped correctly at the right edge of the app)
Issue 1:
Environment

Windows build number: 18990
Windows Terminal version (if applicable): 0.5.2661.0

Any other software?

tmux 2.8

Steps to reproduce

Install Windows Terminal 0.5.2661.0 on a machine where tmux 2.8 has been installed and displaying correctly with previous Windows Terminal releases.

Open a WSL shell in a Terminal tab, inside tmux.

Run any command which displays text wide enough to use the rightmost column of the screen. For the example screenshots below, I used env.

After observing initial behavior, clear the screen with clear .

Expected behavior

Clean display of command output without character smear; all characters removed when screen cleared.

Actual behavior

On initial run of the command in step 3, the rightmost character of the last line to contain one is "smeared" down the screen until another rightmost character replaces it, thus:

When the screen is subsequently cleared, all characters displayed in this column remain visible:

Thus far, I have only been able to reproduce this behavior inside a tmux session, although it was not observed until the latest Windows Terminal update. Additionally, I was using Cascadia Code as my terminal font also previous to that upgrade, without problems.

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18990.1002]
Windows Terminal version (if applicable): 0.5

Any other software?
Powershell Core and CMD

Steps to reproduce

create output (i.e.: dir)

resize window to force text to wrap

clear or cls

Expected behavior

Completely clear screen

Actual behavior
Issue 1:
Not sure if it is a bug or just general confusion. Tried only with 0.12.2, not with master.

this.forceUpdate(); crashes when a component is not mounted, which in itself makes sense, I'd say. However, if you call this.forceUpdate() directly in componentWillMount, it doesn't crash, which suggests that it's OK to do (just as setState is OK to call there).

This happens if you use a Flux-like architecture but don't use the componentDidMount/setState combination (as Flux suggests) but componentWillMount/forceUpdate.

The error that you get is "Invariant Violation: receiveComponent(...): Can only update a mounted component."

This example shows the problem: http://jsfiddle.net/8s9we7gj/3/

Issue 2:
Do you want to request a feature or report a bug?

Report a bug.

What is the current behavior?

React 16.9.0 deprecates javascript: URLs (@sebmarkbage in #15047). It was motivated by preventing XSS vulnerability that can be used by injecting client-side scripts:

<a href={url}>Unsafe Link</a>

The following code cannot be exploited by attackers, it cannot be used to inject XSS:

<a href="javascript:void(0)">Safe Link</a>

React 16.9 reports the security precaution warning for the example:

Warning: A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed "javascript:void(0)".

What is the expected behavior?

I would expected that security precaution warnings aren't reported for values that cannot be controlled by attackers.

There were also concerns regarding common patterns like javascript:void(0), see @gaearon comment:

Especially javascript:void(0) seems like it's still pretty common because it's copy pasted from old samples etc. Is it dangerous to whitelist that one? Is it a vector by itself?

If there're tons of reported security issues, you definitely ignore something important.

For reference: Angular’s cross-site scripting security model

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

React 16.9.0 is affected. 16.8.6 doesn't report the warning.
Issue 1:
Works: A Component with an injectable: http://plnkr.co/edit/4uUq7Hqtk43ZHEQMbeM4?p=preview

Broken: A DynamicComponent with an injectable: http://plnkr.co/edit/lJyRdelIxhInuGn5blnl?p=preview

Issue 2:
DynamicComponent annotation has it's own injectables property which gets parsed separately from Component annotations. This information later gets dropped in DirectiveMetadataReader as only Component is checked:

angular/modules/angular2/src/core/compiler/directive_metadata_reader.js

Line 17
in
3667854

if (annotation instanceof Component && isPresent(annotation.injectables)) {
Issue 1:
I hold alt and click and hold left mouse button. It doesn't select the text in rectangular way.

I am running OSX elcapitan.

Issue 2:
Please Implement Column Mode selection/editing.

Previously requested here

https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7761618-implement-column-mode-selection-editing

On Mac preferred shortcut is cmd+option(alt) like Sublime Text does.
Issue 1:
npm install -g exp

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:

npm ERR! https://npm.community

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\delger\AppData\Roaming\npm-cache_logs\2020-01-07T02_45_34_493Z-debug.log

Issue 2:
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:

npm ERR! https://npm.community

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\bhagu\AppData\Roaming\npm-cache_logs\2020-02-15T07_06_40_844Z-debug.log

PS E:\instaprops\ipros-website>
Issue 1:
Hi,

It could be great to have a additional option in command line for add the path to open to the current treeview. Why not -a ?

It is currently only possible with the menu Add project Folder

Issue 2:
The tree-view command "Add Root Folder" is very useful. Frequently I want to open multiple projects in one editor window, with each project as a root folder. This enables things like tree-view's "Hide VCS Ignored Files" to actually work. Other packages also require the root of a repository to be a root folder in tree-view, such as git-blame, for example. Currently, opening a directory from the command line results in opening a new Atom editor window.

atom /foo/bar # creates new window with /foo/bar the single root folder in tree-view
atom /foo/baz # creates another window

I have a feeling issue atom/tree-view#393 would block implementing a feature like this, but it would be very nice to support something like the following.

atom /foo/bar # creates new window with /foo/bar the single root folder in tree-view
atom -a /foo/baz # adds /foo/baz as a root folder to an existing window (most recently used?)
Issue 1:
Tried to compile julia 1.0.3. Compilation OK, but 4 tests fail when make -i testall:

Error in testset cmdlineargs:
Test Failed at /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:422
Expression: success(#= /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:422 =# @cmd("\$exename -e \"exit(0)\""))
Error in testset cmdlineargs:
Test Failed at /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425
Expression: success(#= /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425 =# @cmd("\$exename -e \"exit(!(Base.load_path() == []))\""))
Error in testset cmdlineargs:
Test Failed at /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425
Expression: success(#= /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425 =# @cmd("\$exename -e \"exit(!(Base.load_path() == []))\""))
Error in testset cmdlineargs:
Test Failed at /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425
Expression: success(#= /tmpdir/sysinst/julia/julia/test/cmdlineargs.jl:425 =# @cmd("\$exename -e \"exit(!(Base.load_path() == []))\""))

Here is the Make.user:

prefix = /usr/local/julia/1.0.3
USEIFC = 1
USE_INTEL_MKL = 1
USE_INTEL_MKL_FFT = 1

Using mkl rel 19.2 and gcc:

Copyright © 2015 Free Software Foundation, Inc.
Ce logiciel est libre; voir les sources pour les conditions de copie. Il n'y a PAS
GARANTIE; ni implicite pour le MARCHANDAGE ou pour un BUT PARTICULIER.

Issue 2:
I'm currently building Julia v1.0.2 with intel MKL library. The build is passed, but it cannot pass the test. I found some test failures are owing to the LD_LIBRARY_PATH are missing. For example, in cmdlineargs.jl.

julia/test/cmdlineargs.jl

Lines 30 to 32
in
a50d5af

let v = writereadpipeline("println(\"REPL: \", @which(less), @isdefined(InteractiveUtils))",

setenv(`$exename -i -E 'empty!(LOAD_PATH); @isdefined InteractiveUtils'`,

"JULIA_LOAD_PATH"=>"", "JULIA_DEPOT_PATH"=>""))

The setenv didn't copy the origin ENV, so when running julia, it will cause a Intel MKL FATAL ERROR: Cannot load libmkl_core.so. It can be solve by passing the LD_LIBRARY_PATH to the command.

Another is problem is at

julia/test/cmdlineargs.jl

Lines 418 to 431
in
a50d5af

if !Sys.iswindows() && Base.libllvm_version > v"3.3"

testdir = mktempdir()

cd(testdir) do

rm(testdir)

@test Base.current_project() === nothing

@test success(`$exename -e "exit(0)"`)

for load_path in ["", "@", "@."]

withenv("JULIA_LOAD_PATH" => load_path) do

@test success(`$exename -e "exit(!(Base.load_path() == []))"`)

end

end

end

end

end

After the directory is removed, it cannot load the libmkl_rt.so. so will cause a Intel MKL FATAL ERROR: Cannot load /home/peter/intel/compilers_and_libraries_2019.0.117/linux/mkl/lib/intel64/libmkl_rt.so. it seems to be a problem of calling getcwd in libmkl_rt.so.
Issue 1:
I think I wrote correctly but it doesn't work like I thought :(

Issue 2:
The following link is running its jQuery twice: http://www.freecodecamp.com/challenges/target-the-parent-of-an-element-using-jquery

Issue Description

It happens when I load it first time. Looking at my screenshot you can notice that there are 3 target5

For reproduction of this bug you just need open this link

Browser Information

FirefoxESR, 31 ESR

Windows 7 enterprise, Service Pack 1

Your Code

<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");

});
</script>

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

<body>
<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>
</body>

Screenshot
Issue 1:
by runningwild:

If there are no blank lines between the start of a file and a comment containing build
constraints those build constraints are ignored.

What steps will reproduce the problem?
Make two files, foo.go (no blank line before the build constraint):
// +build ignore
package main
func main() {
println("Hi!")
}
and bar.go:
package main
func main() {
println("Hi!")
}

then run "go build ." in that directory.

This fails because of duplicate definition of main(). If a blank line is inserted
before the build constraint in foo.go the compilation succeeds as expected (inserting
another line of comments is not sufficient).

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

Which operating system are you using?
darwin, linux

Which version are you using? (run 'go version')
go1
hg id: 817fde92780a

Issue 2:
http://play.golang.org/p/T9zdkbOhqw

In this (perverse) program, x is a pointer to a struct, and (*x).y is a legal
expression, but x.y() is not. This contradicts the letter of the spec, though I think
not its spirit.

type T struct{}
func (T) y() {}

type X *T

var x X

// "Selectors automatically dereference pointers to structs.
// If x is a pointer to a struct, x.y is shorthand for (*x).y."
(*x).y()
x.y() // gc error: x.y undefined (type X has no field or method y)
Issue 1:
Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:

TensorFlow installed from (source or binary):

TensorFlow version (use command below):

Python version:

Bazel version (if compiling from source):

GCC/Compiler version (if compiling from source):

CUDA/cuDNN version:

GPU model and memory:

You can collect some of this information using our environment capture

script

You can also obtain the TensorFlow version with: 1. TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)" 2. TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the current behavior

Describe the expected behavior

Code to reproduce the issue

Provide a reproducible test case that is the bare minimum necessary to generate the problem.

Other info / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Issue 2:
I unclicked run1 and run2, but when I click on some variables, the run1 and run2 still show up. If I click on run1 and run2 again, five plots will be shown, with 2 of them repeated! By unclicking and clicking a run1, my board just messed up with more and more plots. This is a Google product? :-O

Screenshots:
Issue 1:
Using a <webview> tag on Electron 0.35.2 without having a <script> tag in the parent HTML seems to cause the webview to never load the page.

Does not load

This has no <script> tags and the webview never loads.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<webview src="http://yahoo.com" autosize="on" minwidth="500" minheight="500"></webview>
</body>
</html>

### Loads

Same example above except an empty <script> tag in the <head> and the webview loads.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
</script>
</head>
<body>
<webview src="http://yahoo.com" autosize="on" minwidth="500" minheight="500"></webview>
</body>
</html>

Issue 2:
I have a very little demo like this:

<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<webview src="https://www.google.com/" autosize="on" minwidth="576" minheight="432"></webview>
</body>
</html>

When I run the application, I get a blank page, nothing displayed. But if I add some script to the page, the webview will render. e.g.:

<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<script>console.log("Hello World");</script>
<webview src="http://www.baidu.com/" autosize="on" minwidth="576" minheight="432"></webview>
</body>
</html>
Issue 1:
What / Why

npm i can fail when using local deps in a certain way.

When

Running npm i

Where

In a package that includes local dependencies that depend on a common registry-derived module.

How

In the situation where local (file:) deps form a chain and two share a common registry-derived dep, npm i will fail with an ENOENT error.

A
|
B -> some-module
|
C -> some-module

☝️ A depends on B. B depends on C and some-module. C depends on some-module.

Current Behavior

Running npm i will throw an error like this:

npm WARN rollback Rolling back some-module@x.y.z failed (this is probably harmless): /npm-nested-deps-issue/c/node_modules/some-module is not a child of /npm-nested-deps-issue/a
npm WARN a@1.0.0 No description
npm WARN a@1.0.0 No repository field.

npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path /npm-nested-deps-issue/a/node_modules/.staging/some-module-de6f41e0
npm ERR! dest /npm-nested-deps-issue/c/node_modules/some-module
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, rename '/npm-nested-deps-issue/a/node_modules/.staging/some-module-de6f41e0' -> '/npm-nested-deps-issue/c/node_modules/some-module'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

Steps to Reproduce

Clone https://github.com/treydavis/npm-nested-deps-issue

run npm i in the a module

Expected Behavior

Install with no errors

Issue 2:
C:\Users\ramee\iSplendidtask\iSplendidApp>npm install --save react-navigation

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:

npm ERR! https://npm.community

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\ramee\AppData\Roaming\npm-cache_logs\2019-12-19T14_14_22_526Z-debug.log