WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
After upgrading to vue 1.0.11 I am still experiencing the same class attribute merging problems as in previous versions.

This is a duplicate of #1946.

Issue 2:
What problem does this feature solve?

See https://babeljs.io/docs/en/babel-plugin-transform-react-jsx for more details.

We can have a better JSX experience.

Even we can process all the directives/ref/slot features with vue/jsx functions.

Transform original jsx(...) input to vue.h(...)

What does the proposed API look like?

In:

/** @jsxImportSource vue */

const profile = (
<div>
<img src="avatar.png" class="profile" />
<h3>{[user.firstName, user.lastName].join(" ")}</h3>
</div>
)

Out:

import { jsx as _jsx } from "vue/jsx-runtime";
import { jsxs as _jsxs } from "vue/jsx-runtime";

const profile = _jsxs("div", {
children: [
_jsx("img", {
src: "avatar.png",
class: "profile",
}),
_jsx("h3", {
children: [user.firstName, user.lastName].join(" "),
}),
],
});
Issue 1:
type Boots = 'boots';
let lala = {
nowBoots(saying: Boots): void; // works
nowCats(saying: 'cats'): void; // doesn't works
}

Issue 2:
Specialized signatures needing to be compatible with an overload was an artificial requirement due to issues in #943. Now that we've fixed that, we should consider what we're going to do with this rule.

Could we remove it wholesale? That would potentially be a breaking change, but it seems like good one. Basically, the situations you'd run into this would be where you have something like the following...

function doThing(x: "dog"): Dog;
function doThing(x: "cat"): Cat;
function doThing(x: string): Animal;
function doThing(x: string, y?: string): Moose {
}

Where now we'd check if the implementation was assignable to the specialized signatures and give an error. That seems like a good change.
Issue 1:
Hello, I want to work on a python implementation od clusterdv as described in this paper but with some modifications on, for instance, the way it is structures and the path valley calculation method. I wanted to open this issue to keep track of the progress and to not have duplicated work.

Issue 2:
There seems to be a randomly duplicated alpha from time to time:

======================================================================
FAIL: sklearn.linear_model.tests.test_least_angle.test_lasso_lars_path_length
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\nose\case.py", line 198, in runTest
self.test(*self.arg)
File "C:\Python34\lib\site-packages\sklearn\linear_model\tests\test_least_angle.py", line 298, in test_lasso_lars_path_length
assert_array_almost_equal(lasso.alphas_[:3], lasso2.alphas_)
File "C:\Python34\lib\site-packages\numpy\testing\utils.py", line 811, in assert_array_almost_equal
header=('Arrays are not almost equal to %d decimals' % decimal))
File "C:\Python34\lib\site-packages\numpy\testing\utils.py", line 599, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 6 decimals

(shapes (3,), (4,) mismatch)
x: array([ 2.14804358, 2.01202713, 1.02466283])
y: array([ 2.14804358, 2.01202713, 1.02466283, 1.02466283])
Issue 1:
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Webpack 4.5 cannot be configured to create JavaScript files that both: a) bundle shared modules and b) runs them.

If the current behavior is a bug, please provide the steps to reproduce.

The following markup shows the use case of a large app that has pages that assumes a babel-polyfilled environment and may depend on either React or jQuery or both. A page often has a corresponding Webpack entry that shouldn't redundantly bundle babel-polyfill, React, jQuery, or the Webpack runtime.

<html>
<body>
<!-- Download and run babel-polyfill, fetch polyfill modules, and webpack runtime. -->
<script src="environment.js"></script>
<!-- An ES6 environment should polyfilled -->
<script>console.assert('Map exists.', typeof Map === 'function');</script>
<script>console.assert('Set exists.', typeof Set === 'function');</script>

<!-- Download react, react-dom -->
<script src="vendor-react.js"></script>

<!-- Download and run jquery, and a module that sets it on window -->
<script src="vendor-jquery.js"></script>
<script>console.assert('jQuery exists.', typeof jQuery === 'function');</script>

<!-- Download and run page-specific code that may import react or jquery
without bundling react or jquery in page-a.js -->
<script src="page-a.js"></script>
</body>
</html>

What is the expected behavior?

Webpack 3 and it's CommonsChunkPlugin supported this feature.

Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.

Webpack 4.5, Node 8.2, OS X 10.12.6.

Issue 2:
updated with the latest versions (29.06.2017)

Webpack - 3.0.0

Babel-preset-env - 1.5.2

Node - 8.1.2

OS X - 10.12.5

Current

