WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hi,

ClientIP affinity seems to have some issue on Container Engine. Once you scale down a replicas set linked to a service with session affinity and GCE external load balancer, sticky session doesn't work anymore.

I tried to create a new cluster to be sure it wasn't any configuration related issue.

Steps to reproduce :

Create a container cluster

Add a replica set (with a pod running http service that show a random id defined on launch) and a service with sessionAffinity set to "ClientIP" and type "LoadBalancer"

scale replicaset to 0. Scale it back to 5.

Try to go on the url exposed on computer. Try the same thing on your phone on another network (for example your mobile data).

The id on the phone change each time your reload the computer page.

Did i miss something ?

Thanks for your help.

Issue 2:
It seems like the sessionAffinity stops working if the rc is deleted and created again after the service was created. (Cluster with two machines on GCE)

Steps to reproduce:

Used following files:

ServerName.yaml

apiVersion: v1
kind: ReplicationController
metadata:
name: servername
labels:
name: servername
spec:
replicas: 10
selector:
name: servername
template:
metadata:
labels:
name: servername
spec:
containers:
- name: app
image: fibheap/printhostname
imagePullPolicy: "Always"
ports:
- containerPort: 80

ServerNameSv.yaml

apiVersion: v1
kind: Service
metadata:
name: servername
labels:
name: servername
spec:
ports:
# the port that this service should serve on
- port: 80
targetPort: 80
selector:
name: servername
type: LoadBalancer
sessionAffinity: ClientIP

Dockerfile

FROM google/nodejs

WORKDIR /app

ADD ./main.js /app/main.js

EXPOSE 80
CMD ["node", "--harmony", "./main.js"]

main.js

// Load the http module to create an http server.
var http = require('http');
var os = require('os');

// Configure our HTTP server to respond with Hello World to all requests.
var server = http.createServer(function (req, res) {
res.writeHead(200, {"Content-Type": "text/plain"});
var ip = req.headers['x-forwarded-for'] ||
req.connection.remoteAddress ||
req.socket.remoteAddress ||
req.connection.socket.remoteAddress;

res.end("CIP:" + ip + " Remote Server:" + os.hostname());
});

// Listen on port 8000, IP defaults to 127.0.0.1
server.listen(80);

// Put a friendly message on the terminal
console.log("Server running at http://127.0.0.1:80/");

create rc and service (describe service to get IP and assure ClientIP is set)

curl multiple times from loadbalancer ip -> pod name should stay the same

delete rc and create again

curl again multiple time -> pod name changes

This is in particularly a show stoping bug for us as we cannot recreate the service without loosing the external IP. #10323

Please let me know if that helps for reproducing. Please feel free to use docker repository fibheap/printhostname directly
Issue 1:
use slot but Has been an error

<!--touchRipple-->
<div @mousedown="handleMouseDown" @mouseup="end()" @mouseleave="end()" @touchstart="handleTouchStart" @touchend="end()" @touchcancel="end()">
<div :style="style">
<circle-ripple :key="ripple.key" v-for="ripple in ripples"></circle-ripple>
</div>
<slot></slot>
</div>

<touch-ripple>
<icon :value="icon" :class="[iconClass]"></icon>
</touch-ripple>

Issue 2:
Version

2.6.11

Reproduction link

https://stackblitz.com/edit/vuejs-template-issue

Steps to reproduce

Using the minimal reproduction link:

Visit the minimal reproduction link

Inspect the document under both "Template Content" headers.

Notice that under the first header the template tags are being stripped.

Notice that under the second header the template tags are being preserved.

To re-create this in a sandbox of your own, you can perform the following:

Create a block level element with the v-pre directive and place template tags a children.

Observe the template tags being removed.

Add any VueJS compiled element as a sibling to the block level element with v-pre.

Observe the template tags are being preserved.

What is expected?

In both cases the presence of v-pre should instruct Vue not to remove the template tags.

What is actually happening?

v-pre is only preserving the template tags when a VueJS compiled element is sibling to the element with the v-pre tag.

I am working on integrating Web Components into VueJS applications and would like to leverage the power of the Shadow DOM.
Issue 1:
I tried to upgrade my cluster through hack/dev-build-and-push.sh, and failed due to endless error messages:

hack/../cluster/../cluster/../cluster/gce/../../cluster/common.sh: line 283: KUBE_TAR_URL: unbound variable

