WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Klaus Kreuzwieser opened SPR-6176 and commented

We have annotated classes with @Configurable and want that all @Autowired fields are injected. This works fine if all classes annotated with @Configurable are located in the WEB-INF/lib folder (for a web application), but does not work when the classes are in a JAR modules in APP-INF/lib folder.

Consider the following scenario: An EAR consists of several application modules (i.e. WAR files) which have roughly the same dependencies. To prevent the packaging of duplicate JAR files in all WARs, we create "skinny WAR files" (see http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html). The WAR dependecies are packaged in a library folder (i.e. APP-INF/lib) and are referenced via the Class-Path setting in the WAR's META-INF/MANIFEST.MF.

All classes annotated with @Configurable which are located in the external referenced JAR files are not woven at load time. All classes annotated with @Configurable which are packaged into the web application itself (either under WEB-INF/classes or WEB-INF/lib) are correctly woven at load time.

We are using WebLogic 10.3 as J2EE container, but I have found a similar problem (http://forum.springsource.org/showthread.php?t=50778) concerning JBoss - so this problem seems to be container unrelated.

I'l attach 2 zip files for reproduction: ltw-fat works fine, ltw-skinny throws a NullPointerException because the Configurable Conf1 is not woven.

Affects: 2.5.6

Reference URL: http://forum.springsource.org/showthread.php?t=50778

Attachments:

ltw-fat.zip (14.76 kB)

ltw-skinny.zip (15.20 kB)

Issue 2:
Jens Borrmann opened SPR-4936 and commented

There is a cyclical dependency between orm and context. This is caused by the following entry in the manifest of context:

org.springframework.orm.jpa.support;version="[2.5.4.A, 2.5.4.A]";resolution:=optional

Since this direction is optional resolving the context bundle without orm is not impossible, but "funny" effects during runtime can occur.

Affects: 2.5.4

Issue Links:

#9479 cycles between various modules manifests ("duplicates")
Issue 1:
Hi. I am wanting to try Deno for a work project, but our dev environment's security rules prevent us from fetching from https://deno.land. The issue seems to either be with the domain name, or a blacklist of IP addresses.

I am aware that this is a network security issue for our company and not an actual issue with Deno or https://deno.land.

However, is there another source to fetch Deno standard packages from, or is there a plan to move the Deno website to another host where we may be able to fetch standard packages from?

Thanks a bunch. The Deno project as a whole looks really cool.

Issue 2:
// hello.ts
console.log('Hello World');

$ env DENO_DIR=denodir deno cache hello.ts
Compile file:///xyz/test.ts
thread 'main' panicked at 'Bad file URL for file: ()', cli/tsc.rs:722:7
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This is caused by Url::from_file_path not being able to handle relative paths.

This also occurs at cli/tsc.rs:633:35 with a slightly different input.
Issue 1:
Bug report

I have the same problem than on this Stackoverflow webpage :

Code for reproduction

from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import matplotlib.pyplot as plt

def main():
plt.ion()
rho = np.random.random((4,4))
xpos = np.arange(0,4,1)
ypos = np.arange(0,4,1)
xpos, ypos = np.meshgrid(xpos, ypos)
xpos = xpos.flatten()
ypos = ypos.flatten()
zpos = np.zeros(4*4)
dx = 0.5 * np.ones_like(zpos)
dy = dx.copy()
dz = rho.flatten()
alpha = 0.5
fig = plt.figure()
ax = fig.gca(projection='3d')
ax.bar3d(xpos,ypos,zpos, dx, dy, dz, alpha=alpha, linewidth=0)
plt.show()
input("Press Enter to continue...")

if __name__ == '__main__':
main()

Actual outcome

The bar on the plot are not transparent at all but they should be.

Matplotlib version

Operating system: Ubuntu 16.04

Matplotlib version: 2.0.2

Matplotlib backend (print(matplotlib.get_backend())): Qt5Agg

Python version: 3.6

Matplotlib have been installerd from conda.

Issue 2:
Trying to create a semitransparent Poly3DCollection fails as shown in the following.

from mpl_toolkits.mplot3d import Axes3D
from mpl_toolkits.mplot3d.art3d import Poly3DCollection
import matplotlib.pyplot as plt

fig = plt.figure()
ax = Axes3D(fig)
x = [0, 1, 1, 0]
y = [0, 0, 1, 1]
z = [0, 1, 0, 1]
verts = [list(zip(x, y, z))]

alpha=0.5
fc = "C0"

# This line fails to give a semitransparent artist
pc = Poly3DCollection(verts, alpha = alpha, facecolors=fc, linewidths=1)

ax.add_collection3d(pc)
plt.show()

It gives the following output, which still has an alpha of 1.

Non-Working options

Now one may try several things. The following is not working:

Setting facecolor and alpha individually, facecolor first,

pc = Poly3DCollection(verts, linewidths=1)
pc.set_facecolor(fc)
pc.set_alpha(alpha)

Setting facecolors and alpha at instantiation

pc = Poly3DCollection(verts, alpha = alpha, facecolors=fc, linewidths=1)

Working options

However, each of the following is correctly giving a semitransparent artist. This would be the expected outcome for any of the above as well.

Setting facecolor and alpha individually, alpha first,

pc = Poly3DCollection(verts, linewidths=1)
pc.set_alpha(alpha) # Order reversed
pc.set_facecolor(fc)

Setting alpha at instantiation, facecolor afterwards

pc = Poly3DCollection(verts, alpha = alpha, linewidths=1)
pc.set_facecolor(fc)

Setting facecolor and alpha at instantiation

pc = Poly3DCollection(verts, alpha = alpha, facecolor=fc, linewidths=1)

It seems there had been a similar bug in previous versions, https://stackoverflow.com/questions/18897786/transparency-for-poly3dcollection-plot-in-matplotlib which was reported to be fixed in the meantime but might have been reintroduced in a newer version.

In the 2D case the following works as expected and produces a semtransparent artist.

from matplotlib.collections import PolyCollection
import matplotlib.pyplot as plt

fig, ax = plt.subplots()
x = [0, 1, 1, 0]
y = [0, 0, 1, 1]

verts = [list(zip(x, y))]

alpha=0.5
fc = "C0"

pc = PolyCollection(verts, alpha = alpha, facecolors=fc, linewidths=1)

ax.add_collection(pc)
ax.autoscale()
plt.show()

[All of the code in this issue has been tested with matplotlib 2.1]
Issue 1:
📝 Provide a description of the new feature

What is the expected behavior of the proposed feature? What is the scenario this would be used?

Currently, the 'Space around zones' feature changes template shapes irregularly often. If I enter '5' (for example) into the text box, it changes the spacing in the view:

When I click 'Distance to highlight adjacent zones'

If I tab to the next item

If I click the +/- for number of zones

If I click over to the 'Custom' tab

If I click 'Edit selected layout'

It does not change the spacing:

If I click a different template layout

If I hit enter

If I click the whitespace beside the entry box

If I move the window

All four of these entry methods pull focus from the textbox, and the displayed value should therefore pull focus.

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

Issue 2:
i noticed when you are editing number in space around zones (when you chose your layout)

it does not update GUI representation of zones on change.... only when you disable and reenable show space around zones

you are probably missing onchange listener on that numberpicker and it has simple fix

spaceAroundZoneNumPickerRef.onChange(function(){/*redraw gui representation*/})
Issue 1:
I have 20 samples from 2 classes. 18 from class 0 and 2 from class 1. Class 0 has proportion 18/20 = .9 or 90% whereas class 1 has proportion 2/20 = .1 or 10%. So as this is stratified, we expect 10% of the samples should be from class 1 in the test split. But we see 0% data is drawn from class 1.

from sklearn.model_selection import StratifiedShuffleSplit
X = np.array([[1, 2], [3, 4], [1, 2], [3, 4], [5,6], [1, 2], [3, 4], [1, 2], [3, 4], [5,6], [7,8], [1, 2], [3, 4], [1, 2], [3, 4], [5,6], [1, 2], [3, 4], [1, 2], [3, 4]])
y = np.array([0, 0 ,0 , 0, 0, 0, 0, 0, 1, 1, 0, 0, 0 ,0, 0, 0, 0, 0, 0, 0])
sss = StratifiedShuffleSplit(n_splits=3, test_size=0.2, random_state=0)

for train_index, test_index in sss.split(X, y):
print("TRAIN:", train_index, "TEST:", test_index)
X_train, X_test = X[train_index], X[test_index]
y_train, y_test = y[train_index], y[test_index]

Output:

TRAIN: [10 9 3 7 1 12 16 15 13 11 4 6 19 8 18 2] TEST: [ 5 17 0 14]
TRAIN: [ 5 11 8 14 12 18 4 19 13 9 17 6 1 10 2 15] TEST: [ 0 16 3 7]
TRAIN: [14 2 0 16 10 8 15 1 5 18 12 19 17 11 9 4] TEST: [ 3 13 6 7]

Issue 2:
Describe the issue linked to the documentation

Since #20543 images linked in manifold.rst are no longer generated in the example.

This generates multiple warnings in the documentation build.

See also #22147.

@thomasjpfan , @glemaitre .

Suggest a potential alternative/fix

No response
Issue 1:
In julia, is there some syntax similar to

(x,z...) = (1,2,3) which would result in

x=1 & z=(2,3)?

If not, are there reasons why this was not supported, or perhaps this could be a reasonable feature request (or, more constructively, prior to working on a PR, do others have thoughts about this)?

Ideally, since nested destructuring e.g. (a,(b,c)) = (1,(2,3)) works as expected, any variadic version would also work e.g.

(a,(b,c,d...),e...) = (1,(2,3,4,5),6,7) would yield

a=1
b=2
c=3
d=(4,5)
e=(6,7)

And perhaps

(a,(b,c,d...),e..., nexttolast, last) = (1,(2,3,4,5),6,7,8,9,10) would yield

a=1
b=2
c=3
d=(4,5)
e=(6,7,8)
nexttolast=9
last=10

While (a,(b,c,d...),e..., nexttolast, last) = (1,(2,3,4,5),9,10) would yield

a=1
b=2
c=3
d=(4,5)
e=()
nexttolast=9
last=10

And finally (a,(b,c,d...),e..., nexttolast, last) = (1,(2,3,4,5),10) would result in an error, just

like the current behavior for (a,b) = 1

Issue 2:
This would be a very nice syntax for taking head and rest. Likewise a..., b = [1,2,3] might be good for slurping the initial elements into a and the tail element into b.
Issue 1:
System info

Playwright Version: latest

Operating System: Ubuntu

Hello guys, I am trying to run Playwright on a docker container with gui using dorowu/ubuntu-desktop-lxde-vnc image.

I have created this Dockerfile:

FROM dorowu/ubuntu-desktop-lxde-vnc:latest
WORKDIR /tests

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B

#Install Node.js & npm
RUN apt-get update
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs

COPY . .

# Install Playwright dependencies
RUN npm install
# Install browsers
RUN npx playwright install
# Install test
RUN npx @playwright/test install

When I am running this docker container I am giving a volume that is already holding Playwright installation and if I try to run it from the parent machine it's running.

But when I am running it from the container itself I am getting this error:

browserType.launch: Executable doesn't exist at /root/.cache/ms-playwright/chromium-1055/chrome-linux/chrome

And it's asking me to re-run npx playwright install and I have already run this command on the Dockerfile.

What am I missing here? how can I solve it?

Issue 2:
System info

Playwright Version: 8.19.3

Operating System: Ubuntu 22.04.2, macOS 13.4 (EDIT: and also latest Windows (in GitHub Actions))

Browser: n/a

Other info:

Source code

Failed GitHub Actions:

https://github.com/bytescript/bytescript/actions/runs/5310143531/jobs/9611726634

Link to the GitHub repository with the repro

https://github.com/bytescript/bytescript on this branch: bytescript/bytescript#27

or

Config file

I run the playwright install command as part of automation on GitHub Actions, like this:

https://github.com/bytescript/bytescript/pull/27/files#diff-faff1af3d8ff408964a57b2e475f69a6b7c7b71c9978cccc8f471798caac2c88R30-R31

npx playwright install --with-deps chromium firefox webkit msedge
npm test

Test file (self-contained)

n/a

Steps

Run in macOS

it will say that msedge is not a valid product.

Expected

msedge should be a valid produt to test against.

Actual

It says it doesn't exist, even after running playwright install --with-deps.
Issue 1:
🚀 Feature

when loading state_dict I'm getting

IncompatibleKeys(missing_keys=[], unexpected_keys=[]) message though model is loaded correctly. I feel we can have a conditional case before returning this named tuple when missing keys and unexpected keys are null

Motivation

I thought it was some error and wasted some time to figure out finally that this wasn't an error at all. I am not sure if this a warning though.

Pitch

I feel we can have a conditional case before returning this named tuple when missing keys and unexpected keys are null. If you are fine with this then please let me know, I'll submit at PR. Thanks

Alternatives

Additional context

Issue 2:
Now it prints IncompatibleKeys(missing_keys=[], unexpected_keys=[]) upon a successful load_state_dict, and could be quite confusing. This can happen a lot, e.g., in jupyter notebooks.

We can just subclass and overwrite __repr__.
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-target-a-specific-child-of-an-element-using-jquery has an issue.

The example gives us :

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

While the working code should be :

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

only a space is missing.

Issue 2:
http://freecodecamp.com/challenges/waypoint-target-a-specific-child-of-an-element-using-jquery

In the instructions is says:

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

and it should be:

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

i.e., with a space before the semicolon. Otherwise it doesn't work.
Issue 1:
It looks like Edge doesn't like that fakeNode isn't attached to the body.

If I append it to the body, then remove after removing the listener, all is good.

Obviously in a production build this isn't an issue as handler is called directly.

This was for a 'click' event.

Issue 2:
Count up with 0.14.0

http://inuscript.github.io/react-0-14-bug/0-14-0.html

But can't count up 0.14.1

http://inuscript.github.io/react-0-14-bug/0-14-1.html

I got this issue on IE 10 and 11 + Windows 8, 7.

And Windows 10 + IE 11 is move fine.
Issue 1:
When testing if the dtype of an array is present in a set of dtypes, the answer is unexpected.

Reproducing code example:

import numpy as np
f32_dtype = np.zeros(1, dtype=np.float32).dtype

# test with list of dtypes
print(f32_dtype in [np.float32, np.uint8]) # => True (as expected)

# test with set of dtypes
print(f32_dtype in {np.float32, np.uint8}) # => False (not as expected)

Error message:

none

Numpy/Python version information:

numpy 1.18.4

Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]

