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

Operating System version: Windows、Linux

Java version: 1.8

Steps to reproduce this issue

In serviceconfig, if the delay exposure service has an exception similar to the port occupied, it will be swallowed up by the thread pool

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

Expected Result

Exception can be thrown out or recorded

Code

private static final ScheduledExecutorService DELAY_EXPORT_EXECUTOR = Executors.newSingleThreadScheduledExecutor(new NamedThreadFactory("DubboServiceDelayExporter", true));

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

Operating System version: linux

Java version: 1.8

Steps to reproduce this issue

最近我的使用Dubbo框架的Java程序长时间不发布会出现内存使用不足的情况，通过线上dump文件发现InternalThreadLocal对象很多ReferenceQueue为null,但是对象空间还存在。具体JProfile分析截图如下

然后查看2.6.5的Dubbo源码发现，发现ConsumerContextFilter类中，并没有调用removeContext和removeServerContext方法，以及ContextFilter类中仅仅只调用了removeContext方法并没有调用removeServerContext。

但是我看dubbo 的2.7.0的版本开始这2个类的实现都调用removeContext和removeServerContext方法，那是不是说明2.6.5的版本由于没有调用removeContext和removeServerContext方法，从而会导致内存泄漏以及线程对象可能会错乱的情况呢？

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

Expected Result

What do you expected from the above steps？

ConsumerContextFilter和ContextFilter在2.6.5版本应该要调用removeContext和removeServerContext方法来清楚当前线程赋值的对象。另外如果不升级dubbo版本如何去解决内存的问题呢？

Actual Result

What actually happens?

Java持续不重启，运行时间过长，会出现内存一直在上升的情况。

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

Just put your stack trace here!
Issue 1:
Description of the problem

The orthographic shadow camera is hard coded, thus it only works in very limited circumstances. It seems like a simple typo, the input is called 'light' when it should probably be camera, and then a quick check to use the default or the camera that is passed in. Right now the 'light' parameter appears not to be used. I can probably make a pull request myself, but I wanted to check if anyone is already working on shadows, so as to not duplicate work.

LightShadow.call( this, new OrthographicCamera( - 5, 5, 5, - 5, 0.5, 500 ) );

https://github.com/mrdoob/three.js/blob/dev/src/lights/DirectionalLightShadow.js#L10

Also the link on this page to the source is broken (r83).

https://threejs.org/docs/index.html?q=shadow#Reference/Lights.Shadows/DirectionalLightShadow

Three.js version

Dev

r83

Browser

All of them

OS

All of them

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

Any

Issue 2:
The OBJLoader strips vertices without any face while loading. I want to load a point cloud without any faces whatsoever, but this obviously does not work. I do realize stripping make perfect sense in most cases. I think a solution where the vertices & faces are loaded naively at first, and then vertices are stripped in a separate step would be helpful. Then it would be fairly easy to make an option to the load function that disables that step.

Mostly unrelated, but from glancing at the code it seems that vertices are duplicated once for each triangle. Any reason for this? Or am I mistaken?
Issue 1:
Based on previous issues, it is not clear if there are plans to incorporate the implementation of groupslices from GroupSlices.jl into Base. This function is quite common when one needs to just find the unique columns in a large array for further processing.

Past discussions include:

#14142

#15503

#1845

The current registered version of GroupSlices.jl in Julia 1.x is a fork from the original author's version. Any chance this functionality could be part of Julia v1.5?

Issue 2:
type Foo
end
bar{T<:Foo}(x::T) = 1
methodswith(Foo)

returns 0-element Array{Method,1}, which doesn't seem right.
Issue 1:
Challenge Word Blanks has an issue.

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

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

I wonder if this challenge is suitable for the large number of campers who speak english as a second language or if it could be re-worded so that understanding english sentence structure or the game "madlibs" is no longer required. I see a disproportionate number of campers unable to even begin this challenge, asking questions in the gitter chat rooms. If we could distill this challenge to its programming essence, I believe it would be good.

Maz

Issue 2:
Challenge standardize-times-with-the-html5-datetime-attribute has an issue.

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

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

I'm not really sure how to recreate this. The preview is displaying information that isn't in the code-box. It appears to be doing this for several challenges. I've attached a snapshot from the lesson prior to this one. It's still persisting on this challenge.

http://imgur.com/a/fcFRQ

<body>
<header>
<h1>Tournaments</h1>
</header>
<article>
<h2>Mortal Combat Tournament Survey Results</h2>

<!-- Add your code below this line -->

