WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I submitted this to the mailing list, but I've since realized that this is probably a better place for it. So sorry for the double-post.

I've been wanting for some time the option to make stacked histograms using the step or stepfilled histtypes. I've started working on this in a fork, but I wanted to solicit some opinions on how to change the function call.

The most straightforward thing to do would be to add two new histtypes: stepstacked and stepfilledstacked, bringing the total number of possible histtypes to 6. However, that feels kind of clunky.

I'd like to propose that instead of increasing the number of histtypes, I add a new boolean kwarg called stacked which controls whether or not the histogram gets stacked. We then don't need to increase the number of histtypes. The barstacked histtype becomes redundant, as it's identical to histtype='bar', stacked=True, but I'll leave it in for backwards compatibility, to eventually be deprecated.

While I'm at it, filling a step histogram by using a different histtype (stepfilled) seems clunky and inconsistent with how one would deal with a bar histogram. To control the fill for a bar histogram, one uses the fill kwarg, which gets passed to the patch collection. I'd propose that we use the fill kwarg in a similar way for the step histogram and eliminate the stepfilled histtype.

In sumarry, here are the changes I'd like to make, as they would be reflected in the docstring

"""
*histtype*: [ 'bar' | 'step' ]
The type of histogram to draw.

*fill*:
If *True*, the histogram will be filled.
If *False* only the edges of the histogram will be drawn.

*stacked*:
If *True*, multiple data are stacked on top of each other
If *False* multiple data are aranged side by side if
histtype is 'bar' or on top of each other if histtype is 'step'
"""

We can of course leave in the barstacked and stepfilled histtypes for backwards compatability.

So, are there opinions on wether this proposal seems like a good idea? I'm mostly interested in getting stacked step histograms, which I've already implemented, but it seems like I might as well clean up the function call while I'm at it. If others agree that changing the function call is a good idea, I'll be happy to implement it and include it in my pull request.

Issue 2:
https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/backends/backend_webagg.py#L54

flake8 testing of https://github.com/matplotlib/matplotlib on Python 3.6.4

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./lib/matplotlib/backends/backend_webagg.py:54:9: F821 undefined name 'show'
show()
^
Issue 1:
Code to produce

pub mod bits {
use std::vec;
use std::uint;

struct BitVector<'self> {
v: &'self [u8]
}

pub fn new(n: u64) -> BitVector<'self> {
let f = vec::with_capacity::<u8>(n);
BitVector {
v: f
}
}
}

fn main() {
let f = bits::new(10);
}

Backtrace is here https://gist.github.com/5864573

Issue 2:
enum Foo {
Bar(int, [int]),
}

fn main() {
// Either of these lines can cause the ICE
let _x: &(int, [int]);
let _y: &Foo;
}

Backtrace:

1: 0x7f2a127e8580 - rt::backtrace::imp::write::h0180e7ded76a3ff2c0q
2: 0x7f2a127eb770 - failure::on_fail::h3f169393c89b5f90Tlr
3: 0x7f2a12fd24f0 - unwind::begin_unwind_inner::haeb9517b5061bc86Zie
4: 0x7f2a133ad670 - unwind::begin_unwind::h17017358962417336117
5: 0x7f2a13803a20 - middle::ty::unsized_part_of_type::h8eae6d239e9b7af3tnG
6: 0x7f2a138037c0 - middle::trans::type_of::type_of::type_of_unsize_info::h67819f63aa2acfb5Xh9
7: 0x7f2a1377b050 - middle::trans::type_of::type_of::h3c89a1738d384c45Ih9
8: 0x7f2a1377b050 - middle::trans::type_of::type_of::h3c89a1738d384c45Ih9
9: 0x7f2a137b0860 - middle::trans::base::alloc_ty::h5485998eeb61d023mTd
10: 0x7f2a13859870 - middle::trans::_match::mk_binding_alloca::h11628361498234501597
11: 0x7f2a1385bdf0 - middle::trans::_match::store_local::create_dummy_locals::closure.119283
12: 0x7f2a13681560 - middle::pat_util::pat_bindings::closure.112016
13: 0x7f2a0ea1ccb0 - ast_util::walk_pat::hc858153057fb5965oRB
14: 0x7f2a138205f0 - middle::trans::_match::store_local::h9195017fe21b4124A2h
15: 0x7f2a13772d10 - middle::trans::base::init_local::h5e8a493dc2ae05b1WFd
16: 0x7f2a13772220 - middle::trans::controlflow::trans_stmt::hf26d5cee55a6056blhY
17: 0x7f2a13773c40 - middle::trans::controlflow::trans_block::h004dea36138a75c8wmY
18: 0x7f2a13829560 - middle::trans::base::trans_closure::h655acfc433ac13fevye
19: 0x7f2a13764670 - middle::trans::base::trans_fn::hf0a444fa9ff43aebiKe
20: 0x7f2a1375f9b0 - middle::trans::base::trans_item::hda4d4160cb2b58dfi2e
21: 0x7f2a138341f0 - middle::trans::base::trans_crate::hff0f87c98e6356c8JWf
22: 0x7f2a13c058d0 - driver::driver::phase_4_translate_to_llvm::h8223ee9d7ab4951cpzy
23: 0x7f2a13bfd280 - driver::driver::compile_input::hfa4fd95c9e6a2ceeQby
24: 0x7f2a13c8f0a0 - driver::run_compiler::h32bdccca6ed9465cJIB
25: 0x7f2a13c8efb0 - driver::main_args::closure.138206
26: 0x7f2a13ca1240 - task::TaskBuilder<S>::try_future::closure.139324
27: 0x7f2a13ca1040 - task::TaskBuilder<S>::spawn_internal::closure.139301
28: 0x7f2a146dcf10 - task::spawn_opts::closure.8369
29: 0x7f2a1302af90 - rust_try_inner
30: 0x7f2a1302af80 - rust_try
31: 0x7f2a12fcfb20 - unwind::try::h03d8d1d4cb0de0c1f7d
32: 0x7f2a12fcf8e0 - task::Task::run::hafab6bcab45e61e5zdd
33: 0x7f2a146dcc70 - task::spawn_opts::closure.8315
34: 0x7f2a12fd16e0 - thread::thread_start::hba588af1f803bb5blCd
35: 0x7f2a1227f0c0 - start_thread
36: 0x7f2a12c99359 - __clone
37: 0x0 - <unknown>

This seems to occur when using a non-struct type that contains an unsized type. This is probably because unsized_part_of_type only handles ty_struct and the base unsized types. This should be extended to handle enums and tuples as well.
Issue 1:
Using 0.10.7-insider on Windows 8.1

Hovering over methods that have really long signatures seems to produce a truncated tooltip (see attached image)

Not sure if problem is language specific, but if required the screenshot is from some TypeScript code.

Issue 2:
One of the features I like the most in 0.10.6 is the multi line quickinfo widget that appears when a symbol is hovered. It looks like this in 0.10.6:

In 0.10.7 it looks like this:

It's the same version of the same plugin used for both screenshots. As you can see the widget's content is cut. Is there a way to turn on word wrap again in 0.10.7?
Issue 1:
Environment

Windows build 10.0.18362.0

Windows Terminal version (if applicable): 0.6.3161.0

Steps to reproduce

Launch Terminal as administrator.

Create a couple of tabs.

Try to reorder the tabs via click+drag

Expected behavior

Tabs are reordered

Actual behavior

Terminal crashes

Issue 2:
Environment

Windows build number: Microsoft Windows [Versión 10.0.18999.1]
Windows Terminal version (if applicable): 0.5.2762.0

Any other software?
No

Steps to reproduce

Just maximize Terminal.

Expected behavior

The window shouldn't stand out.

Actual behavior

The window stands out.
Issue 1:
Testing #6099

> code-alpha --install-extension vscode-css-formatter
{ responseText: '{"$id":"1","innerException":null,"message":"The query supplied was not valid, one of the filters contained an error. The fully qualified name MUST contain a \'.\' between the publisher and extension names.","typeName":"Microsoft.VisualStudio.Services.Gallery.WebApi.InvalidExtensionQueryException, Microsoft.VisualStudio.Services.Gallery.WebApi","typeKey":"InvalidExtensionQueryException","errorCode":0,"eventId":3000}',
status: 500,
getResponseHeader: [Function],
readyState: 4 }

Having the error as JSON is uncommon. Should be a human readable string.

If structured error messages are useful, maybe add a extra option to the command that defines the resonse format.

Issue 2:
We need to explore improving the way that we display warnings, errors and notifications to users. Currently we have a variety of mechanisms (info in status bar, details in quick open, error/warning dialog).

We need a consistent way that prompts the user when there are notifications/errors/warnings for them to pay attention to and a consistent affordance for the user to get a holistic view of all of the notitications/errors/warnings.
Issue 1:
Description

Expose the DummyOperator class under a different name (or move it), to allow consumers to avoid the use of the word Dummy in source.

Use case/motivation

Some projects have language guidelines for avoiding certain words, dummy occasionally shows up on these lists.

