WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
If this is something that can't be added or isn't going to be supported, it wouldn't be a bad thing to support hierarchical data in forms (adjacency list model / nested set model).

Possibly having the option to force the selection of leafs without children only, etc, etc. Can lead to a very powerful feature. =)

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.4.0-BETA1

Since upgrading to Symfony 3.4.0-BETA1 fom 3.3.10, suddenly all responses started receiving Cache-Control header with private, max-age=10800, no-cache, private value and a response code 304 Not Modified, which means that responses are cached in browsers for 3 hours and only hard reload with Ctrl+R or Shift+R refreshes the page from backend.

git bisect says that the culprit is #24523. And indeed, reverting the commit in that PR fixes the issue for me, meaning Cache-Control header is back to no-cache, private and the response is 200 OK.
Issue 1:
Problem

When going through the "Image tutorial" on Firefox or Edge, when you try downloading the image of the stinkbug, it will only download as a webp file and there is no option to download as png. That is even clicking the "View Image" and trying to save it. Below is trying to save the image in Firefox.

This is a problem for introductory students, trying to use this tutorial and learning how to read tutorials. They believe they are doing something wrong and wouldn't be sure how to convert it. As a more advanced user, I still could not find out how to make it a png through the tutorial page.

Tutorial Link: https://matplotlib.org/tutorials/introductory/images.html

Image Link: https://matplotlib.org/_images/stinkbug.png (may say png but downloading it is as webg)

Operating System: Windows 10 Pro

Suggested Improvement

The image needs to be updated to a png and maybe a direct link to download the image (the latter is not as important).

If there is a way to do that with a module, that might be cool to include, but just an idea. I can provide more information if necessary.

Issue 2:
The image tutorial on matplotlib.org uses this sample image:

https://matplotlib.org/_images/stinkbug.png

and notes that it is a "24-bit RGB PNG image (8 bits for each of R, G, B)". However, further inspection reveals that it is not a 24-bit RGB, but rather an 8-bit grayscale image.

$ curl -s 'https://matplotlib.org/_images/stinkbug.png' | file -
/dev/stdin: PNG image data, 500 x 375, 8-bit grayscale, non-interlaced

However, the source image in the github repository is an RGB image:

$ curl -s 'https://raw.githubusercontent.com/matplotlib/matplotlib/master/doc/_static/stinkbug.png' | file -
/dev/stdin: PNG image data, 500 x 375, 8-bit/color RGB, non-interlaced

I noticed this because when I tried to follow the tutorial on my own machine, I kept on getting this error in line 7:

In [7]: lum_img = img[:,:,0]
IndexError: too many indices for array

This is because imread stores a grayscale image as an ndarray with only two dimensions, not three, as documented here:

For grayscale images, the return array is MxN. For RGB images, the return value is MxNx3. For RGBA images the return value is MxNx4.

https://matplotlib.org/api/_as_gen/matplotlib.pyplot.imread.html

So img.shape ends up as (375, 500) when it should be (375, 500, 3).

Let me know if I should file this here instead:

https://github.com/matplotlib/matplotlib.github.com/issues
Issue 1:
This log is showing frequently if a gif image in Recyclerview is not visible yet. But if gif image is visible the log stop? I use it without specifying it if its asBitmap or asGif because I want to allow the user to be able to put jpg or gif and load it to recyclerview.

Issue 2:
Glide Version/Integration library (if any):3.6.1 with okhttp-integration:1.3.1@aar

Device/Android Version: Nexus 5X, v.6.0.

Issue details/Repro steps/Use case background:

I'm using Glide for displaying images in RecyclerView and in FragmentStatePagerAdapter. On pre M versions of Android everything is going as expected. I did not faced any issues mentioned in https://github.com/bumptech/glide/wiki/Resource-re-use-in-Glide. But on the Android 6 i'm getting this warning when scrolling the RecyclerView or FragmentPages.

W/Bitmap: Called reconfigure on a bitmap that is in use! This may cause graphical corruption!

I put a method onViewRecycled to the RecyclerView adapter, and increased RV pool size. It seems to be helping, but not completely. I'm still have this problem in the FragmentPager, and when I return to the RecyclerView by pressing back button, the warnings are back (I guess that can probably be fixed by increasing RV pool size in onResume).

I'm loading the images from device as bitmaps. Can this be the source of the issue?

