WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I'm new to git. So writting here.

In reset.less we have following lines

// Prevent max-width from affecting Google Maps
#map_canvas img {
max-width: none;
}

we should add same for VE/Bing maps as follows

// Prevent max-width from affecting Google Maps
.MSVE_Map img {
max-width: none;
}

Issue 2:
First of all thanks for your fantastic work. It does SAVE me a lot of time.

When I put Google Maps into Bootstrap layout, img tag in Google Maps breaks because Bootstrap set img max-width to 100%. When I comment max-width, it's working find but I'm not sure whether it'll break something else in Bootstrap or not.

Bootstrap and Google Maps

http://jsfiddle.net/jhnRD/1/

Google Maps without Bootstrap

http://jsfiddle.net/aVx8L/

Cheers,
Issue 1:
Vue.js version

1.0.16

Reproduction Link

https://jsfiddle.net/4eh989ee/2/

Steps to reproduce

Focus on the only input available within the output window, type a single k letter and immediately hit enter.

Clear the text in the output.

Type a single k letter, wait a two (2) seconds or more, and hit enter

What is Expected?

Alert is show with the contents reading name: ""

N/A

Alert is show with the contents reading name: "k"

What is actually happening?

The model does not get set when the form is submitted.

Note

This is a duplicate of issue #2028. I commented after it was closed but didn't get any feedback. I don't know if anyone is being notified of the comments following the close of the issue.

Issue 2:
Version

2.5.17

Reproduction link

https://jsfiddle.net/632dch1e/

Steps to reproduce

open link to minimal reproduction

What is expected?

Keep the type even if you set the class that extends Array to data.

What is actually happening?

Methods defined in a class that extends Array can not be used.

Also, since the class of each object of Array remains as it is, the class structure is broken.
Issue 1:
Hello, I'm working on the typescript definitions for createjs, you can see it here: https://bitbucket.org/drk4/createjs_ts_definitions

I think its a good idea to have the definitions on a single place so, if you're interested you can add it. It still needs testing, so maybe have a message saying that I suppose.

Cheers

Issue 2:
I recently created bluebird definitions using any as data type.

But ideally it should use generics, like Q, es6-promises etc.

I'm not 100% clear what the correct pattern is. It looks like #1550 has the same basic Promise signature, maybe copy it from there once it settled.
Issue 1:
by kq1quick:

The language specification currently states:

Tokens

Tokens form the vocabulary of the Go language. There are four
classes: identifiers, keywords, operators and delimiters, and
literals. White space, formed from spaces (U+0020), horizontal tabs (U
+0009), carriage returns (U+000D), and newlines (U+000A), is ignored
except as it separates tokens that would otherwise combine into a
single token. While breaking the input into tokens, the next token is
the longest sequence of characters that form a valid token.

The second sentence is wrong: it states that there are "four" classes and
then proceeds to enumerate 5.

The third sentence is no longer true with the Dec 22 release. At a
minimum, the assertion above that carriage returns are whitespace must be
removed because they now no longer server to separate tokens and are
ignored otherwise: they significantly affect the parse. See issues 453
and 454 and http://groups.google.com/group/golang-nuts/t/9eb0c7c1f20db921
(particularly my post). More explicitly, it should discuss the fact that
newlines are sometimes just whitespace and sometimes parse elements and
that there are special rules throughout the latter portions of the
language specification detailing when they are not just whitespace.

To this end, newlines may form the 6th class of tokens.

Issue 2:
Go documentation is very good, but it doesn't clearly label which go version features
are available in.

For instance I was caught out by http://golang.org/pkg/time/#Timer.Reset being a go 1.1
feature which meant my code would no longer compile with go 1.0.

Other examples are

* http://golang.org/pkg/net/http/#Transport.CancelRequest
* ResponseHeaderTimeout in http://golang.org/pkg/net/http/#Transport
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.3

Operating System version: xxx

Java version: 1.8

Springboot: 2.1.8

nacos: 1.1.3