<p>Thank you to everyone for responding to Master Camper Cat's survey. The best day to host the vaunted Mortal Combat tournament is Thursday, September 15<sup>th</sup>. May the best ninja win!</p>

<!-- Add your code above this line -->

<section>
<h3>Comments:</h3>
<article>
<p>Posted by: Sub-Zero on <time datetime="2016-08-13T20:01Z">August 13<sup>th</sup></time></p>
<p>Johnny Cage better be there, I'll finish him!</p>
</article>
<article>
<p>Posted by: Doge on <time datetime="2016-08-15T08:12Z">August 15<sup>th</sup></time></p>
<p>Wow, much combat, so mortal.</p>
</article>
<article>
<p>Posted by: The Grim Reaper on <time datetime="2016-08-16T00:00Z">August 16<sup>th</sup></time></p>
<p>Looks like I'll be busy that day.</p>
</article>
</section>
</article>
<footer>&copy; 2016 Camper Cat</footer>
</body>
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.8.5

Operating System version: mac os 10.14

Java version: 1.8.0_191

Steps to reproduce this issue

dubbo provider返回类型为Float或者带有float的时候：

Float test();

implements为：

@Override
public Float test() {
return 99.8F;
}

消费者为泛化调用：

Object result = genericService.$invoke(methodName, parameterTypes, params); //泛化调用刚刚的方法

Expected Result

结果不出意料的化应当是99.8

Actual Result

实际得到的是99.80000305175781

当我把上诉的Float类型改成Double的时候却不会出现这个情况（泛化调用float类型精度会丢失？）

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

Operating System version: windows10

Java version: 1.8

Steps to reproduce this issue

ProviderConfig

@Configuration
@EnableDubbo(scanBasePackages = "org.apache.dubbo.demo.provider")
@PropertySource("classpath:/spring/dubbo-provider.properties")
@ComponentScan
static class ProviderConfiguration {
@Bean
public RegistryConfig registryConfig() {
RegistryConfig registryConfig = new RegistryConfig();
registryConfig.setAddress("nacos://192.168.1.101:8848");
// 设置部分配置进入配置中心
registryConfig.setSimplified(true);
return registryConfig;
}

@Bean
public ConfigCenterConfig configCenterConfig() {
ConfigCenterConfig configCenterConfig = new ConfigCenterConfig();
configCenterConfig.setAddress("nacos://192.168.1.101:8848");
return configCenterConfig;
}

@Bean
public MetadataReportConfig metadataReportConfig() {
MetadataReportConfig metadataReportConfig = new MetadataReportConfig();
metadataReportConfig.setAddress("nacos://192.168.1.101:8848");
return metadataReportConfig;
}
}

when enabled setSimplified(true), nacos services name is providers::::

because

NacosRegistry.java

private String getServiceName(URL url) {
return getServiceName(url, url.getParameter(CATEGORY_KEY, DEFAULT_CATEGORY));
}

private String getServiceName(URL url, String category) {
return category + SERVICE_NAME_SEPARATOR + url.getColonSeparatedKey();
}

URL.java

/**
* The format is "{interface}:[version]:[group]"
* @return
*/
public String getColonSeparatedKey() {
StringBuilder serviceNameBuilder = new StringBuilder();
append(serviceNameBuilder, INTERFACE_KEY, true);
append(serviceNameBuilder, VERSION_KEY, false);
append(serviceNameBuilder, GROUP_KEY, false);
return serviceNameBuilder.toString();
}

when enabled setSimplified(true), interface will not register to Registry。please see

http://dubbo.apache.org/zh-cn/docs/user/demos/simplify-registry-data.html
Issue 1:
I tried to update the PowerToys app today and during the process it asked me to close apps such as Office 365 Suite apps, Slack, Calculator and all my browsers + a lot more apps. There is no documentation I can find that explains the reasoning behind these requirements. And I don't see how the installation would benefit from closing all these other apps, apart from it being tedious and annoying.

📝 Provide a description of requested docs changes

It would be great if someone could shed light on these requirements and maybe explain why it has to be done every time the app is updated (which is quite frequently).

Issue 2:
Windows build number: 10.0.19041.264
PowerToys version: v0.18.1
PowerToy module for which you are reporting the bug: auto update

The update program requires to disable the Microsoft Store, Microsoft Text Input Application, Mail which are run at background. I can manually kill the process for Microsoft Store and Mail but Microsoft Text Input Application. However, I can just ignore this to continue. Just unsure does this effect anything.
Issue 1:
I tried using the @types/xxxx package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @davidparsson @borisyankov

