WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Version

2.5.17

Reproduction link

https://jsfiddle.net/truefusion/hLzg2w8b/

Steps to reproduce

Extend an Array.

Instantiate the new class.

Assign it to a component property that is observable by Vue.

Access the property in the console.

What is expected?

The reference to maintain its instantiated class.

What is actually happening?

The instantiated class is mutated into a regular array.

Tested in latest version of Chrome. Not sure about the rest (but for my purposes the other browsers are irrelevant for my project).

Issue 2:
Version

2.5.13

Reproduction link

https://codepen.io/anon/pen/ppWdEX?editors=1010

Steps to reproduce

Seems that Vue doesn't consider what happens when a Vue component is mounted inside of a shadow root.

The component's style gets placed into the <head> of the web app, and therefore the style is not able to style the elements generated by the Vue component that are inside the shadow root.

Here's a reproduction:

This pen works:

https://codepen.io/saawsan/pen/jayzeq

and this one doesn't:

https://codepen.io/anon/pen/ppWdEX

As you can see the app works (click the buttons) but nothing is styled.

What is expected?

The app should be styled.

What is actually happening?

It isn't because the styles are placed in the <head> and they don't propagate into the shadow root.

Is there a way to configure Vue to place the <style> element as a sibling of the rendered output, or somewhere else? I need the generated style to be placed inside the shadow root, otherwise it has no effect (scoped or not).
Issue 1:
Steps to reproduce

Click Tray Icon -> Settings

PowerToys "hangs" on start-up, UI doesn't even get rendered

Version

PowerToysSetup-0.18.2-x64.msi

winver: Version 1903 (Build 18362.900)

Remediation

Uninstall + Install + Reboot didn't work

Are there any logs I can send you?

Attachments

Issue 2:
The "Window-Tiling" PowerToy

Here's an idea, add the ability to tile windows automatically. What I mean by that is when a window would open, it'll cover the whole screen but when another window would open, it'll cover the half of the screen automatically and the first app would also resize to the half of the screen. If the third window opens it'll open below the second window, resizing the second window to half vertically. And the new window would take place under the second window.

It has been done before in some Linux window managers like "i3". And a lot of people really appreciate the ability to do that.

Concept Shots

I've prepared some concept shots to show that:

In the image above, a single window is opened. When the user wants open another window, they would need to click the start button or hit the start key on the keyboard. The Start Menu would be replaced with Power Run. The user would be able to select the desired app by typing it's name and selecting one of the results by using the arrow keys. Or just type the name and hit enter

And when more than two apps are opened:

And when more than three apps are opened, the third app would be resized to half of it's size and the fourth window would appear in the empty space created by the third app.

There are better explanations of tiling window managers (than what I've done here) online

Conclusion

The window tiling feature is inspired by some window managers in Linux (like i3). I think it'll help with productivity stuff. I've posted these concept shots on Twitter and many people wanted this feature to be in PowerToys. Maybe integrate it in FancyZones by adding a toggle for this feature. What do you think? :)
Issue 1:
Make sure these boxes are checked before submitting your issue - thank you!

[yes] I have checked the superset logs for python stacktraces and included it here as text if any

[yes] I have reproduced the issue with at least the latest released version of superset

[ yes] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.19.1

Expected results

I'm trying to use mapbox with superset. I start with postgresql table and mapbox work well.

Now i save my data to druid datasource and get error below:

Actual results

