WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Version

2.6.11

Reproduction link

https://codesandbox.io/s/clever-sammet-51l0g?file=/src/components/HelloWorld.vue

Steps to reproduce

I have template code like below, and I have set vue-loader's option compilerOptions.whitespace = "condense";

<div class="hello">
<button>
{{ msg }}
</button>
</div>

What is expected?

no whitespace output between <button> and {{ msg }}.

What is actually happening?

"vue-template-compiler" removed whitespace between HTML tags, but left whitespaces around {{msg}}, which causes my button a bit wider than expected.

Would you please provider another option for whitespace, which can remove whitespaces between tags and Mustache?

Issue 2:
Version

2.5.17

Reproduction link

https://codepen.io/chessydk/pen/ZqGqbr?editors=1010#0

Steps to reproduce

Hover over the "æøå".

What is expected?

I would expect html attributes to be html-decoded, just like text-nodes, so when you hover over the text you should see "æøå"

What is actually happening?

You see "&#230;&#248;&#229;"

Context: Serving html from CMS backend as JSON and creating dynamic Vue component with the server-generated html, which can have danish characters in attributes (mostly in object-data bindings like :model="{prop: æøå}" , but the problem exists for all attributes.
Issue 1:

Issue 2:
Hey there

I have upgraded an app to version 5 as in the list of fixes was the silent printing bug, but the issue is still the same.

My code:

printWindow.webContents.print({silent: true});

Results in nothing happening at all. No errors thrown or anything. Changing it back to false, brings up the window to select the printer and then it prints perfectly fine. It's just the silent mode that doesn't work.

I am running this on Windows 10, with Node version 10.15.3. I can not try with a different OS as the printer only has drivers for Windows.

Many thanks,

Michael
Issue 1:
So if the viewport width is too small to show all buttons in a row, it transform into a dropdown. It could be offered via an optional trigger.

Issue 2:
Hi, I'm loving Bootstrap 3!

One problem I'm encountering is that button panels aren't "responsive" enough. I'd like to have .btn-block style buttons below 768px, and normal .btn style above, potentally with .pull-left or .pull-right

Here's the proposal for this (thanks @ggam):

@media (max-width: @screen-sm) {
.btn-group-responsive {
margin-bottom: -10px;
.btn {
.btn-block(); // Reuse btn-block code
margin-bottom: 10px;
}
.pull-left, .pull-right {
float: none !important;
}
}
}
Issue 1:
[Enter steps to reproduce below:]

...

...

Atom Version: 0.165.0

System: linux 3.13.0-40-generic

Thrown From: Atom Core

Stack Trace

Uncaught Error: spawn /usr/share/atom/atom (deleted) ENOENT

At events.js:85

Error: spawn /usr/share/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)

Commands

Config

{
"core": {},
"editor": {}
}

Installed Packages

# User
No installed packages

# Dev
No dev packages

Issue 2:
TEMPORARY WORKAROUND: ln -s /usr/share/atom/atom "/usr/share/atom/atom (deleted)"

Uncaught Error: spawn /opt/atom/atom (deleted) ENOENT

Atom Version: 0.152.0

System: linux 3.13.0-40-generic

Thrown From: Atom Core

Steps To Reproduce

...

...

Stack Trace

At events.js:85

Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
Issue 1:
Seems to me that most APIs will assign unique error codes to each potential validation error, in addition to human-readable messages.

Before considering a PR, I wonder what the consensus on adding the ability to add a 'code' property to each field constraint would be?

Issue 2:
Following my (unanswered) question at StackOverflow I'm reporting this as a bug, as no one seems to know the answer.

Currently there's no way that I can see to populate the code property for the ConstraintViolation class, as it is not defined in the Constraint class. But as I see, it goes farther than that, as all the validators just ignore the parameters for the addViolation method, making it impossible for simple asserts to define a code for the violation.

What I expect it to allow is the following:

/**
* @Assert\NotBlank(code=400)
* @Assert\Email(code=401)
*/
protected $email;

Problem is, the current validators call addViolations without setting the 5th argument (code). Plus, the Constraint class doesn't implement such a code property as mentioned.

