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.4

Description

When using Nacos registry & metadatastore & configcenter, we can pass some parameters in the url, such as:

nacos://127.0.0.1:8848?namespace=dubbo&clusterName=DEFAULT&namingLoadCacheAtStart=true

Some parameters can be recognized, while some others can't like namingLoadCacheAtStart.

In my use case, the config item namingLoadCacheAtStart=true is very important to let naocs load local cache files to avoid the crash of Nacos cluster. It will ensure the stability of application.

But the latest version of Dubbo don't support the param of namingLoadCacheAtStart.

I will send a pr to fix this problem.

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.3

Operating System version: windows 10

Java version: 1.8

Steps to reproduce this issue

当将dubbo配置类不放在根包的目录时，用scanBasePackages指定要扫描的包，org.apache.dubbo.config.spring.context.annotation.DubboComponentScanRegistrar类中getPackagesToScan方法返回是dubbo配置类所在的包（即默认值）

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

Expected Result

返回scanBasePackages指定的包

Actual Result

实际上返回的是默认值
Issue 1:
84ee416 (engine roll with containing only skia roll) caused a regression for benchmark complex_layout_scroll_perf__timeline_summary/worst_frame_rasterizer_time_millis from 50ms to 103ms.

If this change is expected the benchmark should be rebased.

/cc @cbracken @liyuqian

Issue 2:
The regression is caused by an engine roll that has only one Skia roll that has only one Skia commit.

See:

https://flutter-dashboard.appspot.com/benchmarks.html

84ee416

flutter/engine#6144

https://skia.googlesource.com/skia.git/+log/2f53025e8bf1..09a7bb222172
Issue 1:
SmallVec is a cool collection (family) that attempts to keep some small constant-sized number of elements in-stack before failing over to heap-allocated Slices.

@aturon has indicated interest in including this, in some form, in libcollections.

Issue 2:
It's often useful to have a vector optimized for storing small sequences. LLVM includes a SmallVector templated type which takes the size to store inside the struct as a template parameter, which isn't possible at the moment in Rust. However, it would be fine to just copy what libc++ does for std::string which is to store 3 words in the struct (size, capacity, and the pointer) and reuse that space for the small string optimization.
Issue 1:
If a python list argument to np.array contains a mixture of int and np.uint64, the array will have dtype=np.float64.

Which results in a loss of information, since values are not exactly representable by float64.

Reproducing code example:

import numpy as np

def print_array(a):
print(a.dtype, a)

large = 2**63 - 1

print_array(np.array([-1, large]))
print_array(np.array([-1, np.int64(large)]))
print_array(np.array([-1, np.uint64(large)]))

Results in:

int64 [ -1 9223372036854775807]
int64 [ -1 9223372036854775807]
float64 [-1.00000000e+00 9.22337204e+18]

NumPy/Python version information:

1.20.1 3.9.2 (default, Feb 20 2021, 18:40:11)
[GCC 10.2.0]

Issue 2:
I expected to get uint64

umax = np.iinfo(np.uint64).max

np.array([umax]).dtype # <-- uint64, as expected

np.array([0, umax]).dtype # <-- float64, surprising

There seems to be something special going on inference-wise around the int64 bound:

imax = np.iinfo(np.int64).max

np.array([imax, umax]).dtype # <-- float64

np.array([imax+1, umax]).dtype # <-- uint64
Issue 1:
Is mfcc support in tensorflow now? I found this https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/mfcc.h

but I can't find this op in Python API in tensorflow.

So is that not open yet? Or it's wrapped in some other Python api?

Issue 2:
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac OS X 10.10.5

TensorFlow installed from (source or binary): binary

TensorFlow version (use command below): 1.2.1

Python version: 3.5.2

There are some very useful audio operations defined in tensorflow/core/ops/audio_ops.cc. It would be great if python client users could access these by default.
Issue 1:
Please have a look at

https://groups.google.com/forum/?fromgroups=#!topic/twitter-bootstrap/O2J2ht6-qoM

so there is no duplication.

Issue 2:
directive block with unrecognised format on line 253 in file 'mixins.less':

[252]: // Multiple shadow solution from http://toekneestuck.com/blog/2012/05/15/less-css-arguments-variable/

[253]: @props: ~"@{arguments}".replace(/[\[\]]|\,\sX/g, '');

--^

[254]: -webkit-box-shadow: @props;

