WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
See this example (derived from simple form example):

http://plnkr.co/edit/TyLCDmO5LNYOkflxu2eY?p=preview

It works until you change a line in index.html

<script src="https://code.angularjs.org/2.0.0-beta.6/angular2-all.umd.js"></script>

to

<script src="https://code.angularjs.org/2.0.0-beta.6/angular2-all.umd.min.js"></script>

When changed, the form is not working anymore. Exception is thrown:

TypeError: Cannot read property 'subscribe' of undefined

Issue 2:
When using minified bundles with SystemJS, and a simple snippet like this

<template ngFor #item [ngForOf]="items" #i="index">
<li>{{i}}</li>
<li *ngIf="i % 2 == 0">number is even</li>
</template>

Will throw

TypeError: this.directive_0_0.ngDoCheck is not a function

This is only reproducible with minified bundles, non-minified work correctly.

As an example check this plnkr (took it from #6304 (comment)). To reproduce switch between minified and unminified bundles.

This is also reproducible with Webpack using this line in the config

plugins : [
new webpack.optimize.UglifyJsPlugin()
],

Am I missing something?
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-learn-how-script-tags-and-document-ready-work

At first, the text in the third instruction is right. But after add the '$(document).ready(function() {', it lost a right bracket after document. In addition, i can't get the last instrcution of 'close' right, this may be my personal fault.

Issue 2:
Challenge Confirm the Ending has an issue.

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/601.4.4 (KHTML, like Gecko) Version/9.0.3 Safari/601.4.4.

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

My code:

function end(str, target) {
return str.endsWith(target);
}

end("Bastian", "n");

It's not a bug, but I didn't want to post what might be considered a way to cheat. Is using my ridiculously simple solution cheating, or missing the point of the challenge?
Issue 1:
Bug report

Plotting with string categorical data fails, if the second call to plt.scatter contains categories not present in the first call to plt.scatter

Code for reproduction

import matplotlib.pyplot as plt
plt.scatter(["a", "b"], [0,2])
plt.scatter(["a","c"], [1,4])

Actual outcome

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "xxx/python3.6/site-packages/matplotlib/pyplot.py", line 3357, in scatter
edgecolors=edgecolors, data=data, **kwargs)
File "xxx/python3.6/site-packages/matplotlib/__init__.py", line 1710, in inner
return func(ax, *args, **kwargs)
File "xxx/python3.6/site-packages/matplotlib/axes/_axes.py", line 4010, in scatter
x = self.convert_xunits(x)
File "xxx/python3.6/site-packages/matplotlib/artist.py", line 191, in convert_xunits
return ax.xaxis.convert_units(x)
File "xxx/python3.6/site-packages/matplotlib/axis.py", line 1491, in convert_units
ret = self.converter.convert(x, self.units, self)
File "xxx/python3.6/site-packages/matplotlib/category.py", line 53, in convert
return vals.astype('float')
ValueError: could not convert string to float: 'c'

Expected outcome

Figure generated using

plt.plot(["a", "b"], [0,2], "o")
plt.plot(["a", "c"], [1,4], "o")

Using different categories for subsequent calls to plt.plot works as expected.

Matplotlib version

Operating system: Fedora

Matplotlib version: 2.1.0 (installed the manylinux binary wheel via pip)

Matplotlib backend: TkAgg

Python version: 3.6.2

Issue 2:
Alerted to by @anntzer in #9350, the fill_between with all categorical doesn't do an update on the y2 and so the following code:

plt.fill_between(['a', 'b', 'c'], ['e', 'f', 'g'],['h','i','j'])

Crashes on the lookup:

/projects/matplotlib/lib/matplotlib/artist.py in convert_yunits(self, y)
198 if ax is None or ax.yaxis is None:
199 return y
--> 200 return ax.yaxis.convert_units(y)
201
202 @property

