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

Integration libraries: None

Device/Android Version: Any

Issue details / Repro steps / Use case background:

How do we get a context to a custom ModelLoader in Glide 4? We should not store the context in the ModelLoaderFactory

Registry requires a factory:

public void registerComponents(@nonnull Context context, @nonnull Glide glide, Registry registry) {

registry.append(MetadataTest.class, InputStream.class, new TestModelLoaderFactory(context));

}

but build can't take a context:

public ModelLoader<MetadataTest, InputStream> build(@nonnull MultiModelLoaderFactory multiFactory) {

return new TestModelLoader(context); <-- no context here

}

So there's no context during the ModelLoader creation:

The docs clearly mention storing a context in a ModelLoader not ModelLoaderFactory, but I can't see how one is possible without the other.

Issue 2:
I suspect I'm somehow missing something trivial, but I've hunted through the docs and issues. How do we get a context to a ModelLoader built via the ModelLoaderFactory? We can't store the context in the factory, so there must be some way to inject it into the build?
Issue 1:
I don't see what useful purpose is served by having this distinction in the type system, introduced by #987 (and see also the discussion in #5810). According to the description in the manual:

The AbstractArray type includes anything vaguely array-like, and implementations of it might be quite different from conventional arrays. For example, elements might be computed on request rather than stored. Or, it might not be possible to assign or access every array location.

StoredArray is an abstract subtype of AbstractArray intended to include all arrays that behave like memories: all elements are independent, can be accessed, and (for mutable arrays) all elements can be assigned.

the main difference between a StoredArray and an AbstractArray is that in the latter, the elements are computed or requested on the fly whereas in the former they are "stored". But this seems like an implementation detail.... why do we want to have this distinction in the type system? Under what circumstances would you dispatch on the difference between computed and stored values?

The other difference is that, in an AbstractArray, not all elements may be accessible. (But in this case, shouldn't it be an Associative type?) If you can't even access all elements, what non-trivial array-like methods could possibly operate on an AbstractArray? And if you can't write a non-trivial method for it, why even have the type at all?

My suggestion would be to just drop this distinction, and make StoredArray === AbstractArray. And suggest that every concrete AbstractArray type should, at minimum, provide size and getindex (and setindex! if it is mutable), including a single-index variant.

Issue 2:
E.g.

From worker 4:	Internal error: encountered unexpected error during compilation of undeclared_ceil:
From worker 4:	ErrorException("Failed to parse LLVM Assembly:
From worker 4:	julia: llvmcall:3:18: error: use of undefined value '@llvm.ceil.f64'
From worker 4:	%2 = call double @llvm.ceil.f64(double %0)
From worker 4:	^
From worker 4:	")
From worker 4:	jl_error at /buildworker/worker/package_linux64/build/src/rtutils.c:41
From worker 4:	emit_llvmcall at /buildworker/worker/package_linux64/build/src/ccall.cpp:997

in recent CI runs.
Issue 1:
Symfony version(s) affected: 4.1

Description

When i try to access in security page, i have an exception critical in my log, this error critical don't exist in 4.0.x

Trace :

Uncaught PHP Exception Symfony\Component\Security\Core\Exception\AccessDeniedException: "Access Denied." at /var/www/demo-master/vendor/symfony/security/Http/Firewall/AccessListener.php line 68
Hide context Hide trace
[▼
"exception" => AccessDeniedException {#316 ▶}
]
{▼
/var/www/demo-master/vendor/symfony/security/Http/Firewall/AccessListener.php:68 {▶}
/var/www/demo-master/vendor/symfony/security-bundle/Debug/WrappedListener.php:46 {▶}
/var/www/demo-master/vendor/symfony/security-bundle/Debug/TraceableFirewallListener.php:35 {▶}
/var/www/demo-master/vendor/symfony/security/Http/Firewall.php:61 {▶}
/var/www/demo-master/vendor/symfony/security-bundle/EventListener/FirewallListener.php:48 {▶}
Symfony\Bundle\SecurityBundle\EventListener\FirewallListener->onKernelRequest() {}
/var/www/demo-master/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:104 {▶}
/var/www/demo-master/vendor/symfony/event-dispatcher/EventDispatcher.php:212 {▶}
/var/www/demo-master/vendor/symfony/event-dispatcher/EventDispatcher.php:44 {▶}
/var/www/demo-master/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:141 {▶}
/var/www/demo-master/vendor/symfony/http-kernel/HttpKernel.php:125 {▶}
/var/www/demo-master/vendor/symfony/http-kernel/HttpKernel.php:66 {▶}
/var/www/demo-master/vendor/symfony/http-kernel/Kernel.php:188 {▶}
/var/www/demo-master/public/index.php:37 {▼
› $request = Request::createFromGlobals();
› $response = $kernel->handle($request);
› $response->send();
arguments: {▶}
}
}

How to reproduce

Just clone symfony-demo and try to access in http://127.0.0.1:8000/fr/admin/post/

go to the profiler and select the page 302 (@admin_index) you can see an exception & error critical in log.

If i downgrade in 4.0.x, i don't have this critical error.

Possible Solution

For me access denied is not critical

Issue 2:
Symfony version(s) affected: 4.0.9/4.1.0-BETA1

Description

Commit 4e527aa added a service http_exception_listener. This registers a system-wide exception handler that sets request's _controller attribute to a closure during kernel.exception.

Also this closure controller generates a response on the event. As a consequence of that, this triggers listeners on kernel.response event - with _controller as a closure instead of previously not being invoked at all, and the generated response instead of null.

How to reproduce

Failing test case provided separately in #27213.

Additional context

Encountered in API-only application, no templating etc., only custom request/response handling and custom exception handling.
Issue 1:
testSanity(io.druid.curator.announcement.AnnouncerTest) Time elapsed: 61.107 sec <<< ERROR!

java.lang.Exception: test timed out after 60000 milliseconds

at sun.misc.Unsafe.park(Native Method)

at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)

at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1037)

at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1328)

