WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Material design table example

Table's text-weight should be 500.

Current Behavior

Your table example

text-weigth is 400

Your Environment

Tech
Version

Material-UI
beta.32

React
16.2.0

browser
Chrome 64.0.3282.140

Issue 2:
On some Android devices the SelectField's Menu renders in the top-left, and then pops down to where the field is.

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

Expected Behavior

That the menu animates in, vs rendering and just "popping" over the textfield.

Steps to Reproduce (for bugs)

NOTE: Steps below using Galaxy S5 running Android 6.0.1 using Chrome 62.0.3202.84

Open up material-ui.com site

Open side-nav and interact w/ the version dropdown

Navigate to SelectField component examples

Start interacting w/ select fields

Tech
Version

Material-UI
0.19.4

React
15.5.4

browser
Chrome

device
Galaxy S5
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/728 on 2008-08-25 by trac user jschrod3, assigned to @wnbell.

I'm using scipy version

Out[4]: scipy.version.version

Out[5]: '0.7.0.dev4561'

When I use the gmres routine from scipy.sparse.linalg, I cannot control its maximum number of iterations through the maxiter variable, nor does the "callback" routine ever seem to get called, so I can't track convergence.

I found this ticket,

http://www.scipy.org/scipy/scipy/attachment/ticket/360/new_iterative_gmres.py

which I was able to adapt to the current gmres (see attached modified iterative.py) so that I can get access to residuals in gmres and track convergence. However since maxiter is broken, gmres will sometimes iterate an insane number of times before returning and my residual history can be about 10,000 values long for a 744x744 matrix. This also takes a long time, so that doing automated numerical tests is not at all efficient. (note the 10,000 gmres iterations are what my research aims to fix. I'm well aware that a well-preconditioned gmres call will terminate much sooner.)

Could gmres be extended so that it

(1) uses maxiter

(2) executes "callback(resid)" every full gmres iteration so that I can track convergence?

These functionalities are critical if I'm to use gmres at all. I would imagine that others are in my boat.

Thanks

Issue 2:
With Python 3.9a3

_____________________________________________________________________ TestFactorialFunctions.test_mixed_nan_inputs ______________________________________________________________________
scipy/special/tests/test_basic.py:1835: in test_mixed_nan_inputs
result = special.factorial(x, exact=True)
scipy/special/_basic.py:2354: in factorial
val = math.factorial(un[0])
E DeprecationWarning: Using factorial() with floats is deprecated
Issue 1:
System info

Playwright Version: [v1.32.3]

Operating System: [All]

Browser: [All]

Other info: Typescript version is ^5.0

Source code

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

Link to the GitHub repository with the repro

https://github.com/mattjennings/playwright-ts-export-type-bug

Steps

Run npm install

Run npm run typecheck and note that there are no errors

Run npm run test

Expected

Test runs with no compile errors

Actual

playwright test errors with:

Error: /Users/mattjennings/tmp/tspw/tests/utils/index.ts: Unexpected token (1:12)

> 1 | export type * from './types'
| ^
2 | export { something } from './types'

at example.spec.ts:2

1 | import { test, expect } from '@playwright/test';
> 2 | import { something } from './utils'
| ^
3 |
4 | test('has title', async ({ page }) => {
5 | something()

This syntax is supported as of Typescript 5.0, and Playwright seems to be using Typescript ^5.0.0, so I'm unsure why this error is thrown.

Issue 2:
Hi! @aslushnikov sorry to bother, Just linked to this issue #17670 - I could see it stopped happening when using less workers. I was using 8 and setting only 2 or 4 the tests pass constantly.

Is there any where I can look at ? Could that be due to the application not behaving properly when running multiple tests at same time or could be a bug ?

I know it's hard as I Can't share the repo, but the tests are pretty simple and can share info (I hope it helps), if it does not help at all, please feel free to just close it, no problem at all!:

playwright.txt

And the config I am using:

projects:[
{
name: 'chromium',
use: {
headless: true,
...devices['Desktop Chrome'],
launchOptions: {
proxy: {
server: myserver,
username: myuser,
password: mypassword
}
}
}
}
]

I triggered them using DEBUG=pw:test but I could not see any issues in the logs:

pw:test test finished "@MODALERROR @COMPONENT Should show duplicate error" +10s
…um] › components\modal\modalError.spec.js:102:5 › Modal Error Popup › @MODALERROR @COMPONENT Should show duplicate error
pw:test teardown page +0ms
pw:test teardown context +0ms
pw:test teardown _contextFactory +0ms

4) [chromium] › components\modal\modalError.spec.js:102:5 › Modal Error Popup › @MODALERROR @COMPONENT Should show duplicate error

Test timeout of 30000ms exceeded while tearing down "context".

And with DEBUG=pw:browser:

pw:browser writing frame 1665048293.218038 +48ms
pw:browser writing frame 1665048293.237627 +57ms
pw:browser writing frame 1665048293.257545 +18ms
pw:browser writing frame 1665048293.273618 +29ms
3) [chromium] › components\modal\modalError.spec.js:59:5 › Bank Modal Error Popup › @MODALERROR @COMPONENT Should show redirect to forgot password page

