WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
System information

OpenCV => 4.5.5

Operating System / Platform => Windows 64 Bit lstc

opencv dll Compiler => MSVC 2017

Devlop IDE Compiler : Qt 6.2.4 MSVC 2019 64Bit

Note: Binary files (dll) obtained using the exe installation package downloaded from the official website

Detailed description

Use the cv::VideoCapture::get() function with a parameter value of cv::CAP_PROP_POS_MSEC to get the time of the current video frame.

The time value obtained on some frames at the end of the video is always 0, and these frames further ahead are normal time values.

I've tried some videos and it's always like this, my local videos are very easy to reproduce this issue.

Issue 2:
OpenCV => 4.1.1

Operating System / Platform = OpenWrt

Compiler => GCC9 + uClibc-ng

uClibc-ng does not export several C++11 functions into the std namespace. As a result, I currently use this patch:

diff --git a/modules/gapi/include/opencv2/gapi/core.hpp b/modules/gapi/include/opencv2/gapi/core.hpp
index a38d747..f01c0bd 100644
--- a/modules/gapi/include/opencv2/gapi/core.hpp
+++ b/modules/gapi/include/opencv2/gapi/core.hpp
@@ -392,8 +392,8 @@ namespace core {
{
GAPI_Assert(fx != 0. && fy != 0.);
return in.withSize
- (Size(static_cast<int>(std::round(in.size.width * fx)),
- static_cast<int>(std::round(in.size.height * fy))));
+ (Size(static_cast<int>(round(in.size.width * fx)),
+ static_cast<int>(round(in.size.height * fy))));
}
}
};
diff --git a/modules/gapi/include/opencv2/gapi/own/saturate.hpp b/modules/gapi/include/opencv2/gapi/own/saturate.hpp
index 207dcde..d716643 100644
--- a/modules/gapi/include/opencv2/gapi/own/saturate.hpp
+++ b/modules/gapi/include/opencv2/gapi/own/saturate.hpp
@@ -81,8 +81,8 @@ static inline DST saturate(SRC x, R round)
// explicit suffix 'd' for double type
inline double ceild(double x) { return std::ceil(x); }
inline double floord(double x) { return std::floor(x); }
-inline double roundd(double x) { return std::round(x); }
-inline double rintd(double x) { return std::rint(x); }
+inline double roundd(double x) { return round(x); }
+inline double rintd(double x) { return rint(x); }

} //namespace own
} //namespace gapi
diff --git a/modules/gapi/src/backends/fluid/gfluidcore.cpp b/modules/gapi/src/backends/fluid/gfluidcore.cpp
index 49d6d2e..e1821b8 100644
--- a/modules/gapi/src/backends/fluid/gfluidcore.cpp
+++ b/modules/gapi/src/backends/fluid/gfluidcore.cpp
@@ -389,7 +389,7 @@ static void run_arithm_s1(uchar out[], const float in[], int width, const float
cv::util::suppress_unused_warning(v_op);
for (; w < width; w++)
{
- out[w] = saturate<uchar>(s_op(in[w], scalar[0]), std::roundf);
+ out[w] = saturate<uchar>(s_op(in[w], scalar[0]), roundf);
}
}