Steps to reproduce this issue

在@reference配置指定方法的超时时间2000,其他地方的超时配置全去掉

测试

dubbo使用了超时时间1000,即@reference的配置不生效

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

Expected Result

关于超时时间的优先级,我的理解是@reference>@service>consumer的yml配置>provider的yml配置

在provider和consumer的bootstrap.yml里使用dubbo.consumer.timeout和dubbo.provider.timeout配置各自的全局超时时间

在@reference和@service注解上配置指定方法或指定类的超时时间

期望通过以上方式合理的控制超时时间

Actual Result

springboot+dubbo+nacos项目能够正常运行

只在consumer的yml里使用dubbo.consumer.timeout配置超时时间,生效,符合预期

注释掉2的配置,系统使用了dubbo的默认超时时间1000,符合预期

只在 consumer使用@reference(version = "${this.version}", timeout = 6000) 不符合预期 ,期望使用6000,测试结果显示使用了默认的1000

只在consumer使用@reference(version = "${this.version}" ,methods = {

@method(name = "xxxMethod", timeout = 5000)

}) 不符合预期 期望使用配置的,测试结果显示使用了默认的1000

只在provider配置@service(version = "${this.version}", methods = {

@method(name = "xxxMethod", timeout = 21000)

}) 不符合预期 期望使用配置的,测试结果显示使用了默认的1000

只在@service(version = "${this.version}", timeout = 4000)配置超时时间, 符合预期

在provider的yml里配置dubbo.provider.timeout=5000,并在@service(version = "${this.version}", timeout = 4000), 不符合预期,测试结果是5000,期望是service上的能覆盖全局的

总结:

请问是我优先级理解错误,还是@reference和@service注解配置不生效

如何实现在一个地方可以配置整体的超时时间,又可以在特定的接口或者方法上配置特殊的超时时间

注:

1.用的是org.apache.dubbo.config.annotation.Reference和org.apache.dubbo.config.annotation.Service

2. consumer是一个springboot项目 , provider是另一个springboot项目,服务的注册发现,提供给别的项目使用,都没有问题.

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

Operating System version: CentOS x64

Java version: 1.8

Steps to reproduce this issue

使用dubbo 2.6.2，搭建dubbo服务（技术栈：dubbo，spring boot 2.0.4.RELEASE，zookeeper）

暴露dubbo任意dubbo服务，此服务的逻辑中调用别的服务

运行一段时间后，发现控制台界面出现以下警告：

WARN com.alibaba.dubbo.registry.integration.RegistryDirectory:200 notify [DUBBO] Unsupported category providers,configurators,routers in notified url: empty://。。。

从日志中查看到，警告为RegistryDirectory类第 200行打印出的警告，如下图：

通过断点，进一步追综代码运行堆栈，发现，问题可能在于 CuratorWatcherImpl （CuratorZookeeperClient类的一个内部类），process方法中，path为null引起，如下图：

因为当以上170行代码的 path为null 的时候，会被赋予一个空字符串""，这导致 171行代码调用childChanged时，传了空串参数进去。（请注意上图中第172处的 // if path is null, curator using watcher will throw NullPointerException. 之类的注释，可能有助于解决这个问题）

因为为path赋值了空串参数，导致 ZookeeperRegistry类中的 179行代码进调用 notify 的时候，传了空字符串参数进去，如下图：

（说明：以上代码块为 ZookeeperRegistry 中的 doSubscribe 方法，用于消费者订阅 ，该方法内部开启了一个监听节点变化的 listener），因为进传递进来的 parentPath 参数为空串，导致 179行代码在调用 toUrlsWithEmpty 方法的时候，得到的 url 中的 category 的值依旧为providers,configurators,routers ，重而导致上诉警告。

通过以上分析，问题原因，很可能就是 RegistryDirectory类第 170行处path为null引起，通过那段代码块的注释，我猜测，可能 是为了解决 空指针异常而产生的新的警告，相关issue如下：

