WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
In the jsfiddle http://jsfiddle.net/69z2wepo/3536/

there is a setState in componentWillMount and this setState should call this.loadData since this.loadData is passed as callback to setState. But loadData is never called. See console logs. It prints only "componentWillMount called"

Issue 2:
Calling setState in componentWillMount doesn't behave as I would expect. Here's a fiddle demonstrating. In short, the callback is invoked before the state has been updated.
Issue 1:
The same changes suggested in issue #13480 should be applied to popovers.

Adding a bit of info to the item with aria-describedby to the popover would help signal to Assistive Technology, like screen readers, that element getting targeted by the tooltip that it is better described by this other DOM thing. This is illustrated on paypal/bootstrap-accessibility-plugin source line 52

Changes that would need to happen:

Create an unique ID / or use for the target element on show

Add an aria-describedby="elementId" on the element on show

We already have role="tooltip" 👍

Issue 2:
Adding a bit of info to the item with aria-describedby to the tooltip/popover would help signal to Assistive Technology, like screen readers, that element getting targeted by the tooltip/popover that it is better described by this other DOM thing. This is illustrated on paypal/bootstrap-accessibility-plugin source line 32

Changes that would need to happen:

Create an unique ID / or use for the target element on show

Add an aria-describedby="elementId" on the element on show

We already have role="tooltip" 👍
Issue 1:
Description of the problem

This form is for three.js bug reports and feature requests only.

This is NOT a help site. Do not ask help questions here.

If you need help, please use the forum or stackoverflow.

Describe the bug or feature request in detail.

Always include a code snippet, screenshots, and any relevant models or textures to help us understand your issue.

Please also include a live example if possible. You can start from these templates:

jsfiddle (latest release branch)

jsfiddle (dev branch)

codepen (latest release branch)

codepen (dev branch)

Three.js version

Dev

r106

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

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

Issue 2:
#my code block

import * as THREE from 'three';

new THREE.MeshBasicMaterial({
color: this.getRandomColor(),
program: this.particalRender
});

and then, see this problem
Issue 1:
Hi i'm new on flutter, when i'm building apk for the first time the armeabi-v7a lib was there, but in my second time armeabi replaced by arm64. zenfone cannot install my aplication, but its working on xiaomi.

my app only use simple widget like textfield, button, scaffold, nothing fancy.

can use armeabi-v7a forcefully?

Issue 2:
Status

9/9/22: Work- in-progress

Description

When I try to invoke a platform channel method from a custom spawned isolate, the app crashes badly (both on iOS and Android). I'm trying to figure out whether this is expected or not.

If it's not, it's probably worth to mention that somewhere.

Anyways I think that this can potentially be a strong limitation. Is there a way to be able to call platform plugins from a secondary isolate?

PRs

iOS Engine - flutter/engine#35174

iOS Framework - #109005

Reland iOS Framework - #111320

Android Engine - flutter/engine#35804

Android Framework - #111279

Add macOS platform channel integration tests - #110606

Desktop Engine - flutter/engine#35893

Desktop Framework - #110882

Add samplecode - #112235

Update website documentation - flutter/website#7592

Make it work with plugins that require a dart plugin registrant - #112240
Issue 1:
Salute,

currently the GP module does not allow to use multiple input feature with the same value. At least from the math point of view there is no need for this restriction. Though, I didn't go through the whole implementation to see if there is something special about it that would require this restriction. I tested it on some dummy problem (with noisy data) with and without multiple equal inputs and it worked fine and, not surprisingly, even better when using duplicates (more data yeay!).

Any reasons to keep it?

Issue 2:
I would like to suggest that the LOF score which is calculated and stored in the LOF class as negative_outlier_factor_ is publicly accessible.

scikit-learn/sklearn/neighbors/lof.py

Line 193
in
18cf2e5

self.negative_outlier_factor_ = -np.mean(lrd_ratios_array, axis=1)

With this change it would be possible to not only use the 1 and -1 for no outlier and outlier as result of the LOF algorithm but also the LOF score. Possible usage scenarios would be a visualisation for more interpretable results, another way to calculate the threshold, manual setting of the threshold...

