WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
node_modules/@types/jsdom/index.d.ts(10,10): error TS2305: Module
'"/Users/maoke/project/kemao/party/node_modules/@types/jsdom/node_modules/parse5/lib/index"'
has no exported member 'ElementLocation'.

Issue 2:
After the last npm release 1.6.2. projects with @types/angular and @types/jquery fail tslint.

This is caused by angular types now including jqlite.d.ts which clashes with jquery.d.ts

The error thrown by the tslint:

node_modules/@types/angular/jqlite.d.ts(799,6): error TS2300: Duplicate identifier 'cssPropertySetter'.
node_modules/@types/jquery/index.d.ts(705,6): error TS2300: Duplicate identifier 'cssPropertySetter'.
node_modules/@types/jquery/index.d.ts(707,5): error TS2374: Duplicate string index signature.
Issue 1:
When I use a small image for SRGAN training, it runs well, but when I use a 1080P image for generation, the process killed without any related log. The batch is 8 so I don't think it will run out all my GPU memory, also there's no fully connection layer in my SRGAN

gpu device: GTX 1060 6G

tf version: 1.0.0

python version: 2.7

if my code is required, pleasure to provide it

Issue 2:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): N/A

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Win 10

TensorFlow installed from (source or binary): pip

TensorFlow version (use command below): 1.1.0

Bazel version (if compiling from source):

CUDA/cuDNN version:5.1

GPU model and memory:k40 12gb

Exact command to reproduce: launch tensorboard

Describe the problem

Tensorboard is 404'ing on a lot of resources. See the error messages below. I think I saw a similar issue somewhere so this may be a duplicate. You're probably aware but thought i'd file just in case.

Source code / logs

WARNING:tensorflow:path ../external\weblas_weblas_js/file/weblas.map.json not found, sending 404
WARNING:tensorflow:path ../external\web_animations_js/web-animations-next-lite.min.js.map not found, sending 404
WARNING:tensorflow:path ../external\weblas_weblas_js/file/weblas.map.json not found, sending 404
WARNING:tensorflow:path ../external\web_animations_js/web-animations-next-lite.min.js.map not found, sending 404
WARNING:tensorflow:path ../external\data/plugin/text/runs not found, sending 404
WARNING:tensorflow:path ../external\data/plugin/text/runs not found, sending 404
WARNING:tensorflow:path ../external\data/plugin/text/runs not found, sending 404
WARNING:tensorflow:path ../external\data/plugin/text/runs not found, sending 404
Issue 1:
Since RandomForestClassifier and RandomForestRegressor do not have a max_samples attribute unlike BaggingClassifier and BaggingRegressor, there is no way to set the sub sample size in case of former. This is undesirable in case of large datasets where the individual estimators of the random forest may need to be built on smaller sub-samples of the datasets in order to save computational time.

Issue 2:
Description

train_test_split splits the single sample data such that train part has 0 samples and test has that sample. Also this behaviour is not affected by setting the test_size to any value.

Steps/Code to Reproduce

import numpy as np
from sklearn.model_selection import train_test_split

data = np.random.normal(0, 1, [1, 100])
print(A.shape)
#Output: (1, 100)

data_train, data_test = train_test_split(data)
print(data_train.shape, data_test.shape)
#Output: ((0, 100), (1, 100))

Expected Results

I am not sure of expected results as this seems like an unintended usage. But still think that at-least a warning (if not error) should be given when splitting.

Versions

Linux-3.16.0-77-generic-x86_64-with-Ubuntu-14.04-trusty

('Python', '2.7.6 (default, Nov 23 2017, 15:49:48) \n[GCC 4.8.4]')

('NumPy', '1.14.2')

('SciPy', '1.0.1')

('Scikit-Learn', '0.19.1')

I am sorry if its a duplicate. I tried searching for similar issues but could not find (even though I thought that this would have been discussed somewhere).
Issue 1:
System information (version)

