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

OpenCV => 4.0.0-pre

Operating System / Platform => Windows 64 Bit

Compiler => MinGW g++ (tdm-1) 5.1.0 from codeblocks

Detailed description

I built OpenCV from source using MinGW which was shipped along with codeblocks.

My build and install was successful.

https://imgur.com/a/IWFrXc7

Now, to check my built library I ran a sample program

OpenCVTest.cpp

#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>

using namespace cv;
using namespace std;

int main( )
{
// Create black empty images
Mat image = Mat::zeros( 400, 400, CV_8UC3 );

// Draw a line
line( image, Point( 15, 20 ), Point( 70, 50), Scalar( 110, 220, 0 ), 2, 8 );
imshow("Image",image);
cout<<"******************";
waitKey( 0 );
return(0);
}

using cmd -

g++ -std=c++11 OpenCVTest.cpp -llibopencv_core400 -llibopencv_highgui400 -llibopencv_imgproc400

I am able to compile to source code, but on running the program, I am getting a window pop up with program has stopped working message

https://imgur.com/a/fXihGc8

Steps to reproduce

Downloaded the source code from github.

Using CMake, pointed the source code directory and the build directory.

Ran CMake and it generated some file and folders in build directory.

Ran mingw32-make command in build directory.

Ran mingw32-make install.

Copied the folder opencv2 in D:\Programs\OpenCV-Source\build\install\include to C:\Program Files (x86)\CodeBlocks\MinGW\include

Copied the files (.dll) from D:\Programs\OpenCV-Source\build\install\x86\mingw\bin to C:\Windows\SysWOW64

Copied the files (.a files) from D:\Programs\OpenCV-Source\build\install\x86\mingw\lib to C:\Program Files (x86)\CodeBlocks\MinGW\lib

Wrote the above program on FAR Manager.

compiled on cmd using g++ -std=c++11 OpenCVTest.cpp -llibopencv_core400 -llibopencv_highgui400 -llibopencv_imgproc400

produced a.exe. Ran it and got the error.

Issue 2:
System information (version)

OpenCV => :4.1

Operating System / Platform => :Ubuntu 18.04 x64

Compiler => GCC 7.4, NVCC 10.1

Detailed description

problem when loading opencv library, error says realloc(): invalid old size, this happened for opencv_videoio library when either ffmpeg or gstreamer ON, and opencv_highgui library when GTK ON (i haven't tested it with VTK ON), all build are with CUDA enabled (CUDA 10.1), glib2.0-dev

Steps to reproduce

build opencv with opencv_contrib, CUDA enabled (10.1) and glib2.0, then try to link an executable with opencv_videoio or opencv_highgui (either static or dynamic through dlopen)
Issue 1:
Environment

Windows build number: 10.0.18362

Windows Terminal version (if applicable): 0.6.2951.0

Powershell Version: 5.1.18362.145

Steps to reproduce

Enter a PS Session, run some command that will cause the output to scroll past the bottom of the terminal window (for example, Get-Process), exit the PS Session, enter "clear" or "clear-host", then scroll up. Part of the output from the command run in the PS Session will still be present in the scrollback buffer and cannot be removed or cleared without closing the tab.

Example in code:

Enter-PSSession 1.1.1.1
for($i = 0; $i -lt 150; $i++){write-host $i}
exit
clear-host
#scroll up in the terminal window

The attached screenshot shows the contents of my scrollback buffer after running similar code and then running a clear-output command. You can see the output of the commands and the numbers 0-13 present in the scrollback buffer, as in my particular case the code caused the output window to scroll down 15 lines while in the PS Session. At this point clear and clear-host will not be able to remove these 15 lines of output from the Scrollback Buffer.

Oddly enough it seems the issue is the same even if you run a "clear-host" while still inside of the PS Session. But running a "clear-host" while inside the PS Session does work as long as the output hasn't caused the terminal window to scroll.

Expected behavior

Entering a "clear" or "clear-host" command in PowerShell should clear the terminal window, including clearing the scrollback buffer of all output. This is the functionality of the cmdlet if running from a cmd window, the PowerShell app, and PS ISE.

Actual behavior

When using the Windows Terminal to enter a PS session with another host, if the output from that session causes the terminal output to scroll down, upon exiting that PS Session and running a "clear" or "clear-host" command will not clear the first portion of the output from the PS session, equal to the number of lines that the ps session caused the window to scroll down.

Other notes

I've tested this with PowerShell 5.1 in Windows 10 from the PowerShell app, cmdhost running powershell, and from PS ISE , it does not seem to occur in any other circumstances outside of the Windows Terminal, so I'm opening this as a Windows Terminal bug. It's not critical, but pretty annoying if doing remote PowerShell work.

Issue 2:
Environment

Windows build number: Microsoft Windows NT 10.0.18362.0
Windows Terminal version (if applicable): 0.5.2762.0

Steps to reproduce

# open Terminal with powershell
# open git repo with more than 100 commits
git log -100 # to fill in the entire screen with text
Clear-Host
# scroll up

Expected behavior

Cannot scroll up, Clear-Host cleared the terminal, all previous output is gone.

Actual behavior

Scrolling up shows previous output. This repros with both Powershel 6.2.3 and 5.2.1.

This does not happen with the powershell terminal, which correctly removes all previous output.
Issue 1:
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):