~/projects/matplotlib/lib/matplotlib/axis.py in convert_units(self, x)
1489 return x
1490
-> 1491 ret = self.converter.convert(x, self.units, self)
1492 return ret
1493

This seems to be limited to categoricals because dates work as expected:

import numpy as np
import pandas as pd
dates = pd.date_range('1990-10-10', '2004-10-10', freq='M')
x = np.arange(84)
y1 = dates[:84]
y2 = dates[84:]
plt.fill_between(x, y2, y1)

And as @anntzer suggested, the axis behavior should be modified such that once units are set on that axis, the axis should error out if new input isn't in the same units. As expected, the following errors out: plt.fill_between(x, x, y1)
Issue 1:
System information (version)

OpenCV => 4.1 master

Operating System / Platform => Windows 10 64 Bit

Compiler => Visual Studio 2019

Detailed description

I'm try master branch with .NET assembly and testing with xunit.

But most of time it crashed at end of xunit running.

Detail windbg trace attached:

20191203_crash.txt

Issue 2:
System information (version)

OpenCV => 4.0.1

Operating System / Platform => Windows 10 64 Bit

Compiler => Visual Studio 2017

Detailed description

The tf_text_graph_faster_rcnn.py stops with error when trying to generate pbtxt file for faster_rcnn_nas model from TF object detection model zoo [1-2] following this guide [3].

Traceback (most recent call last):
File "tf_text_graph_faster_rcnn.py", line 241, in <module>
createFasterRCNNGraph(args.input, args.config, args.output)
File "tf_text_graph_faster_rcnn.py", line 34, in createFasterRCNNGraph
features_stride = float(config['feature_extractor'][0]['first_stage_features_stride'][0])
KeyError: 'first_stage_features_stride'

Would appreciate any tips and ideas on how to fix this bug.

References.

[1] https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md

[2] https://github.com/tensorflow/models/blob/master/research/object_detection/samples/configs/faster_rcnn_nas_coco.config

[3] https://github.com/opencv/opencv/wiki/TensorFlow-Object-Detection-API
Issue 1:
There one features that lacks most of 3rd party virtual desktop is to have independent virtual desktop that can be freeze any time.

For example, I will have a few virtual desktop with everything set (app already opened and placed where I want to) for :

my work 1 (for example : dev in HTML4)

my work 2 (for example: dev in python)

my home (everything related to games & leisure)

my personal dev (my own website and its tools)

etc...

Whenever I need to switch to another desktop, I won't loose all opened windows etc.

PS: I don't even know if something like is possible through powertoys. Perhaps, it's OS dependant...

Issue 2:
every morning since I upgraded to v0.16.0 and even on v0.16.1, when I unlock my PC and then go to move any window that is not where it was when I locked my PC the fancyzone grid shows then freezes the screen with gris overlay on top of everything for about 60 seconds or more and I can't do any thing
Issue 1:
After upgrading to 4.1.0 from 4.0.2, I got this warning in my browser's console. It didn't occur on 4.0.2.

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

Expected Behavior

No warning message.

Current Behavior