Issue 2:
Summary

Make DType objects, their corresponding types, and their string names all compare unequal.

Historical issue

For some reason, dtype objects and the numpy types they are based off of compare equal. They don't hash equal of course, which goes against Python's docs that say

The only required property is that objects which compare equal have the same hash value…

Can we make them compare unequal? Is there any reason for them to compare equal?

In [6]: np.dtype(np.float) == np.float
Out[6]: True
Issue 1:
ISSUE TYPE

Bug Report

Feature Idea

COMPONENT NAME

ANSIBLE VERSION

[root@k8s-09 deploy-on-k8s]# ansible --version
ansible 2.3.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
[root@k8s-09 deploy-on-k8s]#

CONFIGURATION

OS / ENVIRONMENT

CentOS 7

SUMMARY

I am not sure the root reason.

"namespace" and "gitlab_deploy_suffix_name" are vars and work well at other places.

I assume 'register' and 'when' support vars too.

I do not know what is the meaning in the error message:

The error was: |failed expects a dictionary

STEPS TO REPRODUCE

32 # Service
33 - name: check "{{ gitlab_deploy_suffix_name }}" svc exist or not
34 command: "kubctl get svc {{ [namespace, gitlab_deploy_suffix_name]|join('-') }} --namespace={{ namespace }}"
35 register: "{{ [namespace, gitlab_deploy_suffix_name]|join('-') }}_exists"
36 ignore_errors: True
37
38 - name: "create gitlab svc if it does not exist and its deployment exists or just created succeefully"
39 shell: "notify to create {{ gitlab_deploy_suffix_name }} service"
40 when: "{{ [namespace, gitlab_deploy_suffix_name]|join('-') }}_exists|failed"
41 ignore_errors: True
42 notify: "create {{ gitlab_deploy_suffix_name }} service"