If the community agrees with the change, I could make the modifications and submit a PR.
Issue 1:
My intellisense is not showing the same behavior as what's shown in the v10.10 release notes.

Note here how the @constructor directive is visible at the end of the description, suggesting that perhaps it wasn't parsed.

The name parameter does not show the description, but the type is displayed correctly.

There is no intellisense for the greet function

Do I need to do something to explicitly enable the functionality showcased in the release notes? I tried executing "Reload Javascript Project" both with and without a jsconfig.json file present already.

Issue 2:
More often these days (I have seen this before) my problems/warnings status bar shows 99+ and clicking on it shows all are coming from /Applications/Visual Studio Code - Alpha.app/Contents/Resources/app/extensions/typescript/server/typescript/lib/lib.d.ts

In addition the console prints this:

[Extension Host] diagnostics for file:///Applications/Visual%20Studio%20Code%20-%20Alpha.app/Contents/Resources/app/extensions/typescript/server/typescript/lib/lib.d.ts will be capped to 250 (actually is 588)
Issue 1:
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+java9-periodic/256/consoleText

This looks like a fairly minimal reproduction:

public void testAppendStringIntoMap() {
assertEquals("nullcat", exec("def a = new HashMap(); a.cat += 'cat'"));
}

I'm not super familiar with this code. Does someone else want it or should I grab it?

Issue 2:
Right now Elasticsearch plugins that want ship scripts have to deal with locating the configuration of Elasticsearch so they can run properly. On the other hand in 5.0 Elasticsearch will ship the elasticsearch-plugin command that already does this. If we could allow plugins to register subcommands of elasticsearch-plugin then they wouldn't need to duplicate all that effort.

We certainly could improve support for plugins shipping their own shell and batch scripts but I'm not really a fan of writing more and more and more batch scripts, most of which just figure out where the Elasticsearch code is and then start java.
Issue 1:
Use the proxy object as part of telnet invocation which has been exccluded as part of [3013] (#3013

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.0

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

xxx

xxx

xxx

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.4.1

Operating System version: Window7

Java version: JDK8

Steps to reproduce this issue

Use nacos as a registration center

The configuration of application.properties is as follows

dubbo.registries.one.address=nacos://192.168.99.237:8848

dubbo.registries.two.address=nacos://192.168.99.237:8848?namespace=9f0825ac-0a6a-4907-b5ee-34530ce828b1

Register the service under the different namespaces of nacos

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

Services exist in different namespaces

Actual Result

The service only exists in the first registered namespace

Is it because ip is the same as the port, but the namespace is different, is it considered to be caused by repeated registration?
Issue 1:
The following snippet is valid, as far as I know:

export interface User {
wpUserID: string;
}

The following snippet is also valid, but does not compile, but probably should:

export default interface User {
wpUserID: string;
}

I get errors thrown at me when using TypeScript 1.5-beta:

Error: /Models/User.ts(1,26): Error TS1005: ';' expected.
Error: /Models/User.ts(1,31): Error TS1005: ';' expected.

Issue 2:
Raised on SO. The following is an error:

export default interface Foo {
}

By design or bug?
Issue 1:
VSCode Version: 0.10.12-alpha

OS Version: Ubuntu 14.04

Debugging using Microsoft cpp debugger, but will happen in any "stop-all" style debugger.

Steps to Reproduce:

Compile following C++ code

#include <iostream>
#include <cstdlib>
#include <pthread.h>

using namespace std;
#define NUM_THREADS 5

void *PrintHello(void *threadid)
long tid;
tid = (long)threadid; //set a breakpoint here
cout << "Hello World! Thread ID, " << tid << endl;
pthread_exit(NULL);
}

int main()
{
pthread_t threads[NUM_THREADS];
int rc;
int i;
for (i = 0; i < NUM_THREADS; i++) { //set a breakpoint here
cout << "main() : creating thread, " << i << endl;
rc = pthread_create(&threads[i], NULL,
PrintHello, (void *)i);
if (rc) {
cout << "Error:unable to create thread," << rc << endl;
exit(-1);
}
}
pthread_exit(NULL);
}

Set two breakpoints in the lines with comments "//set a breakpoint here"

press F5 3~5 times

