WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
It is a...

🐞 BUG

What is the current behavior?

Reproduce

https://codesandbox.io/s/antd-reproduction-template-7jmkr

Quick click Page 1 button.

Then, quick click Page 2 button.

What is the expected behavior?

findDOMNode should work in Suspense

Others

related issue: #14188

Issue 2:
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

I have a component which listens for resize events (via a BlueprintJS ResizeSensor). When loading a component dynamically with lazy / Suspense, an exception occurs as the resize sensor appears to be unmounted:

Uncaught Error: Unable to find node on an unmounted component.
at invariant (29.chunk.js:86295)
at findCurrentFiberUsingSlowPath (29.chunk.js:90628)
at findCurrentHostFiber (29.chunk.js:90640)
at findHostInstanceWithWarning (29.chunk.js:106349)
at findDOMNode (29.chunk.js:106869)
at ResizeSensor.componentDidUpdate (29.chunk.js:10535)

The resize sensor should be removing listeners on unmount.

Demo: https://codesandbox.io/s/n4241q075l

Related: palantir/blueprint#3141

What is the expected behavior?

No exception is thrown.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

Tested with:

React 16.6.1, fails

React 16.6.0, works
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

"Optional" label in StepLabel should be localizable.

Current Behavior

It's hardcoded with text constant "Optional" and cannot be replaced.

Tech
Version

Material-UI
1.0.0-beta.22

React
16.1.1

browser
any

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

Expected Behavior

Scrolling the GridList component on desktop should result in a momemtum.

Scrolling the GridList component on mobile should result in a momemtum.

Current Behavior

Scrolling the GridList component on desktop result in a momemtum.

Scrolling the GridList component on mobile doesn't result in a momemtum.

Context

when scrolling the screen on mobile the user gets a momemtum.

however when scrolling the GridList component there are no momemtum, and it results in a bad user experience.

Your Environment

I have tested it on chrome mobile, latest version, on an iPhone 7.

I could solve the issue by adding WebkitOverflowScrolling: 'touch' in GridList.js
Issue 1:
Bug report

Bug summary

In OSX using a Jupyter notebook with Matplotlib 2.0.2 and inline display, subplots apparently render after all the code in a cell has executed. The result is that if an object changes between one subplot plot call and the next, only the newest object is shown in both subplots.

This is fixed in 2.0.2, but I'm posting this issue for folks that might run into this.

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt

%matplotlib inline

A = np.array([[1,2,3],[4,5,6],[7,8,9]])
B = A.copy()
fig, axes = plt.subplots(1,3)
ax0, ax1, ax2 = axes
ax0.matshow(A)
A[0,0] = 9
ax1.matshow(B)
ax2.matshow(A)
# Expected behavior - first and second subplots are the same.
# Observed behavior - first and third subplots are the same.

Actual outcome

Expected outcome

I would expect the first and second subplots to be the same.

Matplotlib version

Operating System: OSX 10.10.5

Matplotlib Version: 1.5.1

Python Version: 3.5.2

Jupyter Version (if applicable): 5.0.0

Other Libraries:

Installed from Anaconda 4.3.

Issue 2:
The following code produces a horizontal gradient plot instead of a horizontal line:

import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm

Z=np.zeros((100,100))
Z[50]=100
fig=plt.figure()
ax=fig.add_subplot(1,1,1)
ax.imshow(Z,cmap=matplotlib.cm.Greys)
Z[...]= np.arange(100.)[np.newaxis,:]

plt.show()

Please note that if we comment Z[50]=100 the issue is not apparent as an all white figure is created as expected, but e.g. in Qt4Agg backend, mouseover values shows the altered Z values.

This means that imshow does not copy the data array but sets the color scale at the ax.imshow() call.

If data is intentionally not copied, I'd suggest adding a big warning about this behavior in the documentation and then the colorscale determination should be deferred until the figure is actually drawn. Otherwise the data should be copied.

pip installed Matplotlib: 1.5.0, numpy: 1.10.1

