WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
would be great if the following classes had responsive alternatives:

.text-center
.text-left
.text-right

maybe like this:

.text-lg-left, .text-md-left ......
.text-sm-center, .text-xs-center......
etc

im forever having to manually set text centre on xs/sm columns and would be great to see them in the framework. Based on some current trends its quite a common thing to see when columns become full width, and having the classes in the framework would save heaps of time when working across multiple projects.

Issue 2:
text-left, text-center, and text-right should have a way to be responsive. Once of the great things about bootstrap is the responsive grid system. May times during coding though, I found I want to center a div when in larger screens, but left or right align it when in xs.

Here is css code I believe would do the trick. The below code will allow you specify when you do or dont want to set text alignment.

.text-left-not-xs, .text-left-not-sm, .text-left-not-md, .text-left-not-lg {
text-align: left;
}
.text-center-not-xs, .text-center-not-sm, .text-center-not-md, .text-center-not-lg {
text-align: center;
}
.text-right-not-xs, .text-right-not-sm, .text-right-not-md, .text-right-not-lg {
text-align: right;
}
.text-justify-not-xs, .text-justify-not-sm, .text-justify-not-md, .text-justify-not-lg {
text-align: justify;
}

@media (max-width: 767px) {
.text-left-not-xs, .text-center-not-xs, .text-right-not-xs, .text-justify-not-xs {
text-align: inherit;
}
.text-left-xs {
text-align: left;
}
.text-center-xs {
text-align: center;
}
.text-right-xs {
text-align: right;
}
.text-justify-xs {
text-align: justify;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.text-left-not-sm, .text-center-not-sm, .text-right-not-sm, .text-justify-not-sm {
text-align: inherit;
}
.text-left-sm {
text-align: left;
}
.text-center-sm {
text-align: center;
}
.text-right-sm {
text-align: right;
}
.text-justify-sm {
text-align: justify;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.text-left-not-md, .text-center-not-md, .text-right-not-md, .text-justify-not-md {
text-align: inherit;
}
.text-left-md {
text-align: left;
}
.text-center-md {
text-align: center;
}
.text-right-md {
text-align: right;
}
.text-justify-md {
text-align: justify;
}
}
@media (min-width: 1200px) {
.text-left-not-lg, .text-center-not-lg, .text-right-not-lg, .text-justify-not-lg {
text-align: inherit;
}
.text-left-lg {
text-align: left;
}
.text-center-lg {
text-align: center;
}
.text-right-lg {
text-align: right;
}
.text-justify-lg {
text-align: justify;
}
}
Issue 1:
Environment

Windows build number: Microsoft Windows [Version 10.0.18363.535]
PowerToys version: 0.14.1
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

I have two overlapping fancy zones, but they have areas that don't overlap. In v0.11.0, this worked fine allowing me to choose different size zones depending on the area of the zone I drag to. In the latest version 0.14.1, the larger background zone can't be selected no matter what I do.

Expected behavior

Ability to have multiple zones overlapping but choose which one based on where I drag my mouse

Actual behavior

the smaller zones in the foreground always take precedence, there is no hitbox for the background zone

The larger zone at the bottom left is impossible to hit in the new version. In 0.11.0, I could choose between larger zone and the two smaller vertical zones by varying where I place my mouse during dragging. This is extremely useful for a window with video in it versus a window with lots of text or command line interfaces.

Issue 2:
Description

If you have created multiple zones, it is a pain to rotate a window through each of the zones until you get the one you wanted. This functionality would allow to assign a shortcut to each of the zones. For example, Win + Shift + 1 would assign window to Zone 1, Win + Shift + 2 would assign window to Zone 2, and so on.

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

Enable a shortcut combination that allows user to send a window to the desired zone by using Win + Shift (or other combination) plus the number of the Zone.

For those with multiple monitors, it may need a different shortcut to switch to another monitor first (or just make all zone numbers sequential).

Using Shift and drag the window around is useful at times but it does not work if you have overlapping zones (In my case, I have 34 inch monitor divided in 6 zones. The two primary zones are 1/3rd left and 2/3 right. The 2/3rd is also divided into 4 equal zones - 2x2 setup. I cannot shift + drag over to the 2/3 zone because it always assigns it to one of the smaller zones).

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Issue 1:
Hi everybody.

I have a problem with the validation message of my form GameType(). This Type ambed a collection of GameOnConsoleType().

By following the doc : http://symfony.com/doc/current/cookbook/form/form_collections.html, my form works fine except validation messages.

So, in my game form, I add 1 object GameOnConsole. I get the prototype html and replace name by 0. I add another object GameOnConsole so I replace name by 1.

But now, if I delete the first GameOnConsole, my form will have only one GameOnConsole with index : 1.

If this GameOnConsole violates a constraint, the violation will try to reach Object(Symfony\Component\Form\Form).data.gameOnConsoles[0]... which does not exist, because my GameOnConsole has the index 1.

The version of Symfony is 2.5.

I think it is a bug, the validator should use indexes that we passed in the form and not recalculate them.

Thanks !

Issue 2:
I am coding a project along the lines of the cookbook entry on embedded collections as stated on: http://symfony.com/doc/current/cookbook/form/form_collections.html.

I am considering the following use case:

Starting out with entering a new entity task, tag is the embedded collection

I click the Javascript 'add a tag'-link, which adds a bar 0 instance of the tag form

I click the Javascript 'add a tag'-link, which adds a bar 1 instance of the tag form

I click the Javascript 'add a tag'-link, which adds a bar 2 instance of the tag form

I click the Javascript 'delete this tag'-link for tag(1), which leaves me with the instances 0 and 2

Now, if I would leave all these tags blank (with a notblank validation on the tag name attribute), the returned form would be expected to visualize the error statements on instances 0 and 2. However, it turns out that the feedback is only displayed for instance 0.

If I change the returned form with firebug and set the instances on the name input field of instance 2 to '1', the feedback is displayed on the correct instance. This behavior indicates a mismatch between the indexing of the embedded form instances and the validators.
Issue 1:
Bug Report

Current behavior

The (automatic) update of babel for 7.9 to 7.10 breaks PhantomJS.

Possible Solution

Adding this to package.json fixed it until the next updates form other babel submodules broke it again.

"resolutions": {
"ember-cli-babel": "7.19.0",
"@babel/core": "7.9.6",
"@babel/generator": "7.9.6",
"@babel/helpers": "7.9.6",
"@babel/parser": "7.9.6",
"@babel/template": "7.8.6",
"@babel/traverse": "7.9.6",
"@babel/types": "7.9.6",
"@babel/compat-data": "7.9.6",
"@babel/helper-compilation-targets": "7.9.6",
"@babel/helper-create-class-features-plugin": "7.9.6",
"@babel/helper-member-expression-to-functions": "7.8.3",
"@babel/helper-optimise-call-expression": "7.8.3",
"@babel/helper-replace-supers": "7.9.6",
"@babel/plugin-proposal-decorators": "7.8.3",
"@babel/plugin-proposal-json-strings": "7.8.3",
"@babel/plugin-proposal-object-rest-spread": "7.9.6",
"@babel/plugin-proposal-optional-chaining": "7.9.0",
"@babel/plugin-transform-block-scoping": "7.8.3",
"@babel/plugin-transform-destructuring": "7.9.5",
"@babel/plugin-transform-for-of": "7.9.0",
"@babel/plugin-transform-modules-systemjs": "7.9.6",
"@babel/plugin-transform-runtime": "7.9.6",
"@babel/plugin-transform-spread": "7.8.3",
"@babel/plugin-transform-typescript": "7.9.6",
"@babel/preset-env": "7.9.6",
"@babel/runtime": "7.9.6"
}

Issue 2:
re: https://github.com/sebmck/6to5/blob/master/lib/6to5/register.js#L11-13

If I write a module using es6, I can't import it from another node project (using es6 or otherwise) unless I remove these lines or if I include the compiled source in the module, which doesn't always happen cleanly.

Coffeescript uses special file extensions (.coffee, like your .es6) that solve this problem. To make it easy to require es6 modules, I propose either:

Only allow requires to work on .es6, like coffeescript, and allow to run on node-modules;

Have register return a function that accepts options, so I can define a regex (or file extension, or both) for files that should be compiled.

I can make a PR if you think this is a good idea.
Issue 1:
Porting TH operators is essential for code simplicity and performance reasons.

Porting guides and Q&A are available in umbrella issue: #24507

Feel free to add @VitalyFedyunin as a reviewer to get a prioritized review.

Issue 2:
🐛 Bug

This is a niche bug, but it might cause troubles in advanced users who like to use masking to filter out NaN losses. Simply put, when NaN losses are masked out using masked_fill, performing backward on the sum of the losses should produce valid gradients (assuming that the gradient graph is smooth everywhere except for the masked losses). When

To Reproduce

Steps to reproduce the behavior:

Define the environment as follows. We will be backpropagating gradients to a very simple nn.Linear layer.

import torch
import torch.nn as nn
x = torch.ones(3, 4)
linear = nn.Linear(4, 2)
def has_err(x):
return bool(((x != x) | (x == float("inf")) | (x == float("-inf"))).any().item())

Performing a forward inference on the linear layer and propagating gradients from there works as intended if no nan is involved.

linear(x).sum().backward()
print(linear.weight.grad)
# tensor([[3., 3., 3., 3.],
# [3., 3., 3., 3.]])
assert not has_err(linear.weight.grad)

Suppose that x has nan in one of its rows.

x[2].fill_(float("nan"))
print(linear(x))
# tensor([[ 0.0570, -1.0066],
# [ 0.0570, -1.0066],
# [ nan, nan]], grad_fn=<AddmmBackward>)

Performing backwards computation on the sum of the matrix above should

produce nan gradients. This is expected.

linear.zero_grad()
linear(x).sum().backward()
print(linear.weight.grad)
# tensor([[nan, nan, nan, nan],
# [nan, nan, nan, nan]])
assert has_err(linear.weight.grad)

However, using masked_fill or index slicing on the leaf nodes to mask out problematic gradient graphs should not.

linear.zero_grad()
linear(x)[:2].sum().backward()
assert not has_err(linear.weight.grad) # AssertionError raised

We can check whether masking out final losses works in cases where no nan is involved.

x = torch.ones(3, 4)
x[2].fill_(0.5)
linear.zero_grad()
linear(x).sum().backward()
print(linear.weight.grad)
# without masking:
# tensor([[2.5000, 2.5000, 2.5000, 2.5000],
# [2.5000, 2.5000, 2.5000, 2.5000]])
linear.zero_grad()
linear(x)[2:].sum().backward()
print(linear.weight.grad)
# with masking:
# tensor([[2., 2., 2., 2.],
# [2., 2., 2., 2.]])

The accumulated gradient in the latter case is less than the former because index slicing ([2:]) on the computation graph prevented the third row in x from affecting the gradient computation.

Environment

Collecting environment information...

PyTorch version: 1.0.0

Is debug build: No

CUDA used to build PyTorch: None

OS: Mac OSX 10.14.5

GCC version: Could not collect

CMake version: Could not collect

Python version: 3.7

Is CUDA available: No

CUDA runtime version: No CUDA

GPU models and configuration: No CUDA

Nvidia driver version: No CUDA

cuDNN version: No CUDA

Versions of relevant libraries:

[pip] numpy==1.16.3

[pip] torch==1.0.0

[conda] torch 1.0.0

Additional context

None.
Issue 1:
Checklist

I have checked the issues list

for similar or identical feature requests.

I have checked the pull requests list

for existing proposed implementations of this feature.

I have checked the commit log

to find out if the same feature was already implemented in the

main branch.

I have included all related issues and possible duplicate issues

in this issue (If there are none, check this box anyway).

Related Issues and Possible Duplicates

Related Issues

None

Possible Duplicates

None

Brief Summary

We have a requirement to run celery tasks in a python 3.11 environment (other dependencies require python 3.11). Could python 3.11 be supported?

Design

Architectural Considerations

None

Proposed Behavior

Proposed UI/UX

Diagrams

N/A

Alternatives

None

Issue 2:
Checklist

I have checked the issues list

for similar or identical enhancement to an existing feature.

I have checked the pull requests list

for existing proposed enhancements.

I have checked the commit log

to find out if the if the same enhancement was already implemented in the

master branch.

I have included all related issues and possible duplicate issues in this issue

(If there are none, check this box anyway).

Related Issues and Possible Duplicates

Related Issues

#5371 this issue has to do with confusion about specifying ssl_cert_reqs as a constant (ssl.CERT_REQUIRED versus a string 'CERT_REQUIRED'.)

Possible Duplicates

None

Brief Summary

The official redis python library expects ssl_cert_reqs to be one of: 'none', 'optional', or 'required'.

See: https://github.com/andymccurdy/redis-py/blob/3.3.7/redis/connection.py#L793

Celery expects this to be one of 'CERT_NONE', 'CERT_OPTIONAL', or 'CERT_REQUIRED'.

This can lead to confusion because the same redis URL cannot be used for both celery, with a redis backend, and redis directly.

For example, the following redis urls are incompatible:

"rediss://:${REDIS_TOKEN}@${REDIS_HOST}?ssl_cert_reqs=none" # works for redis, not celery
"rediss://:${REDIS_TOKEN}@${REDIS_HOST}?ssl_cert_reqs=CERT_NONE" # works for celery, not redis

This confusion could be avoided by reconciling the two formats.

To avoid future confusion, and remaining backward compatible, I propose at a minimum letting celery recognize the redis ssl_cert_reqs strings.

Ideally, the documentation would also be updated to prefer the standard redis strings (mentioning that the CERT_* strings are also valid but deprecated).

Design

Architectural Considerations

None

Proposed Behavior

Change celery to map both formats to the same value, such as:

ssl_string_to_constant = {'CERT_REQUIRED': CERT_REQUIRED,
'CERT_OPTIONAL': CERT_OPTIONAL,
'CERT_NONE': CERT_NONE,
'required': CERT_REQUIRED,
'optional': CERT_OPTIONAL,
'none': CERT_NONE}

Proposed UI/UX

Diagrams

N/A

Alternatives

Live with the disparity of URL formats and make it painfully clear in the documentation that celery's choice is non-standard.
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-kops-aws-updown/3343/

Multiple broken tests:

Failed: [k8s.io] Networking [k8s.io] Granular Checks: Pods should function for intra-pod communication: http [Conformance] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/common/networking.go:38
Oct 24 09:23:49.716: Failed to find expected endpoints:
Tries 0
Command curl -q -s 'http://100.96.1.8:8080/dial?request=hostName&protocol=http&host=10.123.45.5&port=8080&tries=1'
retrieved map[]
expected map[netserver-1:{}]

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/networking_utils.go:206

Failed: [k8s.io] Networking [k8s.io] Granular Checks: Pods should function for node-pod communication: http [Conformance] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/common/networking.go:52
Oct 24 09:25:45.741: Failed to find expected endpoints:
Tries 0
Command curl -q -s --connect-timeout 1 http://10.123.45.6:8080/hostName
retrieved map[]
expected map[netserver-1:{}]

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/networking_utils.go:255

Issues about this test specifically: #33631 #33995

Failed: [k8s.io] Networking [k8s.io] Granular Checks: Pods should function for intra-pod communication: udp [Conformance] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/common/networking.go:45
Oct 24 09:23:49.650: Failed to find expected endpoints:
Tries 0
Command curl -q -s 'http://100.96.2.6:8080/dial?request=hostName&protocol=udp&host=10.123.45.4&port=8081&tries=1'
retrieved map[]
expected map[netserver-2:{}]

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/networking_utils.go:206

Failed: [k8s.io] Networking [k8s.io] Granular Checks: Pods should function for node-pod communication: udp [Conformance] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/common/networking.go:59
Oct 24 09:21:13.779: Failed to find expected endpoints:
Tries 0
Command echo 'hostName' | timeout -t 3 nc -w 1 -u 10.123.45.3 8081
retrieved map[]
expected map[netserver-1:{}]

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/networking_utils.go:255

Previous issues for this suite: #34196 #34777 #35305 #35397 #35400

Issue 2:
Failed: https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-kops-aws-updown/2102/

Run so broken it didn't make JUnit output!
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

I would expect to see the source map in the dev tools of Chrome.

Current Behavior

Steps to Reproduce (for bugs)

With Material-UI:

git clone git@github.com:callemall/material-ui.git

cd material-ui

git checkout v1-beta

yarn

yarn docs:dev

Or with a simpler project: https://github.com/callemall/material-ui/tree/v1-beta/examples/nextjs.

Context

I have first noticed this issue on a project at work.

Hopefully, I was able to nail down the npm release that introduced the issue by a bisection between the v1.0.0-beta.6 release and v1.0.0-beta.7 release of Material-UI.

I'm also able to reproduce the issue on a simpler example, the nextjs example of Material-UI.

So, it's 3 independent projects impacted by the issue. I do think that it's a strong SNR ratio.

Your Environment

Tech
Version

next
v3.2.1

node
v8.1.4

OS
MacOs

browser
Chrome

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

Expected Behavior

Be able to access current route path inside page component.

Current Behavior

When I console.log the current path inside a page and look at it in the server side, it is correct in the first moment but it logs a second time with an & instead of the dynamic part of the path.

Steps to Reproduce

Create a dynamic route in server.js

server.get('/test/:id', (req, res) => {
app.render(req, res, '/test')
})

Create a page component for this route and log the route path

// pages/test.js
const Test = ({ url: { asPath } }) => (
<div>
Some content
{ console.log(asPath) }
</div>
)

export default Test

Look at it in the terminal while running node server.js and accessing a page that matches the route (/test/mytest, for example)

/test/mytest
/test/&

Context

I use this route because it matches my backend route that I am using as a context to load content, and with the incorrect route I do not get my data.

FYI: the same behavior is being noticed using withRouter from next/router.
Issue 1:
Hi, i have a problem with Electrons app

I want to paste file from local computer into app to upload using vue+ts, my idea is using clipboard using ctrl+v to get file from clipboard . The problem is it worked on browser but on Electrons app side it not work properly. My code is:

onPaste(event:ClipboardEvent) { var items = (event.clipboardData || event.originalEvent.clipboardData).items; console.log(items); }

When I console log clipboard data

On browser the items will return lenth = 1

On App the items return length = 0

This is my first time :)

Does anyone can help me or have an other solution for this.

Issue 2:
There is currently no mechanism to get/set file pointers from/to clipboard.

File pointers: The stuff in clipboard when you copy (ctrl+c) selected files in your OS file explorer.

After ~15 min research, there was #2244 issue which went a different direction and than got closed. Also there are some projects on hold waiting for this kind of functionality, such as bortexz/quercus#1.
Issue 1:
Blank tabs issue.

Open a new atom window and create some empty tabs, let's say 8, result: the editor freezes and it never starts to work again.

Additionally: I started off with a new atom installation (no extra packages) and i tried again: same result.

Version: 0.120.0

Node: v0.10.29

OS: Mavericks 10.9.4.

Thank you!

Issue 2:
http://discuss.atom.io/t/why-can-i-only-have-one-new-file-at-a-time/447/12?u=nathansobo
Issue 1:
(this issue is part of the "DX" ("Developer eXperience") initiative introduced by Symfony project)

The problem

When using the HttpCache for your Symfony application, its cache size grows up to the infinite. This means that from time to time you must manually clear the contents of the HTTP cache or you'll end up without free disk space.

The solution

I've found at least three past attempts to solve this problem: #4871, #6213 and #6855. We should decide which one of those proposals is the best one and finish all the pending work.

Issue 2:
Symfony version(s) affected: 4.1.3

Description

When using "Remember me" functionality, session is regenerated with every request. Due to concurrent requests done by browser session is effectively lost which leads to e.g. CSRF token mismatch.

Authentication is kept, user is still logged in (because of Remember me), but the session is lost.

In \Symfony\Component\Security\Http\Firewall\RememberMeListener::handle:87 following method is called \Symfony\Component\Security\Http\Session\SessionAuthenticationStrategy::onAuthentication. With default session strategy migrate it leads to calling session_regenerate_id($destroy = true) in every request. Session ID is changed A->B with main request. For other requests done by browser session ID is B, but changed B->C, B->D etc.

How to reproduce

use "Remember me" functionality

login e.g using form

make HTTP request, which makes browser request other resources responded by controller (not assets)

you can check session ID changes every request and Cookie/Set-Cookie HTTP headers is set sent accordingly.

fragment from config/packages/security.yaml

remember_me:
secret: '%kernel.secret%'
lifetime: 34128000
# secure: true
always_remember_me: true
user_provider: entity.user_account.email

Possible Solution

set strategy to none (probably not safe) or

authenticate user in RememberMeListener only if not already authenticated (according to #27427 (comment))

Additional context

full security.yml configuration

might be related to #27640

bug report is opposite to #15764 :-D