@@ -1954,7 +1954,7 @@ GAPI_FLUID_KERNEL(GFluidCartToPolar, cv::gapi::core::GCartToPolar, false)
{
float x = in1[l];
float y = in2[l];
- float magnitude = std::hypot(y, x);
+ float magnitude = hypot(y, x);
float angle_rad = std::atan2(y, x);
float angle = angleInDegrees?
angle_rad * static_cast<float>(180 / CV_PI):
Issue 1:
Other editors provide a shortcut to duplicate the current selection, or if nothing is selected duplicate the whole line (actually the actions of copyLinesDownAction and copyLinesUpAction).

Issue 2:
From @guillermooo on November 8, 2015 12:55

From the docs, it seems that extensions need to include the key bindings in the manifest proper. For extensions that will contribute a lot of key bindings, it may be more convenient to include files of key binding definitions.

Example:

...
"contributes": {
"keybindings": [{
"command": "extension.sayHello",
"key": "ctrl+f1",
"mac": "cmd+f1",
"when": "editorTextFocus"
},
{ "include": "motions.json" },
{ "include": "actions.json" }
]
}
...

Copied from original issue: Microsoft/vscode-extensionbuilders#82
Issue 1:
Include an option to toggle between whether the search bar retains the last search input or clears when it is brought up consecutively.

Issue 2:
📝 Provide a description of the new feature

I am not sure if it is already possible and I just cannot find it or if it is not possible yet, but I would really like the option to be able to lock the search bar of the PowerToysRun function. So that will open always on the location on the desktop. Now, when I drag the bar down for example and close it, it will have jumped back the next time I open it.
Issue 1:
The command we use in CI

msbuild PowerToys.sln /p:Configuration=Release /p:Platform=x64

duplicates some resources used by PT Run and ColorPicker, saving them in x64\Release\ instead of just saving them in x64\Release\modules\%module_name%\

Issue 2:
Summary of the new feature/enhancement

I run an ultra-wide monitor and have previously used another utility to allow me to create custom Aero Snap-like functionality. That utility has what I can best describe as overlapping zones, such that I'd have the ability to do what FancyZones would describe as 2 columns (each 50% wide) as well as a 3 column Priority view (25%, 50%, 25%) simultaneously. The separation between where I drug and the size of the zone allowed this functionality to exist. To accomplish this in FancyZones I'm finding myself regularly switching my layout between 2 and 3 columns which I found tedious. I attempted to create a custom layout, but with the overlapping zones there was no way to land in the zones that were behind another.

Proposed technical implementation details (optional)

Consider separation of the drag target and the zone definition to allow for zones to be defined as overlapping one another so that more complex layouts can be created.
Issue 1:
Dropdown menu is not completely visible on mobile. I tried adding z-index but it still doesn't.

Here is the JSFiddle: http://jsfiddle.net/HdgtL/3/

Issue 2:
If i put a dropdown inside a table cell, and i put the table in a div.table-responsive, and I put everything inside a panel, the dropdown of the last row is invisible due to y-overflow: hidden; at low resolutions

If I manually set the y-overflow to scroll, the problem is resolved in Chrome (desktop), but my Android browser, even though showing a vertical scroll bar upon opening the dropdown, doesn't want to scroll down to show the options.
Issue 1:
Environment

Windows build number: [run "ver" at a command prompt]
PowerToys version: v0.19.0
PowerToy module for which you are reporting the bug (if applicable): installer

Steps to reproduce

This has occurred on both v0.18.2 and v0.19.0

When installing the program, it pauses about 2/3 through the validation phase near completion, then pops up a request to close one or more applications before it can complete. On 18.2 it requested closure of Outlook, Teams and Nitro Pro. On 19.0 it requested closure of Teams. I had to go to Task Manager/Details and close all Teams processes, because closing the application in the Taskbar did not suffice to clear the open/running processes in my runtime environment.

Expected behavior

Expect program to install without requiring manual closure of other, open apps.

Actual behavior

installer pauses and waits on me with a Retry button for requested apps to be closed.

Screenshots

Issue 2:
Windows build number: 10.0.19041.264
PowerToys version: v0.18.1
PowerToy module for which you are reporting the bug: auto update

The update program requires to disable the Microsoft Store, Microsoft Text Input Application, Mail which are run at background. I can manually kill the process for Microsoft Store and Mail but Microsoft Text Input Application. However, I can just ignore this to continue. Just unsure does this effect anything.
Issue 1:
Currently, we are able to upload individual file using setInputFilesmethod . Similarly, we are looking for a method to upload a folder like setInputFolder. This will be useful for many projects.

Please let me know if further information is required.

Issue 2:
The following test fails in Chromium:

const response = await page.goto(server.EMPTY_PAGE);
expect(response.ok()).toBe(true);
expect(response.request().headers()['referer']).toBe(server.EMPTY_PAGE);

The headers look like this:

[
{
"name": "Upgrade-Insecure-Requests",
"value": "1"
},
{
"name": "User-Agent",
"value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/96.0.4645.0 Safari/537.36"
},
{
"name": "referer",
"value": "http://localhost:8907/empty.html"
},
{
"name": "Referer",
"value": "http://localhost:8907/empty.html"
}
]
Issue 1:
I don't know if its a known issue but *if and switch are not working in dart2js (work on Dartium as expected), Chrome console throws an Invalid argument(s) error.

example app:

import 'package:angular2/angular2.dart';

// These imports will go away soon:
import 'package:angular2/src/reflection/reflection.dart' show reflector;
import 'package:angular2/src/reflection/reflection_capabilities.dart'
show ReflectionCapabilities;

void main() {
// Temporarily needed.
reflector.reflectionCapabilities = new ReflectionCapabilities();
bootstrap(App);
}

@Component(selector: 'app')
@View(template: '<p *if="show">test</p>', directives: const [If])
class App {
bool show = true;
}

Produces the following error:

Uncaught Uncaught Error: Invalid argument(s): "if" is not a valid (qualified) symbol name
Stack Trace:
Invalid argument(s): "if" is not a valid (qualified) symbol name
at dart.wrapException (http://localhost:63342/ng2_bug_if/web/main.dart.js:3963:15)
at dart.Symbol.static.Symbol_validatePublicSymbol (http://localhost:63342/ng2_bug_if/web/main.dart.js:23817:17)
at ReflectionCapabilities.dart.ReflectionCapabilities.setter$1 (http://localhost:63342/ng2_bug_if/web/main.dart.js:87285:73)
at Reflector.dart.Reflector.setter$1 (http://localhost:63342/ng2_bug_if/web/main.dart.js:17795:44)
at dart.setterFactory (http://localhost:63342/ng2_bug_if/web/main.dart.js:20821:71)
at ElementBinderBuilder.dart.ElementBinderBuilder.bindProperty$2 (http://localhost:63342/ng2_bug_if/web/main.dart.js:21158:53)
at ViewSplitter.dart.ViewSplitter._parseTemplateBindings$2 (http://localhost:63342/ng2_bug_if/web/main.dart.js:19214:44)
at ViewSplitter.dart.ViewSplitter.process$3 (http://localhost:63342/ng2_bug_if/web/main.dart.js:19181:16)
at CompileControl.dart.CompileControl.internalProcess$4 (http://localhost:63342/ng2_bug_if/web/main.dart.js:18026:14)
at CompilePipeline.<anonymous> (http://localhost:63342/ng2_bug_if/web/main.dart.js:18186:60)

Tested on alpha 20

Issue 2:
This came up originally in #1267 where the Compiler was requesting a setter for if from the template defined on App in this file.

Flagging @yjbanov here since he has more context than I do.
Issue 1:
Run once pods are not well accounted for by the current quota system, because run-always pods can absorb the quota and prevent jobs from running (builds, scheduled tasks). We discussed today a "pods per unit time" measure with "max run once pods" that allow for users to run short jobs in parallel or over a longer time.

Since run always pods are typically "run up to N pods that run 24 hours a day", it's natural to want to state "run up to 3 pods at most 6 hours a day". Whether that is 6 hours for one pod or 2 hours for each of 3, the end metric would be applied. This may be continually refilling (useful).

Issue 2:
This is, essentially, a deliberate duplicate of #30495, which was closed by the requester before the underlying issue was resolved. In short, current versions of Kubernetes (I'm using 1.3.7) fail when using kube-up.sh to create a cluster under AWS, but incorrectly report success. This leaves some AWS resources (VPCs, security groups, etc.) in place, but with no actual nodes.

The relevant bit of output is as follows:

./cluster/../cluster/../cluster/aws/../../cluster/common.sh: line 528: KUBE_MANIFESTS_TAR_URL: unbound variable
Kubernetes binaries at /Users/jon/kubernetes/cluster/
You may want to add this directory to your PATH in $HOME/.profile
Installation successful!

A viable workaround has been described in #30495 (I believe this is why the original author closed the issue), but the issue itself has not actually been fixed. Please accept my apologies for the goofy paperwork shenanigans here, but I did want to make sure the issue didn't get lost.
Issue 1:
Describe the bug

I am passing data normalized using MinMaxScaler to DBSCAN's fit_predict. My data is very small (12 MB, around 180,000 rows and 9 columns). However while running this, the memory usage quickly climbs up and the kernel gets killed (I presume by OOM killer). I even tried it on a server with 256 GB RAM and it fails fairly quickly.

Here is my repro code:

import pandas as pd
X_ml = pd.read_csv('Xml.csv')
from sklearn.cluster import DBSCAN
dbscan = DBSCAN(eps=0.28, min_samples=9)
dbscan_pred = dbscan.fit_predict(X_ml)

and here is my Xml.csv data file.

Any ideas how to get it working?

Steps/Code to Reproduce

import pandas as pd
X_ml = pd.read_csv('Xml.csv')
from sklearn.cluster import DBSCAN
dbscan = DBSCAN(eps=0.28, min_samples=9)
dbscan_pred = dbscan.fit_predict(X_ml)

and here is my Xml.csv data file.

Expected Results

DBSCAN should complete.

Actual Results

It runs out of memory getting killed.

Versions

System:
python: 3.9.9 (main, Nov 21 2021, 03:23:42) [Clang 13.0.0 (clang-1300.0.29.3)]
executable: /usr/local/opt/python@3.9/bin/python3.9
machine: macOS-12.2.1-x86_64-i386-64bit

Python dependencies:
pip: 21.3.1
setuptools: 59.0.1
sklearn: 1.0.2
numpy: 1.22.0
scipy: 1.7.3
Cython: None
pandas: 1.3.5
matplotlib: 3.5.1
joblib: 1.1.0
threadpoolctl: 3.1.0

Built with OpenMP: True

Issue 2:
Scikit learn has two nearly identical ways of performing spectral clustering:

a SpectralClustering class

a spectral_clustering method

The slightly divergent docs and function call signatures are confusing, I think. Both of these live in the same file (clustering/spectral.py), and with mostly identical docstrings, having both doubles the documentation burden.

Is there a compelling reason to keep these both around? @jnothman @GaelVaroquaux @briancheung @weilinear
Issue 1:
Is this expected?

>>> x = [None]
>>> x[0] = x
>>> x
[[...]]
>>> import numpy as np
>>> np.array(x)
array([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[...]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]], dtype=object)
>>> a = np.array(x)
>>> a.shape
(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
>>> np.__version__
'1.11.1'

Issue 2:
I grant that this one is quite abusive, but bugs that lead to this problem can happen:

$ ipython3 --pylab
Python 3.5.0 (default, Nov 20 2015, 16:20:41)
Type "copyright", "credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
Using matplotlib backend: TkAgg
Python are go!

In [1]: L = []

In [2]: L.append(L)

In [3]: L.append(L)

In [4]: X = asarray(L)
^C^C^\Quit (core dumped)

Ergo, numpy gets into an infinite loop using 100% CPU and hangs. Interestingly, the following variant does not lead to the same problem:

$ ipython3 --pylab
Python 3.5.0 (default, Nov 20 2015, 16:20:41)
Type "copyright", "credits" or "license" for more information.

IPython 4.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
Using matplotlib backend: TkAgg
Python are go!

In [1]: L = []

In [2]: L.append([L,L])

In [3]: X = asarray(L)

In [4]: print(X.ndim)
32 # huh?

In [6]: print(X)
# lots of ASCII-art
Issue 1:
Probably this is by design, but typing such as zone.js, es6-shim and so on are not referenced anymore. You can easily get around this by installing these typings yourself, but there seems to be some issues with a BrowserNodeGlobal that is missing and zone.js referencing a es6-promise which if installed will conflict with es6-shim.

Issue 2:
I'm submitting a

Bug Report

Issue still appears after #15215 being merged

Current behavior

Metadata file when using flatModuleOutFile is empty on Windows

{"__symbolic":"module","version":3,"metadata":{},"importAs":"@angular/material"}

Expected behavior

Metadata file should contain metadata as for Linux and Mac OS.

{"__symbolic":"module","version":3,"metadata":{"TestComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"test-component","template":"<span>Test</span>"}]}],"members":{}}},"importAs":"@angular/material"}

Minimal reproduction of the problem with instructions

https://github.com/DevVersion/ng-compiler-cli-test

Please tell us about your environment:

Using the latest version (Github builds). And since @angular/tsc-wrapped is not bound to the 0.0.0-PLACEHOLDER, there is a script that injects the latest version of it.

Node (for AoT issues): v6.10.0

cc. @jelbourn
Issue 1:
frameless window maximize / unmaximize event may cause a error on windows.

it unable to reproduce stable, maybe a GC problem?

screenshot:

https://ygobbs.com/t/%E7%AA%97%E5%8F%A3%E5%81%9A%E5%A4%A7%E5%8C%96%E5%90%8E%E5%86%8D%E6%AC%A1%E7%82%B9%E5%87%BB%E6%97%A0%E6%B3%95%E7%BC%A9%E5%B0%8F%E5%9B%9E%E5%8E%9F%E6%9D%A5%E5%B0%BA%E5%AF%B8/78751

my code:

https://github.com/mycard/mycard/blob/master/js/app.js#L5-L25

const current_window = remote.getCurrentWindow();

document.getElementById("minimize").onclick = ()=> {
current_window.minimize()
};
document.getElementById("maximize").onclick = ()=> {
current_window.maximize();
};
document.getElementById("restore").onclick = ()=> {
current_window.unmaximize();
};
document.getElementById("close").onclick = ()=> {
current_window.close();
};

current_window.on('maximize', ()=> {
document.body.className = process.platform + ' maximized'
});
current_window.on('unmaximize', ()=> {
document.body.className = process.platform
});

Issue 2:
Hi,

I am building a simple one page electron app with a simple HTML page with a menu using sample code shown here: [https://github.com/atom/electron/blob/master/docs/api/menu.md]

But I am getting a javascript error on SECOND page reload on a simple electron app. Note that this error only comes if I reload the app once and then click View->Reload again.

"Uncaught exception error: Attempting to call a functions in the renderer window that has been closed or released. Function provided here: undefined".

I have even gone through this case but did not understand how to remove call back reference for my simple case. Here is the code I have in my simple HTML page:

https://jsfiddle.net/fb2a3ho6/

I would like to know why on second refresh, when reference to the old window is lost, I am getting an error.

Vivek
Issue 1:
Environment

Sorry for the screenshot and not text, but I can't copy

Steps to reproduce

Connect to windows from a mac with Microsoft Remote Desktop and the "Use Mac Shortcuts for Cut, Copy, and Paste" option on.

Expected behavior

Command-c copy, command-v paste. This does work in just powershell, but not in the new Terminal

Actual behavior

It sends ^C and ^V

Issue 2:
Description of the new feature

Allow tabs to be dragged to the left or right of the tab around them, like browser tabs.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

This is a really minor issue. But I think it should be fixed to add that final touch 😏 Just tell me if you want this to be corrected and I'll send a PR this weekend. Thanks for making this lib! ❤️

Expected Behavior

<Tab> button should not have border radius

Current Behavior

Steps to Reproduce (for bugs)

Only reproducible in chrome > 63 (canary atm)

Use the example at https://material-ui-1dab0.firebaseapp.com/demos/tabs/#basic-tabs

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

Expected Behavior

npm run flow should yield no errors with the latest flow-bin on master.

Current Behavior

Lots of errors, primarily around HoCs and defaultProps. It looks like react-flow-types needs upgrading, but that's not the only source of issues.

Steps to Reproduce (for bugs)

yarn install flow-bin@0.57.2
npm run flow

Context

Prevents apps that utilize material-ui from upgrading to the latest flow-bin

Your Environment

Tech
Version

Material-UI
v1.0.0-beta.17

React
16

browser
N/A
Issue 1:
Code Sample, a copy-pastable example if possible

df = pd.DataFrame.from_dict({'A': {(42, 'foo', 4): 0, (42, 'foo', 9): 0},
'B': {(42, 'foo', 4): 0, (42, 'foo', 9): 0},
'C': {(42, 'foo', 4): 0, (42, 'foo', 9): 0},
'D': {(42, 'foo', 4): 0, (42, 'foo', 9): 0},
'E': {(42, 'foo', 4): 0, (42, 'foo', 9): 0},
'F': {(42, 'foo', 4): 0, (42, 'foo', 9): 0},
'G': {(42, 'foo', 4): 1, (42, 'foo', 9): 1}})

print(df.reindex(pd.RangeIndex(-1, 11), level=2, fill_value=0))

Output:

A B C D E F G
42 foo 4 0 0 0 0 0 0 1
9 0 0 0 0 0 0 1

Problem description

I would expect that the resulting dataframe have 12 rows, with indices (42, 'foo', i) for i from -1 to 10.

Apologies if I am just misunderstanding something. I haven't managed to find any information in the docs on the reason for the current behavior.

Output of pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 3.6.4.final.0
python-bits: 64
OS: Linux
OS-release: 4.14.24-1-MANJARO
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8

pandas: 0.22.0
pytest: None
pip: 9.0.1
setuptools: 38.5.1
Cython: 0.27.3
numpy: 1.14.0
scipy: 1.0.0
pyarrow: None
xarray: None
IPython: 6.2.1
sphinx: None
patsy: None
dateutil: 2.6.1
pytz: 2018.3
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.1.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 1.0.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None

Issue 2:
Under Windows 8 (x64), with Pandas v0.17.0 (from Anaconda) and up, Pandas.DataFrame.where() function is found to behave sporadically, sometimes returning the expected result and sometimes returning a dataframe filled with zeros.

The following code demonstrates this behavior, observed for dataframes that have larger than 361 rows and columns.

I observed that this problem does NOT exist in Pandas v0.16.2 on the same machine (Windows 8 x64, Anaconda), and in Pandas v0.17.1 under Mac OS (Anaconda).

import numpy as np
import pandas as pd

n = 400
n_trials = 1000

df_1 = pd.DataFrame(data=np.random.random((n,n)), index=np.arange(0,n), columns=np.arange(0,n))
df_2 = pd.DataFrame(data=np.random.random((n,n)), index=np.arange(0,n), columns=np.arange(0,n))

count = 0
for i in xrange(0,n_trials):
res = df_1.where(df_2 > 0.5)
if (res < 1e-6).all().all():
count += 1
print "number of unexpected cases: ", count

returns non-zero counts.