WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Here are the steps I followed to learn node.js and Boostrap

Downloaded the bootstrap .zip file from the github

$ wget https://github.com/twbs/bootstrap/releases/download/v3.0.0/bootstrap-3.0.0-dist.zip

Extract the files

$unzip bootstrap-3.0.0-dist.zip

Create a directory

$ mkdir myapp

Copy the extracted bootstrap directory to "myapp" folder and name it "mybootstrap"

$ move dist myapp/mybootstrap

Create app.js as below

Created index.html as below (note: bootstrap directory is updated)

When I execute node app and view the page in Chrome browser, I do not see the bootstrap applied index.html (See image below)

When I tried to look at the css file by clicking on the URL, I get a Cannot GET error.

If I refer to CDN links, instead of my local links, the page renders just fine. So, I am lost as to what may be wrong with my setup. I checked the permission on the folder as well.

The above is setup on Ubuntu Linux.

Appreciate any help in this regard.

Thanks in advance,

Vinay

Issue 2:
I am new to node.js and Bootstrap. Here is what I have done so far on a Linux setup.

$ mkdir myapp

$ mv bootstrap myapp/mybootstrap - Moving the downloaded compiled bootstrap to "mybootstrap" folder under "myapp" directory

2.$ emacs app.js

app.js looks like below

var express = require('express');

var fs = require('fs');

var app = express();

app.get('/', function(request, response){
response.send(fs.readFileSync('index.html', 'utf8'));
});

var port = process.env.PORT || 8888;

app.listen(port, function(){
console.log("Listening on " + port);
});

1. $ emacs index.html - I have copied the content of HTML shown at http://getbootstrap.com/getting-started/. I have changed the path settings for referring to bootstrap files as below

All the necessary require packages are in place

When I execute node app, the page does show up, however the bootstrap CSS is not applied.

Google Chrome's "Inspect Element" option shows the error as "

http://IPADDRESS:8888/mybootstrap/css/bootstrap.min.css

404

Not Found"

I don't know what am I doing wrong.

Any help would be greatly appreciated.

Thanks

Vinay
Issue 1:
We start to hit some SystemJS-related bugs that were already fixed upstream. Examples:

#3275

systemjs/builder#271

We should upgrade to the newer builder + loader combo

Issue 2:
I'm submitting a ...

[X] bug report

Current behavior

If I have a sync and a async validation on a formControl the async validation overwrites the sync validation when it comes back even if the value has changed. So if I put in something in a field that passes the sync validation the async validation triggers. However when I then change the value of the field before the last async validation have come back to something that doesn't pass the sync validation the last value async validation becomes the winning one.

Expected behavior

Probably that the async validation should be ignored if the value has changed since the request?

Minimal reproduction of the problem with instructions

http://plnkr.co/edit/MrY2Gq03dNjp8hvET3cn?p=preview

Fill in whatever@whatever.com in the input field.

Within 5 seconds, change the value of the field to asdf.

Wait a second or two and now the Control is valid, but asdf is not valid according to the sync validation.

Angular version: 2.1.12

Browser:: Tested in latest Chrome and Safari

Language:: Typescript
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

ANSIBLE VERSION

ansible 2.2.1.0

SUMMARY

Hey,

When i try to install an open source project Verteego Data suite using the Ansible Playbook command, the installation is failed with the following error message :

TASK [Make boot disk] **********************************************************

fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "No CA Certificates were found in CA_CERTS_PATH. For information on how to get required certificate files, please visit https://libcloud.readthedocs.org/en/latest/other/ssl-certificate-validation.html"}

to retry, use: --limit @/Users/derkrikorian/vds/deployment/ansible/setup_gc_instance.retry

PLAY RECAP *********************************************************************

localhost : ok=4 changed=1 unreachable=0 failed=1

MacBook-Pro-de-Der:~ derkrikorian$ ansible-playbook -i vds/deployment/ansible/hosts --private-key=.ssh/google_compute_engine vds/deployment/ansible/setup_gc_instance.yml --limit @/Users/derkrikorian/vds/deployment/ansible/setup_gc_instance.retry

ERROR! Specified --limit does not match any hosts

I use a MacBook with MacOS Sierra and I try to run a google cloud instance

thanks for your responses

Lionel

Issue 2:
Seemingly not a thing in master yet if going by what @bcoca noted on IRC.

ISSUE TYPE

Feature Request

COMPONENT NAME

Ansible core

ANSIBLE VERSION