#870

#928
Issue 1:
Is there an existing issue for this?

I have searched the existing issues

This issue exists in the latest npm version

I am using the latest npm

Current Behavior

Create this package in an empty directory:

{
"name": "missing-fs-extra",
"private": true,
"description": "A simple package to reproduce missing dependencies when installing with the --production flag",
"version": "0.1.0",
"dependencies": {
"gatsby": "^4.4.0"
},
"devDependencies": {
"@storybook/react": "^6.4.9"
},
"license": "MIT",
"scripts": {
"build": "gatsby build"
}
}

Then attempt to run:

npm install --production && npm run build

Notice how fs-extra which is a direct dependency of gatsby is missing from the installed node-modules. fs-extra is also a direct dependency (with a mismatched version) of @storybook/react, however @storybook/react is a devDependency so my understanding is that it should be ignored completely when installing with the --production flag.

Expected Behavior

fs-extra should be installed in node_modules because it is a direct dependency of gatsby which is a direct dependency of the root package.

Steps To Reproduce

Using npm version 8.3.0

With this package:

{
"name": "missing-fs-extra",
"private": true,
"description": "A simple package to reproduce missing dependencies when installing with the --production flag",
"version": "0.1.0",
"dependencies": {
"gatsby": "^4.4.0"
},
"devDependencies": {
"@storybook/react": "^6.4.9"
},
"license": "MIT",
"scripts": {
"build": "gatsby build"
}
}

Run npm install --production

Notice the fs-extra module is missing from the installed modules, and when gatsby runs (npm run build) it fails to resolve the dependency.

Environment

npm: 8.3.0

Node: v14.18.2

OS: MacOS Catalina 10.15.7 (19H1615)

platform: MacbookPro

npm config:

; node bin location = /Users/fernandotoledo/.nvm/versions/node/v14.18.2/bin/node
; cwd = /Users/fernandotoledo/Desktop/test
; HOME = /Users/fernandotoledo
; Run `npm config ls -l` to show all defaults.

Issue 2:
Is there an existing issue for this?

I have searched the existing issues

Current Behavior

If a package contains a node_modules that is symlinked then an npm install will issue the message

npm WARN reify Removing non-directory ....

and delete the node_modules directory.

Expected Behavior

A symlinked node_modules directory should be used as is and not recreated - many people symlink node_modules to a local filesystem so that it does not get synced to cloud storage (like Dropbox).

I suspect that the npm code is just checking if any existing file object named node_modules is a directory and does not also check to see if the non-directory file object is actually a symlinked directory.

Steps To Reproduce

cd /tmp

mkdir symlinked

mkdir z

cd z

npm init -y

ln -s /tmp/symlinked node_modules .

npm install lodash

Environment

OS: Ubuntu 20.04.1

Node: 16.7

npm: 7.21.0
Issue 1:
Problem Description

In the most recent alpha with the most recent release of normalize.css (4.0.0), EnhancedButtons are styled like actual buttons.

After doing some digging, the problem is with recent changes in both projects. In material-ui, commit 00b6ba1 added passing the type attribute to the inner element, and in normalize.css a recent commit lowered the specificity of a rule giving any element with [type=button] -webkit-appearance: button. I've already opened an issue in their project but because type is not a valid attribute for span and because lowering the specificity is slightly more performant, they don't seem to keen on reverting those changes.

Versions

Material-UI: 0.15.0-alpha.2

React: 0.14.7

Browser: Google Chrome 49.0.2623.87 (64-bit)

Issue 2:
While working on mui-app-container, I ran into an issue with AppBar that appears to only be present on Safari (it does not exhibit on Chrome or IE 11 at least) - when toggling a persistent drawer closed and then reopen it, the AppBar does not account for the width of the drawer.

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

Expected Behavior

An AppBar should offset to the right by the amount of the drawer after reopening.

Current Behavior