EXPECTED RESULTS

ACTUAL RESULTS

fatal: [k8s-09]: FAILED! => {"failed": true, "msg": "The conditional check '{{ [namespace, gitlab_deploy_suffix_name]|join('-') }}_exists|failed' failed. The error was: |failed expects a dictionary\n\nThe error appears to have been in '/root/temp-bruce/deploy-on-k8s/roles/k8s/tasks/main.yml': line 38, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: \"create gitlab svc if it does not exist and its deployment exists or just created succeefully\"\n ^ here\n"}

Issue 2:
Hi,

I encountered a problem with conditional role dependencies. The case is as follows:

Role a depends on role b when var want_b is true.

Role b depends on role c when var want_c is true.

When want_b is false and want_c is true I expect both roles b and c to be skipped, because role b is skipped and role c is a dependency of role b. What happens is that role c is run anyway.

Very simple playbook illustrating this problem:

https://github.com/tronner/ansible-bug-roledep-conditions
Issue 1:
When compiling the following code: (the function call takes a 0-argument function and returns its result)

type NoArgsFn<T> = () => T;

function call<T, Fn extends NoArgsFn<T>>(fn: Fn): T {
return fn();
}

let result: number = call(() => 1);

I get the following incorrect error: (on the last line)

try.ts(7,5): error TS2322: Type '{}' is not assignable to type 'number'.