at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:277)

at org.apache.curator.test.Timing.awaitLatch(Timing.java:120)

at io.druid.curator.announcement.AnnouncerTest.testSanity(AnnouncerTest.java:101)

Issue 2:
https://travis-ci.org/druid-io/druid/jobs/101730020

testSanity(io.druid.curator.announcement.AnnouncerTest) Time elapsed: 61.019 sec <<< ERROR!

java.lang.Exception: test timed out after 60000 milliseconds

at sun.misc.Unsafe.park(Native Method)

at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)

at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1037)

at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1328)

at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:277)

at org.apache.curator.test.Timing.awaitLatch(Timing.java:120)

at io.druid.curator.announcement.AnnouncerTest.testSanity(AnnouncerTest.java:101)
Issue 1:
import { firefox, chromium } from "playwright"

async function main() {
let browser = await firefox.launch({ headless: false })

let context = await browser.newContext()

let page = await context.newPage()
let page1 = await context.newPage()

await page.goto("https://microsoft.com")
await page1.goto("https://microsoft.com")
}

async function main2() {
let browser = await chromium.launch({ headless: false })

let context = await browser.newContext()

let page = await context.newPage()
let page1 = await context.newPage()

await page.goto("https://microsoft.com")
await page1.goto("https://microsoft.com")
}

main().catch((e) => {
console.error(e)
})

main2().catch((e) => {
console.error(e)
})

Here is screenshot . Clearly code is nearly same with firefox and chromium replaced. But the behavior is weird firefox spawns window which is supposed to be tab. And Chrome behaves properly.

Plus this following code shows 2 window now in past it used to show 1 window with 2 tabs.

let browser = await chromium.launch({ headless: false })
let page = await context.newPage()
let page1 = await context.newPage()

Discovered while upgrading the plugin.

Thanks.

Issue 2:
Was expecting a new tab

I am not sure if I've seen this before when using puppeteer
Issue 1:
I have to admit that I don't understand the formal properties of the type system well enough to tell whether this could cause trouble, and also not clear whether this could be done in a 1.x release at all. With those caveats:

The current behavior, that any subtype check with Union{} on the left hand side will return true (no matter what) was surprising to me and makes it kind of cumbersome to write code that really does what at least I want it to do when I'm checking for a subtype relationship. I've always assumed that if I write say T <: AbstractString, that I really only can get a true if T is some sort of string, but it turns out that if I want that behavior I need to write T <: AbstractString && T !== Union{}.

This came up in queryverse/TableTraits.jl#21.