[Done - Failed]

Process finished with exit code -5

2.1.1
Issue 1:
by mseigneurin@aliceadsl.fr:

The http.ResonseWriter exposes a UsingTLS() method which is good, but the other info
stored in the tls.Conn structure is not available. Could the interface be
extended/changed to allow access to more of the TLS properties?

(this is related to https://golang.org/issue/155)

Which compiler are you using (5g, 6g, 8g, gccgo)?
6g

Which operating system are you using?
linux,x86_64

Which revision are you using? (hg identify)
d206790cdd7d tip

Please provide any additional information below.

I can "patch in" by creating a custom Listener that mimics the
tls.Listener and gets the information there, but I can't figure out a
way of propagating that info up the stack to the actual handlers
without:
a) hacking in the http/server.go and adding an accessor there similar
to the way UsingTLS() is implemented - which is not real nice I guess.
or b) writing a custom equivalent of http.conn/http.response, which is
a lot of duplicated code.

Issue 2:
by jnwhiteh:

What steps will reproduce the problem?
1. Run make test on the attached source
2. Note the line number for cache.go in the stack trace

What is the expected output?

The actual invalid memory address/nil pointer dereference happens on line 178. I was
able to verify this by adding debug/panic statements.

What do you see instead?

The stack trace lists cache.go:226, which is actually never reached:

panic: runtime error: invalid memory address or nil pointer dereference

[signal 0xb code=0x1 addr=0x30 pc=0x16951]

runtime.panic+0xac /Users/jnwhiteh/scm/golang.hg/src/pkg/runtime/proc.c:1060
runtime.panic(0x96148, 0xf840001410)
runtime.panicstring+0xa3 /Users/jnwhiteh/scm/golang.hg/src/pkg/runtime/runtime.c:116
runtime.panicstring(0x11cdbf, 0x2a97a)
runtime.sigpanic+0x144 /Users/jnwhiteh/scm/golang.hg/src/pkg/runtime/darwin/thread.c:470
runtime.sigpanic()
jnwhiteh/minixfs.*LRUCache·GetBlock+0x5dc /Users/jnwhiteh/Desktop/minixfs/cache.go:226
jnwhiteh/minixfs.*LRUCache·GetBlock(0xf840025ae0, 0x400000000, 0x0, 0x100000008, 0x18e8a, ...)
jnwhiteh/minixfs.*FileSystem·get_block+0x49 /Users/jnwhiteh/Desktop/minixfs/fs.go:80
jnwhiteh/minixfs.*FileSystem·get_block(0xf84000c820, 0x400000000, 0x0, 0x2a7af, 0xf84001a800, ...)
jnwhiteh/minixfs.*FileSystem·get_inode+0x1ce /Users/jnwhiteh/Desktop/minixfs/inode.go:73
jnwhiteh/minixfs.*FileSystem·get_inode(0xf84000c820, 0x100000000, 0xf84000c7d0, 0xf84000fc30, 0xf84000c780, ...)
jnwhiteh/minixfs.OpenFileSystemFile+0x407 /Users/jnwhiteh/Desktop/minixfs/fs.go:55
jnwhiteh/minixfs.OpenFileSystemFile(0xb1b9c, 0x746f6f620000000c, 0xf840003000, 0xf84001a678, 0x217af98, ...)

Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

Mac OS X 10.6.7

Which revision are you using? (hg identify)

$ hg identify
26a2b651a7a9 tip

Please provide any additional information below.

There was indeed a bug in my program (uncomment line 99 and things work properly) but
it's rather difficult to track down a bug when you're looking 40+ lines away from the
actual issue.

Let me know if I can provide any further information.

Attachments:

badlinenum.zip (477905 bytes)
Issue 1:
I'm submitting a ... (check one with "x")

