WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Internal: b/140829693

We frequently have a need for a StreamBuilder type widget in our app (mulligan) but there's a major issue with it that prevents us from using it: if the stream has an initial value when the widget is first built, the widget will still be built with a no data frame before the widget is built with a data frame. This results in jank that we cannot have in our app.

The sequence of events seems to be the following today:

StreamBuilder constructor is called.

StreamBuilder state is created. The current snapshot is set to the loading snapshot.

StreamBuilder state's initState method is called. Stream is listened to.

StreamBuilder state's build method is called with the loading snapshot.

StreamBuilder state's stream listener is invoked. setState is called with the data snapshot and the widget is rebuilt.

As far as I understand, the problem is that when you listen to a Stream in Dart, it doesn't fire the callback synchronously. Because of this, I'm not sure if there's anything that can be done to resolve this issue. That said, until this gets fixed, I think that StreamBuilder is unusable in this use case. To start discussion, does Flutter perform the steps from 2-4 in the same run-loop?

Here's a test that depicts the problem I'm discussing: https://gist.github.com/alanrussian/d4a0d8c779275832dad44d4acde9cc59

Issue 2:
[!] Android Studio (version 2.3)
X Unable to find bundled java version
[V] Android Studio (version 3.0)

Do I have to install Android Studio 2.3 too? The files are not available anymore on google developer's site.

Tks in advance! ;)
Issue 1:
Hello! I'm packaging julia 1.4.1 for guix, and this test is failing

julia/test/file.jl

Line 70
in
381693d

@test dirname(t) == d

I can reproduce it with:

using Test
using Random

function run()
@testset "tempname with parent" begin
t = tempname()
@test dirname(t) == tempdir()
mktempdir() do d
t = tempname(d)
@test dirname(t) == d
end
@test_throws ArgumentError tempname(randstring())
end
end
# tempdir() uses the first environment variable found in the ordered list TMPDIR, TMP, TEMP, and TEMPDIR. If none of these are found, the path "/tmp" is used.
# Let's check all those variables are currently empty
all_empty() = @test all(isnothing.(get.(Ref(ENV), ["TMPDIR", "TMP", "TEMP", "TEMPDIR"], nothing)))
all_empty()

# Check the test passes when no "TEMP" variable is set
@info "No env var"
run()

@info "TMPDIR var"
withenv("TMPDIR" => mktempdir()) do
run()
end
all_empty()

Can anybody confirm the same happens with the official build?

Thanks, Nicolò

Issue 2:
compiler/validation (31) | started at 2020-12-14T10:40:17.674
compiler/validation (31) | 2.18 | 0.09 | 4.2 | 56.87 | 303.75
file (31) | started at 2020-12-14T10:40:20.769
file (31) | failed at 2020-12-14T10:40:42.395
Test Failed at /nobackup/users/vchuravy/dev/julia/test/file.jl:72
Expression: dirname(t) == d
Evaluated: "/tmp" == "/tmp/jl_b8KtOh"

I tried isolating it, but I have not yet reproduced it outside the tests themselves. Running file tests on it's own succeeds as well, but running make testall this is always reproducible.
Issue 1:
@BerkeleyTrue can you do something to sort out this issue .. Thanks in advance

Issue 2:
Challenge Name

nest-an-anchor-element-within-a-paragraph

Issue Description

