WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Issue originally made by @Ginden

Bug information

Babel version: 5 (REPL)

Node version: REPL

npm version: REPL

Input code

(function(x, f = () => x) {
var x;
var y = x;
x = 2;
return [x, y, f()];
})(1)

Description

Valid ES2015 behavior: f= () => x should return value of x, regardless of further var x; statement.

Issue 2:
The following snippet:

(function(x, f = () => x) {
var x;
var y = x;
x = 2;
return [x, y, f()];
})(1)

gives [2, null, 1] in Babel. Aside from x shadowing behavior (and what f should resolve to — 1 or 2 (which Babel and FF disagree on)), y definitely shouldn't be null here (as far as I can tell), so this looks like a bug?
Issue 1:
It would be great if there was a tool which could pull out and report on the elements of the virtual dom which match a given key. That would really help in tracking down the causes of error messages like "Invariant Violation: flattenChildren(...): Encountered two children with the same key, .NotTheActual/Key String. Children keys must be unique."

Issue 2:
I'd like to have a function that would reset all the state of react to start rendering from scratch again.

Currently, the code below causes a duplication of virtual dom. The React tab in devtools shows <App /> node twice.

document.body.innerHTML = '<div id="app"></div>';
ReactDOM.render(<App />, document.querySelector("#app"));

// page change

document.body.innerHTML = '<div id="app"></div>';
ReactDOM.render(<App />, document.querySelector("#app"));

It is possible to unmount it before the container element is lost to prevent the duplication of vdom.

document.body.innerHTML = '<div id="app"></div>';
ReactDOM.render(<App />, document.querySelector("#app"));
ReactDOM.unmountComponentAtNode(document.querySelector("#app")); // <--- unmount and remove

// page change

document.body.innerHTML = '<div id="app"></div>';
ReactDOM.render(<App />, document.querySelector("#app"));

However, sometimes it is difficult to bind to an event or change a router code in a legacy app where React is used for rendering a page. The page is destroyed when the router decides to change the page to another and React don't get the same container element again.

Since you can't call ReactDOM.unmountComponentAtNode before the change, nor after the change (before rendering) with the lost container element, it would be useful to have a function to reset all the React state before rendering the new page.

document.body.innerHTML = '<div id="app"></div>';
ReactDOM.render(<App />, document.querySelector("#app"));

// page change

document.body.innerHTML = '<div id="app"></div>';
ReactDOM.reset(); // <--- I don't care about the previous state, I want to render the component from scratch (as there would be no rendering before)
ReactDOM.render(<App />, document.querySelector("#app"));

The name doesn't have to be called reset or be within ReactDOM. The point here is that the rendering should not duplicate virtual dom since the container element was changed.
Issue 1:
I'm am using styled-components in Next.js. When I deploy the app, the first time the UI is rendered, it is unstyled. Only after a refresh does the SSR styles come through and persist.

Implementation based on:

https://github.com/zeit/next.js/tree/canary/examples/with-styled-components

Anyone have ideas? I'm stumped atm :(

https://github.com/stephencorwin/nextjs-hello-world/tree/styled-components-ssr-error

I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

When I deploy the app, any SSR styles should be rendered the first refresh.

Current Behavior

When I deploy the app, the first time the UI is rendered, it is unstyled. Only after a refresh does the SSR styles come through and persist.

First Render:

Second Render:

Steps to Reproduce (for bugs)

Wait 2 mins for it to finish. Don't view the interstitial website with the progress status first.

Go to the website generated by Now -- fantastic feature btw!!!

My <Header />, <Footer />, and globalStyles() in the _document.js are not coming through.

Refresh the page and you will notice the styling has been fixed.

Context

When I deploy the app, I should NOT have to visit the website once to ensure that the SSR styles are generated.

Your Environment

Tech
Version

node
8.7.0

next
4.2.3

styled-components
3.1.6

babel-plugin-styled-components
1.5.0

OS
Windows 10

Issue 2:
I changed the Next.js config to handle the structure like I wanted but, the generated css file won't load the same way.

