WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
0 as input for min Y AXIS BOUNDS in Multiple Line Charts gets ignored, everything else works though (e.g. 5, 1000, -5).

Selecting Y BOUNDS does nothing.

Didn't find any open issues regarding this. If I missed it and this is a duplicate please disregard and close the issue.

Expected results

With 0 as input in min Y AXIS BOUNDS the Y axis in the visualization should start at 0.

With Y BOUNDS deselected the min and max value shouldn't necessarily be displayed.

Actual results

0 as input gets completely ignored and has the same effect as leaving Min empty.

No matter of selected or not, min and max values always get displayed, no matter the values entered.

Environment

browser: Firefox 89.0.2 on Ubuntu

superset version: apache/superset:1.2.0

Issue 2:
Currently, many German translations are missing or wrong.

I'm planning to provide a PR contributing PO/JSON files for the de locale. Mimicking the good practice of @audour who reported likewise for the French locale in #16550, this issues report serves as announcement so other contributors do not duplicate efforts (or report if they are already working on the same), like #16550 did for the French locale.

However, before requesting a PR, I have some questions regarding this contribution:

I planed to work on the master branch, while #16868 is based on 1.3.0 version. What do you prefer?

#16868 did not include an updated pot file. I did not check yet, but I assume it's up-to-date for 1.3.0.(?). In case I'd submit a PR for master: should it contain the updated pot file and all po/jsonfiles for all locales or just the de locale I'm working on?