Is this a BUG REPORT or FEATURE REQUEST? (choose one):

Kubernetes version (use kubectl version):

Environment:

Cloud provider or hardware configuration:

OS (e.g. from /etc/os-release):

Kernel (e.g. uname -a):

Install tools:

Others:

What happened:

I have a host as a storage server and has 1G disk, I created a PV as 20M, and then created a PVC on this PV, but I found that I can write data to the PVC even if the data size is greater than 20M, so how can I guard this? I want to write at most 20M data to this PV, if the data size is greater than 20M, then the write operation should be failed.

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else do we need to know:

Issue 2:
The link here points to broken link getting 404

https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker.md

Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):

no

What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):

Is this a BUG REPORT or FEATURE REQUEST? (choose one):

Kubernetes version (use kubectl version):

Environment:

Cloud provider or hardware configuration:

OS (e.g. from /etc/os-release):

Kernel (e.g. uname -a):

Install tools:

Others:

What happened:

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else do we need to know:
Issue 1:
related #4363

closes #3374

Here is a minimal example:

In [21]: df = pd.DataFrame({'A': range(5), 'B': rand(5)})

In [22]: df
Out[22]:
A B
0 0 0.402616
1 1 0.880696
2 2 0.184491
3 3 0.832732
4 4 0.393917

[5 rows x 2 columns]

In [23]: df.to_csv('test.csv', sep=' ')

In [24]: pd.read_csv('test.csv', sep=' ', dtype={'A': np.float64}).dtypes
Out[24]:
Unnamed: 0 int64
A float64
B float64
dtype: object

Here the dtype argument behaves as expected, and column A has type float. However with sep='\s' the dtype argument appears to be ignored:

In [25]: pd.read_csv('test.csv', sep='\s', dtype={'A': np.float64}).dtypes
Out[25]:
A int64
B float64
dtype: object

Version information

In [27]: show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Darwin
OS-release: 10.8.0
machine: i386
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8

pandas: 0.13.1-413-ga71ede3
Cython: 0.20.1
numpy: 1.8.0
scipy: 0.13.3
statsmodels: 0.5.0
IPython: 2.0.0-dev
sphinx: 1.2.1
patsy: 0.2.1
scikits.timeseries: None
dateutil: 1.5
pytz: 2013b
bottleneck: None
tables: 3.1.0
numexpr: 2.3.1
matplotlib: 1.3.1
openpyxl: 1.8.2
xlrd: 0.9.2
xlwt: 0.7.5
xlsxwriter: 0.5.2
lxml: 3.3.1
bs4: 4.3.1
html5lib: None
bq: None
apiclient: None
rpy2: None
sqlalchemy: 0.9.2
pymysql: None
psycopg2: None

Issue 2:
While trying to get handle on duplicated records I stumble upon this which lead to conclusion that .duplicated(take_last=True) seem to be taking the first of duplicate rows and .duplicate(take_last=False) takes the last rows.

Here is an illustration:

import pandas as pd
data = { 'key1':[1,2,3,1,2,3,2,2,2],
'key2':[2,2,1,2,2,2,2,2,2],
'dup':['d1_1','d2_1', 'n_d','d1_2','d2_2', 'n_d','d2_3','d2_4','d2_5']}
df = pd.DataFrame(data,columns=['key1','key2','dup'])
print df
key1 key2 dup
0 1 2 d1_1
1 2 2 d2_1
2 3 1 n_d
3 1 2 d1_2
4 2 2 d2_2
5 3 2 n_d
6 2 2 d2_3
7 2 2 d2_4
8 2 2 d2_5

Now with take_last=False it would be fair to expect dn_1s to be in output, but this is not the case:

c1 = df.duplicated(['key1', 'key2'], take_last=False)
df[c1]
key1 key2 dup
3 1 2 d1_2
4 2 2 d2_2
6 2 2 d2_3
7 2 2 d2_4
8 2 2 d2_5

