WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

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

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

Electron Version

13.1.7

What operating system are you using?

macOS

Operating System Version

macOS 11.4

What arch are you using?

x64

Last Known Working Electron version

12.x

Expected Behavior

desktopCapturer should be able to capture the output of the current window.

Actual Behavior

The output is a blank stream of black frames.

Testcase Gist URL

https://gist.github.com/e40b251b8ec56191ca9df9f568139304

Additional Information

This happens only for the current window. If you change the name of the target window to the name of any other window open on your machine, it shows the stream correctly.

This works correctly is 11.x/12.x so it seems to be broken only in 13.x versions. My actual use case is not to show the output of the stream in the UI, but to record it and output a video file.

#29931 is similar to this but a different issue since it is concerned with the source not being available and it affects both 12 and 13, but in this case, the source is always available but does not output anything.

Issue 2:
Electron version: 2.0.0

Operating system: Fedora Linux 28 - 4.16.5-300.fc28.x86_64

Hardware: Intel HD Graphics 4400

Last known working Electron version:

1.8.6 (but flashes black at the beginning of the drag)

Message on debug 1.8.6:

[6956:0503/113418.226485:ERROR:buffer_manager.cc(453)] [.DisplayCompositor-0x345f2e791700]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command

Expected behavior

Drag and drop without crash the Electron, and the element not turn to black.

Actual behavior

When drag an element it turn black, freeze Electron and the black element stay on screen even through other programs. No messages on debug, just freeze.

How to reproduce

Start any project with a button with attribute draggable="true". Start dragging it, done.

ckerr edit: duplicate bug #13384 has a repro repo
Issue 1:
Halp ticket

support/19b50492c9fa11e39808a90894eaf5d3

it would be nice if long text in the same line is indented like this:

http://imagizer.imageshack.us/a/img843/6739/qbp9.png

Currently, Atom does this:

Issue 2:
Ok, this one may be a personal preference, but it drives me nuts that softwrap doesn't match the indent.
Issue 1:
System information (version)

Detailed description

Actually, I have read the official documentation here about class Map in opencv to try to use the module reg. And This is my test image:

This is my code:

#include<opencv.hpp>
#include "opencv2/reg/mapshift.hpp"
#include "opencv2/reg/mappergradshift.hpp"
#include "opencv2/reg/mapperpyramid.hpp"

using namespace cv;
using namespace std;
using namespace cv::reg;

Mat highlight1(const Mat src, const Mat t_mask) {
Mat srcImg = src.clone(), mask = t_mask.clone();
threshold(mask, mask, 0, 255, THRESH_BINARY_INV + THRESH_OTSU);
cvtColor(mask, mask, COLOR_GRAY2BGR);
cvtColor(srcImg, srcImg, COLOR_GRAY2BGR);
dilate(mask - Scalar(0, 0, 255), mask, Mat(), Point(-1, -1), 1);
return srcImg - mask;
}

int main() {
Mat img1 = imread("img.jpg", 0);
Mat img2;

// Warp original image
Vec<double, 2> shift(5., 5.);
MapShift mapTest(shift);
mapTest.warp(img1, img2);

// Register
Ptr<MapperGradShift> mapper = makePtr<MapperGradShift>();
MapperPyramid mappPyr(mapper);
Ptr<Map> mapPtr = mappPyr.calculate(img1, img2);
MapShift* mapShift = dynamic_cast<MapShift*>(mapPtr.get());

// Display registration result
Mat result;
mapShift->inverseWarp(img2, result);
Mat registration_before = highlight1(img1, img2);
Mat registration_after = highlight1(img1, result);
return 0;
}

But as we see, the registration_after is even worse than registration_before. What's I have missed?

This is registration_before:

This is registration_after:

Why I get a worse result? Is it a bug in this module of OpenCV?

Issue 2:
System information (version)

OpenCV => 4.2.0-dev

Operating System / Platform => Ubuntu 18.04

Compiler => GNU G++ 7.4.0

Python => 3.6.9

Detailed description

When I run self.frame_device.upload(self.frame, stream) I'm getting an extra cudaStreamCreate and cudaStreamDestroy right before the cudaMemcpy2DAsync. (See attached)

