WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hello guys! Have an issue with image displaying.

here is my onBindViewHolder code

public void onBindViewHolder(ImagesViewHolder holder, int position) {
ImageEntity image = list.get(position);
ImageView imageView = holder.imageView;
imageView.setImageDrawable(null);
Glide.with(context)
.load(image.simpleUrl)
.centerCrop()
.diskCacheStrategy(DiskCacheStrategy.ALL)
.listener(new RequestListener<String, GlideDrawable>() {
@Override
public boolean onException(Exception e, String model, Target<GlideDrawable> target, boolean isFirstResource) {
Log.e("IMAGE_EXCEPTION", "Exception " + e.toString());
return false;
}

@Override
public boolean onResourceReady(GlideDrawable resource, String model, Target<GlideDrawable> target, boolean isFromMemoryCache, boolean isFirstResource) {
return false;
}
})
.into(imageView);
}

but after I scroll recyclerView up I got this

Please help me, thanks

Issue 2:
Glide sometimes doesn't load image

please help, already have searched other issues but it has not helped.

@Override
public void onBindViewHolder(final ImagesViewHolder holder, final int i) {

String url;
if (category_list == null) {
url = Utils.getImageUrl(list.get(i).getId(), list.get(i).getFormat());

holder.thumbnail.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (MainActivity.isDrawerOpened()) {
return;
}
FSAdController.checkFsTriger(context);
GalleryActivity.loadedNumber = GalleryFragment.THIMBNAILS_NUMBER;
Intent intent = new Intent(context, GalleryActivity.class);
intent.putExtra("position", i);
GalleryActivity.setImageList(list);
GalleryActivity.templateURL = template;
context.startActivity(intent);
}
});
holder.pannel.setVisibility(View.GONE);
} else {
url = category_list.get(i).getImage_url();
holder.thumbnail.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
((MainActivity) context).gotoCategoryHolder(i);
}
});
}

Glide
.with(context)
.load(url)
.asBitmap()
.diskCacheStrategy(DiskCacheStrategy.ALL)
.into(new BitmapImageViewTarget(holder.thumbnail) {
@Override
public void onResourceReady(Bitmap bitmap, GlideAnimation anim) {
super.onResourceReady(bitmap, anim);
if (category_list != null) {
String panelColor = "#" + Integer.toHexString(Utils.getDominantColor(bitmap)).substring(2).toUpperCase();

holder.pannel.setBackgroundColor(Color.parseColor(panelColor));

String textColor = "#" + Integer.toHexString(Utils.
getContrastColor(panelColor.substring(1, panelColor.length())))
.substring(2).toUpperCase();

holder.nameView.setTextColor(Color.parseColor(textColor));
holder.nameView.setText(category_list.get(i).getName());
}
}
});
}
Issue 1:
When a dashboard is exported not all the associated datasets are exported.

The datasets used by all the charts are exported but the datasets used only in native filters are missing in the exported zip file.

Expected results

The dashboard export should contain all the datasets used in the dashboard including the datasets used by native filters.

Actual results

The dashboard export contains the datasets used by the charts but is missing the datasets that are used only by native filters.

How to reproduce the bug

Go to a dashboard that uses native filters and has some charts. The native filters must use a dataset that is not used by any of the other charts

Export the dashboard

Unzip the exported zip file

Expand the datasets directory and notice that the datasets used by the charts are present but the dataset used by the filters are missing

Environment

superset version: 1.3 branch

Python version: Python 3.7.9

node.js version: 14

Checklist

Make sure to follow these steps before submitting your issue - thank you!

I have checked the superset logs for python stacktraces and included it here as text if there are 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.

Issue 2:
Column selection is not saved in export file, and saving dataset id in export file doesn't seem to be a correct approach

Expected results

Import a dashboard with native filter to a new workspace should work seemlessly.

Actual results

Selected column is not present in the export file, resulting in new dashboard native filter error with missing column selection.

Saving dataset id in the export file is an incorrect approach. The dataset id in a different workspace is different. In my example, dataset id =29 is already taken in the new workspace, this result in the imported dashboard showing the wrong dataset selection in native filter.

Screenshots

How to reproduce the bug

Create a dashboard

Create a value native filter and select dataset and column

Export this dashboard

Import this dashboard to a new workspace
Issue 1:
I wrote a script and tried to execute it. The python interpreter stopped the execution with a traceback saying that

Traceback (most recent call last):
File ".\main.py", line 3, in <module>
import lyricsgetter
File "C:\Users\smart\Documents\Projects\telegram-lyrics-bot\lyricsgetter.py", line 1, in <module>
import requests
File "C:\Users\smart\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\__init__.py", line 53, in <module>
major, minor, patch = urllib3_version
ValueError: not enough values to unpack (expected 3, got 1)