2.2.2.0 (and most likely 2.3/master

OS / ENVIRONMENT

N/A

SUMMARY

allow_world_readable_tmpfiles seems like a parameter that you might want to set per-host.

STEPS TO REPRODUCE

You have your Ansible plays.

Suddenly a wild ZFS-utilizing node appears.

allow_world_readable_tmpfiles = True is required for become:yes + become_user: !root

EXPECTED RESULTS

You can set allow_world_readable_tmpfiles=yes in an inventory or so.

Much happiness.

ACTUAL RESULTS

Now you have to set ANSIBLE_CONFIG and have another cfg file on hand.

You are sad as you are now duplicating things.

SHORT IRC LOG

< JEEB> hmm, is there a way to set allow_world_readable_tmpfiles = True
in an inventory?
< JEEB> as currently I'd be forced to make a separate config file for
these hosts and that just gets not fun because everyone
deploying would have to know to set the env var :)
* JEEB just got a few nodes with ZFS
< agaffney> JEEB: it doesn't appear so
<@bcoca> ^ but we should add that
< JEEB> bcoca: do you want a feature request for that?
<@bcoca> JEEB: yep
< JEEB> alrighty
Issue 1:
I had this issue, but a friend of mine started FreeCodeCamp and had a similar issue. It wasn't browser specific to Chrome or Firefox (occurring in both), but what seems to happen is if you select something say 3/4 down the page (for reference my monitor is 1366x768, also happened in my 1920x1080 monitor) your cursor will be close to, but not where you selected. It's a minor issue but sufficiently annoying when you try to select something specific in a challenge and your cursor is jumping around, or you're typing not where you think you were, and then messing up your code.