After closing and reopening a persistent Drawer, the left side of AppBar is now under the Drawer instead of being shifted to the right. This is present on the v1 docs as of today (v1.0.0-beta.28). Notice the "Drawers" title not being present.

Safari (problem)

Chrome (no problem)

You can also see this problem when toggling the persistent drawer example (notice "Persistent drawer" no longer being visible when the drawer is open)

You can also see this problem reproduced in mui-app-container's storybook with the story source here

Steps to Reproduce (for bugs)

Go to persistent drawer example

Click on menu icon to toggle drawer

Notice "Persistent drawer" title is hidden under drawer instead of being shifted]

Context

I have been working on creating a <AppContainer> component to help orchestrate <Drawer>, <AppBar>, and content components and came across this issue.

Your Environment

Tech
Version

Material-UI
v1.0.0-beta.28

React
16.1.1

browser
Safari 11.0.2 (desktop and iOS)
Issue 1:
This code:

m = krm.Graph()
m.add_input('x', input_shape=(10,))
m.add_node(klc.Dense(5), 'y', input='x', create_output=True)
m.compile(loss={'y': 'mse'}, optimizer='adam')

with open('test.json', 'w') as f:
f.write(m.to_json())

with open('test.json', 'r') as f:
m = krm.model_from_json(f.read())

crashes with the following error:

... models.py", line 166, in model_from_json
... models.py", line 177, in model_from_config
... layer_utils.py", line 64, in container_from_config
... containers.py", line 568, in add_output
raise Exception('Duplicate output identifier: ' + name)
Exception: Duplicate output identifier: y

I'll see if I can fix it.

Issue 2:
This is probably a duplicate of #4302 (where only tensorflow was tested).

Problem