Notice, that if a breakpoint or step causes the threads to switch, the UI does not indicate which thread is currently stepping. Multiple callstacks may be displayed, which can be confusing.

Issue 2:
VSCode Version:0.10.10

OS Version:windows 10

Steps to Reproduce:

type

var a = ENV === 'dev' ? "a" : "b";

" : " is consider as variable type
Issue 1:
Challenge Waypoint: Import a Google Font has an issue.

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0.

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

When each Waypoint loads, the current code appears to be running twice. When I edit the code, it refreshes and displays properly. This has happened on every Waypoint for me so far (I just started from the very beginning today).

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 class="red-text">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:
Challenge http://www.freecodecamp.com/challenges/waypoint-line-up-form-elements-responsively-with-bootstrap has an issue.

I think the problem is happening on all Waypoint pages; the device right side of the screen where the CatPhotoApp page displays the information is being displayed duplicated;

Another point is that the HTML / CSS code is not completely displayed when the page is loaded, it is necessary to click or edit the code so that the code from the previous lesson is displayed correctly;
Issue 1:
With current 0.5 master:

julia> map(Float32, [3,4,5])
3-element Array{Float32,1}:
3.0
4.0
5.0

julia> broadcast(Float32, [3,4,5])
3-element Array{Int64,1}:
3
4
5

We presumably want to return a Float32 array in both cases?

cc: @ViralBShah: this affects the case you asked about in #8450, since my f.(x...) implementation in #15032 is equivalent to broadcast.

Issue 2:
The following code fails with an InexactError():

X = [1,2,3]
Y = [4 5]
broadcast(atan2, X, Y)

whereas

[atan2(x,y) for x in X, y in Y ]

(albeit producing an array of type Any), while

atan2([1,2,3],[4,5,6])

produces an array of Float64.

Can we improve the type inference so that all three cases can generate Float64 arrays? Note that this is needed for #4363 (for @vectorize_2arg to use broadcast).
Issue 1:
Version

2.5.16

Reproduction link

https://codesandbox.io/s/rllvz0m21o

Steps to reproduce

Create a "renderless" component that passes data into the default scoped-slot.

render () {
return this.$scopedSlots.default(this)
},

Have a component that uses the "renderless" component as root and then populates the scoped-slot with its own template.

Have two components with regular slots where one is tunneling the passed content into the second slot. The slots can have different names, it does not affect the issue. Like this:

<slot slot="slotName" name="slotName"/>

Somehow force the "renderless" component to update.

What is expected?

No warning should be shown.

What is actually happening?

It triggers the warning:

Duplicate presence of slot "sep" found in the same render tree - this will likely cause render errors.

found in

---> <MiddleComponent> at /src/components/MiddleComponent.vue

It might also work incorrectly or trigger additional unnecessary re-renders.

The source code responsible for showing the warning was probably meant for detecting the usage of slots inside v-for loops. However, in this case, it seems to be called incorrectly since the slot is only rendered once. The reason for this might be that the rendered flag is not being reset in this situation. Not using a renderless component (doing tunneling outside of a scoped-slot) does not trigger the error. Using scoped-slots instead of regular slots also does not trigger the warning, but that’s because the check is skipped.

This is potentially related to #8546.

Issue 2:
Version

2.5.16

Reproduction link

https://codesandbox.io/s/vn7jz1l1kl

Steps to reproduce

Click the button that says "refresh"

What is expected?

Nothing should happen

What is actually happening?

[Vue warn]: Duplicate presence of slot "default" found in the same render tree - this will likely cause render errors.

I have a component B which accepts a scopedSlot, and a component A which accepts a slot. A is passing in it's slot into the scopedSlot of B

<template slot-scope="scope">
<slot></slot>
</template>

When the component B gets rerendered, I see this warning in the console. B passes a method to the scoped slot which will cause it to rerender when called.
Issue 1:
What is the bug?

When you perform the first post request, everything's fine. Each subsequent request (or a page refresh) leads to a 405 error.

How to Reproduce the error

Here's the minimum code to replicate the error:

Project Structure

templates

index.html

main.py

main.py:

from flask import Flask, render_template
import json

app = Flask(__name__)