Failure trying to curl release .sha1

hack/../cluster/../cluster/../cluster/gce/../../cluster/common.sh: line 283: KUBE_TAR_URL: unbound variable

Failure trying to curl release .sha1

hack/../cluster/../cluster/../cluster/gce/../../cluster/common.sh: line 283: KUBE_TAR_URL: unbound variable

Failure trying to curl release .sha1

...

Issue 2:
I suspect we're going through an if/else clause where KUBE_TAR_URL isn't defined, and not defaulting it, though the function header seems to indicate it should be set in the callee.

/usr/local/google/home/beeps/goproj/src/k8s.io/kubernetes/hack/e2e-internal/../../cluster/../cluster/../cluster/gce/../../cluster/common.sh: line 283: KUBE_TAR_URL: unbound variable

@ihmccreery
Issue 1:
I also run into this error:

sfu-db/dataprep#231

/miniconda3/lib/python3.6/site-packages/pandas/core/common.py", line 164, in cast_scalar_indexer
if lib.is_float(val) and val.is_integer():
AttributeError: 'numpy.float32' object has no attribute 'is_integer'

with dtype=numpy.double, the code runs fine; shouldn't is_integer be defined for all float types?

version:

numpy 1.17.2

pandas 1.1.3

Linux 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Issue 2:
When assigning arrays inside structured arrays without a left sided [:], only the first element gets actually assigned. This is shown in the following code snippet, where a structured array is initialized with zeros, and then filled by assignment of an array, and the assignment of a structured array. The assignment of the array only assigns the first value, where the assignment of the structured array assigns all values:

In [2]: np.__version__
Out[2]: '1.7.0'
In [3]: struct_dt = np.dtype([
...: ('elem', 'i4', 5),
...: ])
In [4]: dt = np.dtype([
...: ('field', 'i4', 10),
...: ('struct', struct_dt)
...: ])
In [5]: x = np.zeros(1, dt)
In [6]: x[0]['field'] = np.ones(10, dtype='i4')
In [7]: x[0]['struct'] = np.ones(1, dtype=struct_dt)
In [8]: x
Out[8]:
array([([1, 0, 0, 0, 0, 0, 0, 0, 0, 0], ([1, 1, 1, 1, 1],))],
dtype=[('field', '<i4', (10,)), ('struct', [('elem', '<i4', (5,))])])

The expected result is that all elements of x[0]['field'] are 1.

However, x[0]['field'] "recognizes" some part of the assigned array, as it will complain about broadcasting problems for wrong sizes:

In [9]: x[0]['field'] = np.ones(9, dtype='i4')
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-9-80d7cbce6711> in <module>()
----> 1 x[0]['field'] = np.ones(9, dtype='i4')

ValueError: could not broadcast input array from shape (9) into shape (9,10)

As mentioned in the beginning, adding [:] on the left side (In [6]) will correctly set all elements to 1. If the shown assignment is not allowed, I would have expected that an exception gets raised?
Issue 1:
Here's an example folder structure (as silly as it may be)

pages/
- subpage/
- index.js
- subpage.js

If I have a <Link/> point to /subpage/ the client will render the component from subpage.js, but when I refresh the page, I get the subpage/index.js file rendered.

At first I noticed this was an issue with the server routing not working well if the path ends with a /, but then I realized that there are cases in which you may want an index.js in a folder, so it's not necessarily problematic that you get a 404 when you don't have the index.js.

However, when there's a naming collision between a file and a folder, the client and the server behave differently and I think there should be a discussion around this situation, because I can't say there's a clear solution at this point.

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

Expected Behavior

I'm facing a really werid error in express that I have no idea what the reason is. I'm using compression package with a custom server

const express = require('express')
const next = require('next')
const compression = require('compression')

const port = parseInt(process.env.PORT, 10) || 3000
const dev = process.env.NODE_ENV !== 'production'
const app = next({ dev })
const handle = app.getRequestHandler()

app.prepare()
.then(() => {
const server = express()
server.use(compression())

server.get('*', (req, res) => {
return handle(req, res)
})

server.listen(port, (err) => {
if (err) throw err
console.log(`> Ready on http://localhost:${port}`)
})
})

This should work with no problem.

Current Behavior

It works with no errors until I open dev tools (only in chrome)