Challenge complete but after click run test show problem that ""Your p element should have the text "View more " (with a space after it)."""

Browser Information

Google Chrome

Version 50.0.2661.94 m

Operating System: Windows 8

Desktop

Your Code

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<a href="http://www.freecatphotoapp.com">cat photos</a>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat">

<p class="red-text">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>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
<p>View more <a href="http://www.freecatphotoapp.com">cat photos</a></p>

Screenshot
Issue 1:
When I multiply two sliced tensors of different dtypes, the result is arbitrary. This happens silently without even a warning being printed. As this works fine in numpy I expected it to work in pytorch as well.

Apparently, this can be avoided by making the slices contiguous.

Here's a notebook for reproducing the behavior: https://gist.github.com/koelscha/4dc9255a83e39b36b1cf20afa3c6fa74

PS: I'm using pytorch 1.3.0

Issue 2:
🐛 Bug

Addition of different data typed tensors after permute giving incorrect results.

Addition of same data typed tensors is fine

Addition of different datatyped tensors was not allowed in pytorch 1.2, so this never happened in 1.2 version.

To Reproduce

Steps to reproduce the behavior:

>>> t = torch.tensor([[1, 2], [5, 6]])
>>>
>>> t1 = t.permute(1,0)
>>>
>>> m = torch.tensor([[1.0], [2.0]])
>>>
>>>
>>> t
tensor([[1, 2],
[5, 6]])
>>> t.dtype
torch.int64
>>>
>>> t1
tensor([[1, 5],
[2, 6]])
>>> t1.dtype
torch.int64
>>>
>>> m
tensor([[1.],
[2.]])
>>> m.dtype
torch.float32
>>>
>>> t+m
tensor([[2., 3.],
[7., 8.]])
>>>
>>> t1+m
tensor([[2., 3.],
[7., 8.]])
>>>

Expected behavior

>>>t1+m
tensor([[2., 6.],
[4., 8.]]

Environment

PyTorch version: 1.3.0

Is debug build: No

CUDA used to build PyTorch: 10.1.243

OS: Ubuntu 16.04.6 LTS

GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609

CMake version: Could not collect

Python version: 3.6

Is CUDA available: Yes

CUDA runtime version: 10.1.243

GPU models and configuration: GPU 0: GeForce GTX 1080 Ti

Nvidia driver version: 418.87.01

cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.4.1

Versions of relevant libraries:

[pip3] numpy==1.17.3

[pip3] torch==1.3.0

[pip3] torchvision==0.4.1

[conda] Could not collect

Additional context

workaround:

>>>t1 = t.permute(1,0).contiguous()

>>> t1
tensor([[1, 5],
[2, 6]])
>>> m
tensor([[1.],
[2.]])
>>> t1+m
tensor([[2., 6.],
[4., 8.]])
>>>

cc @ezyang @gchanan @zou3519
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Got the following error when using the ExpansionPanel:

Types of property 'onChange' are incompatible.

Type '(_: any, expanded: any) => void' is not assignable to type '(event: SyntheticEvent<{}>) => void'.

Steps to Reproduce (for bugs)

Any ExpansionPanel using the onChange with the expanded parameter:

<ExpansionPanel
expanded={props.expanded}
onChange={(_, expanded) => props.onChange(expanded)}
/>

The last example on the demo page should trigger the error

https://material-ui.com/demos/expansion-panels/#controlled-accordion

Also I looked in the typescript tests and didn't find one that uses the onChange with the expanded.

Tech
Version

Material-UI
1.0.0-beta.25

React
16.2.0

browser
electron 1.8.1

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

Here is my code

<Drawer
leftBarOpen={this.leftBarOpen}
containerStyle={{height:'calc(100% - 120px)'}}
docked={docked}
zDepth={zDepth}
open={this.state.leftBarOpen}
width={drawerWidth}
openSecondary={false}
disableSwipeToOpen={true}
swipeAreaWidth={50}
onRequestChange={(open) => this.setState({leftBarOpen: false})}>
</Drawer>

Expected Behavior

Current Behavior

It works well on React v15.6.2 && Material-UI v0.20.0

Your Environment

Tech
Version

Material-UI
0.20.0

React
16.2.0

browser
chrome

etc
mac
Issue 1:
On Mac:

When using unarchive to unzip a .zip file, the destination output gets "drwxrwxrwx" permissions, which are not the same as the original zip file. If I unzip the original with "unzip" manually, I get the correct permissions.

I'm aware of the "mode=" however doing "mode=u=rwX,g=rX,o=rX" leaves all files with executable bits turned on, whereas "mode=u=rw,g=r,o=r" leaves directories un-enterable, so I'm not able to achieve the desired permissions without a second task to call a command to do another chmod.

Issue 2:
ISSUE TYPE

Feature Idea

COMPONENT NAME

Patch module

SUMMARY

Add an option such as template=true, supporting jinja2 templates like src=foo.patch.j2, so that variables become available from inside the patch.
Issue 1:
Issue originally made by @mvila

Bug information

Babel version: 6.4.3 (babel-register)

Node version: 4.2.2

npm version: 2.14.14

Description

By default, babel-register is supposed to ignore all requires to modules present in node_modules. Apparently, this doesn't apply to the symlinked ones. In my opinion, it is not the expected behavior, symlinked modules should not be handled differently.

Issue 2:
Issue originally made by @timbur

Bug information

Babel version: 6.3.26

Node version: 4.2.0

npm version: 2.14.7

Description

Babel attempts to transform symlinks in node_modules which seems to break things.
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-use-hex-code-to-color-elements-green has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Unless I'm doing something wrong, the following code does not evaluate as correct. It's the same code as the previous challenge (red background) except for the values.

<style>
body {
background-color: green;
color: #00FF00;

}
</style>

Issue 2:
Challenge http://freecodecamp.com/challenges/bonfire-return-largest-numbers-in-arrays has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

On this exercise, the 'cannot read property 'eql' of undefined' error happens regardless of what the function does.

when I replaced the inputs with a more basic array, the error changes to 'largestOfFour is not a function' when it is clearly defined as a function.
Issue 1:
Now that Prettier supports config files it would be much simpler to support a style for the examples/ directory. I know you use Standard as per #1527, I'm only suggesting this for the examples/ directory. A lot of the React, JS and TS community are moving to Prettier and are also the people to create the examples in this repo. By having a .prettierrc in the examples/ directory everyone who uses Prettier would not need to turn off or alter their settings each time they want to contribute (I've been struggling with this all day on various repos).

Again, this is not a suggestion to run Prettier over the Next.js source, just a config in the examples/ directory.

I don't intend to start a long discussion on this, I just thought the friction might be much lower now Prettier has configs. Feel free to close this without discussion if it is not of interest to any maintainers.

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

This config seems to apply a style almost identical to the current styling of some of the examples from Next.js Maintainers.

{
"tabWidth": 2,
"trailingComma": "none",
"printWidth": 100,
"singleQuote": true,
"semi": false
}

PS: thanks for your work!

Issue 2:
In the next/babel.js the babel-runtime module is aliased to use a local version. This is bad practise, since the build script should use any available version of babel-runtime, which allows me to use my own.

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

Expected Behavior

In dist/server/build/babel/preset.js on line :24 there is an alias for babel-runtime to relatively resolve it inside of next.js. This should be removed, so any version of babel-runtime inside the node_modules folder is used, not just the one in next/node_modules

Current Behavior

The build script throws an error, since all babel-runtime modules are undefined.

Currently generated when building:

var _regenerator = require('next/node_modules/babel-runtime/regenerator');

Expected/wanted behaviour when building:

var _regenerator = require('babel-runtime/regenerator');

Steps to Reproduce (for bugs)

Have a module (let's call it module-a) with next as devDependecy

In modula-a, use next/babel as babelrc preset

Build module-a to a lib folder

In the generated lib files, var _regenerator = require('next/node_modules/babel-runtime/regenerator'); is now inserted at the top

Use module-a in another project (module-b) that doesn't have next as dependency.

Build module-b

The build script throws an error, since all babel-runtime modules are undefined (next is not installed in module-b).

Your Environment

Tech
Version

next
3.0.6
Issue 1:
🐛 Bug

torch.hub.load_state_dict_from_url does not work with the new zip serialization with torch.load/torch.save. Loading from an url report the error:

RuntimeError: Only one file(not dir) is allowed in the zipfile

I think it is due to the fact that before this serialization change, the weigths could be compressed into a zip file (minimizing download time). Now, we serialize everything as a zip bundle, an this is the reason it fails.

To Reproduce

Steps to reproduce the behavior:

>>> from torch.hub import load_state_dict_from_url
>>> load_state_dict_from_url('https://files.deeplar.tk/ark-weights/drn_d_38-imagenet-39a7863b82.pt') # for example
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-4-c0cdf3d7c81f> in <module>
----> 1 load_state_dict_from_url('https://files.deeplar.tk/ark-weights/drn_d_38-imagenet-39a7863b82.pt')

~/miniconda3/envs/torch/lib/python3.8/site-packages/torch/hub.py in load_state_dict_from_url(url, model_dir, map_location, progress, check_hash, file_name)
488 members = cached_zipfile.infolist()
489 if len(members) != 1:
--> 490 raise RuntimeError('Only one file(not dir) is allowed in the zipfile')
491 cached_zipfile.extractall(model_dir)
492 extraced_name = members[0].filename

RuntimeError: Only one file(not dir) is allowed in the zipfile

Expected behavior

load_state_dict_from_url should load the files appropriately.

Environment

PyTorch Version (e.g., 1.7):

OS (e.g., Linux): OpenSuse Leap

How you installed PyTorch (conda, pip, source): conda

Python version: 3.8

CUDA/cuDNN version: 10.2

cc @ezyang @gchanan @zou3519 @ailzhang

Issue 2:
The new theme of docs and tutorials is very confusing and makes it extreme difficult to read on a PC monitor. At very least please allow users to switch theme as they mat prefer.
Issue 1:
As you can see it's not a true shuffle as there are repeats and missing values.

import torch, random

import numpy as np

x1 = torch.arange(10)

x2 = np.arange(10)

x1, x2

(tensor([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]), array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]))

random.shuffle(x1)

random.shuffle(x2)

x1, x2

(tensor([0, 0, 2, 0, 2, 2, 6, 1, 4, 4]), array([1, 3, 8, 0, 2, 6, 5, 4, 7, 9]))

Issue 2:
🐛 Bug

Consider a Tensor x. I would like to swap elements i and j in a Pythonic way as follows:

x[i], x[j] = x[j], x[i]

However, what this ends up doing is replacing element i with j and not modifying element j.

To Reproduce

import torch
x = torch.randn(4) # tensor([-0.7905, -0.3574, -0.0493, -0.3152])
x[0], x[1] = x[1], x[0]
print(x) # tensor([-0.3574, -0.3574, -0.0493, -0.3152])

x = torch.randn(4, 4)
assert not (x[0] == x[1]).all()
x[0], x[1] = x[1], x[0]
assert not (x[0] == x[1]).all()

Expected behavior

Swap the elements correctly. NumPy seemingly supports this only in 1-D, and not in 2-D.

import numpy as np
x = np.random.randn(4) # array([ 0.11462874, -1.3748384 , 0.24256925, 1.01256207])
x[0], x[1] = x[1], x[0]
print(x) # array([-1.3748384 , 0.11462874, 0.24256925, 1.01256207])

Environment

PyTorch version: 1.1.0a0+6ce147c

Is debug build: No

CUDA used to build PyTorch: Could not collect

OS: Ubuntu 18.04.1 LTS

GCC version: (Ubuntu 7.3.0-16ubuntu3) 7.3.0

CMake version: version 3.10.2

Python version: 3.6

Is CUDA available: No

CUDA runtime version: 9.2.148

GPU models and configuration: GPU 0: GeForce 940M

Nvidia driver version: 396.54

cuDNN version: /usr/local/cuda-9.2/lib64/libcudnn.so.7

Versions of relevant libraries:

[pip] numpy==1.15.4

[pip] pytorch-sphinx-theme==0.0.24

[pip] torch==1.1.0a0+6ce147c

[pip] torchvision==0.2.1

[conda] blas 1.0 mkl

[conda] mkl 2019.1 144

[conda] mkl-include 2018.0.3 1

[conda] mkl_fft 1.0.6 py36hd81dba3_0

[conda] mkl_random 1.0.2 py36hd81dba3_0

[conda] pytorch-sphinx-theme 0.0.24 pypi_0 pypi

[conda] torch 1.1.0a0+6ce147c dev_0

Additional context

I think this might be related to #8212, but I'm not sure.
Issue 1:
Bug report

the link https://architects.io in readme is broken.

What is the current behavior?

Either it should be removed or updated with the correct one.

If the current behavior is a bug, please provide the steps to reproduce.

Go TO https://architects.io

What is the expected behavior?

Should not be broken.

Additional Info--

I will work on thisi issue.

Other relevant information:

webpack version:

Node.js version:

Operating System:

Additional tools:

Issue 2:
What is the current behavior?

The angular icon is missing from the readme file.

"Architects.io" logo is also missing from the file but I think that it is an invalid URL.

What is the expected behavior?

Additional Details

I want to work on this issue
Issue 1:
Impossible to unset the User-Agent, if I pass headers = { 'User-Agent': None }, urllib3 UA will be set as a fallback

I expect to not have any User-Agent sent to the webserver

Reproduction Steps

import requests

headers = {
'User-Agent': None
}

proxies = {
'https': 'http://127.0.0.1:8888'
}

response = requests.post(
'http://localhost:8888/',
data={'name': 'test'},
headers=headers,
proxies=proxies,
verify=False
)

exit()

System Information

$ python -m requests.help

{
"chardet": {
"version": null
},
"charset_normalizer": {
"version": "2.0.9"
},
"cryptography": {
"version": ""
},
"idna": {
"version": "3.3"
},
"implementation": {
"name": "CPython",
"version": "3.10.1"
},
"platform": {
"release": "10",
"system": "Windows"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.27.1"
},
"system_ssl": {
"version": "101010cf"
},
"urllib3": {
"version": "1.26.7"
},
"using_charset_normalizer": true,
"using_pyopenssl": false
}

Issue 2:
With pyrequest pullrequest 03957eb v2.25.0 urllib3 is updated to v1.26.0. with this version bump urllib3 has changed default behavior in regards to header "User-Agent" : https://pypi.org/project/urllib3/

urllib3 1.26.0

Added default User-Agent header to every request (Pull #1750)
Added urllib3.util.SKIP_HEADER for skipping User-Agent, Accept-Encoding, and Host headers from being automatically emitted with requests (Pull #2018)

Urllib3 now introduces default User-Agent header when no user-agent header is set. Urlib3 also introduces the function "urllib3.util.SKIP_HEADER" as a means to deactivate default user-agent header.

Expected Result

Pyrequest should adopt easy means of deactivating "User-Agent" headers by utilizing the "urllib3.util.SKIP_HEADER" function

Actual Result

Default "User-agent" header is enforced when no header= is specified.

by using headers={"User-Agent": none} no longer deactivate default "user-agent" while using headers={"User-Agent": ""} will deactivate "user-agent" header

Reproduction Steps

import requests

req = Request('POST', url=BASE_URL + endpoint, data=params).prepare()

---> Deafult "user-agent" is enforced "User-Agent: python-urllib3/1.26.2"

req = Request('POST', url=BASE_URL + endpoint, headers={"User-Agent": None}, data=params).prepare()

---> Does not deactivate "User-Agent"

req = Request('POST', url=BASE_URL + endpoint, headers={"User-Agent": ""}, data=params).prepare()

Deactivates "User-Agent" succesfully

## System Information

$ python -m requests.help

```

This command is only available on Requests v2.16.4 and greater. Otherwise,

please provide some basic information about your system (Python version,

operating system, &c).

Python 3.8, Docker
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/679 on 2008-03-06 by @chanley, assigned to unknown.

As of r4851 I have been receiving this error on a RHE4 64-bit system. This same error also occurs in r4852.

======================================================================
ERROR: check_MyPyLong_AsUnsignedLongLong (test_regression.TestRegression)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/data/thor1/chanley/dev/site-packages/lib/python/numpy/core/tests/test_regression.py", line 806, in check_MyPyLong_AsUnsignedLongLong
assert_equal(np.uint64(-2), np.uint64(18446744073709551614))
OverflowError: long too big to convert

----------------------------------------------------------------------

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/683 on 2008-03-11 by @jarrodmillman, assigned to @charris.

The buildbot for Linux_x86_64_Ubuntu and FreeBSD_x86_64 has the following error:

======================================================================
ERROR: check_MyPyLong_AsUnsignedLongLong (test_regression.TestRegression)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/stefan/Buildbot/slave/numpy/b1/numpy-install/lib/python2.5/site-packages/numpy/core/tests/test_regression.py", line 806, in check_MyPyLong_AsUnsignedLongLong
assert_equal(np.uint64(-2), np.uint64(18446744073709551614))
OverflowError: long too big to convert

I can verify this error on my 64bit Fedora 8 machine:

>>> numpy.uint64(-2)
18446744073709551614
>>> numpy.uint64(18446744073709551614)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: long too big to convert
Issue 1:
I'm submitting a ... (check one with "x")

[x] bug report
[ ] 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

Cannot use [routerLink] on a button, only on an a tag (anchor).

You get an error like this:

EXCEPTION: Error: Uncaught (in promise): Template parse errors:
Can't bind to 'href' since it isn't a known native property (" <ul class="nav navbar-nav">
<li class="nav-item">
[ERROR ->]<button [routerLinkActive]="['active']" [routerLink]="['/public']" class="nav-link btn btn-success-ou"): Navbar@9:21

Expected/desired behavior

Should be able to use [routerLink] on a button

Reproduction of the problem

Any button with routerLink in it, like <button [routerLink]="['/public']">Public</button>

What is the expected behavior?

Same as you get with <a [routerLink]="['/public']">Public</a>

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

I upgraded to router 3.0-alpha.7 from RC2 of router-deprecated, and now have to use a links where I had been using buttons.

Please tell us about your environment:

Angular version: 2.0.0-rc.3

Browser: [all]

Language: [TypeScript]

Issue 2:
From @gdi2290 on June 21, 2016 5:37

<button [routerLink]=" ['./'] ">Home</button>

Copied from original issue: angular/vladivostok#100