Test timeout of 30000ms exceeded while tearing down "context".

Thanks!
Issue 1:
ISSUE TYPE

Feature Idea

COMPONENT NAME

os_router_module

ANSIBLE VERSION

Master, just checked https://github.com/ansible/ansible-modules-core/blob/devel/cloud/openstack/os_router.py

SUMMARY

Currently there is no way of adding static routes with the os_router module

Issue 2:
ISSUE TYPE

Bug Report

COMPONENT NAME

ansible-vault

ANSIBLE VERSION

ansible 2.3.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.13 (default, Jan 12 2017, 17:59:37) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]

CONFIGURATION

No changes

OS / ENVIRONMENT

Fedora 25, latest patch level as of 2017/04/28

SUMMARY

Piping the output of echo into ansible-vault (as suggested in the man page) fails with the output:

ERROR! [Errno 2] No such file or directory: '/working-directory/-'

"working-directory" is the directory from where the command is executed (=$(pwd)).

STEPS TO REPRODUCE

Open a terminal on the host

Execute:

echo "foo" | ansible-vault encrypt --output '/tmp/foobar'

EXPECTED RESULTS

An encrypted file named 'foobar' containing "foo" is created in /tmp/.

ACTUAL RESULTS

New Vault password:
Confirm New Vault password:
ERROR! [Errno 2] No such file or directory: '/working-directory/-'
Issue 1:
When building a native addon for Electron on Windows, node-gyp downloads the .lib files for linking from https://atom.io/download/electron/<version number>/win-x86/node.lib. This link is now accessible for version numbers 4.0.0 and above, and 404 for lower version numbers. I assume that is unintentional because I have not seen any announcement about those versions no longer being supported.

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

Electron's docs indicate that it is not possible to run an electron app without a display server running (see https://www.electronjs.org/docs/tutorial/testing-on-headless-ci ).

However, chromium no longer needs a display server to run in headless mode.

I believe it should be possible for electron to be run in the same way as chromium and no longer require that the linux system have xvfb installed or have a display server.

Proposed Solution

Ideally, this ends up being a documentation issue only and electron can already be run without a display server but the docs need to be updated to reflect that.

Electron might need a different set of startup flags to run in a headless mode. Chromium needs to be run using its own --headless flag to enable this behavior. Maybe that flag could be used for electron as well.

Alternatives Considered

Electron already interacts with the environment variable ELECTRON_RUN_AS_NODE to spawn electron as a node process. Maybe that is a better escape hatch for the display server requirement.

Additional Information

I'm filling this bug since I wish to be able run the cypress test runner without having to use xvfb. I've filed an associated issue on their repo with a bit more context for that use case cypress-io/cypress#16505
Issue 1:
Method/accessor decorators use defineProperty and getOwnPropertyDescriptor, which are not allowed in ES3. But class and property decorators don't use them. So class/property decorators can be allowed when targeting ES3.

It would be helpful. E.g. I must support old browsers and I use the property like methods instead of pure properties:

value(v?) {
if (arguments.length) {
// setter
} else {
// getter
}
}

I have the factory function that creates such method:

interface Accessor<T> {
(): T;
(v: T): void;
}

function accessor<T>(propName: string): Accessor<T>;
function accessor<T>(propName: string) {
return function (v?: T) {
// if (arguments.length) and bla-bla-bla
}
}

Currently I have to set such properties in the class prototype explicitly:

class Foo {
value: Accessor<string>;
}
Foo.prototype.value = accessor<string>("value");

With decorators I could write more cleaner code:

function Accessor(proto, propName: string) {
proto[propName] = accessor(propName);
}

class Foo {
@Accessor
value: Accessor<string>;
}

Also there is no need to duplicate the property name ("value" in the example above).

Issue 2:
Update: This issue is now only for the following collections:

MediaList

StyleSheetList

CSSRuleList

Originally it was about NodeList as well, but that was fixed (along with DOMTokenList) in #3393

Original:

var paragraphs = document.querySelectorAll("p");
for (let p of paragraphs) {
console.log(p);
}