@app.route("/")
def home():
return render_template("index.html")

@app.route("/post", methods=["POST"])
def post_test():
return json.dumps({"test": True})

if __name__ == "__main__":
app.run(debug=True)

index.html:

<script>

async function postSomething() {
let options = {
method: "POST",
body: JSON.stringify({ "name": "test" })
}
let request = await fetch("/post", options);
let response = await request.json()
console.log(response)
}
</script>

<button onclick="postSomething()">
Click me!
</button>

What do I expect

I expect to be able to press the button multiple times without getting an error. It seems that Flask puts the form data before the request, which leads to this in the console:

127.0.0.1 - - [10/Sep/2022 12:09:52] "{"name":"test"}GET / HTTP/1.1" 405 -

I tested the same behaviour with Tornado, which gave me the correct expected result. Here's the minimal code for Tornado:

import asyncio
import tornado.web
import tornado.template

class MainHandler(tornado.web.RequestHandler):
def get(self):
self.render("templates/index.html")

class PostHandler(tornado.web.RequestHandler):
def post(self):
self.write({"test": True})

async def main():
application = tornado.web.Application(
[(r"/", MainHandler), (r"/post", PostHandler)],
debug=True,
)
application.listen(5000)
await asyncio.Event().wait()

if __name__ == "__main__":
print("Running Main")
asyncio.run(main())

Environment:

Python version: 3.9.13

Flask version: 2.2.2

Issue 2:
With the following example:

from flask import Flask

app = Flask(__name__)

@app.route('/', methods=['POST'])
def hello_world():
return 'Hello World!'

if __name__ == '__main__':
app.run()

When you set the request body to {} with Postman or any HTTP clients, the first request will return 200, while the second request will return a 405 error response. The log shows the request method is {}POST:

"{}POST / HTTP/1.1" 405

Notice the request body became the part of the request method.
Issue 1:
We got the following warning message:

warning: variant is never used: `Foo`, #[warn(dead_code)] on by default

For this code:

enum Something {
Foo,
NotFoo
}

fn main() {
match Something::NotFoo {
Something::Foo => {}
_ => {}
}
}

This warning could mislead users because for them, the Foo variant is used. Adding a specific warning message could be nice.

@eddyb proposed this message instead in this case:

"this variant is never instantiated"

cc @eddyb

Issue 2:
mod a {
#[deriving(Show)]
pub enum E {
Variant1,
Variant2,
}
}

fn main() {
let x = a::E::Variant1;
let y = match x {
a::E::Variant1 => 1i,
a::E::Variant2 => 2i,
};
println!("Hello world: {}", (x, y));
}

produces:

<anon>:5:9: 5:17 warning: variant is never used: `Variant2`, #[warn(dead_code)] on by default
<anon>:5 Variant2,
^~~~~~~~
Issue 1:
In the resulting output of customized Bootstrap 3 CSS, the styles for .fade.in come after .modal-backdrop.in

This causes the opacity of the modal backdrop to become 1.0 instead of 0.5, giving the appearance of a totally black backdrop instead of a faded page.

Issue 2:
Hi!

