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

OS Version: Windows 10

Steps to Reproduce:

Create a simple html component (Angular, Aurelia, etc.) file. For example: "my-component.html"

Set its content to something like: "<template><div><div><img /></div></div></template>" all on one line.

Press Alt+Shift+F to format the code.

Nothing happens.

Notes:

Formatting other file types like TS, JS, and C# works fine.

Formatting full HTML files works. For example, "<html><head></head><body><div><div></div></div></body></html>" formats fine.

Code successfully recognizes the "Language Mode" for the component file but still doesn't work.

Issue 2:
VSCode Version: 1.0.0

OS Version: OSX 10.11.4

Steps to Reproduce:

Try to auto format the following HTML

<template><div>Hello</div><div>World</div></template>

I expect to get something like this

<template>

____<div>Hello</div>

____<div>World</div>

</template>

But it does not work. If I replace the <template> tag with <div> then the auto format works correctly. This issue was not present in the previous version.

Thanks,
Issue 1:
Hi,

Would it be possible to have PointCloud.raycast() supporting PointCloud.material.sizeAttenuation = true?

Right now PointCloud.raycast() assumes that all the particles are of the same size, which is not the case if sizeAttenuation is used.

Many thanks.

Ricardo

Issue 2:
Thanks so much for adding PointCloud support for RayCasting in r.61! Unless I am missing something, the current implementation assumes that the points are all of the same size. Is it possible to make the raycaster aware of the gl_PointSize of each point, rather than uniformly using params.PointCloud.threshold?

Thanks,

Mike Cantor
Issue 1:
In version 14.2, if the duplicate filter should detect whether the URL its ignoring has been sent to a Spider previously. If not, it should not silently ignore the duplicate URL. A recent Request I did had a 302 redirect to an identical URL, before redirecting to a unique URL. It took half an hour before I realized that the scheduler was ignoring the first redirect. There were no debug indications or exceptions raised. I set dont_filter to True, which fixed the situation, as expected.

Scrapy should either raise a quiet exception of some sort or realize that a duplicate URL had not previously been sent to a spider instead of silently ignoring duplicates.

P.S.: I don't know why the site sent me to a duplicate URL, but it had modified cookies in the response.

Issue 2:
Description

In Scrapy 2.6, an ItemLoader instantiated with a base item keeps a reference to a single same item and instead of loading new items, it repeats the values added, therefore, producing duplicate items.

Steps to Reproduce

Run the following script:

from scrapy.loader import ItemLoader

base_item = {}
for i in range(5):
il = ItemLoader(item=base_item)
il.add_value('b', i)
new_item = il.load_item()
print(new_item)

Output when ran in scrapinghub-stack-scrapy:2.6:

{'b': [0]}
{'b': [0, 1]}
{'b': [0, 1, 2]}
{'b': [0, 1, 2, 3]}
{'b': [0, 1, 2, 3, 4]}

Output when ran in scrapinghub-stack-scrapy:1.6:

{'b': [0]}
{'b': [1]}
{'b': [2]}
{'b': [3]}
{'b': [4]}

Expected behavior: The output should be the same as when ran in older Scrapy stack: scrapinghub-stack-scrapy:1.6

Possible resolution: Deep copying the base_item works as intended:

from scrapy.loader import ItemLoader
from copy import deepcopy

base_item = {}
for i in range(5):
il = ItemLoader(item=deepcopy(base_item))
il.add_value('b', i)
new_item = il.load_item()
print(new_item)

Output:

{'b': [0]}
{'b': [1]}
{'b': [2]}
{'b': [3]}
{'b': [4]}
Issue 1:
Ted Bergeron opened SPR-4528 and commented

Based on my article: http://www.triview.com/articles/hibernate/validator/canmeetyourneeds.html provide built in integration with hibernate validator.

This may be broken down into several issues:

Extend JSP tag library to search for validation annotations via reflection. Render fields with css classes such as required, email, etc. Add maxlength attribute, etc.

Native support to invoke the proper Hibernate ClassValidator and convert the InvalidValue array to a Spring Errors object.

Extend JSP tags to render semantic html wrapper around form fields. Include div, label and field.

