WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Is your feature request related to a problem? Please describe.

scipy.cluster.hierarchy.linkage uses double (float64) to store and do its computation for hierarchical clustering. However, I have a very large dataset (292000x292000) that I would like to perform hclust on but my computer is RAM limited. I have 252GB RAM and I think the clustering algorithm should be able to work on my dataset when all values are stored and computed using float16s instead.

For large datasets on machines with insufficient RAM to store and compute on Arrays of float64s, it would be awesome if computation could be done on a different precision float to reduce the memory footprint.

Additionally, adding choices for datatypes could be very useful for almost all scipy functions.

Describe the solution you'd like

Allow for an argument to specify what datatype you'd like to use (e.g. np.float64, np.float32, np.float16)

The argument could be like dtype='np.double' by default but changable to whatever datatype is chosen.

Issue 2:
I try the scipy ward clustering, when calculating linkage, it report follow error:

ward_h = linkage(X, method='ward', metric='euclidean')
Python(2557,0x7fff732cc310) malloc: *** mach_vm_map(size=18446744067627675648) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
---------------------------------------------------------------------------
MemoryError Traceback (most recent call last)
<ipython-input-10-769ae7c53f7c> in <module>()
----> 1 ward_h = linkage(X, method='ward', metric='euclidean')

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/cluster/hierarchy.pyc in linkage(y, method, metric)
652 Z = np.zeros((n - 1, 4))
653 _hierarchy_wrap.linkage_euclid_wrap(dm, Z, X, m, n,
--> 654 int(_cpy_euclid_methods[method]))
655 return Z
656

MemoryError: out of memory while computing linkage

How can I solve this？

The data set I use is here: https://dl.dropboxusercontent.com/u/68126956/df.csv.

Thanks.
Issue 1:
by fuzxxl:

Right now, the package io specifies the Seeker with its sole method Seek(). The
whence-parameter of Seek() is specified to accept one of the constants 1 to 3 with
certain semantics.

io does not provide symbolic constants for the whence-parameter, even there should
clearly be a set for clarity. os provides such constants though:

const (
SEEK_SET int = 0 // seek relative to the origin of the file
SEEK_CUR int = 1 // seek relative to the current offset
SEEK_END int = 2 // seek relative to the end
)

I think these constants are at the wrong place since if you want to use a generic
Seeker, you have to import os, a module with a concrete Seeker implementation, if you
want to use symbolic constants for the whence parameter. This gives people who have a
glance at your code the wrong idea that the source code they are looking at actually
communicates with the operating system which it might not do.

To fix this issue, I suggest duplicating the constants SEEK_SET, SEEK_CUR and SEEK_END
into the io module and suggesting people to use the symbolic constants from there
instead from os, as they semantically belong to io IMHO.

This change would only affect backwards-compatibility if somebody declared SEEK_SET,
SEEK_CUR and SEEK_END in their own source code while importing io without a qualifier,
but this is explicitly allowed by the compatibility rules.

Issue 2:
In https://godoc.org/golang.org/x/net/context#Context, there are two possible readings for the documentation of Err:

Err() must return nil before Done() isn't closed, and atomically switch to returning some non-nil error when Done() IS closed

Err() is undefined before Done() is closed, and the only valid use for Err() is after blocking on Done()

Looking at the implementation, I suspect that 1 is the correct interpretation. I would propose that the documentation on this function be amended to read:

// Err returns a non-nil error value after Done is closed. Err returns
// Canceled if the context was canceled or DeadlineExceeded if the
// context's deadline passed. If Done is not yet closed, Err must return nil.
// No other values for Err are defined. After Done is closed, successive
// calls to Err return the same value.
Err() error

Note the added "If Done is not yet closed, Err must return nil." sentence.
Issue 1:
Problem Description

This is not necessarily an issue with material ui. I am trying to integrate TextField and DatePicker by setting the type of TextField to date. This adds an icon that allows you to open a date picker like this.

This DatePicker is not a material UI date picker though. Is there a way to hook the material ui date picker to that selection?

The motivation is to let the user type the date or select it using a material ui date picker. Looks like the current date picker does not allow that functionality.