OpenCV => 3.*

Operating System / Platform => Windows x64

Detailed description

In python 3.6.8 using the cv2 library, when using cv2.imwrite as:

cv2.imwrite('path/to/image/myi_image.jpg', my_image)

cv2 does not report an error if the user running the script does not have write permissions to the directory '/path/to/image' as in the above code segment.

imwrite just returns false and the error is extremely hard to debug due to no stderr output.

In addition, the existence of the directory is also not validated.

Issue 2:
System information (version)

OpenCV => 4.2

Operating System / Platform => Windows 64 Bit

Compiler =>Visual Studio 2015

Detailed description

Steps to reproduce

The following is the code i use:

detection_graph = _load_model("deploy.prototxt", "dense121.caffemodel")
detection_graph.setInput(pre_img, "data")
out = detection_graph.forward('result')

The prototxt of the model:

layer {
name: "blstm_input"
type: "Reshape"
bottom: "conv5_transpose"
top: "blstm_input"
reshape_param {
shape { dim: -1 }
axis: 0
num_axes: 2
}
}
layer {
name: "result"
type: "CTCGreedyDecoder"
bottom: "blstm_input"
top: "result"
}

The error that i ran into:

cv2.error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\dnn\src\dnn.cpp:525: error: (-2:Unspecified error) Can't create layer "result" of type "CTCGreedyDecoder" in function 'cv::dnn::dnn4_v20190902::LayerData::getLayerInstance'

May i know what is the problem and how can i make it works?
Issue 1:
On a regular TextField, the onChange event handler receives an event parameter that allows to know the name of the TextField as well as the value that was changed to:

onChange = ({ target: { name, value } }) => {
console.log('textfield changed', name, value); // -> { 'username': 'john-doe' }
}

However, on a TextField with nested options, which renders internally a Select, this is no longer the case. The element given as target in the onChange event is the li of the dropdown list, which only has a value, but no name.

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

Expected Behavior

The onChange event handler of a <TextField name="xyz">{options}</TextField> should receive an event object where event.target.name is "xyz".

Current Behavior

The onChange event handler of a <TextField name="xyz">{options}</TextField> receives an event object where event.target.name is undefined.

Steps to Reproduce (for bugs)

Visit https://codesandbox.io/s/nkq35z76wj

Open the codesandbox.io console on the right bottom area of the page

Change the name text field, see that it changes visually, and the name and value are present in the console

Now change the gender select field. See that it does not change, and the console prints out undefined in place of the actual field name.

Context

Having the name reflected in the event target is not only more compatible with how actual form input events work in html, it is also convenient because you can use the same onChange event handler for many input elements, instead of dynamically having to generate a different event handler for different input elements of a form.

Your Environment

Tech
Version

Material-UI
1.0.0-beta.17

React
16.0.0

browser
Chrome latest

Issue 2:
Tooltips cause horizontal scroll when resizing the window to a smaller one.

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

Expected Behavior

Tooltips won't cause horizontal scroll

Current Behavior

Tooltips cause horizontal scroll when the page is resized to a smaller breakpoint.

Steps to Reproduce (for bugs)

Open https://material-ui-1dab0.firebaseapp.com/demos/tooltips/ in desktop breakpoint size.

Start reducing the width of the window until you see the horizontal scroll bar

If you hover over each tooltip (even the tooltip to expand the example code), you'll see that the horizontal scroll disappear.

Context

The transform: translate3d property in the tooltips are the root of the issue. The tooltip is translated to a position but it's never updated when resizing the window, so the tooltip stays out of the viewport.

Using the layers tab on chrome devtools can be easily detected.

Your Environment

Tech
Version

Material-UI
v1.0.0-beta.18

React
15.6.1

browser
Chrome 61
Issue 1:
by calvin.walton@kepstin.ca:

What steps will reproduce the problem?
1. Attempt to build go (6g) with a gcc version which is different from what any of the
developers use, or with different versions of system libraries or tools