Steps to reproduce

import os
import sys
import glob
import numpy as np
import time
import cv2
import cudasift

class PreCuda:
def __init__(self, size):
print("__init__")
self.rows = size
self.cols = size
self.stream = cv2.cuda_Stream( )
self.frame = np.zeros((size,size,3),np.uint8)
cv2.cuda.registerPageLocked(self.frame)
self.frame_device = cv2.cuda_GpuMat(size,size,cv2.CV_8UC3)

def __del__(self):
print("unregisterPageLocked")
cv2.cuda.unregisterPageLocked(self.frame)

def ProcessFrame(self):
print("ProcessFrame")
self.frame_device.upload(self.frame, self.stream) # <-- issue

def Frame(self, img):
print("Frame")
img = cv2.imread(image_name)
img.resize(self.rows, self.cols, 3)
np.copyto(self.frame,img)

image_names = glob.glob('images/*')

size = 512
image_data = PreCuda(size)

for image_name in image_names:
image_data.Frame(image_name)
image_data.ProcessFrame()

-->
Issue 1:
Included tasks use different variable definitions in roles activated by the role dependency mechanism.

ansible 1.4 -devel 214b0b0

Description

The alpha->beta scope, port when called from roles/beta/tasks/main.yml acts like a var, whereas when called from roles/beta/tasks/include.yml port acts like a default.

Demonstration

main.yml :

---
# beta role tasks

- debug: msg="beta role (tasks/main.yml) - port - expected beta-port, got {{ port }}"
failed_when: "port != 'beta-port'"
ignore_errors: True

- { include: "include.yml"}

include.yml :

---
# beta role included task(s)

- debug: msg="beta role (tasks/include.yml) - port - expected beta-port, got {{ port }}"
failed_when: "port != 'beta-port'"
ignore_errors: True

exhibit#2,

functional demo:

https://github.com/briceburg/ansible-variable-scoping/tree/master/simple_include

Edit: Improved description to include @aboyett synopsis #4642 (comment)

Issue 2:
Roles do not use their variable definitions when actvated via the role dependency mechanism.

ansible 1.4 -devel 214b0b0

Description

alpha role depends on beta role

Each role provides a unique value for a variable named 'port' /vars/main.yml

When beta role is executed (aka "active") via the role dependency mechanism, the role uses variable definitions from alpha role instead of its own definitions (roles/beta/vars/main.yml).

It has been noted that active roles use their variable definitions [unless higher precedent variables are passed via --extra-vars, or variable definitions in the base playbook]

