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

Device/Android Version: Explicitly tested on Pixel 5 running Android 12, but this is applicable to all devices and Android versions.

Issue details / Repro steps / Use case background:

When using a placeholder resource ID like so, Glide uses an unexpected Context to load the drawable:

val options = RequestOptions().placeholder(R.color.some_color_resource)
Glide.with(imageView.context)
.load("http://the.url")
.apply(options)
.into(imageView)

I would expect this to use the imageView's context to load the Placeholder (which in most cases would be an Activity), but in fact it uses the application context to load the image.

This is because SingleRequest uses glideContext to load the drawable.

The reason we discovered this is this behavior does not work well with dark mode. Specifically, if the device is currently in dark mode but an application has set itself to MODE_NIGHT_NO via AppCompatDelegate.setDefaultNightMode() then the placeholder will be incorrectly loaded from values-night.

Glide load line / GlideModule (if any) / list Adapter code (if any):

val options = RequestOptions().placeholder(R.color.some_color_resource)
Glide.with(imageView.context)
.load("http://the.url")
.apply(options)
.into(imageView)

values/colors.xml:

<color name="some_color_resource">#ff000000</color>

values-night/colors.xml:

<color name="some_color_resource">#ffffffff</color>

SampleApplication.kt:

class SampleApplication : Application {
override fun onCreate() {
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO)
}
}

Issue 2:
Hi

soon with Android Q the night mode will be very important in my opinion and it would be nice if you can fix this little problem. Glide does not find pictures in the following directories:

drawable-night

drawable-night-hdpi (also mdpi, xhdpi, xxhdpi and xxxhdpi)

Greets

Frank
Issue 1:
In the very long line, escape string disturb syntax highlighting. For example the line below (MySQL),

INSERT INTO `wp_microbenotesposts` VALUES (1,1,'2014-10-24 11:26:58','2014-10-24 11:26:58','Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!','Hello world!','','publish','open','open','','hello-world','','','2014-10-24 11:26:58','2014-10-24 11:26:58','',0,'http://localhost/microbenote/?p=1',0,'post','',1),(2,1,'2014-10-24 11:26:58','2014-10-24 11:26:58','This is an example page. It\'s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:\n\n<blockquote>Hi there! I\'m a bike messenger by day, aspiring actor by night, and this is my blog. I live in Los Angeles, have a great dog named Jack, and I like pi&#241;a coladas. (And gettin\' caught in the rain.)</blockquote>\n\n...or something like this:\n\n<blockquote>The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.</blockquote>\n\nAs a new WordPress user, you should go to <a href=\"http://localhost/microbenote/wp-admin/\">your dashboard</a> to delete this page and create new pages for your content. Have fun!','Sample Page','','publish','open','open','','sample-page','','','2014-10-24 11:26:58','2014-10-24 11:26:58','',0,'http://localhost/microbenote/?page_id=2',0,'page','',0),(3,1,'2014-10-24 11:27:28','0000-00-00 00:00:00','','Auto Draft','','auto-draft','open','open','','','','','2014-10-24 11:27:28','0000-00-00 00:00:00','',0,'http://localhost/microbenote/?p=3',0,'post','',0);

The line below it will be parsed (highlighted) as string.