const app = next({ dir: './src/', dev })

I load my css file like this

<link rel="stylesheet" href="/_next/static/style.css" />

When I put everything outside the src folder, like suggered, it works.

[x ] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

My CSS file must load the same way if I specify a dir path or not.

const app = next({ dir: './src/', dev })

Current Behavior

When I specify a dir path, Next won't load my CSS file compiled with @zeit/next-sass

Steps to Reproduce (for bugs)

Change de dir option of Next.js server side

Use @zeit/next-sass and import a css file into a page

Add the file to an Head

The file won't load

Context

I'm trying to have a cleaner structure. I'm not a fan of all the things at the root level.

Your Environment

Tech
Version

next
5

node
8.10

OS
OSX El Capitain V10.11.6

browser
Chrome 64.0.3282.186
Issue 1:
In vertically oriented catplot, y axis is always reverted in the rightmost panel.

seaborn 0.10.1

Python 3.7.3

Windows

I created a DataFrame as below:

import pandas as pd
concatdf = pd.DataFrame([])
l = list(range(30))
df = pd.DataFrame(l, columns=["value 1"])
df["value 2"] = df["value 1"]
df["category"] = "a"
concatdf = concatdf.append(df)
df = pd.DataFrame(l, columns=["value 1"])
df["value 2"] = df["value 1"]*2
df["category"] = "b"
concatdf = concatdf.append(df)
df = pd.DataFrame(l, columns=["value 1"])
df["value 2"] = df["value 1"]*3
df["category"] = "c"
concatdf = concatdf.append(df)

this concatdf gives this:

import seaborn as sns
g = sns.catplot(x="value 1", y="value 2", hue="category", data=concatdf)

Plotting with columns="category" with orient="v" is fine.

g = sns.catplot(x="value 1", y="value 2", hue="category", data=concatdf,
row="category",
sharex=True,
sharey=False,
orient="v",
aspect=3, height=1.7)

When I switch x and y, sharex and sharey, orient, in the rightmost panel, y axis (value 1) is totally reverted:

g = sns.catplot(x="value 2", y="value 1", hue="category", data=concatdf,
col="category",
sharex=False,
sharey=True,
orient="h",
aspect=0.3)

Issue 2:
Hi everyone, I'm attempting to plot up data like this into a faceted violin plot with split violins:

# Set up faceted data for plotting using catplot
sample_data = pd.DataFrame({'row': np.random.choice(['a', 'b'], 1000),
'col': np.random.choice(['c', 'd'], 1000),
'hue': np.random.choice(['g', 'h'], 1000),
'a': np.random.choice(['e', 'f'], 1000),
'b': np.random.randn(1000)})

This works fine when I plot a standard vertical faceted plot: all the blue hued violins are on the left, and all the orange violins are on the right:

# Plot horizontal catplot
sns.catplot(x='a',
y='b',
col='col',
row='row',
hue='hue',
data=sample_data,
kind='violin',
split=True,
inner=None,
height=2,
aspect=1.5)

However, when I attempt to plot a horizontal violin plot using the orient='h' parameter, the last facet in the plot will always plot "upside-down" compared to the other facets (e.g. orange on top in the first three facets, blue on top in the last facet):

# Plot horizontal catplot
sns.catplot(x='b',
y='a',
col='col',
row='row',
hue='hue',
data=sample_data,
orient='h',
kind='violin',
split=True,
inner=None,
height=2,
aspect=1.5)

I've tried using hue_order=['h', 'g'] to force the order, but it appears to have no effect on the final facet. What can I do to get all facets to plot in the same order?
Issue 1:
Challenge Set the Font Family of an Element has an issue.