Please consider this case:

class Service {
setValue(value: string, option?: undefined): void;
setValue(value: string, option: string): void;
setValue(value: string, option: string | undefined): void { /* some implementation*/ }
}

const service = new Service();

expect(service.setValue).toHaveBeenCalledWith('v');
// ^ Gives a ts error "Expected 2 arguments, but got 1. (2254)"

// Even though all of these use cases are valid and work fine:
service.setValue('v');
service.setValue('v', undefined);
service.setValue('v', 'someValue');

For some reason, the toHaveBeenCalledWith() matcher only accepts 2 arguments, even though the method under test (setValue()) has a second argument that is optional.

The expected behavior is that expect(service.setValue).toHaveBeenCalledWith('v'); should not throw a ts compilation error.

Note: one might think that this can be worked around by adding a second parameter of undefined (like expect(service.setValue).toHaveBeenCalledWith('v', undefined);). However, calling service.setValue('v'); is different from service.setValue('v', undefined);, since the value of arguments.length object inside the setValue() method is different.

Issue 2:
The function signature for toHaveBeenCalledWith unfortunately breaks if a generic function that consists of overloads is passed. TypeScript is not able to infer the proper overload for functions through generics. Only a single overload signature is considered for parameter inferring. For example:

function hello(idx: number): void;
function hello(item: object): void;
function hello(arg: any): void { /* impl */}

// This won't work because `MatchableArgs` only infers `object` as parameter type.
expect(hello).toHaveBeenCalledWith(1);

This is a known limitation in TypeScript, but it feels inconvenient that workarounds are needed for function overloads. Overloads are not a rare concept seen in TypeScript projects. I'm wondering if it would make sense to go back to the non-inferred parameter types. i.e. simply using any[].

Authors: @zvirja @djungowski @kolodny
Issue 1:
To reproduce:

from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics import classification_report
from sklearn.multiclass import OneVsRestClassifier

from sklearn.pipeline import Pipeline
from sklearn.svm import SVC, LinearSVC
from sklearn.datasets import fetch_20newsgroups

data_train = fetch_20newsgroups(subset='train')
data_test = fetch_20newsgroups(subset='test')

clf=OneVsRestClassifier(estimator=SVC(),n_jobs=-1) ##Error when calling fit
#clf=OneVsRestClassifier(estimator=SVC(),n_jobs=1) ##NO Error if set to 1

pipeLine=Pipeline([('tfidf',TfidfVectorizer(min_df=10)),
('clf',clf)])

trainx=data_train.data
trainy=data_train.target
evalx=data_test.data
evaly=data_test.target
pipeLine.fit(trainx,trainy)

predictValue=pipeLine.predict(evalx)

print classification_report(evaly,predictValue)

Output:

ValueError: UPDATEIFCOPY base is read-only

Linux-4.2.0-19-generic-x86_64-with-Ubuntu-15.10-wily
('Python', '2.7.10 (default, Oct 14 2015, 16:09:02) \n[GCC 5.2.1 20151010]')
('NumPy', '1.10.4')
('SciPy', '0.17.0')
('Scikit-Learn', '0.18.dev0')

Issue 2:
PR #4807 reveals a variety of estimators that fails on memory mapped input, once we allow check_array to process a memory map without copying its content in memory.

Estimators failing on read only memory maps :

the whole PLS family

Factor analysis

Incremental PCA

NuSVC

Transformers :

KernelCenterer

MaxAbsScaler

MinAbsScaler

RobustScaler

StandardScaler

Most of these should be easy to fix (e.g X -= X.mean should be replaced etc.)
Issue 1:
TypeScript Version:

1.8.10

Code

{
"compilerOptions": {
"module": "commonjs",
"target": "ES6",
"noLib": true,
"outDir": "out"
},
"exclude": [
"node_modules"
]
}

Have a file extension.js and run once tsc -p jsconfig.json which gives you a file out/extension.js. Start tsc in watch mode, make a change to extension.js

Expected behavior:

The compiler should auto-magically exclude the outDir.

Actual behavior:

It recurses forever which make the terminal print funny patterns

Issue 2:
I think this is useful syntax :)

sample.

interface IFoo {
foo: string; // not optional
}

class Bar implements IFoo? {
// Bar does not have a foo property.
}

new Bar().foo;

How useful.

class Foo implements Lib.IListener? {
constructor() { Lib.injectInto(this); }
}