I just generated a customized version and the modal background is totally black (I also generated a version without any change to be sure it wasn't me that caused that):

The download link on the home page does have transparency:
Issue 1:
OpenCV 4.0.0 alpha cannot be easily included in a /clr or /clr:pure Visual Studio project, because of the new native use of <mutex>, which is forbidden in that case.

It would be easy to fix it, using a cv::Mutex wrapper around std::recursive_mutex (instead of straight typedef), with an opaque implementation that would only include <mutex> in the cpp file.

But would such a patch be accepted ?

Issue 2:
System information (version)

OpenCV => 3.4.1

Operating System / Platform => Windows 64 Bit

Compiler => Visual Studio 2017

Detailed description

I can not compile quite simple OpenCV project with CLR on Visual Studio 2017. It gives me "< mutex > is not supported when compiling with /clr or /clr:pure." error.

Steps to reproduce

Start a new empty C++ project on Visual Studio 2017.

Try to read and show an image.

Go to project properties -> Configuration Properties -> General -> Common Language Runtime Support -> Select Common Language Runtime Support (/CLR)

Try to build.
Issue 1:
Apache Airflow version: 1.10.9

**Kubernetes version: 1.15.11

Environment:

Cloud provider: Google Cloud

What happened:

I started to notice that Airflow webserver performance degrades over time. At one moment all my webserver pods had 100% CPU used, so UI and API became too slow, even unusable.

I started to investigate this issue and looks like it depends on amount of task instances stored in DB. I had 100,000+ of them in the task_instance table. When I checked what process took full CPU on webserver pods, that was a gunicorn. After I cleaned up task_instance table, CPU usage dropped to nothing. Right now I have 30,000 tasks completed and see CPU spikes again.

Also this issue seems to go away if I disable all my DAGs. Looks like webserver has some query which executes from time to time and consumes all the CPU.

What you expected to happen:

Amount of completed tasks do not influence the webserver performance.

How to reproduce it:

Generate 100,000 tasks and have 10 enabled DAGs in Airflow. Webserver CPU usage will be high, web becomes unusable.

Issue 2:
Apache Airflow version: 1.10.7

Kubernetes version (if you are using kubernetes) (use kubectl version):

Environment: local

Cloud provider or hardware configuration: 3Ghz Intel Core i5, 16GB

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

Kernel (e.g. uname -a): Linux debian 4.9.0-12-amd64 #1 SMP Debian 4.9.210-1 (2020-01-20) x86_64 GNU/Linux

Install tools:

Others:

What happened:

Traceback (most recent call last):

File "/usr/local/bin/airflow", line 26, in

from airflow.bin.cli import CLIFactory

File "/usr/local/lib/python3.6/site-packages/airflow/bin/cli.py", line 71, in

from airflow.www_rbac.app import cached_app as cached_app_rbac

File "/usr/local/lib/python3.6/site-packages/airflow/www_rbac/app.py", line 26, in

from flask_appbuilder import AppBuilder, SQLA

File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/init.py", line 6, in

from .base import AppBuilder # noqa: F401

File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/base.py", line 8, in

from .api.manager import OpenApiManager

File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/api/manager.py", line 7, in

from flask_appbuilder.baseviews import BaseView

File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/baseviews.py", line 21, in

from .forms import GeneralModelConverter

File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/forms.py", line 17, in

from .fieldwidgets import (

File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/fieldwidgets.py", line 3, in

from wtforms.widgets import html_params, HTMLString

ImportError: cannot import name 'HTMLString'

It seems that after the release of WTForms==2.3.0 webserver doesnt start

Changing it back to WTForms==2.2.1 solves the issue

How to reproduce it:

Use WTForms==2.3.0
Issue 1:
As i use the sharding-sphere in my old project . There is some sql segement like

insert into a (a,b) value(?,?) on duplicate key update a= ? , b = ? + b by use the PreparedStatement

then the sharding-sphere will ignore the last two question symbol , then will cause the parameter 3 not found exception .

As i go through the source code in version 3.0.1-SNAPSHOT and found there is not any logic to handle the placeholder in 'on duplicate key update' , so just support sql like insert into a (a,b) value(?,?) on duplicate key update a= VALUES(a) , b = VALUES(b) .

Does this feature will support sooner , or any consideration for the sql at the beginning.

As i have modified the code to support it .

Issue 2:
Bug Report

Which version of ShardingSphere did you use?

Both 5.0.0-alpha and 5.0.0-beta have this problem.

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

ShardingSphere-JDBC

Expected behavior

Successful execution of sql.

Actual behavior

Unsuccessful execution of sql

Reason analyze (If you can)

N/A

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

Use Oracle 11g,MybatisPlus.

Run the TestdemoApplicationTests will get java.sql.SQLException: getValidColumnIndex.

If you don't use sharding, you will get the correct result.

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

https://github.com/xueshiji/testdemo.git
Issue 1:
for example, one might want to solve issue #4357 with this.

a test program: http://play.golang.org/p/gyk1yehoTp

i think we can treat a nil byte slice as the signal.

Issue 2:
Time.MarshalJSON also encodes uninitialized time.Time values.

It would be better if the encoding was guarded with IsZero() to avoid returning
meaningless times.