What is the expected output?
The go compiler successfully builds for the user who wants to use it, possibly printing
out a couple of new warning messages.

What do you see instead?
The go compiler fails to build, with a silly error message like

cc1: warnings being treated as errors
y.tab.c:5203:9: error: passing argument 1 of 'yyerror' discards qualifiers from pointer
target type
/home/cwalton/Development/go/src/cmd/gc/go.h:1148:6: note: expected 'char *' but
argument is of type 'const char *'

frustrating someone who just wanted to try a new programming language.

Which compiler are you using (5g, 6g, 8g, gccgo)?
Compiling 6g from a mercurial checkout of the release branch as described on the
"getting started" page

Which operating system are you using?
Exherbo Linux with gcc 4.5.3 and bison 2.5

Which revision are you using? (hg identify)
9d7967223815 (release-branch.r57) release/release.r57.2

Please provide any additional information below.
I "fixed" the issue by deleting "-Werror" from quietgcc.bash to get
a successful build which passed all tests and operates correctly.

Issue 2:
discussion: http://golang.org/cl/5822049/

If we support this feature, we don't need to support handing of any relocations, linking
gcc compiled object files.

Pros: able to link in C++ in cgo; remove a lot of code in our linker.
Cons: dependent on gcc for linking cgo programs, even if I could make all gcc compiled
object files available as .syso files.
Issue 1:
http://bootply.com/94624

I can't get them to align correct even if I remove the list (Home) and leave only the buttons.

Issue 2:
A regular size button is properly vertically centered in a navbar:

<button type="submit" class="btn btn-primary navbar-btn" >
Save
</button>

A xs button is NOT properly vertically centered in a navbar:

<button type="submit" class="btn btn-primary btn-xs navbar-btn" >
Save
</button>

css fix:

.btn-xs.navbar-btn {
margin-top: 12px;
}

(And this kind of thing most likely applies to other button sizes)
Issue 1:
Migrated issue, originally created by Ronny Pfannschmidt (@RonnyPfannschmidt)

this problem has shown up when porting to oracle, which reported a random error uppon seeing the sql

after inspection i was sure the code was certainly wrong - at least the join condition makes absolutely no sense there

imho it should be an error to pass a relationship there

from sqlalchemy import Column, Integer, ForeignKey
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, Session

Base = declarative_base()

class Fun(Base):
__tablename__ = 'fun'
id = Column(Integer, primary_key=True)
pos = Column(Integer)

class FunDetail(Base):
__tablename__ = 'fun_detail'
id = Column(Integer, primary_key=True)
fun_id = Column(Integer, ForeignKey('fun.id'))
fun = relationship(Fun)
pos = Column(Integer)

s = Session()
print s.query(FunDetail).order_by(FunDetail.pos, FunDetail.fun)

results in

SELECT fun_detail.id AS fun_detail_id, fun_detail.fun_id AS fun_detail_fun_id, fun_detail.pos AS fun_detail_pos
FROM fun_detail ORDER BY fun_detail.pos, fun.id = fun_detail.fun_id

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

consolidating #1328, #2797, #2845 as these are all dealing with the same thing from different angles.

SomeClass.some_m2o, which refers to OtherEntity as a many-to-one, would be interpreted:

for sess.query(SomeClass.some_m2o) as sess.query(OtherEntity)

for sess.query(SomeClass).filter(SomeClass.some_m2o == OtherEntity) as filter(SomeClass.other_entity_id == OtherEntity.id)

for sess.query(SomeClass).order_by(SomeClass.some_m2o), group_by(SomeClass.some_m2o), as order_by/group_by SomeClass.other_entity_id

as is currently the case, sess.query(SomeClass).filter(SomeClass.some_m2o == other_entity) compares to other_entity.id

any other query.something(SomeClass.m2o..something) type requests should get put here.
Issue 1:
Jennifer Hickey opened SPR-6663 and commented