Related issues

No response

Are you willing to submit a PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Description

Apache Software Foundation is discussing how we can improve inclusiveness of projects and raise awareness of conscious language. Related thread on diversity@a.o:

https://lists.apache.org/thread.html/r2d8845d9c37ac581046997d980464e8a7b6bffa6400efb0e41013171%40%3Cdiversity.apache.org%3E

Use case / motivation

We already have pre-commit check that checks for some word. However, on CLC (Conscious Language Checker) Apache Airflow seems to have problems with the following words:

he

her

him

his

master

sanity check

slave

whitelist (pylintrc)

Are you willing to submit a PR?

Related Issues

#12982 #9175
Issue 1:
Environment

Windows build number: 10.0.20161
PowerToys version: v0.19.0
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Steps to reproduce

Install newer version from some point like v0.17.0

Try and use existing Fancy Zones layouts

Expected behaviour

Can use previously defined layouts

Actual behaviour

Previously defined layouts have been deleted during the upgrade

Issue 2:
Environment

Windows build number: 1909
PowerToys version: 0.18.0 and above
PowerToy module: Settings
Device: HP Notebook, product number X7T77UA

Note: this issue was initially observed on a laptop equipped with a Synaptics touchpad, and does not manifest on another, non-Synaptics computer.

Steps to reproduce

Open PowerToys Settings (i.e. right-click system tray icon, choose Settings)

Attempt to scroll using two fingers on touchpad

Expected behavior

The main settings page should scroll as normal (if it's long enough, which it is on my device).

Actual behavior

The main settings page does not scroll.

Overview:

Method
Functional?

Mouse wheel
✔️

Touchscreen
✔️

Touchpad (two fingers)
❌

Notes

After connecting my wireless mouse, scrolling with its wheel works as expected. While the mouse is connected, however, touchpad scrolling still does not work.

Also, the same issue was originally present in the PowerToys Run results list, but is solved as of at least v0.25.0.
Issue 1:
Summary of the new feature/enhancement

Use windows search's results to improve localization performance.

The windows search is doing well at localization. For example in the following scenario:

I use the chinese version windows. When i want to open the “计算器” (Calculator in English) app, i can get it in 3 ways use win + s:

Search "calc". Win+s works, PT Run fail.

Search "计算器". Both win+s & PT Run works.

Search "jisuanqi". The word "jisuanqi" is the Pinyin of "计算器". Win+s works well, PT Run can not recognize this.

Proposed technical implementation details (optional)

If PT Run can use the best result of windows search, it will fix many localization issues.

Use windows search results or implement this function in PT Run's way.

Issue 2:
Issue 1:
React version: ^16.13.1

Steps To Reproduce

npx create-react-app my-app

cd my-app/

npm start

The current behavior

app doesn't start, instead shows error:

Failed to compile

./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css)
Error: No valid exports main found for '/private/tmp/my-app/node_modules/colorette'

This error occurred during the build time and cannot be dismissed.

The expected behavior

npx create-react-app my-app should provide an app that runs.

Issue 2:
When installing create-react-app I get this error when I start the development server (npm start),

./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css) Error: No valid exports main found for 'myproject\node_modules\colorette'

I've reinstalled create-react-app -g and tryed with npx and I still get this error. Is there anything else I can do?

this is the files of my new created react apps - without node_modules:

newreactapp.zip
Issue 1:
I have vim open, accidentally I clicked the close button. And it's gone! :(

Can you please warn me if I have any running task (except shell) in any of the tabs?

Issue 2:
Summary of the new feature/enhancement

Is it possible, to implement something like this:

When there is an active process in the current tab, a confirmation dialect window may show up before actually closing.

When I was writing vim, I need to use C-W to switch among vim tabs.

C-W is also the hotkey to close the current tab.

When the first two times I ran into this problem, I suppose it was some crashing thing.

Finally, I realized it was a hotkey conflict.

Proposed technical implementation details (optional)

I did not dive into the code base of this project yet, but I hope it is not too hard to implement.
Issue 1:
Using joinpath on a UNC path does not always behave as expected (or as I expect).

In the following example:

Case 7 seems like a definite defect.

Cases 5 & 6 may be debatable, but I would also argue that joinpath should be able to join all the parts of a UNC path even if the first part is not the full server+share part. I can certainly see how it would be useful to have it behave that way.

Code:

import InteractiveUtils
InteractiveUtils.versioninfo()