TypeError: <superset.connectors.druid.models.DruidMetric object at 0x7744950> is not JSON serializable

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/superset/viz.py", line 249, in get_payload
df = self.get_df()
File "/usr/lib/python2.7/site-packages/superset/viz.py", line 79, in get_df
self.results = self.datasource.query(query_obj)
File "/usr/lib/python2.7/site-packages/superset/connectors/druid/models.py", line 971, in query
client=client, query_obj=query_obj, phase=2)
File "/usr/lib/python2.7/site-packages/superset/connectors/druid/models.py", line 799, in get_query_str
return self.run_query(client=client, phase=phase, **query_obj)
File "/usr/lib/python2.7/site-packages/superset/connectors/druid/models.py", line 962, in run_query
client.groupby(**qry)
File "/usr/lib/python2.7/site-packages/pydruid/client.py", line 192, in groupby
return self._post(query)
File "/usr/lib/python2.7/site-packages/pydruid/client.py", line 391, in _post
headers, querystr, url = self._prepare_url_headers_and_body(query)
File "/usr/lib/python2.7/site-packages/pydruid/client.py", line 34, in _prepare_url_headers_and_body
querystr = json.dumps(query.query_dict).encode('utf-8')
File "/usr/lib64/python2.7/json/__init__.py", line 243, in dumps
return _default_encoder.encode(obj)
File "/usr/lib64/python2.7/json/encoder.py", line 207, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib64/python2.7/json/encoder.py", line 270, in iterencode
return _iterencode(o, 0)
File "/usr/lib64/python2.7/json/encoder.py", line 184, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: <superset.connectors.druid.models.DruidMetric object at 0x7744950> is not JSON serializable

Steps to reproduce

add datasource to druid (host String, lat Float, Long Float)

Use superset mapbow

Issue 2:
Make sure these boxes are checked before submitting your issue - thank you!

[yes ] I have checked the superset logs for python stacktraces and included it here as text if any

[yes ] I have reproduced the issue with at least the latest released version of superset

[yes ] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.19.1

Expected results

I try to draw mapbox in superset. I have dataset with column Latitude and Longitude and use it in respective field.

Actual results

TypeError: <superset.connectors.druid.models.DruidMetric object at 0xefbea90> is not JSON serializable

Steps to reproduce

Anyone already have the same problem?

Thanks
Issue 1:
Setya Nugroho D opened SPR-8502 and commented

To reproduce the problem, just run 'TestServiceInjection.java' unit test in the Eclipse project attachment to make it failed, then comment out method 'someMethod' in the test to make it passed.

Affects: 3.0.5, 3.1 M2

Reference URL: http://forum.springsource.org/showthread.php?110338-Strange-problem-with-Configurable

Attachments:

configurable.tar.bz2 (3.35 MB)

log_when_test_fails.log (78.16 kB)

log_when_test_passes.log (78.28 kB)

Issue Links:

#13167 @Entity objects are not enhanced by the load time weaver in certain situations

2 votes, 4 watchers

Issue 2:
Jon Travis opened SPR-7422 and commented

Section 3.13.2 (Standard and Custom Events) of the reference manual is out of date wrt best practices.

It does not talk about using ApplicationListener<T> with a type argument, thus removing instanceof checks in the event callback

It does not espouse the use of ApplicationEventPublisher and ApplicationEventPublisherAware

In both cases, the javadoc for the corresponding bits is correct and up-to-date, it simply needs to be referenced in the manual.

Affects: 3.0 GA

Issue Links:

#12053 Document generic use of ApplicationListener interface ("is duplicated by")

Referenced from: commits 9008cf9
Issue 1:
Error messages use _ a lot but it's meaning is never explained. This could be improved.

Playpen

fn test(o: Option<i32>) {}

fn main() {
let i = 7;
test(i);
}

Error:

// What is `_` supposed to mean? Apparently integral value but it still seems meaningless...
... error ... expected `core::option::Option<i32>`, found `_` ... found integral variable)
<anon>:5 test(i);
^
error: aborting due to previous error

6/8/2017: updated error message:

error[E0308]: mismatched types
--> <anon>:5:10
|
5 | test(i);
| ^ expected enum `std::option::Option`, found integral variable
|
= note: expected type `std::option::Option<i32>`
found type `{integer}`

error: aborting due to previous error

Issue 2:
fn main() {
let a = Vec::new();
}

Gives me:

<anon>:2:13: 2:21 error: unable to infer enough type information about `_`; type annotations required [E0282]
<anon>:2 let a = Vec::new();
^~~~~~~~

This is confusing because it doesn't say what the _ is that it can't figure out. Perhaps it could say something like:

Only able to infer that `a` has type `Vec<_>`; please annotate so I can figure out what `_` is.
Issue 1:
Rust and cargo installed nicely today on my raspberry pi 4, but running the build script for deno resulted in