React Hot Loader: this component is not accepted by Hot Loader.
Please check is it extracted as a top-level class, a function or a variable.
Click below to reveal the source location:
ƒ (props, context, updater) {
// This constructor gets overridden by mocks. The argument is used
// by mocks to assert on what gets mounted.

if (true) {
warning(
th…

Steps to Reproduce (for bugs)

Install Next 4.1.0

Run dev server.

Warning messages in the browser's console.

Your Environment

Tech
Version

next
4.1.0

node
8.6.0

OS
Ubuntu

browser
Chrome 60

Issue 2:
Bug report

Describe the bug

The with-typings-for-css-modules example works only because style.css is in the root folder. If you move it into pages, the build fails:

$ ./node_modules/.bin/next build
Creating an optimized production build

Failed to compile.

./pages/style.css.d.ts 1:20
Module parse failed: Unexpected token (1:20)
File was processed with these loaders:
* ./node_modules/next/dist/build/webpack/loaders/next-babel-loader.js
You may need an additional loader to handle the result of these loaders.
> export const example;
| export const example__description;
| export const exampleDescription;

> Build error occurred
Error: > Build failed because of webpack errors
at build (/Users/alex/Code/next.js/examples/with-typings-for-css-modules/node_modules/next/dist/build/index.js:7:847)

Testing this, it appears to only affect pages. If a page embeds a component in a subfolder that imports styles from its own folder, it works fine.

The issue is mentioned in this Spectrum discussion.

To Reproduce

I have cloned the example to this repo.

git clone https://github.com/atombender/next.js-issue-with-typings-for-css-modules

cd next.js-issue-with-typings-for-css-modules

yarn run build

Expected behavior

It should be possible to import styles with TypeScript from a page.
Issue 1:
Hi, I'm facing a problem that window.opener is null when there is a access to window.opener in a page within webview tag.

I listen the new-window event of the webview tag,and then add a new tab.Yes, it's similar to click a a tag with _blank .

The original behavior is that opening a new window in Chrome of window.opener.But now,I changed it to act as clicking a tag with _blank .

I found a doc in https://github.com/electron/electron/blob/master/docs/api/window-open.md.

The sample code is strange,when I opened an url directly,I couldn't access window.opener in new page.

like this:

main.js

const {app, BrowserWindow, m} = require('electron');
let basicWindowParams = {
show: true
};
console.log(process.pid)
app.on('ready', () => {
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nativeWindowOpen: true
}
})
mainWindow.webContents.on('new-window', (event, url, frameName, disposition, options, additionalFeatures) => {

if (frameName === 'reddit') {
event.preventDefault()
Object.assign(options, {
modal: true,
parent: mainWindow
})
let newWin = new BrowserWindow(options);
event.newGuest = newWin;
newWin.webContents.openDevTools();
}
});
mainWindow.loadURL(`file://${__dirname}/index.html`)
});

index.html

<html>
<body>
<script>
let url = 'https://reddit.com';
let modal = window.open(url, 'reddit')
// modal.location.href = url;
</script>
</body>
</html>

OS: Windows 7 SP1

Electron: 1.7.8

Issue 2:
Electron version: 1.7.6

Actual behavior

When calling window.open from an iframe no popup is open whereas the new-window events is fired on the webContents.

Expected behavior

Would expect window.open to open a popup even in iframe.

Note that when using with nativeWindowOpen it works fine.

How to reproduce

Use this PR: alexstrat/electron-quick-start#1
Issue 1:
If form is sent with an invalid CSRF token, this error message will be displayed: The CSRF token is invalid. Please try to resubmit the form.

This message is in fact instruction on how to bypass CSRF protection. This wording makes protection to be more like an attacker collaborator ;-)

Please change message to something like Your session has expired. Please return to the home page and try again..

Issue 2:
I don't think the current behavior for specifying a null errorPath option for the UniqueEntity validator makes sense.

When passing null to this option, the error should appear on the object itself, not on the first field provided to the fields option. Perhaps if the errorPath option is not set, then it could appear on the first field provided.

My use case is as follows. Say I have an object called PriceRule. This object contains several relations to other objects, and is used to calculate a price when a Company is posting a job. The object as a whole should be unique so duplicate rules aren't created. It looks like this:

<?php

/**
* @UniqueEntity(fields={"company", "occupation", "specialty"}, ignoreNull=false})
*/
class PriceRule
{
public $company;
public $occupation;
public $specialty;
public $price;
}

If you create a PriceRule object with a duplicate company, occupation and specialty data, it makes no sense for the error to appear on any of these individual fields. The error should appear on the root of the object, but with the current UniqueEntity validator this does not seem to be possible.

In short, I think that specifying a errorPath=null explicity should result in the addViolation method being called on the context, and if the errorPath is left out, it should result in a violation being added at the first field, which is the current behavior.

