WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Compiling using ngc and with flatModuleOutFile produces a *.metadata.json file with flattened html/css paths.

Example:

// ...
"arguments": [
{
"selector": "my-lib",
"templateUrl": "./lib.component.html",
"styleUrls": [
"./lib.component.css"
]
}
]
// ...

Expected behavior

Paths to html/css should be resolved to the original path. Notice ./lib/...:

// ...
"arguments": [
{
"selector": "my-lib",
"templateUrl": "./lib/lib.component.html",
"styleUrls": [
"./lib/lib.component.css"
]
}
]
// ...

Minimal reproduction of the problem with instructions

git clone https://github.com/filipesilva/ngc-flatmodule-windows
cd ngc-flatmodule-windows
npm run build

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

Library authors should not have to copy all html/css to the root typings/ folder instead of maintaining the library structure.

Flattening the html/css paths to root also forces library authors to avoid duplicate html/css filenames.

Please tell us about your environment:

Windows 10, VS Code, npm@4.0.5, node@7.4.0, typescript@2.2.1

Angular version: 4.0.0-rc.3

Browser: [ N/A ]

Language: [ TypeScript 2.2 ]

Node (for AoT issues): node --version = 7.4.0

/cc @chuckjaz

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
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Interpolations are ignored in <style> block.

Expected behavior

Support interpolations in <style> block.

Minimal reproduction of the problem with instructions

https://plnkr.co/edit/pA0FcxdV6VEaupsTFe2V

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

If I know only css-class name of element - I can't change its styles dynamicaly

Please tell us about your environment:

Angular version: 2.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 ]

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

Node (for AoT issues): node --version =
Issue 1:
Regarding #2429, I have observed the same error occurring in the recent incoming (5f13e9c 2013-04-02 13:36:51 -0700):

use core::hashmap::linear::LinearMap;
fn main() {
let mut map = LinearMap::new();
let set_default = |k: int, v: int| {
// N.B. we can't use match here due to the other bug #4666
let insert =
match map.find_mut(&k) {
Some(vs) => { /*let vs: &mut ~[int] = vs;*/ vs.push(v); false }
None => true
};
if insert { map.insert(k, ~[v]); }
};
set_default(1, 2);
set_default(2, 3);
set_default(1, 4);
for map.each |&(&k, &v)| { io::println(fmt!("%? -> %?", k, v)); }
}

...resulting in:

t.rs:6:24: 6:26 error: the type of this value must be known in this context
t.rs:6 Some(vs) => vs.push(v),
^~

It compiles (and works) correctly if we uncomment let vs: ... = vs; part.

Issue 2:
~ > cat test.rs
trait Foo {}

trait Bar {}

impl<T: Bar> Foo for T {}

impl Foo for int {}
~ > rustc --lib test.rs
test.rs:7:0: 7:19 error: conflicting implementations for a trait
test.rs:7 impl Foo for int {}
^~~~~~~~~~~~~~~~~~~
test.rs:5:0: 5:25 note: note conflicting implementation here
test.rs:5 impl<T: Bar> Foo for T {}
^~~~~~~~~~~~~~~~~~~~~~~~~
test.rs:5:0: 5:25 error: conflicting implementations for a trait
test.rs:5 impl<T: Bar> Foo for T {}
^~~~~~~~~~~~~~~~~~~~~~~~~
test.rs:7:0: 7:19 note: note conflicting implementation here
test.rs:7 impl Foo for int {}
^~~~~~~~~~~~~~~~~~~
error: aborting due to 2 previous errors

I think this is related to #3429 but is far more general.
Issue 1:
Summary

chardet version 5.0.0 was released on pypi on 25th of June 2022. If this version is picked up by your dependencies, requests version 2.28.0 will issue the following warning:

.../lib/python3.9/site-packages/requests/__init__.py:102: RequestsDependencyWarning: urllib3 (1.26.8) or chardet (5.0.0)/charset_normalizer (2.0.4) doesn't match a supported version!"

I am not sure whether version 5.0.0 of chardet is compatible with requests. According to the documentation, requests supports chardet version 4. It would be good to verify the compatibility with chardet version 5 and adapt the version range check accordingly