Issue 2:
I opened a Python file with the following line (#963):

PrintAndLog(u"SSID: " + RememberedNetwork["SSIDString"].decode("utf-8") + u" - BSSID: " + RememberedNetwork["CachedScanRecord"]["BSSID"] + u" - RSSI: " + str(RememberedNetwork["CachedScanRecord"]["RSSI"]) + u" - Last connected: " + str(RememberedNetwork["LastConnected"]) + u" - Security type: " + RememberedNetwork["SecurityType"] + u" - Geolocation: " + Geolocation, "INFO")

Which led to the following bug:

You can find this as the main file in osxauditor.py.
Issue 1:
Please:

Check for duplicate issues.

Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:

import jax.numpy as jnp
print(jnp.arange(10))
# [0 1 2 3 4 5 6 7 8 9]

If applicable, include full error messages/tracebacks.

Issue 2:
When defining a list of constraints as an input for the scipy.minimize (using a default 'SLSQP' method), repeated or redundant constraints will raise messages like "Singular matrix C in LSQ subproblem", and a solution is not achieved, when in fact, these repeated/redundant constraints should just be ignored.

This is very relevant when one has to define multiple inequality and equality constraints, which sometimes partially overlap for some of the constraints.

To replicate the problem: Use a working example of a constrained minimization problem, but now duplicate the list of constraints (two times more constraints, but all of them repeated).

Example where this is useful: Forcing a bivariate polynomial f(x,y) of a certain degree, to be f(0,y)=0 and forcing it's first derivative with respect to x, to be d f(x=1,y) / dx = 0, will provide a large set of equality constraints where a few of them are redundant.
Issue 1:
Describe the issue:

numpy.random.randint samples [1] happily with these parameters

np.random.randint(1.1, 2.9, size=1)

but raises a {ValueError} low >= high for

np.random.randint([1.1], [2.9], size=1)

Reproduce the code example:

import numpy as np

# No problems
np.random.randint(1.1, 2.9, size=1)

# Raises error
np.random.randint([1.1], [2.9], size=1)

Error message:

Traceback (most recent call last):
File "/Users/juliano/Code/wood-analysis/test.py", line 7, in <module>
np.random.randint([1.1], [2.9], size=1)
File "mtrand.pyx", line 765, in numpy.random.mtrand.RandomState.randint
File "_bounded_integers.pyx", line 1262, in numpy.random._bounded_integers._rand_int64
File "_bounded_integers.pyx", line 686, in numpy.random._bounded_integers._rand_int64_broadcast
ValueError: low >= high

Runtime information:

>>> import sys, numpy; print(numpy.__version__); print(sys.version)
1.24.1
3.10.9 (main, Dec 15 2022, 17:11:09) [Clang 14.0.0 (clang-1400.0.29.202)]

>>> print(numpy.show_runtime())
[{'simd_extensions': {'baseline': ['NEON', 'NEON_FP16', 'NEON_VFPV4', 'ASIMD'],
'found': ['ASIMDHP', 'ASIMDDP'],
'not_found': ['ASIMDFHM']}},
{'architecture': 'armv8',
'filepath': '/Users/juliano/Code/wood-analysis/.venv/lib/python3.10/site-packages/numpy/.dylibs/libopenblas64_.0.dylib',
'internal_api': 'openblas',
'num_threads': 8,
'prefix': 'libopenblas',
'threading_layer': 'pthreads',
'user_api': 'blas',
'version': '0.3.21'}]
None

Context for the issue:

No response

Issue 2:
Describe the issue:

numpy/core/src/umath/loops_trigonometric.dispatch.c.src:202:20: internal compiler error: in convert_move, at expr.c:218
NPY_NO_EXPORT void NPY_CPU_DISPATCH_CURFX(FLOAT_@func@)
^
0xb6b59717 __libc_start_main
/build/glibc-FUvrFr/glibc-2.28/csu/libc-start.c:308

Reproduce the code example:

pip3 install numpy

Error message:

https://pastebin.com/EGraqF50

NumPy/Python version information:

Raspberry Pi 4 + Raspberry Pi OS Buster.

Python 3.7.3

Numpy version being attempted is 1.21 (didn't choose it in particular, it's just the one pip would install).

Apt packages installed so far are:

- python3

- python3-pip

- build-essential

- cmake

- libhdf5-dev

- libatlas-base-dev

- gfortran

- libavcodec-dev

- libavformat-dev

- libswscale-dev

- libv4l-dev

- libopenblas-dev

I've setup an identical system a year ago, running the exact same code (using Ansible for setup) and there was no issue.
Issue 1:
I'm building Julia 0.5 (master) on my Raspberry Pi. This aborts with

make[1]: Entering directory '/home/pi/src/julia-0.5'
cd /home/pi/src/julia-0.5/base && /home/pi/src/julia-0.5/usr/bin/julia -C arm1176jzf-s --output-ji /home/pi/src/julia-0.5/usr/lib/julia/inference.ji --startup-file=no coreimg.jl
Segmentation fault
Makefile:215: recipe for target '/home/pi/src/julia-0.5/usr/lib/julia/inference.ji' failed
make[1]: *** [/home/pi/src/julia-0.5/usr/lib/julia/inference.ji] Error 139
make[1]: Leaving directory '/home/pi/src/julia-0.5'
Makefile:96: recipe for target 'julia-inference' failed
make: *** [julia-inference] Error 2

Issue 2:
Using fresh clone of master at db11bc7. My last successful build was at e18ed61.

/home/sachs/src/julia-master/base/precompile.jl

signal (11): Segmentation fault
while loading no file, in expression starting on line 0
Allocations: 44889342 (Pool: 44888794; Big: 548); GC: 25
Segmentation fault
*** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. ***
Makefile:229: recipe for target '/home/sachs/src/julia-master/usr/lib/julia/sys.o' failed
make[1]: *** [/home/sachs/src/julia-master/usr/lib/julia/sys.o] Error 1
Makefile:99: recipe for target 'julia-sysimg-release' failed
make: *** [julia-sysimg-release] Error 2
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.7.x

Operating System version: MacOS

Java version: 1.8

Steps to reproduce this issue

Execute following code in a method of a dubbo service on provider side:

RpcContext.getServerContext().setAttachment("abc", "123");

Execute following code in the same thread that invoke the remote dubbo service after the invoking:

Map<String, String> map = RpcContext.getServerContext().getAttachments();
System.out.println("context: " + map.get("abc"));

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

Expected Result

Console output:

context: 123

Actual Result

context: null

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

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.0-release

Operating System version: MacOS

Java version: 1.8

Steps to reproduce this issue

I see that in 2.7.0-RELEASE.Dubbo haven been supported protobuf,but I can't find any infomation in document.Please help me some examples how to use protobuf in dubbo, or show me some demos.Thanks
Issue 1:
Context: /basics/3

original source code:

package main

import (

"fmt"

"math"

)

func main() {

fmt.Println(math.pi)

}

issue: # command-line-arguments

/tmp/sandbox679643269/main.go:9: cannot refer to unexported name math.pi

/tmp/sandbox679643269/main.go:9: undefined: math.pi

math.pi should be changed to math.Pi as you may type it incorretly.

Issue 2:
Context: /basics/3

Example in "Exported names" section does not compile. Error is:

# command-line-arguments
/tmp/sandbox260995202/main.go:9: cannot refer to unexported name math.pi
/tmp/sandbox260995202/main.go:9: undefined: math.pi
Issue 1:
Need to allow to use generics for "this" type, like this: this<T>

class Collection<T> extends Array<T> {

map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): this {
// this method will return this<T>, but I want to return this<U>
return new (this.constructor as any)(...super.map(callbackfn, thisArg));
}

}

