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

OpenCV => 3.1

Operating System / Platform => Ubuntu 16.04(PC) JestonTk1 JestonTX1

Compiler => gcc

Detailed description

Question Projection: YOLO-Darknet https://pjreddie.com/darknet/install/

Error occurred when using cvRound function

Steps to reproduce

Just run make

obj/image.o：In Function ‘cvPointFrom32f’：

/usr/local/include/opencv2/core/types_c.h:929：undefined reference to ‘cvRound’

/usr/local/include/opencv2/core/types_c.h:930：undefined reference to ‘cvRound’

obj/image.o：In Function ‘cvReadInt’：

/usr/local/include/opencv2/core/core_c.h:2318：undefined reference to ‘cvRound’

obj/image.o：In Function ‘cvEllipseBox’：

/usr/local/include/opencv2/imgproc/imgproc_c.h:1041：undefined reference to ‘cvRound’

/usr/local/include/opencv2/imgproc/imgproc_c.h:1042：undefined reference to ‘cvRound’

obj/darknet.o:/usr/local/include/opencv2/core/types_c.h:929: more undefined reference to ‘cvRound’ follow

Solution

Modify the cvdef.h by adding the follow codes:

/*************************************************************************************\
* Test add fast_math.hpp by devin *
\*************************************************************************************/

#ifndef __cplusplus
#include "opencv2/core/fast_math.hpp"
#endif

Issue 2:
System information (version)

OpenCV => 3.2

Operating System / Platform => linux Ubuntu 16.04 64 Bit

Compiler => gcc

Detailed description

I have recently installed opencv 3.2 in ubuntu 16.04 system and tried to run a C code using opencv library. The code is not compiling because of the following issue:

/tmp/ccwgquWQ.o: In function `cvPointFrom32f':
try.c:(.text+0x54d): undefined reference to `cvRound'
try.c:(.text+0x563): undefined reference to `cvRound'
/tmp/ccwgquWQ.o: In function `cvReadInt':
try.c:(.text+0xe68): undefined reference to `cvRound'
/tmp/ccwgquWQ.o: In function `cvEllipseBox':
try.c:(.text+0x10d4): undefined reference to `cvRound'
try.c:(.text+0x10f6): undefined reference to `cvRound'
collect2: error: ld returned 1 exit status