Reproduction Steps

Install the latest version of chardet:

$ pip install --upgrade chardet

Import requests in python to trigger the warning:

import requests

System Information

$ python -m requests.help

{
"chardet": {
"version": "5.0.0"
},
"charset_normalizer": {
"version": "2.0.12"
},
"cryptography": {
"version": ""
},
"idna": {
"version": "3.3"
},
"implementation": {
"name": "CPython",
"version": "3.9.13"
},
"platform": {
"release": "5.3.18-150300.59.76-default",
"system": "Linux"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.27.1"
},
"system_ssl": {
"version": "1010104f"
},
"urllib3": {
"version": "1.26.9"
},
"using_charset_normalizer": false,
"using_pyopenssl": false
}

Issue 2:
chardet just released v5.0.0 which is not supported by the latest version (2.28.0) of requests:

requests/requests/__init__.py

Line 79
in
da9996f

assert (3, 0, 2) <= (major, minor, patch) < (5, 0, 0)

Could you please add the support for the v5.0.0 of chardet ?
Issue 1:
Challenge change-the-color-of-text has an issue.

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0.

The challenge says that to pass, the h2-element has to be red. As you see further down, it is. The preview shows the h2 to be red. But the tests fail with the message: "Your h2 element should be red."

<h2 style="color: red">CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

Maybe related to issue 12644

Issue 2:
something wrong with //! moment-timezone.js

When i hit "Submit and go to my next challenge" it give me error "Uncaught TypeError: Cannot read property 'join' of null" and its link to //! moment-timezone.js . 30 line in http://www.freecodecamp.com/js/vendor-main-00eff8238f.js
Issue 1:
🐛 Bug

Hi,

I just got a very strange problem:

I used the commands: "print(torch.version)

print(torch.version.cuda)

print(torch.backends.cudnn.version())", the output were:

0.4.1.post2 (PyTorch version)

9.0.176 (CUDA version)

7.1.2 (cuDNN version)

I also used the "nvcc --version", the results were:

It was very strange, it seems that the CUDA version installed in Linux system is 9.0.176, and the CUDA that the PyTorch needed is also 9.0.176, but, the "cuda.is_available()" still returns "False".

Could anyone help me with this? Many thanks!

Environment

PyTorch Version (e.g., 1.0): 0.4.1.post2

OS (e.g., Linux): Linux

Python version: 3.6.5 : : Anaconda, Inc.

CUDA/cuDNN version: 9.0.176 (CUDA version); 7.1.2 (cuDNN version)

Issue 2:
🚀 Feature

Add metadata to the state_dict to support round trip saving and loading. Specifically, if the same object appears more than once in the object hierarchy, then that fact should be captured in the state_dict representation so that an object produced via load_state_dict is equivalent to the original object.

Motivation

In a hierarchy of nn.Modules wherein one object can appear in multiple places, the state_dict shows the state in all places, but when the object is mutated via one of its attribute aliases, the state will update in all places. This is good and correct, but when you save this state_dict this information is lost; If you load the state_dict from a file, what was once a single object is now multiple objects that are completely separate in memory. This means that saving and loading in PyTorch is not round-trip equivalent.

Ideally, saving an object x, and then loading x's state into a new object y should produce two objects that are completely equivalent, in other words x should equal y (besides the memory address)

Here is an example in code:

class A(nn.Module):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.x = nn.Linear(2, 2)
class B(nn.Module):
def __init__(self, *args, a=None, **kwargs):
super().__init__(*args, **kwargs)
self.a = A() if a is None else a
class C(nn.Module):
def __init__(self, *args, a=None, b=None, **kwargs):
super().__init__(*args, **kwargs)
self.a = A() if a is None else a
self.b = B() if b is None else b

And the actual behavior is:

>>> a = A()
>>> b = B(a=a)
>>> c = C(a=a, b=b)
>>> c.b.a is c.a
True
>>> c.b.a.x[0][0] = 0.1111
>>> c.a.x[0][0]
0.1111
>>> s = c.state_dict()
>>> c2 = C()
>>> c2.load_state_dict(s)
>>> c2.b.a is c2.a
False