Just switched to the new @Scheduled, configured only with the default task:annotation-driven/. I noticed that my @Scheduled task was being executed more frequently than expected. I have Spring/Struts integration that creates a child web app context on init of ActionServlet. Looks like when the child app context is created, an event is published to the parent root WAC. This event causes the ScheduledAnnotationBeanPostProcessor in the root WAC to execute ScheduledTaskRegistrar.afterPropertiesSet again, which schedules all tasks again. So I end up with the same task scheduled to execute at a fixed rate twice.

Stack trace on init of the Struts ActionServlet:

ScheduledTaskRegistrar.afterPropertiesSet() line: 107

ScheduledAnnotationBeanPostProcessor.onApplicationEvent(ContextRefreshedEvent) line: 135

ScheduledAnnotationBeanPostProcessor.onApplicationEvent(ApplicationEvent) line: 1

SimpleApplicationEventMulticaster.multicastEvent(ApplicationEvent) line: 97

XmlWebApplicationContext(AbstractApplicationContext).publishEvent(ApplicationEvent) line: 294

XmlWebApplicationContext(AbstractApplicationContext).publishEvent(ApplicationEvent) line: 296

XmlWebApplicationContext(AbstractApplicationContext).finishRefresh() line: 858

XmlWebApplicationContext(AbstractApplicationContext).refresh() line: 419

ContextLoaderPlugIn.createWebApplicationContext(WebApplicationContext) line: 356

ContextLoaderPlugIn.initWebApplicationContext() line: 297

ContextLoaderPlugIn.init(ActionServlet, ModuleConfig) line: 227

ActionServlet.initModulePlugIns(ModuleConfig) line: 871

ActionServlet.init() line: 359

ActionServlet(GenericServlet).init(ServletConfig) line: 212

Affects: 3.0 GA

Issue Links:

#11322 ScheduledAnnotationBeanPostProcessor registers schedules twice in web application ("duplicates")

Issue 2:
Keith Donald opened SPR-5395 and commented

I am seeing side-effects in an integration test that initializes a Spring ApplicationContext using @ContextConfiguration. Specifically, close() on the context does not appear to be being called, ever. I noticed this because one of my DispoableBeans is not receiving a destroy() callback and that is what is causing the side-effect [which pops up when a @test runs in another, unrelated TestCase class].

I understand a test ApplicationContext is cached between test methods, but I would still expect the context to be closed after all tests have run, before moving on to the next test class in the suite.

Affects: 3.0 M1

Issue Links:

#9379 Support for @DirtiesContext at the test class level ("duplicates")

#10311 Reload the application context for each test in a class with a class level annotation

#9379 Support for @DirtiesContext at the test class level
Issue 1:
System information (version)

OpenCV => Latest master branch (following latest commit 92c0709)

Operating System / Platform => Debian Linux BeagleBone Black 4.4.9-ti-r25

Compiler => GCC Version 4.9.2 (Debian 4.9.2-10)

CMake => v3.5.2

Detailed description

CMake Build Error - Directory names used in OpenCVUtils regular expressions containing non-alphanumeric characters such as '+' in ../c++/ cause cmake to fail. Renaming the parent directory from "C++" to "Cxx" allows cmake to proceed. Note though that in the cmake output below, the directory /usr/bin/c++ is also used.

-- The CXX compiler identification is GNU 4.9.2
-- The C compiler identification is GNU 4.9.2
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Detected version of GNU GCC: 49 (409)
RegularExpression::compile(): Nested *?+.
RegularExpression::compile(): Error in compile.
CMake Error at cmake/OpenCVUtils.cmake:120 (if):
if given arguments:

"/home/debian/Desktop/Sandbox/C++/opencv/Build" "MATCHES" "^/home/debian/Desktop/Sandbox/C++/opencv" "OR" "/home/debian/Desktop/Sandbox/C++/opencv/Build" "MATCHES" "^/home/debian/Desktop/Sandbox/C++/opencv/Build" "OR" "(" "OPENCV_EXTRA_MODULES_PATH" "AND" "/home/debian/Desktop/Sandbox/C++/opencv/Build" "MATCHES" "^" ")"

Regular expression "^/home/debian/Desktop/Sandbox/C++/opencv" cannot
compile
Call Stack (most recent call first):
cmake/OpenCVUtils.cmake:135 (ocv_is_opencv_directory)
CMakeLists.txt:488 (ocv_include_directories)

-- Configuring incomplete, errors occurred!

Steps to reproduce

cd ~; mkdir C++ && cd C++
git clone <opencv repo> opencv; cd opencv
mkdir Build && cd Build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUDA=OFF -D WITH_CUFFT=OFF -D WITH_CUBLAS=OFF -D WITH_NVCUVID=OFF -D WITH_OPENCL=OFF -D WITH_OPENCLAMDFFT=OFF -D WITH_OPENCLAMDBLAS=OFF -D BUILD_opencv_apps=OFF -D BUILD_DOCS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_TESTS=OFF -D ENABLE_NEON=on ..

Issue 2:
System information (version)

OpenCV => ❔

Operating System / Platform => ❔

Compiler => ❔

Detailed description

Steps to reproduce
Issue 1:
System information (version)

OpenCV => 4.2.0.32

Operating System / Platform => Windows 10 64 Bit

Compiler => Visual Studio 2017

Detailed description

I am getting the following error when performing inference with SSD MobileNet v2 custom trained model using OpenCV cv.dnn_Net.forward():

cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\dnn\src\dnn.cpp:562: error: (-2:Unspecified error) Can't create layer "FeatureExtractor/MobilenetV2/expanded_conv_2/add" of type "AddV2" in function 'cv::dnn::dnn4_v20191202::LayerData::getLayerInstance'

I trained the model using TensorFlow 1.15.0 and can perform inference in TensorFlow and TensorFlow Lite without an issue; is only when I use dnn-module with .pb and .pbtxt files that I get the error above. I have tried downgrading OpenCV, but earlier versions give different errors. In Ubuntu 18.04.4, installing OpenCV from source, I do not get any errors.

Steps to reproduce

OpenCV TensorFlow Object Detection API:

python tf_text_graph_ssd.py --input frozen_graph.pb --config ssd_mobilenet_v2_coco.config --output graph.pbtxt

Inference using Python script from OpenCV wiki:

import cv2 as cv

cvNet = cv.dnn.readNetFromTensorflow('frozen_graph.pb', 'graph.pbtxt')

img = cv.imread('example.jpg')

rows = img.shape[0]

cols = img.shape[1]

cvNet.setInput(cv.dnn.blobFromImage(img, size=(300, 300), swapRB=True, crop=False))

cvOut = cvNet.forward()

for detection in cvOut[0,0,:,:]:

score = float(detection[2])

if score > 0.3:

left = detection[3] * cols

top = detection[4] * rows

right = detection[5] * cols

bottom = detection[6] * rows

cv.rectangle(img, (int(left), int(top)), (int(right), int(bottom)), (23, 230, 210), thickness=2)

cv.imshow('img', img)

cv.waitKey()

Issue submission checklist

I report the issue, it's not a question

I checked the problem with documentation, FAQ, open issues,

answers.opencv.org, Stack Overflow, etc and have not found solution

I updated to latest OpenCV version and the issue is still there

There is reproducer code and related data files: videos, images, onnx, etc

Issue 2:
System information (version)

OpenCV => 4.2.0

Operating System / Platform => Windows 10 64 bit

Compiler => Visual Studio 2019

TensorFlow 2.1.0

Detailed description

I have trained a MobileNetV2 using tf.keras. Then I exported the model as frozen graph *.pb file, and tried to load the network using cv::dnn::readNetFromTensorflow(). When I run the app the following error occurs:

OpenCV(4.2.0) Error: Unspecified error (Can't create layer "expanded_conv_add/add" of type "AddV2") in cv::dnn::dnn4_v20191202::LayerData::getLayerInstance, file C:\build\master_winpack-build-win64-vc14\opencv\modules\dnn\src\dnn.cpp, line 562

When using TensorFlow version 1.14 for creating the model and then save the frozen graph, this kind of error does not appear

Steps to reproduce

The .pb file is found inside the attached .zip file

_net = cv::dnn::readNetFromTensorflow(pathToPbFile);

MobileNetV2Alpha0.10.zip
Issue 1:
System information (version)

OpenCV => 4.2

Operating System / Platform => Fedora Rawhide

Compiler => GCC 10

Detailed description

opencv fails to build with vtk 9.0. First issue is that VTK 9 no longer sets VTK_RENDERING_BACKEND. This at least can worked around by passing that option to cmake.

Testing builds here: https://copr.fedorainfracloud.org/coprs/orion/vtk9.0/builds/

Issue 2:
System information (version)

OpenCV => 4.5

Detailed description

The documentation for color conversions does not explain what _FULL does, e.g. https://docs.opencv.org/4.5.0/d8/d01/group__imgproc__color__conversions.html#gga4e0972be5de079fed4e3a10e24ef5ef0ae0070d7e97f1e565cc0992d038e5498e

I believe this should be explained for each color conversion as there are different interpretations on forums.

Issue submission checklist

[*] I report the issue, it's not a question

[*] I checked the problem with documentation, FAQ, open issues,

answers.opencv.org, Stack Overflow, etc and have not found solution

There are some places with answers like:

https://stackoverflow.com/questions/34200353/why-isnt-inrange-function-detecting-blue-color-when-i-have-given-it-the-entire

or

https://stackoverflow.com/questions/21782420/difference-between-hsv-and-hsv-full-in-opencv

but they actually give different answers (full gives H in [0,255] in one, [0,360] in the other).
Issue 1:
Hi,

In visual studio, i got this error in every d.ts file under node_modules\rxjs\add\observable\ :

Invalid module name in augmentation, module '../../Observable' cannot be found.

example code: declare module '../../Observable' {

how to fix that please?

Issue 2:
I have a class called Webpack, which I augment to add a new method addLess like so:

// addLess.ts
import { Webpack } from '../webpack';

declare module '../webpack' {
interface Webpack {
addLess(): Webpack;
}
}

const lessConfiguration = {
module: {
loaders: [
{ test: /\.less$/, loader: "style!css!less" }
]
}
};

class Implementation extends Webpack {
addLess(): Webpack {
return this.mergeModule('less', lessConfiguration);
}
}

Webpack.prototype.addLess = Implementation.prototype.addLess;

This works great in the current typescript project, but if I compile (with declarations), and try to use the compiled project in another project, the new method is not shown in intellisense in Visual Studio, and it is shown as an error if I try to use it anyway.

However, if I make sure something is exported from the module above it works as expected. For example, I can work around the issue by exporting the class Implementation like so:

// addLess.ts
import { Webpack } from '../webpack';

declare module '../webpack' {
interface Webpack {
addLess(): Webpack;
}
}

const lessConfiguration = {
module: {
loaders: [
{ test: /\.less$/, loader: "style!css!less" }
]
}
};

export class Implementation extends Webpack {
addLess(): Webpack {
return this.mergeModule('less', lessConfiguration);
}
}

Webpack.prototype.addLess = Implementation.prototype.addLess;

However, this means that I am exporting something, that should be private to the module.

This issue is only in Visual Studio. When compiling with gulp-typescript using typescript 1.8.2, 1.8.5, 1.8.6 or 1.8.7 I get no errors - with or without the extra export.

I am using Visual Studio 2015 update 1 with the extension for Typescript 1.8.4.