error: failed to add native library /tmp/cargo-installYJydOT/release/gn_out/obj/librusty_v8.a: file too small to be an archive

error: aborting due to previous error

error: could not compile `rusty_v8`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to add native library /tmp/cargo-installYJydOT/release/gn_out/obj/librusty_v8.a: file too small to be an archive

error: aborting due to previous error

error: failed to compile `deno v1.10.3`, intermediate artifacts can be found at `/tmp/cargo-installYJydOT`

Caused by:
build failed

Issue 2:
I suppose there should be a next link
Issue 1:
Chris Beams opened SPR-6186 and commented

Due to multiple inheritance issues, CCAC and CCWAC cannot share @Configuration class processing behavior through a common superclass. Factor out a static util (probably as an inner class of CCAC) and refererence it from CCWAC as necessary to eliminate duplicate code.

This issue is a sub-task of #10353

Referenced from: commits d020d73, cbadf35

Issue 2:
Mahesh Gadgil opened SPR-8125 and commented

The following modifications are suggested for Sybase section of the sql-error-codes.xml. Ref. Sybase ASE 15.5 manual.

Drop following error codes from "badSqlGrammarCodes" section because they are not really bad grammer errors.

Error code - Actual error message from Sybase

207 - non-existent column

208 - object not found error

213 - column name or column values don't match

257 - coversion of datatype is not allowed

512 - subquery returned more than one value

Add following codes to "duplicatekeycodes" section.

2615 - 'Attempt to insert duplicate row in table in clustered index'

2626 - Illegal attempt to insert duplicate key row in clustered index

Drop code 423 from "dataIntegrityViolationCodes" section as this is not a valid code in Sybase ASE.

Referenced from: commits 189cc26
Issue 1:
I'm trying to implement some automatic MPI <-> NumPy datatype conversion for to enhance mpi4py. Users usually struggle to get it right from complex types, mostly because NumPy defaults to packed structs, while MPI defaults to aligned structs. I'm stuck with an minor issue. I guess it is related Python 2 legacy from the time we had to use an L suffix to write long integers. Minimal reproducer and proposed fix in the following.

Reproducing code example:

import numpy as np
np.dtype("3L")

Error message:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.7/site-packages/numpy/core/_internal.py", line 199, in _commastring
newitem = (dtype, eval(repeats))
File "<string>", line 1
3L
^
SyntaxError: unexpected EOF while parsing

Numpy/Python version information:

1.16.3 3.7.3 (default, May 11 2019, 00:38:04)
[GCC 9.1.1 20190503 (Red Hat 9.1.1-1)]

Proposed trivial fix (tested)

diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py
index ab5a64a1a..c70718cb6 100644
--- a/numpy/core/_internal.py
+++ b/numpy/core/_internal.py
@@ -146,7 +146,7 @@ def _reconstruct(subtype, shape, dtype):
# format_re was originally from numarray by J. Todd Miller

format_re = re.compile(br'(?P<order1>[<>|=]?)'
- br'(?P<repeats> *[(]?[ ,0-9L]*[)]? *)'
+ br'(?P<repeats> *[(]?[ ,0-9]*[)]? *)'
br'(?P<order2>[<>|=]?)'
br'(?P<dtype>[A-Za-z0-9.?]*(?:\[[a-zA-Z0-9,.]+\])?)')
sep_re = re.compile(br'\s*,\s*')

Issue 2:
the title says it all.

additional info:

python: 2.7.9, numpy: 1.9.2, both from conda.

other combinations not using 'L' seems to work fine.
Issue 1:
Claus Ibsen opened SPR-536 and commented

In relation to this thread in the forum

http://forum.springframework.org/viewtopic.php?t=1213&start=30

I need a Hibernate SessionInViewInterceptor that can be used by Spring AOP ProxyFactoryBean.

The existing ones in org.springframework.orm.hibernate.support is tied to the web tier = (servlet filter, or spring web framework).

I need a non web realted one that I can used in my ejb tier.

The reason is in short to support multiple schemas for Hibernate.

Read the forum to understand the problem more.

My workaround was to copy the code from org.springframework.orm.hibernate.support.OpenSessionInViewFilter and remove the web related.

I have attached the source file I am using.