If this is indeed considered a bug, I would like to send a PR with a patch, provided that this is the way that it should be working.If it's not, some directions would be amazing!
Issue 1:
Use case: I have an an entity with 10 properties, and a form which only edits 2 of those properties. That form has all the fields in the entity, but it only renders these 2 in the template.

The incoming request only has these 2 properties set, but when I bind it to the form, already populated with the entity in the Database, all files not included in the request are set to null.

I would not like create a new form for this, so i feel that the bindRequest command should not reset missing fields to null in the entity, only ignore them.

This line seems to be the trouble https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Form.php#L493

Is this an issue? Can it be solved?

Issue 2:
Description

This is an idea of improvement for the Form feature: allow passing parameters to the translated fields

In SF, the translation feature is available almost everywhere:

The Controllers ( Fully available )

The Twig ( Fully available )

The Services ( Fully available )

The Forms ( Partially available )

The translation feature is partially available in the SF Forms because we cannot translate the keys which are expecting parameters to be translated.

If the translation parameters would be available directly in the Form Classes,

the SF developers would have theses gains :

Be able to create SF Forms Fully Dynamic

Avoid duplicating some keys specific to the forms

Currently in the Twig templates there are two ways to display a SF Form :

1 - Integrate the fields manually One by One

2 - Integrate the fields dynamically by looping over each field of the form

I am using the second Method for the following reasons:

It is time consuming to integrate all the fields of a form manually ( one by one ) in twig template.

It is also time consuming to maintain a form if we have to touch two different layers (Twig+ Form Class) for each modification.

Example

-> This is French translation file : App.fr.yml

views:
index:
created_at: crée le %date%

-> This is my English Translation file : App.en.yml

views:
index:
created_at: created at %date%

-> This is my Form

...
->add('created', DateTimeType::class,
array('label' => 'views.index.created_at',
'widget' => 'single_text',
'input' => 'datetime',
'format' => 'dd/MM/yyyy HH:mm',
'attr' => array('data-date-format' => 'DD-MM-YYYY HH:mm'),
'translation_domain' => 'App'));
...

-> This is my Twig template :

{% for key, field in form.children %}
<div class="form-group form-md-line-input form-md-floating-label" id="block_{{ key }}">
{{form_label(field)}}
{{form_errors(field)}}
{{form_widget(field)}}
</div>
{% endfor %}
Issue 1:
The wording in the update docs is (emphasis added):

In a future version of pandas pandas.concat() will no longer sort the non-concatenation axis when it is not already aligned. (...)

To keep the previous behavior (sorting) and silence the warning, pass sort=True.

To accept the future behavior (no sorting), pass sort=False

https://pandas-docs.github.io/pandas-docs-travis/whatsnew.html#concatenation-will-no-longer-sort

But the wording in the FutureWarning messages is (emphasis added):

Sorting because non-concatenation axis is not aligned. A future version

of pandas will change to not sort by default.

To accept the future behavior, pass sort=True.

To retain the current behavior and silence the warning, pass sort=False

https://github.com/pandas-dev/pandas/blob/c4da79b5b322c73d8e61d1cb98ac4ab1e2438b40/pandas/core/indexes/api.py

It needs to be clearer that current default is still sort=True but will revert to sort=False in a future version.

Issue 2:
Problem description