when using the Reshape layer it is not clear if one can use an unknown dimension (-1) like in numpy. Using it results in an error. See the following example (please bare with we that this is not a useful example, but it's just to show the actual problem):

from keras.layers.core import Dense, Reshape
from keras.models import Sequential
import numpy as np

X = np.random.random((1000, 50))
y = np.random.random((1000, 1))

model = Sequential()
model.add(Dense(30, input_shape=(50,)))
model.add(Reshape((-1, 6)))
model.add(Reshape((30,)))
model.add(Dense(1))
model.compile(loss='mse', optimizer='sgd')
model.fit(X, y)

This results in the following error (tested with Keras 1.2.0 and Theano-0.9.0.dev4)

File "test.py", line 10, in <module>
model.add(Reshape((-1, 6)))
File "keras/models.py", line 327, in add
output_tensor = layer(self.outputs[0])
File "keras/engine/topology.py", line 569, in __call__
self.add_inbound_node(inbound_layers, node_indices, tensor_indices)
File "keras/engine/topology.py", line 632, in add_inbound_node
Node.create_node(self, inbound_layers, node_indices, tensor_indices)
File "keras/engine/topology.py", line 164, in create_node
output_tensors = to_list(outbound_layer.call(input_tensors[0], mask=input_masks[0]))
File "keras/layers/core.py", line 354, in call
return K.reshape(x, (-1,) + target_shape)
File "keras/backend/theano_backend.py", line 567, in reshape
return T.reshape(x, shape)
File "theano/tensor/basic.py", line 4722, in reshape
newshape = as_tensor_variable(newshape)
File "theano/tensor/basic.py", line 212, in as_tensor_variable
raise AsTensorError("Cannot convert %s to TensorType" % str_x, type(x))
theano.tensor.var.AsTensorError: ('Cannot convert (-1, None, 5, 6) to TensorType', <type 'tuple'>)

where as

model.add(Reshape((5, 6)))

instead of

model.add(Reshape((-1, 6)))

would work as expected.

To me it looks like the keras backend supports -1 dims so the question is why can't users access it from the reshape layer? Is there any way around it? Where should I look to implement this feature?

Applications

Connecting the output of a 2D CNN and a RNN is difficult because the exact output shape after pooling/downsampling operations need to be known. See the the following keras builtin application. If the input dimension would change or even just the pooling stride, the reshape operation would need to be adjusted manually, which could be cumbersome in a network with many layers.
Issue 1:
From @wangyibu on April 29, 2016 9:34

VSCode Version:1.0.0

OS Version:window7 sp1 build 7601

VS2015: commuity 2015 update1

system path: C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.7;

Steps to Reproduce:

1.add two ts file and compile

2.add new folder

move all ts file and js file to new folder

Copied from original issue: microsoft/vscode#5980

Issue 2:
Using destructuring in functions signatures is a relief, but when combining it with type declarations there is a lot of duplication necessary:

function foo(
{paramA, paramB, paramC, paramD = null}
:{paramA: number, paramB: string, paramC: boolean, paramD?: Object}
) {}

function bar(
[paramA, paramB, paramC, paramD]
:[number, string, boolean, Object]
) {}

Would it make sense to introduce the following syntax to reduce duplication of code?

function foo(
{paramA as number, paramB as string, paramC as boolean, paramD? as Object}
) {}

function bar(
[paramA as number, paramB as string, paramC as boolean, paramD as Object]
) {}

Originally I wanted to suggest to use the colon ":" instead of the "as", but since the colon is used for renaming destructured parametes, the "as" is the only option I guess.

With this syntax change the following would be possible too I guess:

let {paramA as number, paramB as string, paramC as boolean, paramD as Object} = anyObject;
let {paramA: a as number, paramB: b as string, paramC: c as boolean, paramD: d as Object} = anyObject;
let [paramA as number, paramB as string, paramC as boolean, paramD as Object] = anyArray;
Issue 1:
//== tests/cases/compiler/conflictingMemberTypesInBases.ts (1 errors) ====
interface A {
m: string;
}
interface B extends A {
}
interface C {
m: number;
}
interface D extends C {
}

interface E extends B { } // Error here for extending B and D
//!!! Interface 'E' cannot simultaneously extend types 'B' and 'D':
//!!! Named properties 'm' of types 'B' and 'D' are not identical.
interface E extends D { } // No duplicate error here

Expected: errors as above

Actual: no errors

Issue 2:
The early discussions about generics had this feature outlined, but it never made it into the final version for some reason. Meanwhile, it would be extremely helpful in some cases. The use case that it most dear to my heart is Knockout:

interface Observable<T> {
<U>( this: U, value: T ): U;
}

var viewModel = {
Str: ko.observable( "abc" ),
Num: ko.observable( 5 )
};

viewModel.Str( "xyz" ).Num( 10 );
Issue 1:
Hi guys, thanks for such a wonderful library. I want a special type of image transformation.

This custom transformation should scale the image down maintaining the original aspect ratio so that one dimension of the image is exactly equal to the target dimensions and the other dimension of the image is greater than the target dimensions.

Can I achieve this effect using CENTER_CROP or should I write custom transformation? Please help me out.

If I need to write custom transformation, please help me writing it.

Issue 2:
Glide Version/Integration library (if any): 3.6.0

Device/Android Version: any

Issue details/Repro steps/Use case background:

How to repo:

I have a demo app with this bug here: https://github.com/yrizk/glide-centercrop-bug

but essentially...

no scale type declared in the xml

centerCrop() when loading image into an imageview.

make sure the app is cleared from memory

The image will start w/o the center crop, then if you scroll past or above it, then sometimes it comes back with the correct scale type.

on a separate note, the library is really good! thank you guys for building and supporting this
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.476]
Windows Terminal Version: 0.6.2951.0

Any other software?: NO

Steps to reproduce

when i open the terminal on my surface laptop it works fine but when i try to drag the windows to another monitor, the application crashes.

i have a surface laptop hooked up to surface dock which is connected to 2 monitors and the behavior appears on both of them

Expected behavior

the terminal stays open and might change the size and the resolution depending on the monitor

Actual behavior

the terminal window crashes and all the tabs in the windows get closed

Issue 2:
🤣
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke-staging/6076/