There a couple of messages, which are not localized yet (e.g. View all, Viewed in the CRUD welcome tables, See all in EmptyState.tsx, settings in the MenuRight.tsx. For those, I'd provide a preceding PR, if I base my contributions on master.
Issue 1:
Julia needs at least some of the usual file/directory manipulation functions. Something like stat, for sure, as well as readdir, maybe glob.

Also, this is a bug:

julia> is_file_readable(".")
true

Issue 2:
After PR #30046 was merged, in C code including julia.h, I am now seeing this warning:

In file included from /home/travis/build/gap-system/gap/julia-7920a2a1fb/include/julia/ios.h:7:0,
from /home/travis/build/gap-system/gap/julia-7920a2a1fb/include/julia/libsupport.h:13,
from /home/travis/build/gap-system/gap/julia-7920a2a1fb/include/julia/julia.h:12,
from src/gap.c:54:
/home/travis/build/gap-system/gap/julia-7920a2a1fb/include/julia/uv.h:1472:15: error: redundant redeclaration of ‘uv_fs_lchown’ [-Werror=redundant-decls]
UV_EXTERN int uv_fs_lchown(uv_loop_t* loop,
^
/home/travis/build/gap-system/gap/julia-7920a2a1fb/include/julia/uv.h:1466:15: note: previous declaration of ‘uv_fs_lchown’ was here
UV_EXTERN int uv_fs_lchown(uv_loop_t* loop,
^

Indeed, the declaration appears twice in a row. I'd submit a PR to https://github.com/JuliaLang/libuv (assuming that is the right repository?), but I have a hard time figuring out which branch there is relevant -- there are 32 branches on that repository with various unclear names ("382" is my "favorite" ;-) ). The default branch is julia-uv2, but that one was last updated in July.
Issue 1:
matplotlib.collections.PatchCollection.set_visible doesn't seem to work.

I was unable to set the arrows of a pyplot.streamplot invisible.

Issue 2:
As discussed in this SO question and this mailing list thread, PatchCollection cannot handle FancyArrowPatch patches, as the paths for FancyArrowPatch can't be evaluated during PatchCollection creation. It appears that an issue was never created for this... please let me know if I'm being stupid and not noticing one.

As such, the StreamplotSet.arrows PatchCollection appears to be entirely useless. In fact, streamplot() doesn't even add the collection to the axis, instead adding the individual patches, and then creating an apparently unused PatchCollection to return. This means that things that should work, like, for a StreamplotSet s, doing s.arrows.set_visible(False), will not work, nor, to my knowledge, will doing anything with StreamplotSet.arrows have the desired result.

As discussed in the mailing list thread, one potential solution to this would be to create a FancyArrowPatchCollection class especially for FancyArrowPatch, and then use this for streamplot; someone in the thread also gives a rudimentary class. If I have time, I might try to implement this, but does anyone have any better ideas?
Issue 1:
Current Behavior

Files under directories already added to files of package.json cannot be excluded by adding them to files (like !some_directory). Up to npm 6.14.11 it was possible to exclude, but from npm 7.5.2 it is no longer possible.

package.json, src/index.js, src/__tests__/indexTest.js are added to the npm package.

❯ npm pack --dry-run
...
npm notice === Tarball Contents ===
npm notice 97B package.json
npm notice 0B src/__tests__/indexTest.js
npm notice 21B src/index.js
npm notice === Tarball Details ===
...
npm notice total files: 3
...

Expected Behavior

package.json, src/index.js are added to the npm package. (use npm 6.14.11)

❯ npm pack --dry-run
...
npm notice === Tarball Contents ===
npm notice 21B src/index.js
npm notice 97B package.json
npm notice === Tarball Details ===
...
npm notice total files: 2
...

Steps to Reproduce

Create a package.json

{
"name": "some-package",
"files": [
"src",
"!__tests__"
],
"version": "0.0.0"
}

Create the following file structure:

.
└── src
├── index.js
└── __tests__
└── indexTest.js

run npm pack --dry-run

Other

By using wildcards, you can exclude them in both npm v6/v7. (ex. !__tests__ -> !**/__tests__)

Environment:

OS: macOS 11.1

Node: 12.18.2

npm: 7.5.2

Issue 2:
Current Behavior:

npm publish --dry-run includes __tests__ and __mocks__

package.json:

"files": [
"dist/**",
"!__mocks__",
"!__tests__",
"package.json",
"README.md"
]

Expected Behavior:

should exclude __tests__ and __mocks__

works with npm v6.14.9.

Steps To Reproduce:

see above

Environment:

OS: MacOs Catalina v10.15.7

Node: 15.5.0

npm: 7.3.0
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.4.1

Operating System version: MacBook Pro

Java version: 1.8

Steps to reproduce this issue

telnet

➜ ~ telnet 127.0.0.1 20880
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
dubbo>

invoke

dubbo>invoke org.apache.dubbo.demo.DemoService.sayHello("lios")
Unsupported command: invoke

help

dubbo>help
Please input "help [command]" show detail.
status [-l] - Show status.
clear [lines] - Clear screen.
log level - Change log level or show log
help [command] - Show help.
exit - Exit the telnet.
dubbo>

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.1

Operating System version: MacOS Mojave

Java version: 8

Steps to reproduce this issue

@Test
public void testAccuracy() throws Exception {
statItem = new StatItem("test", 5, 60_000L);
assertEquals(true, statItem.isAllowable());
assertEquals(true, statItem.isAllowable());
assertEquals(true, statItem.isAllowable());
assertEquals(true, statItem.isAllowable());
assertEquals(true, statItem.isAllowable());
//Must block the 6th item
assertEquals(false, statItem.isAllowable());
}

Expected Result

The last assertEquals should pass. Because according to the JavaDoc of TPSLimiter

if tps for a method m1 is 5 for a minute then if 6th call is made within the span of 1 minute then 6th should not be allowed isAllowable will return false.

Actual Result

The last assertEquals failed, because statItem.isAllowable() lets 1 more request pass for a period.
Issue 1:
Original ticket http://projects.scipy.org/scipy/ticket/1321 on 2010-10-28 by trac user commandant2k, assigned to @wnbell.

The FORTRAN reverse communication routines for iterative solution of linear systems in the scipy.sparse.linalg.isolve module each depend on the BLAS routines cdotc and zdotc to compute complex inner products in single and double precision, respectively. On Mac OS X installations that use the Accelerate or vecLib frameworks for BLAS and LAPACK, these routines are known to have issues when called from FORTRAN. The cause is an ABI mismatch between the functions compiled into the Mac OS X frameworks and the executable code produced by gfortran.

This problem exists in other modules of scipy, especially ARPACK in scipy.sparse.linalg.eigen. A workaround was implemented that defines local wrapper functions to call cblas_cdotc_sub and cblas_zdotc_sub, which provide subroutine versions of the BLAS functions that avoid the ABI issue. However, this accommodation was not made in scipy.sparse.linalg.isolve.

Attached is a patch to SVN revision 6856 that adds the wrapper functions to the isolve module in the same fashion as the wrappers from scipy.lib.blas and scipy.sparse.linalg.eigen. If neither the Accelerate nor vecLib frameworks are used, a dummy wrapper is in place to directly call the BLAS functions. The FORTRAN reverse communication routines have been modified to call the wrapper routine rather than the BLAS routines.

The patch has been tested on scipy 0.8.0 and SVN 4104bf3 on an Intel Macintosh. More testing should be done on PPC Macs and non-Macintosh systems to confirm that the dummy wrapper behaves as expected on other platforms.

Observe that the issues with cdotc and zdotc are only observed when attempting to solve linear systems involving single- or double-precision complex unknowns; for real-valued systems, the module does not invoke the problematic routines.

Issue 2:
When I compile scipy 1.7.0, an error occured that says "ModuleNotFoundError: No module named 'pythran'". Then I execute pip install pythran, something confusing happened.

17 packages been installed:

pythran decorator beniget ply networkx gast six numpy pandas scipy matplotlib python-dateutil pytz cycler kiwisolver pillow pyparsing

Even the scipy is in the list, and other scientific packages include numpy pandas matplotlib pillow.

First, is it a cyclic dependency for scipy?

Second, pythran is just a compiler to efficiently compile scientific programs, why these packages are installed as its dependencies.

Third, if it is possible to compile scipy without pythran.

environment:

Python: 3.9.2

Pip: 21.1.3

numpy: 1.20.1

Cython: 0.29.21

pybind11: 2.6.2
Issue 1:
by richard@bucker.net:

When using GOLANG's encoding for JSON and the datatype is Time. "omitempty"
does not work. It always emits the default value '0001-01-01 00:00:00 +0000 UTC'. This
is not working as expected(http://play.golang.org/p/vHLyeMwwTX).

type Stuff struct {
Cloned time.Time `json:"cloned,omitempty"`
Expiration time.Time `json:"expiration,omitempty"`
}

What is the expected output?

-I expected the default value of time.Time to be empty.

What do you see instead?

0001-01-01 00:00:00 +0000 UTC

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

6

Which operating system are you using?

Win

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

go1.0.3

Please provide any additional information below.

Issue 2:
It is common to use go/types is as part of a go generate command

or other command line tool to introspect a Go package.

The go tool goes to some lengths to ensure that whenever

you operate on a package, it builds the source for that

package into object form before using it, so you don't

end up using symbol information that's out of date with respect

to the source.

When using go/types from a command line tool, you

don't have that luxury, and it's not necessarily appropriate

to call "go install" automatically.

I believe that a better way would be for the default

importer to use the object file data only if it's newer

than the source files, otherwise fall back to using the

source directly. Or at least it would be nice to have

that option, so that it's easy to make go generate

utilities operate on the up to date code.

I hope this could be considered before Go 1.5 as

we won't be able to change this behaviour after then.
Issue 1:
I'm having a hard time figuring a few things out as I'm not the world's best programmer. I often don't know if I've done something wrong in Python or something specific to Scrapy, and there aren't a great deal of beginner level examples out there.

I'm looking for somewhere I could ask a few dumb questions, and I expect that Github isn't the best place. Ideally I'm looking for some kind of chat room where I can informally ask things and anyone kind enough could point out what likely very stupid and small thing I'm doing wrong. I only need a few tips / hints when I get stuck. I've already asked the IRC channel but no responses there.

Maybe there's a Discord / Slack server somewhere I could ask? There was a reddit post the other day about this, but it seems there isn't one. Perhaps one could be created?

Sorry if it's not appropriate to ask about this kind of thing here but I don't know where else to ask. Please feel free to remove this / tell me to go away. Thanks for any help!

Issue 2:
Description

I'm trying to export scrapy crawl results to JSON Lines format to the file with extension .jsonl (this is requirement of the external system in our case) and ovewrite the file for multiple executions.

As I understand, only .jl and .jsonlines extensions are supported now and .jsonl was discussed in #4848 but not supported yet.

So in this case I tried to use -O argument with --output-format for scrapy crawl command.

Steps to Reproduce

scrapy crawl -O <filename>.jsonl --output-format jl <spider_name>

OR

scrapy crawl -O <filename>.jsonl --output-format jsonlines <spider_name>

Expected behavior: File is ovewritten with parsed content.

Actual behavior: Parsed content is appended to the end of existing file.

Reproduces how often: 100%

Versions

Scrapy : 2.6.1

lxml : 4.9.0.0

libxml2 : 2.9.14

cssselect : 1.1.0

parsel : 1.6.0

w3lib : 1.22.0

Twisted : 22.4.0

Python : 3.10.4 (main, Jun 4 2022, 14:29:37) [GCC 9.4.0]

pyOpenSSL : 22.0.0 (OpenSSL 3.0.3 3 May 2022)

cryptography : 37.0.2

Platform : Linux-5.13.0-44-generic-x86_64-with-glibc2.31

Additional context

If I use scrapy crawl -O <filename>.jl <spider_name> or scrapy crawl -O <filename>.jsonlines <spider_name>, file is overwritten successfully, but it seems that the case above is expected to have the same behaviour.
Issue 1:
Environment

Windows 10

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable):

Any other software?

No

Steps to reproduce

Expected behavior

Actual behavior

Issue 2:
When using terminal, its a common pattern to frequently switch between 2 or more different shells, it will be will be really useful if these frequently used shells appear on the context menu when u right click from the pinned terminal on the taskbar.

This will make the user experience much better, for example: if I wanted to the access a frequently used shell thats not the default, I could just right click the pinned terminal app and select it instead of opening terminal>clicking the down arrow>selecting shell.
Issue 1:
Consider example.

I have default edit_form.html.twig (for example for crud operations in admin). But I need to customize form for special case. I created custom_edit_form.html.twig and trying to redefine form_widget block. But this example doesn't work - I still see whole form, instead of 'blablabla'.

Is it bug?

custom_edit_form.html.twig

{% extends '::edit_form.html.twig' %}

{% form_theme form _self %}

{% block form_widget %}
blablabla
{% endblock %}

edit_form.html.twig

{% extends '::base.html.twig' %}

{% form_theme form 'form_div_layout.html.twig' %}

{% block body %}
{{ form_widget(form) }}
{% endblock %}

base.html.twig:

{% block body %}{% endblock %}

Issue 2:
When extending a template, if the parent uses the form_theme tag and the child too, the form template wil always be the one defined in the parent template.

{# parent.twig #}
{% form_theme form _self %}
{% block type_widget %}
parent
{% endblock %}

{# child.twig #}
{% extends 'parent.twig' %}

{% form_theme form _self %}
{% block type_widget %}
child
{% endblock %}

Is it expected? And is there a workaround for this?
Issue 1:
Environment info

transformers version: 4.11.0.dev0

Platform: Linux-5.4.0-1055-azure-x86_64-with-glibc2.10

Python version: 3.8.1

PyTorch version (GPU?):

Tensorflow version (GPU?): 2.5.0 (Yes)

Using GPU in script?: Yes

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

Who can help:

@patrickvonplaten, @patil-suraj, @RocketKnight

Models: facebook/bart

datasets: xsum

the official example scripts: (give details below)

run_summarization.py

relative path: examples/tensorflow/summarization

Steps to reproduce the behavior: (Note that --max_train_samples is optional)

python run_summarization.py --model_name_or_path facebook/bart-base --dataset_name xsum --dataset_config "3.0.0" --output_dir /tmp/tst-summarization --per_device_train_batch_size 4 --per_device_eval_batch_size 4 --num_train_epochs 3 --do_train --do_eval --max_train_samples 100

Error message

INFO - main - Evaluation...

0%| | 0/2833 [00:01<?, ?it/s]

Traceback (most recent call last):

File "run_summarization.py", line 663, in

main()

File "run_summarization.py", line 639, in main

generated_tokens = model.generate(**batch)

File "/mnt/batch/tasks/shared/LS_root/mounts/clusters/pbodigut1/code/Users/pbodigut/transformers/v-4.10/transformers/src/transformers/generation_tf_utils.py", line 736, in generate

output = self._generate_beam_search(

File "/mnt/batch/tasks/shared/LS_root/mounts/clusters/pbodigut1/code/Users/pbodigut/transformers/v-4.10/transformers/src/transformers/generation_tf_utils.py", line 1102, in _generate_beam_search

model_inputs = self.prepare_inputs_for_generation(

TypeError: prepare_inputs_for_generation() got multiple values for argument 'decoder_input_ids'

Expected behavior

Successfully run the evaluation step.

Issue 2:
I have finetuned a facebook/bart-large model following the example here: https://github.com/huggingface/transformers/blob/master/examples/summarization/finetune.py

As an output I got a checkpointcheckpoint_ckpt_epoch_0.ckpt file. How can I create a BartForConditionalGeneration instance with updated weights?
Issue 1:
ℹ Computer information

PowerToys version: 0.21.1

PowerToy Utility: Keyboard Manager

Running PowerToys as Admin: Yes

Windows build number: 18363.1082

📝 Provide detailed reproduction steps (if any)

Map any key to the Sleep button

Click "Okay"

Try pressing the new "Sleep" key

✔️ Expected result

Pressing the remapped button should trigger the sleep command, putting the computer to sleep.

❌ Actual result

Nothing. When I press the new "Sleep" key, nothing happens. The computer stays powered on. The display doesn't turn off. Nothing.

My problem is not like other problems with remapping to the Sleep key, where the process itself fails, and the key isn't remapped. The key is remapping for me; it's just that the computer isn't responding to this new Sleep key, the way it does to the actual Sleep key. I also tried remapping to different keys, with no success.

📷 Screenshots

Issue 2:
ℹ Computer information

Windows build number: 18362.959

PowerToys version: 0.19.2

PowerToy module: Keyboard Manager

📝 Provide detailed reproduction steps (if any)

Click "Remap a key"

Select Key on left side.

Select "Sleep" on right side.

✔️ Expected result

Pressing the remapped key puts Windows to sleep.

❌ Actual result

Powertoys says "The following keys are unassigned and you won't be able to use them:", followed by the remapped key name.

📷 Screenshots
Issue 1:
Bug summary

Hello, I have tried to run this code I have found on the internet : https://your-article-is-too-long.tumblr.com/post/625544391640203264/how-does-fire-spread

I have these errors. What has gone wrong ?

Many thanks

Issue 2:
Bug summary

In 3.5.0 if you do:

import matplotlib.pyplot as plt
import numpy as np
import matplotlib as mpl

fig, ax = plt.subplots()
norm = mpl.colors.BoundaryNorm(np.linspace(-4, 4, 5), 256)
X = np.random.randn(10, 10)
pc = ax.imshow(X, cmap='RdBu_r', norm=norm)

and mouse over the image, it crashes with

File "/Users/jklymak/matplotlib/lib/matplotlib/artist.py", line 1282, in format_cursor_data
neighbors = self.norm.inverse(
File "/Users/jklymak/matplotlib/lib/matplotlib/colors.py", line 1829, in inverse
raise ValueError("BoundaryNorm is not invertible")
ValueError: BoundaryNorm is not invertible

and interaction stops.

Not sure if we should have a special check here, a try-except, or actually just make BoundaryNorm approximately invertible.

Matplotlib Version

main 3.5.0
Issue 1:
micro_vision and micro_speech examples are showing following error on invoking makefile to build

/bin/sh: 1: [[: not found

My build command is:

make -f tensorflow/lite/experimental/micro/tools/make/Makefile TARGET=linux micro_vision

The patch to fix this issue is:

diff --git a/tensorflow/lite/experimental/micro/tools/make/Makefile b/tensorflow/lite/experimental/micro/tools/make/Makefile
index d2ed2e6234..2779530d02 100644
--- a/tensorflow/lite/experimental/micro/tools/make/Makefile
+++ b/tensorflow/lite/experimental/micro/tools/make/Makefile
@@ -1,3 +1,4 @@
+SHELL := /bin/bash

ifneq (3.82,$(firstword $(sort $(MAKE_VERSION) 3.82)))
$(error "Requires make version 3.82 or later (current is $(MAKE_VERSION))")

Tensorflow repo info:

commit 92fc3d02fd3cd086e17659842bfee1bbd62d1838 (HEAD -> master)
Author: Tiezhen WANG <wangtz@google.com>
Date: Thu Sep 5 07:10:01 2019 -0700

TFLM: Better format for debug log in `screen`

Otherwise, it's showing up like
msg1
msg2
msg3

PiperOrigin-RevId: 267365236

OS Platform and Distribution: Linux Ubuntu 18.04.3 LTS

GCC/Compiler version: 7.3.1

Issue 2:
when i follow the [guide] to demonstrate the absolute basics of using TensorFlow Lite for Microcontrollers.i create a folder for mbed,but i get this error:

make:*** no rule to make target "tensorflow/lite/experimental/micro/tools/make/gen/mbed_cortex-m4/prj/hello_world/mbed/tensorflow/lite/experimental/micro/tools/make/downloads/CMSIS_ext/arm_cmplx_mag_squared_q10p6.c",needed by "generate_hello_world_mbed_project"

(https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/experimental/micro/examples/hello_world)

OS Platform and Distribution (Linux Ubuntu 18.04):
Issue 1:
Environment

PowerToys version: 1891bd4

PowerToy module for which you are reporting the bug (if applicable): Settings

# Steps to reproduce
- Remove settings folder
- Run Powertoys
- Open PowerRename settings

# Expected behavior
- "Maximum number of items.." caption visiable and has default value 10

# Actual behavior
- "Maximum number of items.." caption not visiable and has value 0

Issue 2:
Running PowerToys without admin rights being turned on, restarting the PC, whilist it is running in the background causes an exception in the system.

Steps to reproduce the issue:

Unselect "Run As Admin" mode.

Untick "Run at startup"

Restart the PC.

-Start PowerToys. Hit Alt + Space to open the Search option. Press Alt + Space again to close it.

-Go to Start Menu - Press Restart. There you go. The exception will show as an error preventing the shutdown.

Expected behaviour:

-Well, not this...

Here's a picture of how it looks like:

https://imgur.com/gallery/D7KCeQv
Issue 1:
升级到 v2.1.6 版本后，出下如下异常。

发现是定义vue组件代码中有类似如下的代码：

exports default {
data {
return {}
},
methods: {
_update () {
// doSomethings()
}
}
}

Issue 2:
What problem does this feature solve?

When passing props to a component, the following pattern is very common,

<my-component :propA="propA" :propB="propB" />

I am proposing that when the prop name is the same as the variable name being passed to it, that the following more concise syntax be applicable,

<my-component :propA :propB :propC />

This would mimic ES6's object property declaring shorthands (like here http://www.benmvp.com/learning-es6-enhanced-object-literals/)

What does the proposed API look like?

<my-component :propA :propB :propC />

instead of

<my-component :propA="propA" :propB="propB" />