Issue 2:
The only thing preventing me to use the date picker from material-ui is the fact that the user is not capable to use keyboard to write a date.

Sometimes its just faster or more suitable to just use keyboard to select dates.

Imagine a scenario where the user has a form with a lot of TextFields, he can keep pressing tab and filling the form, but once he encounters a Date picker he needs to use the mouse to open the date picker... And if wants to select a really old date he will have a nightmare selecting the year... Its just not nearly as fast as just typing it.

Related issue mui/material-ui#5612.
Issue 1:
In latest Firefox (currently 19.0.2), clicking on links with Ctrl, or Cmd (mac) button doesn't open them in new window (tab), but doesn't do anything, using latest 2.3.1 javascript.

With 2.3.0 js, it works fine.

Issue 2:
Issue: middle mouse click on a link in Firefox, nothing happens.

Expected behavior: middle mouse click on a link, open in new browser tab.

Live example: http://twitter.github.com/bootstrap/

Tested on Win7/Firefox19 Safemode/Non-Safemode failed. IE9/Chrome25 ok.

Notice it when I upgrade to bootstrap v2.3.1.

Switch back to v2.3 and the middle button works again.
Issue 1:
Context:

Playwright CT Version: [1.26.1]

Operating System: [e.g. Mac]

Node.js version: [e.g. 16.15.0]

Browser: [tested in FF]

const component = await mount(CustomSelect, {
props: {
prepare: (option) => option.label
}
});

Describe the bug

This issue has been discussed here, but it's quite blocking since the function output is crucial for the component itself.

For option being {id: 1, label: 'Foo'} does not return Foo, is logged as (...args) => { window['__ct_dispatch'](ordinal, args); }, however returns undefined instead of an empty string in the above issue.

If a viable workaround exists, it'd be great if someone could provide a minimum example, thank you.

Issue 2:
System info

Playwright Version: 1.33.0

Operating System: Windows 11

Browser: Chromium

Other info:

Source code

I provided exact source code that allows reproducing the issue locally.

Steps

Add Playwright to your .NET 6 project.

Run this code:

using Microsoft.Playwright;

using var playwright = await Playwright.CreateAsync();
await using var browser = await playwright.Chromium.LaunchAsync();

Open Terminal as an administrator at your project and run:

Set-ExecutionPolicy -ExecutionPolicy Bypass
powershell bin/Debug/net6.0/playwright.ps1 install

Expected

Should install browser

Actual

Downloading Chromium 113.0.5672.53 (playwright build v1060) from https://playwright.azureedge.net/builds/chromium/1060/chromium-win64.zip
113.5 Mb [=================== ] 97% 2.7sFailed to install browsers
Error: Failed to download Chromium 113.0.5672.53 (playwright build v1060), caused by
Error: end of central directory record signature not found
at your-project\bin\Debug\net6.0\.playwright\package\lib\zipBundleImpl.js:1:24033
at your-project\bin\Debug\net6.0\.playwright\package\lib\zipBundleImpl.js:1:31712
at your-project\bin\Debug\net6.0\.playwright\package\lib\zipBundleImpl.js:1:17288
at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)
Issue 1:
After initializing git repository, but before committing, I can select "Undo Last Commit" from the "..." menu. That fails, of course. The resulting git reset HEAD~ won't work if there are no commits.

Undo Last Commit should be grayed out if HEAD doesn't have a parent.

Here's the log:

git init
git fetch
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.
git reset HEAD~
fatal: ambiguous argument 'HEAD~': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
git fetch
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.
git fetch
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.
git fetch
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.

Issue 2:
on https://code.visualstudio.com/docs/languages/javascript

"The typings are easily managed using TSD, the TypeScript Definition manager."

But on https://github.com/Definitelytyped/tsd#readme

"DEPRECATED: TSD is deprecated, please use Typings and see this issue for more information."
Issue 1:
Bug Report

Which version of ShardingSphere did you use?

Current master branch.

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

ShardingSphere-JDBC

Expected behavior

when i user shardingSephere-jdbc, this sql will occur error.

insert into social_count (image, video, feeds, organization,createTime,updateTime) values ( ?, ?, ?, ?, now(), now()) on duplicate key update image = image + ?,video = video + ?,feeds = feeds + ?,updateTime = now()