Failed: Horizontal pod autoscaling (scale resource: CPU) [Serial] [Slow] ReplicaSet Should scale from 1 pod to 3 pods and from 3 to 5 and verify decision stability {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:61
Jun 30 14:37:23.294: timeout waiting 10m0s for pods size to be 5

Previous issues for this test: #27316 #27773

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke-serial/1619/

Failed: [k8s.io] [HPA] Horizontal pod autoscaling (scale resource: CPU) [k8s.io] [Serial] [Slow] ReplicationController Should scale from 1 pod to 3 pods and from 3 to 5 and verify decision stability {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:70
Expected error:
<*errors.StatusError | 0xc8214e6200>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server has asked for the client to provide credentials (get replicationControllers rc)",
Reason: "Unauthorized",
Details: {
Name: "rc",
Group: "",
Kind: "replicationControllers",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Unauthorized",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 401,
},
}
the server has asked for the client to provide credentials (get replicationControllers rc)
not to have occurred

Previous issues for this test: #27479 #27675
Issue 1:
After upgrade from 2.4.10 to 2.5.6 I've got error

Variable "welcome_title" does not exist ...

config.yml

twig:
globals:
welcome_title: Welcome!

After investigation I've found difference in the app/cache/dev/appDevDebugProjectContainer.php

2.4.10

...
$instance->addGlobal('app', $this->get('templating.globals'));
$instance->addGlobal('welcome_title', 'Welcome!');

return $instance;

2.5.x (I've tried few version: 2.5.1, 2.5.4, , 2.5.6)

only

...
$instance->addGlobal('app', $this->get('templating.globals'));

return $instance;

Bug?

Suggestions?

Issue 2:
When rendering a Date field type using a Choice widget the value field e.g. 1901 is correct but the text part is empty.

<option value="1900"></option>
<option value="1901"></option>
<option value="1902">1902</option>

This is most obvious when using a Birthday field as it by default starts 120 years ago.

Symfony 2.1.2

PHP 5.4.6
Issue 1:
#### Summary

The user code usually expects a specific type for the data returned from a request. currently however that metadata is lost and when using AxiosResponse and AxiosPromise we have to do casting.

Here is how you could allow setting the type while not breaking backward compatibility:

redefine the types:

export interface AxiosResponse<T = any> {
data: T;
status: number;
statusText: string;
headers: any;
config: AxiosRequestConfig;
}

export interface AxiosPromise<TData = any> extends Promise<AxiosResponse<TData>> {
}

export interface AxiosInstance {
/// ...redacted code
request<T = any>(config: AxiosRequestConfig): AxiosPromise<T>;
get<T = any>(url: string, config?: AxiosRequestConfig): AxiosPromise<T>;
delete<T = any>(url: string, config?: AxiosRequestConfig): AxiosPromise<T>;
head<T = any>(url: string, config?: AxiosRequestConfig): AxiosPromise<T>;
post<T = any>(url: string, data?: any, config?: AxiosRequestConfig): AxiosPromise<T>;
put<T = any>(url: string, data?: any, config?: AxiosRequestConfig): AxiosPromise<T>;
patch<T = any>(url: string, data?: any, config?: AxiosRequestConfig): AxiosPromise<T>;
}

Now you can do this and get an error

let promise = axios.request<{email:string}>(config);
promise.then(res=>{
console.log('The user email is ' + res.data.eail); /// ERROR
});

I can look at the actual code (not the d.ts files) and make a pull request if you want.

#### Context

axios version: 1.6

typescript >= 2.3 (for the default generic type)

Issue 2:
Hello,

As axios automatically converts JSON responses could we get something like this:

get<T>(url: string, config?: AxiosRequestConfig): AxiosPromise<T>;

export interface AxiosPromise<T> extends Promise<AxiosResponse<T>> {
}

export interface AxiosResponse<T> {
data: T;
status: number;
statusText: string;
headers: any;
config: AxiosRequestConfig;
}