println()
@show "1: " * joinpath("D:", "a", "b", "c")
@show "2: " * joinpath("D:\\", "a", "b", "c")
@show "3: " * joinpath("D:\\a", "b", "c")
@show "4: " * joinpath("D:\\a\\", "b", "c")

println()
@show "5: " * joinpath("\\\\server", "share", "b", "BAD") # expect "\\\\server\\share\\b\\BAD"
@show "6: " * joinpath("\\\\server\\", "share", "b", "BAD") # expect "\\\\server\\share\\b\\BAD"
@show "7: " * joinpath("\\\\server\\share", "b", "BAD") # expect "\\\\server\\share\\b\\BAD"
@show "8: " * joinpath("\\\\server\\share\\", "b", "GOOD") # expect "\\\\server\\share\\b\\GOOD"

Result:

Julia Version 1.2.0
Commit c6da87ff4b (2019-08-20 00:03 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, broadwell)

"1: " * joinpath("D:", "a", "b", "c") = "1: D:a\\b\\c"
"2: " * joinpath("D:\\", "a", "b", "c") = "2: D:\\a\\b\\c"
"3: " * joinpath("D:\\a", "b", "c") = "3: D:\\a\\b\\c"
"4: " * joinpath("D:\\a\\", "b", "c") = "4: D:\\a\\b\\c"

"5: " * joinpath("\\\\server", "share", "b", "BAD") = "5: \\\\server\\sharebBAD"
"6: " * joinpath("\\\\server\\", "share", "b", "BAD") = "6: \\\\server\\sharebBAD"
"7: " * joinpath("\\\\server\\share", "b", "BAD") = "7: \\\\server\\sharebBAD"
"8: " * joinpath("\\\\server\\share\\", "b", "GOOD") = "8: \\\\server\\share\\b\\GOOD"

Issue 2:
See also discussion over at JuliaLang/Pkg.jl#1328 and JuliaDynamics/DrWatson.jl#82

For network drives realpath returns a wrong path.

julia> realpath("Z://")
"UNC\\Mac\\Home\\"

julia> realpath("C://")
"C:\\"

Tested on:

Julia Version 1.2.0
Commit c6da87ff4b (2019-08-20 00:03 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

It's this call:

349 len = ccall(:GetFinalPathNameByHandleW, stdcall, UInt32, (Int, Ptr{UInt16}, UInt32, UInt32),
350 h, buf, (oldlen=len)-1, 0x0)

with buf being

1|julia> transcode(String,buf)
"\\\\?\\UNC\\Mac\\Home\\\ .... garbage due to length not being corrected"
Issue 1:
by mksql@yahoo.com:

What steps will reproduce the problem?

1. Execute .pkg installer for Go v1.1.2 (on a machine with v.1.1.1 installed and working)
2. Installer fails with error but no explanation
3. OS X console shows message: "You have not agreed to the Xcode license
agreements, please run 'xcodebuild -license' ..."

'xcodebuild -license' resolves the issue, but the installer does not suggest this may be
the problem. Additionally this install was on a machine that had Go v.1.1.1 installed
via the .pkg without any problems, and no Xcode updates had been applied since.

Which operating system are you using?

OS X 10.8.4

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

go version go1.1.2 darwin/amd64

Please provide any additional information below.

A message with the cause of the install failure would make locating the issue much
easier.

Issue 2:
Some servers dumbly won't serve a cert chain unless the client offers the signatures in the chain.
Issue 1:
Apologies if this is a duplicate or not a bug – I ran into this recently and figured I should report it.

iter_content takes a chunk_size argument, which defaults to 1. Various code snippets on the internet call request.iter_content(). This is incredibly inefficient, because it is using a buffer size of 1 byte. I think requests should either a) set chunk_size to something more reasonable, like 2048 or 4096, or b) make chunk_size a required argument. (Solution a is more palatable since it's backwards compatible.)

Issue 2:
Currently any duplicate header on responses gets merged on the response.headers dict, using a comma to delimit de two different header values. For example

HTTP/1.1 200 OK

HeaderX: Value1

HeaderX: Value2

print response.headers

{ 'headerx' : ' Value1, Value2' }

This makes impossible to detect responses with duplicate headers, particularly when header values already include commas by themselves (e.g., 'last-modified')

Potential alternative repr:

print response.headers

{ 'headerx' : ['Value1', 'Value2'] }

Problem: breaks backward compatibility as scripts expecting a string would get a list

print response.headers

{ 'headerx' : 'Value1 'Value2'}

Where SEP would be a separator that can't be found on values (newline?)
Issue 1:
After trying pip3 install uvicorn i get the error message Failed building wheel for httptools.

I know this is a duplication of this error (MagicStack/httptools#33), but I can't seem to find a solution. Anyone having the same problem, or know of a solution?

I'm on macOS Mojave 0.14.2

with python 3.7.1, but on 3.6.3 I had the same issue.

Issue 2:
From me having a look at what is importable in starlette it needs to use JSONResponse not UJSONResponse as that seems to have been removed

Would be good to get this fixed ASAP and a new release pushed out to fix this issue as need to use this version of starlette and due to fastapi not having support for this version of starlette is being a release blocker for me
Issue 1:
Is sortrows() running as fast as it should? I have no deep knowledge of the theoretical performance possibilities for a "sortrows()" algorithm vs. a traditional vector sort algorithm, but I'm finding that lexicographically sorting an N-by-2 matrix is MUCH slower than sorting an N-by-1 vector.

For example, on my machine, sorting a random vector of 20 million Float64s takes about 2 seconds. Sorting a 20 million by 2 matrix, using sortrows(), takes about 250 seconds.

Is there any reason why lexicographic sorting should not have N * log(N) performance? If its N * log(N), then sortrows() should take only about 2 * log(2) more time than sort() on a vector.

For what its worth, @time reports that a meaningful chunk of the running time (10%) is garbage collection .

For reference, here's my versioninfo()

julia> versioninfo()

Julia Version 0.3.4

Commit 3392026* (2014-12-26 10:42 UTC)

Platform Info:

System: Linux (x86_64-redhat-linux)

CPU: Intel(R) Xeon(R) CPU E7-8891 v2 @ 3.20GHz

WORD_SIZE: 64

BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)

LAPACK: libopenblas

LIBM: libopenlibm

LLVM: libLLVM-3.3

Issue 2:
Julia sorting functions are slow compared to Matlab.

Outdated begin

Matlab R2012b sorting of integer arrays:

>> a=randi(30000000,30000000,2);
>> tic; b=sort(a,2); toc
Elapsed time is 0.882043 seconds.
>> tic; b=sort(a,2); toc
Elapsed time is 0.903528 seconds.
>> tic; b=sort(a,2); toc
Elapsed time is 0.900367 seconds.
``

Julia sorting of integer arrays:
julia> a=rand(Int64,30000000,2);

julia> @time sort(a,2);
elapsed time: 46.625749977 seconds (17279978752 bytes allocated, 19.15% gc time)

The Julia sort() is more than 40 times slower than Matlab.

Outdated end

The sortslices(a; dims=1) has a similar problem. Still working with the same 30,000,000 x 2 array size:

>> a=rand(Int64,30000000,2);
>> tic; c=sortrows(a); toc
Elapsed time is 12.071053 seconds.

Compare with

julia> @time sortslices(a; dims=1);
100.747272 seconds (31.13 M allocations: 2.737 GiB, 1.78% gc time)
Issue 1:
Hi,

This might be duplicated question, but I have tried all possible research on google and blogs to get a solution to fix it, so if you already know the answer please help me.

I am trying to send an array of objects to Axios post request, but the payload empty array even if I have the data in array as I checked with console.log

axios.post("/api/videos", { ytVideosList, data: { customFunction: "AddVideoList" } })

where ytVideoList is [{json-obj1},{json-obj2}, .....] etc which is empty [] at payload side, so i am not able to insert data in my database table. I hope everything is clear if you know the answer please respond as soon as possible.

Issue 2:
versus just using axios({...}) to make requests?
Issue 1:
I believe @types/node-schedule should not depend on @types/node (currently it is in dependencies), it should be added in peerDependencies, because otherwise it may result in conflicts, with other installed version (maybe on the upper level of the project).

I don't get where the package.json can be contributed to? I see no package.json here:

https://github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/node-schedule

cc @cyrilschumacher @flowpl

Issue 2:
I believe @types/express-serve-static-core should not depend on @types/node (currently it is in dependencies), it should be added in peerDependencies, because otherwise it may result in conflicts, with other installed version (maybe on the upper level of the project).

I don't get where the package.json can be contributed to? I see no package.json here:

https://github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/express

cc @borisyankov
Issue 1:
VSCode Version:0.10.14 code-insiders

OS Version:Windows 10

Steps to Reproduce:

Open a markdown preview to the side of markdown source

Scroll source file

It would be nice to have a way to lock the preview and scroll at the same time. Especially nice for longer markdown files.

This came in from an internal MS writer using VS Code for Markdown.

Issue 2:
VSCode Version: 1.1.1

OS Version: Win 10 Home

VS Code can't parse code properly, script is ok - works.