Extend JSP tags to render with enhanced features, such as adding popup calendar for Date. Consider extracting info from assigned PropertyEditor.

Add basic, included JavaScript validation support and/or integration with a major javascript framework such as prototype, jquery, ext, etc.

Attachments:

triview_custom_tags.zip (6.05 MB)

validator_whitepaper.zip (7.57 MB)

Issue Links:

#4803 Support for declarative validation (Hibernate Validator, anticipating JSR 303) ("duplicates")

2 votes, 3 watchers

Issue 2:
Bob Jacoby opened SPR-7940 and commented

One of my beans (using the @Component annotation) implements the ApplicationListener interface. The bean is also proxied (uses the @Transaction annotation on a few methods). After initializing the context my AbstractApplicationEventMulticaster defaultRetriever contains the bean instance in the applicationListener set, and the name of the bean in the applicationListenerBeans set.

This causes a problem when the listeners are retrieved (AbstractApplicationEventMulticaster getApplicationListeners):

for (ApplicationListener listener : this.defaultRetriever.applicationListeners) {

if (supportsEvent(listener, eventType, sourceType)) {

retriever.applicationListeners.add(listener);

allListeners.add(listener);

}

}

if (!this.defaultRetriever.applicationListenerBeans.isEmpty()) {

BeanFactory beanFactory = getBeanFactory();

for (String listenerBeanName : this.defaultRetriever.applicationListenerBeans) {

ApplicationListener listener = beanFactory.getBean(listenerBeanName, ApplicationListener.class);

if (!allListeners.contains(listener) && supportsEvent(listener, eventType, sourceType)) {

retriever.applicationListenerBeans.add(listenerBeanName);

allListeners.add(listener);

}

}

}

First all the listener bean instances are added to the list. Then the beans are retrieved from the beanfactory via the name. However, the bean factory will return the proxy rather than the bean itself. End result will be that both the bean and the proxy surrounding the bean are added to the allListeners list, which results in the onApplicationEvent being called twice for every event.

Ideally the proxy would be the only one added to the list.

Affects: 3.0.5

Attachments:

SPR-7940.zip (5.96 kB)

Issue Links:

#14597 Documentation inconsistency vs implementation - scoped-proxy beans ("is duplicated by")

Referenced from: commits 7b703b7, 924c869

2 votes, 5 watchers
Issue 1:
The type system does a great job at mirroring most type patterns in JS, all except mixins/traits, anything that decorates types - which unfortunately is very common in JS.

Without it the type system remains incomplete - that is, we're still one step short of being able to describe JavaScript mixin type patterns.

Duplication and interfaces are not the answer, because this does not reflect what's actually happening in JavaScript - e.g. not duplication, but type decoration of sorts. Not sure if I'm using the correct terminology here.

This small library is an example of a real-world decorator - duplicating all of it's method declarations in every single model type in a view-model hierarchy would be extremely impractical.

The following is a simplified example:

class User {
public name: string;
}

interface Events {
on(event: string, callback: {():void});
// other methods here...
}

function addEvents<T>(object: T): T {
// decorate the object:
object['on'] = function() {
// ...
}
return <T> {};
}

var user = addEvents(new User());

The drawback here is you have to choose which is more important - that User is still a User after being decorated by addEvents(), or that it is now also Events. There is no direct way to document this type pattern - your only option currently is to document the shape of the resulting type fully, duplicating all the member declarations contributed by the decorator.

I propose syntax along the lines of the following, to support type alternatives:

function addEvents<T>(object: T): T|Events {
// decorate the object:
object['on'] = function() {
// ...
}
return <T|Events> {};
}

var user = addEvents(new User());

The return type of the call is now User|Events which is a distinct composite type composed members of User and Events.

The resulting composite type extends User and implements Events, and should pass type-checks for both.

This should facilitate type-safe traits/mixins and probably other arbitrary type-patterns possible in JS.

Static type-hints with composite types are implemented in this way in e.g. PhpStorm using php-doc annotations, and it works well.

I think this may be a simpler and more flexible way to support mixins/traits, without explicitly adding support for those patterns specifically.

Thoughts?