Ideally, the final check would produce:

>>> c2.b.a is c2.a
True
>>> c2.b.a.x[0][0] = 0.2222
>>> c2.b.a.x[0][0] == c2.a.x[0][0]
True

Pitch

Using the state_dict._metadata, we could add information about children modules being equivalent. This information can be duplicated across all common ancestors. Then, either before or after loading state in load_state_dict or its helper methods, you could check

if self.b.a is not self.a: self.b.a = self.a

Alternatives

[TODO?]

Additional context
Issue 1:
Sam Brannen opened SPR-9740 and commented

Status Quo

Until now the Spring team has manually maintained the changelog.txt file for each release. Although this results in a change log that represents the most significant changes in a given release from the point of view of the core developers, this process has proven to be somewhat cumbersome. In addition, this information is duplicated both in JIRA and in GitHub commits.

Goal

Automate generation of the change log.

Deliverables

The following deliverables were agreed upon recently by the Core Spring developers.

Stop manually crafting entries in changelog.txt

Instead, focus on a well crafted "What's new in Spring 3.x" section in the reference manual

Update the release process:

link to the appropriate "What's new in Spring 3.x" section of the reference manual in changelog.txt

link to the online JIRA change log for the 3.x release in changelog.txt

include a text version of the JIRA change log for the 3.x release in changelog.txt

No further details from SPR-9740

Issue 2:
Stepan Koltsov opened SPR-1419 and commented

It would be nice to specify required dependencies using JDK1.5 annotations.

Annotation interface, like @RequiredProperty { boolean required = true; } should be applicable to setters, @PropertiesRequired { boolean required = true; } to be applicable to classes. Like here:

@PropertiesRequired { required = false; }

class DogsDao {

@RequiredProperty

void setDataSource(DataSource dataSource) { ... }

}

Issue Links:

#5754 Annotation to validate required bean attributes ("duplicates")
Issue 1:
I just found this out : if you go on this function's documentation:

https://scikit-learn.org/stable/modules/generated/sklearn.metrics.explained_variance_score.html

and click on "source" (top right)

you do not end up on the right source code page...

I guess this is a sphinx-related issue ?

Issue 2:
Describe the issue linked to the documentation

The [source] code link on sklearn.metrics.f1_score documentation page points to a random line in utils/validation.py instead of pointing to the defintion of f1_score in metrics/_classification.py. See image and try it on the f1_score doc page.

Suggest a potential alternative/fix

Replace link to random line in utils/validation.py with link to defintion of f1_score in metrics/_classification.py on f1_score doc page.

I fixed it in the generated html and made a PR 🤦
Issue 1:
Many packages use Pkg.dir() to find load static resources that aren't Julia code. However, Pkg.dir() always points to ~/.julia/v0.x, so this breaks for packages which are stored in julia/usr/share/julia/site/v0.x, for example. It looks like we need a better way to handle this if there isn't one already.

Are packages that use Pkg.dir() for this purpose in the wrong, or should Pkg.dir() be smarter? Or should we just only support a single package directory?

Issue 2:
it works fine if the package is in .julia/v0.x, but if it is somewhere else then it claims there is no test/runtests.jl even if my LOAD_PATH is set such that i can using it. i know that the recommended dev cycle is to keep packages in .julia, but would it make sense to make Pkg.test() work otherwise?
Issue 1:
下拉刷新网络请求无反应。

--- translate ---

Drop-down refreshes network requests without response.

Steps to Reproduce

在FlutterViewController上present一个WebViewController。

--- translate ---

On FlutterViewController, present a WebViewController.

[self presentViewController:viewControllerToPresent animated:flag completion:completion];

返回FlutterViewController，刷新网络请求。

--- translate ---

Return to FlutterViewController to refresh the network request.

如果没出现，则重复步骤1、2

--- translate ---

If it does not appear, repeat steps 1 and 2.

Logs

[VERBOSE-2:engine.cc(157)] Could not prepare to run the isolate.
[VERBOSE-2:engine.cc(116)] Engine not prepare and launch isolate.
[VERBOSE-2:FlutterViewController.mm(462)] Could not launch engine with configuration.