Pandas 0.23.0 adds a new warning when calling concat with misaligned axes (#20613):

FutureWarning: Sorting because non-concatenation axis is not aligned. A future version
of pandas will change to not sort by default.

To accept the future behavior, pass 'sort=True'.

To retain the current behavior and silence the warning, pass sort=False

This seems strange; I'd assume that sort=True would give the current behaviour, and sort=False the future behaviour, as in the docs for concat:

Explicitly pass sort=True to silence the warning and sort. Explicitly pass
sort=False to silence the warning and not sort.

I'm assuming the docs are right and the warning is wrong?
Issue 1:
If disk encounters disk error ,such as input/output err, this corrupted disk should be removed automatically from es node if index couldn't be written in for a long time.

Currently ops must update config and restart es node.

[2016-08-31 10:43:18,568][WARN ][gateway ] [10.148.67.11] [slb_itvresult-2016.08.28.05]: failed to write index state
java.nio.file.FileSystemException: /data/slot9/elasticsearch/es02/nodes/0/indices/slb_itvresult-2016.08.28.05: Input/output error
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.checkAccess(UnixFileSystemProvider.java:308)
at java.nio.file.Files.createDirectories(Files.java:746)
at org.elasticsearch.gateway.MetaDataStateFormat.write(MetaDataStateFormat.java:136)
at org.elasticsearch.gateway.MetaStateService.writeIndex(MetaStateService.java:135)
at org.elasticsearch.gateway.GatewayMetaState.clusterChanged(GatewayMetaState.java:160)
at org.elasticsearch.gateway.Gateway.clusterChanged(Gateway.java:185)
at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:610)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:772)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Issue 2:
Hi,

This is about documentation probably in tips and tricks section. Sometimes there could be duplicates in documents. Documentation about

How do we detect duplicates (pre and post index)

How to avoid/remove them?

Is it possible to have a document in more than one type? {"title": "Doc title", "_type": ["type1", "type2"]}

I used document content (fields) to generate a Hash and stored it with document. Used the computed hash to detect dupplicates and avoided adding them again.
Issue 1:
I've encountered an inconsistent behavior with Request::getBaseUrl method when the Request URI does not include the SCRIPT_NAME (due for example to an apache url rewrite), but it includes a segment of the SCRIPT_NAME path.

In RequestTest.php, if I add this data to the getBaseUrlData data provider, testGetBaseUrl fails:

//Test Fails
array(
'/webmaster',
array(
'SCRIPT_FILENAME' => '/foo/bar/web/index.php',
'SCRIPT_NAME' => '/web/index.php',
'PHP_SELF' => '/web/index.php',
),
'', //getBaseUrl Fails, '/web' returned
'/webmaster', //getPathInfo Fails, 'master' returned
)

because in this case getBaseUrl returns '/web' and not ''. This make getPathInfo fails too (it returns 'master' instead of '/webmaster'),

If the URI does not start with 'web' all works as expected:

//Test passes
array(
'/administrator',
array(
'SCRIPT_FILENAME' => '/foo/bar/web/index.php',
'SCRIPT_NAME' => '/web/index.php',
'PHP_SELF' => '/web/index.php',
),
'', //getBaseUrl
'/administrator', //getPathInfo
)

Issue 2:
Hi,

I have a problem setting the variable _locale in the route prefix.

I have a route like this:

acme_site:
resource: "@acmeSiteBundle/Controller/"
type: annotation
prefix: /{_locale}/
defaults: { _locale: %locale% }
requirements:
_locale: en|it

If I go to www.example.com/en works

but if I go to www.example.com returns me the error of route / not found.

There is a bug? Or I forget something in the configuration?

If I set my locale route by route this problem does not happen.

I Symfony 2.3.1
Issue 1:
I encounter a error output in using np,arange(), in python 3.5, numpy 1.13, windows 10 64 bit.

np.arange(0.24,0.34,0.02)
Out[43]: array([ 0.24, 0.26, 0.28, 0.3 , 0.32, 0.34])

np.arange(0.24,0.36,0.02)
Out[44]: array([ 0.24, 0.26, 0.28, 0.3 , 0.32, 0.34])

np.arange(0,0.16,0.02)
Out[45]: array([ 0. , 0.02, 0.04, 0.06, 0.08, 0.1 , 0.12, 0.14])

np.arange(0,0.14,0.02)
Out[46]: array([ 0. , 0.02, 0.04, 0.06, 0.08, 0.1 , 0.12, 0.14])

np.arange(0.24,0.32,0.02)
Out[51]: array([ 0.24, 0.26, 0.28, 0.3 , 0.32])

np.__version__
Out[48]: '1.13.3'

