WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
🐛 Bug

To Reproduce

import torch

MY_STR_CONST = "Hi, I am a string, please realize I am a constant"

@torch.jit.script
def fn():
return MY_STR_CONST

print(fn())

Traceback (most recent call last):
File "closed_over_string.py", line 8, in <module>
def fn():
File "/private/home/ycao/miniconda3/envs/pytorch/lib/python3.8/site-packages/torch/jit/_script.py", line 929, in script
fn = torch._C._jit_script_compile(
RuntimeError:
python value of type 'str' cannot be used as a value:
File "closed_over_string.py", line 9
@torch.jit.script
def fn():
return MY_STR_CONST
~~~~~~~~~~~~ <--- HERE

Expected behavior

fn() should return constant string

cc @suo @gmagogsfm

Issue 2:
From common errors in ParityBench

compile,58,RuntimeError: python value of type 'str' cannot be used as a value:,"RuntimeError:
python value of type 'str' cannot be used as a value:
File ""/tmp/paritybenchydc_9oju/pbg51yh9q6.py"", line 51
def forward(self, x):
x = functional.batch_norm(x, self.running_mean, self.running_var, self.weight, self.bias, self.training, self.momentum, self.eps)
if self.activation == ACT_RELU:
~~~~~~~~ <--- HERE
return functional.relu(x, inplace=True)
elif self.activation == ACT_LEAKY_RELU:

Code example is here

cc @suo @gmagogsfm
Issue 1:
I have a simple class that extends another where ViewChild is defined in the parent class and the component defined in the html template of each of the subclass. I Updated from beta 6 to beta 11 and didn't notice this in the breaking changes. Perhaps it was never suppose to work in the first place? I could change the code around to make it work again, which might actually turn out better structured, but wanted to know if it suppose to work or just a bug. What's happening now is that the variable is undefined in beta 11.

Issue 2:
What is the expected behavior?

1、node_modules/rxjs/Observable.d.ts(201,66): error TS2304: Cannot find name 'Promise'.

2、node_modules/rxjs/observable/FromObservable.d.ts(7,51): error TS2304: Cannot find name 'Iterator'.

Please tell us about your environment:

Angular version: 2.0.0-beta.9

Browser: [Chrome 48.8

Language: [TypeScript 1.8.7]
Issue 1:
I'm

... Trying to install packages

... Search and press Install

... Error appears

Atom Version: 0.170.0

System: linux 3.13.0-24-generic

Thrown From: Atom Core

Stack Trace

Uncaught Error: getaddrinfo ENOTFOUND avatars2.githubusercontent.com

At stream.js:94

Error: getaddrinfo ENOTFOUND avatars2.githubusercontent.com
at errnoException (dns.js:41:10)
at Object.onlookup [as oncomplete] (dns.js:91:26)

Commands

-4:59.5 core:backspace (atom-text-editor.editor.mini)
-4:58.0 core:confirm (atom-text-editor.editor.mini)
-0:02.8 core:paste (atom-text-editor.editor.mini)
-0:00.0 core:confirm (atom-text-editor.editor.mini)

Config

{
"core": {
"disabledPackages": [
"language-objective-c"
],
"themes": [
"seti-ui",
"seti-syntax"
]
},
"editor": {
"fontFamily": "Source Code Pro",
"lineHeight": 1.5,
"invisibles": {}
}
}

Installed Packages

# User
seti-syntax, v0.2.1
seti-ui, v0.6.1
vim-mode, v0.34.0

# Dev
No dev packages

Issue 2:
[Enter steps to reproduce below:]

Atom was open - then Clicked the update and restart option.

It did it's thing, then restarted.

3.Clicked on preferences

4.Clicked on packages.

That was it.

Atom Version: 0.169.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Stack Trace

Uncaught Error: getaddrinfo ENOTFOUND avatars2.githubusercontent.com

At stream.js:94

Error: getaddrinfo ENOTFOUND avatars2.githubusercontent.com
at errnoException (dns.js:41:10)
at Object.onlookup [as oncomplete] (dns.js:91:26)

Commands

Config

{
"core": {
"themes": [
"seti-ui",
"seti-syntax"
]
},
"editor": {
"fontSize": 14,
"invisibles": {}
}
}

Installed Packages

# User
autoclose-html, v0.12.0
autocomplete-plus, v0.21.0
color-picker, v1.2.4
inline-autocomplete, v0.3.2
language-jade, v0.3.0
linter, v0.7.3
open-last-project, v0.1.1
project-manager, v1.10.0
seti-syntax, v0.1.7
seti-ui, v0.3.6
slash-closer, v0.7.0

# Dev
No dev packages
Issue 1:
Please go to Stack Overflow for help and support:

https://stackoverflow.com/questions/tagged/tensorflow

If you open a GitHub issue, here is our policy:

It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).

The form below must be filled out.

It shouldn't be a TensorBoard issue. Those go here.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):

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

TensorFlow installed from (source or binary):

TensorFlow version (use command below):

Python version:

Bazel version (if compiling from source):

GCC/Compiler version (if compiling from source):

CUDA/cuDNN version:

GPU model and memory:

Exact command to reproduce:

You can collect some of this information using our environment capture script:

https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh

You can obtain the TensorFlow version with

python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

Describe the problem

I could not install Tensorflow on my Win 7 32-bit machine through Anaconda or Pycharm, but I did

on my Win 7 64-bit machine.

Source code / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.

Issue 2:
Unable to train with anything but sgd using xla, due to a missing operation.

line 76 in https://github.com/tensorflow/tensorflow/blob/677a14872f028e9be51bd469ec2d5cc43ea9155e/tensorflow/python/training/optimizer.py

def _deduplicate_indexed_slices(values, indices):
"""Sums `values` associated with any non-unique `indices`.
Args:
values: A `Tensor` with rank >= 1.
indices: A one-dimensional integer `Tensor`, indexing into the first
dimension of `values` (as in an IndexedSlices object).
Returns:
A tuple of (`summed_values`, `unique_indices`) where `unique_indices` is a
de-duplicated version of `indices` and `summed_values` contains the sum of
`values` slices associated with each unique index.
"""
unique_indices, new_index_positions = array_ops.unique(indices) <------- MISSING
summed_values = math_ops.unsorted_segment_sum(
values, new_index_positions,
array_ops.shape(unique_indices)[0])
return (summed_values, unique_indices)
Issue 1:
VSCode Version: all

OS Version:all

When I use Code on a touch-enabled device with a stylus rather than a mouse, it is very difficult to use the folding gutter, as it is hidden unless the pointer is hovering over it. While having that gutter hidden when I am not using it nicely reduces visual noise, there are times that I need it to always be there.

Why not provide a configuration item that allows the user to switch between having it be always visible or only visible on hover?

Issue 2:
I think there should be a triple state value instead of a boolean in the settings.json. So one can choose between don't show folding, show folding on hover and alwasy show folding.
Issue 1:
Describe the bug

I am trying to post some data with content type application/x-www-form-urlencoded but the content type is changed to multipart/form-data; when I do a post of formdata

To Reproduce

The situation is reproducable here: https://codepen.io/ferrykranenburg/pen/abdZrGG

var bodyFormData = new FormData();
bodyFormData.set("dbpath", "somedata");
bodyFormData.set("username", "somedata");
bodyFormData.set("password", "somedata");
bodyFormData.set("token", "somedata");

axios({
method: "post",
url: "https://dev07.changetocomm.net/ac/api/credentials/",
data: bodyFormData,
headers: { "content-type": "application/x-www-form-urlencoded" }
});

Expected behavior

The post should be done with 'application/x-www-form-urlencoded' like I'm adding to the headers.

Environment:

Axios Version [e.g. 0.19.2]

OS: Windows 10

Browser: Chrome

Browser Version: latest

Additional context/Screenshots

See screenshot, the post is done with multipart/form-data header.

Issue 2:
axios({
method: "PUT",
url: url,
transformRequest: [function (data, headers) {
// Do whatever you want to transform the data
return formData;
}],
headers: {
'Content-Type': file.type
},
"withCredentials": false
});

Launched request with Content-Type：

Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryPz13ZA77aLqgPlwB
Issue 1:
Summary:

the modal is underneath the shades, it should be on top of the shade.

System:

android 4.0.1,

chrome beta

To reproduce:

open http://twitter.github.com/bootstrap/javascript.html#modals with chrome

click "Launch demo modal"

whole screen turns black and the modal is underneath the shade

Issue 2:
Summary:

the modal is underneath the shades, it should be on top of the shade.

System:

android 4.0.1,

chrome beta

To reproduce:

open http://twitter.github.com/bootstrap/javascript.html#modals with chrome

click "Launch demo modal"

whole screen turns black and the modal is underneath the shade
Issue 1:
Sergio Bossa opened SPR-4435 and commented

The protected ServletRequestAttributes#getSession(boolean ) method returns a null session on child threads.

This is wrong because it doesn't get into account what happens in the constructor:

[code]

public ServletRequestAttributes(HttpServletRequest request) {

Assert.notNull(request, "Request must not be null");

this.request = request;

// Fetch existing session reference early, to have it available even

// after request completion (for example, in a custom child thread).

this.session = request.getSession(false);

}

[/code]

I think that the following code into the getSession method:

[code]

this.session = this.request.getSession(allowCreate);

return this.session;

[/code]

Should be as follows:

[code]

HttpSession newSession = this.request.getSession(allowCreate);

if (newSession != null) {

this.session = newSession;

}

return this.session;

[/code]

Affects: 2.0.7, 2.0.8

Issue Links:

#9112 ServletRequestAttributes wrongly returns a null http session on child threads. ("duplicates")

Issue 2:
Scott Andrews opened SPR-6351 and commented

Between RC1 and RC2, classpath*: file paths stopped working. In a web app context, I am importing a set of spring contexts that form a plugin system. None of the files that match this pattern are detected

<import resource="classpath*:META-INF/insight/insight-plugin-*.xml" />

Removing the wild card and hard coding the path also does not pickup the files.

<import resource="classpath*:META-INF/insight/insight-plugin-springmvc.xml" />

Replacing the classpath*: with classpath: it is able to find the file.

<import resource="classpath:META-INF/insight/insight-plugin-springmvc.xml" />

Using classpath: with a wild card only imports a single resource. (appears to be the first match alphabetically)

<import resource="classpath:META-INF/insight/insight-plugin-*.xml" />

Affects: 3.0 RC2

Issue Links:

#11032 Cannot import bean definitions using classpath*: resource location ("duplicates")

1 votes, 0 watchers
Issue 1:
When a LeftNav is closed, it is not hidden but simply translateX to somewhere out of the screen. However, the focus state of the button in the LeftNav is still active, this will cause some confused behavior for end users.

A simple test case is as following

class TestExample extends React.Component {
constructor() {
super();
this.state = { open: false };
}
closeNav() {
this.setState({ open: false });
console.log('click triggered');
}
render() {
return (
<Paper>
<RaisedButton label="New form" onClick={() => this.setState({ open: true })}/>
<LeftNav open={this.state.open}>
<RaisedButton label="Submit form" onClick={() => this.closeNav}/>
</LeftNav>
</Paper>
);
}
}

Suppose the users click the "New form" button, which opens the LeftNav, and they click "Submit form" after some operation, if exists. The leftNav will be hidden obviously, however, after it is closed, if the user unexpectedly press key ENTER or SPACE, they will find the form is submitted again as the button is still focused. (in our case there will be duplicated "click triggered" in the console log)

This behavior is expected with the specs but not the users.

Currently the workaround is to manipulate the disableKeyboardFocus property of EnhancedButton when the form is closed after #3000 is merged.

Issue 2:
When composing a textfield with FormControl, InputLabel and Input. The placeholder is hidden even when shrink is set to true on InputLabel. #7821

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

Expected Behavior

Composing an input like this:

<FormControl >
<InputLabel htmlFor="my-input" shrink>
The label
</InputLabel>
<Input
id="my-input"
placeholder="Placeholder"
/>
</FormControl>

Should display a placeholder at all times, like a regular input (except with content in it).

Current Behavior

The placeholder is only shown on focus.

Context

I am personally not a fan of material-ui's label animation, it confuses our users, and it's not clear to them that this is an input where they can type something.

Your Environment

Tech
Version

Material-UI
next

An attempt at a solution could use the suggestion by @robert-figshare. Adding this sort of css to the Input component (not sure how to apply the JSS shrink class):

input: {
'label.shrink + $formControl &': {
placeholder: { opacity: 0.5 }
},
},
Issue 1:
React Devtools doesn't connect to the instance running in the iOS Simulator.

React DevTools Screenshot

iOS Simulator Screenshot

React Native appears to have some interactivity as you can see "DevTools initialized" and the inspector on the iOS Simulator is running in the condensed mode.

OS: macOS Monterey (12.2.1)

Chip: Apple M1 Pro

Issue 2:
Website or app

local app development

Repro steps

just install react devtools and downgrade to 4.11.0

How often does this bug happen?

Every time

DevTools package (automated)

react-devtools-core

DevTools version (automated)

4.23.0-e28a0db22

Error message (automated)

Unsupported Bridge operation "0"

Error call stack (automated)

at /Users/softwaremac/Desktop/Users/JigneshJani/RNProjects/WifiSwitch/WifiSwitchV2_29_5/node_modules/react-devtools/node_modules/react-devtools-core/dist/standalone.js:53:333837
at c.emit (/Users/softwaremac/Desktop/Users/JigneshJani/RNProjects/WifiSwitch/WifiSwitchV2_29_5/node_modules/react-devtools/node_modules/react-devtools-core/dist/standalone.js:53:277732)
at /Users/softwaremac/Desktop/Users/JigneshJani/RNProjects/WifiSwitch/WifiSwitchV2_29_5/node_modules/react-devtools/node_modules/react-devtools-core/dist/standalone.js:53:279273
at /Users/softwaremac/Desktop/Users/JigneshJani/RNProjects/WifiSwitch/WifiSwitchV2_29_5/node_modules/react-devtools/node_modules/react-devtools-core/dist/standalone.js:53:659742
at Array.forEach (<anonymous>)
at A.e.onmessage (/Users/softwaremac/Desktop/Users/JigneshJani/RNProjects/WifiSwitch/WifiSwitchV2_29_5/node_modules/react-devtools/node_modules/react-devtools-core/dist/standalone.js:53:659726)
at A.t (/Users/softwaremac/Desktop/Users/JigneshJani/RNProjects/WifiSwitch/WifiSwitchV2_29_5/node_modules/react-devtools/node_modules/react-devtools-core/dist/standalone.js:44:3009)
at A.emit (events.js:315:20)
at e.exports.L (/Users/softwaremac/Desktop/Users/JigneshJani/RNProjects/WifiSwitch/WifiSwitchV2_29_5/node_modules/react-devtools/node_modules/react-devtools-core/dist/standalone.js:8:13567)
at e.exports.emit (events.js:315:20)

Error component stack (automated)

No response

GitHub query string (automated)

https://api.github.com/search/issues?q=Unsupported Bridge operation in:title is:issue is:open is:public label:"Component: Developer Tools" repo:facebook/react
Issue 1:
The function "pcolormesh(X,Y,C)" will raise no ValueError, if the shapes of C and X,Y are not compatible. Instead a wrong plot will be produced. I suggest to raise a ValueError, if C has a shape of (n,m) and the shapes of X and Y or neither (n,m) nor (n+1,m+1).

Issue 2:
Both pcolor and pcolormesh use _pcolorargs to process the x, y, z arguments. This handles the cases where x, y are not present, and the cases where one or both of x, y are 1-D rather than 2-D, but it does not check that they are consistent with z.shape. Pcolor will raise an exception if they are not, but pcolormesh will simply make an incorrect plot.
Issue 1:
Give your h1 element with the text I am dodger blue! the color dodger blue.

keep failure, I suspect that the unit test could have bug.

Challenge use-hex-code-to-mix-colors has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.89 Safari/537.36.

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

<style>
.red-text {
color: #FF0000;
}
.green-text {
color: #00FF00;
}
.dodger-blue-text {
color: #1E90FF;
}
.orange-text {
color: #FFA500;
}
</style>

<h1 class="red-text">I am red!</h1>

<h1 class="green-text">I am green!</h1>

<h1 class="dodger-blue-text">I am dodger blue!</h1>

<h1 class="orange-text">I am orange!</h1>

```

Issue 2:
Challenge use-hex-code-to-mix-colors has an issue.

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

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

<style>
.red-text {
color: #ff0000;
}
.green-text {
color: #00ff00;
}
.dodger-blue-text {
color: #1e90ff;
}
.orange-text {
color: #ffa500;
}
</style>

<h1 class="red-text">I am red!</h1>

<h1 class="green-text">I am green!</h1>

<h1 class="dodger-blue-text">I am dodger blue!</h1>

<h1 class="orange-text">I am orange!</h1>

```

Screenshot:
![image](https://cloud.githubusercontent.com/assets/3306170/18378269/47f34348-766c-11e6-8fb7-6e2da365ced7.png)
Issue 1:
Costin Leau opened SPR-5401 and commented

Reported at:

http://forum.springframework.org/showthread.php?t=59567

http://forum.springframework.org/showthread.php?t=65205

"The aspect "org.springframework.beans.factory.aspectj.Annotat ionBeanConfigurerAspect" is instantiated only once as singleton. Spring calls the setter for the Beanfactory property of the Aspect for each ApplicationContext with context:spring-configured entry. The last one who gets initialized wins. The Beans from the others Contexts can't get initialized."

Affects: 2.5.5

Issue Links:

#9829 Support use of @Configurable mechanism across multiple OSGi bundles ("duplicates")

#9829 Support use of @Configurable mechanism across multiple OSGi bundles ("is duplicated by")

5 votes, 7 watchers

Issue 2:
Wojciech Durczyński opened SPR-5156 and commented

In OSGI @Configurable mechanism works well only when used in one bundle.

If there is <context:spring-configured /> in application contexts of more then one bundle, the AnnotationBeanConfigurerAspect (single instance) is injected with two different BeanConfigurerSupport objects in non deterministic order.

Bundle whose BeanFactory is injected to aspect most recently works well - others don't work at all.

Is there any work around for this problem?

Affects: 2.5.5

Issue Links:

#10074 AnnotationBeanConfigurerAspect is created as a singleton and cannot be shared across multiple contexts ("duplicates")

#10074 AnnotationBeanConfigurerAspect is created as a singleton and cannot be shared across multiple contexts ("is duplicated by")

15 votes, 20 watchers
Issue 1:
I'm submitting a ...

[x] bug report
[ ] feature request
[ ] support request

Current behavior

In rc4, you could use the safe navigation/Elvis operator (?.) to guard against nulls in property paths when using the async pipe - don't seem to be able to in rc5.

// Inside a template in rc5 - Assuming Observable var data which (will have) an id property:

{{(data | async)?.id}} // throws error : TypeError: Cannot read property 'id' of null

Expected/desired behavior

As per rc4:

{{(data | async)?.id}} // works as expected - id displays when data loaded

Reproduction of the problem

rc4 - working as expected:

http://plnkr.co/edit/m9UJEwB4ZSNhIb77A2aI?p=preview

rc5 - not working/throwing error:

http://plnkr.co/edit/QQlg8nKJqVR8DqB2SiTw?p=preview

What is the expected behavior?

Accessing properties of (currently) null values not to throw an error - the Elvis operator would ideally guard against the error...

Please tell us about your environment:

Angular version: 2.0.0-rc.5

Browser: [all]

Language: [all]

Issue 2:
I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request

Current behavior

Cannot apply a pipe to the display value of an input field.

Desired behavior

I'd like to be able to apply a pipe to the display value of an input. Suppose I have a pipe which converts a whole number of cents into dollars and adds a dollar sign, e.g., "110" => "$1.10". As a user is typing, I'd like to apply the pipe to the displayed value while the value of the input field remains 110, i.e., only apply the pipe to the display of the field's value.

Here's a Plnkr which shows the input field and the value of the input run through the pipe. I'd like the actual displayed value in the input field to look like content below the input field.

http://plnkr.co/edit/NgNoxQ2GTUYKmEYjnYAh?p=preview

And here's my SO question about this feature, demonstrated in Angular Material:

http://stackoverflow.com/questions/40855106/transform-md-input-value-via-pipe

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

This specific scenario is a common use-case in finance-related applications but the scenario is general, date formats, etc.

Please tell us about your environment:

OpenSUSE 13.2 Linux, Emacs, ... N/A

Angular version: 2.0.X

2.x

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

All

Language: [all | TypeScript X.X | ES6/7 | ES5]

All

Node (for AoT issues): node --version =
Issue 1:
Just saw a Flutter demo which showed off the Performance Overlay in the Android Emulator. While it works, it's not showing representative data. :)

We should make it very obvious in the tool that the data there isn't useful.

@chinmaygarde

Issue 2:
Add the following to a flutter create template app:

print("counter: ${_counter}");
print("foo");

In the setState call where the counter in incremented.

You'll notice sometimes the logs come out twice:

counter: 15
counter: 15
foo
counter: 16
foo
counter: 17
foo
counter: 18
foo
counter: 19
foo
counter: 20
foo
counter: 21
foo
counter: 21
foo

@lukef was seeing this as well