Glide load line:

Glide.with(context)
.load(Uri.parse(filepath))
.asBitmap()
.centerCrop()
.diskCacheStrategy(DiskCacheStrategy.ALL)
.into(holder.guideCover);

I love to use Glide because is super fast. The application is running as expected, hoverer I'm a bit nervous of those warning messages.

What I'm doing wrong?
Issue 1:
Running TensorBoard r0.9 results in graph visualizations as expected but all events and histograms that successfully displayed in r0.8 are not.

Has r0.9 introduced a change to the command line that should be used to launch TensorBoard, or to the code needed to generate events and histograms for TensorBoard to display?

Note that neither new summaries and histograms written with recent runs using r0.9 TensorFlow, nor existing ones written (and displayed) in the past, are displayed. Graphs generated with both releases display as expected.

Environment info

Operating System: OS X 10.11.5

TensorFlow: .9.0rc0

Steps to reproduce

tensorboard --logdir ./tflog --purge_orphaned_data

What have you tried?

Reverting to r0.8, which works as it originally did, displaying all events and histograms present in the tflogdirectory provided as the logdir. Reinstalling r0.9, which reproduces the error. A second attempt at reinstalling r0.8 resulted in a TensorBoard that displays jus the menu (no content) and uses a different style (a serif face).

Issue 2:
Since about a week now there seems something wrong with the TensorBoard demo at https://www.tensorflow.org/tensorboard/index.html#events. The graph shows nicely, but neither events nor histograms show up. This problem seems to be only with the demo -- everything shows up just fine when I run the corresponding code (mnist_tensorboard.py) locally.
Issue 1:
Steps to Reproduce

I have a project when I try to run a drive test, I get

[drive-test]
flutter drive -t test_driver/all.dart
Using device Pixel XL.
Starting application: test_driver/all.dart
Initializing gradle...
Resolving dependencies...
Installing build/app/outputs/apk/app.apk...
Running 'gradlew assembleDebug'...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/common/internal/zzq.class

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Gradle build failed: 1

failed with exit code 1

I haven't found a --stacktrace option.

Perhaps

--[no-]trace-startup Start tracing during startup.

from flutter drive -h is meant?

Logs

Run your application with flutter run and attach all the log output.

Run flutter analyze and attach any output of that command also.

Flutter Doctor

(issue376_save_image) $ flutter doctor
[✓] Flutter (on Mac OS X 10.13.1 17B48, locale en-AT, channel alpha)
• Flutter at /Users/zoechi/flutter/flutter
• Framework revision e8aa40eddd (5 weeks ago), 2017-10-17 15:42:40 -0700
• Engine revision 7c4142808c
• Tools Dart version 1.25.0-dev.11.0

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.1)
• Android SDK at /usr/local/opt/android-sdk
• Platform android-27, build-tools 27.0.1
• ANDROID_HOME = /usr/local/opt/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-915-b08)