Issue 2:
If I do np.arange(3.18,3.21,0.01), it gives array([ 3.18, 3.19, 3.2 ]). However, if I do np.arange(3.18,3.22,0.01), it gives array([ 3.18, 3.19, 3.2 , 3.21, 3.22]). This seems inconsistent. Why is this so? I am using numpy 1.11.2 on Python 2.7.13.
Issue 1:
Patrick W. McMichael opened SPR-2196 and commented

In straight MVC (no WebFlow), there is a referenceData method that gets

called when hitting a SimpleFormController in GET mode. This is very useful

for things like pulldown contents on a search form, etc.

However, this method does not get called in POST mode. When your success page is different than

the search page this presents no problem. However, if you want the search results to

show up in a table below the search form, for example, the onSubmit method

would need to do some duplicate calls for that pulldown data, as the form only knows which value in the

pulldown was submitted. We could just have referenceData and onSubmit both delegate

to the same helper method, and then onSubmit would manually add the pulldown

contents to the returned model. What would be really nice would to be able to

control whether or not referenceData was needed in POST mode.

Affects: 1.2.7

2 votes, 3 watchers

Issue 2:
Paul Benedict opened SPR-3729 and commented

The idea that Spring JavaConfig uses Java visibility keywords to expose or hide bean references is an interesting idea. Can that also be implemented in XML?

Example:

<bean id="myBean" class="com...MyBean" visibility="public" />

I don't know what good values would be: public/private? The idea being that when multiple application contexts are combined into a parent, they cannot be seen except from within the child context. I was in a meeting with developers complaining about clashing bean names when combing files. This would help alleviate such situations.

Affects: 2.1 M3

Issue Links:

#5099 Restrict visibility of beans in app context ("duplicates")
Issue 1:
Do you want to request a feature or report a bug?

AFAIK, this is a bug.

What is the current behavior?

When setting checked on a checkbox, the checkbox indeed is checked, but the attribute isn't actually in the DOM. This means that checkbox will be targeted by :checked, but not [checked]. In my case, it is a blocker regarding Selenium-powered tests as we use XPath to target elements and [@checked] therefore doesn't work either.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/reactjs/69z2wepo/).

Check this out: https://jsfiddle.net/cw4hjLav/1/

Quick copypasta from my browser console (I ran those right after loading the fiddle):

document.querySelector('input[type=checkbox]')
<input type=​"checkbox">​
document.querySelector('input[type=checkbox]:checked')
<input type=​"checkbox">​
document.querySelector('input[type=checkbox][checked]')
null

The behaviour is the same with defaultChecked.

What is the expected behavior?

The checked attribute actually is in the DOM whenever relevant.

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

Tried this out with React 15 (the fiddle uses 15.0.1, my app uses 15.1.0), with both Firefox 47.0 and Chromium 50 on Ubuntu 16.04.

I previously stumbled upon #3005 but didn't find the answer there, as my issue doesn't seem to be preventDefault()-related. Thanks a lot!

Issue 2:
Adding a ref to a child element of a stateless component yields a caught TypeError: Cannot read property 'refs' of null. I can see this being really hard to debug. Could there be a better error message there ?
Issue 1:
It has been happening for two days (everything seems fine in PRs), see the failed builds for the 4 latest commits in master:

https://circleci.com/gh/scikit-learn/scikit-learn/17721

https://circleci.com/gh/scikit-learn/scikit-learn/17765

https://circleci.com/gh/scikit-learn/scikit-learn/17776

https://circleci.com/gh/scikit-learn/scikit-learn/17789

The error messages are the same:

rewrite dev/searchindex.js (73%)
ERROR: The key you are authenticating with has been marked as read only.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Exited with code 128

We need to restart to get the build pass

I can't find any relevant information from Circle so I post here

ping @jnothman @lesteve

Issue 2:
Got a heisen travis failure while working on #3173.

The entire travis log is at https://travis-ci.org/scikit-learn/scikit-learn/jobs/25868444

