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

Expected Behavior

In v0.19, nested menus can be created by adding menuItems prop, is it possible to do the same thing in v1?

http://www.material-ui.com/#/components/menu

<MenuItem
primaryText="Custom: 1.2"
checked={true}
rightIcon={<ArrowDropRight />}
menuItems={[
<MenuItem primaryText="Show Level 2" />,
]}
/>

Current Behavior

I've already checked the samples in List, but showing sub-menus on right instead of bottom is more preferable.

https://material-ui-1dab0.firebaseapp.com/demos/lists/

Your Environment

Tech
Version

Material-UI
v1.0.0-beta.9

React
15.6.1

browser
Chrome Version 60.0.3112.90

Issue 2:
Looks like the prop documentation for the MenuItem component is a little messed up at the end:

http://www.material-ui.com/#/components/menu

Just scroll down to the end and you'll see some of the prop descriptions not being styled in the table
Issue 1:
Versioning and API Stability states:

Scrapy uses the odd-numbered versions for development releases.

(...) Even Bs will be stable branches, and odd Bs will be development.

I believe this is not true anymore starting with 1.1, 1.1 being the current recommended stable version.

Issue 2:
Quotes from http://doc.scrapy.org/en/1.0/versioning.html:

Scrapy uses the odd-numbered versions for development releases.

So far, only zero is available for A as Scrapy hasn’t yet reached 1.0.

API stability is one of Scrapy major goals for the 1.0 release, which doesn’t have a due date scheduled yet.
Issue 1:
Description of the problem

I export a scene by this python function from io_three

exporter.export_scene(file_name, settings.no_animation)

Link to the blender scene Link

In blender scene looks like this

when I load the scene and render, my output is

as you can see that, the position is right, but the Yrotation ( maybe) is wrong

Link to my project https://github.com/giangm9/blender3js

Three.js version

Dev

r90

r89

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Blender version

2.76

Hardware Requirements (graphics card, VR Device, ...)

Issue 2:
Description of the problem

Two different materials is being recognised as the same material here:

three.js/src/renderers/webgl/WebGLPrograms.js

Line 218
in
c94018c

this.getProgramCode = function ( material, parameters ) {

let someString = 'a';
const materialA = new THREE.MeshBasicMaterial();
materialA.onBeforeCompile = function() {
// do something with someString
}

someString = 'b';
const materialB = new THREE.MeshBasicMaterial();
materialB.onBeforeCompile = function() {
// do something with someString
}

The hash of those materials will be the same when using onBeforeCompile.toString() but they do different things because of different variable values.

So the compiled version of materialA is equal to the compiled version of materialB when they are not equal.

Three.js version

Dev

r96

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)
Issue 1:
Forwarning, my understanding of Deno may be incorrect, please, correct me if I am wrong.

Currently, Deno chooses between either JavaScript or TypeScript by using the file's extension. (I think?)

When JavaScript attempts to import a .ts file, the cache is checked, if the file has not been changed, the cached code is used, otherwise, TSC is invoked and its JavaScript output is imported.

Can the same functionality be easily provided for other languages?

Say, I wanted to use Dart's dart2js transpiler on Dart source code files (.dart), is there a way that I could do this using Deno itself?

If I were to do something like:

import foo from "./mod.dart"

the transpiler program would be fed the file and emit JS, which is then used by the importing JS module.

If this does not exist, can this be considered a suggestion to offer such functionality?

Issue 2:
For tracking purposes, please don't work on this without discussing with Ry or myself.

Having a public API that is similar to how we perform TypeScript compilation is a good idea. It would allow JS->JS transpilation (e.g. those who need Babel custom plugins or Flow) or other languages (e.g. CoffeeScript).

Related to #1738 and some other work in rationalising the compiler APIs internally, but we should be able to support loading a compiler in a web worker and instructing the privileged side what resources should be sent to that runtime compiler.
Issue 1:
At the moment the following code triggers dead code warnings for both f and g. The latter is unnecessary.

fn f(){
fn g(){};
g();
}

rust version 0.9

Issue 2:
On reddit: https://www.reddit.com/r/rust/comments/36f94o/how_do_i_read_the_api_docs/

I had a terrible time with the API docs. Take str... I know I can use to_string() on it because I saw a web page that said I could, but I can't seem to infer that from the docs. Then I search for to_string() and get this page, but it doesn't seem to apply to str types.

What’s going on is that the to_string() method is on the ToString trait which has a blanket impl