Thoughts?
Issue 1:
Code Sample, a copy-pastable example if possible

>>> foo = pd.DataFrame({"A":["One","Three","Four"], "B": range(3)})
>>> print(foo.to_string())
A B
0 One 0
1 Three 1
2 Four 2
>>> print(foo.to_string(index=False))
A B
One 0
Three 1
Four 2

Problem description

Columns headers lose alignment when to_string is passed index=False.

Expected Output

>>> print(foo.to_string())
A B
One 0
Three 1
Four 2

Output of pd.show_versions()

INSTALLED VERSIONS

commit: None

python: 3.5.2.final.0

python-bits: 64

OS: Linux

OS-release: 4.4.0-43-Microsoft

machine: x86_64

processor: x86_64

byteorder: little

LC_ALL: C.UTF-8

LANG: C.UTF-8

LOCALE: en_US.UTF-8

pandas: 0.22.0

pytest: None

pip: 10.0.1

setuptools: 39.1.0

Cython: None

numpy: 1.14.3

scipy: 1.1.0

pyarrow: None

xarray: None

IPython: 6.4.0

sphinx: None

patsy: None

dateutil: 2.7.3

pytz: 2018.4

blosc: None

bottleneck: None

tables: None

numexpr: None

feather: None

matplotlib: None

openpyxl: None

xlrd: 1.1.0

xlwt: None

xlsxwriter: None

lxml: None

bs4: None

html5lib: 1.0.1

sqlalchemy: None

pymysql: None

psycopg2: 2.7.4 (dt dec pq3 ext lo64)

jinja2: 2.10

s3fs: None

fastparquet: None

pandas_gbq: None

pandas_datareader: None

Issue 2:
[...]
reading sources... [ 75%] io
Exception occurred while building, starting debugger:
Traceback (most recent call last):
File "c:\portabel\python27\lib\site-packages\sphinx\cmdline.py", line 246, in
main
app.build(force_all, filenames)
File "c:\portabel\python27\lib\site-packages\sphinx\application.py", line 212,
in build
self.builder.build_update()
File "c:\portabel\python27\lib\site-packages\sphinx\builders\__init__.py", lin
e 214, in build_update
'out of date' % len(to_build))
File "c:\portabel\python27\lib\site-packages\sphinx\builders\__init__.py", lin
e 234, in build
purple, length):
File "c:\portabel\python27\lib\site-packages\sphinx\builders\__init__.py", lin
e 134, in status_iterator
for item in iterable:
File "c:\portabel\python27\lib\site-packages\sphinx\environment.py", line 470,
in update_generator
self.read_doc(docname, app=app)
File "c:\portabel\python27\lib\site-packages\sphinx\environment.py", line 621,
in read_doc
raise SphinxError(str(err))
SphinxError: 'utf8' codec can't decode byte 0x84 in position 25: invalid start b
yte

The problem is the following line in io.rst:

data = 'word,length\nTr\xe4umen,7\nGr\xfc\xdfe,5'
Issue 1:
I'm experiencing some type promotion errors after upgrading to numpy==1.23.0. I'm guessing it's probably not fully supported yet---my current JAX version is 0.3.13.

The following is a basic repro to trigger the error:

import jax
import jax.numpy as jnp

jax.grad(lambda x: jnp.sum(jax.nn.softplus(x)))(jnp.array([1.0, 2.0, 3.0]))