The following workaround, adding an unused dummy argument of type T to the function, avoids this error:

type NoArgsFn<T> = () => T;

function call<T, Fn extends NoArgsFn<T>>(fn: Fn, dummy: T): T {
return fn();
}

let result: number = call(() => 1, -1);

Issue 2:
TypeScript Version:

1.8.0

Code

interface Class<T> {
new(): T;
}
declare function create1<T>(ctor: Class<T>): T;
declare function create2<T, C extends Class<T>>(ctor: C): T;

class A {}
let a1 = create1(A); // a: A --> OK
let a2 = create2(A); // a: {} --> Should be A

Context

The example above is simplified to illustrate the difference between create1 and create2. I need both type parameters for the use case I have in mind (React) because it returns a type which is parameterized by both T and C:

declare function createElement<T, C extends Class<T>>(type: C): Element<T, C>;
var e = createElement(A); // e: Element<{}, typeof A> --> Should be Element<A, typeof A>

declare function render<T>(e: Element<T, any>): T;
var a = render(e); // a: {} --> Should be A

Again, this is simplified, but the motivation is to improve the return type inference of ReactDOM.render.
Issue 1:
Keyboard Manager

Some keys have the ability to have multiple characters by pressing either Alt or Shift, heres where Keyboard Manager steps in, my idea is that you would be able to type a key that is only accesable by pressing Alt or Shift that you would like to remap and that you would be able choose to either choose a key that you would like to add the Alt or Shift ability to a key or either just choose the character you want to remap the character with. This would be useful for all those keys you cant access because they're not on the character list.