impl<T> ToString for T where T: Display + ?Sized

… and str implements Display.

So in the spirit of #19190 (show methods available through deref), rustdoc should also show methods available through blanket implementations.
Issue 1:
Hi,

The iconStyle for an icon button is overwritten in this piece of code in app-bar.js row 139 meaning that its not possible to set the style of an iconButton if its in the app-bar.

if (iconElementLeft) {
switch (iconElementLeft.type.displayName) {
case 'IconButton':
iconElementLeft = React.cloneElement(iconElementLeft, {
iconStyle: this.mergeAndPrefix(styles.iconButton.iconStyle)
});
break;
}

Issue 2:
I have

render() {
return <AppBar style={{ position: "fixed" }} title={<span>my Title</span>}

iconElementLeft={<IconButton><NavigationMenu /></IconButton>}
iconStyleRight={{color:"red"}}
iconElementRight={<IconButton><span className = "material-icons">account_circle</span></IconButton>}
/>
}

but iconStyleRight is giving me the error

Type '{ [x: number]: undefined; color: any; }' is not assignable to type 'string'

No idea why. I've tried many combinations, including adding a style to the <span> element, which is ignored.

Is this a bug, or am I doing something wrong?
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/1272 on 2009-10-23 by trac user brian, assigned to unknown.

Hi,

I'm unable to build numpy-1.3.0 as a 4-way binary on a 10.5 Mac i386 using gcc-4.0.1. I receive the following error message when "-arch ppc64" is included as a compiler flag.

numpy/core/include/numpy/npy_endian.h:33:10: error: #error Unknown CPU: can not set endianness

I'm able to build successfully after editing

npy_endian.h

Including "defined(NPY_CPU_PPC64)" to line 28 seems to do the trick.

Issue 2:
Original ticket http://projects.scipy.org/numpy/ticket/1111 on 2009-05-20 by @dwf, assigned to unknown.

Trying to build either a fat64 or a 4-way binary of NumPy on Mac OS X is failing in svn r7002 an endianness detection error. This came up on the mailing list ([http://mail.scipy.org/pipermail/scipy-user/2009-May/021066.html thread]) and I encountered it myself. Some #warnings show PPC64 builds are the problem:

$ gcc -arch ppc64 -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -O3 -Wall -DNDEBUG -g -fwrapv -Wstrict-prototypes -arch x86_64 -arch ppc64 -Inumpy/core/include -Ibuild/src.macosx-10.5-fat64-2.6/numpy/core/include/numpy -Inumpy/core/src -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/Library/Frameworks/Python64.framework/Versions/2.6/include/python2.6 -Ibuild/src.macosx-10.5-fat64-2.6/numpy/core/src/multiarray -Ibuild/src.macosx-10.5-fat64-2.6/numpy/core/src/umath -c build/src.macosx-10.5-fat64-2.6/numpy/core/src/_sortmodule.c
In file included from numpy/core/include/numpy/npy_endian.h:22,
from numpy/core/include/numpy/ndarrayobject.h:33,
from numpy/core/include/numpy/noprefix.h:7,
from numpy/core/src/_sortmodule.c.src:29:
numpy/core/include/numpy/npy_cpu.h:39:6: warning: #warning "PPC64! Hooray!"
In file included from numpy/core/include/numpy/ndarrayobject.h:33,
from numpy/core/include/numpy/noprefix.h:7,
from numpy/core/src/_sortmodule.c.src:29:
numpy/core/include/numpy/npy_endian.h:33:10: error: #error Unknown CPU: can not set endianness
In file included from numpy/core/include/numpy/npy_endian.h:22,
from numpy/core/include/numpy/ndarrayobject.h:33,
from numpy/core/include/numpy/noprefix.h:7,
from numpy/core/src/_sortmodule.c.src:29:
numpy/core/include/numpy/npy_cpu.h:30:6: warning: #warning "AMD64! Hooray!"
lipo: can't figure out the architecture type of: /var/folders/jz/jzMQLnV-GOWCP55tPgPBl++++Tc/-Tmp-//ccjBE91A.out

I've attached a tiny patch that fixes this, adds PPC64 as one of the architectures detected as big-endian.
Issue 1:
What steps will reproduce the problem?

cd C:\MinGW\go\src\pkg\path\filepath
go test -i
copy /b path.go +,,
go test

(copy command is equivalent of unix touch command)

What is the expected output?

warning: building out-of-date packages:
io/ioutil
installing these packages with 'go test -i' will speed future tests.

PASS
ok path/filepath 0.078s

What do you see instead?

PASS
ok _/C_/MinGW/go/src/pkg/path/filepath 0.094s

Please use labels and text to provide additional information.

hg id prints c901fddcc4cb tip

My environment is

GOARCH=386
GOBIN=c:\mingw\go\bin
GOROOT=c:\mingw\go

If I change GOROOT variable to

GOROOT=C:\mingw\go

everything works as expected.

Issue 2:
by emery@fuzzlabs.org:

What steps will reproduce the problem?
net.Dial("tcp", "... ")
http://play.golang.org/p/2tbP5ewNlp

What is the expected output?
&{0x... }
&{0x... }

What do you see instead?
dial tcp google.com:80: i/o timeout
&{{0x... }}

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

Which operating system are you using?
plan9/386 (pfront)

Which version are you using? (run 'go version')
devel +9bf97fe54385

There seems to be a similar problem on windows, but with UDP instead of TCP
https://golang.org/issue/5349
Issue 1:
I configured "Cmder" as a shell command and it always opens outside tabbed shell.

Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable):

Any other software?

Steps to reproduce

Expected behavior

Actual behavior

Issue 2:
Environment

Windows build number: 10.0.18995.0
Windows Terminal version (if applicable): 0.5.2661.0

Any other software?

Steps to reproduce

Open a wsl tab using a light color scheme (e.g., Solarized Light)

echo -e "\033[1mhello\033[0m"

Expected behavior

"hello" is printed in bold (or at least a darker version of the foreground color)

Actual behavior

"hello" is printed in brightWhite and is hard to see. (In some color schemes brightWhite is identical to the background color and is completely invisible)

It looks like the interpretation of the ANSI "bold" sequence is simply to render the following text in brightWhite. This "works" if the background is dark and the foreground is light, but it is pretty useless when using a light background and dark text. This impacts all programs that use the ANSI escape sequences (e.g., the "less" pager).
Issue 1:
the app gets to crash at runtime.

I m using your latest version 4.6.1 in an existing project which contains 26 build tool version.

the error log :-

" java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)Landroid/graphics/Typeface; in class Landroid/support/v4/content/res/ResourcesCompat; or its super classes (declaration of 'android.support.v4.content.res.ResourcesCompat' appears in /data/app/com.simform.wifiapp.architecturecomponentdemo-1/base.apk)"

this is not happening in yr older version 4.6.0.

I have not used any font type in any XML file.

but because of glide latest version, it shows an error for to getFont().

please find the screenshot for reference.

Issue 2:
Hello,

when we tried to add new google places SDK, we encountered an eroor while generating build,

"Cause: duplicate entry: com/bumptech/glide/GeneratedAppGlideModule.class"

Glide version: "3.7.0"

PFA

libraries used in my project:

compile 'com.android.support:design:27.1.1'

compile 'com.android.support:support-v4:27.1.1'

compile 'com.android.support:appcompat-v7:27.1.1'

compile 'com.android.support:multidex:1.0.1'

compile 'com.github.nisrulz:recyclerviewhelper:25.0.0'

compile 'com.code-troopers.betterpickers:library:2.5.1'

compile 'com.jakewharton:butterknife:7.0.1'

compile 'com.github.bumptech.glide:glide:3.7.0'

compile 'com.mobsandgeeks:android-saripaar:2.0.2'

compile 'com.github.castorflex.smoothprogressbar:library-circular:1.0.1'

compile 'com.google.android.gms:play-services-maps:12.0.1'

compile 'com.google.maps.android:android-maps-utils:0.5+'

compile 'com.google.android.gms:play-services-location:12.0.1'

compile 'com.amazonaws:aws-android-sdk-s3:2.6.14'

compile 'joda-time:joda-time:2.9.3'

compile 'com.edmodo:cropper:1.0.1'

compile 'com.daimajia.easing:library:1.0.1@aar'

compile 'com.daimajia.androidanimations:library:1.1.3@aar'

compile 'org.greenrobot:greendao:3.0.1'

compile 'com.lyft✂️1.1.1'

compile 'com.google.code.gson:gson:2.8.2'

compile 'com.squareup.retrofit2:retrofit:2.0.0-beta4'

compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'

compile 'com.github.PhilJay:MPAndroidChart:v2.1.6'

compile 'com.onesignal:OneSignal:[3.6.0, 3.99.99)'

compile 'com.google.android.libraries.places:places-compat:1.0.0'

compile 'com.android.support:cardview-v7:27.1.1'
Issue 1:
Make sure these boxes are checked before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if any

I have reproduced the issue with at least the latest released version of superset

I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

master

Actual results

but in Explore, can't get the field id__1

Steps to reproduce

Select * [choose two tables with same fields]

Run query

Explore

Issue 2:
Make sure these boxes are checked before submitting your issue - thank you!

[ ok] I have checked the superset logs for python stacktraces and included it here as text if any

[ ok] I have reproduced the issue with at least the latest released version of superset

[ ok] I have checked the issue tracker for the same issue and I haven't found one similar

Now dashboard permissions are based on database and datasource to control, I would like to control the permissions on the dashboard alone，like that:

Superset version

14.1

Expected results

succeed

Actual results

succeed

Steps to reproduce

New feature.
Issue 1:
Code Sample, a copy-pastable example if possible

# First, create a `Series` with `dtype` int64 or float64 or object (any type but datetime64).
series = pd.Series({'value': 123})
# >>> series
# value 123
# dtype: int64

# Setting a new datetime64 value, and it will be converted to int64.
series.at['date'] = datetime.datetime.now()
# >>> series
# value 123
# date 1520605566114680000
# dtype: object

# If assigning to a existed field, it won't be auto-converted.
series.at['date'] = datetime.datetime.now()
# >>> series
# value 123
# date 2018-03-09 14:26:19.945935
# dtype: object

Problem description

When assigning a datetime64 value to a new field of a non-datetime64 Series, it will be converted to int64.

While assigning to a existed field, it won't be converted.

Expected Output

A datetime64 value should never be implicitly converted to int64.

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.4.final.0

python-bits: 64

OS: Darwin

OS-release: 17.4.0

machine: x86_64

processor: i386

byteorder: little

LC_ALL: None

LANG: zh_CN.UTF-8

LOCALE: zh_CN.UTF-8

pandas: 0.22.0

pytest: None

pip: 9.0.1

setuptools: 38.5.2

Cython: None

numpy: 1.14.1

scipy: 1.0.0

pyarrow: None

xarray: None

IPython: None

sphinx: None

patsy: None

dateutil: 2.6.1

pytz: 2018.3

blosc: None

bottleneck: None

tables: None

numexpr: None

feather: None

matplotlib: 2.2.0

openpyxl: None

xlrd: 1.1.0

xlwt: None

xlsxwriter: 1.0.2

lxml: None

bs4: 4.6.0

html5lib: None

sqlalchemy: None

pymysql: 0.7.11.None

psycopg2: None

jinja2: None

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
xref #14179

xref #12499

xref #18027

http://stackoverflow.com/questions/23250333/in-pandas-dataframe-after-i-set-an-entire-column-i-cant-update-another-column

but .loc works

In [50]: df = pd.DataFrame(index=pd.date_range(start,periods=1), columns=['timenow','Live'])

In [51]: df.at[start,'timenow'] = datetime.today() # initial value

In [52]: df
Out[52]:
timenow Live
2014-04-01 2014-04-23 12:42:38.883082 NaN

[1 rows x 2 columns]

In [53]: df._data
Out[53]:
BlockManager
Items: Index([u'timenow', u'Live'], dtype='object')
Axis 1: <class 'pandas.tseries.index.DatetimeIndex'>
[2014-04-01]
Length: 1, Freq: D, Timezone: None
ObjectBlock: [timenow, Live], 2 x 1, dtype: object

In [54]: df = pd.DataFrame(index=pd.date_range(start,periods=1), columns=['timenow','Live'])

In [55]: df.loc[start,'timenow'] = datetime.today() # initial value

In [56]: df
Out[56]:
timenow Live
2014-04-01 2014-04-23 12:43:00.554915 NaT

[1 rows x 2 columns]

In [57]: df._data
Out[57]:
BlockManager
Items: Index([u'timenow', u'Live'], dtype='object')
Axis 1: <class 'pandas.tseries.index.DatetimeIndex'>
[2014-04-01]
Length: 1, Freq: D, Timezone: None
DatetimeBlock: [timenow, Live], 2 x 1, dtype: datetime64[ns]
Issue 1:
IsolationForest is implemented with a bagging of ExtraTreeRegressor and the author of extrmely randomized trees propose a way to generate random (binary) splits by selecting a random subset of

their possible values.

Can IsolationForest handle with categorical attributes in sklearn？

Ref.

https://orbi.uliege.be/bitstream/2268/9357/1/geurts-mlj-advance.pdf

Issue 2:
I am planning on submitting several PRs in an attempt to merge #5041 in slowly, with the ultimate goal being a clean implementation of multithreaded decision tree building so that Gradient Boosting can be faster. With one of the main concepts merged (#5203), here is a list of separate PRs which I'd like to merge in the near future.

Reorganize _tree.pyx into several files (see PR #5230)[merged]

Add proxy impurity improvement methods to both Gini and entropy (see PR #5233)[closed]

Reevaluate constant feature caching [closed]

Support sparse data for gradient boosting (see PR #5252)

Add caching of computation between different split levels to avoid recomputation

Ensure feature importance converge in ensemble (see PR #5261)

Add tests to ensure the correctness of impurity values, wrt hand-computed values on toy data.

Longer range goals which I'd like to work towards (but have no clear plan as of right now) are the following:

Add an approximate splitter

Add multithreading support for single decision trees

Add a partial fit method for tree building

Support categorical variables

Support missing values

At this point, it will be clearer to me what specific changes to Splitter, Criteria, and TreeBuilder need to be added to make multithreading a possibility. @glouppe @arjoly @GaelVaroquaux @pprett if you have any comments, I'd love to hear them.
Issue 1:
Environment

Windows build number: 10.0.18363.0
Windows Terminal version (if applicable): 0.6.2951.0

Any other software?

Steps to reproduce

Setup a git diff tool in your git config (see below for example)

Run git difftool in any git repo that has pending changes

Example .gitconfig section...

[diff]
tool = winmerge
[difftool "winmerge"]
cmd = \"C:/Program Files (x86)/WinMerge/winmergeu.exe\" -e -u \"$LOCAL\" \"$REMOTE\"

Expected behavior

The external tool appears in the foreground.

Actual behavior

The external diff tool appears behind the Windows Terminal window.

Additional Information

I've tried this with multiple diff tools (both Winmerge and P4Merge), and get the same issue.

I've tried this with other terminal apps (Cmder, normal Powershell window, and normal cmd window). This only happens when using the Windows Terminal.

Issue 2:
Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable):0.4.2382.0

Steps to reproduce

Open WT

Add tabs until they go off are no longer rendered

Scroll the mouse wheel over the tabs

Expected behavior

Off screen tabs scroll into view fully visible

Actual behavior

It looks like the tabs aren't being repainted. See the following video (zipped as mp4 is not supported):

wt-tab-scroll.zip
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

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

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

(Actually a duplicate of this closed issue)

Issue Details

Electron Version: 4.0.4

Operating System: Windows 10

Last Known Working Electron version:: n/a

WebContents apparently has a page-title-updated event that isn't documented. We were latching the handler onto the webview, but we're in the process of transitioning from a webview to a BrowserView which doesn't have that event.

I haven't tested this, but I was told that we can latch onto the event on the webcontents (source), but it's not documented.

Can it be?

Issue 2:
Electron Version: 2.0.2

Operating System (Platform and Version): Ubuntu 18.04

Last known working Electron version: 1.8.7

Expected Behavior

Drag and drop should not cause a crash.

Actual behavior

Electron crashes on drag and drop.

To Reproduce

Use my repo and try to drag the image embedded in the app page.

$ git clone https://github.com/alkorgun/electron-2.0.2_dnd_crash_issue
$ cd electron-2.0.2_dnd_crash_issue
$ npm install
$ npm run-script start

Screenshots
Issue 1:
Description of the problem

When creating a THREE.Points() using geometry from a mesh, the vertex colors aren't working and the points are displayed all in white (instead of random colors, as defined in example below).

Interestingly, the points do show random colors when the geometry is not related to a mesh but instead is a new object.

Example here:

jsfiddle

Three.js version

Dev

r99

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

Macbook Pro 2018

Issue 2:
The idea is that my Geometry always has same vertices, but faces are added optionally. However, it randomly decides to draw stuff regardless. Demo here.
Issue 1:
From the CHANGELOG:

Before: query.onChange(() => ...);
After: query.changes.subscribe((iterable) => {});

This throws query.changes.subscribe is not a function in alpha.40: http://plnkr.co/edit/8hcr2WIjmSuwiAV0wEmN?p=preview (see container.ts)

It works with query.changes._subject.subscribe though, so I'm not sure if it's a documentation issue or a bug :)

Issue 2:
So the changelog and the jsdoc of QueryList is misleading, changes does not have the subscribe method.