User Agent is: Mozilla/5.0 (Linux; Android 5.0.2; SM-T350 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.98 Safari/537.36.

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

My code:

<style>
.red-text {
color: red;
}

p {
font-size: 16px;
font-family:Monospace;
}
</style>

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

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

Issue 2:
I just completed a Bonfire and before I could share it, I moved on to the next one. If I go back to the previous page, I'd have to copy/paste my code back into the editor and submit it again to get the option to share it again, creating another entry in the profile page with the same solution.

If there were buttons to share solving a bonfire from the profile page's solution entry, I wouldn't have to redo the bonfire, creating another profile "solution" entry.

I doubt this is a common occurrence, but if it is, this might cut down on duplicate database entries.
Issue 1:
Description of the problem

I have created some points using the following code.

let geometry = new THREE.Geometry();
geometry.vertices.push(new THREE.Vector3( 5, 5, 0));
geometry.vertices.push(new THREE.Vector3( 10, 5, 0));
geometry.vertices.push(new THREE.Vector3( 15, 5, 0));

geometry.colors.push(new THREE.Color(1, 0, 0));
geometry.colors.push(new THREE.Color(0, 1, 0));
geometry.colors.push(new THREE.Color(0, 0, 1));

let material = new THREE.PointsMaterial({size: 2, alphaTest: 0.5, vertexColors: THREE.VertexColors});
let mesh = new THREE.Points(geometry, material);

Now when i want to convert it using mesh.toJSON() the resulting json doesn't contain the colors for the vertices.

Here is the working jsfiddle.

Three.js version

Dev

r92

...

Issue 2:
The Geometry for a PointCloud object has no faces (it is an empty array). However, JSONLoader.prototype.parse only parses color referenced through the faces. The bit that loops over the vertices ignores color: https://github.com/mrdoob/three.js/blob/master/src/loaders/JSONLoader.js#L182

The consequence of the bug is that PointCloud objects in a JSON file cannot define vertex colors. The following link shows that the JSON defines vertex colors, but the point cloud is rendered black.

http://jsfiddle.net/J7zp4/166/

The next link shows the point cloud rendered with the defined colors. The only difference is line 29 and 30 have been uncommented.

http://jsfiddle.net/J7zp4/167/

So I think that the JSONLoader should check for vertex colors around line 182 (linked above).
Issue 1:
Feature request

Is your feature request related to a problem? Please describe.

A clear and concise description of what you want and what your use case is.

Currently with nextjs9 we can make routes like

root/city/[id].js
root/city/[id]/details.js

this cool.

Describe the solution you'd like

But we can't make routes like:

root/city-[id]/details.js

Describe alternatives you've considered

Additional context

Add any other context or screenshots about the feature request here.

Issue 2:
I can’t see any console.log placed on my component methods after upgrading to 2.3.1 when using npm run dev.

We’re using a custom _document.js and previously included <NextScript />.

We removed <NextScript /> because we noticed it was duplicating the inclusion of Next scripts (e.g. app.js) on the page. After removing it I can’t do console.log on client side when running in development mode.
Issue 1:
Currently, one can set default line properties like color, marker style, line width, etc. with mpl.rcParams. However, the ability to set a default line alpha seems to be missing. It would be great to have 'lines.alpha' as a key in the rcParams dict, similar to 'lines.color', 'lines.marker', etc.

Issue 2:
Bug summary

When you invoke pyplot.show() to show your plot, the plot is not shown but instead crashes Python. This came about when I updated the package 'freetype' in a conda installation, from version 2.10.4 to 2.11.0.

Code for reproduction

import matplotlib.pyplot as plt
plt.plot(1,1)
plt.show()

Actual outcome

Python simply crashes with no error messages.

Expected outcome

It should plot a single point at (1,1) and show that plot.

Operating system

Windows 10

Matplotlib Version

3.4.3

Matplotlib Backend

Qt5Agg

Python version

3.8.12

Jupyter version

N/A

Other libraries

The bug came about when I updated package freetype, from version 2.10.4 to 2.11.0. The output of conda list (before the update):

packages in environment at C:\juhasz-local\Anaconda3\envs\plttest:

Name Version Build Channel

blas 1.0 mkl

blosc 1.21.0 h19a0ad4_0

brotli 1.0.9 ha925a31_2

bzip2 1.0.8 he774522_0

ca-certificates 2021.10.26 haa95532_2

certifi 2021.10.8 py38haa95532_0

cfitsio 3.470 he774522_6

charls 2.2.0 h6c2663c_0

cycler 0.10.0 py38_0

fonttools 4.25.0 pyhd3eb1b0_0

freetype 2.10.4 hd328e21_0

giflib 5.2.1 h62dcd97_0

icu 58.2 ha925a31_3

imagecodecs 2021.8.26 py38ha1f97ea_0

intel-openmp 2021.3.0 haa95532_3372

jpeg 9d h2bbff1b_0

kiwisolver 1.3.1 py38hd77b12b_0

lcms2 2.12 h83e58a3_0

lerc 3.0 hd77b12b_0

libaec 1.0.4 h33f27b4_1

libdeflate 1.8 h2bbff1b_5

libpng 1.6.37 h2a8f88b_0

libtiff 4.2.0 hd0e1b90_0

libwebp 1.2.0 h2bbff1b_0

libzopfli 1.0.3 ha925a31_0

lz4-c 1.9.3 h2bbff1b_1

matplotlib 3.4.3 py38haa95532_0

matplotlib-base 3.4.3 py38h49ac443_0

mkl 2021.3.0 haa95532_524

mkl-service 2.4.0 py38h2bbff1b_0

mkl_fft 1.3.1 py38h277e83a_0

mkl_random 1.2.2 py38hf11a4ad_0

munkres 1.1.4 py_0

numpy 1.21.2 py38hfca59bb_0

numpy-base 1.21.2 py38h0829f74_0

olefile 0.46 pyhd3eb1b0_0

openjpeg 2.4.0 h4fc8c34_0

openssl 1.1.1l h2bbff1b_0

pillow 8.4.0 py38hd45dc43_0

pip 21.2.2 py38haa95532_0

pyparsing 2.4.7 pyhd3eb1b0_0

pyqt 5.9.2 py38ha925a31_4

python 3.8.12 h6244533_0

python-dateutil 2.8.2 pyhd3eb1b0_0

qt 5.9.7 vc14h73c81de_0

setuptools 58.0.4 py38haa95532_0

sip 4.19.13 py38ha925a31_0

six 1.16.0 pyhd3eb1b0_0

snappy 1.1.8 h33f27b4_0

sqlite 3.36.0 h2bbff1b_0

tk 8.6.11 h2bbff1b_0

tornado 6.1 py38h2bbff1b_0

vc 14.2 h21ff451_1

vs2015_runtime 14.27.29016 h5e58377_2

wheel 0.37.0 pyhd3eb1b0_1

wincertstore 0.2 py38haa95532_2

xz 5.2.5 h62dcd97_0

zfp 0.5.5 hd77b12b_6

zlib 1.2.11 h62dcd97_4

zstd 1.4.9 h19a0ad4_0

Installation

conda

Conda channel

default
Issue 1:
Summary of the new feature/enhancement

Allow searching for app to run by it's executable file name or even English name, especially useful for non-English variants of Windows.

Personally every time I want to launch Windows Calculator my muscle memory types calc but that never brings up Kalkulator unfortunately

Issue 2:
Summary of the new feature/enhancement

Product Launcher should support keyboard layout mapping for all system keyboard layouts, for example:

US Keyboard ⟶ Russian Keyboard

Russian Keyboard ⟶ US Keyboard

EDIT: commenting out the part about the keyboard switching since it nor relevant, this problem is present even for languages that don't require to switch keyboard.

Query "ьшскщыщае еуфьы" should display the results of "ьшскщыщае еуфьы" and "microsoft teams" queries.

Query "rfkmrekznjh" should display the results of "калькулятор" and "rfkmrekznjh" queries.

P.S.

Also Product Launcher should search for the localized app names(ms-resource:AppName) like a Windows Search.

Product Launcher:

Windows Search:
Issue 1:
Describe your issue.

I always (since about three days) get this error when install the package.

Reproducing Code Example

pip install scipy

Error message

Using cached scipy-1.10.1.tar.gz (42.4 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
The Meson build system
Version: 1.1.0
Source dir: /tmp/pip-install-1_lvv1l1/scipy_49f6f8770d974237958632829d776336
Build dir: /tmp/pip-install-1_lvv1l1/scipy_49f6f8770d974237958632829d776336/.mesonpy-i8u5z56g/build
Build type: native build
Project name: SciPy
Project version: 1.10.1
C compiler for the host machine: cc (gcc 12.2.1 "cc (Alpine 12.2.1_git20220924-r4) 12.2.1 20220924")
C linker for the host machine: cc ld.bfd 2.39
C++ compiler for the host machine: c++ (gcc 12.2.1 "c++ (Alpine 12.2.1_git20220924-r4) 12.2.1 20220924")
C++ linker for the host machine: c++ ld.bfd 2.39

../../meson.build:1:0: ERROR: Cython compiler 'cython' cannot compile programs

A full log can be found at /tmp/pip-install-1_lvv1l1/scipy_49f6f8770d974237958632829d776336/.mesonpy-i8u5z56g/build/meson-logs/meson-log.txt
+ meson setup --prefix=/usr/local /tmp/pip-install-1_lvv1l1/scipy_49f6f8770d974237958632829d776336 /tmp/pip-install-1_lvv1l1/scipy_49f6f8770d974237958632829d776336/.mesonpy-i8u5z56g/build --native-file=/tmp/pip-install-1_lvv1l1/scipy_49f6f8770d974237958632829d776336/.mesonpy-native-file.ini -Ddebug=false -Doptimization=2
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

SciPy/NumPy/Python version and system information

scipy-1.10.1

Issue 2:
Want to build from source to work on adding a missing distribution (Landau distribution). Following the steps from here. Using the pip+venv workflow. Already cloned the repo and created the virtual environment, run python -m pip install numpy pytest cython pythran pybind11 meson ninja pydevtool rich-click successfully. I am getting an error when running python3 dev.py build, specifically meson.build:1:0: ERROR: Cython compiler 'cython' cannot compile programs. If I look into the log I find:

Compiler stderr:
...
File "/home/me/.venvs/scipy-dev/lib/python3.10/site-packages/pythran/optimizations/pattern_transform.py", line 346, in <module>
getattr(PatternTransform, attr_name) + (known_pattern,))
AttributeError: type object 'PatternTransform' has no attribute 'typePatterns'. Did you mean: 'CallPatterns'?

How can I fix this to build the development version of scipy?

OS: Ubuntu 22.04.

Python: 3.10.6
Issue 1:
As suggested below this report is moved to http://stackoverflow.com/questions/42123253/angular-2-local-development-environment-runs-only-once-after-install-reproducib

It should be noted that having the "Report Issues" link on pages such as https://angular.io/ go to https://github.com/angular/angular/issues ends up wasting lots of people's time for Angular issues deemed not appropriate here.

Issue 2:
If I write something like this:

<tbody *ngFor="#item of [1,2,3]" myTableRow></tbody>

that uses the following component:

@Component({
selector: '[myTableRow]',
template: '<tr><td>test</td></tr>'
})
export class MyTableRow {}

then it produces invalid HTML, there will be two nested tbody tags, like this:

<tbody mytablerow="">
<tbody>
<tr><td>test</td></tr>
</tbody>
</tbody>

(In the real application I use this to group together multiple tr tags in a tbody, and the table has many tbody tags after each other)

I get all kinds of malformed tables because of this, and it also breaks the usual table > tbody > td CSS rules, and is actually invalid HTML.

This worked fine with alpha.46, but has been broken since alpha.47.

Demo here: http://plnkr.co/edit/myYJZf6ZZj1ofhIcNj7E?p=preview
Issue 1:
Description of the problem

Feature request: Add modelViewProjection matrix to all shaders as a global uniform. Right now every vertex shader I see using three js has to do a projectionMatrix * modelViewMatrix in order to get the object to clip position.

The multiplication should be able to be done on the CPU in something like a onPreRender callback and sent down to the shader as a mat4 modelViewProjection uniform. This saves a matrix multiply in the vertex shader. The clip position can then be computed via modelViewProjection * objPosition.

Three.js version

r106

Browser

All of them

OS

All of them

Issue 2:
Right now shaders do this to transform a vertex:

gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );

Instead we could have this, saving one matrix multiplication per transformation:

gl_Position = modelViewProjectionMatrix * vec4( position, 1.0 );

So we introduce a new premultiplied uniform mat4 modelViewProjectionMatrix.

Any comments?
Issue 1:
Paul Bacsik opened SPR-5578 and commented

@Autowired is capable to handle private Fields, setting Fields with <property declaration is not possible. Two reasons why it should be possible:

Information Hiding, for the user of the class there must not be the possibility to call the setter.

@Autowired is the annotation part of <property, since it should behave identically .

Affects: 2.5.6

Issue Links:

#7294 add support for field injection ("duplicates")

Issue 2:
Sivakumar opened SPR-4844 and commented

Can any send the replacment method for the public static int countParameterPlaceholders(String str,

char placeholder,

String delimiters) in the spring 2.5.4

Issue Links:

#9521 Replacement method for JdbcUtils.countParameterPlaceholders in spring 2.5.4 ("is duplicated by")

#9527 New method for public static int countParameterPlaceholders(String str, char placeholder, String delimiters) in the spring 2.5.4 ("is duplicated by")
Issue 1:
Version

2.6.10

Reproduction link

https://github.com/lusarz/scoped-css-inheritance-issue

Steps to reproduce

Create generic component (VPanel) with slot, and .title class