I have asked a question related to this in stackoverflow and I got the response saying that, its a bug present in opencv3.2. [http://stackoverflow.com/questions/42918747/yolo-c-compilation-failure-with-debug-1]

The reason for calling it as a bug is as follows:

CvRound function has bee defines in types_c.h in opencv2 whereas in opencv3 its not been defined in types_c.h but in core/fast_math.hpp. Despite being not defined in types_c.h its still being called in types_c.h, core_c.h and imgproc_c.h without any reference to fast_math.hpp

I have tried including the "fast_math.hpp" path (#include core/fast_math.hpp) in types_c.h, core_c.h and imgproc_c.h but it didn't solve the issue.

Kindly, look into this issue and get it resolved as early as possible
Issue 1:
The following is a proposal for reworking the existing kube-up.sh, kube-down.sh, and kube-push.sh to eventually be in Go for advanced cloud deployments, while allowing the existing shell investment to continue for a period of time.

Define a deploy/deploycmd/api versioned Cluster object. This object holds all general configuration variables of the cluster and the add-on pods, plus IAAS relevant variables specific to each IAAS provider. (Issue to be filed soon to haggle over what's in these structures.)

Create a kubedeploy command with up, down, and push verbs, each of which take a cluster YAML. The up and push verbs take a path (possibly optional in the case of push) to the Kubernetes binaries to deploy.

The initial implementation of kubedeploy only has to act as a YAML -> env variable translator. Re-write the existing shell scripts to use common env variables (they're actually all close, e.g. config-default.sh, etc.). Then kubedeploy can take the given API object, spew a chunk of environment variables, and carefully execute the existing bash scripts (vigorous handwaving, but this part is not that technically challenging, just a hairy yak).

We can then define the interfaces in Go for what an "enlightened" deployment looks like, and in the process try to transition the GCE cloud provider over (keeping an eye on, say, Vagrant as the N=2 case.)

As an added benefit, the last bullet gives us a place to start upstreaming GKE cluster deployment code, which has been a desire for the GKE team for a while. Oh, and @satnam6502 will probably love it for scalability, because I think he gouges his eyes out every time he deals with the bash in util.sh.

This will also give us a place for kubedeploy upgrade in the fullness of time, which is a distinct use case from push.

Thoughts?

cc @jlowdermilk, @brendandburns, @alex-mohr, and anyone else that cares.

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubelet-gce-e2e-ci/8886/

Failed: [k8s.io] Container Runtime Conformance Test container runtime conformance blackbox test when running a container with a new image should be able to pull image from docker hub {E2eNode Suite}

/var/lib/jenkins/workspace/kubelet-gce-e2e-ci/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:290
Timed out after 300.000s.
Expected
<bool>: false
to be true
/var/lib/jenkins/workspace/kubelet-gce-e2e-ci/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/test/e2e_node/runtime_conformance_test.go:281
Issue 1:
I'm trying to get three.js to run in rogerwang/node-webkit, the canvas_ examples are all fine, but I got a Uncaught TypeError: Type error when opening the webgl_ examples.

The line that caused this problem is:

_gl.uniformMatrix4fv( p_uniforms.projectionMatrix, false, camera._projectionMatrixArray );

After commenting this line, other calls to _gl.uniformMatrix4fv will still throw type errors.

Since three.js is fine under Chromium, so I think it's caused by absence of some features in node-webkit, what reasons do you think may have caused this error?

Thanks.

Issue 2:
Description of the problem

Why is there no videoTexture toJson imlpemented. Saving state of a videoTexture saves it as Texture with an image and not VideoTexture with video. This happens because videoTexture inherits its toJson from Texture.

Also there is no support for parsing videoTexture and saving video tags. Is the video saving feature under development or are we have to stop using videoTexture and use Texture with render loop to drawImage.

Three.js version

[ x] Dev

[ x] r80

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

Linux

Android

IOS

Hardware Requirements (graphics card, VR Device, ...)
Issue 1:
Not a bootstrap issue but an annoying navigation issue in getbootstrap.com/components/

On my wide screen the height of the left menu is bigger than my screen's height. Due to some smart scrolling, I guess, all items in the left menu which are below my visible area are not accessible. I would not normally report an issue like this, but this website is about CSS and should work as good as the framework is. And it really is.

Issue 2:
Hi,

Links on the bottom of the menu on the left are not easy reachable. I have to manually scroll to the end of the page.

Maybe add a scrollbar ?:
Issue 1:
[Enter steps to reproduce below:]

...Create a branch of the second to last commit of the master

...Switch to that branch

Made some changes to file, commit changes

Switch back to master

Atom updated to the "Master version" and resulted in the problem below:

Atom Version: 0.169.0

System: Microsoft Windows 7 Home Premium

Thrown From: Atom Core

Stack Trace

Uncaught Error: ENOENT, open 'c:\Users\Ralitchka\Documents\OSU\CS 290\assignment1\bio.md'

At c:\Users\Ralitchka\AppData\Local\atom\app-0.169.0\resources\app\node_modules\q\q.js:126

Error: ENOENT, open 'c:\Users\Ralitchka\Documents\OSU\CS 290\assignment1\bio.md'
at Error (native)

Commands

2x -2:27.8 editor:newline (atom-text-editor.editor)
14x -1:18.4 core:move-left (atom-text-editor.editor)
-1:14.7 core:backspace (atom-text-editor.editor)
-1:13.5 core:delete (atom-text-editor.editor)
-1:11.3 editor:move-to-end-of-screen-line (atom-text-editor.editor)
9x -1:10.3 core:backspace (atom-text-editor.editor)
14x -0:53.3 core:move-left (atom-text-editor.editor)
-0:51.0 editor:newline (atom-text-editor.editor)
-0:45.3 core:delete (atom-text-editor.editor)
4x -0:42.6 core:backspace (atom-text-editor.editor)
-0:00.0 core:save (atom-text-editor.editor)

Config

{
"core": {},
"editor": {}
}

Installed Packages

# User
No installed packages

# Dev
No dev packages

Issue 2:
switch the node_modules package from a version to a git repository

npm install

Atom Version: 0.165.0

System: Mac OS X 10.10.1

Thrown From: Atom Core

Stack Trace

Uncaught Error: ENOENT, open '/Users/joscha/Development/mailbutler/node_modules/grunt-crx/tasks/crx.js'

At /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:126

Error: ENOENT, open '/Users/joscha/Development/mailbutler/node_modules/grunt-crx/tasks/crx.js'
at Error (native)

Commands

-0:28.1 find-and-replace:show (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
-0:26.0 core:confirm (input.hidden-input)
7x -0:19.3 core:move-left (input.hidden-input)
-0:14.9 core:backspace (input.hidden-input)
-0:14.2 core:move-left (input.hidden-input)
2x -0:13.7 core:move-right (input.hidden-input)
-0:13.1 core:move-left (input.hidden-input)
-0:12.8 core:backspace (input.hidden-input)
7x -0:12.5 core:move-right (input.hidden-input)
-0:11.3 core:backspace (input.hidden-input)
2x -0:10.9 core:move-right (input.hidden-input)
-0:09.7 core:backspace (input.hidden-input)
5x -0:09.3 core:move-left (input.hidden-input)
-0:02.6 core:copy (input.hidden-input)
-0:00.7 core:paste (input.hidden-input)
-0:00.0 core:save (input.hidden-input)

Config

{
"core": {
"ignoredNames": [
".git",
".svn",
".DS_Store"
]
},
"editor": {
"showInvisibles": true,
"autoIndentOnPaste": false
}
}

Installed Packages

# User
atom-jasmine, v0.4.0
editorconfig, v0.2.2
jsformat, v0.7.18
language-scala, v1.1.0
linter, v0.9.0
linter-coffeelint, v0.1.7
linter-jshint, v0.1.0
linter-php, v0.0.11
travis-ci-status, v0.11.1
visual-bell, v0.9.0

# Dev
No dev packages
Issue 1:
The right side of topbar stops functioning properly when you shrink the size of the screen under the min-width. This is observable in both the app and fluid layout if you shrink the screen size.

This is due to the position fixed of the topbar forcing it to be anchored to the top right. I tried looking to see if there was a way to support the min-width, but this does not seem possible without javascript usage. That said the UX should not break under these conditions. Simply adding something like the code below will prevent this, but it's not a bulletproof solution.

.topbar .container {

width: auto;

max-width: 940px;

}

.topbar .container-fluid {

min-width: 0px;

}

Issue 2:
When you resize the window to a smaller width some menu items will disappear. You can try it here: http://twitter.github.com/bootstrap/examples/container-app.html

I didn't look much further into this but I saw that twitter.com has solved this problem by using a javascript that changes the left property for the top bar, but it uses an other approach to create the topbar. Any thoughts about this?
Issue 1:
Hello. How to tabify code? How to replace spaces to tabs?

Issue 2:
Would it be possible to add a VS Code command to convert tabs to spaces, and vice versa?

I copied some JSON code from GitHub into VS Code, using Google Chrome, and it's indented using tabs. I'd like to convert it to use 2 spaces.

I searched for this issue on here, and couldn't find it. I only saw references to VS Code settings for using tabs or spaces by default.

Cheers,

Trevor Sullivan

Microsoft MVP: PowerShell
Issue 1:
The casting of a ctypes Structure object array to numpy array usually results with a numpy structured array. But if the Structure contains a c_wchar array (string) field it becomes an object. I could not find the reason why this is happening.

Example:

import numpy as np
import ctypes

class A(ctypes.Structure):
_fields_ = [('s', ctypes.c_wchar * 5)]

np.array((A*2)())
# array([<__main__.A object at 0x7fa99678f9d8>,
# <__main__.A object at 0x7fa98804f1e0>], dtype=object)

While:

class B(ctypes.Structure):
_fields_ = [('s', ctypes.c_char * 5)]

np.array((B*2)())
# array([([b'', b'', b'', b'', b''],), ([b'', b'', b'', b'', b''],)],
# dtype=[('s', 'S1', (5,))])

Environment:

Python 3.6, numpy 1.13.1, Ubuntu 16.04

Issue 2:
The following minimal example crashes with numpy 1.14 and python 2.7.5:

import numpy
a = numpy.zeros(64)
numpy.save("/tmp/a.npy", a)

lib/python2.7/site-packages/numpy/lib/format.pyc in _write_array_header(fp, d, version)
306 header.append("}")
307 header = "".join(header)
--> 308 header = asbytes(_filter_header(header))
309
310 hlen = len(header) + 1 # 1 for newline

lib/python2.7/site-packages/numpy/lib/format.pyc in _filter_header(s)
465 tokens.append(token)
466 last_token_was_number = (token_type == tokenize.NUMBER)
--> 467 return tokenize.untokenize(tokens)
468
469

/usr/lib64/python2.7/tokenize.pyc in untokenize(iterable)
260 """
261 ut = Untokenizer()
--> 262 return ut.untokenize(iterable)
263
264 def generate_tokens(readline):

/usr/lib64/python2.7/tokenize.pyc in untokenize(self, iterable)
196 break
197 tok_type, token, start, end, line = t
--> 198 self.add_whitespace(start)
199 self.tokens.append(token)
200 self.prev_row, self.prev_col = end

/usr/lib64/python2.7/tokenize.pyc in add_whitespace(self, start)
185 def add_whitespace(self, start):
186 row, col = start
--> 187 assert row <= self.prev_row
188 col_offset = col - self.prev_col
189 if col_offset:

AssertionError:

The tokenize is now performed before the padding and the newline is added to the header string. This does not seem to work in python 2.7. Adding the newline in _filter_header(s) fixes the problem for python 2.7, but does not work in python 3. This could be done in the version distinguishing part of _filter_header(s). I am not familiar with the numpy internals and the recent change for the 64 byte alignment (#9025), so I do not feel comfortable to change it myself.
Issue 1:
In recent atom releases I have massive problems with unicode chars. Here is a screenshot of atom, below the same file in gedit. I also tried greek letters, they don't work as well. IIRC this regression appeared in 0.190.

$ atom --version
0.192.0

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:
Material-UI: material-ui@0.16.4

React: react@15.4.1

Browser: chrome@54.0.2840.100

The focus <hr> is rendered with the following styles:

border-bottom: 2px solid;
border-bottom-width: 2px;
border-bottom-style: solid;
border-bottom-color: initial;

The result is a black focus underline

Issue 2:
Problem description

It's a weird issue. The border of a TextField has the color black (see Screenshot):

Checking the CSS in the developer console:

So obviously there is no color set on the border.

This happens in Chrome, but in Firefox it works. But it get even more weird: When I build my app with the flag NODE_ENV=production then it DOES work properly.

Also changing these two lines of code here: https://github.com/callemall/material-ui/blob/master/src/TextField/TextFieldUnderline.js#L94-L95

… to borderBottom: 'solid 2px ' + focusColor, work as well, even with a normal build.

I wanted to create a Webpackbin example, but there it works fine.

I'm using Meteor, don't know if that matters. But maybe someone find a solution.

Versions

Material-UI: 0.16.4

React: 15.4.1

Browser: Chrome 54
Issue 1:
Compilation error, when:

export const Desktop = withStyles(styles)<Page>(DesktopComponent)

Where:

const styles = {
container: {
position: 'absolute', // <-- if we will remove this line, all will be ok
top: 0,
left: 0,
right: 0,
bottom: 0,
padding: 10
}
}

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

Expected Behavior

Looks like it's a default key, but I have an error.

Current Behavior

Have following compilation error:

error TS2345: Argument of type '{ container: { position: string; top: number; left: number; right: number; bottom: number; paddin...' is not assignable to parameter of type 'Record<"container", Partial<CSSProperties>> | StyleRulesCallback<"container">'.
Type '{ container: { position: string; top: number; left: number; right: number; bottom: number; paddin...' is not assignable to type 'StyleRulesCallback<"container">'.
Type '{ container: { position: string; top: number; left: number; right: number; bottom: number; paddin...' provides no match for the signature '(theme: { direction: "ltr" | "rtl"; palette: Palette; typography: Typography; mixins: Mixins; breakpoints: Breakpoints; shadows: ["none", string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string]; transitions: Transitions; spacing: Spacing; zIndex: ZIndex; }): Record<"container", Partial<CSSProperties>>'.

Context

Your Environment

Tech
Version

Material-UI
1.0.0-beta.19

React
16.0.0

browser
Chrome 61.0.3163.100

etc
Typescript template

Issue 2:
If I navigate to an IconButton using tab and press Enter, if there is some handler that changes the component, then the ripple effect freezes.

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

Expected Behavior

The ripple effect should disappear, as it happens with a regular button

Example with Button (expected behavior) : https://codesandbox.io/s/6km1v704k

Current Behavior

The ripple effect freezes and stays visible.

Steps to Reproduce (for bugs)

Example with IconButton : https://codesandbox.io/s/2wp3yyn30

Navigate using tab keys to the second icon and press enter.

Context

I'm building an application that should be mainly focused on keyboard input.

The user will enter a lot of data. For a good user experience, it is important that he can do the most with the keyboard.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.21

React
16.1.0

browser
FF 57.0 and Chromium Version 62.0.3202.89
Issue 1:
I am using windows 32 bit OS.When I try to open html files ,the editor stops responding ,the file editing area becomes unclickable.

Here is the screenshot of the issue: http://prntscr.com/63oo3q

Issue 2:
May be a known issue, but files with large embedded images such as github's public/enterprise/maintenance.html will often cause Atom to freeze (MacVim actually struggles as well).

Seems some of them (github's public/maintenance.html for instance) work fine when in soft wrap mode, or until you move your cursor to the long line when out of soft wrap.
Issue 1:
To track the issue, even though @rvraghav93 said he'll work on it ;)

Nested cross-validation was possible before, but not when providing a custom cv object and either stratification or the number of samples not being divisible by the number of folds.

Maybe StratifiedShuffleSplit would be a good example.

Issue 2:
We recently merged a change to cross-validation generators that allows, e.g. KFold to be performed within the training of an outer KFold operation. This should be illustrated with an example. Be creative!
Issue 1:
In requests/requests-kerberos we use GSSAPI to not only authenticate to the server, but also authenticate the server as well. It's called mutual authentication. The way that Session.send resolves redirects doesn't allow us to authenticate the redirects.

This is a problem because if a user sends a request to host_a which redirects us to host_b and we authenticate host_b successfully, that really doesn't mean anything to the user if he can't actually trust that the process which issued the redirect was actually host_a.

This means that if we want to require mutual authentication, we cannot follow redirects at all, even if the servers are capable of authenticating their redirects.

Would it be possible to either:

Dispatch the response hook on redirects

Create a new kind of hook which authentication mechanisms can install specifically for handling redirects?

I see problems with option 1. If we'd be amenable to option 2, I'll work on a pull request for it. Unless someone says otherwise I'd call the hook redirect.

Issue 2:
The last release of requests was from June 29.

Since then charset-normalizer 3.x has been released, which the release is incompatible with. This was already fixed in #6261, but is unreleased.

Clearly this affects many people, as this issue has been re-reported so many times:

#6268

#6272

#6298

#6288

#6305

#6281

#6273

#6272

If even just to stop people from wasting their time re-reporting this, please make a release.
Issue 1:
Electron is crashing while running a build in TravisCI. I setup my own crash reporter server to capture the upload_file_minidump file and the other values.

The text values are:

{
"pid": "2190",
"ptime": "8282",
"lsb-release": "Ubuntu 12.04.5 LTS",
"prod": "Electron",
"ver": "0.36.0",
"_companyName": "Cypress",
"_productName": "Chromium",
"_version": "0.2.0",
"platform": "linux",
"process_type": "browser"
}

The actual minidump from the crash is here. Is this crash file helpful?

I've tested Electron in my own Linux 12.04 Server, OSX, and even CircleCI, and it does not crash. So it must be something particular to TravisCI. It is crashing consistently every single time in the exact same area.

I'm going to do more research on the actual cause of the crash to help determine the root cause - such as a specific action happening on the page. I'll update the issue when I find out more.

Issue 2:
0 libnode.dylib 0x0000000113066322 v8::internal::Heap::IterateAndMarkPointersToFromSpace(v8::internal::HeapObject*, unsigned char*, unsigned char*, bool, void (*)(v8::internal::HeapObject**, v8::internal::HeapObject*)) + 386
1 libnode.dylib 0x0000000113065bfe v8::internal::Heap::DoScavenge(v8::internal::ObjectVisitor*, unsigned char*) + 574
2 libnode.dylib 0x00000001130647e9 v8::internal::Heap::Scavenge() + 937
3 libnode.dylib 0x0000000113063353 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) + 915
4 libnode.dylib 0x0000000113062bce v8::internal::Heap::CollectGarbage(v8::internal::GarbageCollector, char const*, char const*, v8::GCCallbackFlags) + 606
5 libnode.dylib 0x000000011303098f v8::internal::Factory::NewUninitializedFixedArray(int) + 95