======================================================================
ERROR: sklearn.linear_model.tests.test_omp.test_omp_cv
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/tests/test_omp.py", line 195, in test_omp_cv
ompcv.fit(X, y_)
File "/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/omp.py", line 867, in fit
for train, test in cv)
File "/home/travis/build/scikit-learn/scikit-learn/sklearn/externals/joblib/parallel.py", line 644, in __call__
self.dispatch(function, args, kwargs)
File "/home/travis/build/scikit-learn/scikit-learn/sklearn/externals/joblib/parallel.py", line 391, in dispatch
job = ImmediateApply(func, args, kwargs)
File "/home/travis/build/scikit-learn/scikit-learn/sklearn/externals/joblib/parallel.py", line 129, in __init__
self.results = func(*args, **kwargs)
File "/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/omp.py", line 764, in _omp_path_residues
return_path=True)
File "/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/omp.py", line 371, in orthogonal_mp
copy_X=copy_X, return_path=return_path)
File "/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/omp.py", line 109, in _cholesky_omp
**solve_triangular_args)
File "/usr/lib/python2.7/dist-packages/scipy/linalg/basic.py", line 115, in solve_triangular
a1, b1 = map(asarray_chkfinite,(a,b))
File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/numpy/lib/function_base.py", line 595, in asarray_chkfinite
"array must not contain infs or NaNs")
ValueError: array must not contain infs or NaNs

The test doesn't seem to be always stable.
Issue 1:
Summary of the new feature/enhancement

I would like to see an Insiders edition made that updates daily like VSCode. Otherwise a model similar to MS Edge and VS Code extensions: Monthly: stable, beta: weekly, and alpha: daily.

If not updating from the Store (preferably it wouldn't matter), being able to get changes from either clicking "Update" (manual update) or automatically updating (configurable in settings) would be highly desired. ConEmu has this feature and it's great but I'd prefer Windows Terminal.

Proposed technical implementation details (optional)

ConEmu has it going directly to the github release page. This would probably be best for Windows Terminal as well. We don't have a stable yet but alpha can be auto-built binaries created daily at midnight EST or whatever time the Console team feels is appropriate. Beta would be auto-built binaries made weekly. These auto-built binaries would have a summary listing all PRs (which you could click on and examine yourself if desired) that were made since the last binary. An auto-delete feature would need to be in place for daily binaries to prevent the list from getting too long. Basically once a new binary was built, the previous one would be deleted (with some checks ensuring the build was successful and can be run and logic checking if no PRs were made that day, then don't create a new build).

A clear and concise description of what you want to happen.

In the About dialog or in the new settings UI that's getting built, provide an option to update with a "Check for updates" option. A setting for automatically checking and installing updates if available.

Issue 2:
when i use emacs in terminal, is very very very slow. opposite，i use windows cmd tool is very fast。
Issue 1:
The ability to change the font size in the sidebar was requested via Stack Overflow http://stackoverflow.com/questions/35774918/vs-code-customize-sidebar.

Issue 2:
At the moment, we can only change the font size / font of the editor. If we want to change the font size, we need to use a roundabout method of "zooming in / out". It would be nice if this could be adjusted through the preferences.
Issue 1:
What keywords did you search in Kubernetes issues before filing this one?:

duplicate volumes

volumes

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

BUG REPORT

-->

Kubernetes version (use kubectl version):

Server: v1.3.4

Client: v1.3.0

Environment:

Cloud provider or hardware configuration:

GKE

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

GKE container-vm image

Kernel (e.g. uname -a):

Install tools:

Others:

What happened:

When using "source" as volume name in a pod or deployment spec, it fails with the "spec.template.spec.containers[0].volumeMounts[0].name: Not found: "source"".

What you expected to happen:

kubectl apply -f should not have thrown an error, but deployed the latest volume.

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

Create a pod with at least 2 containers (including init containers)

use an emptyDir volume named "source"

create this pod or deployment

Anything else do we need to know:

When adding a second volume definition with the same name it works.

Does not work:

- name: source
emptyDir: {}

Does work:

- name: source
emptyDir: {}
- name: source
emptyDir: {}

Does also work:

- name: source2
emptyDir: {}

As a sidenote. Applying the duplicate volumes works and getting the yaml from the apiserver actually only returns one volume.

Issue 2:
We leave tons of dead containers around when kubecfg deletes pods. We should cleanup those dead containers.

I have a pending PR for this.