module Lib {
export interface IListener {
on(data: any): void;
}

export function injectInto(target: any) {
target.on = () => { /* do something... */ };
}

export function listen(receiver: IListener) {
receiver.on("foobar");
}
}

var obj = new Foo();
Lib.listen(obj);

Lib.listen({
on: ()=> {} // on method required
});

In real world.

case 1.

https://github.com/borisyankov/DefinitelyTyped/blob/705102df2b652bdbadad23561675116a26e48760/space-pen/space-pen.d.ts#L52

case 2.

// Emissary#emitter

https://github.com/atom/emissary#emitter

// .d.ts

https://github.com/borisyankov/DefinitelyTyped/blob/b4aba562ef4192bc3f2e770ab2018f89e047836b/emissary/emissary.d.ts#L13

// usage in TypeScript (dirty hack!)

https://github.com/vvakame/language-review/blob/d23f8797bbb6e99d636399a14c7035c4809ab365/lib/util/emissary-helper.ts#L11
Issue 1:
Hi everyone,

I was facing "init dgesdd failed init" error when I tried to estimate a huge matrix (>=10k) with tick.hawkesADM4, since my data is large, I need to estimate for the matrix with size around 200k. But when I tried with only 10k on the linux with huge (around 50GB) , It always pop up an error of failed init.

Can anyone help me please?

Thank you.

Reproducing code example:

import numpy as np
<< your code here >>

Error message:

Numpy/Python version information:

Issue 2:
Issue 1:
TypeScript Version:

1.8.7

Code

/* foo.ts*/
export class Foo {
name: string;
}

/*bar.ts*/
import {Foo} from './foo'
declare module './foo' {
interface Foo {
bar(): string;
}
}

Foo.prototype.bar = function() {
return this.name; // this's type is any
}

Expected behavior:

The type of this in augment function bar is any.

Actual behavior:

The type of this is Foo.

Issue 2:
TypeScript Version:

1.8.0

Code

function transform<T>(func: (stuff: T) => any) {
return null;
}

let f = ({a}) => 'foo';
transform(f); // success
transform(({a}) => 'bar'); // error

Expected behavior:

Both cases should inference T as { a: any }.

Actual behavior:

If func is defined as a variable, it works fine. But if it is inlined, it doesn't work.

Might be a duplicate of #1729, but this use case has no overload.
Issue 1:
Summary

The AxiosRequestConfig type is not broad enough for some use cases. For example, when using retry-axios, a custom key by the name of raxConfig is set in the AxiosRequestConfig argument. TS will rightfully report that raxConfig doesn't match any type in AxiosRequestConfig.

Context

axios version: latest

Environment: N/A

I think the most straightforward way to fix this would be to simply add [key: string]: any to the AxiosRequestConfig interface. What are your thoughts @mzabriskie ?

Issue 2:
Summary

Allow for typesafe extension of AxiosConfiguration

Context

Allow for the following user case (without the cast)

interface Config extends AxiosRequestConfig {
start?: Date
}
const requestConfig: Config = {
...
}
const instance = axios.create(requestConfig)

instance.interceptors.request.use(axiosConfig => {
const config = axiosConfig as Config // Cast is needed as axiosConfig is infered to AxiosConfiguration and not Config
config.start = new Date()
return config
})
Issue 1:
This issue makes TestDriveLetterInEvalSymlinks fails in some path configuration from at least Go 1.4 up to Go 1.6. The problem exists only on windows.

My current setup has go installed at the location G:.go. When running all.bash, the test TestDriveLetterInEvalSymlinks will fail with this result:

--- FAIL: TestDriveLetterInEvalSymlinks (0.00s)

path_test.go:1200: Results of EvalSymlinks do not match: "G:.go\src\path\filepath" and "G:.GO\src\path\filepath"

I tracked down the issue to the case-correcting procedure in symlink_windows.go. It seems that Windows's GetLongPathName will not correct the casing of a folder if it starts with a period.

The issue seem to be on Windows side and not on Go's. But it makes all.bat fail when someone's GOROOT has a folder starting with a dot in it so I prefered to make an issue for it.

Issue 2:
What version of Go are you using (go version)?

go version go1.6beta2 windows/amd64

What operating system and processor architecture are you using?

OS Name: Microsoft Windows 8 Single Language

OS Version: 6.2.9200 N/A Build 9200

Intel64 Family 6 Model 58 Stepping 9 GenuineIntel ~2400 Mhz

What did you do?

cd go\src

all.bat