And this is the relevant part from my spring .xml file

<!-- DAO -->
<bean id="SaldoOversigtDAO2" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces"><value>com.bmd.selfserviceejb.dao.SaldoOversigtDAO2</value></property>
<property name="target"><ref local="SaldoOversigtDAO2Target"/></property>
<property name="interceptorNames">
<list>
<value>hibernateSessionInViewInterceptor</value>
</list>
</property>
</bean>
<bean id="SaldoOversigtDAO2Target" class="com.bmd.selfserviceejb.dao.SaldoOversigtDAO2Impl">
<property name="sessionFactory"><ref local="sessionFactory"/></property>
</bean>

<bean id="hibernateSessionInViewInterceptor" class="com.bmd.selfserviceejb.spring.HibernateSessionInViewInterceptor">
<property name="sessionFactory"><ref local="sessionFactory"/></property>
</bean>

Affects: 1.1.2

Attachments:

HibernateSessionInViewInterceptor.java (4.29 kB)

Issue 2:
Akmal Sarhan opened SPR-1893 and commented

the following snippet does not work

<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">

<property name="searchSystemEnvironment" ><value>true</value></property>

<property name="systemPropertiesModeName" ><value>SYSTEM_PROPERTIES_MODE_FALLBACK</value></property>

<property name="locations">
<list>
<value>classpath:project-${SERVER_MODE}.properties</value>
<value>classpath:messages.properties</value>
</list>
</property>
</bean>

if SERVER_MODE is a system env. the solution is to change org.springframework.util.SystemPropertyUtils

to try to resolve the placeholder via:

...

String propVal = System.getProperty(placeholder);

if (propVal == null)

propVal = System.getenv(placeholder);

...

Affects: 2.0 M3

Issue Links:

#6542 Resource location placeholders not resolved against system environment variables ("duplicates")
Issue 1:
Grzegorz Borkowski opened SPR-7122 and commented

According to Hibernate Validator documentation, the JPA 2 provider (like Hibernate 3.5) will detect presence of validator implementation on classpath, and automatically validate @Entities during persist or merge calls. However, it doesn't work for me in Spring app - the validation is not called, I must call it explicitly (I don't use @Valid-marked controller inputs, becuase it doesn't fit well our needs. We call Spring DataBinder explicitly, and we have to call it's validate() method to trigger Hibernate Validator to run). Why validation is not triggered by Hibernate automatically? Is it something specific to Spring environment, perhaps it is disabled intentionally (e.g. to not duplicate validation after validating controller inputs)? Or it's Hibernate bug? (I tested it with Hibernate 3.5.0)

Affects: 3.0.2

Attachments:

SPR-7122.zip (5.63 kB)

1 votes, 3 watchers

Issue 2:
Lars Ködderitzsch opened SPR-4912 and commented

I wanted to use ConfigurableMimeFileTypeMap to easily map some common file endings to their mime type.

All looked good until I got "application/x-pointplus" for a CSS resource (filename bla.css) where I would have expected the more commonly used "text/css".

Looking into org/springframework/mail/mime.types it became quickly clear that the "css" ending is mapped twice - it seems that the latter mapping won in this case.

I don't know if that is exactly a bug - I myself was quite surprised, and need to "workaround" now using a custom mime types mapping file.

No big deal but I thought you should be made aware of this "issue".

Best regards,

Lars Ködderitzsch

Affects: 2.0.8, 2.5.4

Issue Links:

#9850 Included mime.types file contains duplicate settings for CSS extension making it return application/x-pointplus instead of text/css ("is duplicated by")

Backported to: 2.0.9
Issue 1:
Cannot run next export with antd examples

Example name

All examples with antd

Describe the bug

Cannot run next export

Always gets an error with SyntaxError: Invalid or unexpected token with the antd css file from node_modules

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Go to any example with antd

Download and build example

Then export

Expected behavior

Supposed to export static site

Screenshots

If applicable, add screenshots to help explain your problem.

System information

OS: Linux

Version of Next.js: 8.0.3

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

Expected Behavior

I have (and want to keep) the following file structure :

config

index.js

node_modules

...

server

index.js

src

.next

components

pages

