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

OpenCV => 4.1.2

Operating System / Platform => Windows 7 64 bit

Compiler => Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32

Detailed description

I've tuned a pre-trained tensorflow model using the object_detection API.

After freezing the model and using the "tf_text_graph_ssd.py" script (the pre-trained model I used was SSD_inception_v2_coco) I generated the graph.pbtxt file.

Each time I try to load the model with

cv.readNetFromTensorflow("frozen_inference_graph.pb", "graph.pbtxt")

Windows immediately says Python stopped working and crashes.

The same thing happens when I try to use it in C++.

Steps to reproduce

import cv2 as cv
cv.readNetFromTensorflow("frozen_inference_graph.pb", "graph.pbtxt")

frozen_inference_graph.pb

graph_and_config.zip

Issue 2:
System information (version)

OpenCV => :3.4

Operating System / Platform => :CentOS-7.5 64Bit:

Compiler => :GCC:

Detailed description

The RPM installation package under CENTOS was automatically added with LIB_SUFFIX=64 when use cmake. At this time, an error occurred and the shared library file directory became lib6464.

I think there is an error in line 595 of the CMakeLists.txt file, because the new version of cmake will automatically form CMAKE_INSTALL_LIBDIR according to the operating system environment, and the 64 - bit system will form lib64 without adding a LIB_SUFFIX it self

Steps to reproduce

cmake -DLIB_SUFFIX=64
Issue 1:
This is valid typescript

interface Bar {
name: string;
}

export default Bar;

However, the compiler complains if I do this:

export default interface Bar {
name: string;
}

I would have expected this to work in both cases as if I substitute interface with class it works fine.

Reading the spec here, https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#11.3.4, shows that interfaces cannot be part of a default export, but why?

Thanks!

Issue 2:
export default abstract class B {

}

By the way, the same with

export default declare class B {

}

Seems to be a parser bug
Issue 1:
Challenge Waypoint: Create a Form Element has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}

h2 {
font-family: Lobster, Monospace;
}

p {
font-size: 16px;
font-family: Monospace;
}

.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}

.smaller-image {
width: 100px;
}
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p>Click here for <a href="#">cat photos</a>.</p>

<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>

<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<input type="text" placeholder="cat photo URL"/>
</form>

Issue 2:
I think I wrote correctly but it doesn't work like I thought :(
Issue 1:
shell> !
bash: syntax error near unexpected token `)'

shell> (
bash: syntax error near unexpected token `)'

I understand that these might not be valid shell commands but the syntax error is puzzling.

