WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Hi again :)

I've noticed that imdecode does not perform the same EXIF-based autorotation that imread does. Having dug through the implementation some, it seems that this is because the ExifReader is filename-based. It would be really handy to add another code path for in-memory images that can look for EXIF data and then transpose/flip them accordingly.

Thanks!

Issue 2:
System information (version)

OpenCV => 3.1.0

Operating System / Platform => Ubuntu 16.04.1 LTS

Compiler => gcc version 5.4.0 20160609

Detailed description

There appears to be a bug in python cv2.imdecode behaves differently than cv2.imread, imread will correctly detect orientation and load the image properly, meanwhile imdecode will neither detect orientation or load the image properly. I cannot upload the input image itself as it contains sensitive data, but it's a completely standard image from an iPhone 6 with the following meta data (from file), displaying orientation etc:

JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, manufacturer=Apple, model=iPhone 6, orientation=upper-right, xresolution=150, yresolution=158, resolutionunit=2, software=10.0.1, datetime=2016:12:01 15:19:20], baseline, precision 8, 3264x2448, frames 3

Steps to reproduce

Load the file like:

fh = open('somefile.jpg', 'r') # or some other way of providing in memory streams, i.e. posted from a webserver
arr = np.asarray(bytearray(fh.read()), dtype=np.uint8)
tmp = cv2.imdecode(arr, -1) # 'load it as it is' or 1 for 3channel
cv2.imwrite('/tmp/loadedfile.jpg', tmp)

This will write the image back incorrectly to the disk, meanwhile if i either write the memory stream to disk and then use imread, it handles orientation and so forth correctly.
Issue 1:
@jbeda's idea.

It might be useful to have our standard set up scripts have the master run a registry. This would make it easy to upload/distribute "local" images across the cluster.

While Docker has a clear idea around local and remote images, with k8s we now have "cluster local" images that need to be distributed fast across the cluster but don't need to bounce off of the public registry.

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

https://github.com/kubernetes/kubernetes/issues?page=3&q=is%3Aissue+is%3Aopen+loadbalancer+update&utf8=%E2%9C%93

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

Bug report

Kubernetes version (use kubectl version):

Client 1.4.4

Cluster 1.4.6

Environment:

Cloud provider or hardware configuration: GKE

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

Kernel (e.g. uname -a):

Install tools:

Others:

3 node cluster

What happened:

Apply a rolling update, see the new pods come up to Running and Ready, the old pod(s) terminate.

Results in timeouts when hitting the load balancer. Wait a few minutes, and traffic is routed correctly.

What you expected to happen:

Traffic is seamlessly routed to the new pods.

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

https://gist.github.com/1d668ba12b12f450e8feffb21383ba44

kubectl apply -f deployment.yaml

kubectl get svc, wait for the external IP to come up.

Observe that traffic is routed correctly.

Edit something (like the environment variable)

kubectl apply -f deployment.yaml

Wait for old pods to be terminated. Observe timeouts until the load balancer updates itself.

Anything else do we need to know:
Issue 1:
Sometimes it's useful to declare new types within a class/interface, especially when it's a generic:

class Tree<T> {
private type Node = { data: T, subnodes: Node[] };
public root: Node = { data: null, subnodes: [] };
...
}

Such member types could be referred to as Tree<T>.Node.

Issue 2:
I normally want my class declaration to be the first thing in my file:

module foo {

/** My foo class */
export class MyFoo {

}
}

So when I want to declare an alias, I don't like the fact that my class has been pushed down further:

module foo {

type foobar = foo.bar.baz.FooBar;

/** My foo class */
export class MyFoo {

}
}

I suggest the following be permitted:

module foo {

/** My foo class */
export class MyFoo {
type foobar = foo.bar.baz.FooBar;
}
}

Since type foobar is just a compile-time construct, and if people want to write it that way, then they should be permitted to do so. Note that the type foobar is private to the class. It should not be permissible to export foobar.
Issue 1:
System information (version)

OpenCV => 4.1.0

Operating System / Platform => Ubuntu 18.04

Compiler => gcc 7.3.0

Detailed description