Issue 2:
It would simplify a lot of use cases if we could override relational, equality, additive, and Multiplicative operators.

My initial thoughts on how this would work is that functions would replace the operators with functions when compiling to JavaScript.

class MyClass {
constructor() {
}

public Operator > (value: any):boolean {
// compare value
}
}

var myClass = new MyClass();

if(myClass > otherValue){
// Do stuff
}

Becomes:

var MyClass = (function () {
function MyClass() {
}
MyClass.prototype.greaterThan = function (value) {
// compare value
};
return MyClass;
})();
var myClass = new MyClass();
if (myClass.greaterThan(otherValue) {
// do Stuff
}
Issue 1:
Issue Type:

Bug Report

Ansible Version:

ansible 1.6.3

Environment:

Ubuntu 14.04

Summary:

When using apache2_module for mpm_prefork a change occurs every playbook run, even though the module is already enabled.

Steps To Reproduce:

- name: Ensure mpm_prefork is enabled
apache2_module: name=mpm_prefork

Expected Results:

No change during playbook run.

Actual Results:

A change occurs every run, even though mpm_prefork is already enabled:

# a2enmod mpm_prefork
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Considering conflict mpm_itk for mpm_prefork:
Module mpm_prefork already enabled

Issue 2:
In Ansible Version 1.6.2 the module 'apache2_module', which was added in 1.6, always lists apache modules when being enabled as 'changed' if they have some dependencies.

Tested with the modules headers, deflate, rewrite, ssl.

Here's the output from Ansible:

TASK: [apache | Enable standard mods] *****************************************
<ansibleCrawler> REMOTE_MODULE apache2_module name=headers state=present
ok: [ansibleCrawler] => (item=headers) => {"changed": false, "item": "headers", "result": "Success"}
<ansibleCrawler> REMOTE_MODULE apache2_module name=deflate state=present
changed: [ansibleCrawler] => (item=deflate) => {"changed": true, "item": "deflate", "result": "Enabled"}
<ansibleCrawler> REMOTE_MODULE apache2_module name=rewrite state=present
ok: [ansibleCrawler] => (item=rewrite) => {"changed": false, "item": "rewrite", "result": "Success"}
<ansibleCrawler> REMOTE_MODULE apache2_module name=ssl state=present
changed: [ansibleCrawler] => (item=ssl) => {"changed": true, "item": "ssl", "result": "Enabled"}

And here's what manual execution of a2enmod on the target machine prints out:

root@targetMachine ~ # a2enmod headers
Module headers already enabled
root@targetMachine ~ # a2enmod deflate
Considering dependency filter for deflate:
Module filter already enabled
Module deflate already enabled
root@targetMachine ~ # a2enmod rewrite
Module rewrite already enabled
root@targetMachine ~ # a2enmod ssl
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Module socache_shmcb already enabled
Module ssl already enabled

As you can see, this only involves modules which depend on others.

If using apache2_module with the notify directive, it would cause to always trigger the notification, e.g. restarting Apache.
Issue 1:
It is hard to get the zone to the correct position and correct size with the mouse.

It would be great if we get a edit button left of the close button. There i want to put in the position (x pos, y pos) and the size (width, height) - like in the program WindowManager.

Also it would be great if there is a grab/pick button, where i can choose a existing window to get the coordinates from it.

And also that i can setup a shortcut for this zone (like Ctrl+Alt+F1) to send the active window directly to this zone without mouse

And it would be also great, if i can see and setup there the position nr. of the zone (the dots you see when you drag a window with shift).

Issue 2:
Summary of the new feature/enhancement

When creating custom zones, it's very hard to resize them exactly as you want. In order to get the result you desire, you need to do pixel-perfect movements with the mouse on zones with thick borders.

It would be nice, if I could either enable snapping, or disable overlapping on demand. The zone border thickness could be smaller as well, it's hard to tell if your border is overlapping with another zone or not.

In the example below, I tried to get these 3 zones touching pixel-perfect, and eventually gave up trying to get rid of this ugly inconsistent gap
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-with-javascript has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

It's great that we can create random decimal numbers, but it's even more useful if we lot more useful to generate a random whole number.

Should read:

It's great that we can create random decimal numbers, but it's even more useful if we use it to generate a random whole number.

Issue 2:
Challenge http://freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-with-javascript has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

I believe there is a typo in the first paragraph of the tutorial:

"It's great that we can create random decimal numbers, but it's even more useful if we lot more useful to generate a random whole number."
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this

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

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.5

Operating System version: win10

Java version:1.8

Steps to reproduce this issue

dubbo2.7.3升级2.7.5后之后

发现 yml配置的dubbo.provider.version失效导致报空值指针错误
Issue 1:
Is there a way to get the equivalent of console.log functionality for the trace (e.g. page.log)? We have a few console.log but they obviously appear in the console and you can't determine when they occurred in relation to steps in the trace.

Issue 2:
When I use test.step I was expecting to see that step in the trace viewer actions list and not just in the source panel. This would be nice to see and be able to jump to a particular test location or at least have more context while diagnosing the test run. Especially if the contained step were indented below the step text.
Issue 1:
Currently, both <small> and small are set to a font-size of 85% fixed. The @font-size-small is not used to set it.

See ~/less/variables.less on L#50 for @font-size-small.

See ~/less/types.less on L#80 for small, .small definitions.

Additional to that: h1, h2, h3, .h1, .h2, .h3, h4, h5, h6, .h4, .h5, .h6 all have a .small, small setting as well: Are you sure that 65% and 75% is the correct assumption?

Issue 2:
Right now, the misc .small mixin in type.less is hardwired to 85%. That same 85% of base appears in variables.less as @font-size-small. Would it makes sense to have .small in type.less reference @font-size-small instead of having its own value?
Issue 1:
I was surprised (pleasantly so) to read that events bubble through portals and up the component tree rather than the DOM tree. Obviously this means I can detect clicks that occur within my component or child components without having to worry about whether they happen to be portal hosted.

However, another fairly common thing you may want to do is detect whether an event occurred outside of a component or child components. There are plenty of libraries out there that do this, but they all (AFAIK) use the DOM tree so don't have this same behaviour.

I was curious whether or not there is anything new, but unadvertised, in React 16 that can help with this part of the puzzle?

Issue 2:
React version: 17.0.2

Relay version: 12.0.0

Steps To Reproduce

Wrap a component with an ErrorBoundary class to manage errors. Something like this:

<ErrorBoundary FallbackComponent={ErrorFallback}>
<Suspense
fallback={
<LoaderContainer>
<LoaderIcon iconSize="xl" />
</LoaderContainer>
}
>
<DetailedStatusContainer />
</Suspense>
</ErrorBoundary>

On Detailed Status Container I have this:

const data =
useLazyLoadQuery(
RobotProductOverviewBySerialNumberQuery,
serialNumber
);

If I sent an invalid value to the query, the ErrorBoundary will be executed because the query returns 500. That's expected, but check that the console has the following errors:

Is there a way to avoid the last two errors on the console?

The current behavior

Console messages:

The expected behavior

Only shows 500 error message:
Issue 1:
So I was trying to workout why my parallel code was taking so long.

After-all I only sent the big datastructures once, though a closure as the function that was mapped over.

That should happen, once (I thought), since the function is constant

Not so

MWE:

addprocs(5)

immutable Foo
bar::Char
end

#HACK: lets debug what is being serialised by overloading the calls
function Base.serialize(s::Base.SerializationState, x::Foo)
tic()
Base.Serializer.serialize_any(s,x)
tt=toq()
open("ser_log.txt","a") do fp
println(fp, tt)
end
end

function test()
st = Foo(rand('a':'z'))
pmap(r->string(st.bar)^r, 1:100)
#Base.pgenerate(default_worker_pool(), r->string(st.bar)^r, 1:100) |> collect
end

Then running the function and counting the lines in the log:

test()
run(`wc -l ser_log.txt`)
OUT> 17

So it was serialized 17 times for pmap.

If is switch to pgenerate is it 18 times (so about the same).

I believe that after the batchsplit step is done that is once serialisation of the closure, per batch that was sent.

It only need to be serialized once.

(in my nonMWE, it is happening millions of times, and takes 6 seconds a piece...)

I suspect this is already known, but I can't find an issue for it, so maybe not.

see also:

#11938

#16322

versioninfo()
Julia Version 0.5.0-dev+3928
Commit fdc4a85 (2016-05-06 04:46 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: AMD Opteron 63xx class CPU
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Piledriver)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, bdver2

Issue 2:
[Originally posted on -dev by Fermat 618: https://groups.google.com/d/topic/julia-dev/MOt74gNrc9E/discussion]

When I assign a lambda to a function,

julia> f(x) = x + 2

julia> f = (x) -> x + 20
Warning: redefinition of constant f ignored.
#<function>

julia> f(3)
5

I find neither an Error is raised nor the assignment take effect.

It is very dangerous to ignore an error. A program that returns a wrong

answer is much more worse than a program that fails.

When I write something, I expected it to take effect. If it do not, I

expect an error. A warning is reasonable when someone write

if (a = b) { xxx; }

in C. Even though if (a == b) is likely what one want, one can still

ignore the warning when he/she is sure if (a = b) is wanted. But this

is definitely not the case.

In my opinion, a well designed programming language should give as less

[warnings] as possible.
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?

I hope there's some configurable preference for setting priorities of results in PT run.

For example, I can set the priority of "launch an application" to high, so when I type, say "VSCode", in PT run while there's running instances of VSCode, the result of launching a new window of VSCode will be the first one, rather than switching to the exist VSCode window. Or conversely, set the priority of "switch to a window" to high to make switching to an exist VSCode window always shows at the first place, so I can use PT run as a perfect windows switcher as an instead of alt+tab.

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

Issue 2:
History

When first launched, it would be great if PowerToys Run could display a history of the last commands run (until keyboard input is made). This would help to replicate the old Run command's dropdown functionality which displays a history of commands.
Issue 1:
Because of PHP 7, Symfony\Component\Console\Application::renderException() should also accept \Throwable type.

Issue 2:
when a command throws a fatal error in PHP7, the exception produced is handled by global error handler, not application error handler.

thus the error message is properly handled, but the exit code is not.

such code for example (for tests or more) could lead to such behavior, under Symfony 2.8 / PHP 7

$a = null; $a->getSmth();

under PHP 5.3 the above command execution would exit with non zero exit code.

under PHP7.* this would end up with exit code being zero, which is not good.

the problem is in the - Symfony/Component/Console/Application.php:124,

where only \Exception class is catched

#20111
Issue 1:
From MSFT:21430356

After CTRL+Scroll to zoom in and out a ton, the text gets garbled

I scrolled with CTRL+Scroll to make it really small and really big and went back and forth. Then, I can scroll up and get garbled text that only extends a few characters but are truncated rather than wrapping.

Issue 2:
Environment

Windows build number: Microsoft Windows [Version 10.0.18932.1000]
Windows Terminal version (if applicable): 0.2.1831.0

Any other software?
VIM - Vi IMproved 8.1 (2018 May 18, compiled May 18 2018 18:26:56), 32bit Console version, [Korean]

Steps to reproduce

Start windows terminal with PowerShell 6.2.0 and runs Vim with vim.

PATH for vim was C:\Program Files (x86)\Vim\vim81.

Close tab with vim is running.

Expected behavior

Tab must be closed. If the tab was only one, terminal must be terminated.

Actual behavior

Entire terminal is crashed.
Issue 1:
Hi, I created an env with conda, installed TF, then installed PyTorch, then "pip install git+https://github.com/huggingface/transformers", but when I ran 'python -c "from transformers import pipeline; print(pipeline('sentiment-analysis')('I hate you'))"', it gave me the ImportError. How can I resolve this?

Issue 2:
transformers 4.2

Platform: MacOS

Python version: 3.7.9

PyTorch version (GPU?): CPU

Tensorflow version (GPU?): CPU

Using GPU in script?: No

Using distributed or parallel set-up in script?: No

Pip Version: Latest

I can't import the pipeline function:

from transformers import pipeline

Gives the following error:

File "<stdin>", line 1, in <module>
ImportError: cannot import name 'pipeline' from 'transformers' (unknown location)