Issue 2:
shell> ./julia -E "println(ARGS)"
bash: syntax error near unexpected token `('

shell> ./julia -E \"println(ARGS)\"
"println(ARGS)"

shell> ./julia -E println\(ARGS\)
bash: syntax error near unexpected token `('
Issue 1:
I'm using Bootstrap 3 RC1 and even though there is nothing but a row and a column, I can scroll horizontally (just a little bit). I guess there shouldn't be any horizontal scrolling at all.

<div class="row">
<div class="col-lg-12">content</div>
</div>

Issue 2:
My (empty) row always causes a horizontal scrollbar to appear (~10px), and I don't think just hiding it is the best solution. Here's my code:

<div class="row">
<div class="col-lg-12">
</div>
</div>

Note: The column is in my code empty, too.

Thank for your help, hice3000.
Issue 1:
I seem to have broken the dragonfly builder after:

syscall: allow nacl's fake network code to Listen twice on the same address

https://go-review.googlesource.com/16650 (rev 8ee90fa)

... which added a test to the net package, which dragonfly can't pass.

Failure is:

http://build.golang.org/log/732b7056b17948b06073dbe399de931765307152

--- FAIL: TestListenCloseListen (0.00s)
net_test.go:283: failed on try 1/10: listen tcp 127.0.0.1:52085: bind: address already in use
net_test.go:283: failed on try 2/10: listen tcp 127.0.0.1:52093: bind: address already in use
net_test.go:283: failed on try 3/10: listen tcp 127.0.0.1:52101: bind: address already in use
net_test.go:283: failed on try 4/10: listen tcp 127.0.0.1:52109: bind: address already in use
net_test.go:283: failed on try 5/10: listen tcp 127.0.0.1:52117: bind: address already in use
FAIL
FAIL net 4.894s

I see a recent failure: http://build.golang.org/log/c6e3c951e0398d21ff52b932bc261ab70003120b

--- FAIL: TestServerConnState (1.02s)
serve_test.go:3041: Unexpected events.
Got log: Conn 1: new active idle active closed
Conn 2: new active idle active
Conn 3: new active hijacked
Conn 4: new active hijacked
Conn 5: new closed
Conn 6: new active closed
Conn 7: new active idle closed

Want: Conn 1: new active idle active closed
Conn 2: new active idle active closed
Conn 3: new active hijacked
Conn 4: new active hijacked
Conn 5: new closed
Conn 6: new active closed
Conn 7: new active idle closed

FAIL
FAIL net/http 20.463s

... which suggests the net package, poller, or runtime are processing networking events in a different order than all the other platforms.

We also don't have a new-style builder for dragonfly, so people without dragonfly can't use gomote or trybots to debug.

I think a Dragonfly person needs to help.

Issue 2:
Link to original mailing list post.

Over here, I have a demo package: https://github.com/pwaller/vendor-collision

On go1.5rc1, if you git clone it and do go build (not go get), you get the following:

$ go build -v
package github.com/pwaller/vendor-collision
imports vendor.org/p
imports vendor.org/p/vendor/example.org/library: must be imported as example.org/library

To clarify: "vendor-collision" refers to the collision of vendoring methods, not packages, or anything like that.

Also, for the record, this is what the package looks like:

~/.local/src/github.com/pwaller/vendor-collision$ tree
.
├── main.go
└── vendor
└── vendor.org
└── p
├── p.go
└── vendor
└── example.com
└── library
└── library.go

6 directories, 3 files

main.go imports vendor.org/p which directly imports vendor.org/p/vendor/example.com/library, where vendor.org/p should import example.com/library under the GO15VENDOREXPERIMENT regime, but vendor.org/p's code is in a git submodule. I don't want to poke vendor.org/p's code if I can avoid it. (And persuading them to change to the new method will break people's ability to easily build on go1.4)

/cc @davecheney
Issue 1:
Hi,

Once the code is run, the output shows #target5 button twice. There seems to be some bug in the system.

Screenshot Attached.

Issue 2:
Hi,

Though I did everything required for this challenge when I click on 'run tests' it does not take me to the next challenge, instead, it keeps on saying 'keep trying'. Going on the help site, I have discovered another person having exactly the same problem. Please help us.

Thank you.

Challenge Name

Use Hex Code to Mix Colors

https://www.freecodecamp.com/en/challenges/html5-and-css/use-hex-code-to-mix-colors

#### Screenshot
<!-- Add a screenshot of your issue -->
Issue 1:
Currently only the project tree reloads. But if a file was modified outside vscode the working file is never updated. You have to close the file and re-open.

So working files should have some sort of message that a file has been modified outside vscode, and give the option to reload. But at the very least the functionality to reload the project tree should also reload the working files if they have been modified outside vscode

Issue 2:
As above. I've been testing it out by switching branches in git using terminal and the file does not update. Sublime & Atom do it immediately, but with Code you have to switch out and back into the file in order for it to update.
Issue 1:
Description of problem:

Version-Release number of selected component (if applicable):

How reproducible:

always

Steps to Reproduce:

1.ip addr add fe80::1 dev p14p14

2. nc -6 -l 1234

3. python -c "import requests; requests.get('http://[fe80::1%25p14p1]:1234')"

3. nc -v6 'fe80::1%p14p1' 1234