Use VPanel as root of specific component (VSamplePanel)

Define div with class .title inside specific component

What is expected?

Div with class .title created inside VSamplePanel shouldn't inherit styling from VPanel (font-size in provided example)

What is actually happening?

Div with class .title inside VSamplePanel inherits styling from VPanel (font-size: 48px).

I need to create some generic components like card, panel etc in project. I don't want to care about name of classes used in these generic components when writing it's instances.

Issue 2:
I know you can access transition hooks by:

Vue.transition('fade', {
beforeEnter (el) {
console.log('beforeEnter', el)
},
enter (el) {
console.log('enter', el)
},
afterEnter (el) {
console.log('afterEnter', el)
},
enterCancelled (el) {
// handle cancellation
},

beforeLeave (el) {
console.log('beforeLeave', el)
},
leave (el) {
console.log('leave', el)
},
afterLeave (el) {
console.log('afterLeave', el)
},
leaveCancelled (el) {
// handle cancellation
}

})

But we use vue-router and have: <Router-view transition="fade" transition-mode="out-in"></Router-view>

What we want to do is initialise some javascript on afterEnter but only some of the pages need this. I could set up a 2nd transition with hooks Vue.transition('fadeWithInit', {...}) but this means i need to duplicate my CSS and all the functionality from the other Vue.transition('fade', {...}) as well.

It would be nice if we could access the hooks in a component level like:

<script>
export default {
data () {
return {...}
},

transition: {
'fade': {
afterEnter () {
...initialise javascript here and inherit all the other hooks
}
}
}
}

</script>
Issue 1:
In some situations we would like to use kubernetes without needing a docker registry. We store images on a shared nfs file system by using docker export -o container.tar some-container. On docker hosts we then import that image using docker import and run the container.

It would be great if kubernetes could also support this so dependency on public internet access to the docker hub and running an internal registry are not required.

cc: @dchen1107

Issue 2:
This would make distribution of cluster components packaged in docker images much easier. Right now component images are downloaded in tarfile format and unpacked by salt/bash. This should be a concern of cluster deployment but is currently entangled with node deployment. We should support this in the node API.

@bgrant0607 @dchen1107 @roberthbailey