Tree shaking is not removing imports, not used in the app.

Expected

Tree shaking, removing not used imports.

The test case is a simple app with React & React Router v4. Link component is not used, but the whole router package is bundled.

import React from 'react'
import ReactDOM from 'react-dom'
import { Link } from 'react-router-dom'

ReactDOM.render(
<p>Hey</p>,
document.getElementById('app')
)

Webpack & Rollup test repo
Issue 1:
well, my function's input is ndarray-like and it's output is a scaler. The question is I have no method to apply this function on rolling object.

from sklearn.decomposition import PCA

df = pd.DataFrame({"A": [1, 2, 3, 4, 5, 6, 7, 8], "B": [2, 3, 4, 5, 6, 7, 8, 9]})

def first_variance(X):
pca = PCA(n_components=1)
pca.fit(X)
return pca.explained_variance_

df.rolling(4).apply(first_variance)

The domo is incorrect because the "apply" method only can apply by index or column.

Issue 2:
In #11603 (comment) (the main PR implementing the deferred API for rolling / expanding / ewm), we discussed how to specify table-wise applys. Groupby.apply(f) feeds the entire group (all columns) to f. For backwards-compatibility, .rolling(n).apply(f) needed to be column-wise.

#11603 (comment) mentions a possible API like what I added for .style

axis=0: apply to each column independently

axis=1: apply to each row independently

axis=None: apply the supplied function to the entire table

So it'd be df.rolling(n).apply(f, axis=None).

Do people like the axis=0 / 1 / None idiom? Is it obvious enough?

This is prompted by @josef-pkt's post on the mailinglist. Needing a rolling OLS.

An example:

In [2]: import numpy as np
...: import pandas as pd
...:
...: np.random.seed(0)
...: df = pd.DataFrame(np.random.randint(0, 10, size=(10, 2)), columns=["A", "B"])
...: df
...:
Out[2]:
A B
0 5 0
1 3 3
2 7 9
3 3 5
4 2 4
5 7 6
6 8 8
7 1 6
8 7 7
9 8 1

For a concrete example, get the table-wise max (this is equivalent to df.rolling(4).max().max(1))

In [10]: df.rolling(4).apply(np.max, axis=None)
Out[10]:
0 NaN
1 NaN
2 NaN
3 9.0
4 9.0
5 9.0
6 8.0
7 8.0
8 8.0
9 8.0
dtype: float64

A real example is something like a rolling OLS:

import statsmodels.api as sm
f = lambda x: sm.OLS.from_formula('A ~ B', data=x).fit() # wrong, but w/e

df.rolling(5).apply(f, axis=None)
Issue 1:
Like we have in the default calculator app, an option to keep the calculator window always on top.

Similarly for the other apps by adding an extra button on the left of the window minimize button or somewhere in the title bar.

Or by simply giving a custom shortcut key for that.

** Also, it will be better if the window of that specific app snaps directly into a particular area, just like the calculator app does.

Issue 2:
crutkas: Should look at #49 also for additional feature implementation idea

And #641 for transparency
Issue 1:
The weekly build with nightly wheels from numpy and pandas

has failed. Check the logs for any updates that need to be

made in matplotlib.

https://github.com/matplotlib/matplotlib/actions/runs/4900029117

Issue 2:
Bug summary

When specifying hatches for contourf, the colorbar is drawn correctly for vertical colorbars but not for horizontal ones. The Hatches and colorfill only fill the lower diagonal of the colorbar boxes.

Code for reproduction

import matplotlib.pyplot as plt
import numpy as np

import matplotlib.pyplot as plt
import numpy as np

# invent some numbers, turning the x and y arrays into simple
# 2d arrays, which make combining them together easier.
x = np.linspace(-3, 5, 150).reshape(1, -1)
y = np.linspace(-3, 5, 120).reshape(-1, 1)
z = np.cos(x) + np.sin(y)

# we no longer need x and y to be 2 dimensional, so flatten them.
x, y = x.flatten(), y.flatten()

fig1, ax1 = plt.subplots()
cs = ax1.contourf(x, y, z, hatches=['-', '/', '\\', '//'],
cmap='gray', extend='both', alpha=0.5)

fig1.colorbar(cs, orientation='horizontal')
plt.show()

Actual outcome

Expected outcome

Additional information

The bug occurs when the colorbar is horizontal and the contourf call uses hatches. Changing the kwargs extend, cmap, colors, alpha, etc when calling contourf does not resolve the bug.

The bug does not occur when the colorbar is vertical with hatches nor when the colorbar is horizontal and no hatches are used.