bogon:star_admin v7lin$ flutter doctor -v
[✓] Flutter (Channel beta, v0.9.4, on Mac OS X 10.13.6 17G65, locale zh-Hans-CN)
• Flutter version 0.9.4 at /Users/v7lin/flutter
• Framework revision f37c235c32 (5 weeks ago), 2018-09-25 17:45:40 -0400
• Engine revision 74625aed32
• Dart version 2.1.0-dev.5.0.flutter-a2eb050044

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/v7lin/Library/Android/sdk
• Android NDK at /Users/v7lin/Library/Android/sdk/ndk-bundle
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /Users/v7lin/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.0, Build version 10A255
• ios-deploy 1.9.2
• CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 29.1.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[!] IntelliJ IDEA Community Edition (version 2018.2.1)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins

[✓] VS Code (version 1.28.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.19.0

[✓] Connected devices (1 available)

Issue 2:
When you run flutter create, you should get an Android project that uses gradle. Most developers will eventually need to use gradle to integrate with third-party SDKs and to add their own Java code. We should start them off in that mode so that the transition is smooth.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Hello, thanks for your time as always. I love the new version of MUI and it has been working great for a project that I am working on!

When defining a custom theme, I should be able to override and remove the shadows globally. With the changes specified in beta v10( #8188 ) it looks like any custom theme specified shadows will be merged into the default shadow list, instead of overriding it. If possible, there should still be a way to replace/override the entire shadow array, as this was the case for pre-v10 beta.

Current Behavior

Before beta v10, I was able to override shadows by supplying an empty array:

return createMuiTheme({
overrides,
palette,
typography,
shadows: []
});

Steps to Reproduce (for bugs)

Create a theme object with no shadows defined

You will notice that shadows are still prevalent on any component

Context

This issue has affected my ability to remove shadows from my theme.

Your Environment

Tech
Version

Material-UI
beta v10

React
15.5.4

browser
Chrome v60

etc

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

This bug only happens on 0.19.1 and 0.19.2. It is not there in 0.19.0. It looks like a regression in #7967

I've tested this with a blank React app and the example code for a controlled component here http://www.material-ui.com/#/components/auto-complete

This report only applies to controlled mode.

Expected Behavior

When adding text in the middle of a string the cursor should stay where I am typing.

See: https://cl.ly/3S3N2K333c0h (v0.19.0)

Current Behavior

When placing the cursor in somewhere in the middle of a the text input and typing, the cursor jumps to the end of the input string.

See: https://cl.ly/1p2P2p0Z0W2X (v0.19.1 or v0.19.2)

Steps to Reproduce (for bugs)

Run the controlled example here http://www.material-ui.com/#/components/auto-complete in v0.19.1 or 0.19.2

Run the same code on 0.19.0 and see the difference

Context

Your Environment

Tech
Version

Material-UI
see above

React
15.6.1

browser
macOS/Chrome latest

etc
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.3.3

After I created a project with the Symfony Installer (https://symfony.com/installer) and ran the following command I got the following error page

UndefinedMethodException

HTTP 500 Internal Server Error

Attempted to call an undefined method named "getParameter" of class "AppBundle\Controller\DefaultController".

After looking in the generated file and the Symfony\Bundle\FrameworkBundle\Controller\AbstractController I found out that the method getParameter doesn't exist anymore as presented in the 3.2.9

Issue 2:
We would like to use the var-dumper in our debug tool, see filp/whoops#320, in which we dump several vars on a single page.

The var-dumper atm generates a lot of inline <style>-tags and javascrpt - one for each dumpped var.

I guess for use-cases like this it would be helpfull to have a way to dump the css (and js) separately from the actual vars, so it wont get repeated over and over again.
Issue 1:
Code Sample, a copy-pastable example if possible

In [2]: df1 = pd.DataFrame([{'A': None, 'B': 1}, {'A': 2, 'B': 2}])
...: df2 = pd.DataFrame([{'A': 3, 'B': 3}, {'A': 4, 'B': 4}])
...: df = pd.concat([df1, df2], axis=1)
...: df.iloc[0, 0] = df.iloc[0, 2]
...: df
...:
Out[2]:
A B A B
0 3.0 1 3.0 3
1 2.0 2 4.0 4

Problem description

The third column shouldn't have changed type

Expected Output

Out[2]:
A B A B
0 3.0 1 3 3
1 2.0 2 4 4

Output of pd.show_versions()

INSTALLED VERSIONS

commit: 32df1e6

python: 3.5.3.final.0

python-bits: 64

OS: Linux

OS-release: 4.7.0-1-amd64

machine: x86_64

processor:

byteorder: little

LC_ALL: None

LANG: it_IT.utf8

LOCALE: it_IT.UTF-8

pandas: 0.19.0+597.g32df1e6ae

pytest: 3.0.6

pip: 9.0.1

setuptools: 33.1.1

Cython: 0.25.2

numpy: 1.12.0

scipy: 0.18.1

xarray: None

IPython: 5.1.0.dev

sphinx: 1.4.9

patsy: 0.3.0-dev

dateutil: 2.5.3

pytz: 2016.7

blosc: None

bottleneck: 1.2.0

tables: 3.3.0

numexpr: 2.6.1

feather: 0.3.1

matplotlib: 2.0.0

openpyxl: 2.3.0

xlrd: 1.0.0

xlwt: 1.1.2

xlsxwriter: 0.9.6

lxml: 3.7.1

bs4: 4.5.3

html5lib: 0.999999999

sqlalchemy: 1.0.15

pymysql: None

psycopg2: None

jinja2: 2.8

s3fs: None

pandas_gbq: None

pandas_datareader: 0.2.1

Issue 2:
This is a continuation of #13695.

Starting with the original DataFrames from that issue:

df1 = pd.DataFrame({'time':pd.to_datetime(['2016-07-15 13:30:00.030']), 'username':['bob']})
df2 = pd.DataFrame({'time':pd.to_datetime(['2016-07-15 13:30:00.000', '2016-07-15 13:30:00.030']), 'version':[1, 2]})

I now get the null:

In [82]: pd.merge_asof(df1, df2, on='time', allow_exact_matches=False, tolerance=pd.Timedelta('10ms'))
Out[82]:
time username version
0 2016-07-15 13:30:00.030 bob NaN

However, if I change the first DataFrame to have duplicate timestamps:

df1 = pd.DataFrame({'time':pd.to_datetime(['2016-07-15 13:30:00.030', '2016-07-15 13:30:00.030']), 'username':['bob', 'charlie']})

then the bug reappears:

In [85]: pd.merge_asof(df1, df2, on='time', allow_exact_matches=False, tolerance=pd.Timedelta('10ms'))
Out[85]:
time username version
0 2016-07-15 13:30:00.030 bob 1
1 2016-07-15 13:30:00.030 charlie 1

This is in pandas version 0.18.0+418.gc46dcfa.
Issue 1:
Electron version: 1.6.11

Operating system: macOS 10.12.5

Expected behaviour

Create and destroy the tray instance multiple times with no issues or faulty behaviour.

Actual behavior

Create the tray instance and destroy it, one after the other. You may need to repeat these steps multiple times. The crash will eventually happen when destroying the tray instance. The app crash seems to happen randomly. From my experience, it may happen on the first time or only after multiple repetitions (7 or so). The app will crash with Received signal 11 SEGV_MAPERR followed by the stack dump.

How to reproduce

I've created a repository to reproduce the issue. There's only one branch and the instructions, as some other information, is in the README.md file at the root level. The tray instance has a context menu, built from the template, and the window has a button to create the instance. Lastly, the repository is based on the sample app provided by Electron.

Repository: https://github.com/antonio-ramadas/electron-tray-app-crash

Issue 2:
Electron Version: latest (non beta)

Operating System (Platform and Version): mac high sierrra

Last known working Electron version: n/a

Expected Behavior

I have 2 independent tray icons. When I destroy one icon sometimes application crashes with this error:

Electron[6667:281388] -[__NSCFString isMenuOpen]: unrecognized selector sent to instance 0x7fc7f35c28d0

Actual behavior

It should not crash