WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Video Conference: allow setting hotkeys for "on" and "off" (rather than toggle) for mic mute and camera mute

My young kids are using Teams at school. They have to stay muted until asked to speak by the teacher. They are easily confused/distracted by having to look for mute/unmute in the Teams UX, esp. when a teacher asks them a difficult question.

I use an external device that emulates keyboards to provide a physical button to mute/unmute. This helps but leaves the challenge of kids not knowing if they are in a muted or unmuted state. A more intuitive option would be to have separate "mute" and "unmute" buttons.

PowerToys can enable this by allowing to define distinct "mute" and "unmute" hotkey combinations for mic and camera.

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

Issue 2:
Summary of the new feature/enhancement

This feature would prevent the OS from going to sleep with the options to set a timer for when it can go back to sleep. This functionality is provided by the following two sources for free; however, I choose not to use these since they are not open-source (or I couldn't find the source code). Also the caffeine software uses key strokes which is less than desirable than an API approach that amphetamine takes.

https://zhornsoftware.co.uk/caffeine/

https://www.d7xtech.com/free-software/amphetamine/

Basic implementation details

Right clicking on PowerToys system tray icon will display whether or not this feature is currently active

Right clicking on PowerToys system tray icon will have an option to allow someone to start/end this feature with a default setting

Right clicking on PowerToys system tray will also include options for this feature where you can quickly specify a time limit for this feature (e.g. Keep Awake for 5 min, 1 hour, Forever, etc)

PowerToys Run can activate/deactivate this new feature quickly
Issue 1:
On a clean checkout I get segfaults in test/fft.jl when I run make testall. In particular, at least these lines in test/fft.jl seem to cause segfaults while the unmarked ones don't (line numbers included):

10 fft_m4 = fft(m4)
11 fft2_m4 = fft2(m4) # segfault
12 fftd2_m4 = fft(m4,2)
13 ifft_fft_m4 = ifft(fft(m4))
14 fftn_m4 = fftn(m4) # segfault
15 ifftn_fftn_m4 = ifftn(fftn(m4)) # segfault

I'm on an Arch box, and I built against MKL 10.319:

$ uname -a
Linux blah 3.4.4-1-ARCH #1 SMP PREEMPT Sat Jun 23 10:53:18 CEST 2012 x86_64 GNU/Linux

I tried to get something useful out of running gdb on the debug build, but I don't really know what I'm doing:

○ gdb --args ./usr/bin/julia-debug-basic test/fft.jl
GNU gdb (GDB) 7.4.1
This GDB was configured as "x86_64-unknown-linux-gnu".
Reading symbols from /home/mattjj/builds/julia/usr/bin/julia-debug-basic...done.
(gdb) run
Starting program: /home/mattjj/builds/julia/usr/bin/julia-debug-basic test/fft.jl
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
[New Thread 0x7ffff3f4d700 (LWP 10340)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff45b164d in fftw_execute () from /home/mattjj/builds/julia/usr/lib/libfftw3.so.3
(gdb) bt
#0 0x00007ffff45b164d in fftw_execute () from /home/mattjj/builds/julia/usr/lib/libfftw3.so.3
#1 0x00007ffff5aef682 in ?? ()
#2 0x00007fffffffc110 in ?? ()
#3 0x0000000000000004 in ?? ()
#4 0x0000000000000000 in
(gdb) info threads
Id Target Id Frame
2 Thread 0x7ffff3f4d700 (LWP 10340) "julia-debug-bas" 0x00007ffff77be8f4 in pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib/libpthread.so.0
* 1 Thread 0x7ffff7fe2740 (LWP 10337) "julia-debug-bas" 0x00007ffff45b164d in fftw_execute ()
from /home/mattjj/builds/julia/usr/lib/libfftw3.so.3
(gdb) thread 2
[Switching to thread 2 (Thread 0x7ffff3f4d700 (LWP 10340))]
#0 0x00007ffff77be8f4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
(gdb) bt
#0 0x00007ffff77be8f4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1 0x00007ffff6c167bc in run_io_thr (arg=0x0) at sys.c:304
#2 0x00007ffff77bae0e in start_thread () from /lib/libpthread.so.0
#3 0x00007ffff60751ed in clone () from /lib/libc.so.6

Issue 2:
The __source__ macro meta-argument seems to lose its bearing when used inside of Cmd interpolation. Example:

$ cat test.jl
z = `$(@__FILE__)`
@show z
$ julia test.jl
z = `none`

This is particularly an issue for macros like Pkg.Artifacts.@artifact_str which use the __source__.file attribute to look up the location of the appropriate Artifacts.toml file.
Issue 1:
Traceback (most recent call last):

File "C:\Users\Scott Ward-Corderoy\Desktop\python_work\Projects\Data Visualisation\generating_data.py", line 1, in

import matplotlib.pyplot as plt

File "C:\Users\Scott Ward-Corderoy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\matplotlib_init_.py", line 174, in

check_versions()

File "C:\Users\Scott Ward-Corderoy\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\matplotlib_init.py", line 159, in _check_versions

from . import ft2font

ImportError: DLL load failed: The specified module could not be found.

I get the above error when trying to import matplotlib. I am new to programming and am unsure what I have done wrong. Any help would be massively appreciated. I assume more information is needed but I do not know what.

Thanks

Issue 2:
Bug report

Bug summary

On some Windows machines (including Windows 10 and Windows 7), we experienced ImportError: DLL load failed: The specific module could not be found after upgrading from Matplotlib 3.3.0 to 3.3.1.

Code for reproduction

import matplotlib would trigger the import error while trying to import ft2font.

Actual outcome

In [1]: import matplotlib
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-0484cd13f94d> in <module>
----> 1 import matplotlib

c:\users\nzlab\envs\nta-1465\lib\site-packages\matplotlib\__init__.py in <module>
172
173
--> 174 _check_versions()
175
176

c:\users\nzlab\envs\nta-1465\lib\site-packages\matplotlib\__init__.py in _check_versions()
157 # Quickfix to ensure Microsoft Visual C++ redistributable
158 # DLLs are loaded before importing kiwisolver
--> 159 from . import ft2font
160
161 for modname, minver in [

ImportError: DLL load failed: The specified module could not be found.

Expected outcome

No error should be presented.

Matplotlib version

Operating system: Windows 7 (64bit), Windows 10 (64bit)

Matplotlib version: 3.3.1

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

Python version: Python 3.7.6

Jupyter version (if applicable):

Other libraries: Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.27.29016 NOT INSTALLED

**Further diagnose shows: **

ft2font.cp37-win_amd64.pyd (Matplotlib 3.3.0) links VCRUNTIME140.dll

ft2font.cp37-win_amd64.pyd (Matplotlib 3.3.1) links VCRUNTIME140_1.dll

Those computers which have DLL load failed don't have VCRUNTIME140_1.dll in DLL search path.

Solution

Installing the latest Visual Studio 2015, 2019 and 2019 redistributable should address the issue.

Question

Is changing in VC++ API (from 14 to 14.1) an intentional move on Matplotlib 3.3.1 for Windows release? If so, should the VC++ dependency to be added to Installation Guide?
Issue 1:
What problem does this feature solve?

Many data visualization and graphics library do DOM manipulation and most of them the DOMElement can be extracted.

const rect = SVG.adopt(this.$refs.rect.elm)
rect.node // this is the SVGElement and in chrome console will output <rect id="r1"></rect>

Let's say we want to build an abstraction by design it as a component that can draw a rectangle and after the drawing is done (by hold&drag mouse button) that rectangle will be placed in another section. The usage will be like this:

<annotator>
<img src="background" />
<rect slot="drawing" stroke="red" />
<rect slot="annotation" stroke="green" x="100" y="100" width="100" height="100" />
</annotator>

and <annotator> will be like this

<template>
<svg>

<foreignObject>
<slot></slot>
</foreignObject>

<g fill="black" transform="translate(100, 100)">
<slot name="annotation"></slot>
</g>

<slot name="drawing"></slot>

</svg>
</template>

After the drawing is done, the rectangle will be moved and fill it with black (or SVG texture for the more complex case). This can be done by clone the element in drawing slots to annotation slot.

const rect = SVG.adopt(this.$slots.drawing[0].elm)

rect.on('click', event => doDrawingLogic(event))

rect.on('drawfinish', event => {
// the reason to clone and move slot is so any logic in annotation slot can be applied
// the clone itself is to preserve `<rect stroke="red" slot="drawing" />` so that it can be referenced again
/** some logic here */
})

In that case there is need to make createElement accept DOMElement for duplicating or maybe also converting Node to VNode.

newRect = newRect.clone().animate().dmove(100, 100)

const clone = this.$createElement(newRect.node)
this.$slots.annotation.push(clone)

In above example, if createElement act as creating element then there will be 2 rectangles lol

What does the proposed API look like?

Basic usage

const div = document.getElementById("myDiv")

this.$createElement(div)

Clone and move from 1 slots to another slot

const clone = this.$createElement(this.$slots.mySlot[0].elm)

this.$slots.default.push(clone)

Issue 2:
Version

2.5.13

Reproduction link

https://jsfiddle.net/mmestas/ca7v214w/1/

Steps to reproduce

Type in 0-2 or any number value with a "-" after it.

What is expected?

That only numbers are allowed

What is actually happening?

the v.model.number with type=number allows for the input of characters other than numbers, specifically, "-".

My guess is this is allowed because of numbers like "-3" but this enables someone to enter (eg: 0-2) into the input.

I had to create special functions using v-on:keypress and v-on:keyup to validate the inputs to not receive something like "0-2"
Issue 1:
Causes issue if you try to run a cron job as the ES user. Issue on centos 6, package from the repo.

[centos@ip-10-233-237-10 ~]$ sudo su - elasticsearch -s /bin/bash
su: warning: cannot change directory to /home/elasticsearch: No such file or directory

-bash-4.1$ grep elastic /etc/passwd
elasticsearch:x:498:498:elasticsearch user:/home/elasticsearch:/sbin/nologin

-bash-4.1$ ls -l /home/
total 4
drwx------. 3 centos centos 4096 Nov 2 20:23 centos

Issue 2:
We have a entirely Windows-based environment with no options to setup dedicated Linux VMs for Elastic Stack. Elasticsearch comes with a well functioning service wrapper.

Unfortunately, Logstash and Kibana don't...

To be able to install Logstash and Kibana as a service on Windows one has to use some other service wrapper - like for example the Non-Sucking-Service-Manager (https://nssm.cc/), which in contrary of its name, really sucks! Reason: terminating the service won't always also terminate all Logstash/Kibana related processes. Meaning if you restart a service, instead of killing all processes from the old one and instantiating new ones, you have duplicated processes running.

This is not how I imagine running Logstash and Kibana for a big project setup...

Both should come with as-easy-installable services as Elasticsearch.
Issue 1:
Stack:

Fatal Exception: java.lang.IllegalStateException: Already released
at com.bumptech.glide.util.pool.StateVerifier$DefaultStateVerifier.throwIfRecycled(StateVerifier.java:44)
at com.bumptech.glide.request.SingleRequest.onResourceReady(SingleRequest.java:518)
at com.bumptech.glide.load.engine.EngineJob.handleResultOnMainThread(EngineJob.java:217)
at com.bumptech.glide.load.engine.EngineJob$MainThreadCallback.handleMessage(EngineJob.java:322)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5584)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
at dalvik.system.NativeStart.main(NativeStart.java)

Fabric

Issue 2:
Glide Version:

4.4.0

Integration libraries:

"com.squareup.okhttp3:okhttp:3.6.0",

"com.squareup.okhttp3:logging-interceptor:3.6.0",

"com.github.bumptech.glide:glide:4.4.0",

'com.github.bumptech.glide:compiler:4.4.0',

"com.github.bumptech.glide:okhttp3-integration:4.4.0",

Device/Android Version:

Huawei P6-T00 4.4.2

Issue details / Repro steps / Use case background:

I come across a crash when i quickly drag RecyclerView. I want to load original picture when load failed the thumbnail. if i delete "error(Glide.with(applicationContext).load(url))", it will be good running.

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

Glide.with(applicationContext)
.load(Utils.getImageCompress(url))
.error(Glide.with(applicationContext).load(url))
.into(mImageView);

Layout XML:

<com.xxxx.views.AsyncRoundedImageView
android:id="@id/imageview1"
android:layout_width="@dimen/_190px2dp"
android:layout_height="@dimen/_190px2dp"
android:layout_below="@id/imageview6"
android:layout_toRightOf="@id/imageview6"
android:src="@mipmap/ic_launcher"
app:riv_corner_radius="@dimen/_6px2dp" />

Stack trace / LogCat:

java.lang.IllegalStateException: Already released
at com.bumptech.glide.util.pool.StateVerifier$DefaultStateVerifier.throwIfRecycled(StateVerifier.java:44)
at com.bumptech.glide.request.SingleRequest.onLoadFailed(SingleRequest.java:595)
at com.bumptech.glide.request.SingleRequest.onLoadFailed(SingleRequest.java:591)
at com.bumptech.glide.load.engine.EngineJob.handleExceptionOnMainThread(EngineJob.java:292)
at com.bumptech.glide.load.engine.EngineJob$MainThreadCallback.handleMessage(EngineJob.java:325)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5253)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:939)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
at dalvik.system.NativeStart.main(Native Method)
Issue 1:
What is instance state, and why it exists

On Android, an Activity can be killed at any time by the system. This happens usually when Android needs memory when your Activity is not in the foreground, or because of a non-handled configuration change, such as a locale change.

To avoid the user having to restart what he did from scratch when Android killed the Activity, the system calls onSaveInstanceState(…) when the Activity is paused, where the app is supposed to save it's data in a Bundle, and passes the saved bundle in both onCreate(…) and onRestoreInstanceState(…) when the task is resumed if the activity has been killed by the system.

The issue about it in flutter

In the flutter apps I tried (Flutter Gallery, and the base project with the FAB tap counter), if I open enough apps to make Android kill the flutter app's Activity, all the state is lost when I come back to the flutter activity (while not having remove the task from recents).

Steps to Reproduce

Install Flutter Gallery

Open the device's settings, and in developer options, switch "Don't keep activities" on. (see the screenshot)

This will allow to simulate when Android kills Activities because it lacks memory and you're not in the foreground.

Open the Flutter Gallery app and go anywhere other than the main screen.

Go to the launcher by pressing the device's home button.

Press the overview button and return to Flutter Gallery. Here's the bug.

What's expected: The app is in the same state that where we left off, with untouched UI.

What happens: The activity is restarted from scratch, losing all the UI state, even really really long forms.

Issue 2:
When running apps on the ios simulator, flutter logs shows:

May 27 14:22:36 --- last message repeated 1 time ---
tapped: 17
May 27 14:22:36 --- last message repeated 1 time ---
tapped: 18
May 27 14:22:37 --- last message repeated 1 time ---
tapped: 19

when run from xcode, the last message repeated messages are not present, and you just see:

tapped: 17
tapped: 18
tapped: 19

we should filter the messages out (and perhaps duplicate the last message n-1 times?).
Issue 1:
Let's say we have a component Foo which expects to get a single child:

class Foo extends React.Component {
render () {
const {children} = this.props;
return React.Children.only (children);
}
}

This works as expected if I render <Foo><div/></Foo> since children then maps to a single child, and React.Children.only() will happily return the only child.

However, when using Foo like this, it throws:

class Bar extends React.Component {
render () {
const keys = ['a'];
return <Foo>{keys.map (k => <div key={k}/>)}</Foo>;
}
}

Now, Foo gets an array with one <div> element.

I was expecting React.Children.only() to also handle this case and return the only child in the array. But obviously, it does not.

Now, I have to write this instead:

class Foo extends React.Component {
render () {
const {children} = this.props;
return (Array.isArray (children)) ? children[0] : React.Children.only (children);
}
}

Is this by design? Did I miss something here?

Issue 2:
Children.only is intended to be called on an opaque Children object (eg. this.props.children). Best as I can tell, Children.map is intended to return an opaque Children object. But Children.only can't be called on the return value of Children.map, as per #4410 (comment)

It seems very reasonable to want to map your only child to another element (clone element, for instance), and then grab the only child from the map and use it to render. It is also very surprising for the identity operation to be passed into map, but the thing that comes out to not be semantically equivalent.

Issue demonstrated here: https://jsfiddle.net/9Ldyq5jk/4/
Issue 1:
net.TCPConn embeds net.conn, which has this:

// File sets the underlying os.File to blocking mode and returns a copy.
// It is the caller's responsibility to close f when finished.
// Closing c does not affect f, and closing f does not affect c.
//
// The returned os.File's file descriptor is different from the connection's.
// Attempting to change properties of the original using this duplicate
// may or may not have the desired effect.
func (c *conn) File() (f *os.File, err error) { return c.fd.dup() }

And elsewhere:

func (fd *netFD) dup() (f *os.File, err error) {
syscall.ForkLock.RLock()
ns, err := syscall.Dup(fd.sysfd)
if err != nil {
syscall.ForkLock.RUnlock()
return nil, &OpError{"dup", fd.net, fd.laddr, err}
}
syscall.CloseOnExec(ns)
syscall.ForkLock.RUnlock()

// We want blocking mode for the new fd, hence the double negative.
// This also puts the old fd into blocking mode, meaning that
// I/O will block the thread instead of letting us use the epoll server.
// Everything will still work, just with more threads.
if err = syscall.SetNonblock(ns, false); err != nil {
return nil, &OpError{"setnonblock", fd.net, fd.laddr, err}
}

return os.NewFile(uintptr(ns), fd.name()), nil
}

However, O_NONBLOCK is a property of the open file, not the fd.
It is shared between all fds referring to the same file, *even
across processes*.

http://cr.yp.to/unix/nonblock.html

Hence, this protection does not actually work. To add insult to injury, calling .File()
*actively* screws up the epoll by disabling O_NONBLOCK.

Here's a demonstration that setting O_NONBLOCK on a dup'd socket
affects the duplicates, also at http://play.golang.org/p/w9Fwqofegp though not runnable
in the playground:

package main

import (
"fmt"
"syscall"
)

// copy-paste from src/pkg/syscall/zsyscall_linux_amd64.go
func fcntl(fd int, cmd int, arg int) (val int, err error) {
r0, _, e1 := syscall.Syscall(syscall.SYS_FCNTL, uintptr(fd), uintptr(cmd), uintptr(arg))
val = int(r0)
if e1 != 0 {
err = e1
}
return
}

func isBlocking(fd int) bool {
val, err := fcntl(fd, syscall.F_GETFL, 0)
if err != nil {
panic(err)
}
return val&syscall.O_NONBLOCK == 0
}

func main() {
dupped, err := syscall.Dup(0)
if err != nil {
panic(err)
}
fmt.Printf("before: stdin is blocking: %v\n", isBlocking(0))
fmt.Printf("before: dupped is blocking: %v\n", isBlocking(dupped))
err = syscall.SetNonblock(0, true)
if err != nil {
panic(err)
}
fmt.Printf("after: stdin is blocking: %v\n", isBlocking(0))
fmt.Printf("after: dupped is blocking: %v\n", isBlocking(dupped))
}

Issue 2:
http://play.golang.org/p/icbjgkx71B

got:
gc produces the initialization order: c b a .

want:
The variables b and c are independent of each other, and b is declared before c, so the
order should be: b c a .

gccgo reports the order: b c a .

Based on spec clarification https://golang.org/cl/99020043 (issue #6703).
Issue 1:
I just replace "Cloud" to "目录" in bottom_navigation_demo.dart file, then build and run in my iphone6s, the chinese "目录" can't display. How fix it?

Issue 2:
Steps to Reproduce

The chinese text 中文 is garbled:

final Widget indexItem = new DrawerItem(
icon: new Icon(Icons.home),
child: new Row(
children: <Widget>[
new Flexible(child: new Text('中文')),
],
),
);

Logs

// ignore

Flutter Doctor

[✓] Flutter (on Mac OS, channel master)

• Flutter at /Users/kuloud/Dev/flutter

• Framework revision 9c1a24f (6 hours ago), 2016-11-18 21:22:32

• Engine revision cea5ed2

• Tools Dart version 1.21.0-dev.6.0

[✓] Android toolchain - develop for Android devices (Android SDK 25.0.0)

• Android SDK at /usr/local/opt/android-sdk/

• Platform android-25, build-tools 25.0.0

• ANDROID_HOME = /usr/local/opt/android-sdk/

• Java(TM) SE Runtime Environment (build 1.8.0_92-b14)

[✓] iOS toolchain - develop for iOS devices (Xcode 8.1)

• XCode at /Applications/Xcode.app/Contents/Developer

• Xcode 8.1, Build version 8B62

[✓] IntelliJ IDEA Ultimate Edition (version 2016.2.5)

• Dart plugin installed

• Flutter plugin installed

[✓] Connected devices

• iPhone 7 • 3DC11AAB-EF8F-4810-B104-0C756CC86323 • ios • iOS 10.1 (simulator)
Issue 1:
I noticed the sample for firebase_auth is based on just phone and goggle authentication. (I got the googleSignin working following your example).

Question

Will there be a Facebook and Twitter signin example from the firebase_auth team anytime soon -- since the firebase claims "supporting email and password accounts, phone auth, and Google, Twitter, Facebook, and GitHub login, and more" see https://firebase.google.com/products/auth/

Are there any plans to to provide this functionality (samples)?

Are there any plans to support Microsoft Azure/Azure B2C authentication? they are an OIDC provider; Azure B2C supports Google-Signin.

In the absence of (2) are there plans to support 'generic' OIDC providers? This will help us fill in he 'gaps'

Can you share some kind of a planned feature timeline with us?

BTW: the documentation on setting up/configuring the app was right-on. The only problem I had was in the integration with the Firebase Console. As you know we search the web for possible solutions. All my approaches failed until after the better part of an extended full day, I stumbled upon a codelabs 'tutorial' which pointed out that the SHA1 fingerprint for debugging must use the 'debug.keystore' in %USERINFO% (windows environment). Once I did that, my google Sign-in worked in seconds.

I suggest you either specify that on the setup page or provide a link to the relevant info. I know it might be obvious to you -- bust just that one sentence could have save me over 10 hours..

Issue 2:
Add an absolute path to assets in flutter.yaml.

Try to build (any flavor works).

Error.

% flutter build flx
Error: unable to locate asset entry in flutter.yaml: "/my/valid/absolute/path.png".
Error building build/app.flx: 1