I ran optical flow detection in an NVIDIA OpenCL Docker container. With FarnebackOpticalFlow, the GPU version is 9 times faster than the CPU version. With DISOpticalFlow, there is no difference. It looks like it is due to the test for ocl::Device::getDefault().isIntel():

https://github.com/opencv/opencv/blob/master/modules/video/src/dis_flow.cpp#L1371

Is there a reason why the OpenCL implementation of DISOpticalFlow would not work on NVIDIA?

Steps to reproduce

If you like, I can provide a sample program. However, with the current source, DISOpticalFlow will not use OpenCL on NVIDIA.

Issue 2:
System information (version)

OpenCV => :4.0:

Operating System / Platform => :Mac OSX 10.13.6:

Compiler => :Xcode 8.33 and Xcode 10:

Detailed description

Here is my cmake command:

cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=~/Public \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
-D BUILD_opencv_python2=OFF \
-D BUILD_opencv_python3=OFF \
-D INSTALL_C_EXAMPLES=OFF \
-D BUILD_EXAMPLES=OFF ..

Then I got the follow error message:

-- Configuring incomplete, errors occurred!
See also "/Users/a635219/Public/opencv/build/CMakeFiles/CMakeOutput.log".
See also "/Users/a635219/Public/opencv/build/CMakeFiles/CMakeError.log".

Here are the errors in CMakeError.log:

Compilation failed:
source file: '/Users/a635219/Public/opencv/cmake/checks/cpu_popcnt.cpp'
check option: ' -msse -msse2 -msse3 -mssse3 -msse4.1'
===== BUILD LOG =====
Change Dir: /Users/a635219/Public/opencv/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_abbd3/fast"
/Applications/Xcode-10.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_abbd3.dir/build.make CMakeFiles/cmTC_abbd3.dir/build
Building CXX object CMakeFiles/cmTC_abbd3.dir/cpu_popcnt.cpp.o
/Applications/Xcode-10.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -O3 -DNDEBUG -fPIE -msse -msse2 -msse3 -mssse3 -msse4.1 -std=c++11 -o CMakeFiles/cmTC_abbd3.dir/cpu_popcnt.cpp.o -c /Users/a635219/Public/opencv/cmake/checks/cpu_popcnt.cpp
/Users/a635219/Public/opencv/cmake/checks/cpu_popcnt.cpp:14:4: error: "__POPCNT__ is not defined by compiler"
# error "__POPCNT__ is not defined by compiler"
^
/Users/a635219/Public/opencv/cmake/checks/cpu_popcnt.cpp:22:13: error: use of undeclared identifier 'CV_POPCNT_U32'
int j = CV_POPCNT_U32(1);
^
2 errors generated.
make[1]: *** [CMakeFiles/cmTC_abbd3.dir/cpu_popcnt.cpp.o] Error 1
make: *** [cmTC_abbd3/fast] Error 2

===== END =====

Any suggestion? Thanks.
Issue 1:
Describe the use case

As mentioned in this discussion, when we catch sqlalchemy.exc.IntegrityError with asyncpg, we may not have convenient access to the underlying asyncpg error.

Databases / Backends / Drivers targeted

asyncpg

Example Use

try:
# <execute statement>
except IntegrityError as ie:
...

E.g. currently for a check constraint violation, repr(ie.orig) is

IntegrityError("<class 'asyncpg.exceptions.CheckViolationError'>: ...\nDETAIL: ...")

and vars(ie.orig) is simply {'pgcode': '23514', 'sqlstate': '23514'}.

We would either want access to the actual asyncpg.exceptions.CheckViolationError object or we would want more of that object's fields copied into ie.orig. This appears to be a list of available fields (detail, table_name, etc.) although they may not all exist on every object, see here.

Currently the discussion mentions a workaround involving ie.orig.__cause__.

Additional context

No response

Issue 2:
Discussed in #8023

I think we should try to hit this in terms of all the async dialects all of which have to do what we are doing here, which would be that we make a common mixin / base for all the async-adapted DBAPIs. for asyncpg it would be used here:

sqlalchemy/lib/sqlalchemy/dialects/postgresql/asyncpg.py

Lines 760 to 761
in
19f0566

class Error(Exception):

pass

from ..exc import EmulatedDBAPIException

class Error(EmulatedDBAPIException):
pass

that way people can look at EmulatedDBAPIException to see the fields, which would be like:

class EmulatedDBAPIException:
"""an exception class used to adapt non-DBAPI database driver exceptions
into DBAPI exceptions"""

message: str
"""string message indicating the error"""

orig: Exception
"""the original driver-level exception object"""

that looks kind of boring so we can also add an accessor on

sqlalchemy/lib/sqlalchemy/exc.py

Line 525
in
19f0566

class DBAPIError(StatementError):

called "driver_exception". This would work similarly to how we have "dbapi_connection" / "driver_connection" on Connection.

that way someone that knows asyncpg can receive the top level SQLAlchemy DBAPIException and just refer to .driver_exception to get all the asyncpg fields.
Issue 1:
Challenge http://freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

This exercise tells you to write $($(".slot")[0]).html(slotOne);. So what happens when you do that?

Well, you start off by typing a dollar sign: $

Then add parantheses (both parentheses are added automatically): $()

Then add another dollar sign inside the parantheses: $($)

Now when you do that is locks up the whole page. I don't know much jQuery yet, but the browser keeps on chugging like it's an infinite loop. This is a big downside to the constanly refreshing editor, it runs EVERYTHING. Even if the code is not complete yet and will crash the browser.

Issue 2:
Issue 1:
Hi !

I'm in trouble since a moment using Flask with that point.

I'm registring 2 url rules in a blueprint :

class MyClass(Blueprint):
def setup(self):
self.add_url_rule('<service>.<ext>', view_func=service_call)
self.add_url_rule('networks.<ext>', view_func=networks)

I've read somewhere that the rule with the less number of parameters is taken in routing.

But, when I'm typing /networks.json, I'm in the service_call() function, not in networks()

When I print the url_map :

Map([ <Rule '/v1/<service>.<ext>' (HEAD, OPTIONS, GET) -> v1.service_call>,
<Rule '/v1/networks.<ext>' (HEAD, OPTIONS, GET) -> v1.networks>,
<Rule '/static/<filename>' (HEAD, OPTIONS, GET) -> static>])

After some tests, it seems that following code is working as expected :

class MyClass(Blueprint):
def setup(self):
self.add_url_rule('<service>/<ext>', view_func=service_call)
self.add_url_rule('networks/<ext>', view_func=networks)

So, the dot isn't considered as a "separator" ?

Is there a way to fix that ?

Thanks in advance for your help !

Issue 2:
The following program demonstrates the effect of defining the same route across blueprints and the app - fetch http://localhost:5678/hello for each run:

$ python server.py app app
$ python server.py bp
$ python server.py app
$ python server.py app bp
$ python server.py bp app
$ python server.py bp app bp

It surprised me that Flask does not report route collisions.

import sys
from flask import Flask, Blueprint

def main():
bp_num = 1
app = Flask(__name__)
for arg in sys.argv:
if arg == 'bp':
bp_name = 'bp%d' % bp_num
bp_num += 1
bp = Blueprint(bp_name, __name__)

@bp.route('/hello')
def hello_bp():
return 'Hello ' + bp_name
app.register_blueprint(bp)

if arg == 'app':
@app.route('/hello')
def hello():
return 'Hello'

app.run(host='0.0.0.0', port=5678)

if __name__ == '__main__':
main()
Issue 1:
On Julia 1.6 opnorm(rand(1,0),2) and also opnorm(rand(0,1),2) fail:

julia> opnorm(rand(1,0),2)