Issue 2:
I found that there is a pitfall with dispatching on custom parameterized types due to Type{Union{}} <: Type{<:MyType} (JuliaArrays/StaticArrays.jl#685). Borrowing @c42f's example, the problem is that:

julia> foo(::Type{T}) where {T} = "generic"
julia> foo(::Type{<:Int}) = "special"
julia> foo(Union{})
"special"

For a concrete type like Int, the solution is to write Type{Int}. However, it is tricky for parameterized types. Possible workarounds are:

Use foo(::Type{T}) where {P, MyType{P} <: T <: MyType}: However, this interferes with the inliner JuliaArrays/StaticArrays.jl#685 (comment) possibly due to unbound type parameters (see also JuliaArrays/StaticArrays.jl#665, #30713).

Separate dispatches as in foo(::Type{MyType}) and foo(::Type{MyType{P}}) where P. JuliaArrays/StaticArrays.jl#685 uses this solution.

Write a helper function like Type₁(U) = Type{T} where {P, U{P} <: T <: U} and then define foo(::Type₁(MyType)).

However, none of the above solutions works well when there are many parameters. It may be useful to have a generalization of approach 3 (say) Type₊(U::UnionAll) that works with an arbitrary number of parameters. Or maybe there is a better solution?
Issue 1:
Description of the new feature/enhancement

As far as I can see, there is no option to make the cursor see through, like in Mintty, for example. There is the "emptyBox" cursor shape, but that one feels very unfamiliar when editing text.

Proposed technical implementation details (optional)

Either allow rgba (like in css) in "cursorColor" or add a "cursorOpacity" option.

Issue 2:
Summary of the new feature/enhancement

When cursorShape is set to filledBox, it hides the character under it:

(The command is cat /etc/os-release)

This is a bit annoying. It will be helpful if the character can still be visible when the cursor is moved to its position.
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 repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.6.5

Operating System version: win10

Java version: 1.8

Steps to reproduce this issue

com.alibaba.dubbo.common.extension.ExtensionLoader#addExtension

public void addExtension(String name, Class<?> clazz) {
getExtensionClasses(); // load classes

...

if (!clazz.isAnnotationPresent(Adaptive.class)) {
...

cachedNames.put(clazz, name);
cachedClasses.get().put(name, clazz);
}
...
}

I wan't to load xXXFilter when dubbo init，when call this method , ExtensionLoader#cachedActivates will load system extension，but xXXFilter I call this method manually don't load in ExtensionLoader#cachedActivates.This will lead ExtensionLoader#getActivateExtension() don't have xXXFilter.

Did I use it incorrectly?

Did I misunderstood the purpose of this method?

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: CentOS 7.6

Java version: 1.8.0

Steps to reproduce this issue

wget https://github.com/apache/dubbo/archive/dubbo-2.7.5.tar.gz

tar xvf dubbo-2.7.5.tar.gz

cd dubbo-dubbo-2.7.5/dubbo-config/dubbo-config-api

4.mvn install

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

BUILD SUCCESS

Actual Result

What actually happens?

[ERROR] Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 9.451 s <<< FAILURE! - in org.apache.dubbo.config.utils.ReferenceConfigCacheTest

[ERROR] testGetCacheSameReference Time elapsed: 0.103 s <<< ERROR!

java.lang.IllegalStateException: No application config found or it's not a valid config! Please add <dubbo:application name="..." /> to your spring config.

at org.apache.dubbo.config.utils.ReferenceConfigCacheTest.testGetCacheSameReference(ReferenceConfigCacheTest.java:43)

[INFO] Results:

[INFO]

[ERROR] Errors:

[ERROR] ReferenceConfigCacheTest.testGetCacheSameReference:43 » IllegalState No applic...

[INFO]

[ERROR] Tests run: 557, Failures: 0, Errors: 1, Skipped: 2

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 22.801 s

[INFO] Finished at: 2020-05-08T06:23:56+08:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project dubbo-config-api: There are test failures.

[ERROR]

[ERROR] Please refer to /home/Dubbo/dubbo-dubbo-2.7.5/dubbo-config/dubbo-config-api/target/surefire-reports for the individual test results.

[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

copy module

ANSIBLE VERSION

ansible 2.2.0.0
config file =
configured module search path = Default w/o overrides

CONFIGURATION

[defaults]
gathering = smart
gather_subset = !virtual,!facter,!ohai
hash_behaviour = merge
host_key_checking = False
log_path = /var/log/ansible.log

[ssh_connection]
pipelining = False

OS / ENVIRONMENT

RHEL 7.3

SUMMARY

Copy task errors out and outputs a stacktrace when trying to copy a file to a disk that is full.

STEPS TO REPRODUCE

Pick a destination disk on the target machine, and create a file that will almost fill up the disk (ie to fill up 2G on /tmp: dd if=/dev/zero of=/tmp/filler.dat bs=2G count=1

Create a file that we will use as the source of the copy task that doesn't fit on the target disk, for example if there is 50M left, generate a 70M file somewhere dd if=/dev/zero of=/opt/test.dat bs=70M count=1

Run a sample playbook that attempts to copy the file to a disk that is full

- hosts: all
remote_user: root
tasks:
- copy: src="/opt/test.dat" dest="/tmp/test.dat"

EXPECTED RESULTS

Copy should fail with an exception showing the result of the copy command (disk full, couldn't copy, etc...

ACTUAL RESULTS

Stack trace is output (global name 'exception' is not defined):

PLAY [all] *********************************************************************

TASK [setup] *******************************************************************
ok: [10.0.0.97]

TASK [copy] ********************************************************************
fatal: [10.0.0.97]: FAILED! => {"changed": false, "checksum": "e1e0abec2de9ed580fcd89c1b50d4b60e49f979e", "failed": true, "module_stderr": "Shared connection to 10.0.0.97 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_sNI2Il/ansible_module_copy.py\", line 364, in <module>\r\n main()\r\n File \"/tmp/ansible_sNI2Il/ansible_module_copy.py\", line 343, in main\r\n module.atomic_move(b_mysrc, dest, unsafe_writes=module.params['unsafe_writes'])\r\n File \"/tmp/ansible_sNI2Il/ansible_modlib.zip/ansible/module_utils/basic.py\", line 2003, in atomic_move\r\nNameError: global name 'exception' is not defined\r\n", "msg": "MODULE FAILURE"}
to retry, use: --limit @/opt/build/test/test.retry

PLAY RECAP *********************************************************************
10.0.0.97 : ok=1 changed=0 unreachable=0 failed=1

Issue 2:
ISSUE TYPE

Feature Idea

COMPONENT NAME

module_utils/junos

ANSIBLE VERSION

2.5

SUMMARY

Refactor junos modules common library to use CLIconf plugin
Issue 1:
Hi there,

There is many discusses about babel v6 and customElements v1, see:

#4480

WICG/webcomponents#423

WICG/webcomponents#587

http://stackoverflow.com/questions/41414034/transpiling-class-based-web-components-with-babel

... and there is some solution out there:

https://github.com/WebReflection/classtrophobic

https://github.com/github/babel-plugin-transform-custom-element-classes

So, it will be nice when this issue/problem will be resolved with babel v7

Issue 2:
The Esperanto module transpiler seems so far to be the module transpiler with the best spec compliance for tricky edge cases like live binding (#1117) and circular imports. We're using it in Ember CLI, and it works great in practice.

Perhaps there are, conversely, some nice things in the Babel module code that Esperanto doesn't handle correctly yet.

May I suggest that you all get on a hangout some time to explore the possibility of joining forces?

/cc @Rich-Harris, @eventualbuddha
Issue 1:
Full paths such as c:\Users\Foobar\Desktop\baz.txt

The convention in windows is to have drive names in uppercase (C:\)

Issue 2:
A really small nitpick, but I feel like the drive letter should be capitalized.

Explorer capitalizes it (C:\Servers\[...]) and so does Notepad++.

It's been lowercase since I started trying out Atom (before 0.100.0). Also replicated in safe mode (kinda, since I didn't have any packages at the very beginning).
Issue 1:
Environment

Windows build number: [Version 10.0.18362.836]
PowerToys version: v0.18.1
PowerToys: PowerToys Run

Steps to reproduce

With PowerToys installed and running, press Alt + Space from any screen.

Expected behavior

PowerToys Run popup shows up to start typing a command or a search term

Actual behavior

window menu (Restore / Move / Size / Minimize / Maximize / Close) shows up in the top left corner of the focused window if the focus is on a window or nothing at all if the focus is on the desktop.

Screenshots

Issue 2:
Summary of the new feature/enhancement

keeping selected windows always on top

allowing user easily editing their right click content menu(files, folders, backgound)

content menu in windows are too long, softwares can easily add their shortcuts into it but hard to delete. is there any way that can make it concise and organized? more specifically, functions such as reorganizing content menu as group or something like that, adding new shortcuts into it, deleting or hiding existing shortcut will be a great help

thank you for the great job that you have done

Proposed technical implementation details (optional)
Issue 1:
Please add support for custom non-standard DOM events, ideally through a public API but if that's a "no go" at least some way that would not require forking the code base.

Here is my attempt of exposing non-standard events after getting some insights on IRC, unfortunately it still does not work (as event listeners are not registered) and I am not sure if there is more whitelists somewhere that skips those custom events:

https://gist.github.com/Gozala/a977973957fcee9c5671

P.S.: Any help in changing this snippet to make it work is also greatly appreciated

Issue 2:
Describe what you were doing when the bug occurred:

I couldn't reproduce it.

Please do not remove the text below this line

DevTools version: 4.8.2-fed4ae024

Call stack: at getChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:18061:32)

at ProfilingCache.getFlamegraphChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:18301:14)

at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:31722:32)

at vh (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11067:7)

at fi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11733:7)

at ck (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:14430:86)

at bk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13779:11)

at ak (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13768:5)

at Sj (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13750:7)

at Mj (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13351:105)

Component stack: at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:31701:48)

at div

at div

at div

at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26139:23)

at Profiler_Profiler (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:33363:48)

at ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27172:5)

at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27303:32)

at div

at div

at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30463:23)

at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22538:23)

at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23040:27)

at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28328:23)

at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:33797:21)