Ubuntu 14.04 python: 3.4.3
Issue 1:
Challenge headline-with-the-h2-element has an issue.

If i click run test i can't see the text of the test cases and i can ALWAYS pass the challenge even if the code is not correct!

Issue 2:
For the feature/curriculum-expansion branch only. When this branch is running locally, the challenge tests are all passing, even when no answer / incorrect code is typed into the editor. The assert messages aren't showing on screen anymore either - it's just the green check mark. This started happening sometime after the Monday, Sept 26th merges for the branch.

Update: confirmed issue on both feature/curriculum-expansion and staging branches.

Browser Information

Browser Name, Version: Both Chrome (53.0.2785.116 (64-bit)) and Firefox (49.0.1) are showing the same behavior.

Operating System: Mac OS X 10.11.3

Mobile, Desktop, or Tablet: Desktop
Issue 1:
homeview_appbar_background.xml (my drawable alias)

<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/homeview_appbar_background_port" />

Using this code to load does not work, because a drawable.xml alias file is used and not the original file itself.

Glide.with(this)
.load(R.drawable.homeview_appbar_background)
.into(imageView);

However, this works, because glide directly references the .png drawable.

Glide.with(this)
.load(R.drawable.homeview_appbar_background)
.into(imageView);

Note: "does not work" means that nothing happens when the glide loading is called.

Issue 2:
We have a placeholder shape drawable (or sometimes shown directly as .load(R.drawable.abc)) which fails to display. The onException listener is called, but e is null.

The logs contain only:

com.example.app D/skia﹕ --- SkImageDecoder::Factory returned null

Glide: 3.5.2

Tested on Genymotion v4.4.2

The drawable:

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#ffabcdef"/>
</shape>
Issue 1:
Environment

Terminal Version: 0.2.1831.0

Windows 10 Enterprise V1903, OS build 18362.30,

FarManager 3.0 build 5354 x64

Steps to reproduce

Open FarManager in Windows Terminal.

Press 'Ctrl+o' to switch to panel view.

Try to click with mouse on files or folders elements.

Expected behavior

FarManager should get onClick event end perform some action (open clicked folder/file)

Actual behavior

Caret is placing in a clicked place but FarManager doesn't take any action.

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1715.0

Screen 1920x1200
default settings for windows terminal

Steps to reproduce

open Windows Terminal

ssh in any shell session (tested pwsh, cmd, bash) to linux server

start mc (midnight commander)

scroll through folder list with arrow down/up

do the same as above in pwsh or bash or cmd but started directly (without Windows Terminal)

Compare performance and screen quality

Expected behavior

Performance and stability should be at least the same in both cases

Actual behavior

Windows Terminal scenario is noticeably slower.

Windows terminal blinks with artifacts (mostly |) on each scroll step when you press and hold up/down key.

Tested the same with mc in local bash session. Less artifacts and a bit improved speed but still noticable slowdown.

Seems related but not duplicate of #117
Issue 1:
Do you want to request a feature or report a bug?

bug

What is the current behavior?

Webpack is generating the following error when running our build:

Error: Error: ENAMETOOLONG: name too long, open '/mnt/tmp/d20180130-23474-fmx2zd/monorail-solano-ghe/public/static/AsyncTwoFactorModal~LuxuryCreateInspection_async~LuxuryListingStatusDashboard_async~SaveToListModal~UserChallengesInline~UserChallengesModalWrapper~business_profile_modal_content~causesAdminCampaignModal~causesAdminCauseModal~mt-guest-services-RestaurantBookContainer~mt-guest-services-confirmAndPayContainer~reauthModal_async-async-33b40edd34cd932e7a21.js'
at multiCompiler.run (/mnt/tmp/d20180130-23474-fmx2zd/monorail-solano-ghe/webpack/compile.js:16:11)
at runWithDependencies (/mnt/tmp/d20180130-23474-fmx2zd/monorail-solano-ghe/node_modules/webpack/lib/MultiCompiler.js:223:20)
at /mnt/tmp/d20180130-23474-fmx2zd/monorail-solano-ghe/node_modules/async/dist/async.js:1074:9
at /mnt/tmp/d20180130-23474-fmx2zd/monorail-solano-ghe/node_modules/async/dist/async.js:421:16
at iteratorCallback (/mnt/tmp/d20180130-23474-fmx2zd/monorail-solano-ghe/node_modules/async/dist/async.js:996:13)
at /mnt/tmp/d20180130-23474-fmx2zd/monorail-solano-ghe/node_modules/async/dist/async.js:906:16
at /mnt/tmp/d20180130-23474-fmx2zd/monorail-solano-ghe/node_modules/async/dist/async.js:1071:13
at fn (/mnt/tmp/d20180130-23474-fmx2zd/monorail-solano-ghe/node_modules/webpack/lib/MultiCompiler.js:166:21)
at compiler.run (/mnt/tmp/d20180130-23474-fmx2zd/monorail-solano-ghe/node_modules/webpack/lib/MultiCompiler.js:218:21)
at emitAssets.err (/mnt/tmp/d20180130-23474-fmx2zd/monorail-solano-ghe/node_modules/webpack/lib/Compiler.js:179:20)

It looks like webpack is combining several of our async imported file names into one.

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

I don't know how to recreate outside of running our build.

What is the expected behavior?

The above error shouldn't be generated.

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

node 8.9.1, npm 5.6.0, webpack 4 beta, mac osx

Issue 2:
dist/dev:

dist/prod:

i searched quite a bit for tickets and inside the docs for a config, but did not find it.

is there one already in place? if not, this would be a feature request.

for the https://github.com/neomjs/neo context, i just added cross apps & examples split chunks. Meaning: there can be 50+ entry points and the duplicate mappings really do add up on the output file size.

i just need the version containing the file name extensions. since the real dev mode runs inside the browser directly, it is impossible to use imports without the file name extensions anyway.

thanks for your input!

best regards, tobias
Issue 1:
My apologies for the off topic issue, but since I can't post to golang-nuts I was not sure where else to raise this.

I appear to have been banned from the golang-nuts group, but am not sure why. Is it possible to clarify why, or possibly reinstate my membership? It would have been through my google account lstask@gmail.com, with an additional email address liam@stask.net

Thanks.

Issue 2:
http://play.golang.org/p/cNlOycuLzl is this:

package main

import (
"bytes"
"encoding/gob"
"time"
)

type Update struct {
Time time.Time // *** Note1 : Works if change from time.Time -> int ***//
}

type Time struct {
T *time.Time
}

type PC struct {
Id int64
Update []Update // *** Note2 : Works if comment out one of Update or LastUpdate ***//
LastUpdate Time
}

func main() {
buf := new(bytes.Buffer)
enc := gob.NewEncoder(buf)
var err error
if err = enc.Encode(PC{}); err != nil {
println("A", err.Error())
return
}
dec := gob.NewDecoder(bytes.NewBuffer(buf.Bytes()))
if err = dec.Decode(new(PC)); err != nil {
println("B", err.Error())
return
}
}

It prints "B extra data in buffer. Removing either of the time.Time values from the
struct or replacing them with ints clears up the error. Something is awry with gots and
time.
Issue 1:
as discussed in #5297

Issue 2:
Some extension relay on hard coded paths that are not exposed by vscode. See for example code-sittings-sync. Those extension are broken in the insiders version. I see t two possible ways:

Just expose all paths used by vscode to extensions. Otherwise they will hard code them. No more security, just more messy code.

Expose if the extension is used by the insider version. There might be a way, but I have not found it yet. I thought about getting the version and check if it ends with -insiders, but I have not found a way to get this information either.
Issue 1:
Please:

Check for duplicate requests.

Describe your goal, and if possible provide a code snippet with a motivating example.

I've found that there is some direction that hiding the communication time while computing einsum ops.