ERROR: TypeError: in typeassert, expected Tuple, got a value of type Nothing
Stacktrace:
[1] generic_normInf
@ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\LinearAlgebra\src\generic.jl:465 [inlined]
[2] normInf
@ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\LinearAlgebra\src\generic.jl:556 [inlined]
[3] generic_norm2(x::Matrix{Float64})
@ LinearAlgebra C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\LinearAlgebra\src\generic.jl:497
[4] norm2(x::Matrix{Float64})
@ LinearAlgebra C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\LinearAlgebra\src\dense.jl:105
[5] opnorm2
@ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\LinearAlgebra\src\generic.jl:705 [inlined]
[6] opnorm(A::Matrix{Float64}, p::Int64)
@ LinearAlgebra C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\LinearAlgebra\src\generic.jl:767
[7] top-level scope
@ REPL[44]:1

while the following work:

julia> opnorm(rand(1,0),1)
0.0

julia> opnorm(rand(1,0),Inf)
0.0

julia> opnorm(rand(2,0),2)
0.0

julia> opnorm(rand(0,0),2)
0.0

Issue 2:
The following computation leads to an error:

julia> a = rand(1,1)
1×1 Matrix{Float64}:
0.86747552215521

julia> t = a[:,2:1]
1×0 Matrix{Float64}

julia> opnorm(t)
ERROR: TypeError: in typeassert, expected Tuple, got a value of type Nothing
Stacktrace:
[1] generic_normInf
@ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\LinearAlgebra\src\generic.jl:465 [inlined]
[2] normInf
@ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\LinearAlgebra\src\generic.jl:556 [inlined]
[3] generic_norm2(x::Matrix{Float64})
@ LinearAlgebra C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\LinearAlgebra\src\generic.jl:497
[4] norm2(x::Matrix{Float64})
@ LinearAlgebra C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\LinearAlgebra\src\dense.jl:105
[5] opnorm2
@ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\LinearAlgebra\src\generic.jl:705 [inlined]
[6] opnorm(A::Matrix{Float64}, p::Int64)
@ LinearAlgebra C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\LinearAlgebra\src\generic.jl:767
[7] opnorm(A::Matrix{Float64})
@ LinearAlgebra C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\LinearAlgebra\src\generic.jl:766
[8] top-level scope
@ REPL[192]:1

But, there is no error if the matrix has a slightly different shape:

julia> a = rand(2,1);

julia> t = a[:,2:1]
2×0 Matrix{Float64}

julia> opnorm(t)
0.0
Issue 1:
After symfony/dev-master had a merge comment, I am also unable to installe a fresh version of 2.5.6. When for example trying to clear cache for prod environment, I get:

PHP Fatal error: Class 'Symfony\Component\HttpKernel\EventListener\TranslatorListener' not found in project_path/symfony/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php on line 142

Issue 2:
When SF2.1.5 was out, there was a new parameter 'kernel.trusted_proxies' in the framework that ended up in an issue when cache:clear was run in production that made some installations crash.

This problem and its solution was explained here: http://symfony.com/blog/symfony-2-0-21-and-2-1-5-released

For us, the only thing that worked was to run rm -rf app/cache/prod in all our Apache servers (about 100 machines) and regenerate cache folders with cache:warmup

We also temporally changed our deployment scripts to do this all the time, but I guess using cache:clear is a much better option, isn't it?

Is there any way to improve cache:clear command so that it does not crash when new parameters are added or the only way to go is to manually remove the cache to be 100% sure?

Please, note that there are already quite a bunch of big Symfony2 projects that cannot risk to crash in production because a new optional parameter has been added.

We're rsyncing instead of a symlink + folder switching strategy to deploy. Second option would have worked, but this is not the point.

Anyway, if the only way to be 100% sure is either cache removing or folder switching we will reconsider our deployment strategy in order to use it (which if I am not wrong is what Capifony does).

Waiting for your thoughts on that
Issue 1:
As mentioned before, the problem with the tooltip is active again in 3.1.1.

DEMO >> http://jsfiddle.net/m9AX5/5/

Issue 2:
I use Tooltip on buttons initiating AJAX loads, which remove the content including the tooltip parent element. In that case the tooltip won't hide.

Steps to reproduce:

Mouseover the button with tooltip

Tooltip is shown

Click the button (while the tooltip is shown)

The element where the tooltip parent element was placed is now removed/replaced with AJAX