[X ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

This line here calls '.callFn'. In a unit test, the DynamicTestModule module.ngfactory.js output will be jit_NgModuleInjector0.call(this, parent,[],[]);. This fails because NgModuleInjector is a class and needs to be called with 'new'.

Expected behavior

I believe '.instantiate' instead of '.callFn' needs to be called in some cases.

Minimal reproduction of the problem with instructions

See the plunk in #14808, however that issue currently blocks reproduction of this issue. If you modify the useFactory: () => ... to useFactory: function (... to bypass that issue, this issue should be the next one you hit. I tried to put up a gist for a modified compiler.js, but github doesn't seem to like the theta char used for the internal exports.

Angular version: 4.0.0-rc.1

Browser: [chrome]

Language: [ES6]

Issue 2:
I want to use Polymer's components in Angular, given

<paper-dialog (^iron-overlay-closed)="onClose()">
...
</paper-dialog>

It will not work, for

as angular 2 converts a-b event listner to camel case aB and that’s not what polymer wants…

quote from https://discventionstech.wordpress.com/2015/06/24/using-polymer-1-0-with-angular-2-0/

What's the current state of this and is there other ways to archive it?
Issue 1:
System information (version)

OpenCV => 3.4 (tried on opencv 3.4.3 and opencv 4.0.1)

Operating System / Platform => Linux 64 bit (debian based -- ubunut, kubuntu, xubuntu, also tried on arch linux)

Compiler => gcc-6 g++6

Detailed description

This seems to be a similar issue to #6742

If two CUDA streams in two different threads try to simultaneously use apply() to a cv::cuda::Filter created via e.g. (for doing edge detection with gabor filters):

auto filtptr = cv::cuda::createLinearFilter( CV_32FC1, CV_32FC1, cv::getGaborKernel(cv::Size(ksize_pix, ksize_pix), sig_pix, th, lm_pix, gamma, psi) );

Then it results in corrupted output in one or both of the outputs.

Steps to reproduce

See example code in #6742, but this bug behaviour occurs if the filter is a createLinearFilter as well.

Issue 2:
System information (version)

OpenCV => :3.2

Operating System / Platform => :ubuntu18.04

Compiler => :python3

Detailed description

Hello there,

I was using this demo to calibrate my own camera while the result showed a unacceptable drifts from the truth.

OpenCV version 3.2.0

Python version 3.6.7

The input images series is like below:

and the circle detected images is

There is one problem I am not that sure is, the asymmetric calibration target I used has a differently distance between the columns and rows which could be seen clearly from my code

longerCalibrate.txt

Finally, the result of intrinsic calibration is

camera_matrix:

[451.6701112652139, 0.0, 777.2304056394676]

[0.0, 469.37232191132745, 321.2437268938009]

[0.0, 0.0, 1.0]

dist_coeff:

[-0.1705178885286108, 0.013773972732487686, 0.0012506566857040959, 0.004203751684462792,

0.006202670677996154]

but actually, the intrinsic matrix should be

9.543190920000000000e+02 0.000000000000000000e+00 6.399660030000000000e+02 0.000000000000000000e+00 9.543190920000000000e+02 3.634058530000000000e+02 0.000000000000000000e+00 0.000000000000000000e+00 1.000000000000000000e+00

this is correct because the resolution of these pictures is 1280x720, the second intrinsic matrix is more reasonable

So the question is, is there anything wrong with my code or is it a kernel problem of the opencv function?

Much appreciation

Steps to reproduce
Issue 1:
[Enter steps to reproduce below:]

...

...

Atom Version: 0.198.0

System: linux 3.16.0-37-generic

Thrown From: Atom Core

Stack Trace

Uncaught Error: ESPIPE: invalid seek, write

At /usr/share/atom/resources/app.asar/src/pane.js:759

Error: ESPIPE: invalid seek, write
at Error (native)
at Object.fs.writeSync (fs.js:657:20)
at Object.fs.writeFileSync (fs.js:1164:21)
at Object.fsPlus.writeFileSync (/usr/share/atom/resources/app.asar/node_modules/fs-plus/lib/fs-plus.js:279:17)
at File.module.exports.File.writeFileSync (/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/file.js:264:19)
at File.module.exports.File.writeFileWithPrivilegeEscalationSync (/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/file.js:362:21)
at File.module.exports.File.writeSync (/usr/share/atom/resources/app.asar/node_modules/pathwatcher/lib/file.js:336:12)
at TextBuffer.module.exports.TextBuffer.saveAs (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:913:17)
at TextBuffer.module.exports.TextBuffer.save (/usr/share/atom/resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:899:19)
at TextEditor.module.exports.TextEditor.save (/usr/share/atom/resources/app.asar/src/text-editor.js:592:26)
at Pane.module.exports.Pane.saveItem (/usr/share/atom/resources/app.asar/src/pane.js:523:18)
at Pane.module.exports.Pane.saveActiveItem (/usr/share/atom/resources/app.asar/src/pane.js:506:19)
at Workspace.module.exports.Workspace.saveActivePaneItem (/usr/share/atom/resources/app.asar/src/workspace.js:585:35)
at atom-workspace.atom.commands.add.core:save (/usr/share/atom/resources/app.asar/src/workspace-element.js:310:30)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:238:29)
at /usr/share/atom/resources/app.asar/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:519:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:354:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/share/atom/resources/app.asar/src/window-event-handler.js:178:20)