Filtered stack trace:

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "jax_bug.py", line 4, in <module>
jax.grad(lambda x: jnp.sum(jax.nn.softplus(x)))(jnp.array([1.0, 2.0, 3.0]))
File "jax_bug.py", line 4, in <lambda>
jax.grad(lambda x: jnp.sum(jax.nn.softplus(x)))(jnp.array([1.0, 2.0, 3.0]))
File "/home/sean/.local/lib/python3.8/site-packages/jax/_src/nn/functions.py", line 66, in softplus
return jnp.logaddexp(x, 0)
File "/home/sean/.local/lib/python3.8/site-packages/jax/_src/numpy/ufuncs.py", line 361, in _logaddexp_jvp
x1, x2, t1, t2 = _promote_args_inexact("logaddexp_jvp", x1, x2, t1, t2)
File "/home/sean/.local/lib/python3.8/site-packages/jax/_src/numpy/util.py", line 327, in _promote_args_inexact
return _promote_shapes(fun_name, *_promote_dtypes_inexact(*args))
File "/home/sean/.local/lib/python3.8/site-packages/jax/_src/numpy/util.py", line 262, in _promote_dtypes_inexact
to_dtype, weak_type = dtypes._lattice_result_type(*args)
KeyError: dtype([('float0', 'V')])

Note from the stacktrace I thought the culprit would be from logaddexp, so I tried:

import jax
import jax.numpy as jnp

jax.grad(lambda x: jnp.sum(jnp.logaddexp(x, 0)))(jnp.array([1.0, 2.0, 3.0]))

which is the exact implementation of jax.nn.softplus and it runs without issue

Also note that downgrading to numpy==1.22.3 gets rid of the error completely

Issue 2:
Something in the numpy 1.23 release broke autodiff; in particular, float0 arrays are being converted to bool:

import jax
import numpy
print(numpy.__version__)
print(jax.grad(lambda x: x+0., allow_int=True)(1).dtype)

Newest numpy:

1.23.0
bool

previous version:

1.22.4
[('float0', 'V')]
Issue 1:
I'm trying to build the atom-editor from source om my ubuntu 14.04 armhf machine.