New content is displayed, but the tooltip is still present, and I am unable to remove it (the mouseleave event won't fire, because the tooltip parent element is no longer there).

I created JS fiddle demonstrating the issue: http://jsfiddle.net/fjHh5/
Issue 1:
Summary of the new feature/enhancement

I'd expect the terminal window to be dragable on the full window header, but it doesn't work on the tabs pane:

Issue 2:
I think its really nice that you can put the terminal-tabs in your titlebar but I got an issue there.

You can't move the window around klicking on the blank space in the the-bar to move the window around (highlighted in the screenshot).

Since people are moving their terminal quite often it would be nice to offer this space, so you can drag your terminal around.
Issue 1:
Electron Version: 2.0.0

Operating System (Platform and Version): macOS High Sierra 10.13.3

Last known working Electron version: N/A

Expected Behavior

When creating a new webview and assigning a guestinstance attribute copied from another webview, the new webview should take on the guestinstance attribute value.

Actual behavior

When creating a new webview and assigning a guestinstance attribute copied from another webview, the new webview's guestinstance attribute value is undefined.

To Reproduce

I created a sample repo here, the last commit containing the example code that demonstrates the issue.

$ git clone https://github.com/nos/electron-move-webview
$ cd electron-move-webview
$ yarn install && yarn start

This is the code in a nutshell:

moveWebview = (existingWebview, container) => {
const { attributes } = existingWebview;
const webview = document.createElement('webview');

console.log('original guestinstance:', existingWebview.guestinstance); // "2"

for (let i = 0; i < attributes.length; i += 1) {
webview.setAttribute(attributes[i].nodeName, attributes[i].nodeValue);
}

console.log('copied guestinstance:', webview.guestinstance); // undefined

document.body.appendChild(webview);
existingWebview.parentNode.removeChild(existingWebview);

return webview;
}

The behavior is the same if I replace the for-loop above with this one-liner:

webview.guestinstance = existingWebview.guestinstance;

Screenshots

Additional Information

This doesn't seem to be consistent. In the scenario I'm seeing it, it's happening when moving from one DOM element B to A, but not from A to B. Element B appears later in the DOM, in case it's relevant.

In the scenario where this does assign the guestinstance value properly, the second webview never actually loads the content. It behaves like an empty div.

A hunch from the above info -- it seems like the webContent might be unloading on the first move, and so the guestinstance isn't able to be assigned on the second move. I'm not sure why the content isn't loading on the first move though.

Issue 2:
Electron version: 1.8.3

Operating system: MacOS 10.13.3

Expected behavior

For code that attempts to move a webview's contents to a new webview before the first webview is about to be unmounted from the dom:

const originalWebview = document.getElementById('webview1')

setTimeout(() => {
const newWebview = document.createElement('webview');
newWebview.guestinstance = originalWebview.guestinstance
document.body.appendChild(newWebview);
document.body.removeChild(originalWebview);
}, 1000);

After the timeout, the second webview should have the content of the first webview

Actual behavior

The second webview does not receive the content

How to reproduce

Repo

git clone https://github.com/mjbvz/electron-webview-guestinstance-on-unmount
cd electron-webview-guestinstance-on-unmount
npm install
npm start
Issue 1:
I'm getting TypeError: cli.isMultipleCompiler is not a function when running an app via docker. The node modules are installed, I'm using

"webpack": "5.72.1",
"webpack-cli": "4.9.2",
"webpack-dev-server": "4.8.0"

Any ideas what could be causing it?

Here's the full error

[webpack-cli] TypeError: cli.isMultipleCompiler is not a function
shared | at Command.<anonymous> (/app/node_modules/@webpack-cli/serve/lib/index.js:146:35)
shared | at async Promise.all (index 1)
shared | at async Command.<anonymous> (/app/node_modules/webpack-cli/lib/webpack-cli.js:1674:7)

Issue 2:
Describe the bug

@webpack-cli/serve 1.7.0： cli.isMultipleCompiler is not a function

isMultipleCompiler is add in 1.7.0

code in v1.6.1

const compilers = typeof compiler.compilers !== "undefined" ? compiler.compilers : [compiler];

should be cli.isMultipleCompiler?.(compiler) ?