WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
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.6/2.7.7

Operating System version: Windows 10

Java version: 1.8

Steps to reproduce this issue

从2.7.4.1升级到2.7.6或者2.7.7

启动服务提供者

提示无法启动，DubboBootstrapApplicationListener重复注册

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

Expected Result

正常启动

Actual Result

无法启动，抛出异常，DubboBootstrapApplicationListener重复注册

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

2020-05-30 23:30:40.991 [main] WARN [AbstractApplicationContext:558] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.support.BeanDefinitionOverrideException: Invalid bean definition with name 'dubboBootstrapApplicationListener' defined in null: Cannot register bean definition [Generic bean: class [org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener]; scope=singleton; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] for bean 'dubboBootstrapApplicationListener': There is already [Root bean: class [org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] bound.
2020-05-30 23:30:41.005 [main] INFO [ConditionEvaluationReportLoggingListener:136] -

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-05-30 23:30:41.009 [main] ERROR [LoggingFailureAnalysisReporter:40] -

APPLICATION FAILED TO START

Description:

The bean 'dubboBootstrapApplicationListener' could not be registered. A bean with that name has already been defined and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

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

Environment

nacos-spring-boot-starter:0.2.1

spring-boot-starter:2.1.x

dubbo:2.6.5

Expected Result

This problem is that spring-boot-2.1.x use tomcat-embed 9.x.And in that version has no Connector.setProtocol in it.

this is the error message:
An attempt was made to call the method org.apache.catalina.connector.Connector.setProtocol(Ljava/lang/String;)V but it does not exist. Its class, org.apache.catalina.connector.Connector, is available from the following locations:
Issue 1:
Ramsey Lubbat opened SPR-3427 and commented

When using FreeMarker's capability to use JSP taglibs in FreeMarker templates, two of the Spring form tags, errors and option, do not render their output.

To reproduce, configure your SpringMVC application for FreeMarker views. The standard documentation should help with this.

Then, in one of your FreeMarker templates, assign the Spring form taglibs and try to use the errors or option tag:

<#assign form=JspTaglibs["http://www.springframework.org/tags/form"]/>

<@form:form>

<@form.errors path="name" />

<@form.input path="name" />

<br/><input type="submit" />

</@form:form>

Make sure a form validation error occurs for the value you submit. When the page is displayed again, with the form errors, no error message is rendered at all. By using the debugger, we see that the tag is doing the correct thing (looking up the error message and outputting a span element with the resolved message), but the output never makes it to the response. You see no error message on the page.

We think that these two tags do not render because they extend AbstractHtmlElementBodyTag and the TagWriter usage interacts poorly with FreeMarker's TagTransformModel and Environment classes. Sorry for the lack of a more explicit explanation, but essentially, the output writer that TagWriter is constructed with gets swapped around by FreeMarker, so the output from the tags never gets written to the response.

To solve this problem, one of our engineers came up with the solution to extend ErrorsTag and OptionTag, overloading the renderDefaultContent() method to call the base class method with a new TagWriter constructed with pageContext.getOut(). I'll attach our fix.

Affects: 2.0.3, 2.0.4

Attachments:

ErrorsTag.java (756 bytes)

Issue Links:

#7888 form:errors tag does not render in freemarker view ("is duplicated by")

#8634 JSP taglib with FreeMarker doesn't print errors ("is duplicated by")

Issue 2:
Jan Novotný opened SPR-5177 and commented

Using ConfigurableMimeFileTypeMap I found out, that for any file with extension "css" - ie. HTML stylesheets method getContentType(...) returns "application/x-pointplus" instead of expected "text/css". Firefox gets confused and refuses such stylesheets.

Problem is in double definition of mimetype for extension "css" in mime.types file included in spring.jar in package org/springframework/mail/javamail/

Exactly:

TEXT TYPES

text/x-speech	talk

text/css	css

and then:

PRESENTATION

PowerPoint presentation (Microsoft)

application/mspowerpoint	ppz

PointPlus presentation data (Net Scene)

application/x-pointplus	css

ASAP WordPower (Software Publishing Corp.)

application/x-asap	asp

Astound Web Player multimedia data (GoldDisk)

application/astound	asn

Next definition overwrites the previous one, which IMHO is more important.

Affects: 2.5.5

Issue Links:

#9587 Duplicate mappings in org/springframework/mail/mime.types ("duplicates")
Issue 1:
I've put together a very simple preset for Node 5.0. I'm using this in production and will keep it closely tracked to Babel 6 releases. So far, it seems to be working well, and is chipped a few ms off my response times and in some cases, knocked a few seconds of gulp times by avoiding unnecessary transpilation / using Node 5 native features.

https://www.npmjs.com/package/babel-preset-node5

Have I missed anything obvious in "key features"? I've used this compatibility table

Issue 2:
Please, can anyone help me?

I have this package: https://github.com/xbrain-dev/xbrain-validate

When I install it in a react-native project the following error happens:

/Users/diegovieira/Sites/ConexaoClaroBrasilMobile/node_modules/xbrain-validate/dist/xbrain-validate.min.js: Couldn't find preset "@babel/preset-env" relative to directory "/Users/diegovieira/Sites/ConexaoClaroBrasilMobile/node_modules/xbrain-validate"
Issue 1:
Issue Type:

Bug Report

Ansible Version:

1.7.2

Environment:

Debian Sid

Summary:

Using the gist at https://gist.github.com/anonymous/dc1de03995dc9ae147af in ansible 1.7.1 correctly forces a line with synchronous_standby_names='' in it.

With 1.7.2, it enforces a line with synchronous_standby_names=.

I have confirmed it is definitely a difference between 1.7.1 & 1.7.2 by swapping between:

sudo dpkg -i /var/cache/apt/archives/ansible_1.7.1+dfsg-1_all.deb

sudo dpkg -i /var/cache/apt/archives/ansible_1.7.2+dfsg-1_all.deb

Looking at the patches debian applies, that shouldn't be related. Time for a git bisect!

Steps To Reproduce:

Use the task in the linked gist.

Expected Results:

A line with synchronous_standby_names='' should appear in the file.

Actual Results:

synchronous_standby_names= appears in the file.

Issue 2:
Issue Type: Bug Report

Ansible Version:

$ ansible --version

ansible 1.8 (devel b708267) last updated 2014/08/28 11:27:43 (GMT -700)

Environment:

OS X Mavericks 10.9.4

Summary:

using the word import and a single quote within the lineinfile module places single quotes within double quotes

lineinfile: dest=/tmp/myline.txt line="import g'" create=yes

produces:

import g'"'"'

Steps To Reproduce:

$ cat playtest.yml

---
- hosts: 127.0.0.1
connection: local
tasks:
- name: append line with single quotes and double quotes
lineinfile: dest=/tmp/myline.txt line="import g'" create=yes

run it like this: ansible-playbook playtest.yml

$ ansible-playbook playtest.yml && cat /tmp/myline.txt && rm -f /tmp/myline.txt

Expected Results:

file /tmp/myline.txt should contain this line

import g'

Actual Results:

file /tmp/myline.txt contains this line

import g'"'"'
Issue 1:
VSCode Version: 1.1.1-Insider

OS Version: Win 10

Steps to Reproduce:

Copy HTML code and try ALT+SHIFT+F

Does not work properly.

<h2 class="project_header section_header">
<a class="project_link" href="#"><span>Shopping</span>
</a>
<div class="right_task_actions">
<a href="#"><img class="cmp_share_project" src="/app/app/assets/76084e29cb2cf72b320e888edc583dfb.gif" height="16" width="26">
</a>
<a href="#">
<img class="cmp_task_actions icon" src="/app/app/assets/76084e29cb2cf72b320e888edc583dfb.gif" height="16" width="26">
</a>
</div>
</h2>

Copy/Paste above code and try to press, Format Code shortcut, nothing happens.

Expected behavior is that span would indent below in "a" tag. also that div's and a's ending tags will align but nothing happens.

What would I expect is following:

<h2 class="project_header section_header">
<a class="project_link" href="#">
<span>Shopping</span>
</a>
<div class="right_task_actions">
<a href="#">
<img class="cmp_share_project" src="/app/app/assets/76084e29cb2cf72b320e888edc583dfb.gif" height="16" width="26">
</a>
<a href="#">
<img class="cmp_task_actions icon" src="/app/app/assets/76084e29cb2cf72b320e888edc583dfb.gif" height="16" width="26">
</a>
</div>
</h2>

I have tried also CTRL+SHIFT+X to delete spaces and then do a format again but nothing happened.

Format will not work on following code as well:

<h2 class="project_header section_header">
<a class="project_link" href="#"><span>Shopping</span>
</a>
<div class="right_task_actions">
<a href="#"><img class="cmp_share_project" src="/app/app/assets/76084e29cb2cf72b320e888edc583dfb.gif" height="16" width="26">
</a>
<a href="#">
<img class="cmp_task_actions icon" src="/app/app/assets/76084e29cb2cf72b320e888edc583dfb.gif" height="16" width="26">
</a>
</div>
</h2>

What is the logic behind code formatting, is there anything we can do by config?

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:
Environment

Windows build number: Microsoft Windows [Version 10.0.19041.264]
PowerToys version: v0.18.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce / Actual behavior

deselect "Override Windows Snap hotkeys"

"snap" a window from maximized to left/right to max again, end in "maxed"

select "Override Windows Snap hotkeys"

"snap" the same window from max, one cannot go left/right in the same way, one must first Win-Down to unmaximize it, then one can shift between zones

(top row keypresses are effectively no-ops)

Expected behavior

To more closely mimic the behavior of normal (non-FancyZones) windows snap hotkeys, I expect them to be able to cycle out of maximized explicitly. When the FancyZones snap hotkey Win-Left is called on a maximized window, there is no ambiguity on what the user is trying to do.

(This is a 'tweener between bug and feature-request: while it isn't crashing, its behavior to mimic basic windows hotkey snap behavior is incomplete/different, seemingly unnecessarily.)

Issue 2:
Environment

Windows build number: Version 10.0.19587.1000
PowerToys version: v0.16.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Configure FancyZones to "Override Windows Snap hotkeys"

Choose "Grid" as Zone layout

Maximize a Window using Win+Up. Window is then maximized.

Try to move the Window to the left zone using Win+Left

Expected behavior

Window is moved to the left zone.

Actual behavior

Nothing happens.

This issue refs #387

Screenshots

(Any maximized window - so not attaching a screenshot)
Issue 1:
ℹ Computer information

Windows build number: [run "winver"]

PowerToys version:

PowerToy module:

📝 Provide detailed reproduction steps (if any)

…

…

…

✔️ Expected result

What is the expected result of the above steps?

❌ Actual result

What is the actual result of the above steps?

📷 Screenshots

Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form

Issue 2:
Environment

Windows build number: 10.0.18363.836
PowerToys version: 0.18.2
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run

Steps to reproduce

Open the PowerToys Run dialog and then enter the name of a running application.

Expected behavior

I expect the running program to be listed higher than the option to launch the app again.

Actual behavior

The top option is to launch the app again, rather than switching to the existing window. I understand that this could be the preferred mode in some cases, so maybe this could be an option?

Screenshots

(running word instance is shown in 5th place rather than 1st or 2nd)
Issue 1:
createTestInjector uses bindings that are missing PLATFORM_DIRECTIVES.

This means that if a user defines a component that uses NgIf for example but doesn't specify an explicit dependency via @Component({directives}), it will work in the app but fail in tests.

Issue 2:
Spotted by @teropa and confirmed on my side in the ng2 directives for Bootstrap project (see: ng-bootstrap/ng-bootstrap#115):

I'm getting errors about platform directives like ng-for when using TestComponentBuilder. Seems like they're not "ambient" in the unit tests like they are during normal execution. I can fix it by including CORE_DIRECTIVES in the component, but that seems backward. Any ideas how to make them available?
Issue 1:
reported via private email

g% cat >/tmp/x.go
package main

import (
"time"
)

// fatal error: unexpected signal during runtime execution
func main() {
ch := make(chan struct{})

go func() {
t := time.Timer{}
t.Reset(1)
<-ch
}()

ch <- struct{}{}
}
g% go run /tmp/x.go
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x13f46]

goroutine 5 [running]:
runtime.gopanic(0x5b6c0, 0x2080d2060)
/Users/rsc/g/go/src/runtime/panic.go:426 +0x2a3
runtime.panicmem()
/Users/rsc/g/go/src/runtime/panic.go:42 +0x4e
runtime.sigpanic()
/Users/rsc/g/go/src/runtime/sigpanic_unix.go:26 +0x270
runtime.timerproc()
/Users/rsc/g/go/src/runtime/time.go:194 +0x216
runtime.goexit()
/Users/rsc/g/go/src/runtime/proc.c:1651

goroutine 1 [runnable]:
main.main()
/tmp/x.go:17 +0xe3
exit status 2
g%

Issue 2:
by raheelgup:

Hi,

This is in reference to the crypto/tls package which is very slow and CPU intensive than
it should be.
I had been discussing this here :
https://groups.google.com/forum/?fromgroups=#!topic/golang-nuts/QTDzrcDQmmw

I am using the following example as on the main go docs :
http://golang.org/pkg/net/http/#ListenAndServeTLS

I did a performance check on Windows 7 64 Bit for HTTPS connections and it is surprising
that it really performs badly.
My test methodology is simple, press F5 continously in chrome.
The CPU shot to 25-50% and the RAM also kept on increasing.
During the constant refresh, there are many "Connection was reset" messages.

As against this the normal ListenAndServe example is very stable. I did an ab.exe -n
10000 -c 1000 http://127.0.0.1:PORT/index.html and it completes it in 60-70 seconds. The
MAX CPU touches 9-10% and RAM usage increases a little BIT and after the requests are
complete, it reaches near the previous RAM usage.

Adam from Golang also did a profiling :
(pprof) top10 -cum
Total: 1075 samples
0 0.0% 0.0% 827 76.9% schedunlock
0 0.0% 0.0% 822 76.5% net/http.(*conn).serve
0 0.0% 0.0% 813 75.6% crypto/tls.(*Conn).Handshake
0 0.0% 0.0% 813 75.6% crypto/tls.(*Conn).serverHandshake
2 0.2% 0.2% 578 53.8% crypto/elliptic.(*CurveParams).ScalarMult
0 0.0% 0.2% 495 46.0% crypto/tls.(*ecdheRSAKeyAgreement).generateServerKeyExchange
9 0.8% 1.0% 449 41.8% math/big.nat.div
135 12.6% 13.6% 431 40.1% math/big.nat.divLarge
8 0.7% 14.3% 347 32.3% math/big.(*Int).Mod
2 0.2% 14.5% 343 31.9% math/big.(*Int).QuoRem

So 75% of the time is being taken in handshaking and the rest is probably taken in
dealing with the garbage from that.

SO I am wondering if this can be fixed in the next GO Version.

Regards,
R
Issue 1:
Currently the tabs on SQL Lab queries show green circle when a query is running as well as when a query has successfully finished.

The green circles for "query running" and "query completed" could be made more distinct - different color, or having the "query running" circle be hollow, and the "query completed" one filled in. This would enable users, who might go to SQL Lab and trigger few queries and then want to view results, visually see which of their queries are still running vs. finished.

Screenshot current state:

One query is running one has finished. User sees both as just a green circle.

Issue 2:
Screenshots

Adding the new sample charts from the video_game_sales dataset to a new dashboard in the Edit mode will render the chart with an unexpected error, which seems to come from trying to getting datasource:

The error message says "Cannot find viz object"

Saving the dashboard and refresh the whole page, the charts can correctly render.

How to reproduce the bug

Duplicate a sample dashboard (e.g. "Sales Dashboard" and "FCC New Coder Survey 2018") and check "Also duplicate chart":

Go to dashboard edit mode

Add the chart from the sample dataset

Environment

Latest master

Checklist

Make sure to follow these steps before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if there are any.

I have reproduced the issue with at least the latest released version of superset.

I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

Add any other context about the problem here.
Issue 1:
I have this use case right now:

with flutter command -> can't run app in debug cause of multidex

with Android studio -> run without problem because for debug version it enable multidex by default

So I'm basically force to enable multidex just to be able to run the app in debug from a Flutter project. Flutter should be able to have the same behavior to avoid enabling multidex for nothing.

Issue 2:
Steps to Reproduce

Build app with more than 64K methods.

Logs

The number of method references in a .dex file cannot exceed 64K.

Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html

Recommended Changes

Project template or flutter.gradle script should set the multiDexEnabled property to true, and add the multiDexKeepFile file('multidex-flutter.txt') config file. Example: multidex-flutter.txt

io/flutter/app/FlutterApplication.class
io/flutter/view/FlutterMain.class
io/flutter/util/PathUtils.class

Project template or flutter.gradle script should add the multidex dependency.

implementation 'com.android.support:multidex:1.0.3'

FlutterApplication should have the following addition.

@Override
protected void attachBaseContext(Context base)
{
super.attachBaseContext(base);
MultiDex.install(this);
}

Adding the multiDexKeepFile is important as the FlutterApplication class and its dependencies are required to me in the primary dex file or the Application class may its onCreate lifecycle event.

Flutter 0.5.7 • channel v0.5.7 • https://github.com/slightfoot/flutter
Framework • revision 66091f9696 (7 weeks ago) • 2018-07-09 12:52:41 -0700
Engine • revision 6fe748490d
Tools • Dart 2.0.0-dev.63.0.flutter-4c9689c1d2
Issue 1:
git checkout branch-with-some-file

Open that file in Atom.

git checkout branch-without-that-file

Atom Version: 0.199.0

System: linux 3.19.7-200.fc21.x86_64

Thrown From: Atom Core

Stack Trace

Uncaught Error: ENOENT: no such file or directory, open '/home/jllopis/Documentos/devel/docker/odoo-grupoesoc/addons/partner-contact/partner_gender/models.py'

At events.js:141

Error: ENOENT: no such file or directory, open '/home/jllopis/Documentos/devel/docker/odoo-grupoesoc/addons/partner-contact/partner_gender/models.py'
at Error (native)

Commands

Config

{
"core": {
"autoHideMenuBar": true
},
"editor": {
"softWrap": true,
"fontSize": 14,
"tabLength": 4,
"showIndentGuide": true,
"invisibles": {},
"preferredLineLength": 79
}
}

Installed Packages

# User
atom-terminal, v0.7.0
editorconfig, v1.0.0
language-docker, v1.1.3
language-restructuredtext, v0.5.0
linter, v0.12.2
linter-flake8, v1.4.0
linter-rst, v0.0.3
linter-xmllint, v0.0.5
minimap, v4.9.0
minimap-find-and-replace, v4.2.0
minimap-git-diff, v4.1.2
minimap-highlight-selected, v4.2.3
minimap-selection, v4.2.0
rst-preview-pandoc, v0.1.7
sync-settings, v0.2.2

# Dev
No dev packages

Issue 2:
Some repro steps that I gathered from the existing issues:

Have a file open in branch something that doesn't exist in branch atom

git checkout atom

ENOENT 💥

OR

Have a file open in Atom that will be affected by git rebase

git rebase

ENOENT 👎

OR

Just simply rename a file outside of Atom that's currently open inside of Atom.