foo.ts(2,15): error TS2488: The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator.

Seems it just needs an update to lib.es6.d.ts to add the [Symbol.iterator()] to all the collections that have an indexer and length property. The ones I found that have it in Nightly are below. The rest were either IE-only or didn't exist. Removed my list since it seems FF has more than the specs allow. See zloirock/core-js#137 (comment) for a more accurate list.
Issue 1:
Hi,

I have (mocha) specs which have the same filename as the subject under test and only another extension. Example: subject.js and subject.spec.js. Since the AMD and the System formatter inherit from the Default formatter all file extensions are removed. This results in duplicate module ids. How about making the removal of the file extension or configurable? So that either I have module ids matching the filenames or that just the last "extension" is removed.

Thanks

Issue 2:
Issue originally made by @loganfsmyth

Input code

function fn(){
true;

// Comment
false;
}

Description

Output:

"use strict";

function fn() {
true;

// Comment
false;
}

with map:

{"version":3,"sources":["main.js"],"names":[],"mappings":";;AAAA,SAAS,EAAT,GAAa;AACT;;;AADS,SAIT,CAJS;CAAb","file":"main-out.js","sourcesContent":["function fn(){\n true;\n\n // Comment\n false;\n}\n"]}

running through source-map results in the following bindings:

[
{
"source": "main.js",
"generatedLine": 3,
"generatedColumn": 0,
"originalLine": 1,
"originalColumn": 0,
"name": null
},
{
"source": "main.js",
"generatedLine": 3,
"generatedColumn": 9,
"originalLine": 1,
"originalColumn": 9,
"name": null
},
{
"source": "main.js",
"generatedLine": 3,
"generatedColumn": 11,
"originalLine": 1,
"originalColumn": 0,
"name": null
},
{
"source": "main.js",
"generatedLine": 3,
"generatedColumn": 14,
"originalLine": 1,
"originalColumn": 13,
"name": null
},
{
"source": "main.js",
"generatedLine": 4,
"generatedColumn": 0,
"originalLine": 2,
"originalColumn": 4,
"name": null
},
{
"source": "main.js",
"generatedLine": 7,
"generatedColumn": 0,
"originalLine": 1,
"originalColumn": 13,
"name": null
},
{
"source": "main.js",
"generatedLine": 7,
"generatedColumn": 9,
"originalLine": 5,
"originalColumn": 4,
"name": null
},
{
"source": "main.js",
"generatedLine": 7,
"generatedColumn": 10,
"originalLine": 1,
"originalColumn": 13,
"name": null
},
{
"source": "main.js",
"generatedLine": 8,
"generatedColumn": 1,
"originalLine": 1,
"originalColumn": 0,
"name": null
}
]

Given this map, if you want to find the original position of line 7 column 4, which should be line 5 column 4, instead we get line 1 column 13 (the start of the 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

branch: master

Steps to reproduce this issue

When the rc.getParameters() return null,cc.getParameters() will be null too.

if (rc.getParameters() != null) {
Map<String, String> configParams = cc.getParameters() == null ? new HashMap<>() : cc.getParameters();
configParams.putAll(rc.getParameters());
cc.setParameters(configParams);
}
cc.getParameters().put(org.apache.dubbo.remoting.Constants.CLIENT_KEY,rc.getClient());

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

Operating System version: window7

Java version: 1.8

Steps to reproduce this issue

使用注解Method进行回调通知存在bug

这样做仅仅会将字符串进行设置，显然通常他需要的是一个合理的对象，在spring中，这导致后面的回调会出现错误，

spring的这里使用RuntimeBeanReference在后续解析后会引用到具体回调实现。
Issue 1:
See http://jsfiddle.net/PnLkH/1/.

Using contextual classes (e.g. panel-warning) on panels doesn't style their panel-footer of the right color, whereas it does for panel-headings.

Issue 2:
Perhaps this was just an oversight, but I was surprised to see that the .panel-footer class isn't set to pick up the contextual panel styles.

Since the existing contextual panel styles (.panel-primary, etc.) don't just affect the background and border colors of .panel-heading, but also the border color for .panel itself, it seems odd that .panel-footer isn't also styled accordingly.

See the following examples:

Bootstrap 3 RC2 Contextual Panel with Panel Footer

Proposed Panel with Contextual Panel Styles Applied to Panel Footers
Issue 1:
Current behavior

According to Victor Savkin article when using the OnPush strategy if the component Input does not change, there is no need to check the component’s template. But in my example when I am clicking on the trigger button and the Input does not change the ngAfterViewChecked hook still running.

Expected behavior

The ngAfterViewChecked in the component should not run.

Minimal reproduction of the problem with instructions

This is a working plunker.

Issue 2:
I'm submitting a bug report

Current behavior

Published code & umd bundles from npm such as @angular/platform-browser/bundles/platform-browser.umd.js from @angular/platform-browser include extra licenses and empty abstract methods.

Expected behavior

Ideally our .umd bundles would not include these abstract no-op methods or the duplicate license information. This would probably result in bundle size reduction and performance increase for all Angular apps using these bundles.

Minimal reproduction of the problem with instructions

npm install @angular/platform-browser
grep ") { }" node_modules/@angular/platform-browser/bundles/platform-browser.umd.js

Angular version: 2.4.1 & master
Issue 1:
THe docker network interface cbr0 does not get created after rebooting a minion on gce.

Issue 2:
When a minion reboots, docker tries to start before salt has created the cbr0 bridge device. Docker gives up and fails to start.

From dcoker's log:

364aa5b3.init_networkdriver()] bridge not found: cbr0