social_count is single table in single database.

error:

bad SQL grammar []; nested exception is java.sql.SQLException: No value specified for parameter 6

Reason analyze (If you can)

In code of org.apache.shardingsphere.infra.binder.segment.insert.values.OnDuplicateUpdateContext, we have a function

private int calculateParameterCount(final Collection<ExpressionSegment> assignments) {
int result = 0;
for (ExpressionSegment each : assignments) {
if (each instanceof ParameterMarkerExpressionSegment) {
result++;
}
}
return result;
}

when i step into this function, each of element in assignments is an instanceof BinaryOperationExpression, not ParameterMarkerExpressionSegment, so it will course parameterCount always be 0.

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

To fix this bug, i modified the code as below.

private int calculateParameterCount(final Collection<ExpressionSegment> assignments) {
int result = 0;
for (ExpressionSegment each : assignments) {
if (each instanceof ParameterMarkerExpressionSegment) {
result++;
} else if (each instanceof BinaryOperationExpression) {
if (((BinaryOperationExpression) each).getRight() instanceof ParameterMarkerExpressionSegment) {
result++;
}
}
}
return result;
}

Issue 2:
Version

io.shardingsphere.sharding-jdbc-spring-boot-starter:3.0.0

During the initializing, shardingspere will load all table meta in TableMetaDataInitializer.

TableMetaDataInitializer.load(final ShardingRule shardingRule) {

...

result.putAll(loadDefaultTables(shardingRule));

}

It takes much time(almost 2 minutes) to load all meta data.

Question

Why shardingspere need to load all meta data? If I don't load them, what will happen?

Thanks a lot.
Issue 1:
As title

Issue 2:
As much as I have managed to follow the API section of tensorflow the depthwise_conv2d doesn't fulfill my thoughts on what I would like to do with the input/filters.

shape = (2,5,5,48,128)
initializer = tf.truncated_normal_initializer(stddev=1e-2)
kernel = tf.get_variable(name='weights', shape=shape, initializer=initializer)

Considering the input is of shape (batch_size, 55, 55, 96),

the function definition would be:

def depthwise_group_conv2d(input, filter, groups, strides, padding, name)

which would be able to do

conv = tf.nn.depthwise_group_conv2d(input, kernel, [48,48], strides, padding, name)

that would split the input depthwise into depths from given 'groups' parameter and perform the convolution with shared parameters (i.e. depths [:48] take weights[0] and depths[48:] take weights[1]) inside a group. Then the outputs of convolutions by groups would be concatenated depthwise.

This would make it easier to define groups such as one used in AlexNet/CaffeNet architectures.

Hopefully I have missed a certain feature already existing for making this easier.

Best regards,

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

Expected Behavior

App should work after upgrading to Next v5.1.0. in Next-js supported browsers.

Current Behavior

Noticed 'Symbol' is undefined issue in IE11 after upgrading to Next v5.1.0. We don't see this issue with Next v4.x.

Steps to Reproduce (for bugs)

Upgrade app, which has for-of loop in its source code, to Nextv5.1.0.

Open the application in IE 11 after build process and check the dev console.

Context

This is happening with Next v5.1.0.

Code generated for for-of loop with Next v5.1.0

for (var g = l[Symbol.iterator](), w; !(h = (w = g.next()).done); h = true) {
}

Next v4.x version with same source code.

for (var h, g = (0,r.default)(l); !(y = (h = g.next()).done); y = !0) {
}

We can fix the issue by adding babel-polyfill or babel runtime-transform to our code but it would be consistent if we have a solution as part of Next build.

Your Environment

Tech
Version

next
5.1.0

node
8.11.1

OS
windows

browser
IE 11

etc

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

Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

Context

Your Environment

Tech
Version

next

node

OS

browser

etc
Issue 1:
This is a template helping you to create an issue which can be processes as quickly as possible. Feel free to add additional information or remove not relevant points if you do not need them.

If you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses.

Please state the information for your system

OpenCV version: 3.1

Host OS: Linux (Fedora 23)

Compiler & CMake: GCC 5.3.1 & CMake 3.4.1

Problem with:

C examples