Commands

2x -1:34.6.0 core:save (atom-text-editor.editor.is-focused)

Config

{
"core": {},
"editor": {
"invisibles": {}
}
}

Installed Packages

# User
No installed packages

# Dev
No dev packages

Issue 2:
Title pretty much sums it up. No problems saving to a regular file system. SSHFS is fine too. I'm on Ubuntu 14.04 x64. I've encountered this error in various .99, .100, and .101 builds from the master branch.
Issue 1:
ℹ Computer information

Windows build number: [run "winver"]

PowerToys version: 18.x - 20.x

PowerToy module: PowerToys run

📝 Provide detailed reproduction steps (if any)

win-alt-space (what I have set to open PowerToys run) no longer opens run window

✔️ Expected result

Should open run window

❌ Actual result

Nothing happens until I set shortcut to another keystroke and then back to win-alt-space.

📷 Screenshots

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

Issue 2:
GeneralPage.xaml shows hardcoded version number

<TextBlock Text="Version 0.15.2" FontWeight="Bold" Margin="{StaticResource SmallTopMargin}" />
Issue 1:
Do you want to request a feature or report a bug?

report bug

What is the current behavior?

4.6

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

webpack optimization.splitChunks when minChunks==1, what means ? why not start with 2?

why not stay the same as the document commons-chunk-plugin require

The number must be greater than or equal 2 and lower than or equal to the number of chunks.

when i setting minChunks==1, no new chunk created

What is the expected behavior?

when minChunks==1, create a new chunk by every dependency module.

?

If this is a feature request, what is motivation or use case for changing the behavior?

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

Issue 2:
Do you want to request a feature or report a bug?

bug

What is the current behavior?

TypeError: Cannot read property 'type' of undefined
at getFinalName (XXX/node_modules/webpack/lib/optimize/ConcatenatedModule.js:51:13)
at info.globalScope.through.forEach.reference (XXX/node_modules/webpack/lib/optimize/ConcatenatedModule.js:582:25)
at Array.forEach (native)
at modulesWithInfo.forEach.info (XXX/node_modules/webpack/lib/optimize/ConcatenatedModule.js:569:30)
at Array.forEach (native)
at ConcatenatedModule.source (XXX/node_modules/webpack/lib/optimize/ConcatenatedModule.js:567:19)
at ModuleTemplate.render (XXX/node_modules/webpack/lib/ModuleTemplate.js:14:31)
at XXX/node_modules/webpack/lib/Template.js:116:28
at Function.from (native)
at Chunk.mapModules (XXX/node_modules/webpack/lib/Chunk.js:163:16)

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

// Find and replace referenced to modules

webpack/lib/optimize/ConcatenatedModule.js

Line 573
in
c26d1f0

const referencedModule = modulesWithInfo[+match[1]];

referencedModule maybe is undefined

What is the expected behavior?

if the config is an error, will log reason of error.

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
Issue 1:
Often I use some type of tabs widget on websites but usually on very small viewports (usually always around iphone portrait 320-380px range) it always ends up looking terrible since the tabs need to wrap on two lines and it just never looks good.

Recently my solution has been to create a custom tab widget that when hitting a certain breakpoint will automatically change itself to show as an accordion widget. Accordions seem like a perfect substitute for tabs on these small viewports and would be a nice touch for making more of your widgets even more mobile friendly.

Issue 2:
On mobile devices you should show tabs as collapse component, not as a tab list, because you cannot show more than 2 tabs in a row on a mobile device anyway and it looks absolutely terrible.

I attached a screenshot to demonstrate it. Even foundation 4 shows tabs as accordion.
Issue 1:
Hi, I'm having an issue with onMouseEnter being triggered on children of a component. It only occurs with React 16.

I've created a CodePen that shows the issue.

Simplified structure is as below:

<Card/> :
–––––––––––––––––––––––––––––
| |
| <Cover/> |
| |
------------------------------
| |
| <div class="text" /> |
| |
–––––––––––––––––––––––––––––

<Card /> is a component that needs to capture onMouseMove events (and trigger a render) and <Cover/> is a simple component that waits for an image (passed as a prop) to be loaded before displaying it (using onload on an Image created in the constructor).

If you open the console, you'll see that onMouseEnter is triggered when hovering <Card /> (normal behavior), but also when hovering the .text div (which is not supposed to happen).

If you remove the whole onload logic from the <Cover/> element, then onMouseEnter works as intended.

It's possible that I'm coding this in a way that isn't appropriate, but it does look like a bug anyway :)

Issue 2:
版本（versions）：

react@16.0.0

react-dom@16.0.0

描述（description）：

给父级别绑定 onMouseEnter 事件。在首次渲染后，鼠标移入新渲染进去的子元素会触发父元素的 onMouseEnter 事件。

示例（demo）：

import React, {Component} from 'react';

class Demo extends Component {
constructor(prop) {
super(prop);
this.enter = this.enter.bind(this)
this.state = {
flag: false
}
}
enter(event) {
console.log(event.nativeEvent);
console.log("enter")
}
click() {
this.setState({flag:!this.state.flag})
}
render() {
let old = {
height: "100px",
width: "100px",
border: "1px solid #6dbbff"
};
let aa = {
height: "100px",
width: "100px",
border: "1px solid red"
};
let content = {
border: "1px solid black",
display: "flex",
padding:"10px"
}
return(
<div>
<div style={content} onMouseEnter={this.enter}>
{this.state.a}
<div style={old}>old</div>
<div style={aa}>old</div>
{this.state.flag && <div style={aa}>new</div>}
</div>
<button onClick={this.click.bind(this)}>点我（click me）</button>
</div>
)
}
}
Issue 1:
Dominique Jean-Prost opened SPR-5641 and commented

Actually, EhCacheFactoryBean doesn't allow instanciate EhCache caches with CacheEventListeners. This forbids for instance to instanciate caches that supports distribution over a cluster, because the way ehcache runs needs the cache to be fully setup before adding it to the CacheManager (see net.sf.ehcache.distribution.RMICacheManagerPeerListener.notifyCacheAdded(String)).

I wrote an extended version of EhCacheFactoryBean so that I can provide cacheEventListeners to the factory in order to have distribution works.

Now I think you can backport my class to spring-core so that evereybody can use it. As I can't find the url of spring scm, I can't provide patch, although I wish I could.

Here is what you have to setup in your bean definition :

<bean id="eventListenersFactory" class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"

scope="singleton" />

<bean class="com.dexia.sofaxis.common.cache.ExtendedEhCacheFactoryBean">

<property name="diskPersistent">

<value>false</value>

</property>

<property name="cacheName">

<value>itemsReferenceData</value>

</property>

<property name="cacheManager">

<ref bean="globalCacheManager" />

</property>

<property name="eternal">

<value>true</value>

</property>

<property name="maxElementsInMemory">

<value>10000</value>

</property>

<property name="overflowToDisk">

<value>true</value>

</property>

<property name="cacheEventListeners">

<list>

<bean factory-bean="eventListenersFactory" factory-method="createCacheEventListener">

<constructor-arg>

<null />

</constructor-arg>

</bean>

</list>

</property>

</bean>

Affects: 2.5.1

Attachments:

ExtendedEhCacheFactoryBean.java (11.38 kB)

Issue Links:

#10902 Add facility to EhCacheFactorybean for registering event listeners ("is duplicated by")

Issue 2:
Tim Kettering opened SPR-361 and commented

This improvement is filed upon Colin's request in the forums.

http://forum.springframework.org/viewtopic.php?t=1058

here is a paste of my original forum post:

I noticed that Spring is able to obtain the database vendor info from the datasource for it's SQLException handling.

I looked around in the SQLErrorCodesFactory and I see that it calls JdbcUtils to extract the database meta data with a internal implementation of DatabaseMetaDataCallback.

I was looking to use this kind of functionality in my code, and I was wondering if I was missing someting. Is there a method I can call to obtain the database metadata, or do I need to re-implement the code used in the SQLErrorCodesFactory?

I would imagine that this could be a useful feature to have in the jdbc package. (obtaining database information from the datasource)

Affects: 1.1 final