Link: https://dl.acm.org/doi/pdf/10.1145/3567955.3567959

I think it would be implemented somewhere since the affiliation of the paper is Google and used in TPU chips.

Is there any reference implementation that I could follow?

Also, I found this information while reading the following paper.

Link: https://arxiv.org/abs/2211.05102

If anyone who knows some reference implementations or materials that help to implement it, please let me know.

Thank you for your support.

Issue 2:
Please:

Revert #4867 because it messes up TensorFlow, for example (ignore the fact the code is useless):

>>> from jax.numpy import array
>>> from tensorflow.keras import Sequential
>>> Sequential().predict(array([0]))
[...]
TypeError: Using a non-tuple sequence for multidimensional indexing is not allowed; use `arr[array(seq)]` instead of `arr[seq]`. See https://github.com/google/jax/issues/4564 for more information.
[...]

But if you run it with NumPy:

>>> from numpy import array
>>> from tensorflow.keras import Sequential
>>> Sequential().predict(array([0]))
array([0])

Check for duplicate requests.

Describe your goal, and if possible provide a code snippet with a motivating example.
Issue 1:
Hi,

When indexing a numpy array with a jax.numpy array, and the jax array has a singleton dimension, the dimension is lost. This behaviour is different if both are numpy arrays, or both are jax arrays.

array_jnp = jnp.zeros((50, 5))
array_np = np.zeros((50, 5))
idx_jnp = jnp.array([2])
idx_np = np.array([2])
print(array_jnp[idx_jnp]) # prints [[0. 0. 0. 0. 0.]]
print(array_np[idx_jnp]) # prints [0. 0. 0. 0. 0.] <--------- this is different!
print(array_jnp[idx_np]) # prints [[0. 0. 0. 0. 0.]]
print(array_np[idx_np]) # prints [[0. 0. 0. 0. 0.]]

Issue 2:
When you try to index a numpy ndarray with a DeviceArray, the numpy array tries to interpret the jax array as a tuple.

import numpy as onp
import jax.numpy as np
x = onp.zeros((5,7))
np_idx = onp.array([1,2,3])
jax_idx = np.array([1,2,3])
x[np_idx]
x[jax_idx] # <- raises IndexError

Workaround: put jax_idx in a singleton tuple x[(jax_idx,)]

This bug resulted in a confusing situation where my function worked when decorated by jax.jit but had a shape mismatch when called on a numpy array.
Issue 1:
Code Sample

import pandas as pd
import datetime

# 4 examples:

df = pd.DataFrame({0: [1, None]}) # Works
df = pd.DataFrame({0: [None, 1]}) # Works

df = pd.DataFrame({0: [None, datetime.datetime.now()]}) # Exception

# Problem demonstration:
df != df.iloc[0] # Works with numeric column, fails with NaT

Problem description & expected output.

In the above code, the final test raises an exception with the datetime example, but works with the two numeric examples.

I would expect the NaT case to behave like the numeric example.

Note: a column with datetimes but no NaT makes df != df.iloc[0] work as expected.

Expected Output

I expect the result to be, like for numeric values, a dataframe that answers the question "is the value identical to that in the first row?" (as a dataframe with the same shape).

Output of pd.show_versions()

<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.2.final.0
python-bits: 64
OS: Darwin
OS-release: 16.7.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8

pandas: 0.20.3
pytest: 3.2.2
pip: 9.0.1
setuptools: 36.3.0
Cython: 0.26.1
numpy: 1.13.1
scipy: 0.19.1
xarray: None
IPython: 6.1.0
sphinx: 1.6.3
patsy: 0.4.1
dateutil: 2.6.1
pytz: 2017.2
blosc: None
bottleneck: 1.2.1
tables: 3.4.2
numexpr: 2.6.2
feather: None
matplotlib: 2.0.2
openpyxl: 2.5.0a3
xlrd: 1.1.0
xlwt: 1.2.0
xlsxwriter: 0.9.8
lxml: 3.8.0
bs4: 4.6.0
html5lib: 0.9999999
sqlalchemy: 1.1.13
pymysql: None
psycopg2: None
jinja2: 2.9.6
s3fs: None
pandas_gbq: None
pandas_datareader: None
</details>