Ncat: Version 6.40 ( http://nmap.org/ncat )

Ncat: Connected to fe80::1:1234.

Actual results:

The python script shows a traceback:

Traceback (most recent call last):

File "", line 1, in

File "/usr/lib/python2.7/site-packages/requests/api.py", line 55, in get

return request('get', url, *_kwargs)

File "/usr/lib/python2.7/site-packages/requests/api.py", line 44, in request

return session.request(method=method, url=url, *_kwargs)

File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 335, in request

resp = self.send(prep, *_send_kwargs)

File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 438, in send

r = adapter.send(request, *_kwargs)

File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 327, in send

raise ConnectionError(e)

requests.exceptions.ConnectionError: HTTPConnectionPool(host='fe80::1%25p14p1', port=1234): Max retries exceeded with url: / (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)

Expected results:

python requests should connect to netcat.

Additional info:

https://tools.ietf.org/html/rfc6874

Issue 2:
Some IPv6 addresses contains the '%' sign ( link-local addresses : ex. fe80::21b:63ff:feab:e6a6%eth0 or [fe80::21b:63ff:feab:e6a6%eth0] )

When using this addresses the requests library raises the fallowing exception: "requests.exceptions.InvalidURL: Invalid percent-escape sequence: 'et'"

(raised by the function unquote_unreserved() from the utils.py).

If I put as first line in this function the "return uri" line (in other words if I pass over this function), everything works ok.
Issue 1:
Would you please add iterator in NodeList interface as DOM4 spec says?

IDL[Exposed=Window]
interface NodeList# {
getter Node? item(unsigned long index#);
readonly attribute unsigned long length;
iterable<Node>;
};

NodeList.prototype[Symbol.iterator]
// gives `function [Symbol.iterator]()` in Firefox console

Issue 2:
Update: This issue is now only for the following collections:

MediaList

StyleSheetList

CSSRuleList

Originally it was about NodeList as well, but that was fixed (along with DOMTokenList) in #3393

Original:

var paragraphs = document.querySelectorAll("p");
for (let p of paragraphs) {
console.log(p);
}

foo.ts(2,15): error TS2488: The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator.

Seems it just needs an update to lib.es6.d.ts to add the [Symbol.iterator()] to all the collections that have an indexer and length property. The ones I found that have it in Nightly are below. The rest were either IE-only or didn't exist. Removed my list since it seems FF has more than the specs allow. See zloirock/core-js#137 (comment) for a more accurate list.
Issue 1:
Please consider merging mean and average and deprecating one in order to simplify the numpy interface and reduce confusion.

Issue 2:
In [23]: a = np.ones(3, 'i4, O')

In [24]: a[0] = a[1]
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-24-5ef5a6077ce6> in <module>()
----> 1 a[0] = a[1]

ValueError: Setting void-array with object members using buffer.

numpy 1.10.1

First reported by @ldoddema in #6776.
Issue 1:
Hi,

I am getting an exception when I try to execute following code

runOnDraw(new Runnable() {
@Override
public void run() {
Glide.with(mContext)
.load(mResIds.get(0))
.asBitmap()
.into(new SimpleTarget<Bitmap>() {
@Override public void onResourceReady(Bitmap resource, GlideAnimation<? super Bitmap>glideAnimation) {
//Bitmap b = BitmapFactory.decodeResource(mContext.getResources(), mResIds.get(0));
filterSourceTexture2 = OpenGlUtils.loadTexture(resource, OpenGlUtils.NO_TEXTURE, true);
}
});
}
});

The Exception I am getting is "It should be called on main thread"

how to fix it?

Issue 2:
It is interesting to see how some applications like A+Gallery or QuickPic show images loaded into the disk cache very fast and smooth.

Imagine I have 1000 images.

They are shown inside a ListView or RecyclerView.

About 20 to 50 images gonna appear on the screen.

On scroll I get to the images that are not inside memory cache anymore because memory cache is now filled with scrolled images.

So memory cache is limited and it could be customized but carefully which is not my concern now.

What I noticed about A+Gallery and QuickPic is that they show images like they are available inside memory cache which is impossible by the size of provided memory cache that these days' devices provide for each application.

So It left me with this idea that these apps loading memory cache from disk cache as soon as ListView or RecyclerView or GridView gets close to the end of the available bitmaps inside memory cache.

Glide loads new images from disk cache if they are not in memory cache, which will happen if users scroll on many images in one direction.

If explained feature is already implemented into the Glide, please help me to know how to load Glide's memory cache from its disk cache to prevent fast scrolling show empty items or placeholders.

And if Glide doesn't have such a feature yet I would like to know your idea about requested feature is it doable or I'm wrong about mentioned apps. Thank you
Issue 1:
When I have a Component that takes more just RouteParams in its constructor, I get a TypeScript definition error in the editor. The code runs, but the typings file likely needs to be updated. here is my component

And here is the red underlines in the RouteConfig.

Issue 2:
I'm a bit puzzled about this one. I think it appeared on alpha 34. I didn't upgrade by then.

Now I updated to angular alpha35, "systemjs-builder": "^0.13","systemjs": "^0.18.10".

With a simple route config like

@RouteConfig([
{path: '/', redirectTo:'/login'},
{path: '/login', component: LoginView, as:'login'}
])

I got a compilation error:

app/app.ts(56,14): error TS2345: Argument of type '({ path: string; redirectTo: string; } | { path: string; component: typeof LoginView; as: string;...' is not assignable to parameter of type 'List<RouteDefinition>'.
Types of property 'push' are incompatible.
Type '(...items: ({ path: string; redirectTo: string; } | { path: string; component: typeof LoginView; ...' is not assignable to type '(...items: RouteDefinition[]) => number'.
Types of parameters 'items' and 'items' are incompatible.
Type '{ path: string; redirectTo: string; } | { path: string; component: typeof LoginView; as: string; ...' is not assignable to type 'RouteDefinition'.
Type '{ path: string; component: typeof LoginView; as: string; }' is not assignable to type 'RouteDefinition'.
Types of property 'component' are incompatible.
Type 'typeof LoginView' is not assignable to type 'Type | ComponentDefinition'.
Type 'typeof LoginView' is not assignable to type 'ComponentDefinition'.

The only work around I found was to provide my own router.d.ts file with the following fix:

interface RouteDefinition {

path: string;

component?: Type | ComponentDefinition | any; //<= added any here

loader?: Function;

redirectTo?: string;

as?: string;

data?: any;
}

The LoginView view has nothing special
Issue 1:
While rebuilding packages with Python 3.9.0 on macOS Homebrew (Homebrew/homebrew-core#62560), we are seeing a failure to build scipy 1.5.2.

Reproducing code example:

/usr/local/opt/python@3.9/bin/python3 setup.py build --fcompiler=gnu95

Error message:

scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c:175:5: error: implicit declaration of function 'ccopy_' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
scipy/sparse/linalg/dsolve/SuperLU/SRC/dmach.c:62:9: error: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
scipy/sparse/linalg/dsolve/SuperLU/SRC/ilu_cdrop_row.c:196:3: error: implicit declaration of function 'scopy_' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
scipy/sparse/linalg/dsolve/SuperLU/SRC/ilu_zdrop_row.c:196:3: error: implicit declaration of function 'dcopy_' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
scipy/sparse/linalg/dsolve/SuperLU/SRC/smach.c:62:9: error: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
scipy/sparse/linalg/dsolve/SuperLU/SRC/zlacon2.c:175:5: error: implicit declaration of function 'zcopy_' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
scipy/sparse/linalg/dsolve/SuperLU/SRC/slacon2.c:160:16: error: implicit declaration of function 'idamax_' is invalid in C99 [-Werror,-Wimplicit-function-declaration]

Issue 2:
Xcode 12 for OS X was just released, and I can't build scipy with it. The command pip3 install . -v --user fails, ending with

error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DUSE_VENDOR_BLAS=1 -Iscipy/sparse/linalg/dsolve/SuperLU/SRC -I/private/var/folders/cp/n8wtqs490tq5psknff1hv9qr0000gn/T/pip-build-env-k4q2ai5g/overlay/lib/python3.8/site-packages/numpy/core/include -c scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c -o build/temp.macosx-10.15-x86_64-3.8/scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.o -MMD -MF build/temp.macosx-10.15-x86_64-3.8/scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.o.d" failed with exit status 1
Building wheel for scipy (PEP 517): finished with status 'error'
ERROR: Failed building wheel for scipy
Failed to build scipy
ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly

This may be the same issue as #12656 — at least the error at the end is the same — but that issue was closed while only providing the suggestion to use a different compiler.

I am using Xcode 12, plus homebrew's Python 3.8, pip3, and gfortran. Unfortunately, I am really trying to figure out how to get this to build in Sage (sagemath.org), and using a gcc toolchain instead of clang would be, at the least, very inconvenient.
Issue 1:
💻

Would you like to work on a fix?

How are you using Babel?

babel-loader (webpack)

Input code

N/A

Configuration file name

No response

Configuration

No response

Current and expected behavior

Application build has started breaking with @babel/types@7.21.0, works fine on reverting to @babel/types@7.20.7

[object Object]

at isModuleDeclaration ( node_modules/@babel/types/lib/validators/generated/index.js:3939:11)

at PluginPass.Program ( node_modules/babel-plugin-lodash/lib/index.js:102:44)

at newFn ( node_modules/@babel/traverse/lib/visitors.js:148:21)

at NodePath._call ( node_modules/@babel/traverse/lib/path/context.js:45:20)

at NodePath.call ( node_modules/@babel/traverse/lib/path/context.js:35:17)

at NodePath.visit ( node_modules/@babel/traverse/lib/path/context.js:80:31)

at TraversalContext.visitQueue ( node_modules/@babel/traverse/lib/context.js:86:16)

at TraversalContext.visitSingle ( node_modules/@babel/traverse/lib/context.js:65:19)

at TraversalContext.visit ( node_modules/@babel/traverse/lib/context.js:109:19)

at traverseNode ( node_modules/@babel/traverse/lib/traverse-node.js:18:17)

at traverse ( node_modules/@babel/traverse/lib/index.js:49:34)

at transformFile ( node_modules/@babel/core/lib/transformation/index.js:81:29)

at transformFile.next (:null:null)

at run ( node_modules/@babel/core/lib/transformation/index.js:24:12)

at run.next (:null:null)

at transform ( node_modules/@babel/core/lib/transform.js:22:41)

at transform.next (:null:null)

at step ( node_modules/gensync/index.js:261:32)

at node_modules/gensync/index.js:273:13

at async.call.result.err.err ( node_modules/gensync/index.js:223:11)

Environment

Babel version [7.21.0]

Possible solution

No response

Additional context

No response

Issue 2:
babel/babel#15266

@babel/types v7.21.0, isModuleDeclaration has been deprecated, the terminal has the following warning.

Trace: `isModuleDeclaration` has been deprecated, please migrate to `isImportOrExportDeclaration`.
Issue 1:
I am able to see the landscape mode properly but portrait mode also showing preview as

landscape mode.

I am doing camera frames processing dynamically.

System information (version)

OpenCV => ❔

Operating System / Platform => ❔

Compiler => ❔

Detailed description

Steps to reproduce

Issue 2:
System information (version)

OpenCV => ❔

Operating System / Platform => ❔

Compiler => ❔

Detailed description

Steps to reproduce
Issue 1:
Needs some API tweaking since the Clipboard's APIs are asynchronous.

Issue 2:
A user is reporting that launching URLs on his OnePlus 5 (running Android 8.1) has a 2 second delay before launching. On my LG Stylo 2 (5.1) it is instant, as it is on my iPhone 5c running iOS 10.

I have tried both of these and they produce the same results.

void _launchURL(String url) async {
try{
launch(url);
print('launched $url');
}
catch (e){
print('Cannot launch $url');
print(e);
}
}

void _launchURL(String url) async {
print(url);
if (await canLaunch(url)) {
await launch(url);
} else {
throw 'Could not launch $url';
}
}