net: no such interface

[364aa5b3] -job init_networkdriver() = ERR (1)

Eventually salt makes the bridge and docker can be started, but nobody

tries. Unless you SSH in manually.

I do not know enough about salt to tackle this right now.
Issue 1:
I experience these strange behavior of unstack() when its level parameter gets a list instead of string.

This changes dtype of some columns from numeric to object, which is obviously a worrying change.

I am wondering if this a bug or there is something I am missing about dealing with this.

I am on pandas 0.16.0, numpy 1.9.2.

Here is a code to illustrate the problem:

data = """a,b,c,d
2,101,A,11
3,101,A,12
1,201,B,21
2,201,B,22
3,201,B,23
1,301,C,33
2,301,C,32"""
df = pd.read_csv(pd.core.common.StringIO(data))
print df.dtypes
df_str = df.set_index(['a','b']).unstack(level='a') # Note that level has a str
print df_str.dtypes
df_list = df.set_index(['a','b']).unstack(level=['a']) # Note that level has a list
print df_list.dtypes

Which produces:

a int64
b int64
c object
d int64 <-- Note original dtype
dtype: object

a
c 1 object
2 object
3 object
d 1 float64 <-- expected change of dtype due to NaN addition
2 float64 <-- expected change of dtype due to NaN addition
3 float64 <-- expected change of dtype due to NaN addition
dtype: object

a
c 2 object
3 object
1 object
d 2 object <-- UNexpected change of dtype, when level got list
3 object <-- UNexpected change of dtype, when level got list
1 object <-- UNexpected change of dtype, when level got list
dtype: object

Issue 2:
shouldn't the last two examples remove the innermost index level?

In [69]: from pandas.util.testing import makeCustomDataframe as mkdf
...: mkdf(4,2,r_idx_nlevels=1).set_index("C_l0_g0",append=True,drop=False)
Out[69]:
C0 C_l0_g0 C_l0_g1
R0 C_l0_g0
R_l0_g0 R0C0 R0C0 R0C1
R_l0_g1 R1C0 R1C0 R1C1
R_l0_g2 R2C0 R2C0 R2C1
R_l0_g3 R3C0 R3C0 R3C1

In [70]: from pandas.util.testing import makeCustomDataframe as mkdf
...: mkdf(4,2,r_idx_nlevels=1).set_index("C_l0_g0",append=True,drop=False).reset_index(0)
Out[70]:
C0 R0 C_l0_g0 C_l0_g1
C_l0_g0
R0C0 R_l0_g0 R0C0 R0C1
R1C0 R_l0_g1 R1C0 R1C1
R2C0 R_l0_g2 R2C0 R2C1
R3C0 R_l0_g3 R3C0 R3C1

In [71]: from pandas.util.testing import makeCustomDataframe as mkdf
...: mkdf(4,2,r_idx_nlevels=1).set_index("C_l0_g0",append=True,drop=False).reset_index(1)

/home/user1/src/pandas/pandas/core/internals.pyc in insert(self, loc, item, value)
956 def insert(self, loc, item, value):
957 if item in self.items:
--> 958 raise Exception('cannot insert %s, already exists' % item)
959
960 new_items = self.items.insert(loc, item)

Exception: cannot insert C_l0_g0, already exists

In [72]: from pandas.util.testing import makeCustomDataframe as mkdf
...: mkdf(4,2,r_idx_nlevels=1).set_index("C_l0_g0",append=True,drop=False).reset_index(-1)

/home/user1/src/pandas/pandas/core/internals.pyc in insert(self, loc, item, value)
956 def insert(self, loc, item, value):
957 if item in self.items:
--> 958 raise Exception('cannot insert %s, already exists' % item)
959
960 new_items = self.items.insert(loc, item)