And take_last=True outputs the first rows:

c2 = df.duplicated(['key1', 'key2'], take_last=True)
df[c2]
key1 key2 dup
0 1 2 d1_1
1 2 2 d2_1
4 2 2 d2_2
6 2 2 d2_3
7 2 2 d2_4

Unless I am misunderstanding the doc:

take_last : boolean, default False
Take the last observed row in a row. Defaults to the first row

it does feel that .duplicated() could be improved by fixing this behavior.

And additionally it would have one more parameter:

take_all : boolean, default False
Take all observed rows. Overrides take_last

or alternatively a keyword parameter:

take : 'last', 'first', 'all', default 'last'
Sets which observed duplicated rows to take. Default: take last observed rows.

Right now trying to get all observed duplicates requires applying two above conditions c1 | c2.

This was done with pandas 0.14.1.

Thank you.
Issue 1:

Issue 2:
Steps to reproduce:

$ kubectl --context=federation delete rs k8shserver
replicaset "k8shserver" deleted
$ kubectl --context=federation create -f rs/k8shserver.yaml
Error from server: error when creating "rs/k8shserver.yaml": object is being deleted: replicasets "k8shserver" already exists

Expected:

kubectl delete rs command should complete after all replica sets from all underlying clusters are deleted.

Observed:

command completed although there are still replica sets being deleted.
Issue 1:
Environment

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

Steps to reproduce

Inconstant behavior, periodically starts and stops with no clear trigger.

Expected behavior

PTR prompt appears when its key command is typed, currently the default Alt + Space.

Actual behavior

Every so often PTR will trigger on any press of the space bar; as if Alt was already being held down.

Screenshots

N/A

Workaround

Killing and restarting PT resolves the issue for a period of time.

Misc Notes

Prompt triggers on both external and built in laptop keyboards when issue is active.

Issue 2:
I find myself wanting to switch layouts quickly, especially if I'm collaborating with someone, virtually. (Oh, I need to take some notes, let's stop using focused grid 3 and start using standard grid 2.)

One idea of how to implement this would be a way to assign a half-dozen hotkeys so that the user could hit, say, "Win-'-1", "Win-'-2", etc. to quickly switch to frequently used layouts. A new, read-only tab should be added to show the hotkeyed layouts.
Issue 1:
ISSUE TYPE

Feature Idea

ANSIBLE VERSION

ansible 1.9.4

CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

SUMMARY

The current version of etcd (2.x) does not support the deprecated v1 api. The v1 api is the only one supported by the etcd ansible lookup plugin.

STEPS TO REPRODUCE

Deploy a current version of etcd: docker run --net=host --rm quay.io/coreos/etcd:v2.3.6

Add key to etcd: etcdctl set foo bar

Create a playbook named etcd.yml as shown below

Run playbook: ansible-playbook -i "localhost," etcd.yml

---
- name: Test etcd lookup
hosts: localhost
tasks:
- debug: msg="etcd foo = {{ lookup('etcd2', 'foo') }}"

EXPECTED RESULTS

PLAY [Test etcd lookup] *******************************************************

GATHERING FACTS ***************************************************************
ok: [localhost]

TASK: [debug msg="etcd foo = bar"] ********************************************
ok: [localhost] => {
"msg": "etcd foo = bar"
}

PLAY RECAP ********************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0

ACTUAL RESULTS

PLAY [Test etcd lookup] *******************************************************

GATHERING FACTS ***************************************************************
ok: [localhost]

TASK: [debug msg="etcd foo = "] ***********************************************
ok: [localhost] => {
"msg": "etcd foo = "
}

PLAY RECAP ********************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0

Issue 2:
Hi,

I cant get values from etcd using lookup.

It looks like the API version is hardcoded in etcd.py (self.baseurl = '%s/v1/keys').

Thanks,

Moshe
Issue 1:
What problem does this feature solve?

It's quite frequent we need to abstract a v-for'ed element tree as a component

for example, go from <li v-for="item in list">(something reusable)</li> to <ListItem v-for="item in list" :key="item">

it's extremely useful when you are building higher older components. i.e. Components that glues components with predefined interfaces.

it used to be natural to do so, as objects always come with an identity, which is automatically unique, and best suited to be keys.

But now, it says it should be a primitive — therefore I have to patch the object creation system of javascript to manually give every object created an id property, which is a number automatically increases every time a new object is created, and it is duplicate with the identity an object already have.

And the counter has to be global, as every object created potentially passed to v-for has to be patched.