but I get stuck when the build script is trying to download pre-builts for arm (which don't yet exist)

Node: v0.10.32
npm: v1.4.28
Installing build modules...
Installing apm...
Installing modules ✓
Deduping modules ✓
Running "download-atom-shell" task
>> Cannot find atom-shell-v0.17.1-linux-arm.zip in atom-shell v0.17.1 release
Aborted due to warnings.

Then I tried building atom-script by myself, but I got stuck at the

git update --init --recursive

command in vendor/node

when running script/bootstrap.py:

fatal: reference is not a tree: a80a10c6a1f2c668d90eda4e2c9aab38e4dcd4a2
Unable to checkout 'a80a10c6a1f2c668d90eda4e2c9aab38e4dcd4a2' in submodule path 'vendor/node'

Traceback (most recent call last):
File "script/bootstrap.py", line 119, in <module>
sys.exit(main())
File "script/bootstrap.py", line 23, in main
update_submodules()
File "script/bootstrap.py", line 53, in update_submodules
execute(['git', 'submodule', 'update', '--init', '--recursive'])
File "/root/git/atom3/atom-shell/script/lib/util.py", line 142, in execute
raise e
subprocess.CalledProcessError: Command '['git', 'submodule', 'update', '--init', '--recursive']' returned non-zero exit status 1

Can anyone help me with this?

Issue 2:
Is there a way to cross/compile atom-shell for ARM based computers?
Issue 1:
It seems a bit out of date.

Issue 2:
Steps/Code to Reproduce

import numpy as np
from sklearn.neighbors import LocalOutlierFactor
c=np.array([[0,0],[0,1],[1,1],[3,0]])
k=2 #numNeighbours
clf = LocalOutlierFactor(n_neighbors=k, n_jobs=-1,algorithm='brute',metric='manhattan').fit(c)
Z = clf._decision_function(c)
print(-Z)
[ 0.875 0.875 0.875 1.5 ]

However, the result should be: [ 0.875 1.333 0.875 2. ] if you work it out by hand (assuming a sample can't be the 1st nearest neighbour to itself). So, I think there is something wrong with the LOF implementation. Could somebody confirm either way?
Issue 1:
Plot function in matplotlib 3.1.3 generate following strips.

ones = np.ones((200,100))
cumsum = np.cumsum(ones, axis=1)
plt.plot(cumsum, linestyle='', marker='o', markersize=0.6, color="k");

Issue 2:
Bug report

Bug summary

When I try to plot a scatterplot where all points are positioned in a regular 2D-grid layout, plotted points are not evenly spaced. Spacings differ systematically which leads to strange regular vertical patterns. With a 100x100 grid, this is the case for (9, 9) or smaller figures. Patterns get less visible with larger figures and disappear around (12, 12)

Code for reproduction

import numpy as np
import matplotlib.pyplot as plt

x = np.tile(np.arange(100), 100)
y = np.repeat(np.arange(100), 100)

f, ax = plt.subplots(figsize=(7, 7))
ax.scatter(x, y, s=1, c='k')

Actual outcome

Expected outcome

Here is a figure of size (12, 12):

Here is a figure from R for comparison:

Matplotlib version

Operating system: osx 10.14

Matplotlib version: 3.0.2

Matplotlib backend (print(matplotlib.get_backend())): module://ipykernel.pylab.backend_inline

Python version: 3.6.6

Jupyter version (if applicable): 4.4.0
Issue 1:
📝 Provide a description of the new feature

Think about origin Win10's zones:

We count pin a window to right half of screen by Win+→

Then pin to bottom-right but Win+↓

At last, restore it to right zone by Win+↑

I mean, when moving window across zones, could we change the step from single shortcut to double shortcuts?

Just like grid layout, with a window in bottom-right zone:

When pressed Win+↑, it spans across 2 zones to the left side of screen instead of moving to top-right

Then press Win+↑ again, it shirnks to top-right

Why do we need this?

I'm using grid layout to arrange 4 docs/browsers for browsing infomations, placing music player, etc.

Then when I came up to work with something, I need a workspace large enough. That is, an interactive window(mso word, or IDE) spans across 2 zones, and leave 2 zones remain for retrieving infomations.

But I couldn't use Win+↑ or Win+← to span my window ascross zones. I can only drag my window's boarder to resize it.

It is not elegant.

We need cross-zone-spanning.

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Issue 2:
Summary of the new feature/enhancement

using a hotkey + arrow combination for the direction, it should be possible to make a window grow or shrink

When you want to grow a window that you have snapped to a smaller zone, and you want to make it temporarily larger, you have to manually make it longer or wider. It would be easier if you could use a key+arrow combo to grow the window with the zone the arrow points to.

Of course, this should be restricted to zones that combine to rectangles.

I don't know if this matches your vision of the product, but this is what I miss in the current version. Or maybe this functionality already exists and I have missed it.
Issue 1:
Environment

Windows build number: v1909
PowerToys version: v0.15.2
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Setup zones and assign several applications to several zones

Plugin in multiple monitors

Put machine to sleep

Wake machine

Expected behavior

Both monitors appear to wake from sleep immediately

All application windows stay put

Actual behavior

Both monitors appear to wake from sleep immediately

All application windows move from secondary display to primary display

I can record a video if that isn't clear.

Issue 2:
Summary of the new feature/enhancement

As a developer with 5 monitors, whenever I have to go to a meeting which requires my laptop, I usually have to spend a couple minutes minimizing windows once un-docked, then 3-5 minutes re-positioning/resizing a bazillion windows back onto my multiple monitors.

It would be awesome to have a PowerToy that at least attempted to keep my layout between dock cycles, maybe integrated into the virtual desktops feature in Windows 10

Proposed technical implementation details (optional)

Whenever a graphics/monitor hardware event occurs, and before Windows re-positions all windows, take a snapshot of the monitor layout, all main window handles and their current positions.

Then, check if the new layout/monitor configuration matches to any previous snapshots, and align the windows accordingly.

The initial version could just go off window handles, but maybe future versions could allow users to specify regular expressions for window titles/tab names (in the event windows are closed then re-opened.)