I then tried adding a print(urllib3_version) before line 53 in __init__.py.

Expected Result

print(urllib3_version) should have returned the version, and my script should have executed fine.

Actual Result

print(urllib3_version) printed ['dev'] and stopped the execution of my script with a ValueError

Reproduction Steps

import requests

System Information

$ python -m requests.help

['1', '21', '1']
{
"chardet": {
"version": "3.0.4"
},
"cryptography": {
"version": ""
},
"implementation": {
"name": "CPython",
"version": "3.6.0"
},
"platform": {
"release": "10",
"system": "Windows"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.17.3"
},
"system_ssl": {
"version": "100020af"
},
"urllib3": {
"version": "1.21.1"
},
"using_pyopenssl": false
}

Issue 2:
When using requests, I've just upgraded and I'm having the following error:

import requests as rq

File "C:\Users\_HOME_\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\__init__.py", line 53, in <module>

major, minor, patch= urllib3_version

ValueError: not enough values to unpack (expected 3, got 1)
Issue 1:
Shortcut Guide will not work after sometime of launching PowerToys. I have to restart PowerToys to make it work again.

Issue 2:
Environment

Microsoft Windows [Version 10.0.18363.836]

PowerToys [Version v0.17.0]

Shortcut Guide

Steps to reproduce

When I hold [Win], Shortcut Guide is not appear.

Sometimes it doesn't work suddenly.

This bug sometimes fix suddenly or doesn't fix until reboot windows.

Expected behavior

Hold [Win] then appear Shortcut Guide.

Actual behavior

Hold [Win] but there is no actions.

Release [Win] then appear Start menu.

It doesn't help me to reboot PowerToys or Toggle ShortcutGuide.

Other apps (e.g. Window Walker) work well, but FancyZone doesn't work sometimes at the same time.

Screenshots

It is my setting.
Issue 1:
I don't think that the spell-check package is doing anything wrong here, so I assume that this visual bug is due to decorations stretching across soft-wrap boundaries when maybe they shouldn't:

(As a side note, I'm impressed that supercalifragilisticexpialidocious is in the OS X dictionary. I had to come up with another long nonsense word 😆)

I would expect that "absafragginglutely" would be decorated, but not the space between "absafragginglutely" and the previous instance of the word "testing".

Atom v0.166.0-25b44ce on Mac OS X 10.10.1

/cc @benogle

Issue 2:
And when I make the window wider again:

'global':
'exception-reporting':
'userId': '84c65616-dd5b-347b-3d53-50153c0eb9a2'
'welcome':
'showOnStartup': false
'core': {}
'editor':
'invisibles': {}
'spell-check': {}

spell-check 0.45.0
atom 0.165.0
Issue 1:
This CSS line is incorrect:

.navbar-nav.navbar-right:last-child{margin-right:-15px}

Because the navbar-right floats right, the last child is actually the first menu item within the menu:

[last-child] [middle child] [first child]

Therefore, the left menu option sits too close to the middle menu option. Instead, the CSS should be:

.navbar-nav.navbar-right:first-child{margin-right:-15px}

This makes the item all the way to the right be closer to the edge and spaces all menu items evently.

Issue 2:
If you have a navbar with navbar-fixed-top, and items in a navbar-right, the last item hangs over the container by 15px. You can see this with the example on the getbootstrap site: http://getbootstrap.com/examples/navbar-fixed-top/
Issue 1:
how use babel 7 version into ecmascript 7 configuration ?

example my -> .babelrc -->

{
"plugins":[
//.....
],
"presets": [
"@babel/env",
"@babel/flow",
"@babel/preset-react"
]
}

Issue 2:
Issue originally reported by @rauschma in babel/babel-preset-env#381

I’m not sure how much that would be used in practice, but for some experiments and tests, it would be nice if one could specify an ES version to target.

Examples:

"targets": { "ecmascript": "2015" }
"targets": { "ecmascript": "5" }
Issue 1:
Describe the workflow you want to enable

To be able to use metrics.plot_confusion_matrix in the same way as metrics.confusion_matrix

Describe your proposed solution

To add an optional y_pred argument to metrics.plot_confusion_matrix

Additional context

I find it a bit confusing and incoherent that confusion_matrix supports a y_pred argument but plot_confusion_matrix does not. I do not know the rationale behind the actual implementation, but I was expecting these two functions from the same package to have a similar interface.

Issue 2:
The signature of plot_confusion_matrix is currently:

sklearn.metrics.plot_confusion_matrix(estimator, X, y_true, labels=None, sample_weight=None, normalize=None, display_labels=None, include_values=True, xticks_rotation='horizontal', values_format=None, cmap='viridis', ax=None)

The function takes an estimator and raw data and can not be used with already predicted labels. This has some downsides:

If a confusion matrix should be plotted but the predictions should also be used elsewhere (e.g. calculating accuracy_score) the estimation has to be performed several times. That takes longer and can result in different values if the estimator is randomized.

If no estimator is available (e.g. predictions loaded from a file) the plot can not be used at all.

Suggestion: allow passing predicted labels y_pred to plot_confusion_matrix that will be used instead of estimator and X. In my opinion the cleanest solution would be to remove the prediction step from the function and use a signature similar to that of accuracy_score, e.g. (y_true, y_pred, labels=None, sample_weight=None, ...). However in order to maintain backwards compatibility, y_pred can be added as an optional keyword argument.

TODO:

Introduce the class methods for the currently existing plots:

ConfusionMatrixDisplay #18543

PrecisionRecallDisplay #20552

RocCurveDisplay #20569

DetCurveDisplay #19278

PartialDependenceDisplay. For this one, we don't want to introduce the from_predictions classmethod because it would not make sense, we only want from_estimator.

For all Display listed above, deprecate their corresponding plot_... function. We don't need to deprecate plot_det_curve because it hasn't been released yet, we can just remove it.

for new PRs like #17443 and #18020 we can implement the class methods right away instead of introducing a plot function.
Issue 1:
hi

please provide capability of defining css namespace for all css and js that render html or use classes for example:

change class name for modal

.modal-header

to

.ns-modal-header

for inner example user can define namespace class for widgets in your site: Customize section

then user can change the ns to unique name to preventing css name conflict with his css files.

Issue 2:
To prevent random mixing of styles maybe we should use prefix?

For example, .tb-span6 or .tb-row instead .span6 or .row?

.menu, .navbar is so common class names so it may a little confusing without prefix
Issue 1:
Hello,

After I did explore on framework I found playwright one of the best fit for UI test automation.

my requirement is like wanted to covet test automation on desktop browser[real browsers] , mobile browsers ,mobile app on android and iOS, is there any support for this requirement ?

I know it support browser level emulation only. if I missed please help me.

Issue 2:
Is there any way to connect to a device, start a browser (e.g. chromium instance on Android) and run the tests?

If not, what is missing at this point to be able to use it on both Android and iOS?

Note from maintainers:

Please refer to the https://playwright.dev/docs/next/api/class-android for

instructions on how to use Playwright with Chrome for Android, Android

WebViews and Android itself
Issue 1:
Description

Code to reproduce and compare to scipy below.

I think there might be a bug map_coordinates when using the default arguments of mode='constant' and cval=0.0.

The function seems to be doing some sort of extrapolation in beyond one of the corners of the image even though it should just return the constant 0.0. Whats more, this seems to happen only on one corner.

Related to #5687, but with different behavior in different corners.

import os
# os.environ['CUDA_VISIBLE_DEVICES'] = '' # Doesnt impact the bug

import jax
import jax.numpy as jnp
import scipy as sp

kernel = jnp.ones((8, 8), dtype=jnp.float32)
in_pos = jnp.array([[0., 0.], [4., 4.], [7., 7.], [7.01, 7.01], [7.5, 7.5], [-7.5, 7.5], [7.5, -7.5], [-7.5, -7.5]])
out = jax.scipy.ndimage.map_coordinates(kernel, in_pos.T, order=1, mode='constant', cval=0.0)
print(out) # [1. 1. 1. 0.98009956 0.25 0. 0. 0. ]

out2 = sp.ndimage.map_coordinates(kernel, in_pos.T, order=1)
print(out2) # [1. 1. 1. 0. 0. 0. 0. 0.]

What jax/jaxlib version are you using?

0.4.1

Which accelerator(s) are you using?

CPU and GPU

Additional system info

Ubuntu 22.05

NVIDIA GPU info

No response

Issue 2:
jax.scipy.ndimage.map_coordinates behaves differently than scipy.ndimage.map_coordinates when using mode="constant". In this example we can see that 2.9 which should be as "off the array" as 3, produces a different output which is in fact wrong (1) but should in fact produce what the original implementation produces (0, which is cval).

from scipy import ndimage
import jax

import jax.numpy as jnp

src = jnp.array([5, 1, 6]) # Fails!
# src = jnp.array([5, 1, 5]) # Doesn't fail

# Since 2.9 is first jnp.floored, this gives "2". Which is a valid index.
coords = [[2, 3, 2.9]]

def scipy_map_coordinates():
return ndimage.map_coordinates(src, coords, order=1, mode="constant")

def jax_map_coordinates():
return jax.scipy.ndimage.map_coordinates(
src, coords, order=1, mode="constant")

print(scipy_map_coordinates())
print(jax_map_coordinates())

assert jnp.array_equal(scipy_map_coordinates(), jax_map_coordinates())

Yielding:

[6 0 0]
[6 0 1]
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-6-b13f0479754d> in <module>()
20 print(jax_map_coordinates())
21
---> 22 assert jnp.array_equal(scipy_map_coordinates(), jax_map_coordinates())

AssertionError:

CC: @claudiofantacci
Issue 1:
Hi, For documentation purpose and project release process we need the Export control classification number(ECCN) for OpenCV if it applies. Can you please let me know the ECCN ?

Issue 2:
We are concerned about the authority of OpenCV as recently arised trade issues between US and the rest of the world (especially China). We are looking forward to get your official answers for the questions below:

Is the OpenCV project subject to U.S. Export Administration Regulations (EAR) and classified under ECCN 0D521? Or such AI software is subject to EAR, but not classified under ECCN 0D521?

Is U..S. Bureau of Industry and Security license required for exporting this project to China？
Issue 1:
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Build script fails

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

if (false) {
import('./module'); // <-- Fails to transform this or remove this
}

What is the expected behavior?

Probably transforming this expression as well and letting uglify to get rid of it later.

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

node -v
> v8.1.3

I came across this issue because we use feature flags at build time that include specific code if feature is enabled.

Issue 2:
Bug

What is the current behavior?

In case of development environment such code

if (process.env.NODE_ENV === 'testing') {
import('somemodule');
}

is transformed by webpack 2.5.1 into this

if (false) {
import('somemodule');
}

which leads to Uncaught SyntaxError: Unexpected token import error in the latest Chrome.

Node.JS 7.10.0, babel 6.24.1 has syntax-dynamic-import plugin
Issue 1:
Expected Behavior

Docs are accurate.

Current Behavior

Docs are inaccurate.

Steps to Reproduce (for bugs)

Go here: https://github.com/zeit/next.js#importing-css--sass--less-files

Click any of the three css/sass/less links

Happy to put together a quick PR if someone can tell me where the relevant branch is located.

Issue 2:
Examples bug report

Example name

with-polyfills

Describe the bug

with-polyfills shows how to polyfill missing features prior to initialization of Next app. However, I would like to load polyfills only for the missing features using the dynamic import.

For example IntersectionObserver is supported widely in the latest versions of browsers, so it's usually not necessary to load the intersection-observer polyfill. Thus I would like to import the polyfill only when the feature is missing like this:

// client/polyfills.js

async function loadPolyfills() {
if (typeof window.IntersectionObserver === 'undefined') {
await import('intersection-observer')
}
}
export default loadPolyfills()

When I do that the application crashes when browser attempts to load the polyfill with the following error:

Unhandled Rejection (ChunkLoadError): Loading chunk 0 failed.
(error: http://localhost:3000/static/chunks/0.js)

Apparently Webpack points to the chunk in a wrong location, since the chunk is available in _next directory, i.e. http://localhost:3000/_next/static/chunks/0.js

To Reproduce

I have prepared a repository with reproduction of the issue. The feature detection is commented out to reproduce the behavior in any browser.

Download or clone https://github.com/jnv/next-with-polyfills-dynamic-import

Install dependencies with yarn

Start application with yarn dev

Go to http://localhost:3000/

See the error

Expected behavior

Browser loads the chunk without error, before Next initialization.

Screenshots

System information

OS: macOS

Browser: does not apply

Version of Next.js: 9.0.2
Issue 1:
in the example on getbootstrap, when one opens the modal, the whole page contents gets rocked to the left. I suppose that is not the meaning and it is a bug?

launch demo modal to check it out: http://getbootstrap.com/javascript/#modals

Kind regards,

J.

Issue 2:
When launching the modal component (http://getbootstrap.com/javascript/#modals) the entire content will slightly move to the left on mac OS (haven't tried it on windows yet). With the active modal the scrollbar seem to disappear, while the content width still changes.

You can observer the problem on the bootstrap page
Issue 1:
I wonder if you could combine a built-in support for RTL languages.

You can require users to add the class rtl the body tag and accordingly change the necessary parts in the system.

Example body tag:

< body class="rtl" >

Example css rule:

body.rtl {

direction: rtl;

}

body.rtl .navbar .nav > li {

float: right;

}

Issue 2:
Would be great to have support for right-to-left languages.
Issue 1:
I can correctly install this (most of the time) but executing npm update I get the following error; I am guessing there is something wrong in the package.json or similar. If I figure out what it is I'll add a message here, but if someone knows off hand that would be awesome.

npm http 404 https://registry.npmjs.org/bootstrap/2.3.1
npm ERR! Error: version not found: 2.3.1 : bootstrap/2.3.1
npm ERR! at RegClient.<anonymous> (/Users/andy/nvm/v0.8.22/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:268:14)
npm ERR! at Request.init.self.callback (/Users/andy/nvm/v0.8.22/lib/node_modules/npm/node_modules/request/main.js:120:22)
npm ERR! at Request.EventEmitter.emit (events.js:99:17)
npm ERR! at Request.<anonymous> (/Users/andy/nvm/v0.8.22/lib/node_modules/npm/node_modules/request/main.js:648:16)
npm ERR! at Request.EventEmitter.emit (events.js:126:20)
npm ERR! at IncomingMessage.Request.start.self.req.self.httpModule.request.buffer (/Users/andy/nvm/v0.8.22/lib/node_modules/npm/node_modules/request/main.js:610:14)
npm ERR! at IncomingMessage.EventEmitter.emit (events.js:126:20)
npm ERR! at IncomingMessage._emitEnd (http.js:366:10)
npm ERR! at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
npm ERR! at CleartextStream.socketOnData [as ondata] (http.js:1485:20)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>

npm ERR! System Darwin 12.3.0
npm ERR! command "/Users/andy/nvm/v0.8.22/bin/node" "/Users/andy/nvm/v0.8.22/bin/npm" "update"
npm ERR! cwd /Users/andy/prototype/prototypes/prototype1
npm ERR! node -v v0.8.22
npm ERR! npm -v 1.2.14

Issue 2:
The twitter-bootstrap module on npm is still at version 2.1.1.

https://npmjs.org/package/twitter-bootstrap
Issue 1:
foo.ts:

export const a = 1
export const b = 2

bar.ts:

// error!
export * as foo from './foo'

// ok
import * as foo1 from './foo'
export const foo = foo1

Issue 2:
The ES7 proposal is available at: https://github.com/leebyron/ecmascript-more-export-from

The additions include:

reexporting default:

// proposed:
export v from "mod";

// symmetric to:
import v from "mod";
export {v};

reexporting as sub-module:

// proposed:
export * as ns from "mod";

// symmetric to:
import * as ns from "mod";
export {ns};

also allowing combining

// proposed
export v, {x, y as w} from "mod"
// symmetric to
import v, {x, y as w} from "mod"
As well as

// proposed
export v, * as ns from "mod"
// symmetric to
import v, * as ns from "mod"
Issue 1:
Original ticket http://projects.scipy.org/numpy/ticket/2133 on 2012-05-16 by trac user mwtoews, assigned to unknown.

I see good overflow warnings operations on int32 scalars, but not for int32 arrays:

import numpy as np

# Case 1: Good, proper data types are used to avoid overflow
np.array([1], dtype=np.long) + np.int32(2**31 - 1)
# array([2147483648], dtype=int64)

# Case 2: Bad, overflow happens and no warning raised
np.array([1], dtype=np.int32) + np.int32(2**31 - 1)
# array([-2147483648])

# Case 3: Similar bad, array vs. array
np.array([1], dtype=np.int32) + np.array([2**31 - 1], dtype=np.int32)
# array([-2147483648])

# Case 4: Better, a warning is raised
np.int32(1) + np.int32(2**31 - 1)
# __main__:1: RuntimeWarning: overflow encountered in long_scalars
# -2147483648

Here is what I can determine between operator op between arrays or scalars:

array-long op scalar-32 = array-long, all good

array-32 op scalar-32 = array-32, no overflow warning!

array-32 op array-32 = array-32, no overflow warning!

scalar-32 op scalar-32 = scalar-32, helpful overflow warning

I would expect an overflow runtime warning for cases 2 and 3, similar to case 4.

These results are with NumPy 1.6.1/Python 2.5.1 on Windows 32-bit, which I installed from numpy-unoptimized-1.6.1.win32-py2.5.exe from [http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy ~gohlke], but are reproducible on 64-bit Linux.

Issue 2:
Simple demo:

In [1]: np.uint8(0) - np.uint8(1)
RuntimeWarning: overflow encountered in ubyte_scalars
Out[1]: 255

In [2]: np.uint8(0)[...] - np.uint8(1)[...]
Out[2]: 255

Should we even warn at all for unsigned integers?