Issue 2:
Code Sample, a copy-pastable example if possible

>>> import pandas as pd
>>> nat = pd.NaT
>>> x = pd.Series([nat])
>>> x.eq(nat)
0 False
dtype: bool
>>> x == nat
0 False
dtype: bool
>>> y = pd.DataFrame(dict(x=x))
>>> y.eq(nat)
x
0 NaT
>>> y == nat
x
0 True

Problem description

Comparisons in a dataframe containing a single nat give incorrect answers. Note this occurs with both datetime and timedelta nats.

Expected Output

0 False
dtype: bool

0 False
dtype: bool

x
0 False

x
0 False

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.5.2.final.0

python-bits: 64

OS: Linux

OS-release: 4.9.8-100.fc24.x86_64

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: C

LANG: C

LOCALE: None.None

pandas: 0.19.0+579.g4ce9c0c

pytest: 3.0.5

pip: 9.0.1

setuptools: 27.2.0

Cython: 0.25.2

numpy: 1.11.3

scipy: 0.18.1

xarray: 0.9.1

IPython: 4.2.0

sphinx: 1.5.1

patsy: 0.4.1

dateutil: 2.6.0

pytz: 2016.10

blosc: None

bottleneck: 1.2.0

tables: 3.3.0

numexpr: 2.6.2

feather: None

matplotlib: 2.0.0

openpyxl: 2.4.1

xlrd: 1.0.0

xlwt: 1.2.0

xlsxwriter: 0.9.6

lxml: 3.7.2

bs4: 4.5.3

html5lib: 0.999

sqlalchemy: 1.1.5

pymysql: None

psycopg2: None

jinja2: 2.9.4

s3fs: None

pandas_gbq: None

pandas_datareader: None
Issue 1:
index.js file in all of bower-angular-* repositories has a syntax error:

require('./angular-sanitize');

module.exports = angular-sanitize;

(link)

Which makes it a bit more complicated to use them with browserify. I couldn't find the script that's used to generate those repos, but the fix would be as simple as rewriting the file to:

module.exports = require('./angular-sanitize');