{ Error: Can't set headers after they are sent.
at SendStream.headersAlreadySent (~/work/app/next.js/examples/custom-server-express/node_modules/send/index.js:390:13)
at SendStream.send (~/work/app/next.js/examples/custom-server-express/node_modules/send/index.js:618:10)
at onstat (~/work/app/next.js/examples/custom-server-express/node_modules/send/index.js:730:10)
at FSReqWrap.oncomplete (fs.js:167:5) expose: false, statusCode: 500, status: 500 }

Steps to Reproduce (for bugs)

Clone the repo and use the custom-server-express folder

Add compression package and use it as a middleware

open chrome at localhost:3000

run the server (there's no error in the log, even refresh)

open Chrome dev (even with no extensions) and refresh

see the error (no error using Firefox).

Context

Your Environment

Tech
Version

next
4 or 5 both

node
9.2.0

OS
OSX 10.13.3

browser
Chrome 64.0.3282.140

etc
Issue 1:
Hello,

Following your documentation

I made a fresh install and the test are failing even before doing any modification to the repository

React version:

The one on master branch

commit: a731a51

Ubuntu LTS

Node v14.16.1

Steps To Reproduce

git clone https://github.com/facebook/react.git

yarn install

yarn test

Link to code example:

I did not do anything yet and I received 3 errors :

The current behavior

The tests are failing

The expected behavior

The tests should pass after a fresh install

Issue 2:
Which website or app were you using when the bug happened?

Please provide a link to the URL of the website (if it is public), a CodeSandbox (https://codesandbox.io/s/new) example that reproduces the bug, or a project on GitHub that we can checkout and run locally.

What were you doing on the website or app when the bug happened?

If possible, please describe how to reproduce this bug on the website or app mentioned above:

Generated information

DevTools version: 4.13.1-93782cfed2

Call stack:

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:21390:41

at bridge_Bridge.emit (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19607:22)

at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19767:12

at listener (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37788:39)

Component stack:

(none)

GitHub URL search query:

https://api.github.com/search/issues?q=Cannot%20add%20node%20%20because%20a%20node%20with%20that%20id%20is%20already%20in%20the%20Store.%20in%3Atitle%20is%3Aissue%20is%3Aopen%20is%3Apublic%20label%3A%22Component%3A%20Developer%20Tools%22%20repo%3Afacebook%2Freact
Issue 1:
Feature summary

I often feel the need to execute the code right after I see the example or tutorials. Having the examples hosted on google colab would certainly help in quickly running the code as well as it will allow beginners to run the code right on the browser if they have no prior experience with python notebook or command-line tools.

Issue 2:
Problem

Matplotlib supports give or take around 60 unique chart types, but there's no distinct listing of these charts. The closest is a listing of all methods on Axes (https://matplotlib.org/api/axes_api.html?highlight=axes#basic) which intermixes other functionality. It's even harder to find the distinct chart types in the gallery, where there are roughly 600? examples.

Proposal

A new stand-alone sphinx gallery page where each plot type gets a minimal example of the form:

data = np.array([list of concrete values])
fig, ax = plt.subplots()
ax.plotting_method(data)

no generated data, no tweaking of the parameters in the plot, just an out of the box this is what this plotting method does. intention is to manage issue via https://github.com/matplotlib/matplotlib/projects/10 by

creating notes for each plot type

replacing with PRs as folks tackle them.

Optional

Create a placeholder folder in the docs for PRs to target these examples so they're not waiting on the new gallery page.
Issue 1:
Manipulating Complex Objects

https://www.freecodecamp.com/challenges/manipulating-complex-objects#

Issue Description

The link to json.org is broken.

https://json.org/ does not work.

Should be http://www.json.org/.

Issue 2:
Challenge Name

https://www.freecodecamp.com/challenges/manipulating-complex-objects

Issue Description

When you click on the link labeled "JavaScript Object Notation", you get a ERR_SSL_PROTOCOL_ERROR.

In the source code, we have: "href='//json.org/'"

By default, the browser replaces "//" by "https://", but the Json.org page doesn't support SSL.

I advise to use "http://www.json.org/" instead.

Browser Information

Browser Name, Version: Chrome (latest), but also reproduced with my Safari

Operating System: Mac OS X

Mobile, Desktop, or Tablet: Desktop

Your Code

Screenshot
Issue 1:
Describe the bug

Our team has used Three.JS to create a Virtual Tour content type that allows content authors to create interactions which enables the user to navigate around a scene, click on interactions and change to different scenes.

We've recently updated our this content type to work with labels which are 2d objects. However after testing in Safari we started to notice that lines would be drawn all over the scene from our labels. These lines go away when you hover over a label again however they keep on coming back and look quite distracting for a user.

Potential fix

I found that by using whole numbers, rather than decimal numbers, for the pixel position of the buttons (which the labels that cause the issue are a child of). This would be done by adding Math.round twice on this line. I've made the change on our fork of the Three.JS library and it has has issue has been gone since.

I was wondering if anyone had noticed any issue like this and if this fix is valid? Or if it's instead caused by another change we made somewhere.

Code

https://github.com/h5p/h5p-three-image/tree/release

https://github.com/h5p/h5p-three-js

https://github.com/h5p/h5p-three-sixty/tree/release

Demo

https://staging.h5p.org/node/622030

Screenshot and video

https://www.screencast.com/t/1J7ZjSWc

Platform:

Device: [Desktop]

OS: [MacOS]

Browser: [Safari]

Three.js version: [Not sure, but was updated Feb 2019]

Issue 2:
Description of the problem

When combining a webgl renderer with a cssrenderer (by punching holes through the webgl renderer to show the css renderer below, there is sometimes a missmatch between the renderers. It looks as if the cssRenderer has a slight offset compared to the webglrenderer. Interestingly enough, this happens on iPhoneX, but not iPhoneSE or iPad Mini4 and also not on android and desktop. Not sure about newer iPhones. The problem is especially present when looking at the css area at a very shallow angle.

The problem is not bound to the css object present (also tried it with a simple ).

There should be no white area around the youtube video:

Video

codepen (latest release branch)

Three.js version

Dev

r118

...

Browser

All of them

Chrome

Firefox

Safari

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

iPhone SE

iPhone 8

iPhone X

iPhone 11 Pro

MacBook Pro with external High DPI Display

iMac
Issue 1:
my demo is like it:

<div class="cart" *ngFor="let mealInfo of mealInfoList;let mealInfoIndex = index" *ngIf="mealInfo?.selectedCount > 0">

the *ngIf desn't work.

<div *ngFor="let a of [11,12,13]" *ngIf="a == 11"></div>

the *ngFor desn't work.

Angular version: 2.0.0-rc1

Issue 2:
Based on #4792, putting multiple template directives on a single element doesn't work on Angular 2. It should throw.

However, this plunk demonstrates that it doesn't throw. Plus, we see 4 instead of 3 buttons, which is rather confusing.

http://plnkr.co/edit/oK47qCG1BnQsC2Qio1ID?p=preview
Issue 1:
Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Searched open and closed GitHub issues.

Read documentation: ShardingSphere Doc.

Please pay attention on issues you submitted, because we maybe need more details.

If no response more than 7 days and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of ShardingSphere did you use?

4.0.0-RC2

Which project did you use? Sharding-JDBC or Sharding-Proxy?

Sharding-JDBC

Expected behavior

the query result is decrypt

Actual behavior

the query result is still encrypt

Reason analyze (If you can)

thie query result not use the encryptRule to decrypt

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

spring:

shardingsphere:

datasource:

names: master,slave0

master:

type: com.alibaba.druid.pool.DruidDataSource

driver-class-name: org.h2.Driver

url: jdbc:h2:mem:dbtest:public;DB_CLOSE_DELAY=-1;MODE=MySQL

slave0:

type: com.alibaba.druid.pool.DruidDataSource

driver-class-name: org.h2.Driver

url: jdbc:h2:mem:dbtest:public;DB_CLOSE_DELAY=-1;MODE=MySQL

sharding:

defaultDataSourceName: dataSource

master-slave-rules:

dataSource:

master-data-source-name: master

slave-data-source-names[0]: slave0

load-balance-algorithm-type: ROUND_ROBIN

encryptRule:

encryptors:

encryptor_aes:

type: AES

props:

aes.key.value: 123456

tables:

company:

columns:

address:

cipherColumn: address

encryptor: encryptor_aes

full_name:

cipherColumn: full_name

encryptor: encryptor_aes

props:

sql.show: true

Example codes for reproduce this issue (such as a github link).

Issue 2:
the profile as below:

spring:

shardingsphere:

props:

sql.show: true

query.with.cipher.comlum: true

datasource:

name: ds0

ds0:

type: org.apache.commons.dbcp.BasicDataSource

driver-class-name: com.mysql.cj.jdbc.Driver

url: jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC

username: root

password: root

max-total: 100

sharding:

tables:

user:

actual-data-nodes: ds0.user_$->{0..4}

table-strategy:

inline:

sharding-column: id

algorithm-expression: user_$->{id % 5}

encrypt:

encryptors:

encryptor_aes:

type: aes

props.aes.key.value: 123456

tables:

user:

columns:

name:

cipherColumn: name

encryptor: encryptor_aes
Issue 1:
The instructions on this challenge need to be updated. The *arity * property is deprecated and not supported on any browser according to:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/arity

Challenge Make a Person has an issue.

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36.

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

My code:

var Person = function(firstAndLast) {

return firstAndLast;
};

var bob = new Person('Bob Ross');
bob.getFullName();

Issue 2:
It's strange that the description for this exercise says "All functions that take an argument have an *_arity *_of 1, and the argument will be a string.", when it's simpler just to say something like "All functions that take arguments, take one argument that is a string". Also I feel that the word "arity" is an outdated word after googling the word and finding out that it used to be a property of functions but is now deprecated
Issue 1:
I see this in 0.10.4. If I press Cancel the app exits (the don't save case). If I press Don't Save the dialog closes but VSCode stays running (the cancel case).

Issue 2:
When attempting to close or change workspace containing unsaved file(s) vscode prompts you to save them (expected) however clicking 'Don't save' results in the same action as clicking 'Cancel'. I.e. the editor remains in the current workspace.

Detected on 0.10.4
Issue 1:
System information (version)

OpenCV => 4.3.0

Operating System / Platform => Ubuntu 20.04 LTS (64 bit)

Interpreter => Python 3.8.2

Detailed description

# Python
import cv2

img = cv2.imread('./lena.jpg', 1)

cv2.imshow('image',img)
cv2.waitKey(0)
cv2.destroyAllWindows()

The above code is not working properly.

Sometimes a new window is opening with a dark small background.

Screenshot of the same has been attached.

Steps to reproduce

According to me, the method cv2.imshow() is not working properly.

Fixing the method would work.

Issue submission checklist

I report the issue, it's not a question

I checked the problem with documentation, FAQ, open issues,

answers.opencv.org, Stack Overflow, etc and have not found solution

I updated to latest OpenCV version and the issue is still there

There is reproducer code and related data files: videos, images, onnx, etc

Issue 2:
Expected behaviour

imshow displays image

Actual behaviour

when calling cv2.imshow(), I mostly get a small window with the correct name but containing only a black screen. It does work sometimes however but it is unpredictable. This issue was not encountered in previous versions of opencv-contrib-python.

Steps to reproduce

example code

import cv2

import os

import imutils

image = cv2.imread("ref_image.png")

cv2.imshow("test", image)

cv2.waitKey(0)

cv2.destroyAllWindows()

operating system : Ubuntu 20.04

architecture (e.g. x86): x64

python version: 3.8

opencv-python version: opencv-contrib-python 4.3.36
Issue 1:
Repro: https://jsbin.com/gebasa/3/edit?js,output

Given:

<input
disabled={true}
type="checkbox"
checked={trueOrFalse}
onChange={alert}
/>

On at least IE11 a double click on checkbox causes onChange to be called. If it's just adding an if statement, normalizing this would be nice. It may also affect other elements/events like <button disabled onClick={f}>, misc screen readers, etc.

Workaround: duplicate the disabled boolean logic in the handler.

The report was from sim1234 on IRC and verified by phi0x.

Issue 2:
Hi. I have a simple component like this:

var MyImage = React.createClass({
render: function() {
return <img src="aaa.jpg" />;
}
});

When I debug it using React dev tools to inspect the React DOM, that's what I see:

This breaks my unit tests, which expect just one <img> element. (I use TestUtils.findRenderedComponentWithType(myImage, 'img');)

This is an issue only with the virtual DOM, browser DOM looks like expected:

Interesting note: When I change the line in render() to return <img src="aaa.jpg">aaa</img>; the element isn't duplicated anymore:

I'm using React 0.12.2.