A clear and concise description of what the problem is that the new feature would solve.

Describe why and how a user would use this new functionality (if applicable).

I want to be able to choose any sort of character on the keyboard. This would really be a great update and it would be super useful

-Best regards, Rubenzoom

Issue 2:
Multiple layouts at the same time

Currently only one layout is active at one time. I want multiple layouts at the same time, when move the window, holding Shift and pressing Tab will cycle through list of configured selected layouts
Issue 1:
HI.

I am trying to make some routes of my application to require a subdomain.

I have added this to my routing.yml

my_route:

resource: "@MyBundle/Resources/config/routing.yml"

host: "{subdomain}.{domain}"

prefix: /some-path

requirements:

domain: %domain%

subdomain: .+

The route is matched correctly but when I try to use path in twig it shows the folloing error:

An exception has been thrown during the rendering of a template ("Some mandatory parameters are missing ("subdomain", "domain")

The host shouldnt be set automaticly? Even using the url function instead of path shows me the same error.

I have to explicity add the subdomain and domain parameters to the path twig function.

Is there an easier way?

Issue 2:
Currently running into an issue with the new host matching when I'm trying to generate urls that requires me to pass in a host parameter.

InternalUserController:
resource: "@ApiBundle/Controller/Internal/UserController.php"
type: annotation
host: "api.{domain}"

DashboardController:
resource: "@DashboardBundle/Controller/DashboardController.php"
type: annotation
host: "{domain}"

The examples above work perfectly with the url matcher, but when needing to generate the url, it will require me to provide the domain parameter each time. I know this is how it's suppose to function, but it seems a bit annoying to require putting in the domain each time.
Issue 1:
The old router had this method router.isRouteActive() which could be used to check whether a route was active.

The new v3 component router does not offer this. Instead, the RouterLinkActive directive uses some custom logic to figure out whether a route is active or not. It all boils down to comparing the current UrlTree with the target UrlTree using containsTree.

Unfortunately, containsTree is not exported at module level. So anyone who wants to figure out whether a route is active or not (and cannot use the directive) has to implement all this logic on their own.

Can we reexport the containsTree function, so it can be used?

Issue 2:
Usually, users create test components to test a component of a library that they wrote.

However, if the component under test is an internal one and shouldn't be used by other users, the corresponding NgModule won't export that directive.

The only way for a test component to use such a component under test is to duplicate the NgModule definition to be able to add the test component to the declarations. This leads to hard to maintain code.