example of usage:

new Collection(
new Model(1, "Mercedes"),
new Model(2, "BMW"),
new Model(3, "Ford")
)
.map(model => model.engine)
.forEach(engine => engine.serialNumber); // here compiler should see engine.serialNumber

Issue 2:
First, thank you team for polymorphic this. It is really handy!

I think I ran into a case though that I am finding challenging, when I need to return a this, but the generics might have changed. For example:

class A<T> {
private items: T[] = [];
map<U>(callback: (item: T, idx: number, a: this) => U): this {
// boring implementation details
});
}

Where I want to be able to change the generic type for the class with a function, but I will be contracting to return the "current" class, but I want to guard different generics. The following seems logical to me, but doesn't appear to be currently supported:

class A<T> {
private items: T[] = [];
map<U>(callback: (item: T, idx: number, a: this) => U): this<U> {
// boring implementation details
});
}

Where if no generics arguments are supplied, it is inferred to be the current ones, where as if they are supplied they are substituted.
Issue 1:
servel.yaml : max.connections.size.per.query >1 and Large amount of data queried

sql :

SELECT

aci.sys_contract_id,

aci.contract_no,

aci.contract_name,

aci.sys_contract_id,

acoi.sys_contract_id,

acoi.object_name,

acoi.sys_object_id,

aci.progress_status,

aci.journal_progress_status

FROM

app1_contract_info aci

LEFT JOIN app1_contract_object_info acoi ON aci.sys_contract_id = acoi.sys_contract_id

where

aci.contract_name = 'sample1' and aci.sys_contract_id not in ('15679933204395H')

group BY/order by

acoi.sys_object_id

sys_contract_id is sharding coloum.

result: no result and mysql can not receive.

but this sql is successd ：

SELECT

aci.sys_contract_id,

