WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

module clustering/consul_acl

ANSIBLE VERSION

ansible 2.2.1.0

CONFIGURATION

nothing special - bug works out of the box

OS / ENVIRONMENT

Linux / amd64

SUMMARY

The consul_acl module is missing some rule types to set acls:

Valid rule types are: key, agent, service, node, event, query (and some more)

Currently the only types supported in the module are ['key', 'service', 'event', 'query']

Whenever the cluster has one or more acls that reference another type (e.g. "node"), the consul_acl modules exits with error because it cannot parse the acl list returned from the server.

Furthermore it is not possible to set acls with rule types not in the list above.

Documentation: https://www.consul.io/docs/guides/acl.html#rule-specification

STEPS TO REPRODUCE

Task to reproduce - this acl is directly taken from the Consul ACL guide to setup new ACLs.

- name: "Create consul agent token acl"
consul_acl:
mgmt_token: "{{consul_acl_master_token}}"
name: "agent token acl"
token: "{{consul_acl_agent_token}}"
rules:
- node: ""
policy: write
- service: ""
policy: read

Code to change in this module to work as exprected:

Expand RULE_TYPES list in line 252 (allows reading from server)

Add additional if ... elif ... lines for the missing rule types in lines 239-246 (for writing new rules)

EXPECTED RESULTS

The consul_acl module should not exit with an error if it retrieves allowed rule descriptions.

If i receives unknown rules from the server it may write an warning but should not exit.

The consul_acl module should allow all type of rules allowed for consul, namely:

agent, event, key, node, query, service, session

The following rule types have an different syntax, therefor may be added later for setting via consul_acl, but should not produce an error on reading from server:

operator, keyring

ACTUAL RESULTS

Result if roles can be read from server, but try to set an rule with e.g. "node" (example from above):

TASK [consul : Create consul agent token acl] **********************************
fatal: [dev.server.com]: FAILED! => {"changed": false, "failed": true, "msg": "a rule requires a key/service/event or query and a policy."}

If server has an rule with "node" already configured:

TASK [consul : Create consul agent token acl] **********************************
fatal: [dev.server.com]: FAILED! => {"changed": false, "failed": true, "msg": "Could not load rule list from retrieved rule data ********, u'node'"}

Issue 2:
ISSUE TYPE

Feature Idea

COMPONENT NAME