Another option would be to add "main":"angular-sanitize.js" to package.json (spec) and not have an index.js file at all (as it's already done in bower.json).

Issue 2:
I've got a webpack-based angular project that uses the angular-mocks package for our test suite. Did a fresh install today and got the 1.3.9 package of angular-mocks and started getting the error on launch:

ReferenceError: mocks is not defined

Looking at angular-mocks/index.js, it's entire content is:

require('./angular-mocks');

module.exports = angular-mocks;
Issue 1:
The following shows only 1 failed test:

julia> @testset "foo $i" for i=1:3
@test 2==3+i
end
foo 1: Test Failed
Expression: 2 == 3 + i
Evaluated: 2 == 4
Stacktrace:
[1] macro expansion at .\REPL[44]:2 [inlined]
[2] macro expansion at .\test.jl:921 [inlined]
[3] anonymous at .\<missing>:?
Test Summary: | Fail Total
foo 1 | 1 1
Test Summary: | Fail Total
foo 1 | 1 1
ERROR: Some tests did not pass: 0 passed, 1 failed, 0 errored, 0 broken.

However, if you manually write out the loop, all three tests are run:

julia> @testset "foo" begin
@test 2==3+1
@test 2==3+2
@test 2==3+3
end
foo: Test Failed
Expression: 2 == 3 + 1
Evaluated: 2 == 4
Stacktrace:
[1] macro expansion at .\REPL[46]:2 [inlined]
[2] macro expansion at .\test.jl:860 [inlined]
[3] anonymous at .\<missing>:?
foo: Test Failed
Expression: 2 == 3 + 2
Evaluated: 2 == 5
Stacktrace:
[1] macro expansion at .\REPL[46]:3 [inlined]
[2] macro expansion at .\test.jl:860 [inlined]
[3] anonymous at .\<missing>:?
foo: Test Failed
Expression: 2 == 3 + 3
Evaluated: 2 == 6
Stacktrace:
[1] macro expansion at .\REPL[46]:4 [inlined]
[2] macro expansion at .\test.jl:860 [inlined]
[3] anonymous at .\<missing>:?
Test Summary: | Fail Total
foo | 3 3
ERROR: Some tests did not pass: 0 passed, 3 failed, 0 errored, 0 broken.

I don't think this is intended (see the discussion in #21594). If this is intended behavior, it should probably be better documented.

Issue 2:
@testset should constitute rollback points for exceptions (execution should continue on the next testset), and indeed it's the case, but only for nested testsets:

using Base.Test
@testset "outer" begin
@testset "inner" begin
@test true
@assert false
end
@testset "inner2" begin
@test true
end
end
@testset "next" begin
@test true
end

Summary shows:

Test Summary: | Pass Error Total
outer | 2 1 3
inner | 1 1 2
inner2 | 1 1

inner2 is run, but "next" is not. It seems this is triggered by finalize(), which stops on error at the top level. Is this intended, and if so, why?
Issue 1:
I want to talk about jquery/jquery.d.ts.

The authors of that type definition are cc/ @borisyankov @choffmeister @Steve-Fenton @Diullei @tasoili @jasons-novaleaf @seanski @Guuz @ksummerlin @basarat @nwolverson @derekcicerone @AndrewGaspar @jameshfisher @seikichi @benjaminjackman @JoshStrobl @johnnyreilly @DickvdBrink

I want to talk about jquery.dataTables/jquery.dataTables.d.ts.

The authors of that type definition are cc/ @Silver-Connection @omidkrad @pragmatrix @CNBoland

The static propertyJQueryStatic.fn (AKA jQuery.fn or $.fn) is declared as any which makes it impossible for plugin authors to write proper type declarations.

An example of such a plugin is the DataTables plugin, which has a handful of static functions that you can access via $.fn.dataTables.

In jquery/jquery.d.ts

fn: any; //TODO: Decide how we want to type this

In jquery.dataTables/jquery.dataTables.d.ts

//TODO: Wrong, as jquery.d.ts has no interface for fn
//interface JQueryStatic {
// dataTable: DataTables.StaticFunctions;
//}

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/jquery/jquery.d.ts#L966

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/jquery.dataTables/jquery.dataTables.d.ts#L17-L20

Example: https://datatables.net/reference/api/$.fn.dataTable.tables()

// get all DataTables on the page.
let tables: DataTables.DataTable[] = $.fn.dataTables.tables() as DataTables.DataTable[];

Here, the inferred return type of tables() is any because the type of fn is any, but the actual return type is an array of DataTable.

Issue 2:
I have an issue during writing a piece of declaration for existing node.js module - bluebird.js. The module has a method named props which gets an object has promises in it then return an object have same property names. It seems like object-version map. I wanted to add types for that.

For all I can easily get the types like

static all<T1, T2>(values: [Promise.Thenable<T1>, Promise.Thenable<T2>]): Promise<[T1, T2]>;
static all<T1, T2, T3>(values: [Promise.Thenable<T1>, Promise.Thenable<T2>, Promise.Thenable<T3>]): Promise<[T1, T2, T3]>;
// ...

But for props the other hand,

static props<T1>(object: {[k:string]: Promise.Thenable<T1>}): Promise<{[k:string]: T1}>;

I'm getting this

bluebird/bluebird-tests.ts(530,10): error TS2339: Property 'foo' does not exist on type '{ [k: string]: Foo; }'.
bluebird/bluebird-tests.ts(534,10): error TS2339: Property 'bar' does not exist on type '{ [k: string]: Bar; }'.

Is there any tip for issue like this?