[✓] iOS toolchain - develop for iOS devices (Xcode 9.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.1, Build version 9B55
• ios-deploy 1.9.2
• CocoaPods version 1.3.1

[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] IntelliJ IDEA Ultimate Edition (version 2017.2.6)
• Flutter plugin version 19.1
• Dart plugin version 172.4343.25

[✓] Connected devices
• Pixel XL • HT69V0203649 • android-arm • Android 8.0.0 (API 26)

Issue 2:
Issue by afandria

Tuesday Aug 11, 2015 at 18:32 GMT

Originally opened as https://github.com/flutter/engine/issues/559

Building a Standalone APK instructions are not clear enough.

It has been inconvenient to only be able to start my Sky app via sky_tool, so I wanted to build my own APK. Unfortunately, the link to the stocks/example does not have a README.md for how to build it. It appears that the BUILD.gn, sky.yaml, and apk/AndroidManifest.xml files are important to the process, but I am not sure what command(s) are needed to produce the APK.
Issue 1:
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

DevTools extension does not persist state. For example, the “Welcome” dialog displays upon every refresh.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:

Open React DevTools in a React app.

Change DevTools settings.

Refresh app in browser.

What is the expected behavior?

Settings should be changed.

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

This is in a corporate install of Chrome 71. It’s possible that it blocks whichever persistence API React DevTools is using (Chrome DevTools itself persists settings successfully).

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

Bug

What is the current behavior?

“Welcome to the new React DevTools!” message blocks the devtool panel every time the it is opened.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:

Open a website with React with DevTools installed.

Open the Component tab.

Dismiss the welcome screen.

Close the devtools and open it again.

What is the expected behavior?

Dismissing the “Welcome to the new React DevTools!” message should be permanent.

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

DevTools: 4.0.5

Chrome: 77.0.3865.35
Issue 1:
Getting the following error upon loading:

Uncaught SyntaxError: Duplicate data property in object literal not allowed in strict mode -- From line ... in .../bundle.js

App runs well in modern browsers on PC/Mac, iOS UIWebview, mobile Safari, Android (also 4.x) Chrome, and Android >5.x.

Consulting this table shows Android 4.4 supports ES5 well and should run React.js applications just fine.

Any ideas?

Issue 2:
React / ReactDOM: 16.4.2

I'm having trouble reproducing this, but I'm raising it in the hope that someone can give me some clues as to the cause. I have a large application which is using Fragment in a few places, like so:

<React.Fragment>
<div>Child 1-1</div>
<div>Child 1-2</div>
</React.Fragment>
<React.Fragment>
<div>Child 2-1</div>
<div>Child 2-2</div>
</React.Fragment>

In everything but Internet Explorer, this renders as you'd expect:

<div>Child 1-1</div>
<div>Child 1-2</div>
<div>Child 2-1</div>
<div>Child 2-2</div>

However, for some reason in Internet Explorer 11, these are being rendered as some weird tags:

<jscomp_symbol_react.fragment16>
<div>Child 1-1</div>
<div>Child 1-2</div>
</jscomp_symbol_react.fragment16>
<jscomp_symbol_react.fragment16>
<div>Child 2-1</div>
<div>Child 2-2</div>
</jscomp_symbol_react.fragment16>

I've tried pausing the code at the transpiled _react.createElement(_react.Fragment) line, and the _react.Fragment export is a string with the same name as the tag (jscomp_symbol_react.fragment16). I think this is just the correct way in which the symbol polyfill works and that React should recognize it as something other than an HTML tag.

What's even weirder is that this only happens sometimes. If two components in my app are using fragments, the first one to render may have the above issue, the second may not. If an affected component re-renders, the rendered DOM will be corrected. I haven't found a solid pattern to this yet.

I have a fairly typical webpack + babel setup, and using the babel-polyfill for symbol support. I'm really not sure what parts of my setup are relevant to this so please let me know if you need any extra info. Again, I'm trying to create a reproduction outside of my application but if anyone can offer me some clues in the meantime I'd be incredibly grateful.
Issue 1:
axios/lib/core/mergeConfig.js

Line 19
in
16b5718

var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];

keys in mergeDeepPropertiesKeys will be merged by utils.deepMerge but utils.deepMerge can only merge objects. Array type field will be converted like {‘0’: 'a', '1': 'b'}, no longer an array.

Issue 2:
Describe the issue

When I read the 'Axios' source code, I found that' utils. deepMerge() 'will convert arrays to objects, which is unreasonable.

https://github.com/axios/axios/blob/master/lib/utils.js#L286

Code

var deepMerge = require('./lib/utils').deepMerge;
var a = {foo: {bar: 111}, hnd: [444, 555, 666]};
var b = {foo: {baz: 456}, hnd: [456, 789]};
console.log(deepMerge(a, b));

result

{ foo: { bar: 111, baz: 456 }, hnd: { '0': 456, '1': 789, '2': 666 } }

Expected behavior

Executing 'utils.deepMerge()' does not change the data type.

{ foo: { bar: 111, baz: 456 }, hnd: [ 456, 789, 666 ] }

Environment:

Axios Version 0.19.0
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.19042.330]
PowerToys version: v0.19.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Requires 2 monitors

1a. May require using a non-admin account

Show taskbar buttons on: Taskbar where window is open

Open Windows Terminal and use FancyZones to "snap" to zone on non-default monitor

Reboot computer (or possibly just sign out and back in)

Open Windows Terminal

Expected behavior

Windows Terminal taskbar button and window will both appear on the non-default monitor. Window will be "snapped" to same zone as before.

Actual behavior

Windows Terminal taskber button appears on the default monitor while the window will be "snapped" to the correct zone on the non-default monitor.