consul_acl (http://docs.ansible.com/ansible/consul_acl_module.html)

ANSIBLE VERSION

ansible 2.2.0.0

SUMMARY

Add support for the new ACL types keyring and operator which Consul introduced in 0.6.0 and 0.7.0 respectively.

https://github.com/hashicorp/consul/blob/master/acl/policy.go#L23-L24

STEPS TO REPRODUCE

Rule types keyring and operator, no expanding required just a policy.

- consul_acl:
rules:
- keyring: read
- operator: write
Issue 1:
Describe your issue.

The spdiags creation function allows the diagonal offsets to be greater than the matrix shape, which results in an empty array in dia format with a negative number of non-zero values:

>>> m = n = 3 # Square, 3x3
>>> k = -5 # diagonal offset
>>> data = np.ones(m)
>>> a = sp.sparse.spdiags(data, diags=k, m=m, n=n)
>>> a
<3x3 sparse matrix of type '<class 'numpy.float64'>'
with -2 stored elements (1 diagonals) in DIAgonal format>
>>> a.toarray() # 3x3 array of zeros
array([[0., 0., 0.],
[0., 0., 0.],
[0., 0., 0.]])

Both identity and eye are implemented using spdiags (at least for some formats), which means that this behavior extends to those functions as well.

This behavior is not strictly incorrect, but is likely not what users want nor expect. diags, which the documentation notes is preferred over spdiags, explicitly validates that the diagonal offset is less than the minimum dimension of the requested shape:

>>> sp.sparse.diags([data], offsets=[k], shape=(m, n))
Traceback (most recent call last)
...
ValueError: Offset -5 (index 0) out of bounds

Proposed change

I propose to modify eye and identity to use diags instead of spdiags. This will change behavior so that eye and identity will raise when the diagonal offset is greater than the shape.

Reproducing Code Example

See above

Error message

N/A

SciPy/NumPy/Python version and system information

1.11.0.dev0+2204.675b17e 1.24.3 sys.version_info(major=3, minor=11, micro=3, releaselevel='final', serial=0)
Build Dependencies:
blas:
detection method: pkgconfig
found: true
include directory: /usr/include
lib directory: /usr/lib
name: openblas
openblas configuration: USE_64BITINT= DYNAMIC_ARCH= DYNAMIC_OLDER= NO_CBLAS= NO_LAPACK=0
NO_LAPACKE= NO_AFFINITY=1 USE_OPENMP=1 HASWELL MAX_THREADS=8
pc file directory: /usr/lib/pkgconfig
version: 0.3.21
lapack:
detection method: pkgconfig
found: true
include directory: /usr/include
lib directory: /usr/lib
name: openblas
openblas configuration: USE_64BITINT= DYNAMIC_ARCH= DYNAMIC_OLDER= NO_CBLAS= NO_LAPACK=0
NO_LAPACKE= NO_AFFINITY=1 USE_OPENMP=1 HASWELL MAX_THREADS=8
pc file directory: /usr/lib/pkgconfig
version: 0.3.21
pybind11:
detection method: config-tool
include directory: unknown
name: pybind11
version: 2.10.4
Compilers:
c:
commands: ccache, cc
linker: ld.bfd
name: gcc
version: 13.1.1
c++:
commands: ccache, c++
linker: ld.bfd
name: gcc
version: 13.1.1
cython:
commands: cython
linker: cython
name: cython
version: 0.29.35
fortran:
commands: gfortran
linker: ld.bfd
name: gcc
version: 13.1.1
pythran:
include directory: ../../../.virtualenvs/sp-dev/lib/python3.11/site-packages/pythran
version: 0.13.1
Machine Information:
build:
cpu: x86_64
endian: little
family: x86_64
system: linux
cross-compiled: false
host:
cpu: x86_64
endian: little
family: x86_64
system: linux
Python Information:
path: /home/ross/.virtualenvs/sp-dev/bin/python
version: '3.11'

Issue 2:
Deprecated in documentation only since #11304

CC @ilayn
Issue 1:
Environment

Windows build number: Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
Windows Terminal version git commit 2d0608d8c0f9d72f12329e8c2152a90f0335d3ea

Any other software?

Steps to reproduce

Launch freshly built and deployed terminal

Expected behavior

uses existing settings, no error box.

Actual behavior

produces error box

Failed to load settings

Setting could not be reloaded from file. Check for syntax errors including trailing commas.

Temporarily using the Windows Terminal default settings.

Additional Information

Settings are unchanged from previous build from git on 9/9/2019

Opening settings and resaving file does nothing but make it reproduce the error dialog.

Using Visual Studio 2019 as the editor for the settings JSON. Says no issues found, so my settings are syntactically valid.

Issue 2:
Description of the new feature/enhancement

With some terminal background colors, spotting witch tab is active is a bit tricky:

In this example, with only 2 tabs open, with the same name, it is confusing.

Proposed technical implementation details (optional)

The active tab background/foreground colors should match the terminal's profile background/foreground colors:
Issue 1:
These types should print the same (since the type parameters are type-equal), if the datatype cache (and new hash computation) is working correctly:

julia> Val{Tuple{Any}}
Val{Tuple{Any}}

julia> Val{Tuple{T} where T}
Val{Tuple{T} where T}

julia> Val{Tuple{Float64,Int64,Int64}}
Val{Tuple{Float64,Int64,Int64}}

julia> Val{Tuple{Float64,Vararg{T,2}} where T<:Int64}
Val{Tuple{Float64,Vararg{T,2}} where T<:Int64}

julia> Val{Tuple{Float64,T,T} where T<:Int64}
Val{Tuple{Float64,Vararg{T,2}} where T<:Int64}

This is actually an improvement from before the new hash computation code (the last one was previously also creating a unique type). Found these by some quick fuzzing, so I'm pleased to see there weren't more!

Issue 2:
Internally in the system, we rely on the fact that concrete types are comparable by pointers. However, it is possible to create type signatures that are == to concrete types, but are not normalized to the corresponding type, causing all sorts of problems. Example:

julia> f(x::Int8, y::Int8) = 1
f (generic function with 1 method)

julia> f(x::T, y::T) where {T <: Int8} = 2
julia-debug: /home/keno/julia-comparison/src/gf.c:1105: check_ambiguous_visitor: Assertion `closure->after' failed.
Issue 1:
Description of the new feature/enhancement

Add tab renaming feature.

Proposed technical implementation details (optional)

Allow End-User to rename the tabs. This feature is required when a user opens more than 2 tabs and the path of PWD is large. Since the tab name is as same as PWD hence user unable to see the other tabs. PFA the snippet. In the snippet, I have opened 4 tabs but only 3 tabs are visible because of PWD path length.

Issue 2:
Tabs are very useful feature, but as you open more and more tabs, it becomes difficult and confusing to keep track of which tab is for which purpose unless you the tab. It will be better if we can rename the Tab and give it a friendly name.

The way we can implement the tab renaming from functional point of view is:

1 - Right click -> Rename

Right click on a tab which user wants to rename, this will open up context menu and from context Menu, user will select Rename.

Title of the tab will change into a TextBox, and user will be able to write Tab name, and on hitting enter key on the keyboard or clicking anywhere outside the textbox will apply the tab title. If user presses ESC key, we will discard the changes.

2 - Double click - tab title

Title of the tab will change into a TextBox, and user will be able to write Tab name, and on hitting enter key on the keyboard or clicking anywhere outside the textbox will apply the tab title. If user presses ESC key, we will discard the changes.

Final result will look like:
Issue 1:
Summary of the new feature/enhancement

Proposed technical implementation details (optional)

The powertools Run only works when I am on desktop it would be good if it works over every application

it will help in opening application faster

Issue 2:
Environment

Windows build number: Version 10.0.18363.900
PowerToys version:
PowerToy module for which you are reporting the bug (if applicable): FanzyZones

Steps to reproduce

With FanzyZones, and the global hotkey for opening it enabled. Open fancyzones using the hotkey.

Expected behavior

The layout selection window to appear instantly (< 250 ms) so that I jump between different layouts with minimal friction.

Actual behavior

The layout selection window takes most of a second to appear. This is annoying when switching between several different layouts, something I did immediately when I first started using FancyZones and it really hurt my impression of quality in the app since it (arguably) should be very light weight, or at least feel that way when using it.

I've attached a screenshot of an ETW trace open in WPA (if needed I could capture another trace and provide that directly).

I've zoomed the trace so it begins as I complete pressing the global hotkey and ends when the layout selection window gains focus. In all it takes just under 800ms, which, to me, is long enough to be noticeably annoying.

I haven't dug too too deeply into the codebase yet, but my best guess base at where the time is being spent is as follows (assuming I'm reading the ETW trace correctly):

The selection window process, FancyZonesEditor is taking around 300ms to start up.

Before showing the dialog, graphics resources for the transparent overlay are allocated, taking around 400ms. I have an ultrawide monitor, so it may be taking longer to allocate a larger render target

Screenshots
Issue 1:
The focus is maintained, but for some reason, I cannot see the text cursor when I switch namespaces, then go back to Atom. This means I have no idea where in the text I am...

Issue 2:
I'm using Atom version: 0.121.0 for Linux(Manjaro), this problem wasn't happening on the previous version.

I tried to run atom --safe but the problem persist.

The cursor is gone but I still have the line highlighted.

These are the steps I follow to reproduce the error:

Change windows with ALT+TAB and set the focus to this other window, also using ALT+TAB go back to Atom, the cursor is gone.

If I make this process but instead of ALT+TAB I click on the window button on my panel, it works because on each click I'm also setting the focus to the window.
Issue 1:
Example

<Link href="/posts/[id]" as="/posts/article123">
<a>Go to post</a>
</Link>

Source: https://github.com/akylkb/bug-nextjs-css0

Live: https://bug-nextjs-css0.akylkb.now.sh/

Describe the bug

Everything works in developer mode

Doesn't work in production

dependencies

@zeit/next-css: 1.0.1

next: 9.1.3

react: 16.11.0

react-dom: 16.11.0

Issue 2:
This is bug report

Link does not work with css-module imported. That happens when page with Link has no css, and linked page has. No errors in console, so im not sure about reasons, but there is minimal repo to reproduce:

https://github.com/standy/next-css-error

Bug appears in next@7.0.0 + next-css@1.0.1,

Older next@6.1.2 + next-css@0.2.0 works fine
Issue 1:
ISSUE TYPE

Bug Report

COMPONENT NAME

core, I believe

ANSIBLE VERSION

ansible 2.3.2.0
config file =
configured module search path = Default w/o overrides
python version = 2.7.13 (default, Jul 19 2017, 12:34:40) [GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)]

CONFIGURATION

OS / ENVIRONMENT

macOS 10.12 -> CentOS 7.x

SUMMARY

STEPS TO REPRODUCE

Try to override a variable that is declared in group_vars/all.yml by a server-specific group_vars file.

group_vars/all.yml

some_option: 1

group_vars/myrole.yml

some_option: 2

inventory

[myrole]
myhostname

EXPECTED RESULTS

I expect some_option to be 2 on that host.

ACTUAL RESULTS

It's 1.

Issue 2:
ISSUE TYPE

Feature Idea

COMPONENT NAME

AWS Cloudformation

SUMMARY

Using Jinja2 to produce Cloudformation templates allows for a flexible infra provisioning solution, however at the moment it is necessary to render a Jinja2 CF template into a temp file so it can be used to invoke the CF module like so:

---

- name: Create a temp file for CF template
command: mktemp
register: tmpfile

- name: Create CF template
template:
dest: "{{ tmpfile.stdout }}"
src: template.json.j2

- name: Ensure CF stack
cloudformation:
region: "..."
stack_name: "..."
state: present
template: "{{ tmpfile.stdout }}"

- name: cleanup the temp file
command: "rm {{ tmpfile.stdout }}"

It would be nice if the CF module could be invoked with a Jinja template directly:

---

- name: Ensure CF stack
cloudformation:
format: j2
region: "..."
stack_name: "..."
state: present
template: template.json.j2
Issue 1:
Description of the problem

geometry.computeVertexNormals() not working for extruded geometry created using absarc.

Best explained with pictures and fiddle.

https://jsfiddle.net/k2r4cqnh/2/

I have also tried geometry.computeFaceNormals and shading: SmoothShading but no dice!

You get the same problem with the shape with/without a hole.

Three.js version

r81

Browser

All of them

OS

Windows

Issue 2:
See http://jsfiddle.net/qjonmmee/12/

The segments are not connected, but they should be.

Changing curveSegments on line 24 changes the start and end of the arc, but it shouldn't.
Issue 1:
new items in collection are not hydrated to dataClass but they are as ARRAY's

it means that after form bind i'll get :

class Foo {
private items ->> PersistedColleaction{
col = ArrayCollection {
[0] = FooClass() // already in collection
[1] = array('foo':'faa', ... ) // new items added to form are not hydrated back to proper class but they are arrays
}
}
}

... it's new feature of master branch?

Issue 2:
Since the recent refactoring of the way default options are merged for a Form, setting a default value according to the value of another option does not work anymore for the hierarchy as the parent type will apply this default with its own default value even if the child type changed the default value. This is because the way the defaults are applied changed so the child type is applied only later.

A good way to see this is to define a type setting a default value for the data_class property. The empty_data default value set by the FieldType won't be set properly in the form (we would expect getting a closure crating an instance of the class).

This is a BC break and makes the type inheritance less powerful IMO.

/cc @bschussek
Issue 1:
Background transparency fails on small window when neither width nor height >= 160 pixels.

128x128 => transparency FAILED

168x168 => transparency OK

160x160 => transparency OK

160x32 => transparency OK

This issue is easily reproducible with codes like these.

mainWindow = new BrowserWindow(width:128, height:128, frame:false, transparent:true, resizable:false});
mainWindow.loadUrl('file://' + __dirname + '/blank.html');

"blank.html" has background color set to "transparent".

Tested on:

Windows 10 Home 64-bit

electron-v0.33.4-win32-ia32 (prebuilt version)

Issue 2:
Observed on Windows 8.1 and Ubuntu 14.04 (unity). Does not appear to affect Mac OSX

Creating a transparent window smaller than 160px square results in a white background. If both sides are shorter than 160px, the window will not be transparent. If one side is longer than 160px, the window will have transparency.
Issue 1:
Hi Team,

We are frequently getting below error in airflow where the workers are not able to create the log folder. This usually happens when there is no execution for couple of hours or a new day. We have tried all the options available over the internet including the URL configuration with ip/hostname and we also increased the number of workers. We have also verified the local server for log generation but no luck.

We are using local executor in a linux server for a POC purpose.

*** Log file does not exist: /home/airflow/airflow/logs/dag_id/task_id/2021-06-03T06:49:13.619660+00:00/1.log

*** Fetching from: http://:8793/log/dag_id/task_id/2021-06-03T06:49:13.619660+00:00/1.log

*** Failed to fetch log file from worker. Unsupported URL protocol ''

Any help would be appriciated.

In order to resolve this issue we are restarting webserver and scheduler. But it works only for few hours.

Thanks

Abhishek

Issue 2:
airflow/providers/apache/hive/hooks/hive.py

"It is best to think of a dictionary as a set of key: value pairs, with the requirement that the keys are unique (within one dictionary)"

https://docs.python.org/3/tutorial/datastructures.html#dictionaries
Issue 1:
Version

2.5.14

Reproduction link

https://jsfiddle.net/50wL7mdz/175425/

Steps to reproduce

Including vue(v.2.5.14) and element.io styles and library.

Opening new form.

Opening new form element.

Using custom date picker element.

What is expected?

It is expected to render a custom UI component for date picking.

What is actually happening?

The element is not being render as the console is filled with errors.

[Vue warn]: Error in render: "RangeError: Maximum call stack size exceeded", vue.js:597

RangeError: Maximum call stack size exceeded, vue.js:1745

The issue is related to the latest vue.js version as it is working as expected with all up to 2.5.13.

Issue 2:
Version

2.6.10

Reproduction link

https://github.com/xiaowei9495/vue-watch-set-demo

Steps to reproduce

yarn -> yarn serve -> Home Page -> add button

What is expected?

watch Set

What is actually happening?

No watch
Issue 1:
The date picker will show the date minus 1-day value for a given date value in the date picker.

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

Expected Behavior

The date value assigned from the state object should populate the date picker date value as it is.

Current Behavior

The date picker will show date - 1 value in the date pciker for a given date value populated through the state object.

Steps to Reproduce (for bugs)

This can be easily reproduced and can be seen here - http://www.material-ui.com/v0.18.2/#/components/date-picker

export default class DatePickerExampleToggle extends React.Component {
constructor(props) {
super(props);

const date = new Date();
this.state = {
date: date
};
}
render() {
return (
<div>
<DatePicker
floatingLabelText="Ranged Date Picker"
value={this.state.date}
/>
}
}
}

Tech
Version

Material-UI
18.2

React
15.6.2

browser
Chrome (64.X)

Issue 2:
Problem Description

Using Chrome on a Mac, whenever I'm focused in a password type TextField and the Caps Lock key is activated, I get a large scaled-up icon like this:

Versions

Material-UI: 0.14.4

React: 0.14.6

Browser: Chrome 50.0.2661.86
Issue 1:
When I have routes

@Route("/test/", name="testRoute")
@Route("/test/page-{page}/", name="testRoutePaged", defaults={"page" = "1"})

It would be nice instead of /test/page-1/ get automatically /test/. So duplicate content will not be generated. It can be solved using 301 redirect from /test/page-1/ to /test/, but I see much more clean solution.

It could be done using something like "fallback" routeName, which will be used when all parameters equal default values, something like

@Route("/test/", name="testRoute")
@Route("/test/page-{page}/", name="testRoutePaged", defaults={"page" = "1"}, fallbackRouteName="testRoute")

Let me know if its acceptable and I will create PR.

Related issue sampart/WhiteOctoberPagerfantaBundle#54

Issue 2:
there is a bug which occurs when updating an entity with the same values of unique properties

#6651 (comment)
Issue 1:
Hi everyone,

silly "gotcha" installing the latest master from source (on ubuntu 16)- if there is a space in the path you install from, it fails to compile the "compiler simple test", and throws some fairly obscure error messages about cc being an unrecognised compiler.

Perhaps just needs a line in the instructions, as it took digging through the compiler logs to find the issue (unless i missed something!).

Apologies if duplicated, but couldn't find a relevant issue in a quick search. Happy to contribute fix to docs etc if required.

Issue 2:
🐛 Bug

Long pages in the documentation such as the documentation for the torch.nn module take a long time to render and become interactive. On my system in the page is unresponsive for several seconds while opening this page, which makes navigating around the documentation a bit painful.

To Reproduce

Steps to reproduce the behavior:

Go to the torch.nn docs page in Chrome, Safari or Firefox

Try to scroll or interact with the page (eg. to go to docs for a specific class from the table of contents) a few seconds after load

A Chrome trace shows the time is split between layout and scripting. A significant chunk of the scripting time is spent in KaTeX math rendering.

Expected behavior

Ideally the page would be small enough that browsers can load it without becoming unresponsive for a significant amount of time.

Environment

Tested with Chrome 72 and Safari 12.0 on a late 2016 13" MBP.

My knowledge of Sphinx is limited, but perhaps it would make sense to split up the documentation for some of the largest modules into a summary page listing the classes/methods/functions with brief descriptions and a details page with the full docs, eg. using sphinx.ext.autosummary?

It probably would be possible to optimize the math rendering step without changing the structure, but as long as the page has as many DOM elements as this one, everything is likely to be sluggish.
Issue 1:
VSCode Version:1.2.0

OS Version:win10 10240

Steps to Reproduce:

open vscode and change workspace setting

// The path of the shell that the terminal uses on Windows.

"terminal.integrated.shell.windows": "C:\\windows\\system32\\cmd.exe",

to

"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe /k 'C:\\Program Files\\nodejs\\nodevars.bat'",

use ctrl+''`

Issue 2:
set

"terminal.integrated.shell.windows": "C:\\\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe -ExecutionPolicy RemoteSigned"

does not work. If I remove the parameters Powershell refuses to run script, even $PROFILE.