Potential Solution:

In colorbar.py, change line 637 to the following:

xy = np.array([[X[i, 0], Y[i, 1]],

This doesn't cause issues when hatches are not used. It also doesn't cause problems with vertical colorbars.

Operating system

macOS Big Sur Version 11.3.1 with Intel Silicon

Matplotlib Version

3.5.2

Matplotlib Backend

module://backend_interagg

Python version

3.10.5

Jupyter version

No response

Installation

conda
Issue 1:
Cameron Braid opened SPR-1741 and commented

${..} property placeholder is now broken in 2-m2, was working on 2-m1

Affects: 2.0 M2

Issue Links:

#6415 External properties setting fail with abstract beans ("duplicates")

Issue 2:
Chris Beams opened SPR-8108 and commented

cbeams@anakata:~/Work/spring-framework/spring-framework#12721>$ git grep -A5 "<pre>"

replace as appropriate with <pre class="code"> to support proper formatting JavaDoc.

Issue Links:

#14788 Improve presentation of code blocks in Javadoc ("depends on")

#13072 Add syntax highlighting to Javadoc where necessary ("is duplicated by")

Referenced from: commits 2a44228
Issue 1:
Hi,

I customized the navigation bar variables @ http://twitter.github.com/bootstrap/customize.html on the website but these colours were not picked up.

I have spotted that this could possibly be with some variables not present on the page overriding the current variables on the page.

For example, the colour set for the variable @navbarLinkColor gets overriden by the colour set by the variable @navbarInverseLinkColor.

I am reporting this because the variable @navbarInverseLinkColor cannot be set during the customization stage so when a user tries to use the inverted navigation bar, their customization gets overwritten.

Issue 2:
I minilized example of Carousel. It has mistake there like the picture.
Issue 1:
Version

2.6.7

Reproduction link

https://codesandbox.io/s/v8n1p04v85

Steps to reproduce

click the checkbox, the checked data changed, while the checked of the checkbox didn't, thus the UI is different from the data.

This didn't occurred below vue2.6.

What is expected?

the checkbox update wrongly

What is actually happening?

the checkbox update correctlly

Issue 2:
Version

2.6.6

Reproduction link

https://jsfiddle.net/s4ub8dnc/3/

Steps to reproduce

I have a checkbox which needs to get it's checked state from a VueX store, but I also need to be able to determine whether or not shift was being held when the checkbox was clicked. To do this I'm using @click.prevent on the checkbox (so that I have the event being passed to the method) and then using v-model to determine the checked state.

However, regardless of whether or not the v-model value is true or false, the checkbox never gains the checked state if the click is prevented. It seems that there is still a reliance on the click event in order to set the state.

What is expected?

I would expect the checkbox to be checked if the v-model value is set to true, regardless of how the checkbox arrived at that state - by something else setting it to true, or by the click handler setting it.

What is actually happening?

The click binding having .prevent on it stops the checkbox from receiving it's checked state, even when the v-model value is true

The reason why I haven't just used a setter in the computed is because the setter doesn't get given the click event, so I can determine whether or not shift was being held at the point of clicking the checkbox.
Issue 1:
...Which works allright, except when you put them on elements which you want to be display:block-inline.

This technique destroys this option, forcing you to use floats or positions instead for layout.

Why not just rely on set display:none !important when the element needs to be hidden?

Issue 2:
related to issues #8500 , #7808 , #4929 ; using .hidden-sm to hide span within .nav > li > a . Because class is display: block above -sm then text wraps to new line. Would you consider .hidden-* classes to be display: inline-block instead ?

Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... http://jsfiddle.net/jholl/P86yf/
Issue 1:
Bug Report

Current Behavior

A clear and concise description of the behavior.

Input Code

REPL

// this gets transpiled properly
items.map(({bar, ...rest}) => null);
let {bar, ...rest} = x;

// this doesn't
items.map(([foo, {bar, ...rest}]) => null);
let [foo2, {bar2, ...rest2}] = x;

Expected behavior/code

[foo, {bar, ...rest}] being transpiled since Edge doesn't support it.

Issue 2:
This looks superficially similar to #7099 but that one is supposedly resolved in Babel 7 but my bug isn’t. Therefore I’m filing a new one.

Here is a complete repro:

npm i --save @babel/core@7.0.0-beta.37 @babel/plugin-proposal-object-rest-spread@7.0.0-beta.37

Then run in Node shell:

console.log(
require('@babel/core').transform(
`
const { ...rest1 } = {};
const [{ ...rest2 }] = [{}];
`,
{
plugins: ['@babel/plugin-proposal-object-rest-spread']
}
).code
)

Notice how I have two different rest destructurings, but the second one is also inside an array destructuring.

Output:

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

const rest1 = _objectWithoutProperties({}, []);

const [{ ...rest2
}] = [{}];

Notice how ...rest1 got transformed but ...rest2 is left intact.

I expect that ...rest2 is also transformed.

Original issue where this got reported: facebook/create-react-app#3694
Issue 1:
by michael.jones:

Developer noted presence of JSON marshalling/unmarshalling support in Int but not in Rat.

Issue 2:
I would like to propose the addition of a set of functions and supporting data types to support getting / setting terminal window size across platforms.

This would also likely require the addition of something like this to x/sys:

func GetWindowSize(fd int) (winsize *Winsize, err error) {}
func SetWindowSize(fd int, ws *Winsize) (err error) {}
type Winsize struct {
Row uint16
Col uint16
Xpixel uint16
Ypixel uint16
}

On Linux, OS X, etc. this is done via syscalls using ioctl(), etc. On Windows, this is done possibly via GetConsoleScreenBufferInfo and SetConsoleWindowInfo. On Solaris, this is done via libc.ioctl().

Docker (pkg/term/*) and other Go-based projects like to retrieve or set this information, it would be helpful if this was abstracted away for various projects as can be seen in a simple github search of Go source files:

https://github.com/search?utf8=%E2%9C%93&q=%22TIOCGWINSZ%22+extension%3Ago&type=Code&ref=advsearch&l=

I am willing to provide the implementation and tests for Solaris, and Linux, and I can attempt one for Windows.

I have not proposed an addition before to any of the Go packages or tools, so please forgive me if I have not adhered to the correct process ( I'm attempting to follow https://github.com/golang/proposal#readme ).

I don't know if the sys package is the most appropriate place for this or not; I'm just trying to figure out how to avoid the current situation of duplicating terminal information code across various Go projects in the community leading to them not working as expected or being unsupported on some platforms.
Issue 1:
https://github.com/lightningtgc/material-refresh

It looks pretty nice, but it's not a react component

Issue 2:
I want to implement a ListView with Pull to Refresh control like Android.

But I feel confused about how to trigger the event and how to notify the "ListView" to update. I'm not using Flux. Just react. Is there any "ListView with Pull to Refresh" demo? What is the best for controlling the data and event flow if not using any Flux.

It's very urgent, if there is no available code, you can tell me a idea or solution to it?

Thx.
Issue 1:
The google custom search on http://kubernetes.io/v1.1/ gives results for both v1.0 and v1.1, and the 1.0 results are often ranked higher than the 1.1 results. We should either update the custom search config to only crawl the latest version of the docs, or create multiple custom searches so searching from the 1.0 docs will give 1.0 results.

Issue 2:
After changing kubemar-scale to run 2000-node kubemarks (with protobufs), it is failing with errors like these:

14:38:23 [Feature:Performance] should be able to handle 30 pods per node [It]

14:38:23 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/load.go:174

14:38:23

14:38:23 scaling rc load-small-rc-3813 for the first time

14:38:23 Expected error:

14:38:23 <*errors.errorString | 0xc8216acd70>: {

14:38:23 s: "error while scaling RC load-small-rc-3813 to 2 replicas: timed out waiting for the condition",

14:38:23 }

14:38:23 error while scaling RC load-small-rc-3813 to 2 replicas: timed out waiting for the condition

14:38:23 not to have occurred

@davidopp @gmarek @fgrzadkowski @kubernetes/sig-scalability
Issue 1:
The formatting on a .html file is not working if there is for example a <template> tag in it:

<template>
<require from="valueConverters"></require>
<div class="artistView" if.bind="!loading">
<div class="row">
<div class="col-xs-12">
<h3>${artist.name}</h3>
</div>
</div>
</div>
</template>

Without the tag, the formatting is working. Please support any tags here. Thanks.

VSCode Version: 1.1.0

OS Version: Win10

Steps to Reproduce:

Copy my code

paste it in VSCode

press shift + alt + f

code will not be formatted < --- wrong, should be formatted

remove the tags
press shift + alt + f

code will be formatted

Issue 2:
VSCode Version: 1.0.0

OS Version: OSX 10.11.4

Steps to Reproduce:

Try to auto format the following HTML

<template><div>Hello</div><div>World</div></template>

I expect to get something like this

<template>

____<div>Hello</div>

____<div>World</div>

</template>

But it does not work. If I replace the <template> tag with <div> then the auto format works correctly. This issue was not present in the previous version.

Thanks,
Issue 1:
When searching in a directory (via right-clicking on the folder in the left-hand pane), for the string "verify", the message shows "69 results found in 13 files for verify". However, only four files are listed, with the rest of the results not shown. I'm inclined to believe that the text is correct, rather than the results shown, as I know of additional files that contain the string "verify" in that subdirectory that are not displayed.

The folder I'm attempting to search in is greyed out (I'm searching a subdirectory of the "vendor" directory, in a Symfony 2 PHP project), but I have the "Exclude VCS Ignored Paths" option unchecked in my settings. The problem also occurs when atom is run with the --safe switch and occurs whether or not the regex option is used.

I'm doing this in Window 8.1 with Atom 0.153.0 installed via Chocolatey.

Please see the screenshot below (some directory names have been redacted).

Issue 2:
I'm looking for a word in a project. I know the first result doesn't have what I want. I hide the first result, but there are no more results. I need to scroll to trigger the rest of the results to be fetched, and then I can hide the first listing.

/cc @benogle
Issue 1:
The following program leaves a hanged goroutine. If a server reloads templates on the fly, this behavior can leads to unbounded number of leaked goroutines.

package main

import (
"html/template"
"time"
)

func main() {
template.New("foo").Parse("{{.")
time.Sleep(time.Second)
panic("who's there?")
}

panic: who's there?

goroutine 1 [running]:
main.main()
/tmp/htmltempl.go:11 +0x297

goroutine 5 [chan send]:
text/template/parse.(*lexer).errorf(0xc2080c2000, 0x5d8290, 0xf, 0x0, 0x0, 0x0, 0xffffff01)
src/text/template/parse/lex.go:165 +0xca
text/template/parse.lexInsideAction(0xc2080c2000, 0x623b78)
src/text/template/parse/lex.go:280 +0xaf7
text/template/parse.(*lexer).run(0xc2080c2000)
src/text/template/parse/lex.go:198 +0x5d
created by text/template/parse.lex
src/text/template/parse/lex.go:191 +0x1b9

on commit ccc76db

Issue 2:
Here is a nice trick to write an enum-like type's constant values:

g% cat x.go
package p

type T int

const (
_ T = iota
T1
T2
T3
T4
)
g%

This has two properties I wanted: (1) the values start at 1, so the zero value is not a
defined value, and (2) all the defined values have the same form on the line, so that I
can pipe them through 'sort' without breaking anything. Compare to

const (
X T = 1 + iota
Y
Z
)

Anyway, this _ trick works well for me.

It works less well for godoc:

g% godoc .
PACKAGE DOCUMENTATION

package p
import "."

CONSTANTS

const (
T1
T2
T3
T4
)

TYPES

type T int

g%

It's a bit confusing that you can't see the _ in the godoc output, since the _ is what
defines the type and value of the constants.

Worse, the constants are not attached to the type T like they normally would be:

g% godoc . T
type T int

g%

If I rename the _ to Dummy, then it works:

g% godoc . T
type T int

const (
Dummy T = iota
T1
T2
T3
T4
)

g%

What's happening here is that _ is treated as unexported and so it filters away.
(Renaming to dummy shows the same behavior as _.)

Perhaps the best fix would be to treat _ as exported for the purposes of godoc filtering
in const lists and possibly also struct fields (where _ is often padding).

I thought about saying that _ should be treated as exported for all filtering, but you
probably don't want to show things like

func _() { ... }
var _ Interface = (*Type)(nil)
Issue 1:
This is a bit of a nitpick, but I think this would improve user-friendlyness.

Currently np.asarray([[1, 2], [2, 3, 4]], dtype=np.float) yields "setting an array element with a sequence."

I think it would be more helpful if it yielded something like "Can't create array from lists. Column length %d of column %d doesn't match column length %d."

I imagine the error bubbles up from somewhere deep in the code and makes perfect sense where it is raised. It is just something that comes up a lot, and a more friendly and / or informative message could be helpful. So maybe we could catch it further up and include more information if possible.

Issue 2:
Someone using my code reported this error message, and I would have been able to track down the problem more quickly if the message had been more informative, maybe like ValueError: setting an irregularly shaped array with a non-object dtype instead of ValueError: setting an array element with a sequence.

>>> import numpy as np
>>> np.array([[0, 1], [2]]).dtype
dtype('O')
>>> np.array([[0, 1], [2]], dtype=int).dtype
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: setting an array element with a sequence.