Issue 2:
By default new windows are opened on primary monitor (some application introduce their own special positioning). If we have zone history for some application on secondary monitor, and that monitor is active, application window will be opened there, otherwise we fallback to default windows behavior and that window is opened on primary monitor.

Even if we don't have app history for that application on active monitor, we should open it there, with respect of window width and height.
Issue 1:
Operating system:XP W7-32

用bootstrap框架开发出的页面，在浏览器上下拉，翻页等都能实现，用electron不能,这是为什么，请教

Issue 2:
jQuery contains something along this lines:

if ( typeof module === "object" && typeof module.exports === "object" ) {
// set jQuery in `module`
} else {
// set jQuery in `window`
}

module is defined, even in the browser-side scripts. This causes jQuery to ignore the window object and use module, so the other scripts won't find $ nor jQuery in global scope..

I am not sure if this is a jQuery or atom-shell bug, but I wanted to put this on the web, so others won't search as long as I did.
Issue 1:
I get very very strange numerical inconsistencies like these:

I could reproduce this in ipython and jupyter notebook but only on macOS, not on Linux. Here is a gist with code to reproduce the error (Note that you need to download and unzip a file first and then appropriately copy your value of vec_x to a.) The error also happens for np.dot and possibly other functions.

My system specs:

macOS 10.13.4 (17E202)

Python 3.6.4 :: Anaconda custom (64-bit)

jupyter-notebook 5.4.0

ipython 6.2.1

numpy 1.14.2

gensim 3.4.0

This is a cross post from this jupyter notebook issue (as I really don't know who's the culprit in the end).

Issue 2:
Running numpy.dot normally produces the expected answer:

$ python -c "import numpy ; f=numpy.ones(2,dtype=numpy.float32);print f.dot(f)"
2.0

If I import a PyQt5 module first, I get a different answer:

$ python -c "import PyQt5.QtWidgets ; import numpy ; f=numpy.ones(2,dtype=numpy.float32);print f.dot(f)"
0.0

Other folks appear to have found the issue here, with an implied implication of the Accelerate library being loaded first. I could not discover the resolution they used, and I would prefer one that did not require fixing python import order.
Issue 1:
When using pd.DataFrame.describe, if your percentiles are different only at the 4th decimal place, a ValueError is thrown because the the percentiles that vary at the 4th decimal place become the same value.

In [1]: s = Series(np.random.randn(10))

In [2]: s.describe()
Out[2]:
count 10.000000
mean 0.291571
std 1.057143
min -1.453547
25% -0.614614
50% 0.637435
75% 0.968905
max 1.823964
dtype: float64

In [3]: s.describe(percentiles=[0.0001, 0.0005, 0.001, 0.999, 0.9995, 0.9999])
Out[3]:
count 10.000000
mean 0.291571
std 1.057143
min -1.453547
0.0% -1.453107
0.1% -1.451348
0.1% -1.449149
50% 0.637435
99.9% 1.817201
100.0% 1.820583
100.0% 1.823288
max 1.823964
dtype: float64

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

import pandas

a = pandas.DataFrame({'a': ['0'], 'b': ['str']})

print('---')
print(a)

a.iloc[:, 0] = [int(v) for v in a.iloc[:, 0]]

print('---')
print(a)

b = pandas.concat([a, pandas.DataFrame({'b': ['str2']})], axis=1)

print('---')
print(b)

b.iloc[:, 2] = ['str3']

print('---')
print(b)

Problem description

The issue seems to be that if there is a DataFrame with duplicate column names and mixed dtypes, if I try to replace one column with another value, using iloc, another column with same name is replaced as well.

Expected Output

The final print should be:

a b b
0 0 str str3

And not:

a b b
0 0 str3 str3

It is interesting that if I change concat line to (see renaming of column b to c):

b = pandas.concat([a, pandas.DataFrame({'c': ['str2']})], axis=1)

Then the output is correctly:

a b c
0 0 str str3

Also, if a.iloc[:, 0] = [int(v) for v in a.iloc[:, 0]] is commented out, it works also correctly.

Moreover, the following also work correctly (see the change of 0 column index into [0] column index, and similar for 2 (this latter change is not really necessary to make it work)):

import pandas

a = pandas.DataFrame({'a': ['0'], 'b': ['str']})

print('---')
print(a)

