WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Do you want to request a feature or report a bug?

feature

What is the current behavior?

When a child throws an error inside an error boundary and hits it's componentDidCatch the error is still logged to the console regardless of any handling that you then do inside of your componentDidCatch.

What is the expected behavior?

Wouldn't it make more sense to give some more fine grated control over how errors get logged once they do bubble up all the way to an error boundary? My motivation for this is:

When using an error logging service (rollbar, sentry, etc.) you normally don't really need/want your error to bubble through to the console in production.

Testing an error boundary component feels a bit funky right now because for test runners like jest you have to mock jsDom's virtual console to suppress error showing up in your test results.

The severity of an error caught by a specific error boundary might be just a warning, thus you would have to throw a console.warn along the already thrown error.

When you try/catch outside of react you would also handle the logging in your catch by rethrowing a specific exception.

I wonder what your opinion is on this :)

Issue 2:
(This is a repost of jestjs/jest#4597 by @erikras.)

Do you want to request a feature or report a bug?

Somewhere in between?

What is the current behavior?

When I'm running tests on my library, there are some behaviors that I want to test do throw an error. These currently result in:

Consider adding an error boundary to your tree to customize error handling behavior.
You can learn more about error boundaries at https://fb.me/react-error-boundaries.

...being output to the console. This error is great in an application, but not so great for a library test.

What is the expected behavior?

It would be great if I could do something like:

expect(() => {
TestUtils.renderIntoDocument(<DoSomething naughty/>)
})
.toThrow(/Bad developer!/)
.andCatch() // <---- prevents React 16 error boundary warning

Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.

jest@21.2.1
react@16.0.0
react-dom@16.0.0

See also

#11083

#10474 (comment)
Issue 1:
System information (version)

OpenCV => 4.0.0

Operating System / Platform => Windows 64 Bit

Compiler => Visual Studio 2015

Detailed description

current implementation refuses to find any QR code when presented with an image that contains more than one.

it would be nice if it could do that.

Steps to reproduce

import cv2 as cv
import numpy as np
im = cv.imread("qrcode.png")
det = cv.QRCodeDetector()
rv, pts = det.detect(im)
print("single:", rv) # True
rv, pts = det.detect(np.hstack([im, im])) # duplicate side by side
print("multiple:", rv) # False

Issue 2:
System information (version)

Detailed description

I am trying to load the .pb file using OpenCV dnn.readNetFromTensorflow.I am unable to load it. I am adding my custom(dsnt) layer on top of Keras sequential model. Here is the error I am getting in Ubuntu 18.04 with OpenCV 4.5.0 and 4.3.0

OpenCV(4.5.0) /home/srinu/Documents/cpp_inference/opencv_4-5-0/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:1025: error: (-215:Assertion failed) values.type() == CV_32FC1 in function 'populateNet'

Generating .pb file using below script

# loaded = tf.saved_model.load('/saved_model')
# infer = loaded.signatures['serving_default']
#
# f = tf.function(infer).get_concrete_function(input_1=tf.TensorSpec(shape=[None, 224, 224, 3], dtype=tf.float32))
# f2 = convert_variables_to_constants_v2(f)
# graph_def = f2.graph.as_graph_def()
#
# # Export frozen graph
# with tf.io.gfile.GFile('frozen_graph.pb', 'wb') as f:
# f.write(graph_def.SerializeToString())

Loading the resulted .pb file using below script

import cv2
img_file = "\lash.jpg"
img_cv2 = cv2.imread(img_file)

inWidth = 224
inHeight = 224
blob = cv2.dnn.blobFromImage(img_cv2,
scalefactor=1.0 / 255,
size=(inWidth, inHeight),
mean=(0, 0, 0),
swapRB=False,
crop=False)

net = cv2.dnn.readNetFromTensorflow('/frozen_graph.pb')
net.setInput(blob)
out = net.forward()

@dkurt @alalek Can anyone help me
Issue 1:
The code below is taken from the examples and works correctly with angular Dart version 2.0.0-alpha.27 (after updating the injector).

@View(template: '''
<p>My name: {{ myName }}</p>
<p>Friends:</p>
<ul>
<li *ng-for="#name of friendNames">
{{ name }}
</li>
</ul>
<p *ng-if="friendNames.length > 3">You have many friends!</p>
''',
directives: const [NgFor,NgIf]
)

Using angular2: '>= 2.0.0-alpha.28' or '2.0.0-alpha.29' the code fails at NgFor, NgIf with:

Unsupported directive record

Using angular2: '2.0.0-alpha.30' the code fails with

Unsupported directive record in [friendNames in <li *ng-for="#name of friendNames">]

Issue 2:
#2981 provides a test which fails. https://gist.github.com/jakemac53/675fdedad5ce469d292f is an simple example which will fail under the transformer.
Issue 1:
Description of the problem

So I have tried to adjust the linewidth in the LineBasicMaterial but it only renders out as 1 pixel instead of 5 (which is where I am trying to adjust). I have tried to preview this in Chrome, Firefox, and Safari but to no success. Any idea on why this isn't working. I read the docs and followed the way its used.

Three.js version

Dev

r95

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Issue 2:
Description of the problem

LineBasicMaterial no work in Chrome. Works great in Firefox. Worked in in Chrome 54 until we updated to latest release. We get the lines, they have no width. I know this has been reported a million times in regard to Windows but I'm on Mac OS 10.11.6.

Three.js version

r82

Browser

Chrome

Firefox

OS

Mac

Hardware Requirements (graphics card, VR Device, ...)

NVIDIA GeForce GT 750M
Issue 1:
I am looking a way to lock down windows/webviews and I was testing the inheritance of nodeintegration settings from parents to child. According to PR #4897 this was fixed. But after testing it on my test app, i can still create a webview with nodeintegration enabled, even if the parent has Nodeintegration disabled.

I need this because my app receive data from users (IM's) and XSS could happen.

main.js:

function createWindow () {
// Create the browser window.
mainWindow = new BrowserWindow({
webPreferences: { nodeIntegration: false }
});

index.html:

<webview nodeIntegration src="data:text/html,<script>require('child_process').exec('notepad.exe',function(){})</script>"></webview>

If I am not wrong there is a typo in the file spec/webview-spec.js line 100:

app.once('browser-window-created', function (event, window) {

I am expecting the Webview to have nodeintegration disabled.

Electron version: 0.37.5

Operating system: Windows 10

Issue 2:
Currently webview tag is available even when node integration is off, this can introduce security problems since webview can be used to execute arbitrary code.

Refs #3921.
Issue 1:
Sometimes I need to change some LESS parameter and recompile files. I do not want to memorise customized ID everytime.

It would be perfect to keep it in downloaded files. Maybe in .json confing or just separate empty file named like

12341231.id

.

Issue 2:
The new site has the awesome customization screen, but unless you manage your bookmarks like a champ, there's no clear mapping between which custom builds on your system correspond to which URLs on the site. It would rock socks if the URL of the custom build was in the header comment in the generated source files.

For example, In bootstrap.css, you could have something like:

/*!
* Bootstrap v3.0.0
* Custom build generated by http://getbootstrap.com/customize/?id=6277349
*
Issue 1:
Bug summary

On Windows, but not on Linux, with Python 3.9.8 installed, key_press_events both work for the two examples from the MPL documentation:

Keypress demo

Embedding TkInter demo

The "Keypress demo" will not work with a clean install of Python 3.9.9 (i.e one not upgraded from an earlier Python 3.9.x release. Deleting a previous install and obliterating the install directory is fine. Just upgrading, or uninstalling without obliteration, are not enough.

The problem exists in Python 3.10 on Windows.

The problem is not there for the Qt5Agg backend.

Code for reproduction

1. Perform a clean install of Python 3.9.9 on Windows.
2. Install matplotlib.
3. Copy the code from the
[Keypress demo](https://matplotlib.org/stable/gallery/event_handling/keypress_demo.html?highlight=key_press_event) in to a file.
4. Run it.
5. Press some keys.
5. Note stdout.

Actual outcome

Stdout will be empty.

Expected outcome

Stdout should say things like:

press a

press a

press a

press a

press a

press a

press b

press c

press d

press e

Additional information

No response

Operating system

Windows

Matplotlib Version

Any I've tested from 3.3.0 up to 3.5.1

Matplotlib Backend

TkAgg

Python version

3.9.9

Jupyter version

n/a

Installation

pip

Issue 2:
Bug summary

mpl with py3.10.1 - Interactive figures - Constrain pan/zoom to x/y axis not work

Code for reproduction

Simple Plot

https://matplotlib.org/stable/gallery/lines_bars_and_markers/simple_plot.html

Actual outcome

Interactive figures - Constrain pan/zoom to x/y axis not work

Despite the key being pressed, both axes change

Expected outcome

i expect the functionality:

Navigation keyboard shortcuts

https://matplotlib.org/stable/users/explain/interactive.html

Constrain pan/zoom to x axis - hold x when panning/zooming with mouse

Constrain pan/zoom to y axis - hold y when panning/zooming with mouse

Additional information

I've tested a few versions:

py 3.8 + mpl 3.4.1 and 3.5.1 o.k.

py 3.9 + mpl 3.4.1 and 3.5.1 o.k.

but:

py 3.10.1 + mpl 3.4.1 and 3.5.1 --> Constrain pan/zoom only to x or y axis NOT WORK !

What is the reason?

Thank you

Operating system

Win 10

Matplotlib Version

different 3.4.1 ... 3.5.1

Matplotlib Backend

TkAgg

Python version

Python 3.10.1

Jupyter version

No response

Installation

pip
Issue 1:
Environment

Windows build number: [Win 10 1909 18363.900]
PowerToys version: 0.19.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Long version:

Open a Chromium based browser (I use Brave) and open a few tabs in a few separate windows.

Right click on the icon in the taskbar and select "Close all windows"

Open the browser again (it just opens a new tab according to my settings) then use the CTRL+SHIFT+T keyboard shortcut to re-open the closed tabs from the last session.

This will open each of the separate windows with their tabs per press on the letter T.

Now each of those windows (with a few tabs) will not be snapped into the zone their parent window (the one from step 3)

Short version :

open a browser window

snap it to a zone

open a new window from the hamburger menu or SHIFT+click a link/bookmark

Expected behavior

The newly created or re-opened browser windows (with tabs) should snap into the zone that is assigned to the browser.

Actual behavior

The newly created or re-opened browser windows (with tabs) are not snapped to anything, they are just arranged close enough of their parent window

Screenshots

Issue 2:
Despite having turned on "Move newly created windows to their last know zone", ever since 0.19 and still in 0.19.1 when a new PDF document opens, fancy zones will not snap the pdf to the same zone. When the new document is opened in a new tab within Acrobat reader, Acrobat moves to a new location and shrinks to what I assume is Acrobat's default positioning / size for new documents.

Other details:

Will snap to last known zone on the same monitor of the Windows Explorer window where the document is being opened, but only when opening a whole new instance of Acrobat. When snapping to the zone in this case, it quickly flashes in the other on the before moving to the new second monitor and zone.

If Acrobat is open and the new document is opened in a new tab, it relocates Acrobat to the window, size and location that I can only guess is Acrobat's default setting, even if that is on a different monitor.

Issue persists if Acrobat settings changed to open each document in a new window (turn off tabs). The first instance opens in the last known zone in the same monitor as Window Explorer. The second and subsequent instances opens in the same monitor, but with the smaller size and location as described above (not snapped to the zone).

Zone behavior settings attached.
Issue 1:
VSCode Version: 1.1.1

OS Version: Any

This is a request for the C# Extension. Essentially, the extension needs platform-specific native binaries in order to function (both for debugging support and OmniSharp for language server support). It does this by acquiring the binaries during the extension's first activation, rather than during installation. So, the user experience for installation is a bit awkward:

Install C# Extension

VS Code prompts to restart after successful installation

User restarts VS Code and opens a C# project

User waits after the "installed" extension finishes installing itself by acquiring native dependencies

To make matters worse, in order to acquire the native dependencies, the extension essentially has to copy code from VS Code in order to handle HTTP proxies correctly (see dotnet/vscode-csharp@b8f01e4).

Issue 2:
Testing #2218

no jsconfig.json

exports.something = function() {
return true;
}

function test() {

}
Issue 1:
Could we add Bool to the list of types supported by Threads.Atomic? Currently atomics only supports int types and float types, but I don't see any reason why it couldn't also support booleans! :)

For now as a workaround, you have to use an x = Threads.Atomic{UInt8} and always check if x != 0 instead of just if x.

I couldn't find either a github issue or discourse thread about this already, sorry if this is a duplicate. Thanks! :)

Issue 2:
The following syntax doesn't work for macros (but does for functions):

julia> macro foo(a, b::Bool=true)
a, b
end
ERROR: syntax: "(kw (:: b Bool) #t)" is not a valid function argument name

julia> function foo(a, b::Bool=true) #works for functions
a, b
end
foo (generic function with 2 methods)

julia> foo(1)
(1,true)
Issue 1:
According to the task second element of each "well" has to bounce while the code check whether "target" have "animated" and "bounce" classes added.

I added the following code and now I'm allowed to go to the next challenge:

$(".target:nth-child(2)").addClass("animated bounce");

Issue 2:
Challenge [iterate-over-arrays-with-map]

var oldArray = [1,2,3,4,5];

// Only change code below this line.

var newArray = oldArray.map(function(val){

return val+ 3;

});
Issue 1:
There are examples in the repo for loading a pre-trained model in C++. Can someone add an example to train a simple 1 hidden layer fully connected neural net (or even logistic regression using SGD) in C++?

I realize there is no publicly available support for auto differentiation in C++. Are there any plans to do so?

Issue 2:
I have started porting Tensorflow to Node.js and was wondering about the status of gradients support in the C and C++ APIs:

https://www.tensorflow.org/versions/r0.12/how_tos/language_bindings/index.html

https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/resources/roadmap.md

Could I ask for some help and / or offer some assistance? A couple of ideas:

I would be happy to test the work-in-progress API in Node.js using either of both C or C++. I have tried both APIs and would be happy to maintain both as a test case.

I would be happy to receive some guidance from someone on the tensorflow team on how to implement gradients / training without an official API. I see from this issue (#4473) that it might be possible, but it has been hard to study the Python and OCAML code to understand what to do. Some pseudocode or links to existing code that would need to replicated could be enough.

Something else? For example, I could help move the gradient API forward by working with someone on the tensorflow team.

Let me know if you have any suggestions for a path forward. Thank you!
Issue 1:
Issue Type:

Feature Idea

Ansible Version:

ansible 1.5.4

Environment:

Debian 7

Summary:

Hi I'm using Debian and miss to be able to nicely add conditions which incorporates the state of a package, ie only run a command if a package is not installed. (in my caste debconf commands should only be run if the package is not installed)

Got the idea from: #6886 where a condition with debconf will always be "changed"

Steps To Reproduce:

not able to retrieve status of a package to a variable today.

Expected Results:

something like this below but you proably know syntax better than me :)

ansible -m apt -a name=mysql-server state=facts

which would give me a variable back with the status if its installed or not.

With this variable I can then run a command based upon if the package is missing or not. (when: variable=true) from my playbook.

Actual Results:

not able to retrieve status of a package to a variable

Issue 2:
ISSUE TYPE

Feature Idea

COMPONENT NAME

Tags

SUMMARY

hi, it would be very usefull if we could combine tags to restrict the execution on some task which have all the tags, instead of the union.

That could be done with this kind of arguments:

ansible-playbook -i "localhost," -c local playbook.yml --tags=tag1 --tags=tag2 --tag-strategy=intersection

And it would execute only the task with both tags.

The same could be done with the skip-tags property.

Thanks for your feedback.
Issue 1:
I don't see any figures on http://matplotlib.org/users/colormaps.html. They are present in my local build of the documentation.

Issue 2:
Three examples now require it, for the rgb2lab function:

users/plotting/colormaps/lightness.py
5:from skimage import color

users/plotting/colormaps/Lfunction.py
9:from skimage import color

users/plotting/colormaps/grayscale.py
6:from skimage import color

We should probably just subsume rgb2lab -- skimage is a fairly heavy dependency just for this.
Issue 1:
Challenge use-a-css-class-to-style-an-element has an issue.

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0.

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

<style>
.red-text {
color: red;
}
</style>

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

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

```

Issue 2:
Challenge Name

Issue Description

Some of the issues cropping up seem to be a result of failed tests caused by either the editor or browser. They mostly seem to be limited to Firefox.

#10588 - Challenge: Change Color of Text

#10557 - Challenge: Target the Children of Element in jQuery

#10582 - Challenge: Use Clockwise Notation to Specify Padding

#10569 - Challenge: Change the CSS of an Element Using jQuery

#10603 - Challenge: Change the Font Size of an Element

#10572 - Challenge: Use RGB Values to Color Elements

#10539 - Challenge: Add Rounded Corners with a Border Radius

#10535 - Challenge: Give Background Color to Div Element

#10614 - Challenge: Size Your Images

#10617 - Challenge: Use a CSS Class to Style an Element

I'll update this list as I confirm more.

Browser Information

Browser Name, Version: Firefox

Operating System: OS X

Mobile, Desktop, or Tablet: Desktop

Your Code

Screenshot
Issue 1:
Some packages in the settings tab don't have a button to see the settings for that package. I assume these are packages without configuration options. But there are many other useful features in the settings for a package that are missing for these packages ....

Load time

Github link

Report issue

Changelog

License

View code

Keybindings

Versions

Atom: 0.194.0

Atom-Shell: 0.22.3

OS: linux 3.14.0

Misc

apm 0.161.0

npm 2.5.1

node 0.10.35

python 2.7.3

git 1.7.9.5

This report was created in and posted from the Atom editor using the package bug-report v0.6.3.

Issue 2:
See this image:

As you can see, it seems kind of random which packages get a settings button and which do not. The majority of the packages don't have the settings button, and now I can't go to their details page anymore.
Issue 1:
The interface ObjectIterator has an optional key parameter. This becomes an issue when trying to use the key in a context with StrictNullChecking enabled. For example, the mapValues() function use ObjectIterator as its callback function:

mapValues(dict, (value, key) => {
// This line throws an error because the key can be undefined
dict[key];
if (key) {
// This line is OK
dict[key];
}
});

It does not makes sense to check the key for nulls while iterating a dictionary because it cannot exists values in the dictionary that does not have any keys.

I suggest we change the type of the key parameter in the interface ObjectIterator from key?: string to key: string. Maybe this applies for other iterator interfaces as well such as NumericDictionaryIterator and DictionaryIterator. Any comments/objections?

The authors of that type definition are cc/ @bczengel @chrootsu @stepancar

Issue 2:
[x ] I tried using the latest materialize-css/index.d.ts file in this repo and had problems.

Hi,

I use materialize-css and angular2-materialize directives. I couldn't use the global object Materialize because of Cannot find name Materialize. I was glad to find out the definition here so I installed it.

The problem now is that I have a lot of Duplicate identifier coming from the jQuery type dependency.

I inspected the directories :

@types
materialize-css
index.d.ts
node_modules
@types
jquery
pickadate
index.d.ts
node_modules
@types
jquery

As you can see, materialize-css installs @types/jquery, but also pickadate which itself installs @types/jquery, leading to that Duplicate identifier issue.

I am on Typescript 2.0.9 and I tried to exlude the directory node_modules/materialize-css/node_modules but it didn't work.

Can you help me ?

Thx
Issue 1:
New "open with" api to allow open a file with chosen program in OS.

Same as shell.openItem() but let the user choose with whith of this programs the file should be opened.

Issue 2:
Electron version: all

Operating system: all

Can't get the file launcher,So open the program is actually not know.

I want to get the initiator's path, so the use of selective "open appPath filePath" open way, rather than having to default.

Excuse me, can you provide relevant interface to obtain the default launcher path？
Issue 1:
This code:

function a(f) {
return () => {}
}

@a(foo => ({}))
class MyClass {
}

is transpiled to

function a(f) {
return function () {};
}

var MyClass = function MyClass() {
_classCallCheck(this, MyClass);
};

whereas if you replace the annotation with @a(foo => 1) the result changes dramatically:

function a(f) {
return function () {};
}

var MyClass = (function () {
function MyClass() {
_classCallCheck(this, _MyClass);
}

var _MyClass = MyClass;
MyClass = a(function (foo) {
return 1;
})(MyClass) || MyClass;
return MyClass;
})();

So it looks like it's not possible to use an arrow function syntax that return object literals

Possible use cases:

@connect(state => ({
counter: state.counter
}))
export default class CounterApp {
render() {
const { counter, dispatch } = this.props;
// Instead of `bindActionCreators`, you may also pass `dispatch` as a prop
// to your component and call `dispatch(CounterActions.increment())`
return (
<Counter counter={counter}
{...bindActionCreators(CounterActions, dispatch)} />
);
}
}

Issue 2:
Compare the output of these two to show the difference.

https://babeljs.io/repl/#?experimental=true&evaluate=true&loose=false&spec=false&code=%40decorate((arg)%20%3D%3E%20null)%0Aclass%20Example1%20%7B%0A%7D%0A%0A%40decorate(arg%20%3D%3E%20null)%0Aclass%20Example2%20%7B%0A%7D

@decorate((arg) => null)
class Example1 {
}

@decorate(arg => null)
class Example2 {
}