This is havoc

It utterly destroys the usefulness of v-for and the convenience of abstraction and code reuse, it also breaks tunes of existing code.

It seems that it's much easier to implement my own v-for that supports the identity of objects as keys rather than patching the object system of javascript to ensure every object has a duplicated unique primitive to make vue happy. And it's much easier to do so as I have tons of code broken by this primitive check, which needs a complete and unnecessary redesign. And the complexity increases dramatically.

So PLEEEASE just support plain objects, i.e. objects created by object literal

they are absolutely the same with primitives when all your diff algorithm needs is just SameValue. It's nothing difficult to implement.

But for us, it's invaluable.

What does the proposed API look like?

<component v-for="item in [{...}, {...}]" :key="item">

Just support objects as v-for's keys

Simple yet useful

Issue 2:
Vue.js version

2.0.2

Reproduction Link

http://jsfiddle.net/2vqkLkjL/1/

Steps to reproduce

Create a component with a nested data property: Object, of an object containing an array.

Set up watcher for this property, specifying the deep flag.

What is Expected?

When the value of an array changes, the watcher runs

What is actually happening?

Watcher isn't getting triggered.

The code seemed to work fine in Vue 1.x.

Not 100% nested objects/arrays is the correct way for managing a view with lots of inputs.
Issue 1:
TypeScript Version:

1.7.5 / 1.8.0-beta / nightly (1.9.0-dev.20160217)

Code

// A self-contained demonstration of the problem follows...

Expected behavior:

Actual behavior:

Issue 2:
The below code raise an compilation error, which says "Property 'includes' does not exist on type 'string'.", even with the "--target es6" option.

"abcde".includes("cd");

It is likely that "contains" function defined in String interface should be replaced with "includes".

https://github.com/Microsoft/TypeScript/blob/b2a871dcfb89739632fbc0fa5b5abe0177d68b9b/src/lib/es6.d.ts#L380

https://github.com/Microsoft/TypeScript/blob/965f994acefd238dc0c473e739d7916c47bf41b4/bin/lib.core.es6.d.ts#L1579
Issue 1:
Hi. I have a problem with the Tray icon.

Electron Version:

8.2.5

Operating System:

Ubuntu 18.04

Last Known Working Electron version:

7.2.4

Expected Behavior

The Tray Icon always display after go out from sleep mode

Actual Behavior

After go out from sleep mode the tray icon is hidden.

Screenshots

If just start app after npm start see screen https://prnt.sc/scnq37 then go to sleep mode.

After go out from sleep mode the tray icon is hidden see screen https://prnt.sc/scnu75

Additional Information

The problem in versions 8.0.0-8.2.5.

I installed a less v7.2.4 and it works. After sleep mode icon is display

My example https://github.com/trae-op/test-electron-app

Issue 2:
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.

Issue Details

Electron Version:

8.0.0

Operating System:

Ubuntu 18.04.4 LTS x64

Last Known Working Electron version:

7.1.13

Expected Behavior

When the system goes in stand by the Tray icon should stay visible in the Topbar

Actual Behavior

When system goes stand by the Tray icon disappear

To Reproduce

I set the icon and the Menu in main process:

let tray;
const icon = path.join(__dirname, "./icon.png");
const tryMenu = Menu.buildFromTemplate([
{ label: "Reload", role: "reload" },
{ label: "Toggle dev tools", role: "toggleDevTools" }
]);
tray = new Tray(icon);
tray.setContextMenu(tryMenu);

When starting electron everything works fine: the icon (and the menu) is visible in the Topbar.

But if system goes stand by, when I log in again the icon is disappeared.

$ git clone https://github.com/p-fusi/electron-quick-start -b master
$ npm install
$ npm start || electron .
Issue 1:
Atom 0.189.0 on Ubuntu.

Mac version is not happen.

Issue 2:
Text:

这上面的夜的天空，奇怪而高，我生平没有见过这样奇怪而高的天空。他仿佛要离开人间而去，使人们仰面不再看见。然而现在却非常之蓝，闪闪地睒着几十个星星的眼，冷眼。他的口角上现出微笑，似乎自以为大有深意，而将繁霜洒在我的园里的野花草上。

It happen after update to 0.189.0, and it's normal in 0.188.0 .

I try disabled all community packages or star with --safe mode, still happen.

Update: Ubuntu 14.04
Issue 1:
Migrated issue, originally created by Serge Koval (@joes)

I'm working on query precompilation layer and stumbled upon a bug: PickleType column does not automatically unpickle data received from the database.