Exception: cannot insert C_l0_g0, already exists
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.8

Operating System version: Windows 10

Java version: 1.8

Steps to reproduce this issue

RpcStatus的beginCount的实现代码如下。

/**
* @param url
*/
public static boolean beginCount(URL url, String methodName, int max) {
max = (max <= 0) ? Integer.MAX_VALUE : max;
RpcStatus appStatus = getStatus(url);
RpcStatus methodStatus = getStatus(url, methodName);
if (methodStatus.active.get() == Integer.MAX_VALUE) {
return false;
}
for (int i; ; ) {
i = methodStatus.active.get();
if (i + 1 > max) {
return false;
}
if (methodStatus.active.compareAndSet(i, i + 1)) {
break;
}
}
appStatus.active.incrementAndGet();
return true;
}

在以上代码的for循环中，存在着i + 1操作

for (int i; ; ) {
i = methodStatus.active.get();
if (i + 1 > max) {
return false;
}
if (methodStatus.active.compareAndSet(i, i + 1)) {
break;
}
}

问题如下：

当 i == Integer.MAX_VALUE的时候，i + 1会发生溢出吧？如果发生了溢出，导致的后果是 i + 1->溢出-> 大于max不成立 ->cas设置成功->成功调用。

发生这种情况的条件比较极端，前提是i的值为Integer.MAX_VALUE。在循环的上面有对值的判断，但在并发的情况下，此判断会失效。

if (methodStatus.active.get() == Integer.MAX_VALUE) {
return false;
}

这算是bug吗？

Issue 2:
Issue 1:
gc handles struct/array comparisons by short-circuiting if it finds any unequal
fields/elements, and this behavior is noticeable because the Go spec requires
comparisons to panic in some cases; e.g., see http://play.golang.org/p/5jqSUAT1xC

However, unlike short-circuiting for evaluating "a && b", it doesn't
seem that short-circuiting of field/element comparisons is specified by the spec.
Arguably, the spec currently requires that instead both comparisons in the above program
should panic.

Not a major issue, but thought I'd file an issue to note it. A couple possible ways to
address it:

1. Ignore it since it probably doesn't matter in practice.
2. Specify gc's behavior since it's intuitive and easy to explain.
3. Specify a set of allowable behaviors (e.g., allow short-circuiting or not; and/or
allow any particular ordering for element/field comparisons).
4. Change gc to not (visibly) short-circuit comparisons that involve comparing interface
types; e.g., comparing two [512]int arrays can still short-circuit, but comparing two
struct{a int; b, c interface{}; d int} structs would need to always compare the b and c
fields, and a and d could be compared conditionally.

Issue 2:
What steps will reproduce the problem?
1. Try to gofix a file containing an old-style (r60.3) "time" reference with a
comment after it, e.g. example below or src/pkg/crypto/tls/generate_cert.go

What is the expected output?
file.go: fixed time+fileinfo

What do you see instead?
file.go:9:36: expected ')', found newline
file.go:10:4: expected statement, found ')'

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

Which operating system are you using? Ubuntu 11.10

Which revision are you using? weekly.2011-12-22

Please provide any additional information below.

Example:

---

package main

import (
"fmt"
"time"
)

func main() {
fmt.Println(time.SecondsToUTC(now)) // this won't work
}

---

With the comment:

# gofix fix.go
fix.go:9:36: expected ')', found newline
fix.go:10:4: expected statement, found ')'

Without:

# gofix fix.go
fix.go: fixed time+fileinfo
Issue 1:
I can't match using a constant that was initialized using a byte string literal:

const ARRAY1: [u8; 0] = [];
const ARRAY2: [u8; 0] = *b"";

fn main() {
match [] {
ARRAY1 => {}
ARRAY2 => {}
}
}

This gets an error:

a.rs:2:25: 2:29 error: constant evaluation error: unsupported constant expr
a.rs:2 const ARRAY2: [u8; 0] = *b"";
^~~~
a.rs:7:9: 7:15 note: in pattern here
a.rs:7 ARRAY2 => {}
^~~~~~
a.rs:2:25: 2:29 error: unsupported constant expr
a.rs:2 const ARRAY2: [u8; 0] = *b"";
^~~~

Issue 2:
Constants that dereference string literals cannot be currently used for pattern matching as show below:

const A: [u8; 4] = *b"fooo";

fn main() {
match *b"xxxx" {
A => {},
_ => {}
}
}

Such constants can be used in other contexts without any problem. It is inconsistent, and a very prominent use case is missing.