When I try to compile this way :

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -DINSTALL_C_EXAMPLES=1 ..

I got this error: http://pastebin.com/4bcJzke4

I have installed both v4l and v4l-devel.

Without tests it works OK

Thanks

Issue 2:
System information (version)

OpenCV => ❔

Operating System / Platform => ❔

Compiler => ❔

Detailed description

Steps to reproduce
Issue 1:
If two objects have the same name and the second object has animations the animations on the second object will instead be applied to the first on export.

Issue 2:
Names of nodes are user-specified, and not guaranteed to be unique within a glTF file. But because THREE.PropertyBinding relies on track names to target animation, having two nodes with the same name will cause animation to affect the wrong part of a model. We should de-duplicate node names on import, to ensure that every node ends up with a unique name.

Filing to follow up on https://discourse.threejs.org/t/gltf-animation-bug-or-wrong-usage/4536/2.
Issue 1:
harish opened SPR-9311 and commented

Currently Resttemplate uses an enum of 'standard' HTTP status codes, that is subset of all legally possible HTTP status codes that services can return. When a non standard HTTP status code is returned by services, an IllegalArgumentException is thrown and all response body is ignored. We call services that use custom code 450 for user validation errors along with an xml containing list of messages codes and message text. Unfortunately we get only an illegal argument exception and response body is lost. I think it would be helpful if say all 4xx, 1xx, 2xx, 5xx are treated as legal responses and their response bodies are preserved and passed to the caller. At the least a hook could be provided to extend the enum used by Resttemplate to add additional HTTP codes that caller might expect.

Issue Links:

#11418 RestTemplate throws IllegalArgumentException when HTTP status is not in the HttpStatus enum ("duplicates")

2 votes, 3 watchers

Issue 2:
Paul Sideleau opened SPR-7795 and commented

I have setup a MultipartFilter and HtmlHiddenMethodFilter following the instructions in #11260 and the javadoc.

I have a java bean that has a org.springframework.web.multipart.MultipartFile property. I attempt to bind my bean with the standard @ModelAttribute annotation. The rest of its properties get resolved correctly but the MultipartFile property is set to null.

I believe the issue is that on line 106 of the ServletRequestDataBinder it does an instanceof check: "request instanceof MultipartRequest" which will return false because its the HttpMethodRequestWrapper class from the HtmlHiddenMethodFilter.

However, if I move the property out of my javabean and bind it via a RequestParam annoation, it works correctly.

public ModelAndView uploadFile(@RequestParam("file") MultipartFile file) {

// code

}

Affects: 3.0.4

Issue Links:

#12695 ServletRequestDataBinder.bind should also consider wrapped ServletRequests when checking for Multipart, to comply with HiddenHttpMethodFilter. ("is duplicated by")

#11260 HiddenHttpMethodFilter does not support multipart requests

Referenced from: commits b3f039a

1 votes, 2 watchers
Issue 1:
dubbo-registry-nacos 0.0.2 + org.apache.dubbo 2.7.0

dubbo-registry-nacos 0.0.2 required com.alibaba.dubbo.registry.support.AbstractRegistryFactory

but in org.apache.dubbo 2.7.0 jar found org.apache.dubbo.registry.support.AbstractRegistryFactory

Issue 2:
dubbo 2.6.5 + nacos0.0.2 报错

Exception in thread "main" java.lang.IllegalStateException: Failed to load extension class(interface: interface com.alibaba.dubbo.registry.RegistryFactory, class line: com.alibaba.dubbo.registry.nacos.NacosRegistryFactory)

目录结构还是有问题

换成最新的2.7.1版本

无法注册成功

java.lang.IllegalStateException: failed to req API:/nacos/v1/ns/instance after all servers([127.0.0.1:8848]) tried: failed to req API:http://127.0.0.1:8848/nacos/v1/ns/instance. code:400 msg: dom not found: DEFAULT_GROUP@@providers:com.orange.service.DemoService
Issue 1:
System information (version)

OpenCV => 3.4

Operating System / Platform => Android x86 and Android x86_64

Compiler => Android NDK GCC

Detailed description

Link ipp library error.