"... within a role, the variables in roles/y/vars/main.yml are guaranteed to be applied to that specific role, just as if they were parameters explicitly passed to the role." ( https://groups.google.com/d/msg/ansible-project/0JIrNlnRXuI/tx1-inKYoUQJ )

Demonstration

https://github.com/briceburg/ansible-variable-scoping/tree/master/simple_vars
Issue 1:
now I've got for redirections:

File "bin/eggs/requests-2.6.2-py2.7.egg/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "bin/eggs/requests-2.6.2-py2.7.egg/requests/adapters.py", line 415, in send
raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', ResponseNotReady())

requests 2.6 works fine.

Issue 2:
Starting in 2.6.1 an exception is thrown if a connection with chunked transfer-encoding is reused. I suspect that the bug is in the bundled urllib3 which was upgraded from 1.10.2 to 1.10.3.

#!/usr/bin/env python
import requests
s = requests.Session()
r = s.get('http://httpbin.org/stream/1')
r.json()
r = s.get('http://httpbin.org/stream/1')
r.json()

$ ./test.py
Traceback (most recent call last):
File "./test.py", line 10, in <module>
r = s.get('http://httpbin.org/stream/1')
File "[...]/requests/requests/sessions.py", line 477, in get
return self.request('GET', url, **kwargs)
File "[...]/requests/requests/sessions.py", line 465, in request
resp = self.send(prep, **send_kwargs)
File "[...]/requests/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "[...]/requests/requests/adapters.py", line 415, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ResponseNotReady())
Issue 1:
I've read the article on Update on Async Rendering and I have a little doubt about getDerivedStateFromProps, i.e. why it does't receive prevProps as one of its arguments?

There are situations where it is useful to compare prevProps with nextProps, and what the article suggests (i.e. You may notice in the example above that props.currentRow is mirrored in state) VERY IMHO is wrong for a couple of reasons. The first one is that it breaks the single source of truth rule (and we also have the inconvenience of keeping props.currentRow and state.lastRow in sync), and the second one I think is summarized here: https://reactjs.org/docs/thinking-in-react.html i.e. The key here is DRY: Don’t Repeat Yourself. Figure out the absolute minimal representation of the state your application needs and compute everything else you need on-demand. This is a suggestion I've basically seen since the dawn of react, so copying a prop to the state just to have it around when I need it looks a bit wrong to me. So my suggestion would be to add prevProps as an argument to getDerivedStateFromProps.

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

Bug

What is the current behavior?

When an input field changes from "email" to "text", an exception TypeError will be thrown from setSelection.

Reproduction

See here: https://github.com/adrianimboden/react-bug-reproduction

What is the expected behavior?

It should not crash because of an uncaught exception

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

master (4ca7855)

Firefox

This would be my proposed change to fix the issue: adrianimboden@db923b8
Issue 1:
What version of Go are you using (go version)?

jack@edi:~$ go version
go version go1.5beta3 linux/amd64

What operating system and processor architecture are you using?

jack@edi:~$ uname -a
Linux edi 3.13.0-61-generic #100-Ubuntu SMP Wed Jul 29 11:21:34 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

What did you do?

Execute a query with database/sql over an unreliable connection. For example:

update t set n=n+1;

What did you expect to see?

An error message that means the query failed and n is unchanged, or no error meaning the query executed exactly one time and n has been incremented by 1.

What did you see instead?

The query may have actually executed multiple times and thereby n may have been incremented multiple times.

Reproducing the error

It was necessary to build some infrastructure to reproduce this error. I wrote cavein, a TCP tunnel server that purposely breaks connections to aid in reproduction. That, combined with go_database_sql_retry_bug, a test application that executes many updates over the unreliable connections provided by cavein can reliably reproduce queries being executed extra times.

Suggested solution

Automatic retry should be removed from Exec and Query. It is impossible at the library layer to know if it is safe to retry a query.

Issue 2:
when gobind or gomobile fails to generate code, print the source location.
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

running yarn build with @zeit/next-sass and using css-modules should result in ALL css being compiled and available in the build site.

Current Behavior

That's not the case. Only CSS for a single page / component is included, everything else is unstyled.

Steps to Reproduce (for bugs)

clone this repo: https://github.com/Kyle-Mendes/next-sass-modules

run yarn build

run yarn start

visit: localhost:3000/

The button may or may not be pink

visit localhost:3000/test

The headline may or may not be large and green.

Likely, the button is unstyled and the headline is styled.

My main project has hundreds of components, and right now, only one style is applied for the entire site. If components in the example was larger, there would still be only one styled component.

Issue 2:
I put a debugger in client side page (in the /pages dir specifically) and the chrome developer tool will pause but in the screen that usually shows source code to step through I see a blank window.

p.s. great job btw, nextjs is sweet.

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

Expected Behavior

Current Behavior

Steps to Reproduce (for bugs)

put DEBUGGER in any component render function

chrome browser will pause

open developer tools, go to Source tab

in the javascript asset, there is no source code, instead I see:

null

// WEBPACK FOOTER //
// ./pages/broker_of_record.js

## Context

I cannot step through source code and debug 😞

## Your Environment

| Tech | Version |
|---------|---------|
| next | 3.2.1 |
| node | v8.4.0 |
| OS | macOS Sierra 10.12.6 |
| browser | Version 61.0.3163.79 (Official Build) (64-bit) |
| etc | |
Issue 1:
When sticking heads together with some other python folks, @ogrisel and me recently found out that there is easy work-arounds so as to not check in the generated C code.

The idea is that the distributed source package has the generated code, but the repository doesn't.

When a dev wants to build, he needs cython (which I think is reasonable) and it will call cythonize.

when doing cdist however, the C code is generated and will be shipped.

Here is an example from @shoyer:

https://github.com/shoyer/cyordereddict/blob/master/setup.py#L44

Basically if you're doing a release, add the C files, otherwise cythonize the pyx files.

Issue 2:
We should only generate C files for releases, and not distribute them with the repo, as scipy does.

It's pretty easy to find out whether you are doing an dev build and cythonize or just build the c files that are shipped with the release.
Issue 1:
Everytime I quit Atom, either by using the menu item File -> Quit, or using CMD+Q in the keyboard, I get this message:

If I wait, nothing happens. If I click "wait", the program closes immediately.

Doesn't look very good if an Application can't quit properly 👶

Issue 2:
This happens every time I quit atom now. I just pulled and built 10 seconds before this issue was created.
Issue 1:
Version

2.6.10

Reproduction link

https://codesandbox.io/s/vue-template-7hwty

Steps to reproduce

Create component with render function which can render another component after time.

Rendering component after promise resolution/timeout is causing render twice and change of $attrs if child component has any prop with key equal to attr.

Comment prop in targetComponent and reload page.

All attrs are fine again.

What is expected?

Render function is called once and $attrs of component are not changed.

What is actually happening?

Render is called twice and attrs which has key same as props of child component are removed.

I created on my project custom loader component which has to handle loading of lazy loaded components and networking errors, because I can't use https://vuejs.org/v2/guide/components-dynamic-async.html#Handling-Loading-State in my case. This bug can be ommited by not adding downloaded component to reactivity (outside data as variable).

Issue 2:
Version

2.6.10

Reproduction link

https://codepen.io/anon/pen/zQVRgG?editors=1010

Steps to reproduce

Type something into the first field

Uncomment line 8 or 14 then try again

What is expected?

In console:

Render a

What is actually happening?

In console:

Render a
Render b
Issue 1:
Description of the new feature/enhancement

I was experimenting with adding the Python 3.7.3 shell to Windows Terminal and was trying to figure out a way to add its icon with extracting it from python.exe. Unless there is some way I am unaware of to use an icon embedded in an EXE or DLL as a profile's icon, this appears to be a feature that is missing. I would expect to be able to use the EXE or DLL's path as part of the profile's icon path, with an integer specifying the index after a comma, similar how autorun.inf files specify an icon to use.

Is this already possible to do? If not, is this something that should be added?

Issue 2:
Environment

Windows build number: 10.0.18362.356
Windows Terminal version: 0.5.2661.0

Steps to reproduce

Last week, I changed added the Dracula scheme to the JSON file and applied to my powershell and cmd profiles. It worked fine, however today, I opened Terminal and powershell was showing the original colors. cmd still works.

Expected behavior

It's supposed to us the same colorScheme as cmd.exe (shown below)

Actual behavior

Instead it looks like the classic powershell (shown below)
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I visit homepage and expect to see styled content immediately.

Current Behavior

Webpage does not immediately render styles in <style jsx> tags. It does however, render styles declared explicitly within a components style attribute. For example, in the code below, the text is blue on page load (immediately), but the .hello styles do not load immediately.

Steps to Reproduce (for bugs)

I am using Firebase Cloud Functions for the server portion of app. The .babelrc file is used both for next build and for a custom deployment step I need to perform to get the source files working on Cloud Functions. Firebase Cloud Functions do not install devDependencies, and it was complaining that both babel-runtime and styled-jsx were not found, so I added them to my dependency list.

// pages/index.js

export default () => (
<div className='hello'>
<p style={{ color: 'blue' }}>Hello World</p>
<style jsx>{`
.hello {
font: 15px Helvetica, Arial, sans-serif;
background: #eee;
padding: 100px;
text-align: center;
transition: 100ms ease-in background;
}
.hello:hover {
background: #ccc;
}
`}</style>
</div>
);

// .babelrc

{
"presets": [
["env", { "targets": { "node": "6.11" } }],
"next/babel",
"stage-0"
],
"plugins": [
"transform-inline-environment-variables",
["styled-jsx/babel", { "optimizeForSpeed": true }]
]
}

// from package.json

{
"dependencies": {
"babel-cli": "^6.26.0",
"babel-plugin-transform-inline-environment-variables": "^0.2.0",
"babel-preset-env": "^1.6.1",
"babel-preset-stage-0": "^6.24.1",
"babel-runtime": "^6.26.0",
"firebase-admin": "^5.5.1",
"firebase-functions": "^0.7.3",
"next": "^4.2.0",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"styled-jsx": "^2.2.1"
},
}

Issue 2:
Bug report

Describe the bug

Hot Module Replacement doesn't reload styles when switching between pages

To Reproduce

I created a demo repo here:

https://github.com/scabbiaza/nextjs-test

Steps to reproduce:

Create two pages, each one should include own CSS files:

https://github.com/scabbiaza/nextjs-test/tree/master/pages

In my case:

home page has styles to make a text RED

about page has styles to make a text GREEN

Run npm run dev

Open the home page, see that CSS has styles for the current page only

Text color is red, which is correct:

Click on the link to load About page, styles are not updated

Text color is red, which is incorrect! Should be green

Although, we can see that the script to hot-reload CSS was loaded:

If you refresh a page, or change any code, styles will be updated on the page.

Expected behavior

Styles should be updated when switchig between pages inside a SPA.

System information

OS: macOS

Browser: Chrome

Next: 7.0.2

zeit/next-css 1.0.1

Not sure if this is an issue in NextJs configuraitons, or in Webpack. Please advise.
Issue 1:
Neale Upstone opened SPR-2411 and commented

Currently, model and request are discarded rather than passed to ViewResolver.resolveViewName().

ViewResolver.resolveViewName should be overloaded with:

resolveViewName(String viewName, Map model, Locale locale, HttpServletRequest request)

with backwards compatibility provided by base versions of classes that implement ViewResolver having default implementation of:

public View resolveViewName(String viewName, Map model, Locale locale, HttpServletRequest request) throws Exception {

return resolveViewName( viewName, locale);

}

No further details from SPR-2411

Issue 2:
Andy Piper opened SPR-3620 and commented

We are seeing a memory leak in ProxyFactory when using cglib. I will attach a picture of the references.

Affects: 2.0.5

Attachments:

cglib.patch (7.25 kB)

cglib.patch (6.18 kB)

snap_cglib.jpg (190.08 kB)

Issue Links:

OSGI-161 Class memory leak ("is duplicated by")

#12663 MemoryLeak in Cglib2AopProxy.ProxyCallbackFilter

#8684 Cglib2AopProxy weak reference causes perm space to fill up
Issue 1:
Do you want to request a feature or report a bug?

Feature

What is the current behavior?

The render method doesn't receive currentState and currentProps.

What is the expected behavior?

The render method when called would receive currentState and currentProps as arguments. For instance:

render(currentState, currentProps) {
return ...
}

This could allow destructure the arguments to get only the needed properties, for example.

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

React 16.2 (It doesn't work in any React version)

Issue 2:
React version: 17.0.1

React reconciler: 0.26.0

Steps To Reproduce

Link to code example: https://codesandbox.io/s/r3f-contact-shadow-forked-iggyv?file=/src/index.js:308-745

let log = console.log

let id = 0
function Obj(node) {
this.id = id++
log('constructor', this.id)
node.addEventListener('wheel', () => log(this.id, 'wheel'), false)
}

function App(props) {
// The object is created twice, why does react do that, it's not documented
const [obj] = useState(() => log('new object') || new Obj(document.body))
return <div>{obj.id}</div>
}

ReactDOM.unstable_createRoot(document.getElementById('root')).render(<App />)

old demo

https://codesandbox.io/s/r3f-contact-shadow-forked-e44m3?file=/src/index.js

This demo creates a local object which is supposed to live within the components lifecycle.

For some reason concurrent mode creates two versions of that object, but one is stuck in the view section.

These controls aren't allowed to zoom, yet, when you give you mousewheel - it zooms. The control clearly receives the flag.

This does not happen in blocking mode and previous reconcilers (for instance react 16.4.x and reconcilers pre 0.26

Debugging in this is almost impossible as React swallows console.logs. Some users have found out that it indeed creates two branches of local state: https://twitter.com/belinburgh/status/1319990608010874883

The state object (orbit-controls) has side-effects, it creates events, but that is and should be of no consequence.