static

serviceWorker.js

The import statement should work in server/index.js, as well as the export statement in config/index.js.

Current Behavior

The import statement fails in server/index.js, as well as the export statement in config/index.js.

It would really feel weird to use ES5 in a part of the project and ES6 in another part.

Steps to Reproduce (for bugs)

https://github.com/glemiere/nextjs-starter/tree/Transpiling-Issue

Context

Just building a complete starter for NextJS apps.

Your Environment

Tech
Version

next
5

node
9.6.0

OS
OSX High Sierra

browser
X

etc
X
Issue 1:
code

a = autograd.Variable(torch.ones(1000))
b = autograd.Variable(torch.ones(1000))
print(a.data.eq(b.data).sum()) # 1000
print(a.eq(b).sum().data[0]) # 232

environment

ubuntu 16.04

python3

pytorch 0.2.0_4

Issue 2:
When summing a ByteTensor wrapped in a Variable the answer is incorrect. The answer can be very off in some cases. See the below gist for reproducing.

https://gist.github.com/awni/675bedbda43e7aa3ad06dfd7f5ce7205
Issue 1:
I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Link with bug

Current behavior

Set last value of list values.

Expected behavior

Set all values of list value.

Minimal reproduction of the problem with instructions

If i use multiple with [] then I have this bug. Without [], all okey.

Issue 2:
I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

When select[multiple] is false then UI is not "multiple" but the ngModel return Array

Expected behavior

The model is not to return Array

Minimal reproduction of the problem with instructions

https://plnkr.co/edit/uU2p2GTf0ta0WP3ndegl?p=preview

What is the motivation / use case for changing the behavior?

I was trying to make a custome component that is "multiple" configureable

Angular version: 2.1.2

Browser: [Chrome 54]

Language: [TypeScript 2.0]
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

role

ANSIBLE VERSION

ansible 2.4.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/whitequark/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118]

CONFIGURATION

Default.

OS / ENVIRONMENT

N/A.

SUMMARY

If roles B and C depend on role A, which has at least one task that executes, role A is ran only one time. If all tasks in A are skipped, role A is ran (as visible on stdout) three times.

STEPS TO REPRODUCE

# ./roles/x/tasks/main.yml
- name: foo
debug: msg='x called'
when: false
# ./roles/z/meta/main.yml
dependencies:
- { name: 'x' }
# ./roles/z/tasks/main.yml
- debug: msg='z called'
# ./roles/y/meta/main.yml
dependencies:
- { name: 'x' }
# ./roles/y/tasks/main.yml
- debug: msg='y called'
# ./localhost.yml
---
- hosts: localhost
roles:
- { name: 'x' }
- { name: 'y' }
- { name: 'z' }

or as a zip archive

EXPECTED RESULTS

PLAY [localhost] ***************************************************************

TASK [Gathering Facts] *********************************************************
ok: [localhost]

TASK [x : foo] *****************************************************************
skipping: [localhost]

TASK [y : debug] ***************************************************************
ok: [localhost] => {
"msg": "y called"
}

TASK [z : debug] ***************************************************************
ok: [localhost] => {
"msg": "z called"
}

PLAY RECAP *********************************************************************
localhost : ok=3 changed=0 unreachable=0 failed=0

ACTUAL RESULTS

PLAY [localhost] ***************************************************************

TASK [Gathering Facts] *********************************************************
ok: [localhost]

TASK [x : foo] *****************************************************************
skipping: [localhost]

TASK [x : foo] *****************************************************************
skipping: [localhost]

TASK [y : debug] ***************************************************************
ok: [localhost] => {
"msg": "y called"
}

TASK [x : foo] *****************************************************************
skipping: [localhost]

TASK [z : debug] ***************************************************************
ok: [localhost] => {
"msg": "z called"
}

PLAY RECAP *********************************************************************
localhost : ok=3 changed=0 unreachable=0 failed=0

Issue 2:
Per tomkmem on IRC

mpdehaan: definately a bug then, i just dumped the list of {{ groups.all }} and it contains all the dupes

So add a host to more than one group and it may in a group more than once, or maybe the groups list is just wrong and needs to be given a set([]) operation.