a.iloc[:, [0]] = [int(v) for v in a.iloc[:, 0]]

print('---')
print(a)

b = pandas.concat([a, pandas.DataFrame({'b': ['str2']})], axis=1)

print('---')
print(b)

b.iloc[:, [2]] = ['str3']

print('---')
print(b)

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.6.3.final.0

python-bits: 64

OS: Linux

OS-release: 4.13.0-46-generic

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: None

LANG: en_US.UTF-8

LOCALE: en_US.UTF-8

pandas: 0.23.3

pytest: None

pip: 18.0

setuptools: 40.0.0

Cython: None

numpy: 1.15.0

scipy: None

pyarrow: None

xarray: None

IPython: None

sphinx: None

patsy: None

dateutil: 2.7.3

pytz: 2018.5

blosc: None

bottleneck: None

tables: None

numexpr: None

feather: None

matplotlib: None

openpyxl: None

xlrd: None

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: None

sqlalchemy: None

pymysql: None

psycopg2: None

jinja2: None

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None
Issue 1:
This was found during training using the core developer training dataset:

Getting all the term suggestions for framework

GET stack/_suggest
{
"mysuggest" : {
"text" : "framework",
"term" : {
"field" : "title",
"suggest_mode" : "always",
"sort" : "score",
"size" : 20
}
}
}

yields:

[{
"text": "frameworks",
"score": 0.8888889,
"freq": 16
}, {
"text": "framework2",
"score": 0.8888889,
"freq": 1
}, {
"text": "framwork",
"score": 0.875,
"freq": 5
}, {
"text": "framewok",
"score": 0.875,
"freq": 2
}, {
"text": "famework",
"score": 0.875,
"freq": 1
}, {
"text": "framework's",
"score": 0.7777778,
"freq": 1
}, {
"text": "freamwork",
"score": 0.7777778,
"freq": 1
}]

if we then pick any of the of these terms, except the most popular frameworks and feed it to the term suggester using the missing option:

GET stack/_suggest
{
"mysuggest" : {
"text" : "framwork",
"term" : {
"field" : "title",
"suggest_mode" : "missing",
"sort" : "score",
"size" : 20
}
}
}

We still get back suggestions:

[{
"text": "framework",
"score": 0.875,
"freq": 197
}, {
"text": "frameworks",
"score": 0.75,
"freq": 9
}, {
"text": "framewok",
"score": 0.75,
"freq": 1
}, {
"text": "framework2",
"score": 0.75,
"freq": 1
}]

Only for the most popular term do we get back no suggestions.

For full reference here is how framwork gets analyzed:

GET stack/_analyze?field=title&text=framwork

{
"tokens": [
{
"token": "framwork",
"start_offset": 0,
"end_offset": 8,
"type": "<ALPHANUM>",
"position": 0
}
]
}

Issue 2:
I have found a few odd cases where the phrase suggester with suggest_mode: "missing" generates a suggestion even though the query returns results. I am querying across two indexes but the query term only exists in one of the indexes. I get the search results I expect, but I do not expect to get a suggestion.

I am trying to come up with a curl recreation but I haven't been able to reproduce it yet in a smaller corpus.

I believe what is happening is that the phrase suggestions are getting merged together in the same way the query results are merged together across multiple indexes. If I have query results from test_1 and no results from test_2, then I expect to see results from test_1. But if I have a suggestion from test_1 and no suggestion from test_2 (due to suggest_mode: "missing"), I do not expect to see a suggestion.
Issue 1:
@fchollet and other kerasors,

We all know that if we are dealing with large scale of data such as ImageNet, we could write a customized generator which produces batch data (often as numpy.array) from disk. Then we could train our model with model.fit_generator(). But, if we want to use ImageDataGenerator to do the online data augmentation at the same time, what is the simplest way to implement? Note that I would like to use its flow() method instead of flow_from_directory() method.

Issue 2:
Hello everyone, I have a tricky programming question. I want to implement an exponentially moving average of centroids on hidden layers inputs activations of an AutoEncoder to maximize ICC over several class in keras

(adding a loss penalizing this term).

It would require to know the final output of the classification for calculating the centroids. I could do it by adding the output of this layer as an extra output of neural network. But it would duplicate data. And it won t be nice to work with in the case if I haven t to apply this on any hidden layers.

Do you have any ideas how to do so ? Thank you