Error:error: opencv/sdk/native/3rdparty/libs/x86/libippicv.a(jmp_icvippsSortRadixIndexAscend_32f_as.s.o): relocation R_386_GOTOFF against preemptible symbol icv_ippJumpIndexForMergedLibs cannot be used when making a shared object
Error:error: opencv/sdk/native/3rdparty/libs/x86/libippicv.a(jmp_icvippiNormDiff_L2_32f_C1MR_as.s.o): relocation R_386_GOTOFF against preemptible symbol icv_ippJumpIndexForMergedLibs cannot be used when making a shared object
Error:error: opencv/sdk/native/3rdparty/libs/x86/libippicv.a(jmp_icvippiSqrDistanceNormGetBufferSize_as.s.o): relocation R_386_GOTOFF against preemptible symbol icv_ippJumpIndexForMergedLibs cannot be used when making a shared object
More....

Steps to reproduce

Downlod OpenCV for Android SDK 3.4. 0

Extract it to your project, and write cmake:

cmake_minimum_required(VERSION 3.6)

set ( OpenCV_DIR "../opencv/sdk/native/jni")
find_package ( OpenCV REQUIRED )

include_directories ( ${OpenCV_INCLUDE_DIRS} )

add_library( image_analyze SHARED

# Provides a relative path to your source file(s).
src/main/cpp/image_analyze.cpp
src/main/cpp/pattern_recognition.cpp
src/main/cpp/pretreatment.cpp )

target_link_libraries( image_analyze ${OpenCV_LIBS} )

Then build, when link to the ippicv wiil be failed!

Issue 2:
System information (version)

OpenCV => 3.3.0

Operating System / Platform => Android x86/x86_64

Compiler => Android toolchain (OpenCV binaries downloaded from github 3.3.0/3.3.1 release, My binary built from Android Studio, ndk-bundle-16.0.4442984 darwin-x86_64-gcc-i686-linux-android-4.9.x)

Detailed description

Can no longer link application for x86 or x86_64, get relocation R_386_GOTOFF against preemptible symbol in symbols from libippiw.a and libippicw.a. Rebuilding OpenCV for Android without IPP support fixes the problem. IPP are only used on x86/x86_64 so this is not a problem for arm builds, but the x86 builds are useful for debugging on HAX accelerated emulator.

Problem appeared after Android ndk upgrade (don't know my old version). The IPP binaries seems to be a binary only release compiled by Intel so I can't test rebuilding those libraries, otherwise searching the net suggests that the binaries should be compiled with -fPIC to fix this issue.
Issue 1:
Bug report

What is the current behavior?

i want modify vue source in webpack

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

const Dependency = require('webpack/lib/Dependency');

class MyDependency extends Dependency {
// Use the constructor to save any information you need for later
constructor(module) {
super();
this.module = module;
}
}

MyDependency.Template = class MyDependencyTemplate {
apply(dep, source) {
// dep is the MyDependency instance, so the module is dep.module
source.replace(0, source.source().length - 1, source.source() )
}
};

module.exports = class MyPlugin {
apply(compiler) {
compiler.hooks.compilation.tap('MyPluginName', compilation => {
compilation.dependencyTemplates.set(
MyDependency,
new MyDependency.Template()
);
compilation.hooks.buildModule.tap('MyPluginName', module => {
module.addDependency(new MyDependency(module));
});
});
}
};

What is the expected behavior?

I can replace all code in Source

because Code I need to convert Babel conversion

Other relevant information:

webpack version: 4.46.4

Node.js version: v16.5.0

Operating System: mac

Additional tools: vscode

Issue 2:
Feature request

What is the expected behavior?

Be able to intercept async load failures and retry by recreating the script tag with cache busted url

What is motivation or use case for adding/changing the behavior?

We found that retrying the download with the use of cache busting params is very effective, and we could not find a way to utilize it correctly. existing plugins replace the jsonp loading code which is not possible with version 5, causing the need to duplicate the logic and patch it to use the duplicated code instead of the original

How should this be implemented in your opinion?

Either expose a way to be able to add search params for the purpose of cache busing in user land. or add a hook to augment the loadingEnded function in jsonp runtime

Are you willing to work on this yourself?

yes, with guidance from a contributer