aci.contract_no,

aci.contract_name,

aci.sys_contract_id,

acoi.sys_contract_id,

acoi.object_name,

acoi.sys_object_id,

aci.progress_status,

aci.journal_progress_status

FROM

app1_contract_info aci

LEFT JOIN app1_contract_object_info acoi ON aci.sys_contract_id = acoi.sys_contract_id

where

aci.contract_name = 'sample1' and aci.sys_contract_id not in ('15679933204395H')

Issue 2:
Which version of Sharding-Jdbc do you using?（您使用的Sharding-Jdbc版本为？）

2.0.0.M3

Expected behavior （您预期的结果是）

兼容spring-boot2.0

Actual behavior （实际运行的结果是）

spring-boot升级2.0后解析不了这样的配置格式，报错

java.lang.IllegalArgumentException: Could not resolve placeholder '0..1' in value "demo.user_${0..1}"
Issue 1:
Feature request: Emacs has a cool feature called "prettify symbols mode," demonstrated for Haskell here. This could also subsume #192.

The basic idea is to register a sequence of characters whose glyphs will be replaced with another glyph, but the original characters still appear in the text document. Ideally, the substitutions would be dependent on the context returned by a syntax highlighter or some other parser.

Issue 2:
VSCode Version: 1.1.1

OS Version: oxs 10.11.4

In china, install extension is very slowly, sometime i want to pause one extension at some project
Issue 1:
Description of the problem

riven.zip

The mesh loads and everything, and the animation's tracks doesn't and its duration is 0, this happens on some models

Three.js version

Dev

r111

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Issue 2:
Description of the problem

Hello,

The following is a solution to a problem I have just faced with the animations parsed by the new ColladaLoader.

I use Autodesk Maya 2017, and when exporting the 3D model containing animations, an extra <animation> tag has been added under the "real" <animation> tag.

<animation id=​"xxx-anim" name=​"xxx">
​<animation>
​<source id=​"xxx-Matrix-animation-input">​</source>​
<source id=​"xxx-Matrix-animation-output-transform"></source>
​<source id=​"xxx-Interpolations">​​</source>​
<sampler id=​"xxx-Matrix-animation-transform">​</sampler>
​<channel source=​"#xxx-Matrix-animation-transform" target=​"xxx/​matrix">​</channel>​
</animation>
​</animation>

I digged into the source code of the ColladaLoader and I added the following lines into the parseAnimation( xml ) function in order to handle this extra tag:

switch ( child.nodeName )
{
/* Handling 'source', 'sampler' and 'channel' */

case 'animation':
child.setAttribute( 'id', xml.getAttribute( 'id' ) );
child.setAttribute( 'name', xml.getAttribute( 'name' ) );
parseAnimation( child );
return;
}

Three.js version

Dev

r92

...

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS
Issue 1:
System information (version)

OpenCV => Current master (6356403 on 2018-8-23)

Operating System / Platform => Ubuntu 18.04

Compiler => GCC 7.3.0, CMake version 3.10.2

Detailed description

When compiling OpenCV I ran into the following error:

Scanning dependencies of target opencv_videoio
[ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/videoio_registry.cpp.o
[ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/videoio_c.cpp.o
[ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap.cpp.o
[ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_images.cpp.o
[ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_mjpeg_encoder.cpp.o
[ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_mjpeg_decoder.cpp.o
[ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/container_avi.cpp.o
[ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dc1394_v2.cpp.o
[ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_gstreamer.cpp.o
[ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_v4l.cpp.o
[ 36%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_gphoto2.cpp.o
/home/ruben/Projects/Libraries/opencv/modules/videoio/src/cap_gphoto2.cpp:32:10: fatal error: gphoto2/gphoto2.h: No such file or directory
#include <gphoto2/gphoto2.h>
^~~~~~~~~~~~~~~~~~~

So it's missing the header files for gPhoto2. However, CMake says that it detects gPhoto2 to be present:

-- gPhoto2: YES

Turns out that the problem was that I did have gPhoto2 present on my system, but not the development files that includes the header that OpenCV needs for this module. CMake detected gPhoto2, but this was a false positive as I didn't have the required files anyway. Installing Ubuntu's package for libgphoto2-dev fixed the problem for me, because that put gphoto2.h on the include path.

Steps to reproduce

Install all dependencies of OpenCV except gPhoto2.

Install the Ubuntu package for libgphoto2-6, but not libgphoto2-dev.

Build OpenCV using CMake.

Actual results

Error at 36% that gphoto2.h is not found.

Expected results

gPhoto2 should not be marked as found in the configure stage of OpenCV, if its header files are not present. Furthermore, I'd expect one of these things to happen, whichever you think is most common behaviour for OpenCV:

CMake disables whatever modules require gPhoto2 (videoio at least), or

an error is raised during the configure stage that not all modules can be built as desired.

Issue 2:
OpenCV Documentation

When you click on the link in the following line in the documentation "List of codes can be obtained at Video Codecs by FOURCC page", you get redirected to the wrong page.

This is in the VideoWriter section of the documentation. https://docs.opencv.org/2.4/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture
Issue 1:
Tuomas Kiviaho opened SPR-8489 and commented

I see that (Context)SingletonBeanFactoryLocator still using BeanFactoryUtils beanOfType instead of BeanFactory getBean(requiredType). Changing this would allow autowiring exclusions and as a bonus the implementation wouldn't have to be aware of ListableBeanFactory anymore. I noticed also that DefaultListableBeanFactory.getBean(requiredType) isn't aware of primary flag (see resolveDependency method). I would like to see this feature to be available in getBean as well.

Affects: 3.1 M2

Attachments:

mylyn-context.zip (2.11 kB)

Issue Links:

#12511 @Primary and primary attribute of element are not considered for calls to getBean(Class) ("duplicates")

Referenced from: commits 4262aed

Issue 2:
Eric Dalquist opened SPR-2138 and commented

The form:form tag from the spring-form.tld does not actually support in code all of the attributes advertised in the documentation and tld. The tld lists the following supported attributes:

id

name

cssClass

cssStyle

lang

title

dir

onclick

ondblclick

onmousedown

onmouseup

onmouseover

onmousemove

onmouseout

onkeypress

onkeyup

onkeydown

<!-- Form specific attributes -->

commandName

action

method

enctype

onsubmit

onreset

The class, org.springframework.web.servlet.tags.form.FormTag only provides setters for these attributes (this list includes parent classes):

command

commandName

name

onsubmit

onreset

method

action

enctype

It appears the rest of the <form: tags inherit from a class hierarchy that provides most of these common attributes, the FormTag does not.

Affects: 2.0 M5

Issue Links:

#6819 FormTag doesn't support all attributes listed in the TLD ("is duplicated by")
Issue 1:
If possible I would love to see an option for which monitor the zone editor is editing zones for. Even if there is a proper way to do it, I feel it should be simplified for less tech-savvy people. Just a simple Monitor 1 and Monitor 2, identified in the Windows display settings would work fine.

It's been a hassle to get it to work on my other vertical monitor and I haven't found a simple solution to this day.

Any feedback on how I could fix my problem currently would be appreciated!

Thank you

Issue 2:
Working on a machine with several versions of Visual Studio installed (2010, 2015, 2017, 2019), so the sensible search term to load an instance of Visual Studio 2017 is "2017".

This brings up "Visual Studio 2017" just fine, but it is always the second suggestion, not the first. The first suggestion is to copy "2017" to the clipboard.

If I had actually performed a calculation with the calculator then copying the result to the clipboard should perhaps be the first entry, but since no operations / calculation has been performed, and there is a matching start menu entry to run, the first suggestion should be the start menu entry, not copy to clipboard.
Issue 1:
This looks pretty new. Haven't seen this particular failure before.

What steps will reproduce the problem?

run net/http tests in a loop

What do you see instead?

=== RUN TestServeFileMimeType-65
--- FAIL: TestServeFileMimeType-65 (0.00 seconds)
fs_test.go:338: Content-Type mismatch: got "text/plain; charset=utf-8", want
"text/css; charset=utf-8"

Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

linux

Which version are you using? (run 'go version')

8afe25accb81

Issue 2:
GOTRACEBACK controls what gets printed on failure. By default "a failure prints a stack trace for every extant goroutine, eliding functions internal to the run-time system, and then exits with exit code 2."

It would be nice if we there was a variant that printed just the offending goroutine, which is usually what you care about during development.