The coding window in the later challenges (I'm currently on Seek and Destroy) don't seem to have these same issues and I noticed it did go away. Since a friend of mine had the same issue I figured I should submit it.

Challenge Create a Text Field has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 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>

<p>Click here for <a href="#">cat photos</a>.</p>
Te
<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back" src="https://bit.ly/fcc-relaxing-cat"></a>

<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<input type="text">

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:
Bug report

Bug summary

Plotting negative values on a log scale is possible. However it changes the axis limits in a seemingly arbitrary way.

Code for reproduction

The following shows three scatter plots. The x values

(1) are all positive

(2) contain one negative value

(3) have the negative value filtered out

import numpy as np; np.random.seed(1)
import matplotlib.pyplot as plt

x = np.random.rayleigh(100,400)
y = np.random.rand(len(x))

fig, (ax,ax2, ax3) = plt.subplots(nrows=3)

ax.scatter(x,y)
ax.set_xscale("log")
ax.set_title("Scatter of all-positive values")

ax2.scatter(x-2,y)
ax2.set_xscale("log")
ax2.set_title("Scatter with one negative value")

cond = x-2 > 0
ax3.scatter((x-2)[cond],y[cond])
ax3.set_xscale("log")
ax3.set_title("Expected scatter with one negative value")

plt.tight_layout()
plt.show()

Actual outcome

The second subplot, where the data contains a negative value, shows only part of the valid data, because the axis is autoscaled to some seemingly arbitrary region.

Expected outcome

The third subplot would be the expected outcome with the axis autoscaled to show all points.

One could also argue that plotting negative data on a log scale should not be supported at all, and that it should be the user's responsibility to make sure the data is positive. In that case however it would make sense to issue a warning instead of just plotting something arbitrary.

Matplotlib version

Operating system: Windows 8.1

Matplotlib version: 2.2

Matplotlib backend: any

Python version: 2.7.10

Issue 2:
import matplotlib.pyplot as plt

fig, axs = plt.subplots(2, 1)

axs[0].scatter(range(0, 4), [0, 1, 2, 3])
axs[1].scatter(range(0, 4), [0, 1, 2, 3])

axs[0].set_yscale('log')
axs[1].set_yscale('log')

axs[1].set_ylim(bottom=0)

plt.show()

This raises

/home/dstansby/matplotlib/lib/matplotlib/axes/_base.py:3174: UserWarning: Attempted to set non-positive ylimits for log-scale axis; invalid limits will be ignored.
'Attempted to set non-positive ylimits for log-scale axis; '

However, the 2nd plot is changed by the set_ylim(bottom=0) call, and no data is visible.

This is present on master.
Issue 1:
Make sure these boxes are checked before submitting your issue - thank you!

When we enter a child page , the SVG is drew ; eg: y axis'value like 3.4k , i want it show 3400. Now,i think svg need data it can drew, i track the 'URL', but i can't find the code . where is the component code. how find the ‘configuration parameter’ .

Superset version

0.18.5

Expected results

y axis'value like 3.4k , need 3400.

Actual results

Steps to reproduce

Issue 2:
Is there some way to change the decimal formatting in Table View?

Currently 0.532 is formatted as 532m. I would very much welcome a formatting option that would not use M (for 10^6), k (for 10^3) and m (for 10^-3).

Superset version: 0.17.0
Issue 1:
In Visual Studio, you can press Ctrl+F5 to launch the application without a debugger attached, which i befinicial for performance reasons. For VS Code this would be very helpful, because you don't always want to actually debug a file or actually cannot because there is no debug adapter extension out there yet. Currently, you have to define a "launch" task, which cannot get a keyboard shortcut. Having "Launch without debugging" would be much more semantically correct.

Introduce a new action in command palette "Launch without debuggin" with keyboard shortcut Ctrl+F5

If the currently selected configuration has type set, send the debug adapter a launchRequest with the additional argument debug: false

Make the debug setting type optional. If a configuration does not have a type, it can only be launched without debugging:

If runtimeExecutable is set, spawn the runtime executable (java, bash, ...) with the runtimeArguments, program and args.

Otherwise spawn program with args directly (like a .exe or .bat)

program should be allowed to drop the file extension (java needs this for example)

Put stdout on the debug console and send input on the debug console to stdin

If externalConsole is true, run the script in an external console

Support preLaunchTask

Examples:

{
"name": "Run currently open script",
"runtimeExecutable": "bash",
"program": "${file}"
}

{
"name": "Launch",
"runtimeExecutable": "java",
"program": "${workspaceRoot}/MyClass",
"preLaunchTask": "compile"
}

Issue 2:
Is there a command that will run my file without opening the debug console and without opening the debug tab?
Issue 1:
Is there a plan to support custom context menu? like:

https://atom.io/docs/api/v1.7.1/ContextMenuManager

or

http://wiki.eclipse.org/Menu_Contributions#menu

Thanks. I am looking forward to that.

Issue 2:
VSCode Version: alpha

OS Version:

Steps to Reproduce:

No tabs no Open editor section

Two groups. G1: a.txt & b.txt with b.txt in front; G2: c.txt

G2 has focus

Ctrl+P a.txt

Observe: a.txt is opened a second time in G2

I would like to have an option to reveal a.txt in G1 instead of opening a new copy.
Issue 1:
When looking at a zoomed out hexbin plot, the tiles seem to overlap, with the right-most tiles lying on top of the left-most tiles. This is present on master (see http://matplotlib.org/devdocs/_images/hexbin_demo.png), and here is an example (it helps to zoom into the .png image):

Issue 2:
This is the underlying problem raised in #1178.

It is illustrated by the test below; note that boundary anomalies are visible in all forms--agg on the screen, and pdf and svg displayed with a viewer--but in different places depending on the viewer and the size of the figure as rendered.

Note that the colorbar is rendered using pcolormesh, which has its own renderer with agg but otherwise is handled by draw_path_collection.

import numpy as np
import matplotlib.pyplot as plt

z = np.arange(150)
z.shape = (10,15)

fig, axs = plt.subplots(2,2)

ax = axs[0,0]
cs0 = ax.contourf(z, 20)
cbar0 = fig.colorbar(cs0, ax=ax)

ax = axs[0,1]
cs1 = ax.contourf(z, 20, alpha=0.3)
cbar1 = fig.colorbar(cs1, ax=ax)

ax = axs[1,0]
im2 = ax.imshow(z, interpolation='nearest')
cbar2 = fig.colorbar(im2, ax=ax)

ax = axs[1,1]
im3 = ax.imshow(z, interpolation='nearest', alpha=0.3)
cbar3 = fig.colorbar(im3, ax=ax)

plt.savefig("test1.pdf")
plt.savefig("test1.svg")
plt.show()
Issue 1:
Bug Report

Current Behavior

In time I pass the object, which contains the literal declared parameter called class, to the React component, I receive SyntaxError.

<div attrs={{class: 'A'}}>Children</div>

Expected behavior/code

Expected behavior is to get the correct parsed attributes like { class: 'A'}

Babel Configuration (.babelrc, package.json, cli command)

module.exports = {
presets: [
[
'@babel/preset-env',
{
modules: false,
useBuiltIns: 'usage',
},
],
'@babel/preset-flow',
'@babel/preset-react',
],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-optional-chaining',
[
'@babel/plugin-transform-runtime',
{
useESModules: true,
},
],
],
env: {
test: {
presets: ['@babel/preset-env'],
plugins: ['babel-plugin-require-context-hook', '@babel/plugin-transform-runtime'],
},
},
}

Environment

Babel version(s): 7.1.2

Node/npm version: 8.12.0/6.4.1

OS: OS X 10.14

Lerna

How you are using Babel: loader

Additional context/Screenshots

Examining revealed, that if I would write an object with JSON, it works: <div attrs={{'class': 'A'}}>Children

Issue 2:
Bug Report

Input Code

<Select prop={{ class: 'test' }} />;

Current Behavior

With the latest version of @babel/parser@7.1.3 it fails with the error

SyntaxError: /Users/serdiuk/coding/test/test.js: Unexpected token, expected "jsxTagEnd"

Expected behavior/code

With @babel/parser@7.1.2 and bellow it works:

React.createElement(Select, {
prop: {
class: 'test'
}
});

Babel Configuration (.babelrc, package.json, cli command)

{
"presets": ["@babel/preset-react"]
}

Environment

Babel version(s): @babel/core@7.1.2

Node/npm version: v8.9.4

OS: OSX 10.12.6

Monorepo: n/a

How you are using Babel: cli, but also happens in babel-loader

Possible Solution

As a current workaround I can write the following:

const prop = { class: 'test' };
<Select prop={prop} />;

This works with any version. But this is still an issue, because it fails to parse the code, that is supposed to be valid Javascript.
Issue 1:
Stéphane Nicoll opened SPR-9684 and commented

The spring test infrastructure no longer honour prototype-scoped beans if they are injected wiht @Resource. It does work with @Autowired.

We suspect that #13814 may have brought this regression.

To reproduce, extract the zip and run the tests (either from your IDE or on the command line with Maven). You can validate the regression by running the following command:

mvn clean install -Dspring.version=3.1.1.RELEASE

Affects: 3.1.2

Attachments:

inject-regression-showcase.zip (6.16 kB)

Issue Links:

#14261 Regression: scoped beans being cached too aggressively ("duplicates")

1 votes, 2 watchers

Issue 2:
Samuel Bernet opened SPR-9627 and commented

The bugfix #13814 "Scoped-proxy memory leak w/ @Resource injection" leads to bean instances being cached too eagerly in CommonAnnotationBeanPostProcessor. Besides the (desired) caching of AOP scoped-proxies to prevent the memory leak the current code also caches custom scoped bean instances that should not be cached. This happens for example if client code uses AutowireCapableBeanFactory#autowireBean(Object) to inject dependencies (annotation-based) into a manually created bean. In this case no AOP proxies are involved but the cached instances are still used. The underlying scope is never consulted and can thus never signalize that a new instance is to be created and injected because the context of the scope (e.g. request, session) is different from the first call which resulted in the cached instance.

I attached a Test-Case (JUnit 4 Test, requires JUnit and Spring to run). The test-case illustrates the breaking change:

Runs fine with Spring version 3.1.1 and older (tested with 3.0.5)

Fails with Spring version 3.1.2 and 3.2.M1

The defect was introduced in the bugfix for #13814 in version 3.2.M1 with commit f779c19

The defect was back-ported to version 3.1.2 with #14000

I understand this calling pattern is not very common but nevertheless the affected API is public and our framework relies on this to provide service beans to instances of "visual" classes (a visual models a single page in a web application). This basically renders custom scoped beans (also being used heavily) unusable for us in releases > 3.1.1, thus my classification as "major".

Best regards

Samuel Bernet

MSc ETH Software Engineering

samuel.bernet@raiffeisen.ch

Affects: 3.1.2, 3.2 M1

Attachments:

SPR-9176-TestCase.zip (3.29 kB)

Issue Links:

#14318 @Resource injection regression with scope prototype ("is duplicated by")

#13814 Scoped-proxy memory leak w/ @Resource injection

#14214 Injecting prototypes into tests using @Resource appears to be broken

#14000 Backport "Scoped-proxy memory leak w/ @Resource injection"

#14485 @Resource injection of singleton in prototype using AnnotationConfigApplicationContext is not thread-safe

Referenced from: commits 04af54a, 26ee0c4, 68c5f20, 1971870

1 votes, 5 watchers
Issue 1:
I've recently experimenting with llvm.expect to see if I can squeeze the last bit of performance for error throwing (rather the non-error path). I would like to use llvmcall but the simplest implementation gives me an error that @llvm.expect.i1 is not defined. Would it be possible to add another parameter for llvmcall so that declaration is allowed?

I'm asking because

It seems that CUDA.jl is using a form that allows it although when I tried that it didn't work.

After reading the codegen for llvmcall I came up with a hack to do what I want (see below). So I think it would be nice to add explicit support for sth useful that is possible to do with a hack.

It seems pretty straightforward to implement such function but I don't want to go ahead and do it myself now because IIRC @Keno has a more complete implementation of it that is not in the Base yet (and that CUDA.jl seems to be using sth similar). Is there any plan to get it in?

The hacky implementation is like this. The llvm code correctly contains the expect call. This doesn't seems to affect the assembly but similar code in c compiled with clang or gcc emit identical assembly as well so that's probably normal.

function likely(x::Bool)
Base.llvmcall("""
%2 = tail call i1 @llvm.expect.i1(i1 %0, i1 true)
ret i1 %2
}
declare i1 @llvm.expect.i1(i1, i1)
define void @likely_dummy() {
ret void
""", Bool, Tuple{Bool}, x)
end

function unlikely(x::Bool)
Base.llvmcall("""
%2 = tail call i1 @llvm.expect.i1(i1 %0, i1 false)
ret i1 %2
}
declare i1 @llvm.expect.i1(i1, i1)
define void @unlikely_dummy() {
ret void
""", Bool, Tuple{Bool}, x)
end

function f1(x::Int)
if x > 0
x
else
2
end
end

function f2(x::Int)
if likely(x > 0)
x
else
2
end
end

function f3(x::Int)
if unlikely(x > 0)
x
else
2
end
end

@code_llvm f1(1)
@code_llvm f2(1)
@code_llvm f3(1)

# @code_native f1(1)
# @code_native f2(1)
# @code_native f3(1)

The script prints

define i64 @julia_f1_20826(i64) {
top:
%1 = icmp slt i64 %0, 1
br i1 %1, label %L, label %if

if: ; preds = %top
ret i64 %0

L: ; preds = %top
ret i64 2
}

define i64 @julia_f2_20829(i64) {
top:
%1 = icmp sgt i64 %0, 0
%2 = call i1 @llvm.expect.i1(i1 %1, i1 true)
br i1 %2, label %if, label %L

if: ; preds = %top
ret i64 %0

L: ; preds = %top
ret i64 2
}

define i64 @julia_f3_20830(i64) {
top:
%1 = icmp sgt i64 %0, 0
%2 = call i1 @llvm.expect.i1(i1 %1, i1 false)
br i1 %2, label %if, label %L

if: ; preds = %top
ret i64 %0

L: ; preds = %top
ret i64 2
}

Issue 2:
Basically sugar, but would be cool to compose functions with the pipeline op. Could possibly help with #5571.

f(x) = x |> factor |> keys |> length

f = factor |> keys |> length
# ERROR: no method keys(Function,)
# in |> at operators.jl:159

I think the relevant code is

julia/base/operators.jl

Line 159
in
a26f03e

|>(x, f::Function) = f(x)

.

Something like this?

|>(f1::Function, f2:Function) = x -> f1(f2(x))

Down to figure out how to write a test n such, just let me know.
Issue 1:
Right now, https://golang.org/src/net/http/pprof/pprof.go?s=6283:6333#L197 has a

func Index(w http.ResponseWriter, r *http.Request)

which only works if the path on which it is serving is exactly /debug/pprof/.

This is weakly documented, and also a little inconvenient, as handling other paths may be desirable. In particular, its behaviour if you do assume that it can be hosted on other paths is that every profile you try to get returns the index page.

It would be nice to fix this so that it supports arbitrary path prefixes. The ways that occur to me to implement this are:

Rather than extracting the expected path suffix up-front and looking it up in the profiles map, iterating over the available profiles and checking whether they are a suffix of the requested path (possibly the longest suffix). This is a little less efficient (O(1) profile lookup becomes O(|available profiles|), but the number of profiles should be small and this handler shouldn't be hit too often or on many critical paths.

Introduce a function which takes the path prefix and returns a handler suitable for that prefix. It preserves the current performance characteristics, but leaves the old slightly-broken method there for backwards compatibility, at the cost of requiring duplication of the prefix specification (both in the Handle call and in the Index-creator-func), and generally feeling slightly ugly.

I'm inclined towards implementing the first; does anyone have any strong opinions?

Issue 2:
My CL that expanded the maximum runtime memory to 128 GB appears to have broken race
detection on the Windows build machine. I will disable the test for now so that the
build machine stays useful.