What did you expect to see?

A clean build & test output.

What did you see instead?

--- FAIL: TestEvalSymlinksCanonicalNames (0.02s)

path_windows_test.go:161: EvalSymlinks("C:\USERS\JUCIE\APPDATA\LOCAL\TEMP\EVALSYMLINKCANONICAL102278141\TEST"

) returns "C:\Users\jucie\AppData\Local\Temp\EVALSYMLINKCANONICAL102278141\test", but should return "C:\Users\jucie\AppData\Local\Temp\evalsymlinkcanonical102278141\test"

path_windows_test.go:161: EvalSymlinks("C:\USERS\JUCIE\APPDATA\LOCAL\TEMP\EVALSYMLINKCANONICAL102278141\TEST

\DIR") returns "C:\Users\jucie\AppData\Local\Temp\EVALSYMLINKCANONICAL102278141\test\dir", but should return "C:\Users\jucie\AppData\Local\Temp\evalsymlinkcanonical102278141\test\dir"

path_windows_test.go:161: EvalSymlinks("C:\USERS\JUCIE\APPDATA\LOCAL\TEMP\EVALSYMLINKCANONICAL102278141\TESTI

NG_LONG_DIR") returns "C:\Users\jucie\AppData\Local\Temp\EVALSYMLINKCANONICAL102278141\TESTING_LONG_DIR", but should

return "C:\Users\jucie\AppData\Local\Temp\evalsymlinkcanonical102278141\testing_long_dir"

path_windows_test.go:161: EvalSymlinks("C:\USERS\JUCIE\APPDATA\LOCAL\TEMP\EVALSYMLINKCANONICAL102278141\TEST2

") returns "C:\Users\jucie\AppData\Local\Temp\EVALSYMLINKCANONICAL102278141\TEST2", but should return "C:\Users\jucie\AppData\Local\Temp\evalsymlinkcanonical102278141\TEST2"

FAIL

It appears to me EvalSymlinks works as it should, but the test says it doesn't. The test is broken. To mimic Windows comparison semantics, the test comparison should be case insensitive, because Windows filesystem is not case sensitive. Both "C:\USERS\JUCIE" and "C:\Users\Jucie" refer to the same file.

buildAndTestOutput.txt
Issue 1:
The coverage of managed pointers should be removed from the tutorial and perhaps replaced with a section mentioned shared ownership (in or after the ownership/boxes sections) and linking to the tutorial.

The shared ownership tutorial should explain when and why you would use shared ownership and the characteristics of the various available types.

Issue 2:
Rust deliberately restricts the use of shared mutable state out of concern for safety. However, this is no solace to users coming from other languages who are used to making effective use of shared mutable state to Get Things Done. We need a document that describes practical approaches used in rustc and Servo to safely work around this restriction.
Issue 1:
Is it possible to add a global interceptor for all calls like we set baseUrl and authorization header?

Issue 2:
Describe the bug

I created a instance with a param in it, but it doesn't seem to work

I Have already decleared a instance axios in my js file

const instance = axios.create({
baseURL: '/',
params: {
secret: 123
}
})

I want to send a request like this

/api/logout.json?secret=123

instance.get('/api/logout.json)
.then((res) => {
dispatch(changeLogin(false))
})

but after I use this instance to send a request

the request is only /api/logout.json

What is this problem, did instance doesn't received params?
Issue 1:
I am finding that running numpy.convolve with versions >= 1.14.6 automatically launches the job on all available CPUs/threads. Is this bug? This is not the behavior for numpy <= 1.14.5.

Reproducing code example:

import numpy as np
movingAvg = np.convolve(data, window, "same")

Numpy/Python version information:

('1.14.6', '2.7.12 (default, Nov 12 2018, 14:36:49) \n[GCC 5.4.0 20160609]')

Issue 2:
This is not a bug report but just an enhancement proposal.

I think it would be useful and important to be able to easily set the number of threads used by Numpy after Numpy import.

From the perspective of library developers, it is often useful to be able to control the number of threads used by Numpy, see for example biopython/biopython#1401.

It is not difficult to do in a simple script when we are sure that Numpy or Scipy have not been imported previously with something like:

import os
os.environ["OMP_NUM_THREADS"] = "1"
import numpy as np

However, in a library there is a good chance that the user has already imported Numpy in its main script, with something like

import numpy as np

import fluidimage

In this case, I don't see how to set the number of threads used by Numpy from the fluidimage code.

Thus, it would be very convenient to have a function np.set_num_threads.