[10]: m = db.session.query(Report).from_statement('SELECT * FROM reports LIMIT 1').all()

[11]: m[0].pickled_data
?}q(UurlqX634/654/aqgvppyv.jpgUserverqUcheetahUmodeqKUsizeqM?Du.

Just in case, using PostgreSQL.

Issue 2:
Migrated issue, originally created by Michael Bayer (@zzzeek)

tons of use cases for TextAsFrom that should be intuitive that don't work. When we make a TextAsFrom with a positional set of columns, those columns should be welded to it. The statement should be able to work in any ORM context flawlessly, no reliance on names matching up should be needed as we do not target on name anymore:

from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()

class A(Base):
__tablename__ = 'a'
id = Column(Integer, primary_key=True)
bs = relationship("B")

class B(Base):
__tablename__ = 'b'
id = Column(Integer, primary_key=True)
a_id = Column(ForeignKey('a.id'))

e = create_engine("sqlite://", echo='debug')
Base.metadata.create_all(e)

s = Session(e)
s.add_all([
A(bs=[B(), B()]),
A(bs=[B(), B()])
])
s.commit()

b1 = aliased(B)

# works
sql = "select a.id, ba.id as bid, ba.a_id from "\
"a left outer join b as ba on a.id=ba.a_id"

# fails. why?
# sql = "select a.id as aid, ba.id as bid, ba.a_id from "\
# "a left outer join b as ba on a.id=ba.a_id"

# fails. why?
# sql = "select a.id as aid, ba.id, ba.a_id from "\
# "a left outer join b as ba on a.id=ba.a_id"

# are we relying upon names somehow? we should be able to
# be 100% positional now
t = text(sql).columns(A.id, b1.id, b1.a_id)

q = s.query(A).from_statement(t).options(contains_eager(A.bs, alias=b1))

for a in q:
print a.id
print a, a.bs

# forget about if we try a1 = aliased(A) also...

I've added docs in 7d268d4 and 4f51fa9 that we may even have to dial back for versions that don't have this feature.

Attachments: 3501.patch
Issue 1:
Version

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

compile 'io.reactivex:rxjava:1.1.0'

Device asus zenpone2

code1. load local file

Glide.with(context).asBitmap().load(file).into(new SimpleTarget<Bitmap>() {
@Override
public void onResourceReady(Bitmap resource, Transition<? super Bitmap> transition) {
sub.onNext(resource);
}
});

cache file is ok. But if I load from byte aray cache is not uesd. It happend in >v4 ,v3.7.0 is work fine.

code2: from byte[]

Glide.with(context).asBitmap().load(igBytes).into(new SimpleTarget<Bitmap>() {
@Override
public void onResourceReady(Bitmap resource, Transition<? super Bitmap> transition) {
sub.onNext(resource);
}
});

Issue 2:
Hello, I am a developer in China.On one model, I found a problem:

Java. Lang. ClassCastException: int [] always be cast to Java. Lang. Object []

...

Then there will be:

You cannot call glide. Get () in registercomponents() use the provided glide instance instead

...

It's something I've never seen on any other plane.I can make sure that the values are passed correctly.Sorry, my English is not good, please forgive me
Issue 1:
Current (as of this writing) master:

julia> sin(1)
0.8414709848078965

julia> sin.([1])
ERROR: InexactError()
in macro expansion at ./broadcast.jl:97 [inlined]
in macro expansion at ./simdloop.jl:73 [inlined]
in macro expansion at ./broadcast.jl:91 [inlined]
in _broadcast!(::Base.#sin, ::Array{Int64,1}, ::Tuple{Tuple{Bool}}, ::Tuple{Array{Int64,1}}, ::Type{Val{1}}) at ./broadcast.jl:86
in broadcast! at ./broadcast.jl:139 [inlined]
in broadcast(::Function, ::Array{Int64,1}) at ./broadcast.jl:143
in eval(::Module, ::Any) at ./boot.jl:231
in macro expansion at ./REPL.jl:92 [inlined]
in (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:46

I would have expected this to work as map does:

julia> map(sin, [1])
1-element Array{Float64,1}:
0.841471

Any idea why this is happening?

Issue 2:
The following code fails with an InexactError():

X = [1,2,3]
Y = [4 5]
broadcast(atan2, X, Y)

whereas

[atan2(x,y) for x in X, y in Y ]

(albeit producing an array of type Any), while

atan2([1,2,3],[4,5,6])

produces an array of Float64.

Can we improve the type inference so that all three cases can generate Float64 arrays? Note that this is needed for #4363 (for @vectorize_2arg to use broadcast).